Commit Graph

567280 Commits

Author SHA1 Message Date
Treehugger Robot
c6c226327d Merge "Add ART members to AndroidRuntime ownership" 2021-06-08 05:06:08 +00:00
Calin Juravle
5c4aa4f2f7 Add ART members to AndroidRuntime ownership
Test: m
Change-Id: Ice016370ab5b4a5ce99ca118eaace55426643422
2021-06-07 22:22:15 +00:00
Anton Hansson
9489b44d47 Merge "Make ApiLint's new_since arg the merged txt file" 2021-06-07 14:55:59 +00:00
Anton Hansson
c954550513 Make ApiLint's new_since arg the merged txt file
ApiLint tries to only lint "new" APIs, i.e. those introduced since the
last frozen API. Using android-non-updatable's last frozen txt does not
work well for this, as it is incomplete API surface on its own, so
metalava cannot see all APIs that were present in the previous API
(such as methods inherited from ART), and so makes the wrong decisions
for which APIs are new.

Bug: 171506470
Test: m checkapi
Change-Id: I00d25f2ae0ba8f0ee6fa8564d86642efd74e0d44
Merged-In: I00d25f2ae0ba8f0ee6fa8564d86642efd74e0d44
(cherry picked from commit 4f90aa5148)
2021-06-07 14:42:59 +01:00
Jeff Sharkey
feac43d47a Merge "Update OWNERS for AppSearch" 2021-06-07 13:11:45 +00:00
Remi NGUYEN VAN
839a761100 Merge "Build service-connectivity with system_server API" 2021-06-07 05:17:21 +00:00
Treehugger Robot
e2ddd9d277 Merge "Do not canonicalize overlay config test paths" 2021-06-04 17:04:49 +00:00
Nikita Iashchenko
71afce9340 Merge "Remove usage of Math.randomLongInternal" 2021-06-04 08:37:09 +00:00
Thiébaud Weksteen
2090502b46 Merge "Fix Javadoc typo" 2021-06-04 07:14:04 +00:00
Remi NGUYEN VAN
a2f8b41020 Merge "Add NDK API for getprocdns,setprocdns" 2021-06-04 07:01:11 +00:00
Sarah Chin
7576e161f1 Merge "Remove checks for system_process in TelephonyManager" 2021-06-04 02:11:17 +00:00
Sarah Chin
6428a56e09 Merge "DCT set up default before enterprise APN" 2021-06-04 02:10:29 +00:00
Sarah Chin
fe3320f5a3 Merge "setCdmaSubscription/RoamingMode returns when not CDMA" 2021-06-04 02:10:19 +00:00
Sarah Chin
4a3db57ba5 Remove checks for system_process in TelephonyManager
Instead of throwing exceptions, return the default null/empty/void
behavior.

Test: atest TelephonyManagerTest
Fix: 175881713
Change-Id: Ia15c8183212bc67e74b45fc119b5ef9d4c295c94
Merged-In: Ia15c8183212bc67e74b45fc119b5ef9d4c295c94
2021-06-03 17:56:53 -07:00
Sarah Chin
92b8e55acf DCT set up default before enterprise APN
Higher priority goes first in mPrioritySortedApnContexts, so change
default priority to be higher than enterprise.

Test: atest DcTrackerTest
Bug: 183738520
Change-Id: Ib2f9594933d00307276f4538714a5354d36baf09
Merged-In: Ib2f9594933d00307276f4538714a5354d36baf09
2021-06-03 17:15:29 -07:00
Sarah Chin
5fa39ffd17 setCdmaSubscription/RoamingMode returns when not CDMA
NoOp instead of return ISE when the device is not CDMA capable.

Test: atest TelephonyManagerTest
Fix: 175665470
Change-Id: I36d69f4bf337ef9c102327bfe87752c56847af87
Merged-In: I36d69f4bf337ef9c102327bfe87752c56847af87
2021-06-03 17:09:52 -07:00
Treehugger Robot
d6eba76780 Merge "Use finally block for Binder.restoreCallingIdentity" 2021-06-03 20:05:50 +00:00
Shuo Qian
6f61cdcc1d Merge "Add KEY_CARRIER_SUPPORTS_CALLER_ID_VERTICAL_SERVICE_CODES_BOOL for treating *67 and *82 as a temporary mode CLIR when dialing E911" 2021-06-03 19:46:20 +00:00
Treehugger Robot
4952525b1c Merge "Set dist_group: "android" for frameworks/base java_sdk_libraries" 2021-06-03 19:11:59 +00:00
Julia Reynolds
cfd9af452b Merge "unregister FileCleanupReceiver when disableHistory" 2021-06-03 17:08:56 +00:00
Colin Cross
5959ec0a5f Set dist_group: "android" for frameworks/base java_sdk_libraries
dist_group replaces owner and the default is going to change, set it
to the current default "android" for frameworks/base java_sdk_libraries.

