Commit Graph

463626 Commits

Author SHA1 Message Date
Lucas Dupin
960b7e7f74 Expose managed profile sensitiveness preferences
Test: atest NotificationLockscreenUserManagerTest
Test: atest KeyguardSliceProviderTest
Bug: 144299702
Change-Id: Ia91cab4ebeaa36a7f26588197c4aba3291f88d28
2020-01-28 17:12:56 -08:00
Mady Mellor
e71999af40 Merge "Bubbles / notifs / shortcuts: if the id's don't match throw an error" 2020-01-29 01:10:53 +00:00
Roshan Pius
28b79072a9 Revert "Partial Revert of ag/10161061"
This reverts commit 81d7cece57.

Reason for revert: The telephony unit tests are fixed.
Bug: 148282682

Change-Id: Ib835f0abf4faf33ea3a54420c84c1f8383d663c3
2020-01-29 00:51:25 +00:00
Automerger Merge Worker
c3230c9739 [automerger skipped] Fix potential double destroy of AssetManager am: 0a8a1e9d40 am: 303d3874f2 am: e29951e29e am: 901ee527fc -s ours
am skip reason: Change-Id Ia938502d2443f5a6de6a3cabdb7ce1d41d3ff6d1 with SHA-1 cfa2284cd8 is in history

Change-Id: I6213f57e1417533b12b63be352d4937d561fad1f
2020-01-29 00:47:57 +00:00
Automerger Merge Worker
8cfc4fef61 [automerger skipped] Merge "Make Information Elements (IE) of a scan result available as a public API." am: 34a5bbda41 am: 15e9305761 am: 49c19c5134 -s ours
am skip reason: Change-Id If3b9906c75033f51bd35fcf054154125719ea958 with SHA-1 8e5ca5cd7e is in history

Change-Id: If5a183ec39456825c497b18cb910f6b57e243f11
2020-01-29 00:47:29 +00:00
Jack Yu
641db9a36a Added data coding scheme and location check time support
AT&T requires showing data coding scheme, location check
time, whether shown to the user or not in the test menu.
Expanded database to support this.

Bug: 144152683
Test: Manully sending fake messages and verified database
Change-Id: Ib5b78802e7548da9f92492aae4c94ed3488b5e3d
2020-01-28 16:46:30 -08:00
Automerger Merge Worker
901ee527fc Fix potential double destroy of AssetManager am: 0a8a1e9d40 am: 303d3874f2 am: e29951e29e
Change-Id: Ie636f378bb68f414760453198f4c08762182568a
2020-01-29 00:39:53 +00:00
Muhammad Qureshi
b6b3995f17 Add KeyValuePairs support for modules.
Add KeyValuePairs support to StatsLog autogen for modules.

Bug: 147674597
Test: m
Test: fastboot flashall
Test: adb logcat "*:S statsd:*" and inspect KeyValuePair atoms.
Test: statsd_testdrive 83
Change-Id: Ie40ea52fde494ec11da6b73f430c7a112711b55b
2020-01-28 16:34:22 -08:00
Automerger Merge Worker
49c19c5134 Merge "Make Information Elements (IE) of a scan result available as a public API." am: 34a5bbda41 am: 15e9305761
Change-Id: I55c5cf81ba19cec36efdde8dfd7bd6b4acca519a
2020-01-29 00:34:20 +00:00
Automerger Merge Worker
e38a710477 [automerger skipped] Fix potential double destroy of AssetManager am: 93320661ca am: aefc05c016 am: 8e5d6a25b2 -s ours
am skip reason: Change-Id Ia938502d2443f5a6de6a3cabdb7ce1d41d3ff6d1 with SHA-1 0a8a1e9d40 is in history

Change-Id: I2d759d07f9ba1e28ee9449161f823354b31f8a13
2020-01-29 00:33:48 +00:00
Automerger Merge Worker
e29951e29e Fix potential double destroy of AssetManager am: 0a8a1e9d40 am: 303d3874f2
Change-Id: I3ddb9a9b1b67341b76ead480662356944d9146e6
2020-01-29 00:28:12 +00:00
Muhammad Qureshi
9652ad9514 Merge "Add bluetooth module" 2020-01-29 00:26:01 +00:00
Xiao Ma
15e9305761 Merge "Make Information Elements (IE) of a scan result available as a public API."
am: 34a5bbda41

