Commit Graph

17477 Commits

Author SHA1 Message Date
Automerger Merge Worker
aea42c106d Merge "Use FrameworkStatsLog instead of StatsLogInternal" into rvc-dev am: 596a1f6f4e am: 5486a5ccc6 am: 101a787483 am: d6cbeae4ec
Change-Id: If0f40ce117c346fcfac07053ff51db9b59704340
2020-03-05 22:12:00 +00:00
Automerger Merge Worker
101a787483 Merge "Use FrameworkStatsLog instead of StatsLogInternal" into rvc-dev am: 596a1f6f4e am: 5486a5ccc6
Change-Id: I1e4f75ae1c29c7af21c06b8e60f68a52fe2e6b02
2020-03-05 21:53:59 +00:00
Muhammad Qureshi
596a1f6f4e Merge "Use FrameworkStatsLog instead of StatsLogInternal" into rvc-dev 2020-03-05 21:41:04 +00:00
Automerger Merge Worker
80115c65cb Merge "Update the categories of app kill reaons" into rvc-dev am: 7712b3a92a am: 06dc17928d
Change-Id: I467e554e83e29214d8347587e03af9fa25e6159e
2020-03-05 21:36:36 +00:00
Automerger Merge Worker
7c06a370f9 DO NOT MERGE: Remove AppSearch from Android R. am: 0b291791c8 am: 0c71d1f454
Change-Id: I330477222f2f404e83b10c88dd9e1522a698d826
2020-03-05 21:35:03 +00:00
Jing Ji
7712b3a92a Merge "Update the categories of app kill reaons" into rvc-dev 2020-03-05 21:16:12 +00:00
Automerger Merge Worker
0c71d1f454 DO NOT MERGE: Remove AppSearch from Android R. am: 0b291791c8
Change-Id: I1d01c7007e1ab72eb12d33ce0a8af2c7657d0d05
2020-03-05 21:10:58 +00:00
TreeHugger Robot
8caff7dc81 Merge "DO NOT MERGE: Remove AppSearch from Android R." into rvc-dev 2020-03-05 21:09:00 +00:00
Automerger Merge Worker
4bc1d332e8 Merge "Add command line support for testing tz detection" am: 86fd801bff am: 215eafabf2 am: 912fd3b369 am: f0411e5dbf am: 6b499f815e
Change-Id: I0a513ccbccdc6761a3036f4183be6d121a5c6421
2020-03-05 19:38:07 +00:00
Automerger Merge Worker
912fd3b369 Merge "Add command line support for testing tz detection" am: 86fd801bff am: 215eafabf2
Change-Id: I845027a029680df4a6accbc44497181d4f66f7c1
2020-03-05 18:41:01 +00:00
Automerger Merge Worker
215eafabf2 Merge "Add command line support for testing tz detection" am: 86fd801bff
Change-Id: Ia1060d6120c3572dc74a47256e1a1735aef08dbd
2020-03-05 18:23:04 +00:00
Muhammad Qureshi
317061ae9d Use FrameworkStatsLog instead of StatsLogInternal
StatsLogInternal will be removed in R as part of statsd becoming a
Mainline mdoule.

Bug: 150630484
Test: m
Change-Id: I67481e85f98f6d84ae1dde28e2eabff485eebb36
2020-03-05 10:21:15 -08:00
Neil Fuller
86fd801bff Merge "Add command line support for testing tz detection" 2020-03-05 18:07:24 +00:00
Automerger Merge Worker
97bc53472a Merge "remove proxy binder service IIncrementalManager" into rvc-dev am: 130b6bec30 am: 3785a0bca6 am: 5f05460ac1 am: b6d6c285c7
Change-Id: If664d7867f062dc8b7f3c629c745f2334885eb7e
2020-03-05 17:38:40 +00:00
Songchun Fan
130b6bec30 Merge "remove proxy binder service IIncrementalManager" into rvc-dev 2020-03-05 16:38:06 +00:00
Automerger Merge Worker
b6585d21cb Merge "Make ActivityInfo.preferMinimalPostProcessing a flag" into rvc-dev am: fc1430a39e am: 6d9e77306d am: bbddd16505 am: ec0afe1111
Change-Id: If309659d6957d3a55b75f49baf74d4b12940aa4a
2020-03-05 16:20:23 +00:00
Galia Peycheva
fc1430a39e Merge "Make ActivityInfo.preferMinimalPostProcessing a flag" into rvc-dev 2020-03-05 15:45:06 +00:00
Songchun Fan
7f051b5251 remove proxy binder service IIncrementalManager
This is no longer needed because native Incremental Service directly
uses IDataLoaderManager.

