Commit Graph

37275 Commits

Author SHA1 Message Date
Evan Rosky
1d650e941c Merge "Add per-display Configuration change reporting" 2019-11-22 23:43:49 +00:00
TreeHugger Robot
d9f8512fe8 Merge "Remove Dep.get(MAIN_HANDLER) from TileQueryHelper" 2019-11-22 20:14:30 +00:00
Fabian Kozynski
118612037b Merge "Use NfcAdapter#getDefaultAdapter in NfcTile" 2019-11-22 20:14:18 +00:00
Evan Rosky
822070856d Add per-display Configuration change reporting
Adds reporting per-display configuration changes to
hierarchy listeners. On system-ui's side, the
DisplayWindowController then dispatches to other registrants
within the process.

Bug: 133381284
Test: Added testDisplayWindowListener
Change-Id: I68c4e9e229b97a9e91ad0d4f5276447a947c413b
2019-11-22 11:36:11 -08:00
TreeHugger Robot
daa5ac49ac Merge "Make taps on the row toggle switches" 2019-11-22 18:26:37 +00:00
Fabian Kozynski
19dac3d925 Use NfcAdapter#getDefaultAdapter in NfcTile
This uses the default adapter to match the one used by Settings.

Fixes: 143194158
Test: manual, add tile
Change-Id: If4534cd33adb2c031e1f2f3e1f83995d1b10844c
2019-11-22 13:19:48 -05:00
Fabian Kozynski
4b46f51d75 Merge "Remove BroadcastReceiver ref on unregister" 2019-11-22 14:31:34 +00:00
TreeHugger Robot
13228b0d42 Merge "Update QS tiles in retail demo mode" 2019-11-22 01:02:04 +00:00
David Su
7053199213 Merge changes from topic "rssi-level-thresholds"
* changes:
  Add new WifiManager API to calculate signal levels
  Fix broken test caused by calculateSignalLevel() migration
  Migrate WifiStatusTracker calculateSignalLevel()
2019-11-22 00:07:50 +00:00
Fabian Kozynski
e68fa407ff Remove BroadcastReceiver ref on unregister
There were unremoved references in a map in UserBroadcastDispatcher that
were not being removed on unregister, leaking objects.

Test: atest UserBroadcastDispatcherTest
Test: hprof
Fixes: 144937054
Change-Id: Icc33a28711eadcd0d566c468f34e76a3913700f3
2019-11-21 16:16:29 -05:00
Dave Mankoff
2bbbdead1c Merge "Remove Dependency.staticOnConfigurationChanged" 2019-11-21 18:17:10 +00:00
Tiger Huang
e155ed48fa Merge "Window Manager Flag Migration (6/n)" 2019-11-21 16:23:32 +00:00
TreeHugger Robot
11f38a9609 Merge "Remove IBatteryStats call from setDozing" 2019-11-21 03:26:45 +00:00
David Su
5c52237456 Fix broken test caused by calculateSignalLevel() migration
calculateSignalLevel() implementation used by
WifiStatusTracker has changed. Update test to mock
new logic.

Bug: 140781184
Test: atest NetworkControllerWifiTest
Change-Id: I348137f2de7944c9600d939bb86cbfef14fcd3b9
2019-11-20 15:15:37 -08:00
Lucas Dupin
9131b28fb1 Remove IBatteryStats call from setDozing
We should only update the charging state when there's a battery
event. Not whenever we need to refresh the text field.

Fixes: 142959859
Test: manually plug and unplug device
Test: atest KeyguardIndicationControllerTest
Change-Id: I902eb838a1bf81a8c85655423c3ea218a93afd00
2019-11-20 21:24:41 +00:00
TreeHugger Robot
2cb49a0f76 Merge "Remove Dependency.get(MAIN_HANDLER) from NavigationBarFragment" 2019-11-20 18:11:05 +00:00
TreeHugger Robot
56e2bd284f Merge "Remove Dependency.get(MAIN_HANDLER) from NotificationListener" 2019-11-20 18:10:35 +00:00
TreeHugger Robot
e83eb253b1 Merge "Remove Dependency.get(MAIN_HANDLER) from SystemUIService" 2019-11-20 18:10:04 +00:00
TreeHugger Robot
7c8b275096 Merge "Remove Dependency.get(MAIN_HANDLER) from NotificationLockscreenUserManagerImpl" 2019-11-20 18:09:35 +00:00
Dave Mankoff
bba732de8a Remove Dependency.staticOnConfigurationChanged
ConfigurationChangedReceiver is removed. Classes that want to be
notified of configuration changes should implement
ConfigurationController.ConfigurationListener instead and register
themselves with the ConfigurationController.

