Commit Graph

15980 Commits

Author SHA1 Message Date
Louis Chang
0572586935 Merge "Avoid making post state to RESUMED for a PAUSING activity" into qt-dev am: ae80cf399a am: d75d59e276
am: 2b1d0b0bd5

Change-Id: I01a328a7a1b5ed7f7a72a4d93c54f5a8ef32e216
2019-07-03 19:49:27 -07:00
Louis Chang
2b1d0b0bd5 Merge "Avoid making post state to RESUMED for a PAUSING activity" into qt-dev am: ae80cf399a
am: d75d59e276

Change-Id: I4d4fca8ed694827d3090b97869fc8eb6bec22fca
2019-07-03 17:29:12 -07:00
Louis Chang
d75d59e276 Merge "Avoid making post state to RESUMED for a PAUSING activity" into qt-dev
am: ae80cf399a

Change-Id: I555a5a142e9edb6b6242a831561754082b750b54
2019-07-03 16:40:13 -07:00
TreeHugger Robot
f10a78ceaf Merge changes from topic "perm_query"
* changes:
  Move add/remove permission
  Move permission info queries
2019-07-03 19:46:44 +00:00
Todd Kennedy
6ffc5a6eee Move add/remove permission
Bug: 135279435
Test: atest android.content.pm.cts.PackageManagerTest
Change-Id: I40a6d592031483a6dfe61906f6fa011c91910328
2019-07-03 10:14:19 -07:00
Todd Kennedy
1d29b4af0b Move permission info queries
Now begins the parade of methods that can be migrated to the
permission manager service and be removed from the package
manager service.

We will still need to maintain some sub-set of APIs in the
package manager service due to unsupported app usage. When
we finally no longer support these AIDL methods, they can
be removed from package manager service.

Bug: 135279435
Test: Manual. Builds and runs
Change-Id: If12609ffdaeb75445d3ec9bcc7f946b8829ba769
2019-07-03 10:14:09 -07:00
Louis Chang
ea203cdbdf Avoid making post state to RESUMED for a PAUSING activity
Make sure the client post execution lifecycle state to RESUMED
only if the activity was RESUMED while delivering new intent.

Bug: 135715788
Test: making skype calls
Test: atest ActivityThreadTest

Change-Id: I1e3054e1d1611aecf6ddf6d482abf2cb3ebdf9a4
2019-07-03 09:44:12 +08:00
TreeHugger Robot
9e63c33f9e Merge "Create permission manager AIDL" 2019-07-02 23:26:07 +00:00
Todd Kennedy
8f135982a8 Create permission manager AIDL
Today, the package manager largely routes any permission related
method to the PermissionManagerService. But, PermissionManagerService
is a service in name only. Instead, we will make the
PermissionManagerService a real service and direct API calls directly
to it.

We will likely need to maintain all of the public permission APIs
that already exist on PackageManager. However, the public -> private
implementation will go directly to PermissionManagerService.

Bug: 135279435
Test: Manual. Device boots
Change-Id: Ia4992ba6d1f4b9050db98c7d7647d51a5d45fcbe
2019-07-02 13:17:05 -07:00
TreeHugger Robot
498cc58a7c Merge "Print activity event log with token identity" 2019-07-02 08:28:52 +00:00
Riddle Hsu
9a5bb3bbc5 Print activity event log with token identity
The log information will be clearer when there are multiple
activities use the same class.

The user id field is replaced because it can be easily read by
the printed uid (logcat -v uid) or mapped to the corresponding
log printed by system server that contains user id.

Bug: 136456023
Test: The server and client am_* lifecycle related event logs
      print the same identity.

Change-Id: Iaf82041bc8b4e6690e3aee822c91389bd166b6df
2019-07-01 20:16:12 +08:00
Mathew Inwood
46f7f16a4d Merge "Restore some greylist entries." into qt-dev am: f76bdce6e0 am: 13ffa87a6d
am: 89f02cc81c

Change-Id: Ib5bc4e76d81ad69f7c3293e6cb72393e1aee7ed9
2019-06-28 09:36:40 -07:00
Mathew Inwood
89f02cc81c Merge "Restore some greylist entries." into qt-dev am: f76bdce6e0
am: 13ffa87a6d

Change-Id: I4c92e5685804a5b03510ab5b9396c0dc6f4aad46
2019-06-28 08:49:28 -07:00
Mathew Inwood
13ffa87a6d Merge "Restore some greylist entries." into qt-dev
am: f76bdce6e0

Change-Id: I320e33be57b8124ff7c132a67c8981d53802f8f5
2019-06-28 07:43:43 -07:00
TreeHugger Robot
f76bdce6e0 Merge "Restore some greylist entries." into qt-dev 2019-06-28 12:02:43 +00:00
Mathew Inwood
3a75f264a8 Restore some greylist entries.
In Q, these APIs were either:
- removed from the greylist entirely without good reason
- Moved to the restricted greylist without any public alternative
  information added

