Commit Graph

447873 Commits

Author SHA1 Message Date
TreeHugger Robot
6d04d658dc Merge "Code cleanup: StagedRollbackTest (3/n)" 2019-10-18 03:38:09 +00:00
Philip P. Moltmann
c9bb90c0e0 Merge "Add feature context" 2019-10-18 02:26:08 +00:00
JW Wang
3bcb811cf6 Code cleanup: StagedRollbackTest (3/n)
Rename and group device methods together that belong to the same host
side method.

Bug: 142697546
Test: atest StagedRollbackTest
Change-Id: Iec49c141ef2b6c99c3a395c5287af562ee975942
2019-10-18 09:37:16 +08:00
Android Build Merger (Role)
291a46e4f4 Merge "[automerger skipped] Merge "Move JetPlayer implemention and JNI" am: 147d162e10 am: 256948b814 am: 5c31848594 am: ad2bc6a178 -s ours am skip reason: change_id I028c774fdea167924b064855267254c15f22fddb with SHA1 5ff1173ab1 is in history" 2019-10-18 01:13:53 +00:00
Marco Nelissen
4bab53bf97 [automerger skipped] Merge "Move JetPlayer implemention and JNI" am: 147d162e10 am: 256948b814 am: 5c31848594
am: ad2bc6a178 -s ours
am skip reason: change_id I028c774fdea167924b064855267254c15f22fddb with SHA1 5ff1173ab1 is in history

Change-Id: I95df5fe79b4a144f55ed86734e4ed06eb8ea4ec8
2019-10-17 18:12:46 -07:00
TreeHugger Robot
c0581181c8 Merge "Ensure #openTypedAssetFileDescriptor doesn't lose extras." 2019-10-18 01:11:23 +00:00
Louis Chang
95a5e431d2 Merge "Add public API for converting activity translucency" 2019-10-18 01:07:50 +00:00
Marco Nelissen
ad2bc6a178 Merge "Move JetPlayer implemention and JNI" am: 147d162e10 am: 256948b814
am: 5c31848594

Change-Id: I64f4e37eeb88f3c15afed1b1afa541c2fe265722
2019-10-17 18:06:18 -07:00
Marco Nelissen
5c31848594 Merge "Move JetPlayer implemention and JNI" am: 147d162e10
am: 256948b814

Change-Id: I371fb89a6ccb2cfeb20be78c83f644adc0f8f6cc
2019-10-17 17:55:14 -07:00
Marco Nelissen
256948b814 Merge "Move JetPlayer implemention and JNI"
am: 147d162e10

Change-Id: I5263cac58608b082bc8b47e99838b62fe88786e5
2019-10-17 17:48:33 -07:00
TreeHugger Robot
9d95d01d37 Merge "Revert "Sync app ops for all runtime permissions in PermissionPolicyService."" 2019-10-18 00:32:37 +00:00
Marco Nelissen
147d162e10 Merge "Move JetPlayer implemention and JNI" 2019-10-18 00:28:31 +00:00
Ned Burns
8edaf50ede Merge "Rename getters on NotificationEntry" 2019-10-18 00:24:50 +00:00
TreeHugger Robot
4f842f444c Merge "Fix fingerprint listening delay when locking phone" 2019-10-17 23:47:03 +00:00
Jing Ji
0c69030d9d Merge "OomAdjust Performance Improvement" 2019-10-17 23:20:40 +00:00
Shuo Qian
f5a5d65bc3 Merge "Emergency number database config updater" 2019-10-17 23:18:56 +00:00
Zhen Zhang
21fff1d68e Merge "Add tests for min-heap sorting in Share-sheet" 2019-10-17 23:17:40 +00:00
Zhen Zhang
f52d443744 Merge "Refactor and override creation of the async sorting task" 2019-10-17 23:17:40 +00:00
Zhen Zhang
d45e024e7d Merge "Create a method for top K targets by using min heap algorithm" 2019-10-17 23:17:40 +00:00
Varun Shah
840a9c4ea4 Ensure #openTypedAssetFileDescriptor doesn't lose extras.
ContentResolver#openTypedAssetFileDescripor was not passing extras from
the file descriptor when creating the AssetFileDescriptor. This ensures
the extras are passed along as well.