Bug: 186723288
Test: m checkbuild
Change-Id: I1526853951bcffbe5c5aec6fbc6ba8e0dbea95ad
Merged-In: I1526853951bcffbe5c5aec6fbc6ba8e0dbea95ad
2021-06-03 16:42:11 +00:00
Shuo Qian
86db99b182 Add KEY_CARRIER_SUPPORTS_CALLER_ID_VERTICAL_SERVICE_CODES_BOOL for treating *67 and *82 as a temporary mode CLIR when dialing E911
Test: atest
Bug: 182126268
Change-Id: Iab56a59d7cb17e3e8131304fbc906e101bb87b42
Merged-In: Iab56a59d7cb17e3e8131304fbc906e101bb87b42
(cherry picked from commit d4dd13c2e3)
2021-06-03 16:41:35 +00:00
hongyang.dong
52853a2d47 unregister FileCleanupReceiver when disableHistory
FileCleanupReceiver was not unregister when switch NotificationHistory

Testing Steps:

1. Settings -> Apps and notifications -> Notifications -> Notification history
2. Repeat switch 1000 times and system crash.

Change-Id: I40493fe7726883a449e54888247c5bffcc1554e3
2021-06-03 14:21:51 +00:00
Thiébaud Weksteen
90c63acfa0 Fix Javadoc typo
HTML ol element is used to declare an ordered list, not a list item.

Change-Id: I1fac2f236ce40effb54fdead01c99729d4ef15b4
2021-06-03 10:31:15 +02:00
Remi NGUYEN VAN
37bc6b577c Merge "Add NDK API for getprocnetwork" 2021-06-03 08:07:23 +00:00
Treehugger Robot
df2c78d226 Merge "/widget/OWNERS: Change TextView to TextView*" 2021-06-03 01:12:12 +00:00
Alice Kuo
013cb91a69 Use finally block for Binder.restoreCallingIdentity
1. Use final for Binder.clearCallingIdentity() to protect not being overwritten.
2. Protect it in the finally block of the try statement to avoid missing restore the CallingIdentity as exception.

Bug: 189819183
Test: Manual test
Change-Id: I2dd4cfc1aacecb0b77fa4c82b48b24b284271779
Merged-In: I2dd4cfc1aacecb0b77fa4c82b48b24b284271779
2021-06-03 00:06:11 +00:00
Ryan Mitchell
2c9685573f Do not canonicalize overlay config test paths
Some devices may not have certain partitions available and the
OverlayConfigTests use hardcoded paths to test OverlayConfig
functionality. This change ensures that the temporary directory
created to test OverlayConfig has all of the partitions defined in
PackagePartitions#SYSTEM_PARTITIONS within it.

Bug: 187020117
Bug: 187020675
Test: atest OverlayConfigTest
Change-Id: I511e24b7ccfe82e6e89ceea7107457439793ef77
2021-06-02 21:12:18 +00:00
vichang
824ac5918d Merge "Use updated NetworkEventDispatcher API" 2021-06-02 17:00:58 +00:00
Mohammad Islam
5bf40c4151 Merge "Drop prebuilt files to android source tree." 2021-06-02 12:23:13 +00:00
Samiul Islam
b42d86370d Drop prebuilt files to android source tree.
CtsShimPriv.apk
package: name=com.android.cts.priv.ctsshim
versionCode=30
versionName=S-7396576
platformBuildVersionName=S
compileSdkVersion=30
compileSdkVersionCodename=S
sdkVersion:24
targetSdkVersion:28

CtsShim.apk
package: name=com.android.cts.ctsshim
versionCode=30
versionName=S-7396576
platformBuildVersionName=S
compileSdkVersion=30
compileSdkVersionCodename=S
sdkVersion:24
targetSdkVersion:28

CtsShimPriv.apk
package: name=com.android.cts.priv.ctsshim
versionCode=30
versionName=S-7396576
platformBuildVersionName=S
compileSdkVersion=30
compileSdkVersionCodename=S
sdkVersion:24
targetSdkVersion:28

CtsShim.apk
package: name=com.android.cts.ctsshim
versionCode=30
versionName=S-7396576
platformBuildVersionName=S
compileSdkVersion=30
compileSdkVersionCodename=S
sdkVersion:24
targetSdkVersion:28

Built here: ab/7396576

This build IS suitable for public release.

The change is generated with prebuilt drop tool.

Bug: 188910443
Test: presubmit
Change-Id: I462a1f2ff62fd33145089c28b886a662bf8fc590
Merged-In: I462a1f2ff62fd33145089c28b886a662bf8fc590
(cherry picked from commit 969b96a391)
2021-06-02 11:50:36 +01:00
Treehugger Robot
750cc3846d Merge "Fix LegacyGlobalActions broadcast receiver" 2021-06-02 10:47:58 +00:00
Colin Cross
ff7bba27a8 Merge "Support codename T in aapt2" 2021-06-01 23:27:30 +00:00
Henry Fang
ce765a74ca Merge "DO NOT MERGE ANYWHERE: Do nullptr check on source filter" 2021-06-01 22:55:46 +00:00
Treehugger Robot
769fc70ba0 Merge "Clear WIFI namspace on primary user keystore reset." 2021-06-01 22:46:45 +00:00
Janis Danisevskis
008502bf74 Clear WIFI namspace on primary user keystore reset.
This patch makes LocksettingsService clear the WIFI namspace when
Keystore is reset for the primary user.

