Commit Graph

5465 Commits

Author SHA1 Message Date
Martijn Coenen
c35a1e8ecb Merge "Dump proxy debug info when exceeding proxy limit." into pi-dev am: 879d09f946
am: a634f425d9

Change-Id: I2fd8ddc6166f00d03a5cefc2d39e477f59a490f0
2018-05-26 02:30:20 -07:00
Martijn Coenen
a634f425d9 Merge "Dump proxy debug info when exceeding proxy limit." into pi-dev
am: 879d09f946

Change-Id: I02d14f682c6476b703d160dab911a3afc14af627
2018-05-26 02:19:18 -07:00
Martijn Coenen
eebac6d6b5 Dump proxy debug info when exceeding proxy limit.
If a process gets killed because it sends too many proxies,
dump proxy debug info so we can see what types of interfaces
it sends.

Bug: 71353150
Test: builds, output generated
Change-Id: I3a7787cb3fa73b0b4ad223b18cd79f44e22b9ef5
2018-05-25 20:13:24 +02:00
Andreas Gampe
97def7a097 Merge "Framework: Add API to get zygote PID" am: 1109e2333f am: 07578c786a
am: 4f11d5381e

Change-Id: I827a7df417597f17f78276052c5b17e064ebec7d
2018-05-24 17:47:57 -07:00
Andreas Gampe
4f11d5381e Merge "Framework: Add API to get zygote PID" am: 1109e2333f
am: 07578c786a

Change-Id: Ibee53631caad0d6ce2108970598f5226d20a849d
2018-05-24 13:49:41 -07:00
Treehugger Robot
1109e2333f Merge "Framework: Add API to get zygote PID" 2018-05-24 18:28:59 +00:00
Jovana Knezevic
3a5698adac Merge "Adding hidden APIs for assigning Admin flag to users." into pi-dev am: b662f94c37
am: f6eed4ba8c

Change-Id: I60f253dbd924411dcbde9714e1780d689560d5f4
2018-05-23 13:45:48 -07:00
Michael Wright
bd02d45b52 Merge "Uncanonicalize URIs before comparing them." into pi-dev
am: 467a831aa6

Change-Id: Ibe0197543af68f937baa4dae768bbc64d34370e4
2018-05-23 13:14:58 -07:00
Kweku Adams
c5cd7204b7 Merge "Bumping BatteryStats report version." into pi-dev am: 42b29eb462
am: cb69a53ce5

Change-Id: I510b2d20d733184bf52c997d4b6f3134e34f71a4
2018-05-23 13:02:25 -07:00
Jovana Knezevic
f6eed4ba8c Merge "Adding hidden APIs for assigning Admin flag to users." into pi-dev
am: b662f94c37

Change-Id: I4c3d9e5e95cfafbc2f51e9379b516fa402836fe3
2018-05-23 12:21:20 -07:00
Kweku Adams
cb69a53ce5 Merge "Bumping BatteryStats report version." into pi-dev
am: 42b29eb462

Change-Id: I7d512c4b4373019e594dc0422d750b3dddaf3f68
2018-05-23 11:28:50 -07:00
Michael Wright
467a831aa6 Merge "Uncanonicalize URIs before comparing them." into pi-dev 2018-05-23 12:39:34 +00:00
Jovana Knezevic
b662f94c37 Merge "Adding hidden APIs for assigning Admin flag to users." into pi-dev 2018-05-23 05:16:55 +00:00
TreeHugger Robot
42b29eb462 Merge "Bumping BatteryStats report version." into pi-dev 2018-05-23 02:19:20 +00:00
jovanak
f24ad4993c Adding hidden APIs for assigning Admin flag to users.
Also fixing method for requiring both MANAGE_USERS
and INTERACT_ACROSS_USERS_FULL permissions.

Fixes: 80001332
Bug: 25935510
Test: unit test
Change-Id: If10166b4379ddc6a5f004eab77fa1f93abf6ac2a
2018-05-23 00:08:05 +00:00
Kweku Adams
6fe1a5a334 Bumping BatteryStats report version.
Bug: 80147518
Test: Android builds
Change-Id: I663557cdf54dff3184681cf8584b22ad9b9939fe
2018-05-22 15:02:50 -07:00
Jeff Sharkey
1fffd4bd12 Merge "Build browse intents based on target user." into pi-dev am: c49d44c3ef
am: fab272e037

Change-Id: I040f23c8e2458b37721718a1be1f6546a9323cca
2018-05-22 14:07:49 -07:00
Jeff Sharkey
fab272e037 Merge "Build browse intents based on target user." into pi-dev
am: c49d44c3ef

