Commit Graph

15945 Commits

Author SHA1 Message Date
Eric Biggers
937e769728 Merge "Remove the rename() interceptor" 2019-06-25 18:33:00 +00:00
TreeHugger Robot
bbd2a2b56d Merge "Remove deprecated & removed JobInfo methods." 2019-06-25 18:24:17 +00:00
Eric Biggers
4d556c3f37 Remove the rename() interceptor
Remove the rename() interceptor which was added by change
I7f4461bcacada80398eb95d051a0d29456f63499, since the design of scoped
storage was changed to not use bind mounts.  So, the reason for adding
the rename() interceptor in the first place no longer exists.

Bug: 131115422
Bug: 135278311
Test: atest android.appsecurity.cts.ExternalStorageHostTest#testExternalStorageRename
Change-Id: I0f9ac456104759887c0410fe64acc32cab19b62b
2019-06-24 17:35:19 -07:00
TreeHugger Robot
928f511e9f Merge "Don't create string temporaries if tracing isn't enabled" 2019-06-24 20:49:51 +00:00
Ioannis Ilkos
80d76c5225 Merge "Merge "Add anon RSS + swap metric" into qt-dev am: 9af8d15783 am: 83270da58c" into qt-r1-dev-plus-aosp
am: d3f2c2bf8b

Change-Id: I1568d2c4cc84150749b155f07f35aee689f60924
2019-06-24 09:38:47 -07:00
Ioannis Ilkos
c724ee2de3 Merge "Add anon RSS + swap metric" into qt-dev am: 9af8d15783
am: 83270da58c

Change-Id: I059f5a51d7a7399df9ec4fd26989fc77eb03c734
2019-06-24 08:59:34 -07:00
Ioannis Ilkos
83270da58c Merge "Add anon RSS + swap metric" into qt-dev
am: 9af8d15783

Change-Id: Icdc2f66054c9f1450a731f051707b3824c487865
2019-06-24 08:11:08 -07:00
TreeHugger Robot
1077ae03f3 Merge "Start process of next activity with top priority in advance" 2019-06-24 09:00:00 +00:00
Ioannis Ilkos
9af8d15783 Merge "Add anon RSS + swap metric" into qt-dev 2019-06-24 08:46:40 +00:00
Kweku Adams
316b14147d Remove deprecated & removed JobInfo methods.
These methods were marked deprecated and tagged with @removed
before Pie shipped but ConnectivityController wasn't updated to perform
the proper computations. This removes the deprecated methods altogether
and updates ConnectivityController accordingly.

Bug: 135214188
Test: atest com.android.server.cts.JobSchedulerIncidentTest
Test: atest com.android.server.job.controllers.ConnectivityControllerTest
Test: atest com.android.providers.downloads.DownloadProviderFunctionalTest
Change-Id: I7c364a4326c31e8aae54a4fc69703434d8c7c915
2019-06-21 11:39:28 -07:00
Antoan Angelov
b39d17720a Merge "Update docs for EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS." into qt-dev am: ab34f61c3b am: 648eb2d3a7
am: 2c612c0a17

Change-Id: Ic954327dcaee6a54ffe3723ff0311b05010cab3e
2019-06-21 11:35:50 -07:00
Antoan Angelov
2c612c0a17 Merge "Update docs for EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS." into qt-dev am: ab34f61c3b
am: 648eb2d3a7

Change-Id: I0999d5fde028f595864633400e4368a6f5e4f430
2019-06-21 11:27:49 -07:00
Antoan Angelov
648eb2d3a7 Merge "Update docs for EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS." into qt-dev
am: ab34f61c3b

Change-Id: I4b0230f1429e5ca278fa6f5c15babddb1a71cda6
2019-06-21 11:15:06 -07:00
Antoan Angelov
ab34f61c3b Merge "Update docs for EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS." into qt-dev 2019-06-21 18:07:22 +00:00
Ioannis Ilkos
466ad6c3e0 Add anon RSS + swap metric
We are planning to use this metric to detect leaks.

This CL also decouples the actual memory sampling from AM. This means:
- Less time locking the pid list (we used to lock and then read proc)
- Less serialization / deserialization for the parcel
- Simpler to evolve (e.g. removed the HWM-specific method in AM)

Change-Id: I87a7243156dd8c88cfa85038e7e6cf4963e271e1
Test: manual, MemoryStatUtilTest, UidAtomTests
Bug: b/135418017
2019-06-21 11:10:19 +01:00
John Reck
e48e6dac0a Don't create string temporaries if tracing isn't enabled
Test: none
Change-Id: I82212c7b49c1c79bccd48e8d98326253372a6b62
2019-06-20 14:59:51 -07:00
arangelov
bb2a802a23 Update docs for EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS.
Bug: Fixes: 134391678
Test: manual
Change-Id: I993af4f4a741283294b1754dfc0adc7c6f6f849e
2019-06-20 16:31:10 +01:00
Makoto Onuki
3876068996 Merge "Optionally trigger CG in onTrimMemory()" into qt-dev am: 71acb72cbd am: 5b80149cce
am: de9b336ce2