Test: Using Settings, install a WIFI certificate, tap clear credentials,
      and check that the certificate was removed from the stored
      credentials.
Bug: 189601008
Merged-In: I9364c860250653e50fa8c92c11c510c864f3c3d8
Change-Id: I9364c860250653e50fa8c92c11c510c864f3c3d8
2021-06-01 14:26:31 -07:00
Michael Chan
a92470c72f DO NOT MERGE ANYWHERE: Do nullptr check on source filter
Bug: 189129262
Change-Id: I57bcddb276f1f56d6523499bade6abc6fc7e7732
Merged-In: Id7e89a17480884b5faa63e755b98faf0b9e91365
2021-06-01 20:36:54 +00:00
Brad Ebinger
f7c0f3c698 Merge "Remove old telephony Intent from protected-broadcasts" 2021-06-01 18:33:21 +00:00
Shawn Lien
65db2bd3b3 Merge "Support Taiwan Covid-19 free short code" 2021-06-01 16:37:10 +00:00
Les Lee
aeff94ee19 Merge "wifi: Use new API for data usage function" 2021-06-01 10:42:08 +00:00
Les Lee
9eb7688535 Merge "carrier data usage: Use carrier template as default policy" 2021-06-01 10:42:08 +00:00
Aaron Huang
ec33ff5b61 Merge "Split out NetworkStack and Tethering permission" 2021-06-01 10:13:34 +00:00
Remi NGUYEN VAN
9ee2cc8e44 Build service-connectivity with system_server API
As all dependencies on hidden API have been removed, build
service-connectivity against system_server_current.

Bug: 171540887
Test: device boots, has connectivity
Merged-In: I454e8a0a8d0e0f9e6d21a8e8faf5a9e299962ad4
Change-Id: I87ef0968c96272c99c787fdbc21db261acdea6aa
2021-06-01 18:31:21 +09:00
Remi NGUYEN VAN
ba43fb8406 Add NDK API for getprocdns,setprocdns
The API allows callers to control the default network that is used for
DNS hostname resolution.

Test: atest CtsNetTestCases
      Tests in change I00143cafcd3eb1d71e8d5c7ea9c839a99dc6f4ce
Bug: 171540887
Merged-In: I42f0d9b17b3058f6e10fd2e651278b290f26667f
Change-Id: Id6c40145b8886a7ec6f2bd3a25ad85e8df32f4bb
2021-06-01 18:00:49 +09:00
Shawn Lien
1406961d5a Support Taiwan Covid-19 free short code
Add 1922 as a free short code for Taiwan.
1922 sms is a new service announced in 05/19/2021 to streamline the mandatory contact tracing policy during pandemic in Taiwan.

BUG: 189442874
Test: ShortCodes are already in operation as tested.

Signed-off-by: Shawn Lien <shawnlien@google.com>
Change-Id: Ia62f8f9b4c2725109254153af5fdfc108f599dcb
2021-06-01 08:41:25 +00:00
Remi NGUYEN VAN
c2f03da27c Add NDK API for getprocnetwork
The API is the getter couterpart for setprocnetwork.
Use it in NetworkUtils so that the NDK API can be the source of truth
for the process network.

Bug: 171540887
Test: atest CtsNetTestCases
      Tests in change I311b58585033c2ca50ce5477ea9cd94b6f127507
Merged-In: Ie8f68cf1fa57deddb63324c1abf3d6fd5b0ef500
Change-Id: If37c1480e8a6fe22ce0340858fcde052e8770923
2021-06-01 15:56:58 +09:00
Aaron Huang
6c942b9dc9 Merge "Make sure the PAC script content is sent again" 2021-05-31 10:13:00 +00:00
Treehugger Robot
6963e8d05b Merge "Add permission into Shell for CTS test" 2021-05-31 02:13:24 +00:00
Treehugger Robot
9c8ba975b6 Merge "Revert "Use BinderDeathDispatcher for alarm listeners"" 2021-05-28 00:45:37 +00:00
Treehugger Robot
84d8829d72 Merge changes I77c61f74,I569123ca,Idf70d205,I308ea00b
* changes:
  setCurrentState(DESTROYED) called from main thread
  Enforce setCurrentState calls are on main thread
  Refactor QSTileImpl and remove Dependency.get
  QSTileImpl is set to DESTROYED when handleDestroy
2021-05-27 22:33:27 +00:00