Change-Id: I3e7bd4bc41115c42687be3be7c5a03e0919dfaf1
2018-05-22 13:57:30 -07:00
Jeff Sharkey
c49d44c3ef Merge "Build browse intents based on target user." into pi-dev 2018-05-22 20:43:27 +00:00
Michael Wright
f38efd123a Uncanonicalize URIs before comparing them.
In order to ensure we maintain compatibility, we now configure the
canonical URIs instead of the raw URIs. Correspondingly, we need to
uncanonicalize before comparing them.

Note that we uncanonicalize the configured URI, rather than
canonicalizing the one given to us. This is because the canonicalization
format might change (e.g. add extra parameters) at which point they'll
no longer by equal, but should always uncanonicalize to the same value.

Bug: 75947705
Test: manual
Merged-In: If3b02dfef480245210fd2c585c7c727de77a4a73
Change-Id: I53dece42424a6629e0fb406845f57ebbb06dffcb
2018-05-22 18:43:48 +00:00
Jeff Sharkey
b4ee5d7b42 Build browse intents based on target user.
SystemUI runs under a single user (user 0), and needs to build
browse intents for secondary users.  To accommodate this, the safety
check recently added to buildBrowseIntent() needs to be relaxed
when building for a non-current user.

Bug: 79733193
Test: builds, boots
Change-Id: Icce014bf824d0a0ee15e3d84c34f1c2b73d213c1
2018-05-22 12:01:34 -06:00
Michael Wright
32fa5931f9 Uncanonicalize URIs before comparing them.
In order to ensure we maintain compatibility, we now configure the
canonical URIs instead of the raw URIs. Correspondingly, we need to
uncanonicalize before comparing them.

Note that we uncanonicalize the configured URI, rather than
canonicalizing the one given to us. This is because the canonicalization
format might change (e.g. add extra parameters) at which point they'll
no longer by equal, but should always uncanonicalize to the same value.

Bug: 75947705
Test: manual
Change-Id: If3b02dfef480245210fd2c585c7c727de77a4a73
2018-05-22 18:21:59 +01:00
Svetoslav Ganov
085ef7dcb0 Merge "Make RemoteCallback test API" into pi-dev am: a757fd7827
am: 573a696f8f

Change-Id: Iab9be37d714d1d1b8eec032d9dabbcd5cb056834
2018-05-21 13:11:12 -07:00
Svetoslav Ganov
573a696f8f Merge "Make RemoteCallback test API" into pi-dev
am: a757fd7827

Change-Id: Iea481e8a4716bddf48a64d9370d248ffa7871158
2018-05-21 13:04:51 -07:00
Svet Ganov
6b03aa76e9 Make RemoteCallback test API
Test: manual

bug:79782915

Change-Id: I61343573428333c0d4a9ee2523c444753280186c
2018-05-21 15:55:28 +00:00
Jake Wharton
4195507fee Un-@hide Handler.hasCallbacks.
You can post messages with an int or int+Object, query if they're posted, and cancel them. With a Runnable, however, prior to this change you could only post and cancel them.

Bug: 37015636
Test: existing
Change-Id: Icb9ba40ebb32fb962cec8a88e2222f68fe629057
2018-05-18 16:05:41 -04:00
fionaxu
6518eaba09 Merge "add javadoc for carrier ifd install API" into pi-dev am: c4da4d494b
am: 3eb4b347c8

Change-Id: I4a60c2fbeff8581cd9d952c03326cc64d765d3d2
2018-05-17 16:28:25 -07:00
fionaxu
3eb4b347c8 Merge "add javadoc for carrier ifd install API" into pi-dev
am: c4da4d494b

Change-Id: Iae3d13c662edfe41b3a3c1bfd91c2af1a7e5a980
2018-05-17 16:20:30 -07:00
fionaxu
3083d0b0c7 add javadoc for carrier ifd install API
Bug: 79426800
Change-Id: Iaf5af11220c85dc63164cee31414dce8e4d02037
2018-05-17 15:03:00 -07:00
Robert Benea
1dda2f4e40 Merge "Replace HashMap with ArrayMap for services" 2018-05-17 16:02:08 +00:00
Olivier Gaillard
9429bf57d1 Track exception count using BinderCallStats.
Test: manual

Change-Id: I0ba876ff89749c67c7f422690ec45a18ffa1303e
2018-05-16 22:37:37 +01:00
Robert Benea
1901a5b483 Replace HashMap with ArrayMap for services
The number of services is pretty limited (100ish), use the more
memory efficient Map.

Test: tested on android go
Change-Id: I092c6816afba77fde4195c68a211804d4a561b77
2018-05-16 12:06:41 -07:00
Jeff Sharkey
39e3d378d7 Merge "Q." 2018-05-16 16:08:48 +00:00
Pete Gillin
24e959cc6b Merge "Merge "Stop using Arrays.checkOffsetAndCount. am: 60f55a255f" into stage-aosp-master am: 72629d9999" into pi-dev-plus-aosp
am: cb45faa86e

