439825 Commits

Author SHA1 Message Date
Santos Cordon
b8a28aa2a7 Merge "Update OWNERS for lights" 2020-01-23 00:17:29 +00:00
Josh Hou
1c1461c6a2 Merge "Return the correct roaming status when check isNetworkRoaming()" 2020-01-22 23:41:48 +00:00
nchalko
2e8d16f714 Merge "Fix equals and hashCode APIs on TvTrackInfo" 2020-01-22 23:25:41 +00:00
Treehugger Robot
8eed59fabb Merge "Fix for recycling key events when sending global button broadcast" 2020-01-22 23:24:23 +00:00
Treehugger Robot
0ab00030a2 Merge "Ims: Add support for Adhoc Conference calls" 2020-01-22 21:16:19 +00:00
Treehugger Robot
23deb3367f Merge "Add @RequiresPermission annotation to SystemApis in BluetoothPan, open up close method as a SystemApi, and BluetoothPan class now implements AutoCloseable and CloseGuard" 2020-01-22 21:09:47 +00:00
Treehugger Robot
b4dbfff366 Merge "Add error log to BluetoothAdapter.factoryReset() and make BluetoothAdapter.getUuids() marked with @Nullable" 2020-01-22 21:09:39 +00:00
Rahul Sabnis
dc125268fb Add @RequiresPermission annotation to SystemApis in BluetoothPan, open
up close method as a SystemApi, and BluetoothPan class now implements
AutoCloseable and CloseGuard

Bug: 146045934
Test: Manual
Change-Id: Iafb2157d67ae4f8e3d7d97cf4198f2978e391a8c
2020-01-22 11:30:59 -08:00
Brad Ebinger
d2ee60f378 Merge "Expose intent broadcasted when IMS registration for WFC fails" 2020-01-22 18:19:54 +00:00
Mike Ma
566f8f0195 Merge "Make ProtoOutputStream public" 2020-01-22 18:14:00 +00:00
Meng Wang
9222283997 Merge "Use Intent.EXTRA_REBROADCAST_ON_UNLOCK instead of hidden API" 2020-01-22 17:54:35 +00:00
Treehugger Robot
ca45896352 Merge "New system API to create SMS PDU and expose copyMessageToIcc()" 2020-01-22 16:57:44 +00:00
Treehugger Robot
e27d58f0cd Merge "Cleanup code and documentation for SMS EF records" 2020-01-22 16:56:33 +00:00
Brad Ebinger
be1c2969a8 Expose intent broadcasted when IMS registration for WFC fails
Expose ImsManager.ACTION_WFC_IMS_REGISTRATION_ERROR for WFC IMS
registration failure cases.

Fixes: 147835819
Test: atest CtsTelephonyTestCases:ImsServiceTest
Change-Id: If3e175f560845388e6de4e57047564cef349f6b1
2020-01-22 08:53:09 -08:00
Treehugger Robot
5d51d12cda Merge "Debug: do not log memtrack_proc_get() failure" 2020-01-22 16:39:00 +00:00
Santos Cordon
c6462c6615 Update OWNERS for lights
Test: make
Exempt-From-Owner-Approval: Approval from management to add self as OWNER. I'm the captain now.
Change-Id: I00b04c87bb61b13132bca886e8c260cd7aa96ee7
2020-01-22 16:27:26 +00:00
Remi NGUYEN VAN
144519f45d Merge "Add API for CaptivePortalData" 2020-01-22 15:55:17 +00:00
Treehugger Robot
385afc999e Merge "Add NetworkCapabilities#getSSID to SystemApi" 2020-01-22 15:23:07 +00:00
Neil Fuller
b9e3e9e34c Merge "Add new module-lib APIs for MTS testing" 2020-01-22 15:02:23 +00:00
Remi NGUYEN VAN
aa4c511696 Add NetworkCapabilities#getSSID to SystemApi
setSSID was added to the API, so it makes sense to have getSSID be part
of the API as well.

