Commit Graph

8069 Commits

Author SHA1 Message Date
Jack Yu
36d048c3ff Merge "Added a broadcast intent for clients to listen for country changes" 2019-01-28 18:28:23 +00:00
TreeHugger Robot
501ef01725 Merge "Data profile refactoring" 2019-01-28 18:08:56 +00:00
Hongming Jin
175e2f24a2 Merge "Add API in SmsManager to return sms messages for financial app." 2019-01-28 15:57:32 +00:00
Jeff Sharkey
8bcdea7182 Merge "Get CtsProviderTestCases building against API." 2019-01-27 03:03:48 +00:00
Jeff Sharkey
cb269aac7e Get CtsProviderTestCases building against API.
To help confirm that we're actually testing developer-visible
behaviors, we need to build against public APIs, since there have
been plenty of examples in this suite of "testing" hidden API
behaviors, which are then misleading to developers.

Bug: 120429729
Test: atest cts/tests/tests/provider/
Exempt-From-Owner-Approval: Trivial API annotations
Change-Id: I07fe33e54f611a6060217f0706fb99b809961f4d
2019-01-27 03:03:39 +00:00
Hongming Jin
08496b0e98 Add API in SmsManager to return sms messages for financial app.
Test: atest android.telephony.cts.SmsManagerTest
Bug: 111207447
Change-Id: I1571cb005f7c1374a9acbec27041bca291fa7153
2019-01-26 14:26:47 -08:00
Jack Yu
3d33698bf5 Added a broadcast intent for clients to listen for country changes
Added a broadcast intent ACTION_NETWORK_COUNTRY_CHANGED for clients
to listen for network country code changes. The same value can be
retrieved from TelephonyManager.getNetworkCountryIso().

Test: Manual + unit tests
Bug: 122900588
Change-Id: Ifec87dda7bae386118b7bc7523844342bd16c3ea
2019-01-25 23:16:14 -08:00
Hongming Jin
46edf1506d Add API to SmsManager to allow apps to authenticate user account through
sms without requesting sms permissions.

Bug: 111210542
Test: atest android.telephony.cts.SmsManagerTest
Change-Id: I9b176032d7b2bf578dd1a64745bf4a1e13008a7a
2019-01-25 15:24:29 -08:00
Brad Ebinger
0b1b7c2b76 Merge "Add new ImsException to better handle ImsService errors" 2019-01-25 21:02:02 +00:00
Jordan Liu
cd989d40c5 Merge "Fix NPE in parcel constructor" am: 23a6598fe4 am: 12b8ba1667
am: 94b6f9771a

Change-Id: I4ca46815212716392ce1128bd6da432f0d3984af
2019-01-24 15:45:08 -08:00
Jordan Liu
94b6f9771a Merge "Fix NPE in parcel constructor" am: 23a6598fe4
am: 12b8ba1667

Change-Id: I7be389cacc368dd60506cbf0824350ac4247a016
2019-01-24 15:28:50 -08:00
Jordan Liu
23a6598fe4 Merge "Fix NPE in parcel constructor" 2019-01-24 22:50:43 +00:00
Brad Ebinger
b2c88d1480 Add new ImsException to better handle ImsService errors
The ImsService can crash unexpectantly or not be available
for certain device configurations. Define a checked exception
ImsException to handle these cases instead of using
RuntimeExceptions.

Bug: 122480210
Test: atest FrameworksTelephonyTests
Change-Id: Ie3221d56a235c0e037d71e197f4972df31faa09b
2019-01-24 22:28:06 +00:00
TreeHugger Robot
147cfc3a9c Merge "Update EuiccManager APIs used for eSIM activation flow" 2019-01-24 21:35:47 +00:00
Brad Ebinger
fcaf4a2492 Merge changes from topics "ut_provision_api", "ims_prov_api_defs" am: 3fc958475b am: 1e6ed3c5eb
am: 270fe0a1f9

Change-Id: Id9c04847789ac612b6de7ddea15292936a6f24c8
2019-01-24 11:45:19 -08:00
Brad Ebinger
d18b780145 Define a subset of provisioning integers as public am: ad9aec3522 am: 7b353e207e
am: 3d7a116e85

Change-Id: I93d88ffc45a8edd3abc9a281322eaedab8a86dc1
2019-01-24 11:38:35 -08:00
Brad Ebinger
270fe0a1f9 Merge changes from topics "ut_provision_api", "ims_prov_api_defs" am: 3fc958475b
am: 1e6ed3c5eb

Change-Id: Ib16f22466459b5a294cfab5d020f64aad11cecfc
2019-01-24 10:58:53 -08:00
Jordan Liu
f745debf89 Fix NPE in parcel constructor
Instead of calling .getClass().getClassLoader, we use .class to avoid
NPE on the uninitialized PreciseCallState and CallQuality.

Test: manual
Bug: 110107501
Change-Id: I1092122a69aa17235627a22fd973f21d49fc4812
2019-01-24 10:55:15 -08:00
Brad Ebinger
3d7a116e85 Define a subset of provisioning integers as public am: ad9aec3522
am: 7b353e207e

