Commit Graph

20407 Commits

Author SHA1 Message Date
Hall Liu
50cc796c28 Merge "Make MBMS group call API changes" 2018-11-27 01:06:55 +00:00
Xiangyu/Malcolm Chen
d413b5c713 Merge "Remove parentSubId and define API to set groupSubId" 2018-11-27 00:24:00 +00:00
Jordan Liu
0e706db965 Merge "Expose ApnService as a SystemApi and use subId arg" 2018-11-26 22:47:52 +00:00
Hall Liu
c81cba4e2b Make MBMS group call API changes
Change the API to respond to API council comments
See bug for details

Bug: 117145859
Test: CTS
Change-Id: I4342e6e95da57fbcd550c571357ff7bc1923b70a
2018-11-26 14:37:56 -08:00
Malcolm Chen
aea9b02a22 Remove parentSubId and define API to set groupSubId
Bug: 118349116
Test: unittest
Change-Id: I539a67df8f30c2f58d87a3417f78fef8b43ff56d
Merged-In: I539a67df8f30c2f58d87a3417f78fef8b43ff56d
2018-11-26 14:13:10 -08:00
Youming Ye
4d73d87d83 Merge "Add CarrierConfig to hide Preset APN setting details" 2018-11-26 21:14:14 +00:00
David Brazdil
67c6ab38ba Merge "Create AppComponentFactory.instantiateClassLoader API" 2018-11-22 11:09:15 +00:00
David Brazdil
a21de6f376 Merge "Update public API after libcore InMemoryDexClassLoader change" 2018-11-22 10:09:19 +00:00
taiki tsutsumi
2ee968289e Add CarrierConfig to hide Preset APN setting details
Add new key to hide Preset APN setting details. When the key is set to
true, Preset APN is still shown and selectable in APN list, however,
user cannot enter APN editor view. It means details of Preset APN will
be hidden from user.

Test: manual - check Preset APN setting details are hidden
Bug: 115453290
Change-Id: I8a5c6f92f876d349b304acf89b4ffab86ff3f24b
2018-11-21 15:41:49 -08:00
Brad Ebinger
8a3518cc90 Merge "Expose ImsMmTelManager APIs as SystemApi" 2018-11-21 18:59:33 +00:00
Neil Fuller
4492ec573a Merge "API for retrieving time zone IDs by country" 2018-11-21 15:18:27 +00:00
David Brazdil
12a95bafe7 Update public API after libcore InMemoryDexClassLoader change
Bug: 35458580
Test: compiles
Change-Id: I7debcedac0a6e8b2cfaa8b2dca5f88aebdd32910
2018-11-21 11:17:38 +00:00
Jack Yu
860d8d0d80 Merge "Move hidden APIs into system APIs" 2018-11-21 02:40:30 +00:00
Brad Ebinger
fd88080d22 Expose ImsMmTelManager APIs as SystemApi
Bug: 116493310
Bug: 112538960
Bug: 112866475
Test: Telephony unit tests
Change-Id: I698d9ab6000dc2e2e9be8d614e94d59b3a8e3028
2018-11-20 13:59:37 -08:00
Neil Fuller
6caa954ead API for retrieving time zone IDs by country
New method has been requested by Setup Wizard.

Test: CTS: run cts-dev -m CtsUtilTestCases -t android.util.cts.TimeUtilsTest
Bug: 116544863
Merged-In: I31a9e3d07d5c3fbc8ba1d9c9b398cb2661aa71f9
Change-Id: I31a9e3d07d5c3fbc8ba1d9c9b398cb2661aa71f9
(cherry picked from commit f9bb2d8f02)
2018-11-20 10:59:18 +00:00
Jordan Liu
2f2dd0a6e1 Expose ApnService as a SystemApi and use subId arg
IApnSourceService#getApns now takes a subId argument, and can be
implemented by extending ApnService.

