Commit Graph

4194 Commits

Author SHA1 Message Date
Meng Wang
2fa1024e95 Merge "Remove unused broadcast DATA_CONNECTION_FAILED" 2019-12-26 23:08:52 +00:00
Malcolm Chen
b44763419b Expose setUiccApplicationsEnabled as @SystemApi for eSIM to call upon slot
mapping change.

Because currently we rely on eSIM module to do handle some slot mapping
change and single to dual SIM config change, eSIM needs to also make
sure uicc applications are enabled for certain scenarios. So we expose
the SubscriptionManager#setUiccApplicationsEnabled as @SystemApi

Bug: 141018421
Test: unittest
Change-Id: I9844e71260ea009afd0928a0f4be4426e7d12358
2019-12-26 11:42:52 -08:00
Meng Wang
06796273ca Remove unused broadcast DATA_CONNECTION_FAILED
Bug: 140908357
Test: make
Change-Id: Iac1730af0fbd17df60943e2b4495716d001d0d70
2019-12-23 23:27:01 +00:00
Zoey Chen
cb874f07bd Merge "[TelephonyMainline] Make getMergedSubscriberIdsFromGroup as System API and rename it" 2019-12-23 05:59:20 +00:00
Meng Wang
f28391eb28 Merge "Use Parcelable CellIdentity instead of CellLocation in AIDL." 2019-12-20 22:46:08 +00:00
Meng Wang
d75f97d21e Use Parcelable CellIdentity instead of CellLocation in AIDL.
Currently CellLocation is passed over AIDL by manually
marshalling/unmarshalling to/from Bundle, and type info
is not preserved in the process.

Bug: 146092124
Test: make
Change-Id: I6225f100953a2ad354acaa261a774989926393ce
2019-12-20 10:50:09 -08:00
Sarah Chin
d16e428781 Merge "Change reference to Bundle.filterValues" 2019-12-20 09:40:45 +00:00
Automerger Merge Worker
3714b23180 Merge "Merge "Change reference to Build.IS_DEBUGGABLE" am: 4d83e67433 am: 9ee90ab489" into qt-qpr1-dev-plus-aosp am: 6a95091780
Change-Id: Ib7e38e93d690c031d20d050502c829b37acd668b
2019-12-20 02:27:10 +00:00
Automerger Merge Worker
a9b1d06dca Merge "Change reference to Build.IS_DEBUGGABLE" am: 4d83e67433 am: 9ee90ab489
Change-Id: I3e88554793c9b3ee646c4aef9852094716f414db
2019-12-20 00:25:59 +00:00
Sarah Chin
f68705a057 Change reference to Bundle.filterValues
Add to TelephonyUtils and replace method call

Test: atest FrameworksTelephonyTests:ImsCallProfileTest
Bug: 140761560
Change-Id: I5cbc7f771f8443835da7acc9e4330ca238d0f929
2019-12-19 16:02:12 -08:00
Nathan Harold
c95b4e5421 Expose PreciseDataConnectionState to Public API
1) Remove Unused Parameters for onDataConnectionState:
The data connection state broadcast includes a number of
parameters that are never used anywhere. To prepare for
updated code that relies on PreciseDataConnectionState,
remove the unused parameters that were internal-only and
included in the broadcast.

-LinkProperties
-NetworkCapabilities
-DataRoaming
-DataAllowed
-Interface name

2) Add Disconnecting State for Data Connections

Add a disconnecting state to correct a mismatch
between the internal and externally visible enums.

This will allow apps to know when connections are
in the process of being torn down, which in the case
of radio link issues could be as much as 15 seconds.

3) Expose PreciseDataConnection for Carrier Apps

Exposes the PSL for PreciseDataConnectionState along
with existing fields in the PreciseDataConnectionState
class.

-Make PreciseDataConnectionState public along with some
 of its fields.
-Expose onPreciseDataConnectionStateChanged.
-Add onPreciseDataConnectionStatesChanged to provide PDCS
 for all APNs in one cohesive batch.

4) Cache PreciseDataConnectionState by APN Type

In telephony registry, multiple different APN types
are all piped through the same cache entry, so every
time any APN changes relative to the previous type,
it triggers an update. This also means that when
a registrant requests the data connection state, only
the most recent type's state is updated.

This change caches entries in TelephonyRegistry based
on the APN's type (specifically the type among types
which triggered the change).