Bug: 144782965
Test: atest SystemUITests
Change-Id: Id2c3fe5ae2729b181769fb31b8050da264299d72
2019-11-20 13:09:27 -05:00
Bill Yi
122eed5d5d Merge "Import translations. DO NOT MERGE" 2019-11-20 18:07:10 +00:00
Jay Aliomer
9d2c933544 Merge "Dark theme twilight mode backend and tile" 2019-11-20 16:41:22 +00:00
Dave Mankoff
2417b96d2c Remove Dep.get(MAIN_HANDLER) from TileQueryHelper
Bug: 144503618
Test: atest SystemUITests
Change-Id: I2785b1f05dc5f047b84656e9bf63a483f2e9ba21
2019-11-19 22:53:37 -05:00
Dave Mankoff
5fe07f7047 Remove Dependency.get(MAIN_HANDLER) from NotificationGutsManager
Bug: 144503618
Test: atest SystemUITests
Change-Id: I6e3050127bb502b70f37e4307adb1d0c09a17646
2019-11-19 22:14:41 -05:00
Dave Mankoff
9427d1fc6d Remove Dependency.get(MAIN_HANDLER) from NotificationLockscreenUserManagerImpl
Also, clean up a bunch of other injectable objects.

Bug: 144503618
Test: atest SystemUITests
Change-Id: I5ec005ee21689d800238fa30c86ef6e08b832bbf
2019-11-19 21:54:51 -05:00
Dave Mankoff
6711ec9e45 Remove Dependency.get(MAIN_HANDLER) from SystemUIService
Bug: 144503618
Test: atest SystemUITests
Change-Id: Ia75498b500333ac4924f1b1e3f7831f7ff7754e3
2019-11-19 21:24:34 -05:00
Dave Mankoff
c5e7958587 Remove Dependency.get(MAIN_HANDLER) from NotificationListener
Bug: 144503618
Test: atest SystemUITests
Change-Id: Ia919358337798b94b7b33625435aa3b603fb0455
2019-11-19 21:08:06 -05:00
Dave Mankoff
ea1953c7c4 Remove Dependency.get(MAIN_HANDLER) from NavigationBarFragment
Bug: 144503618
Test: atest SystemUITests
Change-Id: Ifeaf037898ec0e20dd056d87468cea9cbb6c65a6
2019-11-19 20:32:11 -05:00
Bill Yi
7bbe7dd00e Import translations. DO NOT MERGE
Change-Id: Id7470e8c4b3bedbffe3671c32e6e543cbee3a7ab
Auto-generated-cl: translation import
2019-11-19 16:44:02 -08:00
TreeHugger Robot
f9d55f7c8f Merge "Let SysUI call Settings.Secure#getInt" 2019-11-20 00:32:46 +00:00
TreeHugger Robot
1e7cf17f15 Merge "Dependency.get(BG_HANDLER) is dead. Long live @BgHandler." 2019-11-20 00:25:37 +00:00
Lucas Dupin
fe590e4c8c Let SysUI call Settings.Secure#getInt
This call is cached locally by Settings

