Skip to content
Snippets Groups Projects
  1. Sep 01, 2023
  2. Aug 22, 2023
    • Cosmin Băieș's avatar
      Improve InputMethodStressTest annotations · c875788c
      Cosmin Băieș authored
      Extract methods for requesting IME focus on the view, on the main thread,
      and asserting the request is successful.
      
      Update assertion messages to be more explicit about the expected
      outcome, and the value being asserted on.
      
      Bug: 292086579
      Test: atest InputMethodStressTest
      Change-Id: I40fce41cb890349877cf1384d883599d15093378
      c875788c
  3. Aug 17, 2023
  4. Aug 16, 2023
  5. Aug 15, 2023
    • An An Yu's avatar
      Include AE Flicker tests to be tracked · 1fc8dbf3
      An An Yu authored
      Bug: 238043427
      Test: atest and presubmit
      Change-Id: Idd1cf7584ff45d0e8b1ee31c62fba1330e4f2d81
      Merged-In: Idd1cf7584ff45d0e8b1ee31c62fba1330e4f2d81
      1fc8dbf3
  6. Aug 09, 2023
  7. Aug 07, 2023
    • Yuri Lin's avatar
      Disable overlay app notification launch flicker tests · 5029b93f
      Yuri Lin authored
      These tests do not currently have any animated notification launch due to the keyguard being occluded. In order to instrument these correctly, we would need to have a correct animation and CUJ for this scenario.
      
      Bug: 294418322
      Bug: 290577455
      Test: only disabling tests
      Change-Id: I92f9d3e21d77f153bd5ff631c17e0d461818394a
      5029b93f
  8. Aug 04, 2023
    • Mady Mellor's avatar
      Allow setting a configuration to TestableResources · 7336bcdd
      Mady Mellor authored
      This allows me to specify different configurations so that I
      can write a test for validating behavior with different configs.
      
      Test: atest this with my other CLs
      Bug: 283910436
      Change-Id: I2f21b03b57a7b292384380aedab27769f09f22aa
      7336bcdd
  9. Jul 21, 2023
  10. Jul 20, 2023
    • An An Yu's avatar
      Remove clip adjustment to fix bottom screen flicker issue. · b540a9af
      An An Yu authored
      Add a flicker test to verify animation background is no longer
      visible through the transition after the fix.
      
      Test: atest
      Bug: 284148123
      Change-Id: Iae41b96f097a428c3eae0e827caa026154fccf3d
      Merged-In: Iae41b96f097a428c3eae0e827caa026154fccf3d
      b540a9af
  11. Jul 19, 2023
    • Mateusz Cicheński's avatar
      Add logs to debug flakiness of the test · ded9258e
      Mateusz Cicheński authored
      Bug: 270677470
      Test: n/a, adding logs to debug raven specific flakiness in the lab
      
      Change-Id: I5a12a08d7b804e04144f6473f8e3348ea9e9d339
      ded9258e
    • Cosmin Băieș's avatar
      Fix initial iteration in DefaultImeVisibilityTest · 167d1899
      Cosmin Băieș authored
      Ensure rotation is successfully applied before starting the stress test
      iterations, as this would previously lead to the first iteration of the
      landscape test still being in portrait mode, and incorrectly passing the
      assertions.
      
      Test: atest DefaultImeVisibilityTest
      Bug: 291742721
      Change-Id: Iae068a92601d6dc632f10373ab6ab4bd41dd742d
      167d1899
    • Cosmin Băieș's avatar
      Revert^2 "Fix SHOW_IMPLICIT and SHOW_EXPLICIT handling" · 0a1d3c22
      Cosmin Băieș authored
      cf811952
      
      Re-submitting original CL as the issue has been fixed by setting the
      correct (SHOW_EXPLICIT) flag for the InputMethodStressTest suite.
      
      Original CL:
      
      Fix SHOW_IMPLICIT and SHOW_EXPLICIT handling
      
      This fixes a bug introduced in the refactor from [1], where
      SHOW_IMPLICIT and SHOW_EXPLICIT requests would not be handled correctly,
      as they represent the same underlying bit flag value.
      
      IntDefs were added to help understand which set of flags to use
      based on call site. Requests originating from InputMethodManager
      (and a few from InputMethodService) must utilise InputMethodManager
      flags (i.e SHOW_IMPLICIT). When reaching the ImeVisibilityStateComputer,
      these are translated to InputMethodService flags (i.e. SHOW_EXPLICIT).
      
      Additonally, this documents and tests that `ImeVisibilityStateComputer`
      keeps the strongest state set until a hide request (i.e. an implicit
      show request just after a forced / explicit show request, without
      any hide requests in between, will still have the
      forced / explicit state set).
      
      [1]: Id1115ceb951e4bb0361a32b824d966cc70b7d132
      
      Bug: 289188559
      Test: atest DefaultImeVisibilityApplierTest
        DefaultImeVisibilityTest
        ImeVisibilityStateComputerTest
        com.android.inputmethodservice.InputMethodServiceTest
      
      Change-Id: I2117053c5a45253b9537f903a1ac6b3c8bef69af
      0a1d3c22
  12. Jul 18, 2023
  13. Jul 17, 2023
    • Lucas Dupin's avatar
      Avoid sending messages of destroyed Engine · 6f9ac2b1
      Lucas Dupin authored
      And app can call notifyColorsChanged() on a destroyed engine, which
      would cause problems, given it doesn't have a surface anymore.
      
      The same is true to visibility notification, where the engine can be
      destroyed before it had the opportuinity of drawing its first frame (if
      it had to load large assets for example)
      
      Test: manually change wallpapers
      Test: WallpaperServiceTest (both CTS and internal)
      Fixes: 291053623
      Change-Id: Iff83603695cff491f2045586d5b3f4658f7ae55a
      (cherry picked from commit 650a7f8a)
      6f9ac2b1
  14. Jul 14, 2023
    • Philip Quinn's avatar
      Increase the error tolerance for MotionPredictorTest. · 785f3cbd
      Philip Quinn authored
      Failure with the new model: expected:<30.0> but was:<24.353516>
      
      Bug: 288354672
      Test: atest MotionPredictorTest
      Change-Id: Id02b0f7d132e30d2f2a20914ad7ce6377dd42f61
      785f3cbd
    • Lucas Dupin's avatar
      Avoid sending messages of destroyed Engine · 650a7f8a
      Lucas Dupin authored
      And app can call notifyColorsChanged() on a destroyed engine, which
      would cause problems, given it doesn't have a surface anymore.
      
      The same is true to visibility notification, where the engine can be
      destroyed before it had the opportuinity of drawing its first frame (if
      it had to load large assets for example)
      
      Test: manually change wallpapers
      Test: WallpaperServiceTest (both CTS and internal)
      Fixes: 291053623
      Change-Id: Iff83603695cff491f2045586d5b3f4658f7ae55a
      650a7f8a
    • Massimo Carli's avatar
      [2/n] Implement OpenTransparentActivityTest flicker test · c8c9f76f
      Massimo Carli authored
      Flicker test about transparent activities launch checking they
      inherits bounds from the first opaque activity below.
      
      Fix: 285851726
      Test: Run `atest WMShellFlickerTestsOther:OpenTransparentActivityTest`
      
      Change-Id: I09fba66f3b4e4654919385800006a0c76f099fac
      c8c9f76f
  15. Jul 13, 2023
    • Fabián Kozynski's avatar
      Add non-blocking message processing · c5f5ee57
      Fabián Kozynski authored
      TestableLooper.processMessages will block if the argument is less than
      the number of available messages.
      
      This adds a new method that will process the minimum of the argument or
      available messages and return the number of messages processed.
      
      Test: atest TestableLooperTest
      Bug: 289042855
      Change-Id: Ied9a3769a0ed2ed7723190853f9091721539df08
      c5f5ee57
  16. Jul 11, 2023
    • An An Yu's avatar
      Disable flaky test · 6c56cdf6
      An An Yu authored
      Test: atest
      Bug: 290736037
      Change-Id: I4e2914c5d99debeb11906cf9a880801e30c59c9d
      6c56cdf6
  17. Jul 07, 2023
  18. Jul 06, 2023
  19. Jul 05, 2023
    • Ming-Shin Lu's avatar
      Migrate typing logic from UiBench app to UiBenchMicrobenchmark test · 1cda075e
      Ming-Shin Lu authored
      With CL[1], we can simply remove the typing logic in
      EditTextTypeActivity and also revert CL[2] logic without worrying the
      apk signing problem and permission check for injectInputEvent.
      
      [1]: I443f67748dfd3db0deb4cd12ac068975fbebc2c3
      [2]: Id3c3490d7ab98a17da4e07d8d62d048c98ff1ec4
      
      Bug: 289210988
      Test: atest UiBenchEditTextTypingMicrobenchmark
      Test: pts-tradefed run commandAndExit pts-postsubmit-very-long -m PtsUiBench \
         --fastboot-command-preparer:disable  \
         --log-level-display verbose -l VERBOSE \
         --test-arg com.android.tradefed.testtype.AndroidJUnitTest:instrumentation-arg:iterations:=1 \
         --test-arg com.android.tradefed.testtype.AndroidJUnitTest:class:\
         com.android.uibench.microbenchmark.UiBenchEditTextTypingMicrobenchmark#testEditTextTyping
      
      Change-Id: I9a3b6a2a3df101bbd4dba9880944e8b83eb14610
      1cda075e
    • Nataniel Borges's avatar
      Cleanup snapshotStartingWindowLayerCoversExactlyOnApp assertion · 04b9eaeb
      Nataniel Borges authored
      Bug: 289673579
      Test: atest FlickerTestsIme
      Change-Id: Ie5d36bbba1c858eff878c2497b8de4b2f5fd2780
      04b9eaeb
  20. Jul 04, 2023
  21. Jul 03, 2023
  22. Jun 29, 2023
  23. Jun 28, 2023
    • Victor Hsieh's avatar
      Deduplicate test expectation data in a different way · 5a1d0cc3
      Victor Hsieh authored
      The test collects expected APEX package names from listing /apex by a
      shell command. The shell command also tries to remove the noise
      (normally an APEX has two entires, see below).
      
      $ ls -d /apex/*/
        /apex/com.android.adbd/
        /apex/com.android.adbd@340815002/
        ...
        /apex/com.google.mainline.primary.libs@340716000/
        /apex/sharedlibs/
      
      The test used to deduplicate by filtering out '@'. But apparently an
      (DLCA) APEX only has one entry with '@'.
      
      With this change, the shell command removes '@\d+' then deduplicate the
      strings.
      
      Bug: 288551133
      Test: BinaryTransparencyHostTest#testCollectAllApexInfo
      Change-Id: I4bc3e8226dd7790aa276ac5dfad7371c60046384
      5a1d0cc3
  24. Jun 27, 2023
  25. Jun 23, 2023
  26. Jun 22, 2023
Loading