Bug: 143083105
Test: make update-api && make offline-sdk-docs
      (no functional change in this CL).
Test: atest FrameworksTelephonyTests

Merged-In: Ib6a769f5a0cae923ca47a842733bd28755a90ed5
Change-Id: Ib6a769f5a0cae923ca47a842733bd28755a90ed5
(cherry picked from commit 4d340f12c9)
2019-12-19 13:40:02 -08:00
Sarah Chin
5ea6d8a7d2 Change reference to Build.IS_DEBUGGABLE
Replace with TelephonyUtils.IS_DEBUGGABLE and actual call

Test: build
Bug: 140908357
Change-Id: I9e33c2fe426521b8e186cb8e1e5bd7be06992b52
2019-12-19 12:54:19 -08:00
zoey chen
e582f5bc2c [TelephonyMainline] Make getMergedSubscriberIdsFromGroup as System API and rename it
Bug: 145584030
Test: make
Change-Id: I6c077f3bee6bfd4d5b215aca4e9b19b719772b29
2019-12-19 11:51:09 +08:00
Jayachandran C
142eae0776 Move emergency callback related intents to TelephonyManager
This CL also renames to have android.telephony prefix for
one of the intents used internally. Also suppresses the lint
errors for keeping android.intent.* which is needed for app
compatiblily as 3rd party may have hardcoded in their manifest.

Bug: 146240041
Test: Build
Change-Id: Ib3e786b73af614d5ef0d8cf3e5a6642273060f68
2019-12-18 19:17:39 -08:00
Automerger Merge Worker
29c577d086 Merge "Create new Carrier configuration for separate MMTEL/RCS features" am: 8283939cec am: 8d2ebed0cb
Change-Id: I71829e3233215ca50030780718bb67fc0936ea6d
2019-12-19 02:28:18 +00:00
Brad Ebinger
8283939cec Merge "Create new Carrier configuration for separate MMTEL/RCS features" 2019-12-19 02:02:57 +00:00
Automerger Merge Worker
9cb5cdae99 Merge "Expose ACTION_NETWORK_SET_TIME as system API" am: d3adef0662 am: 2bebf8f83b am: 63ccc52096
Change-Id: I3d1071de60c06134d055f02d4bc759ea19a6261e
2019-12-19 01:01:37 +00:00
Automerger Merge Worker
63ccc52096 Merge "Expose ACTION_NETWORK_SET_TIME as system API" am: d3adef0662 am: 2bebf8f83b
Change-Id: I9dd2456ce684fd3c5ce3c3f4c07e7e5d96393d98
2019-12-19 00:47:33 +00:00
Jayachandran Chinnakkannu
d3adef0662 Merge "Expose ACTION_NETWORK_SET_TIME as system API" 2019-12-19 00:24:57 +00:00
Jordan Liu
2f5017369f Merge "Move GsmSmsCbMessage to CBReceiver test app" 2019-12-18 20:57:36 +00:00
Brad Ebinger
2499aa4b81 Create new Carrier configuration for separate MMTEL/RCS features
Bug: 111305845
Test: atest FrameworksTelephonyTests; atest CtsTelephonyTestCases
Merged-In: Ia16f82b9cfb9e873d2c26850dfbfd451638ad30c
Change-Id: Ia16f82b9cfb9e873d2c26850dfbfd451638ad30c
2019-12-18 11:02:09 -08:00
Automerger Merge Worker
23a632b19d Merge "Telephony: Get SIM card capacity count of SMS" am: 1017905980 am: f8772763e3 am: f368715dc8
Change-Id: I14a94428c3b75912afbdc17bb38e3080d6b47b4e
2019-12-18 00:07:18 +00:00
Automerger Merge Worker
f368715dc8 Merge "Telephony: Get SIM card capacity count of SMS" am: 1017905980 am: f8772763e3
Change-Id: I85299e0f38f7ea3fe657f265a9799f73aaecb045
2019-12-17 23:52:22 +00:00
Tyler Gunn
1017905980 Merge "Telephony: Get SIM card capacity count of SMS" 2019-12-17 23:31:15 +00:00
Nathan Harold
04eaf14fc9 Merge "Expose PreciseDataConnectionState to Public API" 2019-12-17 20:24:50 +00:00
TreeHugger Robot
acdcaf85ad Merge "Create new Carrier configuration for separate MMTEL/RCS features" 2019-12-17 19:50:06 +00:00
Jayachandran C
e477e36fc0 Expose ACTION_NETWORK_SET_TIME as system API
This CL also uses android.telephony prefix