So they are being moved back to the greylist for Q.

Test: Treehugger
Bug: 136102585
Change-Id: I5ac8b8b9b23c3789d80239cf456072cc7dfa1203
2019-06-28 10:15:37 +01:00
David Nelloms
17dccf5418 Merge "Notify on task display change." into qt-dev
am: 22a5e4e5d9

Change-Id: Ia0ae853122ff3acb755abfebb88dda863ee61080
2019-06-27 18:24:54 -07:00
Hai Zhang
43d572f87a Merge "Add link to AndroidX Role library in RoleManager documentation." into qt-dev am: bde371beb6 am: 6c162a4e36
am: 7a794c1454

Change-Id: Ic94f040cbe4552d93194de2fc2bd295018b2a831
2019-06-27 18:03:29 -07:00
Hai Zhang
7a794c1454 Merge "Add link to AndroidX Role library in RoleManager documentation." into qt-dev am: bde371beb6
am: 6c162a4e36

Change-Id: I198ee289321ee930f6e49833e71943ef647fe7d6
2019-06-27 17:33:40 -07:00
David Nelloms
22a5e4e5d9 Merge "Notify on task display change." into qt-dev 2019-06-28 00:12:49 +00:00
Hai Zhang
6c162a4e36 Merge "Add link to AndroidX Role library in RoleManager documentation." into qt-dev
am: bde371beb6

Change-Id: I846b027bd1970ebc10a1720e5cc601bf633954f6
2019-06-27 17:04:26 -07:00
davidln
a06b4b2fa5 Notify on task display change.
This is a targeted fix for not receiving a task stack change callback
when a task with a resumed Activity is reparented to another display.

Bug: 128932906

Test: manual - launch activity from virtual display onto default display
  in a new task, verify callback notified. atest WmTests
Change-Id: Idabad8379cded664bcf302d5c6fb69564d158eb7
Merged-In: Idabad8379cded664bcf302d5c6fb69564d158eb7
2019-06-27 18:54:00 +00:00
David Nelloms
21e69dd2d1 Merge "Notify on task display change." into qt-r1-dev am: d2310e6ce3
am: 9733e690f9

Change-Id: Id3edb8a4410c85c4ea594738f88e52c49ec8223e
2019-06-27 11:19:15 -07:00
Hai Zhang
bae001170b Add link to AndroidX Role library in RoleManager documentation.
Fixes: 136119951
Test: presubmit
Change-Id: Iab4c8617983555b04d7c49b7f9583cf2132d57c8
2019-06-27 00:14:44 +00:00
TreeHugger Robot
42439214eb Merge changes Ifd466d1e,I9f57651a
* changes:
  Don't set windowing mode in fullscreen displays.
  Only persist launch params on freeform display.
2019-06-26 20:34:30 +00:00
David Nelloms
9733e690f9 Merge "Notify on task display change." into qt-r1-dev
am: d2310e6ce3

Change-Id: Ie4c6606c43ded6f35fcbef4e0d6c28977f3e09e5
2019-06-26 10:40:44 -07:00
Garfield Tan
3129b85335 Only persist launch params on freeform display.
We don't want to launch to fullscreen only because it's been launched on
a fullscreen display before. We should still restore the bounds when it
was on a freeform display last time.

Bug: 135941344
Bug: 135780225
Test: Manual tests.
Change-Id: I9f57651a01513652cc4c38c2d91d4c46db5c5d5d
2019-06-26 09:44:52 -07:00
TreeHugger Robot
559ce55e7f Merge "Record initial app given importance" 2019-06-26 16:17:38 +00:00
davidln
1ceedb55d0 Notify on task display change.
This is a targeted fix for not receiving a task stack change callback
when a task with a resumed Activity is reparented to another display.

Bug: 128932906

Test: manual - launch activity from virtual display onto default display
  in a new task, verify callback notified. atest WmTests
Change-Id: Idabad8379cded664bcf302d5c6fb69564d158eb7
2019-06-25 21:05:31 -07:00
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
Julia Reynolds
469144c3e8 Record initial app given importance
To allow users an easy way to 'go back to how it was'

(also migrate some tests to other files)

Test: atest, cts
Bug: 135751328

(cherry picked from commit 03de363ce278b6d708a6d30f83468584a14a65d5)

Change-Id: I949f366410d2cb2ab424b1b03222743e6e60d867
2019-06-25 10:16:19 -04: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
689148acc6 Merge "Add anon RSS + swap metric" into qt-dev
am: 9af8d15783

Change-Id: I00f58e98bb7c162032bf381348a63be4bd77ac0f
2019-06-24 08:16:21 -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
9e3a59f51a Merge "Update docs for EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS." into qt-dev
am: ab34f61c3b

Change-Id: I49e43ed171d4ff45cf400ac9fc009ef78a2c8eef
2019-06-21 11:22:50 -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