Commit Graph

96075 Commits

Author SHA1 Message Date
Allen Su
1b0c2fcd3b Merge "Convert some users of Time.format() to an alt."
am: 267b83e7d6

Change-Id: Ide4b3813fe9666259f4e94462f89c1683d2ba6ed
2020-01-06 19:09:57 -08:00
Allen Su
267b83e7d6 Merge "Convert some users of Time.format() to an alt." 2020-01-07 02:28:15 +00:00
Hall Liu
b128b793c7 Merge "Clean up SmsApplication and expose getDefaultSmsPackage"
am: 2ada7fbac2

Change-Id: Ie4ca7c239295ba9e3bfb60815ca5c7d65bf0fdc1
2020-01-06 16:45:17 -08:00
Hall Liu
2ada7fbac2 Merge "Clean up SmsApplication and expose getDefaultSmsPackage" 2020-01-07 00:36:51 +00:00
Hall Liu
4d1771a3fb Merge "Create new APIs for overriding APNs"
am: 13beb87783

Change-Id: I523c37c06cb7636775131720c252f06cb2eb152f
2020-01-06 16:02:13 -08:00
Hall Liu
13beb87783 Merge "Create new APIs for overriding APNs" 2020-01-06 23:14:44 +00:00
Neil Fuller
c0f9b27214 Merge "Add new permissions"
am: 62ace8c46a

Change-Id: I618e2f4a608914d1bf679186880cd358a75a238d
2020-01-06 13:02:34 -08:00
Neil Fuller
62ace8c46a Merge "Add new permissions" 2020-01-06 19:38:25 +00:00
Hall Liu
39839dc63b Create new APIs for overriding APNs
Create new APIs in TelephonyManager for DevicePolicyManager to add
override APNs, and use them in DevicePolicyManagerService instead of
directly accessing the APN database.

Bug: 146834818
Test: cts-tradefed run cts --module DevicePolicyManager --test
com.android.cts.devicepolicy.DeviceOwnerTest#testOverrideApn
Test: atest TelephonyManagerTest

Change-Id: I6c6214424169c05fd452db71a8c6593f8473b9d4
Merged-In: I6c6214424169c05fd452db71a8c6593f8473b9d4
2020-01-05 14:24:22 -08:00
TreeHugger Robot
a7707c4db7 Merge "DO NOT MERGE - Merge QQ1A.200105.003 into stage-aosp-master" into stage-aosp-master 2020-01-03 17:50:01 +00:00
Justin Yun
e0e165f06e Merge "Use ro.product.vndk.version for unbundled product apks"
am: cbfcd44f68

Change-Id: I49b3841f627a6e8b25e91e02dce491cb526886d9
2020-01-02 23:18:04 -08:00
Treehugger Robot
cbfcd44f68 Merge "Use ro.product.vndk.version for unbundled product apks" 2020-01-03 07:10:01 +00:00
Suren Baghdasaryan
a457a78ab7 Merge "Prevent double-counting of kernel stack size in dumpsys reports"
am: 9493f0ed0b

Change-Id: If643779ba45321f1dcb5b772ade4de451fcd4e1a
2020-01-02 17:01:53 -08:00
Suren Baghdasaryan
9493f0ed0b Merge "Prevent double-counting of kernel stack size in dumpsys reports" 2020-01-03 00:18:24 +00:00
Suren Baghdasaryan
2018bf03f9 Prevent double-counting of kernel stack size in dumpsys reports
When kernel is configured with CONFIG_VMAP_STACK=y kernel stacks are mapped
into process space and therefore already accounted as part of the value
returned by ReadVmallocInfo and reported under MEMINFO_VM_ALLOC_USED
category. Introduce isVmapStack function to check if kernel is configured
with that option and if so do not exclude kernel stack size in the
calculation of memory used by kernel.

Bug: 146088882
Test: dumpsys meminfo with CONFIG_VMAP_STACK enabled and disabled
Change-Id: I9230bbf0ab05524cf52ded35171fd9ec3da16fa0
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2020-01-02 13:36:34 -08:00
Xin Li
dd7e1b8a32 DO NOT MERGE - Merge QQ1A.200105.003 into stage-aosp-master
Change-Id: I2b5667dbbb21f5be830f9338c8cb32d4778ed0c1
2020-01-02 13:29:43 -08:00
Rahul Sabnis
ed567b8cad Merge "Remove unused BluetoothHearingAid APIs and usages"
am: 7d48a4513c

Change-Id: I155dce1eaeb1100f2240041d5604c9252ccc1aae
2020-01-02 13:01:42 -08:00
Treehugger Robot
7d48a4513c Merge "Remove unused BluetoothHearingAid APIs and usages" 2020-01-02 20:43:57 +00:00
Justin Yun
1ef374f98b Use ro.product.vndk.version for unbundled product apks
Instead of using "ro.product.apps.unbundled", use
"ro.product.vndk.version" to determine if product apks are unbundled.
"ro.product.vndk.version" will be defined by
PRODUCT_PRODUCT_VNDK_VERSION. If it is defined, all product apks must
be unbundled.