Bug: 113075153
Test: unit tests and manual
Change-Id: I0202c1f0529ecef558f06a9f8a90a3906912f2f0
Merged-In: I9cfcf977c20f33abd2d773393780f9e54d75fe21
2018-11-19 17:26:09 -08:00
Jack Yu
4f956e0fca Move hidden APIs into system APIs
To allow vendor code to construct LinkAddress, which is
one of the parameter in the system API DataCallResponse.

Test: Build
Bug: 73659459
Merged-In: I3e203781d3a03285fa0e047cc8837ccb4a09016a
Change-Id: I3e203781d3a03285fa0e047cc8837ccb4a09016a
2018-11-19 14:40:13 -08:00
David Brazdil
b319ccfdcc Create AppComponentFactory.instantiateClassLoader API
Adds a hook to AppComponentFactory to allow control over the
instantiation of the main app class loader. LoadedApk creates
the default class loader and uses it to load the base APK. If
AppComponentFactory is declared in the manifest, its new method
instantiateClassLoader is called and its result becomes the
class loader used by LoadedApk to instantiate other classes
declared in the manifest. By default this is simply the class
loader created by LoadedApk.

Second method provides AppComponentFactory with a copy of
ApplicationInfo. The factory otherwise cannot locate any of the
app's resources, including its APK or the data folder.

Bug: 111342996
Test: atest CtsClassLoaderFactoryPathClassLoaderTestCases
Test: atest CtsClassLoaderFactoryInMemoryDexClassLoaderTestCases
Merged-In: Id21d9afaf00b9cb64a107bc9893b952407cff0b5
Change-Id: Id21d9afaf00b9cb64a107bc9893b952407cff0b5
(cherry picked from commit fd6dcc21d9)
2018-11-19 17:47:13 +00:00
Nathan Harold
992aafb2bd Merge "Add Support for Async requestCellInfoUpdate()" 2018-11-16 19:13:36 +00:00
Brad Ebinger
082bf0ccca Merge "Expose ProvisioningManager API for IMS configurations" 2018-11-15 22:07:29 +00:00
Nathan Harold
2aa2cc1b75 Add Support for Async requestCellInfoUpdate()
Add asynchronous calls to request CellInfo updates.
-Add a request for CellInfo
-Add a request for CellInfo that allows system apps
 such as the LocationProvider to bill the work to
 the app that initiated the location fix.
-Update the behavioral language for getAllCellInfo
 to indicate that depending on the API level of the
 caller, this API will only provide cached info, which
 means that apps can always request an update without
 possibly triggering a call to the modem. This also
 means that the binder will not block due to modem
 delay.

Bug: 37100068
Bug: 63737292
Bug: 26569588
Test: manual (via SL4A)
Change-Id: I25cbc3cecd5d396fc3baa21457c05cd6e273c9c3
2018-11-15 10:53:05 -08:00
Chen Xu
8715c1545e Merge "new Systeam API for CarrierConfig#KEY_CARRIER_SETUP_APP_STRING" 2018-11-15 16:59:44 +00:00
Chen Xu
16533c35d3 Merge "new System API for sim voice activation state." 2018-11-15 16:59:03 +00:00
Treehugger Robot
ee59e69b8b Merge "Catch SecurityException in EuiccCardController and trigger callback." 2018-11-14 22:30:54 +00:00
Nathan Harold
7581efdb9d Add Executor Support for PhoneStateListener
Support an Executor so that PhoneStateListener
can invoke callbacks not only on a user's preferred
Looper but also on a preferred Handler or in another
thread management scheme.

PhoneStateListener uses an odd pattern for its API,
so to support the historical use cases of having the
internal callback instance be instantiated during
object construction, the Executor needs to be passed
in to the PhoneStateListener during construction. This
also permits the listen() method in TelephonyManager to
avoid odd situations of having a version with an
Executor be passed in when requesting to stop listening
for events.

Bug: 118350385
Test: atest PhoneStateListenerTest
      atest PhoneStateListenerExecutorTest