Change-Id: Ia0680401d2c670eb795027ebc3256ec314f41c45
2020-01-28 16:21:45 -08:00
Automerger Merge Worker
8e5d6a25b2 Fix potential double destroy of AssetManager am: 93320661ca am: aefc05c016
Change-Id: I52d6c83fd2585d8fdc5917e72e37dd1c2d11f9e0
2020-01-29 00:20:28 +00:00
Automerger Merge Worker
303d3874f2 Fix potential double destroy of AssetManager am: 0a8a1e9d40
Change-Id: I10010fa2087e7978dc88b1d1e6f6e5d3a4661499
2020-01-29 00:12:51 +00:00
Xiao Ma
34a5bbda41 Merge "Make Information Elements (IE) of a scan result available as a public API." 2020-01-29 00:12:20 +00:00
TreeHugger Robot
3ae3310311 Merge "Made DataShareCallbackDelegate a static class not storing a hard reference to its parent." 2020-01-29 00:03:39 +00:00
Automerger Merge Worker
aefc05c016 Fix potential double destroy of AssetManager am: 93320661ca
Change-Id: I929bc83477f4698d78cef92d78934f3dd0b3c140
2020-01-29 00:03:12 +00:00
Makoto Onuki
1b296161bd Fix LauncherApps.isActivityEnabled()
Make sure to take "setComponentEnabledSetting" into account.

Change-Id: I9c3b30d8f6e158e25bca244e9265632d24409da1
Fix: 145279304
Test: atest LauncherAppsTest
2020-01-28 15:58:47 -08:00
TreeHugger Robot
6db19b2386 Merge "Update classes in tuner JNI" 2020-01-28 23:54:18 +00:00
TreeHugger Robot
eeeb47d83c Merge "Tests for libstatspull" 2020-01-28 23:49:25 +00:00
Dianne Hackborn
f1de3f4922 Fix issue #148487136: Add a little more debug output to devicestoragemonitor
Print out more information about each volume -- its path
and the low and full size thresholds.

Bug: 148487136
Test: Manually ran dumpsys devicestoragemonitor
Change-Id: I0916f691d89b0dfffdef39e58a72b4bd415f30cd
2020-01-28 15:48:10 -08:00
Bill Yi
077cdfd565 Import translations. DO NOT MERGE
Change-Id: Ied9f84c6dd6f813d6a138e47f2f6c60448066912
Auto-generated-cl: translation import
2020-01-28 15:39:28 -08:00
Winson Chung
8ce640f9ad Merge "Always add the task to the recent task list when starting" 2020-01-28 23:36:27 +00:00
Ryan Mitchell
6115858c21 Refactor ResourcesLoader Tests
This change refactors the tests for ResourcesLoaders to support the
new concept of loaders owning providers.

Bug: 147359613
Test: atest ResourceLoaderTests
Change-Id: Id61dc27bf5876afe10c25ed57333541131e910b7
2020-01-28 15:35:17 -08:00
Ryan Mitchell
4579c0aea2 Refactor ResourcesLoader APIs
This changes refactors the ResourcesLoader APIs.
The main changes are:

Rather than pairing a ResourcesLoader with a ResourcesProvider, a
ResourcesProvider is paired with an AssetsProvider which is only
responsible for overriding the values of file-base resources and
assets. An AssetsProvider can be shared between multiple
ResourcesProviders.

ResourcesLoader now holds a list of ResourcesProviders.

ResourcesLoaders are part of ResourcesKeys and requests for resources
with the same loaders will use the same underlying ResourcesImpl. This
allows the loader specific code in RM to be cleaned up.

ResourcesLoaders and Resources objects use callbacks to notify RM
of changes to the Resources instance that may require a new
ResourcesImpl.

When a context is created from another context, the new context will
include the loaders of the original context. Change to list of either
context's loaders will not change the loaders of the other context,
but changes to the providers a loaders uses will update all Resources
objects that use that loader.

Activity resources will include the loaders of the application context
at the time of the Activity's creation.

Bug: 147359613
Test: atest ResourceLoaderTests
Change-Id: I2957c803d3f0c1280abfd3c723d76b18df2c3789
2020-01-28 15:35:14 -08:00
Paul Trautrim
c446689491 Merge "Add implementation of getInterfaceHash()" 2020-01-28 23:34:16 +00:00
Danning Chen
a1bf86d516 People Service data layer main structure
Change-Id: I53bf5f1bce3234da7e1dcf8cfdd293120781aef4
Test: Build and run on a test device
Bug: 146522621
2020-01-28 15:30:31 -08:00
TreeHugger Robot
8326cae642 Merge "Fix response id in FillResponse parceling." 2020-01-28 23:26:39 +00:00
Yinglei Wang
f367889de8 Merge "modify quick settings to adopt the accessibility state api" 2020-01-28 23:18:15 +00:00
Nathan Harold
2b14af22da Return the RPLMN from NetworkRegistrationInfo
Add an API to get the RPLMN in network registration info.

This PLMN-ID is the one chosen from the PLMN IDs broadcast
by the cell for registration purposes.

Bug: 135921133
Test: make update-api && make offline-sdk-docs && make
      && atest FrameworksTelephonyTests