Bug: 144534640
Bug: 127738095
Bug: 128557860
Test: boot and check logs if product apps are loaded successfully
Change-Id: I6d0f7c20e131dfe12203c63a14e6254a8223893b
2020-01-02 06:30:02 +00:00
Paul Hu
5d9fc9340b Merge "Add an override for getUser in ContextWrapper"
am: 5a049f5cf2

Change-Id: Ia69ca6ab1e5f34ac3ac5a16aff8a45ac92de0f9d
2020-01-01 22:04:35 -08:00
Paul Hu
5a049f5cf2 Merge "Add an override for getUser in ContextWrapper" 2020-01-02 05:42:27 +00:00
paulhu
5c0f07c4f6 Add an override for getUser in ContextWrapper
This is to fix an issue when calling getUser for a context that
is different than the context of the current foreground user.
getUser for a ContextWrapper would call the base
class Context#getUser which returns the user of the current foreground
process rather than returning the user of the calling context.

Currently, this is a bug that does not meet the ContextWrapper class Javadoc.
It looks like the ContextWrapper call was missed in Ib772ec4438e57a2ad4950821b9432f9842998451.

Fix: 144024489
Test: called the API from a test App with a different context than the
current application context.

Change-Id: I58ec9fda24bf135ba8c648a905ef0c81d36ea098
Merged-In: I2d24f5141e8cbc2546c8dc5894a1aeab376b7632
(cherry-pick from ag/9673528)
2020-01-02 02:09:45 +00:00
Hall Liu
35c243caa4 Clean up SmsApplication and expose getDefaultSmsPackage
- Clean up usages of hidden AppOpsManager APIs in SmsApplication
- Add unit tests for SmsApplication
- Expose RoleManager#getDefaultSmsPackage for use in SmsApplication.

Bug: 146834818
Test: atest SmsApplicationTest
Change-Id: I4ab49d7f6274389e7de7cd7223cab3c433936044
2019-12-31 14:41:02 -08:00
Aaron Huang
a4fbf15adf Merge "Make StringNetworkSpecifier @SystemApi"
am: fbceb58514

Change-Id: I3beee20d0e56223381b2e507752c71d2590b0264
2019-12-31 00:16:58 -08:00
Aaron Huang
fbceb58514 Merge "Make StringNetworkSpecifier @SystemApi" 2019-12-31 08:11:48 +00:00
Aaron Huang
435b410600 Merge "Expose NetworkCapabilities methods to system/public APIs"
am: 30b2ac7158

Change-Id: Icb3d0559475a14130dea64a5ca49a6259d5a2eb9
2019-12-27 00:38:46 -08:00
Aaron Huang
30b2ac7158 Merge "Expose NetworkCapabilities methods to system/public APIs" 2019-12-27 08:32:50 +00:00
Aaron Huang
e6b62391da Expose NetworkCapabilities methods to system/public APIs
Add methods to system/public APIs for mainline support.

Bug: 139268426
Bug: 135998869
Bug: 138306002
Test: atest FrameworksNetTests
      atest NetworkStackTests
      ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
      atest FrameworksTelephonyTests
      atest android.net.cts
      atest android.net.wifi.cts
      atest android.telephony.cts

Change-Id: I6ec333309172edaf5aa976f83cfbe63512043594
2019-12-27 08:31:06 +00:00
Nathan Harold
801bfb0d80 Merge "Expose PreciseDataConnectionState to Public API"
am: 47fbf0aaa0

Change-Id: I748243b2ebc02c6c750b83b722e5b38cf8fcf26e
2019-12-26 15:10:18 -08:00
Nathan Harold
47fbf0aaa0 Merge "Expose PreciseDataConnectionState to Public API" 2019-12-26 23:05:58 +00:00
Aaron Huang
743a79e2ba Make StringNetworkSpecifier @SystemApi
Bug: 138306002
Test: atest FrameworksNetTests
      atest FrameworksTelephonyTests

Change-Id: I64ffbca6e7cb6494748533257bc63aafb8600317
2019-12-26 15:51:08 +08:00
Aaron Huang
011eb06659 Merge "Make MatchAllNetworkSpecifier constructor @SystemApi"
am: 9dd0968ca1

Change-Id: I91420e99ce40526133ba6803ef0087b0316f61b4
2019-12-25 01:04:09 -08:00
Aaron Huang
9dd0968ca1 Merge "Make MatchAllNetworkSpecifier constructor @SystemApi" 2019-12-25 08:07:00 +00:00
Jon Spivack
b88261b982 Merge "ServiceManagerProxy: New method implementations"
am: b2d8eb58a2

Change-Id: Ib572a6702fbf4aca5277f2d385a3ce6359d71851
2019-12-23 12:11:22 -08:00
Jon Spivack
b2d8eb58a2 Merge "ServiceManagerProxy: New method implementations" 2019-12-23 20:04:33 +00:00
Jiyong Park
91ccb1b309 Merge changes I4af73809,Iba6a564a,I3305b71e
am: 5640e1d836

