Commit Graph

11837 Commits

Author SHA1 Message Date
Al Sutton
3b4e1e9931 Remove unused code
Change-Id: I4f31141272facb092a18ffa28e582523c3eeef88
Test: atest ArrayUtilsTest
2019-08-05 11:07:27 +01:00
Fabian Kozynski
9b2be8d293 Merge "Prototype dual panel swipe" 2019-08-02 14:18:45 +00:00
Al Sutton
c71fb23b4b Merge "Support varargs for concatElements" 2019-08-02 07:46:26 +00:00
Fabian Kozynski
786974f14a Prototype dual panel swipe
This CL only reroutes swipes on the right side of the screen (left side
for RTL) to perform a two-finger swipe, opening QS instead of
notification shade.

Enable: "adb shell device_config put systemui qs_split_enabled false"

Test: manual

Change-Id: I96feed6440121b0c07606b398c9e2bb82570ef11
2019-08-01 15:33:41 -04:00
Artur Satayev
70507ed5a1 Add @UnsupportedAppUsage annotations for max-p.
See go/UnsupportedAppUsage for more details.

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 137350495
Test: m
Change-Id: I5aa29a49b193db47aaee4d3a756c17f48cc9f0b1
2019-08-01 19:46:29 +01:00
Al Sutton
3c072e6fe6 Support varargs for concatElements
concatElements currently can only support two arrays, this CL changes
it to use varargs so we can make use of it in an upcomming change which
needs a three way merge.

I've replaced the two way method with the varargs version, but I'm open
to discussion around keeping them both if the optimisations we can do
for a two way merge are seen as more valuable than the space saving from
having only one concatElements method.

Bug: 28437818
Test: atest ArrayUtilsTest
Change-Id: I634d279ceef7cd620efaf5a2c566e3ebadf6738e
2019-08-01 17:07:46 +01:00
Artur Satayev
fa05ca260a Add @UnsupportedAppUsage annotations.
This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 137350495
Test: m
Change-Id: I55c7845cb7c22808a85dd5185eccfe93c2064b76
2019-08-01 13:44:37 +01:00
TreeHugger Robot
cf695aabfd Merge "Move InputMethodSytemProperty to server from client." 2019-08-01 00:41:25 +00:00
Beth Thibodeau
1d6baab3a2 Merge "Revert "Stop timer when notification isn't visible"" into qt-dev am: 628f975c22 am: 51185d56d2 am: b22a4e5cf1
am: a35f35c2e9

Change-Id: Ice5af8d9c4814d457ba28f3f362d9cdad6119bcc
2019-07-31 15:42:36 -07:00
Beth Thibodeau
a35f35c2e9 Merge "Revert "Stop timer when notification isn't visible"" into qt-dev am: 628f975c22 am: 51185d56d2
am: b22a4e5cf1

Change-Id: Ie1cba1949cb8f94bb2f55c8a1b79b4950a237586
2019-07-31 14:50:38 -07:00
Beth Thibodeau
51185d56d2 Merge "Revert "Stop timer when notification isn't visible"" into qt-dev
am: 628f975c22

Change-Id: If351a368f5a1132e61dab1e7a1b1d5e290b092f7
2019-07-31 14:14:40 -07:00
Beth Thibodeau
4c9726e041 Revert "Stop timer when notification isn't visible"
This reverts commit 3c4a8e48d4.

Reason for revert: NPE errors
Fixes: b/138697134

Change-Id: Ic89eb58cd68485dcc5e7c5a3ef48d7ed79c303ca
2019-07-31 20:26:19 +00:00
Kweku Adams
6c5dc642a1 Removing JobScheduler heartbeat code.
Data shows that the quota based system has a small impact on battery life
while still addressing the core issues we had with the heartbeat system.
We can continue to tweak numbers and make some policy adjustments to the
quota system, but at this point, it appears safe to remove the
heartbeat code.

