Commit Graph

6987 Commits

Author SHA1 Message Date
Chris Tate
2ee1955456 Merge "Move UserManagerInternal into services.jar" 2019-10-18 20:29:13 +00:00
Christopher Tate
65fb2e4e40 Move UserManagerInternal into services.jar
Because SettingsProvider needs to call through the IUserManager
interface there is now a method to provide restricted-access information
via that route.  It has the same protection as the implicit local
service call surface that was previously used:  only system-uid callers
can invoke it.

Bug: 140833849
Test: system boots & runs normally
Change-Id: I05823ca57240ab10feb382c45590541212e406c1
2019-10-17 15:23:23 -07: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
Chen Xu
3321171cc7 Merge "non-mainline telephony related AIDL refactor/decoupling" 2019-10-17 18:27:13 +00:00
Chen Xu
1f6cfa5399 non-mainline telephony related AIDL refactor/decoupling
1. decouple IOnSubscriptionChangedListener AIDL from telephonyMainline
2. other refactor. moving APIs which will not be included in
telephony mainline to frameworks/base/core/java/android/telephony.
Moving internal classes like AIDL which will not be included in
telephony mainline to
framework/base/core/java/com/android/internal/telephony

Bug: 140908357
Test: Build & unit test
Change-Id: I9413ef758cceadd251d03f3b5ea1054cc48ef044
2019-10-16 15:30:24 -07:00
Jon Spivack
1dd86b4020 Merge "Made libbinder's waitForService accessible in java" am: 3ef1b5e544 am: fa830219cd am: 6b8cef41e5
am: 6fd2b9e8e5

Change-Id: If28614029aa7ba2f5ce4358bcd47db3f316c236a
2019-10-11 18:40:48 -07:00
Jon Spivack
6fd2b9e8e5 Merge "Made libbinder's waitForService accessible in java" am: 3ef1b5e544 am: fa830219cd
am: 6b8cef41e5

Change-Id: I8814042dc6f0a86c321b8bad4f89b0ecc12f3407
2019-10-11 18:29:07 -07:00
Jon Spivack
6b8cef41e5 Merge "Made libbinder's waitForService accessible in java" am: 3ef1b5e544
am: fa830219cd

Change-Id: I312f51b6a802754981bf642c587cbbdb3024cfbb
2019-10-11 18:17:45 -07:00
Jon Spivack
fa830219cd Merge "Made libbinder's waitForService accessible in java"
am: 3ef1b5e544

Change-Id: I70972120fcb7dd7cbe664750409bfd00a41e0a62
2019-10-11 18:06:40 -07:00
Jon Spivack
3ef1b5e544 Merge "Made libbinder's waitForService accessible in java" 2019-10-12 00:50:43 +00:00
Jon Spivack
9e45fde5e9 Made libbinder's waitForService accessible in java
waitForService is used to lazily start AIDL services

Bug: 138756857
Test: Manual (tested starting gsiservice with this function)
Change-Id: I7ff16b014052d3845bd4b1baa8fc9843e7975a16
2019-10-11 15:15:02 -07:00
Xin Li
019d9d0bf7 Merge "DO NOT MERGE - Merge QP1A.191005.007 into master" 2019-10-11 02:56:40 +00:00
Jeff Sharkey
588c15e56e Reveal color standard, transfer, and range.
We've already been parsing them for many years, and they're well
defined by other public APIs, so let's reveal them in MediaStore.

Also get some storage-related documentation updated to guide
developers towards replacements in a post-scoped-storage world.

Bug: 140247264, 139185855, 141523097, 139185322
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Id39a74a9972a330b3f83913b2eef5100ec59627d
2019-10-10 17:44:57 -06:00
Adam Bodnar
2173ac60d7 Merge "Allow injecting layers by manifest metadata" 2019-10-10 17:31:14 +00:00
Xin Li
8efb8c35f1 DO NOT MERGE - Merge QP1A.191005.007 into master
Bug: 142297020
Merged-In: Ifc7254ab3a5272b056cbc75233aa2dfa8219ea84
Change-Id: Ib4566cec52912a8daa86c317fd99d6d60ef1524f
2019-10-10 00:28:04 +00:00
Daniel Colascione
5043f89d50 Merge "Apply JNI optimizations to HwParcel" am: 299036ea2f am: 2e7651e279 am: 3b2f1e2d4d
am: 94e087973f

Change-Id: I90f38dc950e45e8a0c466de1c7c181dad8011a7c
2019-10-08 23:21:33 -07:00
Kevin Hufnagle
74eab9c6cd Merge "docs: Updated SECURITY_PATCH field description" into qt-dev am: 3c92f24adb am: 7b02dd8342 am: 2f57ebf99c
am: 63edc1be29