Change-Id: I55969aca6c0f948dc911eac8c587e322f8da6901
2019-01-24 10:53:29 -08:00
Brad Ebinger
7b353e207e Define a subset of provisioning integers as public
am: ad9aec3522

Change-Id: I89c0b4242b68f545cce6043341150d45d4e22643
2019-01-24 10:35:59 -08:00
Brad Ebinger
3fc958475b Merge changes from topics "ut_provision_api", "ims_prov_api_defs"
* changes:
  Add new UT provisioning CarrierConfig options
  Define a subset of provisioning integers as public
2019-01-24 18:09:14 +00:00
Michael Groover
b9dd251e1f Merge "Enable device identifier check for priv apps" 2019-01-24 17:46:01 +00:00
Pengquan Meng
f37194e1ba Merge "Add RIL_RADIO_TECHNOLOGY_NR to IntDef" am: 54d74bbf06
am: 28b34fac22

Change-Id: Id81adaed00949117d5a732a5756afec5da40c4ee
2019-01-24 03:01:00 -08:00
Pengquan Meng
54d74bbf06 Merge "Add RIL_RADIO_TECHNOLOGY_NR to IntDef" 2019-01-24 10:35:40 +00:00
Xiangyu/Malcolm Chen
1ea414819a Merge "Add API to handle user's subscription selection changes." 2019-01-24 08:46:54 +00:00
Scott Randolph
025bd52d01 Merge "Implementation of Remote-SIM." am: 9f7bc7d616 am: 0fd63d542d
am: 6133800a58

Change-Id: Ic3c43594d4648f2942bec62cfd418e0d1d0c8f29
2019-01-23 21:50:17 -08:00
Scott Randolph
6133800a58 Merge "Implementation of Remote-SIM." am: 9f7bc7d616
am: 0fd63d542d

Change-Id: Ie4c28658f6384df624bf8b1d4c1b7b9bed555611
2019-01-23 21:28:45 -08:00
Leland Miller
6d2e9b8cae Merge "Add part ID reuse to API contract" am: d49a6c86f4 am: ea65fcc98a
am: c5ceebba02

Change-Id: Ide0ff27e0de513dd2687e3fc30e177cd1d5fd45c
2019-01-23 21:21:14 -08:00
Malcolm Chen
94d74d291e Add API to handle user's subscription selection changes.
When user selects a eSIM subscription, Settings app informs Telephony.
Telephony needs to take actions such as writting it into global
settings, switch profiles and notify registrants, for example
AlternativeNetworkAccessService.

Bug: 120945564
Test: unittest
Change-Id: I846d9444aac368d183e06744c9eb8aa0c08dfe6a
2019-01-23 21:11:08 -08:00
Scott Randolph
9f7bc7d616 Merge "Implementation of Remote-SIM." 2019-01-24 05:01:05 +00:00
Leland Miller
c5ceebba02 Merge "Add part ID reuse to API contract" am: d49a6c86f4
am: ea65fcc98a

Change-Id: I4e6546a02cd3614b8c28a8e0b7c1cc6501b1bd93
2019-01-23 21:00:25 -08:00
Michael Groover
efca477259 Enable device identifier check for priv apps
Bug: 117781266
Test: atest CtsTelephony3TestCases
Test: atest android.telephony.cts.TelephonyManagerTest
Test: atest android.permission.cts.telephony.TelephonyManagerPermissionTest
Change-Id: I6b54edec787779c91478277ba18744f9696e6e8b
2019-01-24 04:53:15 +00:00
Pengquan Meng
8a5c3bc6c2 Merge "Fix doc of NETWORK_TYPE_NR & add converter" am: 1abe6aa53f
am: a4e9cec4b3

Change-Id: Ic2bea19fad4095c4f16b34691bbb6ff39546cb19
2019-01-23 20:47:07 -08:00
Treehugger Robot
d49a6c86f4 Merge "Add part ID reuse to API contract" 2019-01-24 04:29:10 +00:00
Pengquan Meng
bb1ff15ca9 Add RIL_RADIO_TECHNOLOGY_NR to IntDef
Bug: 121263364
Bug: 123099654
Test: build
Merged-In: I4bec8de081efe1020409351afa284fd2e69a25b5
Change-Id: I4bec8de081efe1020409351afa284fd2e69a25b5
2019-01-23 20:25:43 -08:00
Pengquan Meng
1abe6aa53f Merge "Fix doc of NETWORK_TYPE_NR & add converter" 2019-01-24 04:22:47 +00:00
Jack Yu
332b5b5786 Merge "Supported data handover in DcTracker/DataConnection/ApnContext" am: 56e1062ce3
am: e055bfa0fa

Change-Id: I3a16a4c3f846114948028d84b82eddb86d6a8d2c
2019-01-23 19:17:22 -08:00
Brad Ebinger
b3f4632fb0 Add new UT provisioning CarrierConfig options
Adds two new carrier config options for UT:
1) Whether or not the carrier supports UT over IMS
2) Whether or not the carrier requires a carrier app to
provision the device to use UT over IMS.