Bug: 138324538
Test: atest com.android.server.cts.JobSchedulerIncidentTest
Test: atest com.android.server.job.JobSchedulerServiceTest
Test: atest com.android.server.job.JobStoreTest
Test: atest com.android.server.job.controllers.ConnectivityControllerTest
Test: atest com.android.server.job.controllers.JobStatusTest
Test: atest com.android.server.job.controllers.QuotaControllerTest
Test: atest CtsJobSchedulerTestCases
Change-Id: I2b025ca426387ece123c0b8ed8bcc143f6c6d6db
2019-07-30 16:04:36 -07:00
Kalesh Singh
48c0a998f0 Merge "Get native wakelock stats from SystemSuspend if /sys/class/wakeup not available." am: dec3796249 am: 8ad549cdf2 am: 9c1224cfa3 am: 5f669a5009
am: d2293bfa36

Change-Id: Ie16551a458b22b66c7e0d1d10d613285b6484f27
2019-07-30 13:21:55 -07:00
Kalesh Singh
5f669a5009 Merge "Get native wakelock stats from SystemSuspend if /sys/class/wakeup not available." am: dec3796249 am: 8ad549cdf2
am: 9c1224cfa3

Change-Id: I31802f57dcf2e6fc4fd509ea95864259ab90565a
2019-07-30 12:15:24 -07:00
Kalesh Singh
9c1224cfa3 Merge "Get native wakelock stats from SystemSuspend if /sys/class/wakeup not available." am: dec3796249
am: 8ad549cdf2

Change-Id: I8a3b3915759ba06ec673d21e609ed4d82078eaa1
2019-07-30 12:00:39 -07:00
Kalesh Singh
8ad549cdf2 Merge "Get native wakelock stats from SystemSuspend if /sys/class/wakeup not available."
am: dec3796249

Change-Id: I994a051e37e53417ab8df6df13318adcf071945b
2019-07-30 11:36:12 -07:00
Makoto Onuki
3074086120 Merge "Move the job scheduler service code to its own jar file." 2019-07-30 15:27:16 +00:00
Beth Thibodeau
2ec68155dd Merge "Stop timer when notification isn't visible" into qt-dev am: 7256c379df am: 8594033be0 am: 487868ff02
am: 5114045f56

Change-Id: Ic07fc80edfc041166eab4843de67f472a9e4b5e7
2019-07-29 15:49:34 -07:00
Miranda Kephart
5e7ba7874f Merge "Add phenotype flags for transcription speed" into qt-r1-dev am: bb600247ec am: e5dadcc252
am: 1015ccc66f

Change-Id: I3a4597201b099a5434a38832321f4ad9124d16f9
2019-07-29 15:18:35 -07:00
Beth Thibodeau
5114045f56 Merge "Stop timer when notification isn't visible" into qt-dev am: 7256c379df am: 8594033be0
am: 487868ff02

Change-Id: I63ed867d1f35bf9bdaeab3755ad2186d718c43c7
2019-07-29 15:01:43 -07:00
Beth Thibodeau
d06c69e951 Merge "Stop timer when notification isn't visible" into qt-dev am: 7256c379df
am: 8594033be0

Change-Id: I45e044aa055ac945377a578f325850e00772d4e3
2019-07-29 14:45:41 -07:00
Miranda Kephart
1015ccc66f Merge "Add phenotype flags for transcription speed" into qt-r1-dev am: bb600247ec
am: e5dadcc252

Change-Id: Iac58d33cc7a27883c43c1ead3abef4223b38ac8b
2019-07-29 14:31:28 -07:00
Beth Thibodeau
8594033be0 Merge "Stop timer when notification isn't visible" into qt-dev
am: 7256c379df

Change-Id: If8705c20723e5ee725399e9377f0c6e33e997429
2019-07-29 14:13:58 -07:00
Beth Thibodeau
6d122f1837 Merge "Stop timer when notification isn't visible" into qt-dev
am: 7256c379df

Change-Id: I5b4cdd65de92803b06e425e9716fd91242730199
2019-07-29 14:13:39 -07:00
Miranda Kephart
d28885df81 Merge "Add phenotype flags for transcription speed" into qt-r1-dev
am: bb600247ec