Fixes: 140058091
Test: make
Change-Id: Ia5eb335e2de69b39095b7d151d4d1e128c9abbd8
2019-11-19 15:05:34 -08:00
Satakshi Rana
2e3f844107 Merge "Passing feedback for screenshots in SysUI" 2019-11-19 22:47:13 +00:00
Christine Franks
2e28a9aff2 Update QS tiles in retail demo mode
Bug: 140823330
Test: manual
Change-Id: I5a22f41cbb9557716a5bb9c74706116e9f046b95
2019-11-19 22:46:59 +00:00
Dave Mankoff
9b5ae1a3aa Dependency.get(BG_HANDLER) is dead. Long live @BgHandler.
Bug: 9755874
Test: atest SystemUITests
Change-Id: I3fd4f9e72e7917041786a4c823fe5824fa49916b
2019-11-19 17:43:12 -05:00
TreeHugger Robot
eb85a63a3a Merge "Support showing alignment hint based on aligniment state of dock" 2019-11-19 22:09:23 +00:00
TreeHugger Robot
2f15dae050 Merge "Replace Dependency.get(BG_HANDLER) with constructor injection." 2019-11-19 22:00:23 +00:00
TreeHugger Robot
46c7b37ee9 Merge "Move logic from QSCarrierGroup into Controller." 2019-11-19 21:20:48 +00:00
Satakshi
aaf695366e Passing feedback for screenshots in SysUI
Test: Took a screenshot and verified that AiAi gets notified for
share/edit/delete/smart action clicked and exceptions thrown.
Ran tests-
'atest ScreenshotNotificationSmartActionsTest'
'atest ScreenshotNotificationSmartActionsGoogleTest'
Bug: 142669323
Change-Id: Ief6400549b30cf1c0c8a374aa443cf6347f84875
2019-11-19 13:18:17 -08:00
Dave Mankoff
f8adafedd7 Replace Dependency.get(BG_HANDLER) with constructor injection.
Bug: 9748934
Test: atest SystemUITests
Change-Id: Ic0889c429b3a5d99e983daa448fbedf5af0bb397
2019-11-19 15:55:50 -05:00
TreeHugger Robot
1b29852387 Merge "Test that appOps added to notifs from mainThread" 2019-11-19 20:20:37 +00:00
Beverly
9141569c8c Test that appOps added to notifs from mainThread
Test: atest ForegroundServiceControllerTest
Fixes: 144170894
Change-Id: If9ae7dc81e1b853b2904821baf23eaf55b289fc6
2019-11-19 14:13:02 -05:00
Dave Mankoff
c4fe6c4ffd Move logic from QSCarrierGroup into Controller.
This removes the injection into the QSCarrierGroup view
and moves it into an associated controller instead.

Controllers are added for QSCarrierGroup, QSContainer,
and QuickStatusBarHeader, though only QSCarrierGroup does
any heavy lifting at the moment. The other controllers are
parent controllers that are needed to ensure everything is
cleanly initialized when the view is inflated.

Bug: 144503618
Test: atest SystemUITests && manual
Change-Id: Iee539b492581f84b25811a9ae2d60426b49b075d
2019-11-19 13:26:28 -05:00
Fabian Kozynski
353ed42c29 Merge "Do not notify onOpNoted if less than 5s" 2019-11-19 14:39:13 +00:00
Jerry Chang
6a8fb02aa7 Support showing alignment hint based on aligniment state of dock
Bug: 141984730
Test: atest SystemUITests:KeyguardIndicationControllerTest
Change-Id: Ic0911683725a0e54406df06b948169c4dde94764
2019-11-19 22:37:59 +08:00
Jerry Chang
945589890e Merge "Revert "Support showing alignment hint based on aligniment state of dock"" 2019-11-19 10:51:23 +00:00
Robert Horvath
16af2395a7 Merge changes from topic "inattentive-sleep"
* changes:
  Remove inattentive sleep string translations
  Fade out inattentive sleep warning overlay
2019-11-19 09:29:07 +00:00
Jerry Chang
dcbffea788 Revert "Support showing alignment hint based on aligniment state of dock"
This reverts commit 43a49c8398.

Reason for revert: Should be topic with the other changes

Change-Id: I84223ddd28a6b1bfc3fde27bc4af4940e0df3636
2019-11-19 09:15:37 +00:00
TreeHugger Robot
80a32fe061 Merge "Support showing alignment hint based on aligniment state of dock" 2019-11-19 08:50:26 +00:00
TreeHugger Robot
db32920931 Merge "Import translations. DO NOT MERGE" 2019-11-19 05:05:25 +00:00