summaryrefslogtreecommitdiff
path: root/tests/testables/src/android/testing/BaseFragmentTest.java
AgeCommit message (Collapse)Author
2019-04-19Propogate per-display IME status to SysUIlumark
CL [1] introduced SystemUI to support updating IME window status per display. (i.e. IStatusBarService#setImeWindowStatus left TODO item to add displayId parameter to select the target display.) For IMMS, we applied this API base on current token's displayId, and refined the code flow in Sysui to reset IME window state for non-target display's NavBar when single IME switch to another display case. And make sure some cases in IMMS should reset IME window status: - When current method unbind. - When current top window focus display is not same as current token's display. (That means the input session may connected but IME window not yet attached. Note that it doesn't include external display without system decoration and show IME window on default display case since it is intentional behavior and we still need to update status for this case.) Also added testSetImeWindowStatusWhenImeSwitchOnDisplay in NavigationBarFragmentTest to enhance the ability of verifying external navigation bar. [1]: 24e7a9fdb51978a47ce29f3816338da04a49d6ca Bug: 127309955 Bug: 117478341 Test: atest NavigationBarFragmentTest Test: manual as below steps: - Pre-condition: 1. Enable desktop mode. 2. Create simulated display. - Use case 1): 1. Launch an activity with input field on simulated display. 2. Bring up the IME there, expect back key icon on external NavBar will changed when IME bring up. 3. Tap on primary display or launch an activity there. (or pressing home key) 4. Expect IME will hide & back key icon on external NavBar will set back. - Use case 2): 1. Launch activity with input field on default display. 2. Tapping EditText in activity on default display. 3. Expect IME will bring up here and back key icon on default display will changed when IME bring up. 4. Launch activity without input field in external display. (i.e. clock app) 5. Expect Both Default & external display's nav bar back key icon will set back. Change-Id: Ia414b8aea631e295cccd6f6da44d04bad16545c7
2019-03-01Migrate frameworks/base/tests/testables and its users to androidx.testBrett Chabot
See go/jetpack-test-android-migration This is the internal version of AOSP change aosp/908373 Test: m -j TestablesTests NetworkStackTests FrameworksServicesTests SystemUITests FrameworksUiServicesTests ExtServicesUnitTests WmTests FrameworksCoreTests Exempt-From-Owner-Approval: automated package name refactoring; already reviewed on AOSP Change-Id: Ib04d80954bd8536914d88c66b28e6632e60a6245
2018-12-19Add support for dagger injection with fragmentsJason Monk
Convert NavigationBarFragment as a proof of concept and remove all references to Dependency from NavigationBarFragment. Test: atest SystemUITests Change-Id: I0cdb5bc6ac455fce91e67b9e449cb7b78b1da9a4
2017-06-19Merge "Revive DeadZone" into oc-devSiarhei Vishniakou
am: b278424fa6 Change-Id: I5a06302eaad1e955aaea6ae8d2785c0b12e53cc4
2017-06-19Revive DeadZoneSiarhei Vishniakou
Override dispatchTouchEvent for the root FrameLayout of NavigationBar to process ACTION_OUTSIDE MotionEvents and dispatch directly to DeadZone to keep track of the most recent outside tap. Clarified documentation of ACTION_OUTSIDE behaviour. Bug: 37552674 Test: open IME, tap any key, then quickly tap on top half of the home button. The home button tap is ignored and device does not go to homescreen. Change-Id: Icb5cf6c76959f3514b8b94c09e38cc5434f31b23
2017-05-03Try to add some more documentation to testablesJason Monk
Test: runtest --path frameworks/base/tests/testables/tests Change-Id: I3dc39f05c3b91929a7d37b28879e31fb699f7334
2017-04-28Fix flaky test?Jason Monk
- Fix testAttachDetach, process more messages so it actually does attach and detach - Don't inflate Clocks in QSFragmentTest because they are doing something weird... Test: runtest systemui Change-Id: I05360630ee8d96158b6ab36660f20588ad158a28 Fixes: 37773362
2017-03-28Have QS fragment keep track of some state on recreateJason Monk
Test: runtest systemui Change-Id: I1cf84a0943092fcfc5428fcfccb4a887a83b294b Fixes: 35205198 Fixes: 36592148 (cherry picked from commit 78187249c3e8aaf89a380816e123a3a4653d5b4e)
2017-03-14Move out test utilities to a Testables libraryJason Monk
Test: runtest --path frameworks/base/tests/testablets/tests && runtest systemui Change-Id: Ideef4aef5f26136b1741c556b9be5884f38842a0