Change-Id: I8eeb2e156f6d67d192d17586e6aa5579ff6d675d
2018-11-13 15:08:56 -08:00
Brad Ebinger
0d36ed248f Expose ProvisioningManager API for IMS configurations
Bug: 117648104
Test: Manual
Change-Id: I71ef979cee6467fd3d70fe70e4b899dbee70e2ae
2018-11-13 12:49:28 -08:00
Tyler Gunn
a2b2183a24 Merge "Unsupported app usage API cleanup" 2018-11-13 17:49:01 +00:00
vichang
6274341f10 Merge "Expose Transliterator API" 2018-11-13 15:43:35 +00:00
Treehugger Robot
36ac46a915 Merge "Add PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist" 2018-11-13 03:48:59 +00:00
Chen Xu
24df195e78 Merge "new SystemAPI for roamingType in NetworkRegistrationState" 2018-11-13 01:16:25 +00:00
Tyler Gunn
6e3ecc40f8 Unsupported app usage API cleanup
This CL includes a number of cleanups related to unsupported app usage
tags.

TelecomManager#EXTRA_IS_HANDOVER - public APIS exist for this usecase;
updated docs and limit to P with maxtarget sdk.
TelecomManager#getSimCallManager(int userId) - marked as max target P;
there is a public API available which can be used to accomplish the same
thing.  Nobody should be calling this.
TelecomManager#getCallCapablePhoneAccounts(boolean) - marked as max
target P; callers should use the version without the boolean parameter.

Deprecate CAPABILITY_CAN_UPGRADE_TO_VIDEO; its redundant.

New public API:
Promote TelecomManager#getSystemDialerPackage() to public API; its a
benign API and doesn't expose anything which can't be inferred other ways.

New system APIs:
TelecomManager#getCurrentTtyMode() - used by settings app.
TelecomManager#setDefaultDialer() - used by useful for settings app.
TelecomManager#TTY_MODE* constants - used by getCurrentTtyMode API.

Test: Compile / run unit tests
Bug: 119305590
Change-Id: I67d6213e6c689fb545fc9ceae4a359831f97c32f
2018-11-12 11:30:56 -08:00
chen xu
63b0a3401b new System API for sim voice activation state.
Bug: 119233925
Test: telephony unit test
Change-Id: I06e8de063d312b683261216326b1c8674ab4479e
2018-11-12 11:22:23 -08:00
Pengquan Meng
4a7a3934b6 Merge "Add 5G NR cellInfo" 2018-11-12 16:28:57 +00:00
andychou
d9b97ecefe Add PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist
Add ImsReasonInfo.CODE_SIP_TRANSACTION_DOES_NOT_EXIST and
PreciseDisconnectCause.SIP_TRANSACTION_DOES_NOT_EXIST
It will map by PRECISE_CAUSE_MAP in ImsPhoneCallTracker.java

Bug: 78204171
Test: local build pass
Change-Id: I10ec05256f748007657e4a8e60d07b1fd8a4f8b2
Merged-In: Iaa9673e4fa9568078161231df1b06735b862ca09
2018-11-12 15:21:41 +00:00
Adam Vartanian
5f9193bdad Merge "Add Conscrypt Public API" 2018-11-12 10:31:28 +00:00
chen xu
d040f2d785 new Systeam API for CarrierConfig#KEY_CARRIER_SETUP_APP_STRING
SuW will consume this config and launches a carrier app to setup the
device or provision the SIM.

Bug: 119229895
Test: telephony unit test
Change-Id: Ibc3cc9913c20fd367f83854765a8aea378bb6622
2018-11-10 10:54:45 -08:00
Brad Ebinger
c10b96899e Merge "Expose SRVCC state changes as @SystemAPI" 2018-11-09 23:02:38 +00:00
Shuo Qian
5bdf255e0d Merge "Introduce getRssi() in CellSignalStrengthLte" 2018-11-09 22:07:50 +00:00
Victor Chang
0a2aaba14a Expose Transliterator API
All the public APIs have been covered by CtsIcuTestCases.