Test: m
Bug: 139268426
Change-Id: I6fa9c513ce4fb8ce1e3530776ce8fd5b2e77055e
2020-01-22 22:52:53 +09:00
Remi NGUYEN VAN
ead1ef41ee Add API for CaptivePortalData
CaptivePortalData will be used to hold data advertised by the network
following RFC7710bis.

To fetch the CaptivePortalData, the API URL is added to LinkProperties,
to be provided by the NetworkAgent.

Because CaptivePortalData can be used to guess user location (especially
from the URLs provided by the portal), it is only exposed to
applications that have privileged permissions.

Test: atest FrameworksNetTests
Bug: 139269711
Change-Id: I341175b5fece8ee00e19898af5e8eabe66cefbf3
2020-01-22 22:27:44 +09:00
Tyler Gunn
48f7f07d52 Merge "Expose ImsConfig constants as part of API." 2020-01-22 06:50:17 +00:00
Chiachang Wang
0ed49867e2 Merge changes from topic "networkagent"
* changes:
  Add a Builder to NetworkAgentConfig, and make it SystemApi.
  Rename NetworkMisc to NetworkAgentConfig.
2020-01-22 05:27:51 +00:00
Mike Ma
5f0652fc07 Make ProtoOutputStream public
Bug: 142279786
Test: atest ProtoInputStreamTests
Change-Id: I1f6eeb09898277a0975c2081630bfa849afc13ab
Merged-In: I1f6eeb09898277a0975c2081630bfa849afc13ab
2020-01-21 21:02:43 -08:00
Chiachang Wang
a11ae54bee Merge "Make NetworkAgent stop subclassing Handler." 2020-01-22 04:33:31 +00:00
Benedict Wong
b8dd5bcc23 Merge "Add new appop for Platform VPNs" 2020-01-22 04:30:44 +00:00
Benedict Wong
d040b254c5 Add new appop for Platform VPNs
This change introduces a new appop, ACTIVATE_PLATFORM_VPN, that is a
subset of the ACTIVATE_VPN appop. VPN apps that have been granted the
more dangerous ACTIVATE_VPN appop should be allowed to use platform
VPNs, as they are more restricted, and safer. However, the opposite
must not be true.

Bug: 144246835
Test: Compiles, FrameworksNetTests passing
Change-Id: I609e87e688432f957751058b09f350fa641753d7
Merged-In: I609e87e688432f957751058b09f350fa641753d7
2020-01-22 04:30:23 +00:00
Tyler Gunn
30eee35a57 Expose ImsConfig constants as part of API.
Moving the config keys in ImsConfig to ProvisioningManager and defining
appropriate allowed values for all.  Old values are now deprecated.

Bug: 147732815
Test: Created and ran new CTS test to verify get/set of the new parameter
values.
Change-Id: Ifa7e1b6bcd21b4dfac541c258e1c53ee1515fa3d
2020-01-22 04:22:37 +00:00
Chiachang Wang
5c76e6a4ba Merge "Make NetworkCapabilities authoritative for roaming state" 2020-01-22 03:30:09 +00:00
Chiachang Wang
5f604cad6d Merge "Make NetworkCapabilities authoritative for suspended state" 2020-01-22 03:29:42 +00:00
Ravi Paluri
80aa2140e3 Ims: Add support for Adhoc Conference calls
Add support for Adhoc Conference calls

Test: Manual
Bug: 62151032
Change-Id: Id50d235595d2133f867848ffdebdfe11e2f1c896
2020-01-22 03:22:58 +00:00
Treehugger Robot
d3a0117720 Merge "Context-aware Bluetooth airplane mode" 2020-01-22 02:52:34 +00:00
Brad Ebinger
8af28b9965 Merge "Add NetworkType alternatives to IMS APIs" 2020-01-22 02:34:31 +00:00
Shi Lu
2ac8306365 Merge "Support exposing getNetworkSelectionMode" 2020-01-22 02:34:05 +00:00
Kyeongkab.Nam
b30b38506b Fix equals and hashCode APIs on TvTrackInfo
Current hashCode API cares only for mId and it returns same values
even if other member variables are different.
To avoid for returning same values between different TvTrackInfo of
each program, hashCode API should care all variables used on
equals API. Note that mId is defined as unique only in the same
program.