BUG: 150406132
Test: atest service.incremental_test
Test: atest PackageManagerShellCommandIncrementalTest
Change-Id: Idbde2988883becbf3eb707d42c0558774a6073e8
2020-03-04 19:50:44 -08:00
Automerger Merge Worker
627bfca085 Merge "Start process of next activity with top priority in advance" am: efbcd6752d
Change-Id: I8e8dd0f20cd3a783e49468a7657e571812bca3eb
2020-03-04 23:54:10 +00:00
Treehugger Robot
efbcd6752d Merge "Start process of next activity with top priority in advance" 2020-03-04 23:41:40 +00:00
Jeffrey Huang
5f9453e425 Revert "Remove DialogInterface.OnDismissListener and DialogInterface.OnCancelListener interfaces from SearchManager class."
This reverts commit 57971f10ce.

Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/submitted/6262717/aosp_bonito-userdebug/latest/view/logs/build_error.log, bug b/150798567.

Change-Id: I52313e7ca4287981ad87e8b7c263125b5ba2e117
2020-03-04 21:02:29 +00:00
skill
57971f10ce Remove DialogInterface.OnDismissListener and DialogInterface.OnCancelListener interfaces from SearchManager class.
Test: none
Bug: 148852932
Change-Id: I4f5a01c771c23b8ddeda8a174b78ca2897345afa
2020-03-04 10:47:07 +01:00
Automerger Merge Worker
aa3c71b011 Merge "Update car mode API docs." into rvc-dev am: 017df7f013 am: 8ec0c73597 am: 14583bbcca am: 1785d8cec3 am: 1c1dfe9e5a
Change-Id: I66d0e93e9ba2368fb7a37c069f71ab0b397a11ea
2020-03-04 02:59:55 +00:00
Tyler Gunn
017df7f013 Merge "Update car mode API docs." into rvc-dev 2020-03-04 01:43:52 +00:00
Riddle Hsu
364f2500e5 Start process of next activity with top priority in advance
In common cases, to resume the next activity we need to wait for the
current one to be paused. Since starting a process for activity is
asynchronous, if we already know the process of next activity has not
started yet, we can start the process earlier so the time waiting for
the pause to complete can be saved.

Also if the launching activity is going to be the top app, we can set
the top schedule group right after its process is started so the start
time before actually launching the activity can be improved.

Although before the current activity is paused, the next top activity
may still change and results some empty processes. That should not be
a common case and the process is still useful when going back the stack,
and the empty background processes are easier to be reclaimed.

Bug: 123043091
Test: AppLaunchTest
Test: Launch calculator from launcher, the event log am_proc_start will
      show "pre-top-activity".
Test: Cold launch a top activity, the system log should not show
      "not expected top priority".
Test: Use startActivities to start serveral activities in a sequence.
      Check "adb shell cat /proc/$pid/task/$pid/cgroup" for each process.
      Only the last one has top-app, others are background.

Change-Id: I9601b66e7cc0855fd7c2b573ded31fcf8d0711ae
Merged-In: I9601b66e7cc0855fd7c2b573ded31fcf8d0711ae
2020-03-03 16:36:46 -08:00
Tyler Gunn
22ef765d96 Update car mode API docs.
1. Clarify the distinction between the prioritized and non-prioritized
intents.
2. Make the priority ordering and choice of them more clear.

Test: make -j offline; preview updated docs for formatting.
Fixes: 150685399
Change-Id: I493bca75db44f25eedb07964e3dc8c8ab38827c2
2020-03-03 15:06:02 -08:00
Automerger Merge Worker
f6cdbeb470 Merge "Make MmsManager public and @SystemService" am: 01574a30ea
Change-Id: I6978fb1377f76308732fb241f04adcef82087b7f
2020-03-03 21:22:33 +00:00
Sarah Chin
01574a30ea Merge "Make MmsManager public and @SystemService" 2020-03-03 21:17:11 +00:00
Galia Peycheva
bdd66e30f8 Make ActivityInfo.preferMinimalPostProcessing a flag
Bug: 149420259

Test: atest CtsWindowManagerDeviceTestCases:MinimalPostProcessingTest

Change-Id: I250669158a532316bebed8fa8c17e009b9293ecb
2020-03-03 16:59:26 +01:00
Automerger Merge Worker
f9fd24a4c5 Merge "Allow activities/services to have app loaders" into rvc-dev am: b390818c60 am: 1aa1d90211 am: bf2c57e744 am: dfff74becd
Change-Id: Id7b6d20cbc87fc70984e85921f3a47835d163334
2020-03-03 02:04:13 +00:00
Ryan Mitchell
b390818c60 Merge "Allow activities/services to have app loaders" into rvc-dev 2020-03-03 00:40:40 +00:00
Shuo Qian
b048d31ead Merge "Add updateMccMncConfiguration as @TestApi for CTS" 2020-03-02 22:59:11 +00:00
Automerger Merge Worker
f1124753ed Merge "[API Review] Expose sendOrderedBroadcast" am: b0157c3ee3
Change-Id: I686308c2af6e31a30c211d25adea416d556e5cd1
2020-03-02 21:59:55 +00:00
Lee Shombert
675a58b2ce Merge "Fix a leak in HasSystemFeatureCache." into rvc-dev 2020-03-02 21:52:38 +00:00
Automerger Merge Worker
c99f2ba47e Merge "Do not rebase Resources with non RM impls" into rvc-dev am: a132d3b5e2 am: d610a2957d am: b964339153 am: 083a36b519
Change-Id: Icd623ec4d668f0c5fd5ca86809c6b9caafa04cb7
2020-03-02 20:59:19 +00:00
Ryan Mitchell
0cbfd2b12c Allow activities/services to have app loaders
When a service or activity attaches to a base context, add the
loaders from the application context to the base context. Activity
and service contexts are created before creating the Application
context, so in order to add the app loaders before the component
onCreate method is called, we must add the app loaders to the
component after the app has been initialized.