Test: CtsIcuTestCases
Bug: 109663008
Bug: 109837373
Change-Id: Ib03c80629be727c7b17642177fa520ed808409c1
2018-11-09 20:12:55 +00:00
Calvin Pan
1df5ca6a71 Merge "Add CarrierId column in TelephonyProvider" 2018-11-09 13:30:51 +00:00
calvinpan
3689c96951 Add CarrierId column in TelephonyProvider
Add a column in provider to migrate mno and mvno to carrierid.

Bug: 115709816
Test: runtest --path tests/src/com/android/providers/telephony/TelephonyProviderTest.java
Change-Id: I9c0c0fd069acc7f182d94f422ff15f45ebf187a9
Merged-In: I9c0c0fd069acc7f182d94f422ff15f45ebf187a9
2018-11-08 23:45:23 +00:00
Pengquan Meng
f922b8e6ee Add 5G NR cellInfo
- Add CellInfoNr
- Add CellIdentityNr
- Add CellSignalStrengthNr

Bug:111453000
Test: atest FrameworksTelephonyTests:
Merged-In: I45a8042fcbeb9faa7f8cc8db45eeb2c85125397e
Change-Id: I45a8042fcbeb9faa7f8cc8db45eeb2c85125397e
2018-11-08 13:39:57 -08:00
sqian
5b76bfc0d0 Introduce getRssi() in CellSignalStrengthLte
Previous people designed that the lte signal strength from HAL is rssi
in ASU, but the new need of getRssi() API requires dBm unit.

Bug: 113074174
Test: Treehugger
Change-Id: I2982365a2e7fe1a56a393d123b9b0a30807d4d15
2018-11-08 10:54:41 -08:00
Brad Ebinger
efed9824e4 Expose SRVCC state changes as @SystemAPI
ImsService needs to be able to register for SRVCC state
changes.

Test: Telephony Unit tests
Bug: 117555643
Change-Id: I87631b51a19cdd46d6b4d15f3631345de03bb771
2018-11-08 10:14:04 -08:00
Tony Zhu
b5e8d45245 Merge "[Call Screening]Logging of calls blocked by call blocking feature, call screening app." 2018-11-08 17:22:43 +00:00
Adam Vartanian
6333c84514 Add Conscrypt Public API
Bug: 110403421
Test: cts -m CtsLibcoreTestCases -t android.net.ssl
Change-Id: I51e497032e58c73cc6be77d95c3b18b139804859
2018-11-08 15:22:40 +00:00
Adam Vartanian
07160ff7e5 Merge "Update API file for libcore additions" 2018-11-08 13:39:31 +00:00
tonyzhu
9e1d4f86ba [Call Screening]Logging of calls blocked by call blocking feature, call screening app.
Add three call log entries, ALL_SCREENING_COMPONENT_NAME, CALL_SCREENING_APP_NAME,
BLOCK_REASON, and call block reasons. Add new parameter to get the
package name and component name of the implementation of CallScreenService.java.

Bug: 113243596
Test: Build pass
Change-Id: I63debd80d7f4a92278fdbb84b64ff1199591349c
2018-11-08 17:28:34 +08:00
Chen Xu
9d4ebdf379 Merge "separate URL for WFC settings" 2018-11-08 03:23:20 +00:00
Holly Jiuyu Sun
35063d68fa Catch SecurityException in EuiccCardController and trigger callback.
Currently, if checkCallingPackage() throws a SecurityException, it won't
trigger the callback. Since, EuiccCardManager is async which will return
after invoke EuiccCardController, the throwed SecurityException will get
lost. In this CL, the exception is caught in EuiccCardController and
triggers the callback in this case.
Also, fix a typo in EuiccCardManager.

Bug: 78599148
Bug: 110845244
Test: test on phone
Merged-In: I6487d7b29bc9ec0d2ead482ac7d7804b5325a379
Change-Id: I6487d7b29bc9ec0d2ead482ac7d7804b5325a379
2018-11-07 18:39:06 -08:00