Commit Graph

12010 Commits

Author SHA1 Message Date
Nicolas Geoffray
a98e4142f6 Merge "Notify the ART runtime when boot is complete." am: f83748ae28 am: 6b9ab57b2d am: ed22d5f05c am: 8f93d19459
am: 6e16874401

Change-Id: Icc2ec9b98c8b507f2431ef60a4cd7bbe11bab430
2019-08-08 06:02:32 -07:00
Nicolas Geoffray
6e16874401 Merge "Notify the ART runtime when boot is complete." am: f83748ae28 am: 6b9ab57b2d am: ed22d5f05c
am: 8f93d19459

Change-Id: Iddebb915552b39cfb4cbe59bb67eb1c2aae0c8ea
2019-08-08 05:53:00 -07:00
Nicolas Geoffray
8f93d19459 Merge "Notify the ART runtime when boot is complete." am: f83748ae28 am: 6b9ab57b2d
am: ed22d5f05c

Change-Id: I88c5ab8807446464854d59f95ffc2877fa6aa963
2019-08-08 05:43:38 -07:00
Nicolas Geoffray
ed22d5f05c Merge "Notify the ART runtime when boot is complete." am: f83748ae28
am: 6b9ab57b2d

Change-Id: I5466b6f73087c6dea67c9b7cfaa3bf55bacb8a23
2019-08-08 05:32:55 -07:00
Nicolas Geoffray
6b9ab57b2d Merge "Notify the ART runtime when boot is complete."
am: f83748ae28

Change-Id: Iea67d64570657173832ee0d61288dc97af11496b
2019-08-08 05:11:55 -07:00
David Srbecky
6d0d7066cf Notify the ART runtime when boot is complete.
Needed for jit-zygote performance improvements.

Test: device boots
Bug: 119800099
Change-Id: I1e46f49d94440384473430d8afebe29fbee9c68e
2019-08-08 07:57:35 +00:00
Eugene Susla
f366188dac Merge "Use dataclass codegen on a few initial framework classes" 2019-08-07 22:51:23 +00:00
Eugene Susla
3b2fe616fd Use dataclass codegen on a few initial framework classes
Test: presubmit
Change-Id: Ide3c21596f6489fdb1db8f72e1436a01b10f56ed
2019-08-06 21:29:29 -07:00
Beth Thibodeau
bf2b3d382a Merge "Stop timer when notification is not visible" into qt-r1-dev am: f7ad427d8b am: 84b999ccb1
am: d8c9f1a833

Change-Id: I628048a82b76818e0c23251b8bed60519ddf6a84
2019-08-06 13:47:32 -07:00
Beth Thibodeau
d8c9f1a833 Merge "Stop timer when notification is not visible" into qt-r1-dev am: f7ad427d8b
am: 84b999ccb1

Change-Id: I2ae849e3b8a5a449d380fc391841689a0438ddd7
2019-08-06 13:38:28 -07:00
Beth Thibodeau
84b999ccb1 Merge "Stop timer when notification is not visible" into qt-r1-dev
am: f7ad427d8b

Change-Id: I49db80e1342ed8e82a21246c2f3a5f195e249b1c
2019-08-06 13:28:53 -07:00
Beth Thibodeau
f7ad427d8b Merge "Stop timer when notification is not visible" into qt-r1-dev 2019-08-06 20:11:27 +00:00
Beth Thibodeau
4e4c86e1b5 Stop timer when notification is not visible
This combines ag/8888937 and ag/9019277 into one CL, plus fixes another issue
where the timer could restart if the user had removed a notification and then
restarted the stream

Fixes: 138261464
Test: manual, atest NotificationMediaTemplateViewWrapperTest

Also checked the changes on the master branch since that had very
obvious issues when locking / unlocking the phone before

Change-Id: I6a0bbc675d33a5c7d4ce7f0884aec19606bff4fa
2019-08-06 13:21:20 -04:00
Eugene Susla
c40f4c706c Merge "Addresses further review comments from ag/8000041" 2019-08-06 16:44:45 +00:00
Roshan Pius
2bb6734240 Merge "Merge "XmlUtils: Fix hex parsing in readThisByteArrayXml" into qt-qpr1-dev am: 2883327fba" into qt-qpr1-dev-plus-aosp
am: defbe4d33e

Change-Id: I2c00bc9087566de626666f82380d353c961c3ea7
2019-08-06 03:21:49 -07:00
Roshan Pius
2e463f4b42 Merge "XmlUtils: Fix hex parsing in readThisByteArrayXml" into qt-qpr1-dev
am: 2883327fba