Change-Id: Ibabe1fec3050f26e0a3182077180009ccd3271ad
2018-05-16 08:44:56 -07:00
Pete Gillin
306481a63b Merge "Stop using Arrays.checkOffsetAndCount. am: 60f55a255f" into stage-aosp-master
am: 72629d9999

Change-Id: Ia8f5ce41c654cb6522c6ea5f2863d97f282ce268
2018-05-16 08:27:27 -07:00
Pete Gillin
a9d6a27a2e Stop using Arrays.checkOffsetAndCount.
am: 60f55a255f

Change-Id: Ic9f894d8fe813d0bb6e3776790ff113d2826d881
2018-05-16 07:11:54 -07:00
Pete Gillin
ca3450b524 Merge "Stop using Arrays.checkOffsetAndCount." 2018-05-16 13:04:13 +00:00
Jerry Zhang
c5c75c8be9 Merge "Access removable volumes through /mnt/media_rw" into pi-dev am: 1e62b676d9
am: 9e1d134556

Change-Id: I68bf226aaf424c9f0e7e54fe7817050ab6d4208c
2018-05-15 15:37:21 -07:00
Jerry Zhang
9e1d134556 Merge "Access removable volumes through /mnt/media_rw" into pi-dev
am: 1e62b676d9

Change-Id: Ibc2cf0e4243adb0f69f2ba7ac3ca7526bb492b38
2018-05-15 14:50:02 -07:00
Jerry Zhang
1e62b676d9 Merge "Access removable volumes through /mnt/media_rw" into pi-dev 2018-05-15 21:35:43 +00:00
Jeff Sharkey
8929b5245d Q.
Bug: 77588754
Test: builds, boots
Change-Id: Ib1d993fe2949f480a350acfa7e2b3cfdc7abd257
2018-05-15 19:35:56 +00:00
Jerry Zhang
71938e18ca Access removable volumes through /mnt/media_rw
Due to permissions changes, we now need to access
the underlying filesystem of removable devices in
order to get write access.

Add internalPath to StorageVolume, and have VolumeInfo
set the field on creation.

Bug: 77849654
Test: Can write to emulated sdcard through MTP
Change-Id: I63302ecf2dd2600a1c9f3f6ab106c3695654cbaa
2018-05-14 11:39:12 -07:00
Treehugger Robot
87a7c657bd Merge "add install action for carrier id to system API" 2018-05-11 17:36:24 +00:00
fionaxu
4ff8de609b add install action for carrier id to system API
Bug: 79426800
Test: Manual
Change-Id: Icd3e9ae527dc17ab5762aa57df596f058de08d5b
(cherry picked from commit 2776ed56b8)
Merged-in: Icd3e9ae527dc17ab5762aa57df596f058de08d5b
2018-05-11 15:54:45 +00:00
Pete Gillin
60f55a255f Stop using Arrays.checkOffsetAndCount.
Start using ArrayUtils.throwsIfOutOfBounds instead. The Arrays method
is going to be removed.

Bug: 78447530
Test: cts-tradefed run cts-dev -m CtsOsTestCases (shows only unrelated failures: two user/userdebug mismatches and one from b/79471510)
Test: cts-tradefed run cts-dev -m CtsDrmTestCases
Test: adb shell am instrument -w -e class android.content.pm.LimitedLengthInputStreamTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Test: adb shell am instrument -w -e class android.os.FileBridgeTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner

Change-Id: Ib3cd4f4ead61dbec1ccdc94b2ad4ad9c28574582
2018-05-10 18:17:50 +01:00
Andreas Gampe
8444dca38c Framework: Add API to get zygote PID
Add a zygote call that returns the PID of the zygote. Used for
profiling.

Bug: 79266002
Test: m
Change-Id: Idf9ba5ec314eb4cb72921000ad6cb34d1035a92a
2018-05-10 09:10:00 -07:00
fionaxu
f88ba11def Merge "add install action for carrier id to system API" into pi-dev am: 689866352b
am: 907f3cd76b

Change-Id: If16f5f96067f100ecd207164fcd29764414a218f
2018-05-09 16:22:54 -07:00
fionaxu
907f3cd76b Merge "add install action for carrier id to system API" into pi-dev
am: 689866352b

Change-Id: I472e17218bfe5bcb3178ff6da87910812b17a4dc
2018-05-09 16:08:26 -07:00
TreeHugger Robot
689866352b Merge "add install action for carrier id to system API" into pi-dev 2018-05-09 22:47:40 +00:00
fionaxu
2776ed56b8 add install action for carrier id to system API
Bug: 79426800
Test: Manual
Change-Id: Icd3e9ae527dc17ab5762aa57df596f058de08d5b
2018-05-08 15:25:40 -07:00