Change-Id: I3972f680bd7a4a64be15521c96f50a7da16e01eb
2019-10-08 23:18:52 -07:00
TreeHugger Robot
b9a532718a Merge "Rename THREAD_GROUP_BG_NONINTERACTIVE to THREAD_GROUP_BACKGROUND" 2019-10-09 02:38:27 +00:00
Daniel Colascione
94e087973f Merge "Apply JNI optimizations to HwParcel" am: 299036ea2f am: 2e7651e279
am: 3b2f1e2d4d

Change-Id: Icf622444a6148762fff631216fed22d3cb5c0e5c
2019-10-08 17:21:47 -07:00
Daniel Colascione
3b2f1e2d4d Merge "Apply JNI optimizations to HwParcel" am: 299036ea2f
am: 2e7651e279

Change-Id: Ib0f2f227a01e9ec43f3b8a96a5330bf7ae76ec44
2019-10-08 17:09:45 -07:00
Daniel Colascione
2e7651e279 Merge "Apply JNI optimizations to HwParcel"
am: 299036ea2f

Change-Id: Icabf83e888a99f8b2837540f5709c7e72a515fa0
2019-10-08 16:55:34 -07:00
Daniel Colascione
c94b8c3dcc Apply JNI optimizations to HwParcel
This change reduces the JNI overhead of binder calls by about 160ns
per parameter.

Test: boots
Change-Id: Ie3acdbf9f3ad48c884042ada5e63bd9757c6b2e6
2019-10-08 14:12:48 -07:00
Kevin Hufnagle
63edc1be29 Merge "docs: Updated SECURITY_PATCH field description" into qt-dev am: 3c92f24adb am: 7b02dd8342
am: 2f57ebf99c

Change-Id: Ic62dbc5f5dd2e9f97832b501d0e88dd202d0884a
2019-10-08 12:15:13 -07:00
Kevin Hufnagle
2f57ebf99c Merge "docs: Updated SECURITY_PATCH field description" into qt-dev am: 3c92f24adb
am: 7b02dd8342

Change-Id: I432a4b416077f2ab21f34eec32956278846af809
2019-10-08 12:08:12 -07:00
Kevin Hufnagle
7b02dd8342 Merge "docs: Updated SECURITY_PATCH field description" into qt-dev
am: 3c92f24adb

Change-Id: Ieb7549bb38439ad297bba0f5a4b64870919651a7
2019-10-08 12:00:20 -07:00
Adam Bodnar
e638cada12 Allow injecting layers by manifest metadata
Bug: 138204026

Test: Add <meta-data android:name="com.android.graphics.injectLayers.enable" android:value="true" />
to the <application> xml in the manifest of the RELEASE build of a GL/Vk app. Add layer(s) using the method
described here: https://developer.android.com/ndk/guides/graphics/validation-layer

Change-Id: If4809c139f4a667ddf125358274a6d1d030a57d8
2019-10-08 10:20:01 -07:00
Rick Yiu
021c064e85 Rename THREAD_GROUP_BG_NONINTERACTIVE to THREAD_GROUP_BACKGROUND
To address a FIXME in core/java/android/os/Process.java.

Bug: 139521784
Test: build pass
Change-Id: Id513f42b5afada8c821a742bbda5e132b62f3b96
2019-10-08 06:28:23 +00:00
Daniel Colascione
012ab8e9fa Mark common android.os.Parcel methods as FastNative
Mark the marshaling functions for non-primitive parameters as being
@FastNative: they're all expected to complete quickly.

According to the table in CriticalNative.java, the difference between
a regular JNI call and a FastNative call is about 80ns, so this change
should shave about 160ns per non-primitive parameter off the latency
of a binder transaction. The actual savings will be greater as we also
use these Parcel methods to marshal and unmarshal complex objects like
PackageInfo sent as objects over Binder.

Bug: 142271139
Test: boots
Change-Id: I85c3ee8498640193b9c0777c8c5e7eb349c7b23c
2019-10-07 16:20:06 -07:00
Makoto Onuki
e335578418 Merge "Optimize UserHandle.of()" 2019-10-07 21:33:51 +00:00
Peiyong Lin
139b067254 Merge "Add owners for GraphicsEnvironment.java." am: f605363ce4 am: da6a180c3c am: 7f20633990
am: 26cbc3235b

Change-Id: Ibfadeb45ea790db0ce9db52d7e008f19eea7fba2
2019-10-07 10:33:47 -07:00
Tao Bao
1b5f5db329 Merge "Use ParcelFileDescriptor over FileDescriptor" am: 56f111e13b am: d0ad6794d4 am: 4e4890a362
am: f4e2a8c352

Change-Id: I1061d467831e006fed7cbe4898c1fb3749a54160
2019-10-07 10:29:45 -07:00
Peiyong Lin
26cbc3235b Merge "Add owners for GraphicsEnvironment.java." am: f605363ce4 am: da6a180c3c
am: 7f20633990