Test: build
Change-Id: I4d72f6ce80141d92f86e548804e1f0257ed6fcfb
2020-01-22 11:10:32 +09:00
Treehugger Robot
cd3676cefd Merge "Hide WriteableIdentityCredential constructor from public API" 2020-01-22 01:57:04 +00:00
Alisher Alikhodjaev
632e515468 Merge "Throw IOException on multiple connects." 2020-01-22 01:27:04 +00:00
Joshua Duong
e9beb8ddbc Merge "Add SystemApis isAdbWifiSupported(), isAdbWifiQRSupported() to AdbManager." 2020-01-22 01:12:19 +00:00
Hall Liu
7790a36021 Merge "Clean up usage of CountryDetector in PhoneNumberUtils" 2020-01-22 00:52:40 +00:00
Treehugger Robot
80a2b522b1 Merge "Make certain BluetoothProfile constants being used by CarBluetoothTest into @SystemApi" 2020-01-22 00:52:31 +00:00
George Chang
3eb265ae00 Throw IOException on multiple connects.
Only one TagTechnology can be connected at a time.
Other calls to connect() will return IOException.

Bug: 144398423
Test: check error on multiple connects
Change-Id: I19a5f33c7f0d3e7592fe7791c1e04ddc2c9d6125
2020-01-21 23:46:05 +00:00
Hall Liu
b49a3affb1 Clean up usage of CountryDetector in PhoneNumberUtils
PhoneNumberUtils calls CountryDetector methods to ascertain whether a
number is an emergency number in the current country, but recent
emergency number detection changes have made the country an unused
parameter. Remove calls to CountryDetector to satisfy mainline
requirements wrt hidden APIs.

Fixes: 148087591
Test: atest PhoneNumberUtilsTest
Change-Id: Ib6ef6348cb1c50e89e24f4f67de6ce76d87550cd
2020-01-21 15:34:02 -08:00
Nikita Ioffe
042ec2c190 Merge "PackageManagerShellCommand: implicitly add --wait for staged installs" 2020-01-21 23:16:42 +00:00
Rambo Wang
2b8cb12004 Merge "Permission READ_PRECISE_PHONE_STATE implementation polish" 2020-01-21 23:15:19 +00:00
Rahul Sabnis
a079dc7984 Make certain BluetoothProfile constants being used by CarBluetoothTest
into @SystemApi

Bug: 146663105
Test: Manual
Change-Id: Ic474a85c17b69c71cf24b06d0262c13b3b8142fe
2020-01-21 15:11:22 -08:00
Lev Rumyantsev
5f30976b8c Merge changes from topic "native_bridge_for_app_zygote"
* changes:
  Zygote: support native-bridge for app-zygote
  AppZygote: start with the correct instruction set
2020-01-21 23:09:34 +00:00
shilu
2647d29e26 Support exposing getNetworkSelectionMode
Bug: 148018766
Fix: 147568892
Test: make && make offline-sdk-docs
Change-Id: I68d3de4beb500eaf0b462848ba18265a2702d191
2020-01-21 15:02:04 -08:00
Brad Ebinger
1efc2aa560 Add NetworkType alternatives to IMS APIs
Some IMS APIs were using ServiceState instead of
TelephonyManager.NETWORK_TYPE_* constants.

This CL cleans this API surface up.

Bug: 147726372
Test: atest CtsTelephonyTestCases; atest FrameworksTelephonyTests
Merged-In: Ic00b83f2d0d8950855d43edc49ad24ce577943af
Change-Id: Ic00b83f2d0d8950855d43edc49ad24ce577943af
2020-01-21 22:48:19 +00:00
David Zeuthen
c34b085082 Hide WriteableIdentityCredential constructor from public API
Bug: 111446262
Test: CtsIdentityTestCases
Change-Id: Iafe8e76e6491ff92ee751702b8fb44aeda7355a8
2020-01-21 15:54:30 -05:00
Shuo Qian
7826c2f43e Merge "Resolve the hidden SubscriptionManager API usage in NetworkPolicyManagerService in Mainline" 2020-01-21 20:10:11 +00:00