Fixes: 135510219
Test: atest ContentResolverTest
Test: atest ContentResolverWrapTest
Test: atest ContentProviderClientTest
Change-Id: I2a7ed6d1bf0bcd31feb632be5c84baeae15e7024
2019-10-17 16:12:42 -07:00
TreeHugger Robot
7780ab30db Merge "Merge AppWindowToken into ActivityRecord" 2019-10-17 22:54:07 +00:00
Varun Shah
06d1d97980 Merge "Remove always-on logging." 2019-10-17 22:52:52 +00:00
Christine Tsai
36cf72f375 Merge "Add comment for TimeUnit::ONE_MINUTE guardrail" 2019-10-17 22:15:19 +00:00
Ryan Mitchell
63f7f98ebb Merge changes Ie349c56d,I5d5344cd
* changes:
  Allow for RRO internal referencing
  Idmap format changes for bidirectional lookup
2019-10-17 22:07:47 +00:00
Marco Nelissen
f0ef85669c Move JetPlayer implemention and JNI
The JetPlayer implementation in libmedia was only used by the
JetPlayer JNI code in libandroid_runtime. This change moves
both implementation and JNI to libmedia_jni. This reduces
libandroid_runtime's dependency on libmedia, and results in
a net size reduction of the libraries involved.

Test: atest JetPlayerTest
Change-Id: I028c774fdea167924b064855267254c15f22fddb
Merged-In: I028c774fdea167924b064855267254c15f22fddb
2019-10-17 21:33:07 +00:00
Marco Nelissen
ad6c7044e5 Merge "Move JetPlayer implemention and JNI" 2019-10-17 21:32:28 +00:00
Hai Zhang
18f22a4aea Revert "Sync app ops for all runtime permissions in PermissionPolicyService."
This reverts commit 4bf9a32c6b.

This also partially reverts I2fe255caff13643e0b8493e12a149eaa32e06c13,
so that boot time won't be affected.

Reason for revert: Boot time regression b/142274993

Fixes: 142274993
Change-Id: I8b9e95421c5026645480a5564c797910180ec336
2019-10-17 14:29:16 -07:00
Nate Jiang
5f53523195 Merge "[NetworkSuggestion] add public API to support passpoint in suggestion" 2019-10-17 21:28:09 +00:00
Shuo Qian
8163b80a7e Emergency number database config updater
Test: https://paste.googleplex.com/5345498821033984
Bug: 64131637
Change-Id: I0fbd48fe8ef5e008af714312859b513a22679fcb
2019-10-17 14:20:24 -07:00
Philip P. Moltmann
59076d8957 Add feature context
Currently only used by app-ops, but can be used by other modules too.

AppOps will collect app-ops based on feature. Only the most basic
parts of app-ops are supporting features yet. The rest will be added
later.

Test: atest CtsAppOpsTestCases
      atest RunSettingsLibRoboTests
      atest com.android.server.wm.ActivityStarterTests
      m -j doc-comment-check-docs
Bug: 136595429
Change-Id: Ia664f4ff1c1c2ceea721d76dc491ec50c237e9ce
2019-10-17 14:15:07 -07:00
Curtis Belmonte
5cece53362 Fix fingerprint listening delay when locking phone
Currently, when the user presses the power button to lock their phone,
there's a delay before the device starts listening for fingerprint to
unclock the phone again. This commit resets the keyguard going away
state earlier when the phone is going to sleep in order to remove this
delay. It also adds a new unit test to exercise this behavior.

Test: atest KeyguardViewMediatorTest
Test: Lock screen, quickly tap fingerprint, verify there is no delay

Fixes: 141445468
Change-Id: Ib2f7d956122eec39e5164e865001a08fa70f47cc
2019-10-17 14:09:46 -07:00
Evan Laird
9afe76635d Rename getters on NotificationEntry
Rename key(), sbn(), and ranking() as getKey(), getSbn(), and
getRanking(). This improves kotlin interop and is a lil more standard.

Test: atest SystemUITests
Change-Id: I8cb87a8b64940dc1f245f18ee010d60b08431789
2019-10-17 16:42:18 -04:00
tsaichristine
924621ee43 Add comment for TimeUnit::ONE_MINUTE guardrail
All metric types (except EventMetric) guardrail bucket size using the function TimeUnitToBucketSizeInMillisGuardrailed, which returns a bucket size of 5 minutes for any buckets with a size > 1 second and < 5 minutes iff uid is not shell or root.

Test: bit statsd_test:*
Change-Id: I6350a07978217c795565cd096134e3df56ecf163
2019-10-17 13:19:18 -07:00
Ryan Mitchell
8a891d86ab Allow for RRO internal referencing
This change allows RROs to reference their own internal resources as
expected.

Overlays are loaded as shared libraries so they can have their own
resource id space that does not conflict with the resource id space of
the target or other overlays.

References to overlay resources that override target resources now
appear as references to the target resources.

Overlay values that are inlined into the xml file specified using
android:overlayResources are now able to be used at runtime.

See go/rro-references for more information.