Change-Id: I8b190c123371ddc08b139b6c597e53cf69ff4fcf
2019-06-19 22:52:00 -07:00
Makoto Onuki
de9b336ce2 Merge "Optionally trigger CG in onTrimMemory()" into qt-dev am: 71acb72cbd
am: 5b80149cce

Change-Id: Icec805c33ffbf833f070a5c6a1bb03f92d195ebc
2019-06-19 20:13:32 -07:00
Makoto Onuki
5b80149cce Merge "Optionally trigger CG in onTrimMemory()" into qt-dev
am: 71acb72cbd

Change-Id: I02c2450dc66c3741c451c34d54f90f0214114988
2019-06-19 19:41:10 -07:00
Makoto Onuki
71acb72cbd Merge "Optionally trigger CG in onTrimMemory()" into qt-dev 2019-06-19 23:24:04 +00:00
Makoto Onuki
0a9ee1af2c Optionally trigger CG in onTrimMemory()
Set a trim-level threshold to debug.am.run_gc_trim_level to activate it.

Bug: 135148702
Test: Manual test with "setprop debug.am.run_gc_trim_level 0", run a lot of
heavy apps and take pictures, and check logcat for the "force_gc" event log.
Test: Manual test with "setprop debug.am.run_mallopt_trim_level 0", run a lot of
heavy apps and take pictures, and check logcat for a debug log.

Change-Id: I73b4dc7374e85e9a22c98ab17da53aa6cb25a188
2019-06-19 10:01:55 -07:00
TreeHugger Robot
195549ac6b Merge "Allow the down volume key to silence notifs" 2019-06-18 20:22:02 +00:00
Julia Reynolds
deb2d0b743 Allow the down volume key to silence notifs
Additionally preserve existing behavior by passing
the keypress on.

Fixes: 130025623
Test: manual
Change-Id: I00f83275000369c1ab03bae63eb0a4b6170c4b53
2019-06-17 15:34:26 -04:00
TreeHugger Robot
45a2a9a279 Merge "Remove PictureInPictureArgs." 2019-06-17 14:51:52 +00:00
Kweku Adams
8fbd9bfab5 Remove PictureInPictureArgs.
The class was marked @Deprecated and @removed in Oreo but stuck around
despite not being used.

Bug: 135214188
Test: flash device and confirm PiP still works
Change-Id: I34c5043a1e4ee6639f7fae4d114c247bc3fe810c
2019-06-14 18:39:15 -07:00
Philip P. Moltmann
b30aedd1ce Merge "Mark getProfileOwnerAsUser(int) as UnsupportedAppUsage again" into qt-dev am: 73e04f292a am: 91452e14e5
am: 88e2e3ec2b

Change-Id: Ibb4bb1b78cfb980e4af876dc1560e6598e2c1abf
2019-06-14 18:20:50 -07:00
Philip P. Moltmann
88e2e3ec2b Merge "Mark getProfileOwnerAsUser(int) as UnsupportedAppUsage again" into qt-dev am: 73e04f292a
am: 91452e14e5

Change-Id: I05f3a69f77d08b24f1b885d7278cf05ef37957e9
2019-06-14 17:52:04 -07:00
Philip P. Moltmann
91452e14e5 Merge "Mark getProfileOwnerAsUser(int) as UnsupportedAppUsage again" into qt-dev
am: 73e04f292a

Change-Id: Ice8060926b8ae3109e1c1cc8212f3111fc72c033
2019-06-14 17:33:19 -07:00
Philip P. Moltmann
c073e956dc Mark getProfileOwnerAsUser(int) as UnsupportedAppUsage again
As it was in P. There are no public APIs created, hence there is no
better, _public_, alternative.

Fixes: 135282729
Test: none
Change-Id: I199cfcc125f948b983eb55a199abf673cc58b7e1
2019-06-14 14:09:35 -07:00
Selim Cinek
524f938443 Merge "Removed the AmbientPulseManager" into qt-r1-dev am: dd78681345
am: 71e6bd1433

Change-Id: I1abf6e208f352c45de39dd91be03f149c0bea403
2019-06-11 19:05:38 -07:00
Selim Cinek
71e6bd1433 Merge "Removed the AmbientPulseManager" into qt-r1-dev
am: dd78681345

Change-Id: Icaf3291acaae32e8cc785a4b31516b4357c47042
2019-06-11 18:44:08 -07:00
Selim Cinek
dd78681345 Merge "Removed the AmbientPulseManager" into qt-r1-dev 2019-06-12 01:35:18 +00:00
Selim Cinek
c3fec68900 Removed the AmbientPulseManager
We only want a single pulse manager since notifications
need to dynamically switch from pulsing to heads up
in the future.

Bug: 130327302
Change-Id: I0cbf23a69f33850776df81c4616932409670fe67
2019-06-11 13:58:02 -07:00
Riddle Hsu
32dbdca4f5 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
2019-06-11 15:28:01 +08:00
Andrew Solovay
427fa831d1 Merge "docs: Fixing broken HTML" into qt-dev am: b230dd4fe6 am: be2a68c47e
am: 9f0dfc8764