Bug: 146388552
Test: Build
Change-Id: I5afb7ef87ace11c7f97e2f6a75a409ecee537a18
2019-12-17 09:18:05 -08:00
Mengjun Leng
db15271ae7 Telephony: Get SIM card capacity count of SMS
Add an API to get the capacity of the stored SMS on ICC card.

Bug:37289947
Change-Id: Ic9383b3605ce450b3dc32ccc0c283789c12fabf7
2019-12-17 10:44:36 +08:00
Nathan Harold
4d340f12c9 Expose PreciseDataConnectionState to Public API
1) Remove Unused Parameters for onDataConnectionState:
The data connection state broadcast includes a number of
parameters that are never used anywhere. To prepare for
updated code that relies on PreciseDataConnectionState,
remove the unused parameters that were internal-only and
included in the broadcast.

-LinkProperties
-NetworkCapabilities
-DataRoaming
-DataAllowed
-Interface name

2) Add Disconnecting State for Data Connections

Add a disconnecting state to correct a mismatch
between the internal and externally visible enums.

This will allow apps to know when connections are
in the process of being torn down, which in the case
of radio link issues could be as much as 15 seconds.

3) Expose PreciseDataConnection for Carrier Apps

Exposes the PSL for PreciseDataConnectionState along
with existing fields in the PreciseDataConnectionState
class.

-Make PreciseDataConnectionState public along with some
 of its fields.
-Expose onPreciseDataConnectionStateChanged.
-Add onPreciseDataConnectionStatesChanged to provide PDCS
 for all APNs in one cohesive batch.

4) Cache PreciseDataConnectionState by APN Type

In telephony registry, multiple different APN types
are all piped through the same cache entry, so every
time any APN changes relative to the previous type,
it triggers an update. This also means that when
a registrant requests the data connection state, only
the most recent type's state is updated.

This change caches entries in TelephonyRegistry based
on the APN's type (specifically the type among types
which triggered the change).

Bug: 143083105
Test: make update-api && make offline-sdk-docs
      (no functional change in this CL).
Test: atest FrameworksTelephonyTests

Change-Id: Ib6a769f5a0cae923ca47a842733bd28755a90ed5
2019-12-16 16:16:51 -08:00
Jordan Liu
803c885513 Move GsmSmsCbMessage to CBReceiver test app
After removing platform handling of cell broadcasts (in favor of
CellBroadcastService module) the GsmSmsCbMessage class is only used by
CellBroadcastReceiver test app, so move the class there.

Bug: 135956699
Test: manual
Change-Id: Ia1d19356c34f9a13638c10d1c1b9e53c6b69fddd
2019-12-16 11:53:31 -08:00
Sooraj Sasindran
17e671ac39 Do not use hidden broadcast API of RemoteCallbackList
Do not use hidden broadcast API of RemoteCallbackList
Bug: 140908357
Bug: 146349977
Test: Build
Change-Id: I5fa9b0f36f18c6073ad20867f6bf62d573f823b8
2019-12-16 19:44:30 +00:00
Automerger Merge Worker
1fb2a8e90c Merge "Move RCS UCE out of Telephony Mainline" am: 07ba9c6fff am: 5a05ae1270 am: e3ba3689d9
Change-Id: Ied2a947b67ab365b73f454de1423caba23e89f49
2019-12-16 18:33:34 +00:00
Automerger Merge Worker
e3ba3689d9 Merge "Move RCS UCE out of Telephony Mainline" am: 07ba9c6fff am: 5a05ae1270
Change-Id: I57e27f7314692bbaa882216405deca80ded92ad1
2019-12-16 18:18:36 +00:00
Brad Ebinger
07ba9c6fff Merge "Move RCS UCE out of Telephony Mainline" 2019-12-16 17:53:31 +00:00
Automerger Merge Worker
6f6509fcfe Merge "Added read phone state permission for getNetworkCountryIso" am: 8409679749 am: 17fd16a84b
Change-Id: I982337471cbf99f9a69054fba4e58074e5799d11
2019-12-16 17:47:45 +00:00
Jack Yu
8409679749 Merge "Added read phone state permission for getNetworkCountryIso" 2019-12-16 17:29:15 +00:00
Automerger Merge Worker
560eac460c Merge "remove API RoleManager.getFinancialSms" am: c0fa362e1b am: 679980cbca
Change-Id: I6f5db398a52a01b3fcc5b7a672d39f92dcd93479
2019-12-14 08:19:38 +00:00
Chen Xu
c0fa362e1b Merge "remove API RoleManager.getFinancialSms" 2019-12-14 06:57:48 +00:00
Automerger Merge Worker
3559b773a2 Merge changes from topic "cpcpcp" am: b25174e9d0 am: bcec691fd1
Change-Id: I8e9c1c4e99969342a339501ffe05023d82353387
2019-12-14 06:21:56 +00:00
Automerger Merge Worker
b6c05be16d move IApnSourceService.aidl to android.service.carrier am: 2a03dd50ce am: f3304cec72
Change-Id: Idfbfe4e5420eeeb2d364145e0676762905be3c9b
2019-12-14 06:21:49 +00:00
Chen Xu
f3304cec72 move IApnSourceService.aidl to android.service.carrier
am: 2a03dd50ce

