summaryrefslogtreecommitdiff
path: root/packages/CarSystemUI/tests
AgeCommit message (Collapse)Author
2020-11-10Migrate CarSystemUI out of framework/base.kwaky
Bug: 170742445 Test: Manual (build and boot succeeds) Change-Id: I88e0e2ff4d44b160f89297e03e4bb8111c3adaf6
2020-11-10Change SystemUI implementation for prioritized HUNs.Abhijoy Saha
This change involves: > Migrating CarHeadsUpNotificationSystemContainer to extend instead of implement the new implementation of CarHeadsUpNotificationContainer to accomodate for prioritized HUNs. > Migrating bottom HUNs resources to Notifications package. Bug: 112155307 Test: Manual Change-Id: I8fd2d8380d69174564b9899986e81c702b7018d1
2020-10-23Enable defining system bar side to fit by the side.kwaky
Test: Manual + Unit Tests Bug: 171414476 Bug: 171054589 Bug: 162599873 Change-Id: I948a0907fa76ea16acc91f843f8b5cdbf7126df1
2020-10-15Add ReadViewCameraViewController/Mediator.Yuncheol Heo
- Launch config_rearViewCameraActivity in the overlay Window when gear is reversed. - Add/Remove ActivityView dynamically to save the system resource while it is hidden. Bug: 157481389 Test: atest com.android.systemui.car.rvc Test: Check if RearViewCamera is launched when the gear is reversed and if it will be closed when the gear is changed to the other one. Change-Id: I768fe9090eed9cb82c4108ab8f6335802d36fa64
2020-09-21Fix NAN temp on system bar HVAC controlsJulia Kawano
Fixing bug where the AdjustableTemperatureView displayed "NaN" when no temperature was available (namely when booting) to instead display "--" (which was the previous behavior). Also matched previous temperature view behavior to display a string when the min or max temperature has been set. Bug: 168744829 Test: manual - built on flame_car Test: atest AdjustableTemperatureViewTest Change-Id: I048cf09fb31b61905c922b7e531f497bee2586d9
2020-09-18Merge "Adjust window focusable by view controller"Heemin Seog
2020-09-15Add test coverage for setTopWindowVisibilitykwaky
Bug: 167593045 Test: atest CarNavigationBarControllerTest Change-Id: I4fd548357e3ce7883100d693de91e1c73413d3c9
2020-09-11Merge "Fix subclass/superclass check for NotificationPanelViewMediator."Youngjun Kwak
2020-09-11Fix subclass/superclass check for NotificationPanelViewMediator.kwaky
Bug: 165806308 Test: Manual + Unit Tests Passing Change-Id: I8f443762f1b487ab9d3fe4f6f84b0aa86e3d0c8a
2020-09-11Merge "Fix crash from UserNameViewController.removeAll()"Julia Kawano
2020-09-11Fix crash from UserNameViewController.removeAll()Julia Kawano
The UserNamveViewController was calling removeListener() before the listener had been registered. Added a boolean mRegistered to check if the listener has been registered before removing it and added a test that calls removeAll() before a listener is registered. Bug: 168065924 Test: atest UserNameViewControllerTest Change-Id: If24374e51a61c943142ba3a8794aca548dd241cc
2020-09-11Merge "Enable hiding system bars by side when IME appears."Youngjun Kwak
2020-09-10Enable hiding system bars by side when IME appears.kwaky
Bug: 167593045 Test: Manual + Unit Tests Change-Id: Ib0c2c70e2df361f5cce156315c7fd4ae489ae279
2020-09-10Adjust window focusable by view controllerHeemin Seog
Some adjustments to note: 1. remove previous focusability changes per view controller 2. disallow calling insetsController.show/hide without window focus 3. update tests to depend on window focus 4. update DisplaySystemBarsController to refer to parent class for ime insets Bug: 163135884 Test: manual, atest :carsysui-presubmit Change-Id: If5adf599bc2c676ad296f89566534c1fdc9f2492
2020-09-10Merge changes from topic "b166448040-keyguard-message-area"Dave Mankoff
* changes: 3/N Use KeyguardSecurityContainerController in KHVC. 2/N Use KeyguardHostViewController in KeyguardBouncer. 1/N Add Controllers for most KeyguardBouncer related views.
2020-09-10Merge "Replace StackInfo with TaskInfo"Louis Chang
2020-09-081/N Add Controllers for most KeyguardBouncer related views.Dave Mankoff
This adds Controllers to most of the KeyguardBouncer related views, though it does not move much (or any) functionality into them. This is the first step of a few to get View Injection out of the KeyguardMessageArea. The CL was growing large, and I wanted to find a good check-in point before continuing. I also added a "ViewController" utility class in this CL that simplifies some of the repetetive work I've been finding myself writing when implementing other Controllers. It is intentionally left simple, existing only to hook into view lifecycle events. More work to follow. Bug: 166448040 Test: manual && atest SystemUITests Change-Id: Ie59f62e97d979fb753e4a103d37ceca02e327238
2020-09-03Replace StackInfo with TaskInfoLouis Chang
Bug: 148895075 Test: existing test pass Change-Id: I97a12397b61f4ee67810dc4ae0423de07d4befa8
2020-09-02Set HVAC temp asynchronouslyJulia Kawano
The submitted patch of ag/162598687 (patch 6) did not include the final changes made the to HVAC controller and the XML fixes (patch 5). Adding those changes that should have been included, namely async setting the hvac temperature and making the adjustable temperature button values overlayable. Bug: 162598687 Test: atest AdjustableTemperatureViewTest Test: atest HvacControllerTest Test: atest TemperatureTextViewTest Change-Id: Ieaaf4b1e8ea892ac2c16f4aec028c357277e8ae7
2020-09-01Decouple DividerView from SystemUIJerry Chang
Moves FlingAnimationUtils to wm shell library as a common utils for both wm shell and SystemUI. There are some basic interpolators needed for wm shell library. Since they are relative basic and already been put into different packages, duplicates them directly to wm shell library. Bug: 161116823 Test: atest SystemUITests Test: manual check divider animation Change-Id: Iffabb7eff829cad69ef3d273b803f8fbd3ab6685
2020-08-31Merge changes from topic "aaos_systembar_styling_userNameViewController"Julia Kawano
* changes: Add HVAC temp with buttons to nav bar Add username to status bar and update layout
2020-08-28Merge "Fix AAOS SystemUI Presubmit tests that are breaking."Youngjun Kwak
2020-08-28Fix AAOS SystemUI Presubmit tests that are breaking.kwaky
Due to the newly added check in SystemBarConfig, tests can fail erroneously when testing behavior of when either top or bottom system bar is not enabled. Bug: 162599873 Bug: 165808744 Test: atest carsysui-presubmit --include-subdir passing. (5/5) Change-Id: Ife2ac4e746006c39eaf46cd0328c1639149891b2
2020-08-28Handle dynamic systembar inset changeskwaky
Bug: 162599873 Bug: 164203716 Test: Manual + Unit Tests Change-Id: Icde4c103e6d47263d03b25d9432a350be70f0e04
2020-08-27Add HVAC temp with buttons to nav barJulia Kawano
Created AdjustableTemperatureView class that implements the TemperatureView interface to display temperature with buttons to increment and decrement. Updated HvacController to only handle the set temperature HVAC property. Removed uses of deprecated CarHvacManager, using CarPropertyManager instead. Also modified and updated the hvac tests. UI changes: - Add driver and passenger HVAC views to nav bar - Use colored arrows with grey circle for hvac increase/decrease Test: atest :carsysui-presubmit --include-subdir Test: Manual - built on flame_car Bug: 162598687 Change-Id: I39151884f2307e861d290de7ad39ea2ec0c256e8
2020-08-27Add username to status bar and update layoutJulia Kawano
Update the status bar with the new UX designs: - Remove driver and passenger HVAC views - Add driver icon (placeholder) and username aligned to start of bar - Move system icons aligned to end of bar (previously next to clock) - Add AM/PM to clock HVAC will be moved into the navigation bar in a separate change. Test: manual - change to guest, change username, change to long username (truncates before clock view) Test: atest :carsysui-presubmit Bug: 162598687 Change-Id: I5b9095adce7fee0970e8b15d307f01eb4adf2b40
2020-08-26Setup KeyguardBouncerComponent.Dave Mankoff
This removes the factory method from SystemUIFactory that built the KeyguardBouncer and moves it into its own subcomponent. This is the first step in removing view injection from the last keygard related views. Bug: 166448040 Test: manual Change-Id: I4a682f324dcee6d506b0f286f8f61682f9777859
2020-08-20Migrate splitscreen to WM shell lib (2/n)Jerry Chang
Removes Divider from SystemUI component list since it is no longer needed after the split screen feature migrated to WM shell library. Provides optional controller of split screen for sysui components to use. Different varients of SystemUI could leverage dagger module to decide whether to load the controller or not. Implements WMShell component in SysUISingleton scope to help delegating sysui specific events to WM shell controllers. Detached DisplayImeController's initialization step from split screen feature with the reason that some of SystemUI varients might not have split screen feature. Bug: 161116823 Test: atest SystemUITests Test: atest SystemUIGoogleTests Test: atest CarSystemUITests Test: manual verified spliscreen behavior Change-Id: I4220b5ce53bc7b793b95cfca34100e808b9f052c
2020-08-05Merge "Fix flaky test in ConnectedDeviceVoiceRecognitionNotifierTest." into ↵Youngjun Kwak
rvc-qpr-dev am: 96540963a8 am: 6edd2af4d3 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12300500 Change-Id: Iaa5099ad1eb2cc4e63332beb93e3e30919719c00
2020-08-05Merge "Fix flaky test in ConnectedDeviceVoiceRecognitionNotifierTest." into ↵Youngjun Kwak
rvc-qpr-dev
2020-08-04Fix flaky test in ConnectedDeviceVoiceRecognitionNotifierTest.kwaky
Bug: 161892451 Test: atest ConnectedDeviceVoiceRecognitionNotifierTest now passes without flakiness (10/10) Change-Id: I95acf0fdbfa7ff1bf6bf02f7c3defbed27510250
2020-08-03Update language to comply with Android's inclusive language guidancekwaky
See https://source.android.com/setup/contribute/respectful-code for reference Bug: 162536543 Bug: 162511257 Test: Manual (Build succeeds) + Unit Test (AAAPlusPlusVerifySysuiRequiredTestPropertiesTest) passes. Change-Id: If5ec07e0b41a88aad99968d74ec295a7daaa82fe
2020-08-01Merge "Fix SideLoadedAppListenerTest" into rvc-qpr-dev am: 82abf1c4cd am: ↵TreeHugger Robot
aad9f4ac17 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12285756 Change-Id: I41b1c9be35ad673ae7620ede16ec4032077d4bfd
2020-08-01Merge "Fix UserSwitchTransitionViewMediatorTest" into rvc-qpr-dev am: ↵TreeHugger Robot
c7d1702343 am: 9ebbd0fb0b Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12282475 Change-Id: Ia19b68b0ea1ac904cf7469962ee6c87e413b9457
2020-08-01Merge "Fix SideLoadedAppListenerTest" into rvc-qpr-devTreeHugger Robot
2020-07-31Fix SideLoadedAppListenerTestkwaky
Display2 is expected to return stack info that is not safe, and so it is expected that onUnSafeTaskDisplayedOnDisplay is called for it. Bug: 161892451 Test: Unit Test Change-Id: I3e3afbadff4cb2fc252c5b0d4fe32bd9ce19097a
2020-07-31Fix UserSwitchTransitionViewMediatorTestkwaky
First, it has to extend SystemUiTestCase to pass AAAPlusPlusVerify Test. Second, CarDeviceProvisionedController is injected into the Mediator and mocked in its test to correctly test case where the user life cycle event is being applied to the current user and a case when it is not. Bug: 161892451 Test: Unit Test (the corresponding tests passing now.) Change-Id: I8be7dacaa1bf0abb87dcb357c37e58ce511132d2
2020-07-29Merge "Allow SystemBar configuration via XML." into rvc-qpr-dev am: ↵Youngjun Kwak
4dbcd829fb am: 36b52feeb7 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12181454 Change-Id: I6ef84cef8f71763baba5f130f16c36b4aaf427a6
2020-07-29Allow SystemBar configuration via XML.kwaky
Bug: 160028073 Bug: 161825538 Test: Unit Tests + Manual -- CarNavigationBar reads configs from SystemBarConfigs and applies them as intended. It throws an error when the config validation fails. Change-Id: If1575bdc2549058600fb80fa0d6c340fd3e1dbc5
2020-07-29Migrate wm package in sysui to WM shell lib - CarSystemUITest(4-1/n)Bill Lin
Context: Seperate display listener registration out of constructor to prevent cirsular initialize problem. Use builder to make sure DisplayImeController and DisplaySystemBarsController will be initialized properly. Refeine DisplaySystemBarsControllerTest to factory pattern Fix: 161963879 Bug: 161655636 Test: make CarSystemUI Test: atest DisplaySystemBarsControllerTest Change-Id: I756c4925c576700e6c262a2ecc8f36164ad6361e
2020-07-24Merge "Improve SystemUIOverlayWindow control" into rvc-qpr-dev am: ↵Heemin Seog
663ae9ecf7 am: 22283664e4 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12214889 Change-Id: I6744d262fc474e23823fab49543ee3db95030337
2020-07-23Improve SystemUIOverlayWindow controlAbhijoy Saha
1. Make sysui overlay window views more stable 2. hide/show system bars using insets in SystemUIOverlayWindow Bug: 161926721 Bug: 151617493 Test: Manual & Unit Tests Change-Id: I78fd2b5e8488d2f5006edd9773308e2bb9856d2b
2020-07-22Clean up dependencies to SystemWindowsJerry Chang
There're some classes reaching to DisplayController and IWindowService through SystemWindows, decouple SystemWindows from these classes and inject needed instances directly. Update to use view.getContext instead of injecting context from SystemUI. Bug: 161655636 Test: atest WindowManagerShellTests Test: atest SystemUITests Change-Id: Ic6da21d6e407d222660b86bfb0f975c4f784b7f5
2020-07-22Migrate wm package in sysui to WM shell lib (1/n)Jerry Chang
Bug: 161655636 Test: atest WindowManagerShellTests Test: atest SystemUITests Change-Id: I42f13ee7fbb14ba3b7f33ed5654ec72454dc6dba
2020-07-14Annotate CarSystemUiTests to be run for AAOS pre-submit.kwaky
Bug: 144452110 Test: atest :carsysui-presubmit under packages/CarSystemUI directory. Change-Id: Icec563e6dc2ee4ad27a8a961caa1ffd97ce68d54
2020-07-14DO NOT MERGE Annotate CarSystemUiTests to be run for AAOS pre-submit.kwaky
Bug: 144452110 Test: atest :carsysui-presubmit under packages/CarSystemUI directory. Change-Id: Icec563e6dc2ee4ad27a8a961caa1ffd97ce68d54
2020-07-09Merge "Fix ConnectedDeviceVoiceRecognitoinNotifierTest" into rvc-qpr-devHeemin Seog
2020-07-08Added systemui controller to control system bars.JianYang Liu
When config_remoteInsetsControllerControlsSystemBars is true, DisplaySystemBarsController provides its own policy of how system bars are displayed for specific packages. Currently limited to only auto versions of Android. Bug: 149585273 Test: Manual, atest BarControlPolicyTest, atest InsetsPolicyTest, atest DisplaySystemBarsControllerTest Change-Id: Ie6b1cc3e2760cbc9e48d62dfbd8bc3e23ffca20c Merged-In: Ie6b1cc3e2760cbc9e48d62dfbd8bc3e23ffca20c
2020-06-29Fix ConnectedDeviceVoiceRecognitoinNotifierTestBabak
- Adds bluetooth device to the intent since it is required by other receivers which can cause issues if test is running while other receivers are listening for the bluetooth broadcast. - Fixes a potential flakiness by making sure the looper processes all the messages. Fix: 154515909 Test: Manual Change-Id: Ib9c6f9eed20336cafcf9d984edd60eb311195e5e
2020-06-19Updated NotificationPanelViewController to listen toJianYang Liu
animateExpandNotificationsPanel and animateCollapsePanels. Callbacks necessary for legacy notification system. Also added notification visibility reporter. Bug: 152056864 Test: atest NotificationAssistantServiceTest Change-Id: I8fa114824a54c06babd8bda2b789a6a16cd52357