Also adds new ITelephony AIDL for querying/setting
provisioning for MMTEL currently used for UT over
IMS only.

Bug: 119896853
Test: atest FrameworksTelephonyTests
Change-Id: I51260afed85b99cf6ed89374daf417c3a25c7fb9
2019-01-23 16:50:49 -08:00
Jack Yu
af6b47af54 Data profile refactoring
Data profile should use the public defined types
instead of the internal defined data types.

1. Using integer instead of string for protocol type.
2. Using TelephonyManager.NetworkTypeBitMask instead of
   the internal ServiceState.RIL_RADIO_TECHNOLOGY_XXX
   in data profile.

Test: Telephony sanity tests
Bug: 73659459
Change-Id: I04b910f8e349e8b7819ff058bf37ad06c3fd9adc
2019-01-23 16:29:00 -08:00
Brad Ebinger
ad9aec3522 Define a subset of provisioning integers as public
There are a few non-OMADM specific configs that need to
be exposed in ProvisioningManager to handle cases
like turning on WFC "non-persistently" for provisioning
on certain networks. These should be well defined for
compatibility as well as ease of use.

Test: atest FrameworksTelephonyTests, turn on WFC
Change-Id: I79c9492664d4bf41b10639c0596d4f2697cd46f2
2019-01-23 16:16:40 -08:00
Pengquan Meng
82e6b2ab02 Fix doc of NETWORK_TYPE_NR & add converter
This fix some documents related to NETWORK_TYPE_NR and add a converter
from ril rat to NETWORK_TYPE_NR.

Bug: 111453000
Bug: 123099654
Test: build
Merged-In: Ib9ee0dbe0234ef1bf9ef22900b00ddd47195914f
Change-Id: Ib9ee0dbe0234ef1bf9ef22900b00ddd47195914f
2019-01-23 14:57:28 -08:00
Jack Yu
48667abf9b Supported data handover in DcTracker/DataConnection/ApnContext
Added data handover support in DcTracker/DataConnection/ApnContext.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: I1dfecbe48e230b3cab1b8b83e8d9f9dfd241752e
Change-Id: I1dfecbe48e230b3cab1b8b83e8d9f9dfd241752e
(cherry picked from commit faa7a52543)
2019-01-23 14:49:24 -08:00
Leland Miller
6c753558c3 Add part ID reuse to API contract
This make explicit that part IDs should not be reused to point to new
parts as this may cause issues in applications that expect pars to
remain consistent.

Test: Documentation change, will follow up with a CTS test
Change-Id: I990aa5848f59cc85c76d129701cba1ca27c78894
2019-01-23 22:44:06 +00:00
Vasu Nori
aea0391cf6 Implementation of Remote-SIM.
Design doc http://shortn/_GG690j15js

1. Modified SmsManager to send message thru Bluetooth if the subscription
   is for a Remote-SIM.
2. Added new column 'subscriptionType' to SubscriptionInfo.
3. SubscriptionManager:
  a. Added new constants for Local SIM and Remote SIM
  b. Added hidden APIs to add/remove Remote SIM subscriptions

Bug: 112321331
Test: tested manually and w/ unittests
Change-Id: Ib15553a806691a258fc00f7aaf812b8a9d49c2e9
2019-01-23 14:25:32 -08:00
Qingxi Li
d1a57f270d Update EuiccManager APIs used for eSIM activation flow
1. Remove ACTION_PROFILE_SELECTION which will not be used.
2. Add a new activation type for GAIA account required flow.

Bug: 119315548
Test: make
Change-Id: Ida871f6f2b0b0db752b3c1e09d5e78a9d5dfeb7b
2019-01-23 10:36:30 -08:00
Android Build Merger (Role)
3f7e640844 Merge "Merge "Deprecate Duplicate SignalStrength Methods" am: a3ab270ce1 am: e880dcb9ea am: 20cbf841d9" 2019-01-23 18:21:13 +00:00
Nathan Harold
16174eeb2a Merge "Deprecate Duplicate SignalStrength Methods" am: a3ab270ce1 am: e880dcb9ea
am: 20cbf841d9

Change-Id: I80cf1ea3bc62aa3e7a5428a3b6b501519148f746
2019-01-23 10:20:45 -08:00
Chen Xu
7d17bf7d9b Merge "new SystemAPI to getSimLocale" 2019-01-23 18:19:41 +00:00
Nathan Harold
20cbf841d9 Merge "Deprecate Duplicate SignalStrength Methods" am: a3ab270ce1
am: e880dcb9ea

Change-Id: Ic7b763122addc84a5fad86cf8a8dceb69896800e
2019-01-23 10:08:56 -08:00
Nathan Harold
a3ab270ce1 Merge "Deprecate Duplicate SignalStrength Methods" 2019-01-23 17:37:03 +00:00