Change-Id: Icb6e2e2cf89ad53dfc1af2a90d138145a22f634e
2019-12-13 22:09:00 -08:00
Chen Xu
435d1c1a53 remove API RoleManager.getFinancialSms
getFinancialSms is not functional and not used today, thus
remove it to avoid future confusion

Bug: 138745655
Bug: 140908357
Test: atest android.telephony.cts.SmsManagerTest
Change-Id: Ib57d0fc189b6c894227894ee02b592f7ee46f22f
(cherry picked from commit d6b2673181)
Merged-in: Ib57d0fc189b6c894227894ee02b592f7ee46f22f
2019-12-13 20:48:41 -08:00
Chen Xu
b25174e9d0 Merge changes from topic "cpcpcp"
* changes:
  move encodeException to non-updatable framework/base/telephony/common
  move IApnSourceService.aidl to android.service.carrier
  use SmsCbMessage.MESSAGE_FORMAT_3GPP to replace hidden SmsMgr APIs
  apply correct @SystemAPI for PackageManager
2019-12-14 04:16:54 +00:00
Automerger Merge Worker
37794825d3 Merge "Move TelephonyUtils to base/telephony" am: 07b7384007 am: 3858f597e9
Change-Id: I6609f7e4420ef27df625437426b53949cc24da3c
2019-12-14 01:59:29 +00:00
Treehugger Robot
07b7384007 Merge "Move TelephonyUtils to base/telephony" 2019-12-14 01:35:53 +00:00
Chen Xu
4c0941420e move encodeException to non-updatable framework/base/telephony/common
Bug: 140908357
Test: Build
Change-Id: I9be6b41fe4af0eb4eb56debffc020735509dc407
(cherry picked from commit 3a7dfca8db)
Merged-in: I9be6b41fe4af0eb4eb56debffc020735509dc407
2019-12-13 17:07:50 -08:00
Chen Xu
2a03dd50ce move IApnSourceService.aidl to android.service.carrier
Bug: 140908357
Test: Build & Manual
Change-Id: I21b83798f5ecd819627a7168c167cf3cfe99dd68
(cherry picked from commit 478ba408d3)
Merged-in: I21b83798f5ecd819627a7168c167cf3cfe99dd68
2019-12-13 17:04:23 -08:00
Jack Yu
92203589f1 Added read phone state permission for getNetworkCountryIso
The slot based version of getNetworkCountryIso is a system API.
So it needs to be gaurded by permission.

Bug: 141646066
Test: Telephony sanity tests
Merged-In: I810ff0b77b93870ae3f62769977c7094789d0a5a
Change-Id: I810ff0b77b93870ae3f62769977c7094789d0a5a
(cherry picked from commit 105f65068c)
2019-12-13 15:20:21 -08:00
Automerger Merge Worker
ce8e50f787 Merge "Define ril request for enableUiccApplications." am: dcb71dfaad am: de79f5aa49
Change-Id: Iae84ee05e8a9607584af8b2d5f900ed41402305b
2019-12-13 22:44:15 +00:00
Automerger Merge Worker
1d4e3c0313 Merge "Do not use hidden API XmlUtils." am: 2626cc7089 am: 6f083ff661
Change-Id: I58879292c13eaefd4dd32eecb4599560337155a7
2019-12-13 22:36:00 +00:00