Commit Graph

4172 Commits

Author SHA1 Message Date
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
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
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
Xiangyu/Malcolm Chen
dcb71dfaad Merge "Define ril request for enableUiccApplications." 2019-12-13 22:32:34 +00:00
Brad Ebinger
000bec9fbe Move RCS UCE out of Telephony Mainline
Telephony Mainline does not interact with UCE,
therefore it should not be included as mainline.

Test: build taimen; build coral; manual test uce
Change-Id: I743228939e648689ff9e73d9af2ffb7b90feb3b2
2019-12-13 22:17:30 +00:00
Treehugger Robot
2626cc7089 Merge "Do not use hidden API XmlUtils." 2019-12-13 22:14:26 +00:00
Automerger Merge Worker
2254697a3f Merge "Telephony: do not use hidden API ArrayUtils." am: c6b5fbaf17 am: e8f1598321
Change-Id: Iec49ae0db1aee5614957a32f6d0a8cf5374597d3
2019-12-13 02:26:53 +00:00
Meng Wang
56c0ccecfc Do not use hidden API XmlUtils.
Make a local copy instead.

Bug: 137202333
Test: make
Merged-In: Ibcf7b23a8b6628aa482b34f867db57e4cb0dbb8e
Change-Id: Ibcf7b23a8b6628aa482b34f867db57e4cb0dbb8e
2019-12-12 17:16:01 -08:00
Meng Wang
e1df98d2e2 Telephony: do not use hidden API ArrayUtils.
Make a local copy instead.

Bug: 137202333
Test: make
Merged-In: I3218bca2d296c548b9d8427f70df8f7a33d0d449
Change-Id: I3218bca2d296c548b9d8427f70df8f7a33d0d449
2019-12-12 16:52:30 -08:00
Malcolm Chen
dd0cccb57f Define ril request for enableUiccApplications.
Bug: 141018421
Test: build
Change-Id: Ia071259a3de2bcf78e95e08017c5f207a4ed369a
Merged-In: Ia071259a3de2bcf78e95e08017c5f207a4ed369a
2019-12-12 16:50:10 -08:00
Meng Wang
925bdddc8b Move TelephonyUtils to base/telephony
Bug: 140908357
Test: make
Merged-In: Ie83253e2368256e74b687dc1e5f650bd047c2521
Change-Id: Ie83253e2368256e74b687dc1e5f650bd047c2521
2019-12-12 16:44:35 -08:00
Automerger Merge Worker
675c99fbe4 Merge "Add APN type XCAP" am: 7c03a80247 am: d74193446c
Change-Id: Ie74716546ce86dc951e411bff829c1f842cfc51e
2019-12-12 23:39:01 +00:00
Sarah Chin
66ebce9a50 Add APN type XCAP
Test: atest ApnSettingTest
Bug: 73792201
Change-Id: I662f743cca3c6b2f919d84cf0570f23a1f6d9791
Merged-In: I662f743cca3c6b2f919d84cf0570f23a1f6d9791
2019-12-12 11:55:47 -08:00
Sarah Chin
f6e654dd9a Merge "Add APN type XCAP" 2019-12-12 16:48:56 +00:00
Brad Ebinger
6697814f96 Create new Carrier configuration for separate MMTEL/RCS features
Bug: 111305845
Test: atest FrameworksTelephonyTests; atest CtsTelephonyTestCases
Change-Id: Ia16f82b9cfb9e873d2c26850dfbfd451638ad30c
2019-12-11 14:54:02 -08:00
TreeHugger Robot
d95247cd59 Merge "Do not use hidden HandlerExecutor" 2019-12-11 01:06:31 +00:00
Xiangyu/Malcolm Chen
baad1e6c69 Merge "Define ril request for enableUiccApplications." 2019-12-10 23:38:05 +00:00
Automerger Merge Worker
701fa18ee3 Merge "Remove hidden API usage PhoneConstants.SUBSCRIPTION_KEY/SLOT_KEY" am: b9d73629d1 am: 619a963c33 am: 5470dde3eb
Change-Id: I5648fd8103f8a73537750ddf4d24b0fae4ae0d9b
2019-12-10 22:28:10 +00:00
Automerger Merge Worker
0dc6acb831 Merge "Remove usage of IccCardConstants hidden APIs" am: b181ba61e2 am: b09b13cf38 am: 19f573a89b
Change-Id: Ic061e0647d108df6fd4837b89555febd5f85b48f
2019-12-10 22:26:47 +00:00