Change-Id: I82f9150e185d9809572d246b57ea42f14ad64f15
2020-01-28 14:58:52 -08:00
Jean-Michel Trivi
6923cdd83d Merge "MediaSessionRecord: fix volume stream query" 2020-01-28 22:49:46 +00:00
Jorim Jaggi
a649c24efa Merge "Fix nav inset for gesture nav" 2020-01-28 22:49:40 +00:00
art-benchmark-service
d8f25641b8 Update boot image and system server profiles [M4C4P20S0]
=Generation Strategy=

method_threshold: 0.04
image_class_threshold: 0.04
preloaded_classes_threshold: 0.2
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0

=Profile stats=

Data info:
- total aggregations: 64
- number of (device types, builds): 17

File boot-image-profile.txt
  - hot methods: 3769 added, 22337 removed
  - methods: 3863 added, 22867 removed
  - classes: 872 added, 952 removed
  - totals now: 15780 hot methods, 16050 methods, 10401 classes
  - totals before: 34348 hot methods, 35054 methods, 10401 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 1510, 14674, 659, 601, 8086, 6268
    com.android, 479, 5495, 178, 100, 1278, 1902
    java, 1403, 1603, 26, 3, 5063, 1633
    android.view, 101, 1562, 78, 9, 966, 694
    android.hardware, 25, 690, 26, 2, 99, 570
    android.bluetooth, 22, 296, 16, 2, 66, 157
    android.animation, 10, 141, 2, 0, 190, 70
    android.app, 304, 2080, 81, 13, 1264, 784
    android.content, 252, 992, 37, 10, 1134, 426
    android.graphics, 140, 977, 6, 0, 853, 286
    android.icu, 0, 1491, 0, 465, 0, 0
    android.media, 35, 711, 29, 7, 129, 409
    android.net, 123, 800, 81, 13, 547, 401
    android.widget, 17, 992, 18, 2, 271, 294

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 3233 added, 577 removed
  - totals now: 0 hot methods, 0 methods, 7606 classes
  - totals before: 0 hot methods, 0 methods, 7606 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 2359, 539, 0, 6231
    com.android, 0, 0, 803, 32, 0, 1897
    java, 0, 0, 49, 3, 0, 1617
    android.view, 0, 0, 244, 6, 0, 694
    android.hardware, 0, 0, 286, 0, 0, 570
    android.bluetooth, 0, 0, 62, 1, 0, 157
    android.animation, 0, 0, 8, 0, 0, 70
    android.app, 0, 0, 245, 8, 0, 782
    android.content, 0, 0, 145, 8, 0, 424
    android.graphics, 0, 0, 28, 0, 0, 286
    android.icu, 0, 0, 0, 459, 0, 0
    android.media, 0, 0, 115, 4, 0, 409
    android.net, 0, 0, 247, 0, 0, 399
    android.widget, 0, 0, 69, 2, 0, 292

File art-profile
  - hot methods: 1547 added, 10249 removed
  - methods: 8926 added, 7543 removed
  - classes: 889 added, 754 removed
  - totals now: 3092 hot methods, 19901 methods, 2819 classes
  - totals before: 11794 hot methods, 18518 methods, 2819 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 16, 165, 31, 25, 16, 107
    com.android, 1531, 10062, 846, 728, 3076, 2833
    android.hardware, 0, 46, 7, 2, 0, 37
    android.app, 0, 0, 1, 0, 0, 1
    android.content, 1, 0, 2, 0, 1, 2
    android.net, 12, 101, 18, 22, 12, 54

= Perf stats =
(lower is better)

Avg Startup time change: -0.29%
Avg Memory at boot PSS change: 0.99%
Avg Code size: -44.19%

ATP tests:

health/memory/boot
health/microbench/startup/firstparty/am-start/coldlaunch/open-calculator
health/microbench/startup/firstparty/am-start/coldlaunch/open-calendar
health/microbench/startup/firstparty/am-start/coldlaunch/open-camera
health/microbench/startup/firstparty/am-start/coldlaunch/open-chrome
health/microbench/startup/firstparty/am-start/coldlaunch/open-clock
health/microbench/startup/firstparty/am-start/coldlaunch/open-contacts
health/microbench/startup/firstparty/am-start/coldlaunch/open-gmail
health/microbench/startup/firstparty/am-start/coldlaunch/open-google
health/microbench/startup/firstparty/am-start/coldlaunch/open-maps
health/microbench/startup/firstparty/am-start/coldlaunch/open-messenger
health/microbench/startup/firstparty/am-start/coldlaunch/open-phone
health/microbench/startup/firstparty/am-start/coldlaunch/open-photos
health/microbench/startup/firstparty/am-start/coldlaunch/open-settings
health/microbench/startup/firstparty/am-start/coldlaunch/open-youtube

InternalReferenceRawProfileId: 62
InternalReferenceCandidateProfileId: 81