Change-Id: Ia0bfa4b3135a12f2e38438f192baa6ebb641bc4b
2019-12-22 00:20:17 -08:00
Jiyong Park
5640e1d836 Merge changes I4af73809,Iba6a564a,I3305b71e
* changes:
  Hide com.android.server package with @hide javadoc tag
  Add more enums for the client and process attributes of SystemApi
  SystemApi is parameterized
2019-12-22 08:15:25 +00:00
Shi Lu
55cc8b27b8 Merge "Exposing voice connection status system APIs as public API"
am: 96e8628049

Change-Id: I222a9a2b44050825a4553b4b7baa7dfe7de3e046
2019-12-20 18:39:56 -08:00
Shi Lu
96e8628049 Merge "Exposing voice connection status system APIs as public API" 2019-12-21 02:31:36 +00:00
Jeff Sharkey
1d5eed4cb0 Merge "Replace import with fully qualified javadoc."
am: 31a7838fb1

Change-Id: I1ede620fad6dfe3debb7156bf882a27402bfb5d9
2019-12-20 14:15:54 -08:00
Jeff Sharkey
20d6f2e6e1 Replace import with fully qualified javadoc.
Some internal changes are depending more strongly on annotations
being "leaves" which don't directly reference other parts of the OS,
so replace the direct import of Intent with a qualified javadoc
reference.

Bug: 144247087
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I198d84a755b5e270a19b41328f6a6e152112c40a
Merged-In: I198d84a755b5e270a19b41328f6a6e152112c40a
2019-12-20 14:01:43 -07:00
Nathan Harold
d9b5dda461 Expose PreciseDataConnectionState to Public API
1) Remove Unused Parameters for onDataConnectionState:
The data connection state broadcast includes a number of
parameters that are never used anywhere. To prepare for
updated code that relies on PreciseDataConnectionState,
remove the unused parameters that were internal-only and
included in the broadcast.

-LinkProperties
-NetworkCapabilities
-DataRoaming
-DataAllowed
-Interface name

2) Add Disconnecting State for Data Connections

Add a disconnecting state to correct a mismatch
between the internal and externally visible enums.

This will allow apps to know when connections are
in the process of being torn down, which in the case
of radio link issues could be as much as 15 seconds.

3) Expose PreciseDataConnection for Carrier Apps

Exposes the PSL for PreciseDataConnectionState along
with existing fields in the PreciseDataConnectionState
class.

-Make PreciseDataConnectionState public along with some
 of its fields.
-Expose onPreciseDataConnectionStateChanged.
-Add onPreciseDataConnectionStatesChanged to provide PDCS
 for all APNs in one cohesive batch.

4) Cache PreciseDataConnectionState by APN Type

In telephony registry, multiple different APN types
are all piped through the same cache entry, so every
time any APN changes relative to the previous type,
it triggers an update. This also means that when
a registrant requests the data connection state, only
the most recent type's state is updated.

This change caches entries in TelephonyRegistry based
on the APN's type (specifically the type among types
which triggered the change).

Bug: 143083105
Test: make update-api && make offline-sdk-docs
      (no functional change in this CL).
Test: atest FrameworksTelephonyTests

Merged-In: Ib6a769f5a0cae923ca47a842733bd28755a90ed5
Change-Id: Ib6a769f5a0cae923ca47a842733bd28755a90ed5
(cherry picked from commit 4d340f12c9)
(cherry picked from commit c95b4e5421)
2019-12-20 10:06:54 -08:00
Mark Chien
25cc1f47c5 Merge "[Tether13] Move TetheringManager into framework"
am: 2410d67357

Change-Id: I05c79a1cf07e7679ea2a2c9221e541fb1c9a5a23
2019-12-20 05:47:01 -08:00
Mark Chien
2410d67357 Merge "[Tether13] Move TetheringManager into framework" 2019-12-20 13:43:46 +00:00
Jack Yu
e7bfadcb7d Merge "Provide APIs to get preferred payment service information"
am: c0c28a2671

Change-Id: I632a657c5342fbc4f30aae515b842a66c0ad6abd
2019-12-19 19:10:35 -08:00
Treehugger Robot
c0c28a2671 Merge "Provide APIs to get preferred payment service information" 2019-12-20 03:05:13 +00:00
Inseob Kim
dc4de88fec Merge "Use sysprop library for telephony props"
am: afb16fa9d4

Change-Id: Ieeb580cd47e4210c9cb9edea4a0b561b73420040
2019-12-19 18:03:38 -08:00
Treehugger Robot
afb16fa9d4 Merge "Use sysprop library for telephony props" 2019-12-20 02:00:38 +00:00
Meng Wang
50080aa1ae Merge "Do not setSubId on SmsMessage."
am: 0330797929

Change-Id: I7b7eb6c747ce7e9f82f0125519a6bc2fafaa3ef2
2019-12-19 16:19:24 -08:00
Nikita Ioffe
d1c0e074c0 Merge "Add an API to tell whenever device supports userspace reboot"
am: 670352e807

Change-Id: I6706acb0d2d396b1870813e692c3124da92e4b7f
2019-12-19 16:11:37 -08:00