Change-Id: I8ae79afa3d7acccf20e214b931bda5d78252a07d
2019-07-29 13:51:54 -07:00
Miranda Kephart
bb600247ec Merge "Add phenotype flags for transcription speed" into qt-r1-dev 2019-07-29 19:46:21 +00:00
TreeHugger Robot
38f7d6c813 Merge "[wm]: DividerSnapAlgorithm doesn't consider vertical divider" 2019-07-29 19:01:28 +00:00
Makoto Onuki
792de8d648 Move the job scheduler service code to its own jar file.
- Also remove the dependency from SystemServiceRegistry to JobScheduler

See apex/jobscheduler/README_js-mainline.md for the details.

Bug: 137763703
Test: build and boot
Test: atest CtsJobSchedulerTestCases
Change-Id: I2386c78b7a6085d6e543a63f22cb620c4cabd06a
2019-07-29 09:32:02 -07:00
Kalesh Singh
eedacc3221 Get native wakelock stats from SystemSuspend if /sys/class/wakeup not available.
If /sys/class/wakeup is available, get both kernel and native wakelock
stats from SystemSuspend, else we get native wakelock stats from
SystemSuspend and fallback to /d/wakeup_sources for kernel wakelock
stats.

Bug: 128923994
Test: atest FrameworksCoreTests:KernelWakelockReaderTest
Test: Compare dumpsys suspend_control against
      dumpsys batterystats --checkin | grep kwl
      to verify BatteryStats is getting wakelock stats
      from SystemSuspend.

Change-Id: I08e56c984b903285bb965dd853dae4a63fdeb824
2019-07-26 17:07:30 -07:00
Miranda Kephart
6369fc0379 Add phenotype flags for transcription speed
Bug: 138305857
Test: manual (tested along with changes to pick up/use the flags)
Change-Id: I9b65079c75e01829a243ffd1286e8c171438cc6f
2019-07-26 17:02:51 -04:00
hyok.kim
1b652fd994 [wm]: DividerSnapAlgorithm doesn't consider vertical divider
Consider orientation when checking new snapTarget's position
 meets minimal size

Test: atest WmTests:DockedStackDividerControllerTests
Bug: 129522552
Change-Id: I70db9edada07df8aeb24dfaea1e9d4f6e1d69899
2019-07-26 10:20:12 -07:00
Beth Thibodeau
3c4a8e48d4 Stop timer when notification isn't visible
Fixes: 138261464
Test: manual, atest com.android.systemui.statusbar.notification.row.wrapper.NotificationMediaTemplateViewWrapperTest
Change-Id: Id7b1b586f3ab258fad8670070240ef951080c969
2019-07-26 11:33:18 -04:00
Makoto Onuki
a0eb2ddf1a Merge "Revert "Move the job scheduler service code to its own jar file."" 2019-07-25 18:13:15 +00:00
Makoto Onuki
a0c692ff9f Revert "Move the job scheduler service code to its own jar file."
This reverts commit 136d1ecf1e.

Reason for revert: My device didn't boot. :(

Change-Id: I11636c2ad03a3c14f5953a700fc3a2d629a81a42
2019-07-25 18:09:14 +00:00
Makoto Onuki
9343ae0bbe Merge "Move the job scheduler service code to its own jar file." 2019-07-25 16:40:30 +00:00
Vadim Caen
ef4e1cea9b Do not call drawableChanged pre Q
Some apps rely on not updating the window format when changing the
background of the DecorView. To keep the compatibilty with these app we
add only call DecoreView.drawableChanged() when the window background is
changed on app targetting Q and above.

Test: Manually test by lunching Instagram TV and pressing return twice.
The window should aninate with no flickering.
Bug: 136987724