Change-Id: I98cc9d175a028e760d072bd3af4d56e7857ca5d6
2019-08-06 02:32:52 -07:00
Eugene Susla
3156a4ce21 Addresses further review comments from ag/8000041
Including:
 - An API to opt out of Int/StringDefs generation on per-field basis
 - A way to customize Builder
 - Non-optional fields are passed in Builder constructor
 - Various adjustments to SampleDataclass examples, as requested

Test: . $ANDROID_BUILD_TOP/frameworks/base/tests/Codegen/runTest.sh
Change-Id: I32d2eec52f05d505ff07779d923e4793d3036579
2019-08-05 16:54:41 -07:00
Roshan Pius
2883327fba Merge "XmlUtils: Fix hex parsing in readThisByteArrayXml" into qt-qpr1-dev 2019-08-05 23:51:37 +00:00
Adrian Roos
304f75603b GestureNav: Log exclusion rect heights am: 5f2c9a14f5 am: fde134f106
am: e4b2440287

Change-Id: If3f626a85dcf93482ad580e93c1c5b49299fd78f
2019-08-05 14:43:57 -07:00
Adrian Roos
fde134f106 GestureNav: Log exclusion rect heights
am: 5f2c9a14f5

Change-Id: I6b72f4b68773a21575296601f5545746d012524e
2019-08-05 14:17:15 -07:00
Adrian Roos
5f2c9a14f5 GestureNav: Log exclusion rect heights
Logs the rejected and requested exclusion rect heights.

Test: adb shell device_config put android:window_manager key_system_gesture_exclusion_log_debounce_millis 1000
Bug: 135152789
Change-Id: Ie12640f4bf0a8b40b666e604188a0bedd85e8981
Exempt-From-Owner-Approval: DeviceConfig.java: Adding constant to WindowManager namespace.
2019-08-05 21:19:40 +02:00
Noah Zimmt
4e878506d7 Merge "Avoid calling installd where not needed" 2019-08-05 19:06:08 +00:00
Noah Zimmt
b255807189 Avoid calling installd where not needed
The method StorageStatsManager#getCacheBytes is called several times
during package installation. It calls
InstalldNativeService::getUserSize via a binder call.

The runtime of getUserSize is variable; I have traces where it takes
50ms and traces where it takes 500ms.

The return value of getUserSize used to take into account freeable cache
space when determining available space on a given volume. In most cases,
it is possible to first do a pessimistic check of the space available on
the volume - forgoing the installd call - and only consider cache space
if the pessimistic check fails.

This avoids a binder call + the time spend in getUserSize for most
installs.

Bug: None
Test: atest frameworks/base/core/tests/coretests/src/android/content/pm/PackageHelperTests.java
cts/tests/tests/os/src/android/os/storage/cts/StorageManagerTest.java
Change-Id: Icaecee732ef330fee1b409d2dd76723822c25959
2019-08-05 11:25:22 -07:00
Roshan Pius
08a61aa733 XmlUtils: Fix hex parsing in readThisByteArrayXml
hex 'a' is not correctly deserialized in readThisByteArrayXml.

Change readThisByteArrayXml & writeByteArrayXml to use HexEncoding for
hex conversions.

Bug: 138482990
Test: Was seeing parsing errors with ag/9135251.
Validated the fix with ag/9135251.

Change-Id: If9f86b5ed85a9f883130e4110f85cd2faa995439
2019-08-05 11:18:10 -07:00
Al Sutton
846c219d78 Merge "Remove unused code" 2019-08-05 12:56:48 +00:00
Rubin Xu
f83521f849 Merge "Remove base-zero pattern migration in LockSettingsService" 2019-08-05 10:38:10 +00:00
Al Sutton
3b4e1e9931 Remove unused code
Change-Id: I4f31141272facb092a18ffa28e582523c3eeef88
Test: atest ArrayUtilsTest
2019-08-05 11:07:27 +01:00
Rubin Xu
7959e2a649 Remove base-zero pattern migration in LockSettingsService
Base-zero pattern was a bug introduced during M and later fixed before
M got released (b/21433955#comment23). As a result there is no need to
keep this logic around after M.

Bug: 63619579
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/locksettings
Change-Id: I9c14f86783247a3cc0db20447b5ec0622785a28b
2019-08-02 15:56:16 +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
e515b48544 Merge "Revert "Stop timer when notification isn't visible"" into qt-dev am: 628f975c22
am: 51185d56d2

Change-Id: Ied28534111d438cf0475b563514368cb885c61e4
2019-07-31 14:34:22 -07:00
Beth Thibodeau
eba1a93c8a Merge "Revert "Stop timer when notification isn't visible"" into qt-dev
am: 628f975c22

Change-Id: I3cc399589f6459687c25923f32f3671ee3bda013
2019-07-31 14:16:57 -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