Skip to content
Snippets Groups Projects
  1. Jun 04, 2024
  2. May 31, 2024
    • Siarhei Vishniakou's avatar
      Use uinput-based injection in AnrTest · 834025aa
      Siarhei Vishniakou authored
      Prior to this CL, we were injecting events into the unresponsive
      activity using "injectInputEvent". The up event was missing, which would
      cause the pointer to linger in the gesture monitors. Later in
      the test, we were clicking the "close" button. This click would start to
      interact with the previous unreleased pointer, causing the notification
      shade to get pulled down.
      
      In this CL, we switch to uinput-based injection to make it hermetic.
      
      Bug: 343912075
      Test: atest com.android.test.input.AnrTest
      Change-Id: I295963080203ee64f50ed9890086b945665c204e
      834025aa
    • Android Culprit Assistant's avatar
      Revert^3 "Add throtling to crashloop mitigations" · c996b909
      Android Culprit Assistant authored
      3bebb903
      
      Change-Id: I605177fabae80ea68399aa42a66419119cf02cd3
      Bug: 343583446
      Bug: 343690533
      c996b909
  3. May 30, 2024
    • Billy Huang's avatar
      Add unit test coverage for unlock attempts in TrustTests · 45ca5feb
      Billy Huang authored
      The downstream effects of an unlock attempt using a pin/password were
      not previously tested within the TrustTests. Add these tests in
      preparation for further changes to pin/password unlock reporting to
      TrustManagerService.
      
      Add options within ScreenLockRule and TrustAgentRule to allow for test
      cases to start with strong auth being required, and the device locked.
      
      BUG: b/323086607
      Test: `atest TrustTests`
      Flag: TEST_ONLY
      Change-Id: I1c8eaacc9c20284ef2783bcd65c14f68b0b444e8
      45ca5feb
    • Taran Singh's avatar
      Mark flicker test imeAppLayerIsAlwaysVisible flaky · 7a467e6c
      Taran Singh authored
      Mark the test as flaky since its blocking presubmit
      until we've a fix.
      
      Bug: 330486656
      Test: atest FlickerTestsIme1
      Change-Id: I67cc3ec514c32e85f5e842d8fb9acc628882ab89
      7a467e6c
    • Jeff DeCew's avatar
      Disable "Notification Cooldown" for flicker tests · 5ad3b128
      Jeff DeCew authored
      Change-Id: I26bf9f4df26576ac769ee5da6a74e605fb358a4b
      Fixes: 342551612
      Test: FlickerTestsNotification com.android.server.wm.flicker.notification.OpenAppFromLockscreenNotificationColdTest
      Flag: TEST_ONLY
      5ad3b128
  4. May 29, 2024
  5. May 27, 2024
    • Kevin Liu's avatar
      Add strict_mode: false · eef626ab
      Kevin Liu authored
      As strict mode is in place, the default strict_mode is now set to true. We are encourage teams to write tests in strict_mode to make tests Bivalent (able to run on device and devicelessly)
      For more info on strict mode: go/roboStrictMode
      
      Flag: NONE
      Test: atest SystemUiRoboTests, SpaRoboRNGTests, SettingsLibRoboTests, FrameworksServicesRoboTests, BackupFrameworksServicesRoboTests, InputRoboRNGTests
      Bug: 334089788
      Change-Id: I9827910496af67eab33efddb7c32d8e40b497c13
      eef626ab
    • Chris Li's avatar
      Disable flaky EnterSystemSplitTest · 9a59463f
      Chris Li authored
      To unblock
      
      Bug: 342596801
      Test: atest FlickerTestsOther:EnterSystemSplitTest
      Change-Id: I117355cfa826ad2f3586a5fcd92ad4a69701cdd1
      9a59463f
  6. May 25, 2024
  7. May 23, 2024
    • Riddle Hsu's avatar
      Add test for seamless rotation when launching app over keyguard · 383fed6d
      Riddle Hsu authored
      The test verifies that there won't be a rotation animation layer for
      the rotation change with a show-when-locked seamless rotation activity.
      
      Bug: 333557024
      Test: atest OpenShowWhenLockedSeamlessAppRotationTest
      Change-Id: If525192159c8c2964a014ef19923bd1b55001c51
      383fed6d
    • Nataniel Borges's avatar
      Rebalance flicker tests among shards · c536b839
      Nataniel Borges authored
      To bring test back to runtime SLO
      
      Test: atest FlickerTestsAppLaunch1 FlickerTestsAppLaunch2
      Fixes: 335802463
      Change-Id: Ie01948f5077a7048890d905029b5e8fad94a2145
      c536b839
  8. May 21, 2024
  9. May 20, 2024
    • Linnan Li's avatar
      Add enabled state to InputDevice and remove isInputDeviceEnabled(1/n) · db69719a
      Linnan Li authored
      
      Since we have added a field for the enabled state to InputDeviceInfo, we
      have also added the same status field to InputDevice.java. This way, we
      won't need to call the isInputDeviceEnabled method in InputManager again
      to send a request to InputManagerService to check if the device is
      enabled. At this point, we can directly remove the isInputDeviceEnabled
      method in InputManager, which is used as a hidden API, since it is no
      longer in use.
      
      Bug: 336420877
      Test: build & atest InputTests
      
      Change-Id: I9274f0bc66b64b81f9375049cc7bf9535c27d06f
      Signed-off-by: default avatarLinnan Li <lilinnan@xiaomi.corp-partner.google.com>
      db69719a
  10. May 17, 2024
  11. May 16, 2024
  12. May 15, 2024
    • Chris Li's avatar
      Update flicker app targetSDK · 4946c636
      Chris Li authored
      Update the following:
      1. PendingIntent requires FLAG_MUTABLE
      2. Bubble/Notification requires POST_NOTIFICATIONS
      3. registerReceiver requires RECEIVER_EXPORTED
      4. Opt-out force edge-to-edge
      
      Bug: 306666082
      Test: pass presubmit
      Test: atest PlatformScenarioTests:BackAndHomeOnGMail
      Change-Id: I90de055be9c9c270b6815b719209ca8407431d39
      4946c636
    • Chris Li's avatar
      Update a few flicker test atest comment · 75107f5c
      Chris Li authored
      Bug: 307359855
      Test: JavaDoc update only
      Change-Id: Icbc259722581bb3ca8ec40f221b6e03551a5052a
      75107f5c
  13. May 14, 2024
    • Nataniel Borges's avatar
      Uses new argument to force stop perfetto sessions · 6f6f8bad
      Nataniel Borges authored
      Test: atest FlickerLibTests
      Bug: 288396763
      Change-Id: Ie55d391d712fbcb62bc34f76b5d74dce962bd4e6
      6f6f8bad
    • Chris Li's avatar
      Revert "Update flicker app targetSDK" · b6d8312e
      Chris Li authored
      This reverts commit 40c1df0f.
      
      Reason for revert: b/340471057
      
      Change-Id: I7409cc8acb14a7104ce79698d9f14e553f98baf4
      b6d8312e
    • Kiran S's avatar
      Update the USB device filter to support interface name · 32e94e57
      Kiran S authored
      The interface name will be used as an additional parameter while
      filtering devices based on interface class, subclass and protocol. This
      will be used to correctly filter MTP devices based on interface. The
      current logic of only using class, subclass and protocol will
      incorrectly identify some devices interfaces as supporting MTP
      
      Test: atest UsbManagerTests, Manually verified that interface name is
      used for filtering MTP devices correctly
      Bug: 312828160
      Flag: android.hardware.usb.flags.enable_interface_name_device_filter
      
      Change-Id: I7f6538864a0464cf0fedf677ef075ee98ef02b15
      32e94e57
    • Chris Li's avatar
      Update flicker app targetSDK · 40c1df0f
      Chris Li authored
      So that AE is enabled on phone target as well
      
      Update the following:
      1. PendingIntent requires FLAG_MUTABLE
      2. Bubble/Notification requires POST_NOTIFICATIONS
      3. registerReceiver requires RECEIVER_EXPORTED
      4. Opt-out force edge-to-edge
      
      Bug: 306666082
      Test: atest FlickerTestsOther
      Change-Id: Ib1c310795ee3723656c9ebd0557831d189eddb6c
      40c1df0f
  14. May 13, 2024
  15. May 10, 2024
    • Dave McCloskey's avatar
      Add a dumpsys implementation for attestation_verification service. · b2c0c227
      Dave McCloskey authored
      Example output:
      $ adb shell dumpsys attestation_verification
      AttestationVerificationManagerService
          Event Log:
              Verification #2 [2024-04-25 22:09:52]
                  Result: FAILURE(2)
                  Certificate Chain Valid (inc. Trust Anchor): FAILURE
              Verification #1 [2024-04-25 22:08:37]
                  Result: FAILURE(2)
                  Certificate Chain Valid (inc. Trust Anchor): FAILURE
      
      Seeing a result from dumpsys that doesn't fail will need to wait until
      there is a user-signed build to test on a locked device. However, here's
      an example output from a unit test:
      
      04-25 15:23:23.954   408   467 D AVFTest : Verification #1 [2024-04-25 22:23:23]
      04-25 15:23:23.954   408   467 D AVFTest :  Result: FAILURE(2)
      04-25 15:23:23.954   408   467 D AVFTest :  Certificate Chain Valid (inc. Trust Anchor): OK
      04-25 15:23:23.954   408   467 D AVFTest :  Local Binding: OK
      04-25 15:23:23.954   408   467 D AVFTest :   Binding Type: 3
      04-25 15:23:23.954   408   467 D AVFTest :  System Ownership: FAILURE
      04-25 15:23:23.954   408   467 D AVFTest :  KeyStore Attestation Parameters
      04-25 15:23:23.954   408   467 D AVFTest :   OS Version >= 10: OK
      04-25 15:23:23.954   408   467 D AVFTest :   OS Patch Level in Range: OK
      04-25 15:23:23.954   408   467 D AVFTest :   Attestation Version >= 3: OK
      04-25 15:23:23.954   408   467 D AVFTest :   Keymaster Version >= 4: OK
      04-25 15:23:23.954   408   467 D AVFTest :   Keymaster HW-Backed: OK
      04-25 15:23:23.954   408   467 D AVFTest :   Key is HW Backed: OK
      04-25 15:23:23.954   408   467 D AVFTest :   Boot State is VERIFIED: OK
      04-25 15:23:23.954   408   467 D AVFTest :   Verified Boot is LOCKED: OK
      04-25 15:23:23.954   408   467 D AVFTest :   Key Boot Level in Range: OK
      04-25 15:23:23.954   408   467 D AVFTest :   Key Vendor Patch Level in Range: OK
      
      Bug: 335498868
      Test: atest AttestationVerificationTest
      Change-Id: Iea0b19b3c3a25c5800ebd6fad85c0829a2cfa2b1
      Flag: android.security.dump_attestation_verifications
      b2c0c227
    • Sukesh Ram's avatar
      Revert "Improve StatusBarManager disable*() apis" · 83f6e448
      Sukesh Ram authored
      This reverts commit c49cc7d1.
      
      Reason for revert: The following bugs cite the changes to disable() api as the root issue: b/332752827 , b/325856557 , and b/332647161
      
      Change-Id: If556f6fd1c256d1e126b9edc05fdc9bb147a2280
      83f6e448
  16. May 09, 2024
    • Yabin Huang's avatar
      Replace test API with public API · 2a4136b9
      Yabin Huang authored
      Context#getUserId() and Context#getDisplayId() are test APIs and can't
      be used by non-testing app. So this CL replaced them with public APIs.
      
      Fixes: 339096449
      Test: atest ConcurrentMultiSessionImeTest
      Change-Id: I361066487fbf7551dd99aa32baebec9e73ce34f6
      2a4136b9
    • Kiran S's avatar
      Restrict USB poups while setup is in progress · 76feb379
      Kiran S authored
      Test: Manually verified that USB popups are not displayed while setup is
      in progress. atest UsbManagerTests.
      Bug: 332757346
      Flag: com.android.server.usb.flags.allow_restriction_of_overlay_activities
      
      Change-Id: I7de666b9c807f0458bf0df291bab4da2cb98f886
      76feb379
  17. May 08, 2024
  18. May 07, 2024
    • Yan Yan's avatar
      Make VCN HSUM compatible · 43ee23b0
      Yan Yan authored
      Require VCN to be used by a "main user" instead of a "system user"
      since "system user" will no longer be a full user on HSUM devices
      
      Bug: 310310661
      Test: FrameworksVcnTests, CtsVcnTestCases on non-hsum and hsum devices
      Flag: android.net.vcn.enforce_main_user
      Change-Id: I5abfa7ba82055cd953083b1ab3f83e61bafd8a55
      43ee23b0
  19. May 06, 2024
    • Yan Yan's avatar
      Support disabling IPsec packet loss detector · ec173dea
      Yan Yan authored
      Allow disabling detector for better configurability
      
      Bug: 336638836
      Test: atest FrameworksVcnTests(new tests) && atest CtsVcnTestCases
      Flag: android.net.vcn.allow_disable_ipsec_loss_detector
      Change-Id: Icd7183d12fb287399a500ea9c0ee4125c749275c
      ec173dea
  20. May 03, 2024
    • DingYong's avatar
      Add mic mute keyboard led. (1/2) · 0d88649d
      DingYong authored
      Change-Id: Ie3ddd04853bb3471bb60cefd037d5244733046c4
      Test: Built, presubmit
      0d88649d
    • Cosmin Băieș's avatar
      Include IME owners in IME flicker tests · df91c624
      Cosmin Băieș authored
      Flag: NONE
      Test: n/a
      Bug: 338178020
      Change-Id: I6494166c24d37d398d72b05a9d7b3f966f3b9ffa
      df91c624
    • Cosmin Băieș's avatar
      Mark flaky flicker assertion · 204b9d10
      Cosmin Băieș authored
      This is currently flaky as sometimes all the surfaces become invisible
      when going into AOD. To unblock presubmit, this will be marked flaky
      until a fix is submitted.
      
      Test: atest
        FlickerTestsIme2:com.android.server.wm.flicker.ime.ShowImeOnUnlockScreenTest
      Bug: 338178020
      Flag: NONE
      Change-Id: I652b470407c7efbf88f9ea8b48a4491ae0b726e9
      204b9d10
Loading