Change-Id: I3593d30dc6f10519008151974e475f0dad86fc64
2019-07-25 15:25:19 +02:00
Kalesh Singh
dfd36454fc Merge "Get wakelock stats from SystemSuspend" am: dff4801d6b am: 7c7c466e1b am: bd2c24e1d1 am: 7faeb8c82f
am: 8ffa2cfcea

Change-Id: Id3a2d8d7bd3df8c141f9764f5381212ca3d99a2c
2019-07-25 01:23:20 -07:00
Kalesh Singh
7faeb8c82f Merge "Get wakelock stats from SystemSuspend" am: dff4801d6b am: 7c7c466e1b
am: bd2c24e1d1

Change-Id: I27016c9f7cb7914f89f608ff0ba1b47d3c677579
2019-07-25 00:51:12 -07:00
Kalesh Singh
bd2c24e1d1 Merge "Get wakelock stats from SystemSuspend" am: dff4801d6b
am: 7c7c466e1b

Change-Id: I149f176165fda0ac02c890677a3c2e97459aaed3
2019-07-25 00:32:06 -07:00
Kalesh Singh
7c7c466e1b Merge "Get wakelock stats from SystemSuspend"
am: dff4801d6b

Change-Id: I96bda190d2935e3a21391e831d23f50526c8fc93
2019-07-25 00:21:12 -07:00
Treehugger Robot
dff4801d6b Merge "Get wakelock stats from SystemSuspend" 2019-07-25 07:02:25 +00:00
Vadim Caen
d6aa056512 DO NOT MERGE Do not call drawableChanged pre Q am: 843f9dee8b
am: 2106ef79ad

Change-Id: Ic5ceb704346deb38d1151f0e1fdc79fbb28ff82d
2019-07-24 16:38:48 -07:00
Vadim Caen
605e74c930 DO NOT MERGE Do not call drawableChanged pre Q
am: 843f9dee8b

Change-Id: I813f41905386da06e6eaebd6b7f85c17a6051456
2019-07-24 16:19:39 -07:00
Vadim Caen
2106ef79ad DO NOT MERGE Do not call drawableChanged pre Q
am: 843f9dee8b

Change-Id: Id54fa3b2327faec88c936228109643c8425eeb2a
2019-07-24 16:17:49 -07:00
Jorim Jaggi
d007c7b90d Merge "DO NOT MERGE Do not call drawableChanged pre Q" into qt-dev 2019-07-24 22:49:21 +00:00
Makoto Onuki
136d1ecf1e Move the job scheduler service code to its own jar file.
- Also remove the dependency from SystemServiceRegistry to JobScheduler

See apex/jobscheduler/README_js-mainline.md for the details.

Bug: 137763703
Test: build and boot
Test: atest CtsJobSchedulerTestCases
Change-Id: Ic8ae8e99e6600b261618b5cfb6590d3f3664ae9f
2019-07-24 14:50:47 -07:00
Vadim Caen
843f9dee8b DO NOT MERGE Do not call drawableChanged pre Q
Some apps rely on not updating the window format when changing the
background of the DecorView. To keep the compatibilty with these app we
add only call DecoreView.drawableChanged() when the window background is
changed on app targetting Q and above.

Test: Manually test by lunching Instagram TV and pressing return twice.
The window should aninate with no flickering.
Bug: 136987724

Change-Id: I3593d30dc6f10519008151974e475f0dad86fc64
2019-07-24 21:29:12 +00:00
Dave Mankoff
f62794fab9 Merge "Allow BrightLineFalsingManager settings to be experimented with via Phenotype." into qt-dev
am: 8d56bbf2e3

Change-Id: I02f776454972a2b96744c02bad1de3b9e24e689c
2019-07-24 12:28:42 -07:00
Dave Mankoff
e38da07841 Allow BrightLineFalsingManager settings to be experimented with via Phenotype.
This is a CP of http://ag/8687829

Bug: 138308096
Test: atest SystemUITests
Change-Id: I9e2b22b157c45da1606466acdfff3c5de7f182e1
Merged-In: I9fa4d1344bb184dea00f92f8d265667f0be11466
2019-07-24 18:37:11 +00:00