439825 Commits

Author SHA1 Message Date
Treehugger Robot
e50c61c8ba Merge "Remove Obsolete Comment" 2020-01-21 19:52:55 +00:00
Treehugger Robot
482b636291 Merge "Convert OverlayHostTests to Android.bp" 2020-01-21 18:49:35 +00:00
Neil Fuller
e4a64b4e6b Merge "Remove an interface before more invasive changes" 2020-01-21 18:18:08 +00:00
Kevin Brodsky
581d0a7d4f Debug: do not log memtrack_proc_get() failure
memtrack is an optional HAL, and memtrack_proc_get() will fail if
the HAL is not available on the device. Remove the warning to stop
flooding logcat every time read_memtrack_memory() is called.

Test: boot aosp_x86_64 and check logcat
Change-Id: I31b0e9bb3a881460bb4f2461dddb0e252763c609
2020-01-21 17:49:57 +00:00
Neil Fuller
2551c033df Add new module-lib APIs for MTS testing
Several android.timezone classes have already been exposed for the
telephony module work, so these tests provide coverage for those.
Additional APIs have been exposed for MTS testing, i.e. to provide
greater confidence that the tzdata module data is correct / is
being read correctly.

Also, small changes to existing code to make them consistent with new
classes. Small docs improvements.

Bug: 147884233
Test: see system/timezone change
Change-Id: I047b29f17a41993f859947a6d6c3685896fe4cb6
2020-01-21 17:17:31 +00:00
Nikita Iashchenko
3f408e57c4 Merge "Expose four ICU fields from version 66.0.1" 2020-01-21 15:13:05 +00:00
Treehugger Robot
2fb5112a35 Merge "Add Framework APIs for Identity Credential." 2020-01-21 14:38:14 +00:00
Remi NGUYEN VAN
b8f9c4f5b2 Merge "Add NetworkRequest#satisfiedBy to SystemApi" 2020-01-21 14:12:27 +00:00
Nikita Iashchenko
19e87e2999 Expose four ICU fields from version 66.0.1
This CL exposes four previously temporarily hidden fields which was done
to avoid merge conflits in downstream branches:

 * android.icu.lang.UCharacter$UnicodeBlock#CHORASMIAN
 * android.icu.lang.UCharacter$UnicodeBlock#CJK_UNIFIED_IDEOGRAPHS_EXTENSION_G
 * android.icu.lang.UCharacter$UnicodeBlock#DIVES_AKURU
 * android.icu.util.VersionInfo#UNICODE_13_0

Bug: 135752089
Test: m update-api
Change-Id: I5b3fec8edd6e990e839fbb8dfd93196cf60506c4
Merged-In: I5b3fec8edd6e990e839fbb8dfd93196cf60506c4
2020-01-21 13:47:04 +00:00
Lorenzo Colitti
d5ad4726c5 Add a Builder to NetworkAgentConfig, and make it SystemApi.
Currently, only support the three elements in the config that are
known to be used.

Bug: 138306002
Test: builds, boots
Test: atest FrameworksTelephonyTests
Change-Id: I1d231ec2ddcff97c039bcbc815a39c1d3e26c410
Merged-In: I1d231ec2ddcff97c039bcbc815a39c1d3e26c410
2020-01-21 13:12:15 +00:00
Lorenzo Colitti
2dda9e0627 Rename NetworkMisc to NetworkAgentConfig.
NetworkMisc is not really an appropriate name for a system API.

Bug: 138306002
Test: builds, boots, wifi works, telephony works
Test: atest FrameworksNetTests FrameworksWifiTests FrameworksTelephonyTests
Change-Id: I621cfbe165996c67b201ca2dd2f95a5ab9af10ee
Merged-In: I621cfbe165996c67b201ca2dd2f95a5ab9af10ee
2020-01-21 12:57:27 +00:00
Lorenzo Colitti
71aee27853 Make NetworkAgent stop subclassing Handler.
Subclassing Handler is not appropriate for a system API because
it is an implementation detail and allows users of this class to
post messages to the handler in ways that allow inappropriate
access to internals that aren't part of the API contract.

Also fix some lint errors.

Test: builds
Bug: 138306002
Change-Id: I79478ceff6bbcae879d1025098d177de0d15dbee
Merged-In: I79478ceff6bbcae879d1025098d177de0d15dbee
2020-01-21 12:55:29 +00:00
Chalard Jean
85768e2dc3 Merge changes I904d87c0,I9ef468a1
* changes:
  [NS A25] Send all listen callbacks after all rematches
  [NS A24] Add an object to represent changes in assignment
2020-01-21 12:19:55 +00:00
Paul Hu
a785f7bf4c Merge "Remove CONNECTIVITY_INTERNAL permission" 2020-01-21 11:03:59 +00:00
Chalard Jean
1f05eed464 [NS A25] Send all listen callbacks after all rematches
Reupload of I2db9535b1d72edd46b968b1bae66b148aa815235 with a
bugfix.