Bug: 148630842
Test: launch AppResourcesLoaders
Change-Id: I44aa718779c574094590d25fd839f1d9f9134edb
2020-03-02 20:54:13 +00:00
TreeHugger Robot
a132d3b5e2 Merge "Do not rebase Resources with non RM impls" into rvc-dev 2020-03-02 20:22:38 +00:00
Hui Yu
3b2dccfcc3 Merge "Revert "Change isProcStateBackground() cutoff to PROCESS_STATE_BOUND_FOREGROUND_SERVICE"" into rvc-dev 2020-03-02 19:46:25 +00:00
Automerger Merge Worker
17afdc2d5c Merge "Add @RequiresPemission compat framework APIs." into rvc-dev am: 81958ce9b4 am: 5a8971b75f am: a7f20f5752 am: 1e72dc9265
Change-Id: Ief319894b84de3202ec4b9bc984de4805b348f82
2020-03-02 18:38:30 +00:00
Lee Shombert
1f771846c5 Fix a leak in HasSystemFeatureCache.
Bug: 150037560

Make HasSystemFeatureQuery static so that it does not retain a handle
to ApplicationPackageManager.

Test: Boot with an instrumented image to verify that caching still works
as expected.  Took a heap profile to verify that there were no leaks in
the cache.

Change-Id: I2cd39a6dfab9cc1bf04bb7f55638a572213f04ce
2020-03-02 17:13:40 +00:00
atrost
7bc6bec6a6 Add @RequiresPemission compat framework APIs.
The permission check is already implemented server side.

Test: m
Bug: 150471082
Change-Id: I63d807be84bccb237f69562cdbce22f99a964d1a
2020-03-02 13:20:23 +00:00
Hui Yu
fa7d46b4d6 Revert "Change isProcStateBackground() cutoff to PROCESS_STATE_BOUND_FOREGROUND_SERVICE"
This reverts commit c7956f0d91.

Reason for revert: Network access for ContentProvider will be broken by this  change.

Bug: 149500958
Change-Id: I10337ab5840c517ec7712b0d2312a26cac6a4326
(cherry picked from commit 76ee3424c6)
2020-02-29 16:00:45 +00:00
TreeHugger Robot
ec9c7353e7 Merge "Revert "Change isProcStateBackground() cutoff to PROCESS_STATE_BOUND_FOREGROUND_SERVICE"" 2020-02-29 10:23:19 +00:00
Peter Wang
879f32b1cc Merge "[API Review] Expose sendOrderedBroadcast" into rvc-dev 2020-02-28 19:05:26 +00:00
Jing Ji
d3aff3aef1 Update the categories of app kill reaons
Prepare for the metrics, added additional subreasons.

Bug: 148087795
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest
Change-Id: Id4218f9af44c43824a9f530d48bbf8cd88c32a06
Merged-In: Id4218f9af44c43824a9f530d48bbf8cd88c32a06
2020-02-27 21:32:46 -08:00
Jing Ji
453030c56c Merge "Update the categories of app kill reaons" 2020-02-27 23:20:37 +00:00
Shuo Qian
3d873cf7d0 Add updateMccMncConfiguration as @TestApi for CTS
Test: cts; https://paste.googleplex.com/5930499648258048
Bug: 147897445
Change-Id: I63288be1acd9e898548ced345799ac1ae69ce427
2020-02-27 22:57:56 +00:00
Peter Wang
3e227cdfc5 [API Review] Expose sendOrderedBroadcast
with appOp as String and options as Bundle

Bug: 139077993
Bug: 146423958
Test: Build
Change-Id: I5325e08d60016741139251813a5df9b42f2efc82
Merged-In: I5325e08d60016741139251813a5df9b42f2efc82
2020-02-27 14:45:23 -08:00
Hui Yu
76ee3424c6 Revert "Change isProcStateBackground() cutoff to PROCESS_STATE_BOUND_FOREGROUND_SERVICE"
This reverts commit c7956f0d91.

Reason for revert: Network access for ContentProvider will be broken by this  change.

Bug: 149500958
Change-Id: I10337ab5840c517ec7712b0d2312a26cac6a4326
2020-02-27 20:22:44 +00:00
Automerger Merge Worker
b1680d163f Merge "Add context UID to package-name-based permission query" into rvc-dev am: ac3c969069 am: 29c2de9328 am: 0c76b9cc03 am: 19f3e42664
Change-Id: Ib08f9373ad0d76a1d1fa732c68138e6483478e18
2020-02-27 18:33:41 +00:00