Change-Id: I4dd193fc638507c194918d1615dec19a8d963307
2019-06-10 11:59:36 -07:00
Andrew Solovay
9f0dfc8764 Merge "docs: Fixing broken HTML" into qt-dev am: b230dd4fe6
am: be2a68c47e

Change-Id: Idb85389aeffdc0661adc685abb7f164f9f9437ab
2019-06-10 11:53:30 -07:00
Andrew Solovay
be2a68c47e Merge "docs: Fixing broken HTML" into qt-dev
am: b230dd4fe6

Change-Id: I1bd88c7508c580b69078f62a352958106cb9ae13
2019-06-10 11:43:31 -07:00
Andrew Solovay
b230dd4fe6 Merge "docs: Fixing broken HTML" into qt-dev 2019-06-10 18:23:40 +00:00
Eugene Susla
93bd120d59 Merge "Add timeout for setPermissionGrantState" into qt-dev am: 3baa0b34e3 am: 3d5b18aab1
am: b8342102f0

Change-Id: I5d126816dcb0a62f2e4d5da690acdb2db4e52388
2019-06-10 09:55:57 -07:00
Eugene Susla
b8342102f0 Merge "Add timeout for setPermissionGrantState" into qt-dev am: 3baa0b34e3
am: 3d5b18aab1

Change-Id: Ib1052e2bc4c1f5f175fa5c27bb348c3673ed1051
2019-06-10 09:50:56 -07:00
Eugene Susla
155cb7c247 Merge "Add timeout for setPermissionGrantState" into qt-dev
am: 3baa0b34e3

Change-Id: Ib1a295ed4de405ce8fc30d53a4334ef1ed2005e6
2019-06-10 09:46:53 -07:00
Eugene Susla
3d5b18aab1 Merge "Add timeout for setPermissionGrantState" into qt-dev
am: 3baa0b34e3

Change-Id: I1a342c7f85a75d6a66296455fabad769a133a89b
2019-06-10 09:45:56 -07:00
Andrew Solovay
7ad2170f4e docs: Fixing broken HTML
A couple of broken </code> tags were messing up the formatting
for the entire page (see b/134696600 , http://screen/aThdcpoDvJo.png )

Staged the fixed doc to:

http://go/dac-stage/reference/android/app/Activity

(The live version of this doc has already been fixed -- I fixed
the HTML by hand in cl/251937759 -- but we need to fix the Java
comment, or the file will revert when we publish beta 5.)

Bug: 134696600
Test: make ds-docs (& staged HTML output)
Exempt-From-Owner-Approval: Docs-only fix
Change-Id: I7e6d11ca358d747cdc6d04741d31c7acd85aa080
2019-06-07 14:14:04 -07:00
Eugene Susla
fa5fb1f661 Add timeout for setPermissionGrantState
Fixes: 134380096
Test: presubmit
Change-Id: Ifff243068eea2637cf8f6391b52a4c53bc544615
2019-06-07 12:56:47 -07:00
Julia Reynolds
e4a47ddc3a Allow delegates to cancel notifs they posted
They still cannot see or cancel notifications that the delegator
app posted

Test: cts
Bug: 134585713
Change-Id: If2065010ea5f65cdc0b531441be9a9989214afb7
2019-06-07 14:05:32 -04:00
Al Sutton
348a282c11 Reconcile the backup OWNERS files with the internal repo.
This CL addresses a specific branch where a merge conflict is happening.

Change-Id: I69f6419055be4adc974041d78a1517ded7e5c57b
Merged-In: I42c27dfc0f3f792c46fe60e0f6807e51a2c3f21e
Test: build/make/tools/checkowners.py -c -v OWNERS
Bug: 134730213
2019-06-07 09:50:19 +01:00
Al Sutton
d10e8f29a2 Reconcile the backup OWNERS files with the internal repo.
This CL addresses a specific branch where a merge conflict is happening.

Change-Id: I03d72ecec447304866d96e2f0908acbc2a1796b6
Merged-In: I42c27dfc0f3f792c46fe60e0f6807e51a2c3f21e
Test: build/make/tools/checkowners.py -c -v OWNERS
Bug: 134730213
2019-06-07 09:40:24 +01:00
Adam Bookatz
97aec9789d Merge "loadUnbadgedItemIcon doesn't crash from getUserIcon" into qt-dev am: 14a34b9efb am: aaa16c0734
am: 5429fd5e37

Change-Id: I345a035d702d699777f5a651664a8a9801ee68b8
2019-06-06 11:28:10 -07:00
Adam Bookatz
5429fd5e37 Merge "loadUnbadgedItemIcon doesn't crash from getUserIcon" into qt-dev am: 14a34b9efb
am: aaa16c0734

Change-Id: I33b958f2b0f2fa29a36b4f6436abe8d446222542
2019-06-06 11:14:09 -07:00