Change-Id: I7d387b6959d9fed06b838f0b129edff07e6daf00
2019-10-07 10:23:10 -07:00
Tao Bao
f4e2a8c352 Merge "Use ParcelFileDescriptor over FileDescriptor" am: 56f111e13b am: d0ad6794d4
am: 4e4890a362

Change-Id: I4ebd814f61585ebd9358fa82cc0478fdb8f8e038
2019-10-07 10:17:26 -07:00
Peiyong Lin
7f20633990 Merge "Add owners for GraphicsEnvironment.java." am: f605363ce4
am: da6a180c3c

Change-Id: I0af9eb50c2f85255620387256770fa7a66858856
2019-10-07 10:17:21 -07:00
Tao Bao
4e4890a362 Merge "Use ParcelFileDescriptor over FileDescriptor" am: 56f111e13b
am: d0ad6794d4

Change-Id: Id53a5c0f7d56b2dcde839052e2e7c040c9751d69
2019-10-07 10:10:20 -07:00
Makoto Onuki
acf3858bf3 Optimize UserHandle.of()
There will be more calls to *ForUser() APIs over time by mainline modules.
Let's avoid creating new objects in common cases.

Bug: 142134660
Fix: 140429319
Test: atest cts/tests/app/src/android/app/cts/UserHandleTest.java
Change-Id: Ie71850bd08a8d9831232ddb40807ae49e3a56841
2019-10-07 10:09:45 -07:00
Peiyong Lin
da6a180c3c Merge "Add owners for GraphicsEnvironment.java."
am: f605363ce4

Change-Id: I443ea03f00258b51d8b536452c0771a985dd1a54
2019-10-07 10:04:25 -07:00
Tao Bao
d0ad6794d4 Merge "Use ParcelFileDescriptor over FileDescriptor"
am: 56f111e13b

Change-Id: I68c75d02a4eb4bc74fb83efe12ec5dce8d41f7f3
2019-10-07 09:57:55 -07:00
Peiyong Lin
f605363ce4 Merge "Add owners for GraphicsEnvironment.java." 2019-10-07 16:43:11 +00:00
Peiyong Lin
92aecf1884 Add owners for GraphicsEnvironment.java.
BUG: N/A
Test: N/A
2019-10-04 17:58:36 -07:00
Kyeongkab.Nam
73fde3809a Use ParcelFileDescriptor over FileDescriptor
The java.io.FileDescriptor object has a poor definition of ownership,
which can result in obscure use-after-close bugs. Instead, APIs should
return or accept ParcelFileDescriptor instances.

Bug: 130209137
Test: manual
Change-Id: Ifb3dd53dc138ec47f416f2d4b46c4668bc8ee1d8
2019-10-04 17:58:11 +09:00
TreeHugger Robot
b93899a461 Merge "Added new (hidden) UserManager API to get all users, including pre-created ones." 2019-10-03 20:46:31 +00:00
Felipe Leme
09a7f2df68 Added new (hidden) UserManager API to get all users, including pre-created ones.
Bug: 140750212
Test: manual verification

Change-Id: Iaef9db6216a7b18bf6f1f3e19f4a7428ec99f1da
2019-10-03 11:48:20 -07:00
Josh Gao
30641f56c6 Merge "zygote: respond and wait for reply to --boot-completed." am: d34e18c036 am: 15f8fb42d6 am: 332a53756d
am: cca303ecd9

Change-Id: Iaf3ab6f8baa3cf1e57b546fc9d00b428ad2a6811
2019-10-03 11:18:38 -07:00
Chen Xu
fac787d7f2 Merge "telephony annotations part 2" 2019-10-03 18:15:17 +00:00
Josh Gao
cca303ecd9 Merge "zygote: respond and wait for reply to --boot-completed." am: d34e18c036 am: 15f8fb42d6
am: 332a53756d

Change-Id: If284835a381f6f7c300c62edc59d1cf9743ac815
2019-10-03 11:11:44 -07:00
Josh Gao
332a53756d Merge "zygote: respond and wait for reply to --boot-completed." am: d34e18c036
am: 15f8fb42d6

Change-Id: I57ba0d7b301ac4652b3df54672c91dedfe1bb16c
2019-10-03 11:05:21 -07:00
Josh Gao
15f8fb42d6 Merge "zygote: respond and wait for reply to --boot-completed."
am: d34e18c036

Change-Id: I47819fa73d07ecc3507b03ef446f606407830b29
2019-10-03 10:58:24 -07:00
TreeHugger Robot
16660951c8 Merge "Added option to pre-create user templates to optimize first user creation time." 2019-10-03 17:44:02 +00:00
Treehugger Robot
d34e18c036 Merge "zygote: respond and wait for reply to --boot-completed." 2019-10-03 17:43:22 +00:00