Bug: 113554781
Test: ConnectivityServiceTests NetworkStackTests
Change-Id: I904d87c01d9422ba6233d22a189e8017dd298d37
2020-01-21 19:06:04 +09:00
Chalard Jean
f0e6378b0f [NS A24] Add an object to represent changes in assignment
Reupload of I703db6d3f039bd67a90fad0eadffc6cfed9a50ee

Test: ConnectivityServiceTest
Change-Id: I9ef468a17ebcfa684e5614b25dc06fc67eb71c79
2020-01-21 19:05:48 +09:00
Treehugger Robot
a77e4c3ad3 Merge "Set the visibility of framework-core-sources-for-test-mock" 2020-01-21 09:09:05 +00:00
Dan Willemsen
74fdedcc4c Convert OverlayHostTests to Android.bp
Bug: 130723131
Test: m OverlayHostTests
Change-Id: If6c68abb0b591b196725b396bcbfe198d14b60c7
2020-01-20 22:46:18 -08:00
Remi NGUYEN VAN
c5d825c14e Merge "Remove handling of EVENT_UNFULFILLABLE_REQUEST" 2020-01-21 05:52:05 +00:00
Remi NGUYEN VAN
004f90d90f Add NetworkRequest#satisfiedBy to SystemApi
The API is useful for NetworkFactories to select requests based on
capabilities.
This mirrors NetworkCapabilities#satisfiedByNetworkCapabilities

Test: m
Bug: 138306002
Merged-In: I1d4a928256951397cabde5c352a872fd48d85859
Change-Id: I1d4a928256951397cabde5c352a872fd48d85859
(clean cherry-pick from internal branch)
2020-01-21 12:11:52 +09:00
Remi NGUYEN VAN
6fab6545d3 Remove handling of EVENT_UNFULFILLABLE_REQUEST
This message is not being sent by any component anymore.

Test: built, flashed, WiFi and telephony working
Test: atest FrameworksNetTests
Bug: 138306002
Merged-In: I5b1ec3136ae8a0a6928e0fb2cda3d5f5e2ca657f
Change-Id: I5b1ec3136ae8a0a6928e0fb2cda3d5f5e2ca657f
(clean cherry-pick from internal branch)
2020-01-21 12:10:34 +09:00
Chiachang Wang
061d68a40c Merge "Have registerNetworkAgent return a Network." 2020-01-21 01:21:57 +00:00
David Zeuthen
045b6de975 Add Framework APIs for Identity Credential.
The Identity Credential APIs provides an interface to a secure store
for user identity documents.  These APIs are deliberately fairly
general and abstract.  To the extent possible, specification of the
message formats and semantics of communication with credential
verification devices and Issuing Authorities (IAs) is out of scope for
these APIs.

The Identity Credential APIs rely on user authentication to protect
data elements in credentials which is implemented through
auth-tokens. This CL contains changes to CryptoObject to allow this.

Bug: 111446262
Test: CtsIdentityTestCases
Change-Id: I48f21a561b762d86c9ca8d229962782572412f47
2020-01-20 15:56:57 -05:00
Shi Lu
09a87d3f9f Merge "Publish ImsMmtelManager API for better debugging" 2020-01-20 16:56:37 +00:00
Josh Hou
8f67f121b7 Return the correct roaming status when check isNetworkRoaming()
Bug: 148009135
Test: Verify WFC is registered successfully during roaming
Change-Id: I3b70846848b9b12381f65222db623064b7b57254
2020-01-20 23:16:51 +08:00
Chalard Jean
e1a90d6645 Make NetworkCapabilities authoritative for roaming state
...instead of NetworkInfo

Bug: 138306002
Test: FrameworksNetTests FrameworksTelephonyTests
Change-Id: Ifdea19fa32089b5c7925f5010169b1dea3d2b304
Merged-In: Ifdea19fa32089b5c7925f5010169b1dea3d2b304
2020-01-20 10:45:48 +00:00
Chalard Jean
107f163711 Make NetworkCapabilities authoritative for suspended state
...instead of NetworkInfo

Bug: 138306002
Test: FrameworksNetTests FrameworksTelephonyTests
Change-Id: I4808fcc0047a926b23ed3d49d979bb7b0371dc69
Merged-In: I4808fcc0047a926b23ed3d49d979bb7b0371dc69
2020-01-20 10:37:29 +00:00
Chalard Jean
fe35bf9f93 Have registerNetworkAgent return a Network.
This is more useful.

Bug: 135998869
Test: FrameworkNetTests FrameworksWifiTests
Change-Id: I74710b396fa3cec6fbae08d3dcab5bc90dc2e669
Merged-In: I74710b396fa3cec6fbae08d3dcab5bc90dc2e669
2020-01-20 16:22:06 +08:00
Treehugger Robot
867e1aed3a Merge "Update connect() api" 2020-01-20 04:18:14 +00:00
Ugo Yu
fd8efab361 Context-aware Bluetooth airplane mode
Do not automatically turn off Bluetooth when airplane mode is turned
on and Bluetooth is in one of the following situations:
  1. Bluetooth A2DP is connected.
  2. Bluetooth Hearing Aid profile is connected.