Test: build & benchmark
Bug: 148471769
Change-Id: I3569f00a1900ca92397e83186b2fad76c891f75c
2020-01-28 14:48:51 -08:00
Danny Epstein
dab6c77154 Merge "Don't draw default focus highlight unless focused." 2020-01-28 22:48:32 +00:00
Michael Groover
33df7c415a Require signature scheme V2+ for target SDK R+
With the recent sha-1 news, and since minSdk less than 18 for RSA and
minSdk less than 21 for DSA require sha-1, APK signature verification
will now require a minimum of a V2 signature for apps targeting R+.

Bug: 148313868
Test: atest PkgInstallSignatureVerificationTest
Change-Id: I8f518102a0b7cef190cbca59d140d380ae41c326
2020-01-28 14:31:29 -08:00
Tej Singh
f11e0a3913 Tests for libstatspull
Sets up a new test suite in frameworks/base/apex/statsd. Creates a JNI
wrapper around libstatspull so that configs can be added and removed
from java, but the pulls happen in native code.

Bug: 145310729
Test: atest LibStatsPullTests
Change-Id: Ib3df74cac12f4276892be3f4a060a4a9dd120464
2020-01-28 14:27:53 -08:00
TreeHugger Robot
8fd198216c Merge "Use correct actor string for OverlayableInfo" 2020-01-28 22:26:41 +00:00
Ned Burns
a004f24f68 Merge changes I5fe67e17,I2c7c272c
* changes:
  Example implementations of new logging system
  Hyper-lightweight logging update
2020-01-28 22:17:49 +00:00
Adam He
cb6826a9e2 Fix response id in FillResponse parceling.
Fixes: 148412653
Test: atest CtsAutoFillServiceTestCases
Change-Id: I5c3dfa81d09e613deadf2f3969e3d6122de230db
2020-01-28 14:06:12 -08:00
Mady Mellor
bd35832d9b Merge "Bubble API: post update when bubble notification suppression flag changes" 2020-01-28 22:04:38 +00:00
TreeHugger Robot
ab2fa88e20 Merge "Move Platinum tests to BVT" 2020-01-28 22:03:50 +00:00
Rob Carr
f0a9dd1e94 Merge "IME Layering: Don't assign relative layering in all multi-window modes" 2020-01-28 21:33:15 +00:00
yingleiw
4a72a74b2a modify quick settings to adopt the accessibility state api
Seperated out the state part from contentDescription. Also changed the
tile on/off states from mocking switch to unavailable/on/off state
description based on State.state. During testing, I removed event
merging (including source node merging) for state and content change
events. Use event text for state description changed part will be in a
seperate CL.

Test: tested on the quick settings tiles for focusing and state change
evnets. With the event merging removed, the state change is announced
when the focus keeps on the tile. Before my change, content change is
not announced when the focus keeps on the tile due to source node change
in event merging.

Fix: 148473520

Change-Id: I5b6aee6f0982cf4e0a3962fbe15239314f3a2de4
2020-01-28 13:31:13 -08:00
shubang
d351b825e2 Update classes in tuner JNI
Test: make
Change-Id: I582d747f2bf8dc9b9cb6c73861a42b5629b8b9e6
2020-01-28 13:28:29 -08:00
TreeHugger Robot
1b1bdd3642 Merge "Remove usage of android.os.Build.IS_USER" 2020-01-28 21:24:27 +00:00
Dieter Hsu
3cbd098e7a Implement multi-finger multi-tap gesture matchers for accessibility
This matcher would detect following gestures when accessibility flag
flagRequestMultiFingerGestures enabled:

- 2-finger single tap
- 2-finger double tap
- 2-finger triple tap
- 3-finger single tap
- 3-finger double tap
- 3-finger triple tap

Bug: 142277684
Bug: 142276516
Bug: 136131815
Test: atest AccessibilityGestureDetectorTest TouchExplorerTest GestureManifoldTest

Change-Id: I0aa6e858520d0b36c81df6fe08fd86d7d0803d5a
2020-01-28 13:24:12 -08:00
Automerger Merge Worker
01a6af0611 Merge "Reduce the number of rotations of flicker tests" am: b6d051c228 am: 77f788067d am: 425a97149a
Change-Id: Ie7551934d419d5c9ca102e0b5b86f28a7c8f2b97
2020-01-28 21:14:25 +00:00
Automerger Merge Worker
e1422db2b9 Merge "Disable flaky flicker tests" am: e56396645b am: 29ff225c90 am: 575f7ef7bb
Change-Id: I53636801cc06fe23eccb35e033770b504a166073
2020-01-28 21:13:34 +00:00
TreeHugger Robot
42ce71195c Merge "Handle controlInputMethodAnim correctly when IME isn't ready" 2020-01-28 21:09:07 +00:00