summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/tests
Commit message (Collapse)AuthorAgeFilesLines
* SystemUI: Fix CallbackHandler and NetworkControllerBase tests.Adnan Begovic2016-01-122-2/+7
| | | | Change-Id: I075762da167072e15769012135b70c8f4cad2ba9
* SystemUI: Revert CAF UI modificationsMichael Bestas2015-12-122-15/+3
| | | | | | | | | | | | | | | | Revert "SystemUI: Support display for radio tech" This reverts commit 598421095aacb599d4bc8e8fcea20734d7847d0c. Revert "SystemUI: Customize StatusBar for Chinese carrier" This reverts commit d473d0b22ac8704c39d5eedd0d7b12f60a2fa215. Revert "Statusbar: Add customized icons for Chinese carrier" This reverts commit a6324c7293bebeff4c6ccee8c2a8af38b7a150a8. Change-Id: Ib03c7455a04bd7d63a8c0a7d238040099e94e89c
* SystemUi: Fix systemui tests.Adnan Begovic2015-12-101-1/+1
| | | | Change-Id: Ifde8b513b98c03423dfd4744204e056faa42438e
* SystemUI: fix building test packageDanesh M2015-12-011-0/+3
| | | | | Change-Id: Iefcb97a77ec58e91f4f9b8e8ec99734ac4cdf348 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: Customize StatusBar for Chinese carrierShufeng Hou2015-11-022-3/+15
| | | | | | | | | | | | | | | | 1. Show carrier label in notification panel. 2. Add values-w320dp to adapt lower resolution device. 3. Update Chinese roaming string. 4. Show wifi activity in status bar. 5. Show indicator for Wifi on but not connected. 6. Show rsrp level for LTE. 7. Redesign the scheme of selecting icons on signal cluster. Customized SigalClusterView and MobileSignalController to adapt requirement from Chinese carriers. The customization is controller by config values defined in overlayed config.xml. CRs-Fixed: 653747 Change-Id: I4b228cc4afa552b348a96302a4858a0ab0c7e7f0
* Add sizes to SysUI testsJason Monk2015-07-285-0/+10
| | | | Change-Id: I27e4a60e2658d3a5db32cdeb73bd0a031865ce86
* Fix emergency only when no simsJason Monk2015-07-231-2/+12
| | | | | | | | Need to look at a ServiceState to determine if we are actually in a emergency only state. Bug: 22619451 Change-Id: I06a2a6fab85ed2ce41d8f7cbb98a1f169ec61b33
* Merge "Remove data icon for WFC" into mnc-devJason Monk2015-07-091-0/+8
|\
| * Remove data icon for WFCJason Monk2015-07-091-0/+8
| | | | | | | | | | Bug: 22095746 Change-Id: I0ca8420c2d88425cbb6da5fcc02c083355e933e9
* | Fix roaming icon when not default signalJason Monk2015-07-081-0/+1
|/ | | | | Bug: 22183802 Change-Id: I0d38f23d81b79e53e3d92db8c6f6a1455a94da4c
* Fix EmergencyCallback in NetworkControllerJason Monk2015-06-113-15/+60
| | | | | | | | | - Do some cleanup so that things are more testable - Test emergency callback since its possible - Fix emergency callback in no sims case Bug: 16218652 Change-Id: Ic859eff732cc11c5ae8aa6ced3584905bbe215c7
* Show Carrier Network Change icon SysUI even while connectedAndrew Flynn2015-06-021-35/+3
| | | | | | | | Taking connect/disconnect events into accounts results in frequent jank while trying to show the icon. Bug: 21504588 Change-Id: If271980cc46cfc20f80083de17a4b57c42439069
* Remove separate light/dark animated vector drawablesAndrew Flynn2015-06-013-20/+6
| | | | | | | | Now that AnimatedVectorDrawables can use themed animations, SysUI no longer needs to track separate AVDs for the carrier network change icons. Bug: 21118142 Change-Id: Ifb6d7b5e7e3de85c10bc13183b4142fd2e6714b6
* Show data icon when appropriate.Jason Monk2015-05-186-42/+36
| | | | | | | | | | Show it in the status bar when its a default network, but always show it in QS when its connected, so that users can know its connected. Also fix the tests. Bug: 18776546 Change-Id: I553588fc6850b0c2ef6e6015b313222bf4c786e7
* Move NetworkController broadcasts/listeners to BGJason Monk2015-05-186-83/+268
| | | | | | | | Also do some refactoring to avoid having to sets of callback interfaces with 75% of the same data. Bug: 19520495 Change-Id: Ife1c71174c0d6a21f924f7de3cb2f97a04c3d5a1
* WiFi Calling: Show different operator name string in Data usage dialog.Pavel Zhamaitsiak2015-05-051-1/+1
| | | | | | Bug: 19950657 Change-Id: I9999d58e78154ed2d6d824973c40011875de15ef (cherry picked from lmp-mr1-wfc-dev)
* Merge "SystemUI Carrier Network Change unit tests" into mnc-devAndrew Flynn2015-05-042-3/+79
|\
| * SystemUI Carrier Network Change unit testsAndrew Flynn2015-05-042-3/+79
| | | | | | | | | | | | | | | | | | | | | | - Includes unit tests for verifying mobile data indicators. - Found one bug where dark mode icon wasn't showing properly when different from light mode icon. - Comment out failing test NetworkControllerSignalTest#testSetCurrentSubscriptions Bug: 20288155 Change-Id: Ib3c9ba224c4187cab35d6bfa68f6bd4c489cf98e
* | Add a status bar icon for Ethernet.Lorenzo Colitti2015-05-021-0/+40
|/ | | | | Bug: 20613953 Change-Id: I52970b4f5fb6429876d1a2eb195a834c9e020021
* SysUI: Carrier Network Change iconAndrew Flynn2015-04-161-1/+1
| | | | | | | | | | | | - Listen for new PhoneStateListener.CARRIER_NETWORK_CHANGE events. - Show/hide a new unique animated icon in status bar and quick settings during Carrier Network Change events if we are instructed by PhoneStateListener and it's during a period without connectivity. - ObjectAnimator doesn't let you animate colors between themed colors, so there's quite a bit of boilerplate duplication in the animation xml. - Add a new demo mode command to toggle it on/off. Change-Id: Ic5bb2aa7444303c6b7f2456526a9c25325c6e1f4
* Integrate Heads-up notifications into the shadeSelim Cinek2015-04-151-261/+0
| | | | Change-Id: I4ca0fb4e76e7c974490538c168da0564fe97e0ae
* Merge "Up the history on SignalControllers"Jason Monk2015-02-171-0/+5
|\
| * Up the history on SignalControllersJason Monk2015-02-111-0/+5
| | | | | | | | | | | | | | | | Also add a test for it, because despite the comment next to it, I try to set it to an invalid value... Bug: 19201696 Change-Id: I3c12c871c73ad5ab15f39a6b91b29c71101adad6
* | Don't let the heads up close too quickly.Chris Wren2015-02-043-5/+294
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The public API of HeadsUpNotificaitonView was not well suited to the new requirements, so it changed slightly. Old API: - showNotification: show or update a notification - clear: close the window and forget the notification - release: send the notification to the shade and forget about it. - releaseAndClose: release and close the window - dismiss: clear the notification if clearable, or release it New API: - showNotification: show a new notification - updateNotification: show a new version of the same notification - removeNotification: respond to a cancel - release: send the notification to the shade at some point - releaseImmediately: send the notification to the shade right now The new API makes updating vs. posting and removing vs. releasing more explicit. There is a new internal concept: lingering. The heads up lingers after an event that would have closed it if the minimum visibility time has not been satisfied. In the case that the notification was deleted, the heads up may be visible, but mHeadsUp will be null. In this case, touches on the notification views are disabled. More responsibility for control of the heads of policy was moved into the HeadsUpNotificaitonView class. This should continue on master. Some changes to support testing. Added a test to cover all the edge cases for minimum visibility time: 1. extend visibility when canceled too soon 2. extend when updated with a low-priority version, fast update. 3. extend when updated with a low-priority version, slow update. 4. don't extend the visibility in any other case TODO: Policy parts of HeadsUpNotificationView should be split out into a separate HeadsUpNotificationPolicy class, and even more of the policy should be lifted from status bar that new class. Bug: 17878008 Change-Id: I192419d0685dd022ee7edcd792e346a4f39c6adb
* Merge "Create SettingsLib"Jason Monk2015-02-021-0/+2
|\
| * Create SettingsLibJason Monk2015-02-021-0/+2
| | | | | | | | | | | | | | | | This will hold common code that SystemUI and Settings (and others) will share. Bug: 19180466 Change-Id: I6614b31d6c3b0a2d426a2aa8ce66725245339d22
* | Fix SysUI tests to pass.Jason Monk2015-01-292-17/+7
|/ | | | | | | | | | | Most were fixed by including the correct subscription id in the broadcast. The last was testing based on SIM card state which is not something the MobileSignalControllers track anymore so I just pulled it out completely. Change-Id: Ie52068a3c8f8652f1b0641e6376696aeddda26a2
* SysUI: Separate SignalControllers into separate filesJason Monk2015-01-072-17/+43
| | | | | | and remove the TODO that says to do it. Change-Id: I54ac3f27f9246aea87d21f2a1da6608ae675aae6
* resolved conflicts for merge of 336c4666 to masterJason Monk2015-01-052-2/+88
|\ | | | | | | Change-Id: I350b3ecadce490b62c92c0e7b1d555825d035f87
| * Don't unregister MobileSignalControllers still usedJason Monk2015-01-052-2/+90
| | | | | | | | | | | | | | | | | | Also add some more testing for this section of code that manages when MobileSignalControllers are added/removed to make sure we are all good. Bug: 18728593 Change-Id: I9902854c54d2e1deb58b38b7bd97dac1617831c0
* | am f8dd5f6a: am a47f968d: Merge "Handle config changes in NetworkController" ↵Jason Monk2014-12-121-4/+34
|\ \ | |/ | | | | | | | | | | | | | | into lmp-mr1-dev automerge: 89b75bd * commit '89b75bdbf64416cfea39641a85bf6458212a32bf': Handle config changes in NetworkController
| * Handle config changes in NetworkControllerJason Monk2014-12-121-4/+34
| | | | | | | | | | | | | | | | We need to remap or recalculate icons after a config change, so configs based on mccmnc can update properly. Bug: 18654943 Change-Id: I6a4c1debf9b266d486143b9869abb569bbc31aef
* | am 10680627: am a6869700: Merge "Fix tests after inet changes in ↵Jason Monk2014-12-123-34/+28
|\ \ | |/ | | | | | | | | | | | | | | NetworkController" into lmp-mr1-dev automerge: 19b6ae0 * commit '19b6ae0fe82913a9838a43f60ae330197d4ef978': Fix tests after inet changes in NetworkController
| * Fix tests after inet changes in NetworkControllerJason Monk2014-12-123-34/+28
| | | | | | | | | | Bug: 17460017 Change-Id: Iee9c4399f5ca4413f1449cfcf05d72a67b0adadc
* | am 5a938481: am d6b001f1: am 8d72046b: Merge "Don\'t show no sim icon on ↵Jason Monk2014-12-032-0/+36
|\ \ | |/ | | | | | | | | | | wifi devices" into lmp-mr1-dev * commit '5a938481f3fc8c3e84d3ce07234363f4d6c26f40': Don't show no sim icon on wifi devices
| * Don't show no sim icon on wifi devicesJason Monk2014-12-022-0/+36
| | | | | | | | | | Bug: 18222975 Change-Id: I82143ad23fa6c4dc5ed57d682186e1bb977a6fe1
* | SysUI Tests: Added some tests for mobile icon.Leigh Anne2014-12-022-2/+177
|/ | | | | | | Testing to verify correct mobile icon in edge cases such as no sim, or no mobile data feature. Tests for updating the network name. Change-Id: I0e4114d0c1e4109d4b2aae761181bedb841fe8b6
* SysUI: Actual MSIM status bar supportJason Monk2014-12-023-13/+25
| | | | | | | | | | | | Expand SignalClusterView and NetworkController to handle multiple SIMs. It does this by creating multiple MobileSignalControllers for each of the active subscriptions on the device. Also some minor changes for followup on the NetworkController refactor that went in before this. Bug: 18222975 Change-Id: Ic7a857cfc5cadb46d51bb9ded0df8187eea799f7
* SysUI: Refactor the NetworkControllerImplJason Monk2014-11-183-16/+15
| | | | | | | | | | | | | | | | | Minimal changes to interface/callbacks, all of the changes are internal and prepare for MSIM. Separate out AccessPoint and MobileData from the NetworkController interface to give some space. A SignalController class has been created as a base for both WifiSignalController and MobileSignalController, both of which internally handle the state of their respective connectivity and only reach up into the NetworkControllerImpl when completely necessary (such as for combined carrier label). Bug: 18222975 Change-Id: I75b954bbece187371cdb8571dd8420e7d2cad978
* SysUI Tests: Make tests not break SysUIJason Monk2014-11-176-7/+18
| | | | | | | | | | | | | | Now you can run the tests without getting the blank broken sysui. The tests instrument themselves so they include all of the source they need to run rather than piggybacking on the sysui process. A couple of changes were needed for this. The xml files cannot reference com.android.systemui, instead they must use res-auto. The tests can no longer make privileged calls, so some restructuring to avoid those calls was needed. Bug: 18222975 Change-Id: I67b794af854f1420583d48960bd6e52ca753b56d
* SysUI: Add basic test coverage for signal levelsJason Monk2014-11-125-48/+498
| | | | | | | | | Add some tests that verify for varios wifi, and mobile signal strengths and types that the correct icons are sent out in the callbacks. Still in prep for MSIM refactoring. Bug: 18222975 Change-Id: I477bf9a90e5c32fb1cba9c150ec6314f4b707108
* Prepare for testing the NetworkControllerImplJason Monk2014-11-075-1/+207
| | | | | | | | This will allow us to add some test cases to verify that under certain phone/signal conditions we get out the icons we expect. This will let us break less things when refactoring for MSIM. Bug: 18222975 Change-Id: I7bd3e66e7de6b30fede72e40fb6aa37dd523336c
* Add functional test for screenshots.Brett Chabot2011-07-285-0/+263
Change-Id: Ice2cbc656f9814da7d0634644a250c1af9243ad1