Bug: 142831248
Test: Manual
Change-Id: I7f10b27102d91cc7a9803f74c88a4af80a294fb9
2020-01-20 10:38:42 +08:00
Sam Saccone
1413b254eb Merge "Revert "Annotate StringNetworkSpecifier @Deprecated and @removed"" 2020-01-18 20:21:32 +00:00
Joshua Duong
a5cbda4729 Add SystemApis isAdbWifiSupported(), isAdbWifiQRSupported() to AdbManager.
Bug: 146139798, 111434128

Test: make
Change-Id: Iab20d20b39f0079418026a730cd4093de08d1db9
2020-01-17 22:08:45 -08:00
Rambo Wang
82a46e22ce Permission READ_PRECISE_PHONE_STATE implementation polish
- Update the javadoc for all APIs that require this permission.
- Allow carrier privileged apps to access listener APIs that require
  READ_PRECISE_PHONE_STATE.
- Consolidate permissions checks into READ_PRECISE_PHONE_STATE permission group.

Bug: 146383220
Test: atest com.android.internal.telephony.TelephonyRegistryTest
Test: atest android.telephony.cts.PhoneStateListenerTest

Change-Id: I98232261381a4629c4d65a70d6aefee35665b48d
2020-01-17 18:28:26 -08:00
Alisher Alikhodjaev
0d225be680 Merge "New system api to get UICC terminal based on slot number" 2020-01-18 02:00:04 +00:00
Treehugger Robot
027bf28b3a Merge "Expose system API EXTRA_REBROADCAST_ON_UNLOCK" 2020-01-18 01:52:58 +00:00
Nikita Ioffe
62d918cbc0 PackageManagerShellCommand: implicitly add --wait for staged installs
Add --no-wait flag to opt-out from the waiting logic. Also changed the
prompt to remind developer to reboot a device to apply an install.

Test: adb install system/apex/shim/com.android.apex.cts.shim.v2.apex
Test: adb shell pm install-abandon
Test: adb install --no-wait system/apex/shim/com.android.apex.cts.shim.v2.apex
Bug: 147694315
Change-Id: Ic79905422935d85308d6d57a44005e71a706f2d3
2020-01-18 01:24:34 +00:00
Arsalan Khan
eef98503b8 Revert "Annotate StringNetworkSpecifier @Deprecated and @removed"
This reverts commit e35bc815b66739b027c002479798173bb1b25972.

Reason for revert: <Build Cop Triage b/147918881>

Change-Id: I6c675a3a245b10d3a0e7f3ebd7d59cf11cff007a
2020-01-18 00:23:51 +00:00
Meng Wang
0e8d91a230 Use Intent.EXTRA_REBROADCAST_ON_UNLOCK instead of hidden API
Bug: 147912059
Test: make
Change-Id: Iae022db9c8ae39e9f55034c91b98ca82869933c9
2020-01-17 15:58:13 -08:00
Meng Wang
13749cb311 Expose system API EXTRA_REBROADCAST_ON_UNLOCK
It's used by system apps - see follow up CL.

Bug: 147912059
Test: make
Change-Id: Id5e803756b8c3235187e13a36b8c197d5269e816
2020-01-17 15:58:04 -08:00
Rahul Sabnis
d3dd01190c Add error log to BluetoothAdapter.factoryReset() and make
BluetoothAdapter.getUuids() marked with @Nullable

Bug: 144765076
Test: Manual
Change-Id: I2a38fbb2256177ad29e2739ccbec8c13aae9df6a
2020-01-17 15:09:44 -08:00
Hall Liu
d982f6c3bb Merge changes from topic "phone-constants-telecom"
* changes:
  Move PhoneConstants constants to TelecomManager
  Using PhoneTypes in TelephonyManager
2020-01-17 22:44:25 +00:00
Grace Jia
ede4533c15 Merge "Expose SipAudioCall#getAudioGroup and SipAudioCall#SetAudioGroup as public API." 2020-01-17 22:41:23 +00:00
shilu
61c965388f Publish ImsMmtelManager API for better debugging
Bug: 141928367

Test: manaual
Change-Id: I71fbc5c49f966b349d52db2d7befda6ad71e888f
2020-01-17 14:40:13 -08:00
Grace Jia
99e2077364 Merge "Cleanup hidden API usage of voip-common." 2020-01-17 22:39:19 +00:00
Tianjie Xu
52e94a65fe Merge "Adding atoms for metrics logging" 2020-01-17 21:59:13 +00:00
Treehugger Robot
8804a86b87 Merge "Expose proprietary extras Bundle in ImsCallProfile" 2020-01-17 21:15:34 +00:00
Hall Liu
f3b914bd02 Merge "Expose NotificationChannel#setBlockableSystem as SystemApi" 2020-01-17 20:25:50 +00:00
Yan Yan
77cfb6159b Merge "Add setters for IKE and Child SA lifetime" 2020-01-17 19:21:38 +00:00
Treehugger Robot
feaed68912 Merge "Add UCE Call Composer + enriched calling tags" 2020-01-17 19:10:12 +00:00
Jing Ji
54469bf6ff Merge "DO NOT MERGE: Add support to send notification from Zygote to system_server" 2020-01-17 18:53:19 +00:00