Bug: 135943783
Test: idmap2_tests
Test: libandroidfw_tests
Change-Id: Ie349c56d7fd3f7d94b7d595ed6d01dc6b59b6178
2019-10-17 13:09:33 -07:00
Soonil Nagarkar
d35f57130f Merge "Fix typo" 2019-10-17 19:41:48 +00:00
TreeHugger Robot
542b2aac7b Merge "Add missing @NonNull" 2019-10-17 19:32:30 +00:00
Mikhail Naganov
c0903da300 Merge "Introduce audio V6" 2019-10-17 18:59:40 +00:00
TreeHugger Robot
6993d89fca Merge "Remove legacy bugreport flow code" 2019-10-17 18:46:41 +00:00
Jordan Liu
7e7af89246 Merge "Move cell broadcast service module directory" 2019-10-17 18:38:55 +00:00
Ryan Mitchell
e753ffef54 Idmap format changes for bidirectional lookup
This change modifies the idmap file format to allow for target resources
to map to arbitrary type/value combinations and to allow overlay
resources to be mapped back to target resource ids so references to
overlay resources can appear as references to target resources at
runtime.

The mappings of target resources to overlay resources and vice-versa are
both encoded as sparse arrays. Instead of looking up a resource by
indexing into an array that maps to the overlay resource id, the runtime
will binary search over the sparse array to find the type and value that
overlays the target resource.

Bug: 135943783
Test: idmap2_tests
Change-Id: I5d5344cdb7fe35f4f2e8d6781016299dea5d1e20
2019-10-17 11:37:24 -07:00
TreeHugger Robot
1af9a728ff Merge "Make APIs in the base CellInfo class public." 2019-10-17 18:36:48 +00:00
Chen Xu
3321171cc7 Merge "non-mainline telephony related AIDL refactor/decoupling" 2019-10-17 18:27:13 +00:00
TreeHugger Robot
0559c2ae42 Merge "Don't use managed profile charging secure setting" 2019-10-17 18:19:54 +00:00
Marco Nelissen
5ff1173ab1 Move JetPlayer implemention and JNI
The JetPlayer implementation in libmedia was only used by the
JetPlayer JNI code in libandroid_runtime. This change moves
both implementation and JNI to libmedia_jni. This reduces
libandroid_runtime's dependency on libmedia, and results in
a net size reduction of the libraries involved.

Test: atest JetPlayerTest
Change-Id: I028c774fdea167924b064855267254c15f22fddb
2019-10-17 11:11:46 -07:00
Garfield Tan
e8d84ab020 Merge AppWindowToken into ActivityRecord
This change kept AppWindowTokenTests as it's originally based on top of
WindowTestBase, and merging that into ActivityRecordTests needs to
change the base class to ActivityTestBase, which requires additional
work and may change test behaviors. Therefore delay that to
follow-up CL.

Bug: 80414790
Test: Existing tests pass.
Change-Id: I6d73975ee77be9817c41b297f067de2d92a68499
2019-10-17 11:10:02 -07:00
Jing Ji
094c3ef60b OomAdjust Performance Improvement
* Reduce the number of processes to be computed.
* Reduce the overhead of getting process attributes

Overall by average the time spent on the OomAdjust update goes
down from 911us to 441us (51.6% faster) in Day-Of-Use test.

Bug: 135941673
Test: forrest test health/reliability/greenday
Test: Loop test
Test: atest MockingOomAdjusterTests
Test: atest FrameworksServicesTests:ActivityManagerServiceTest
Test: atest CtsAppTestCases:ActivityManagerProcessStateTest

Change-Id: I43cc4af4a268b24620c3231a87f7c9d2a14e4fbc
2019-10-17 10:57:35 -07:00
TreeHugger Robot
a2cfd6c11b Merge "Don't call platformCompat on system apps." 2019-10-17 17:24:15 +00:00
John Reck
4a6f2c59c0 Add missing @NonNull
Test: builds
Bug: 142875299
Change-Id: I7a8d6edcc83175c48948de0295c312494141a147
2019-10-17 17:21:29 +00:00
TreeHugger Robot
68f6d6f383 Merge "Fix scaling + cropping in ImageDecoder" 2019-10-17 16:56:27 +00:00
Nate Jiang
a100fb4841 [NetworkSuggestion] add public API to support passpoint in suggestion
Allow apps suggest passpoint network in NetworkSuggestionAPI

Bug: 141378137
Test: atest android.net.wifi
Test: atest com.android.server.wifi

Change-Id: Ibca75b0de758e3dfa78b7939851c8dda2eb3d696
2019-10-17 09:51:17 -07:00