Commit Graph

4220 Commits

Author SHA1 Message Date
TreeHugger Robot
c54923ca57 Merge "Add new @SystemApis for RCS dependencies" 2020-01-11 02:54:22 +00:00
Brad Ebinger
f8e4614a91 Add new @SystemApis for RCS dependencies
As part of mainline, remove telephony dependencies from RcsService
and PresencePolling apps.

Bug: 147319232
Test: atest CtsTelephonyTestCases
Change-Id: Id25bfffc1c40db8b183206dc598165272da7356c
2020-01-10 13:24:12 -08:00
Jayachandran Chinnakkannu
40d1c39d69 Merge "Move ACTION_SIGNAL_STRENGTH_CHANGED to local" 2020-01-10 18:26:37 +00:00
Meng Wang
b8ffe81593 Use com.android.telephony.Rlog for mainline module.
Bug: 144374158
Test: make
Change-Id: I86a479affb8e0fa8e48734324a6a05c68230d910
2020-01-09 04:42:58 +00:00
Meng Wang
1b3499c83c Merge "System API used by telephony to bind to WapPushManager app." 2020-01-09 00:18:53 +00:00
Meng Wang
e6a40697e1 System API used by telephony to bind to WapPushManager app.
Bug: 145179378
Test: make
Change-Id: Ibfb5ce49d20addcd19775d9e8d762945e71b9843
2020-01-08 13:52:19 -08:00
Peter Wang
50298f75bc Merge "[Telephony Mainline] Move TelephonyUtils to telephony/common" 2020-01-08 21:35:25 +00:00
Jayachandran C
4eda57e047 Move ACTION_SIGNAL_STRENGTH_CHANGED to local
Also remove the reference to PhoneStateIntentReceiver as its being
removed as part of this CL

Bug: 147314715
Test: Build and basic sanity
Change-Id: I04d766ddae7958f0d2f35b50154e5e6d2f8dce7e
2020-01-08 12:01:21 -08:00
Makoto Onuki
f257d0141a Merge "Add a copy of Rlog for the telephony mainline module" 2020-01-08 18:40:43 +00:00
Peter Wang
2c3caed036 [Telephony Mainline] Move TelephonyUtils to telephony/common
Bug: 140908357
Test: Build
Change-Id: I94764fcf698477285ea366c5c7e90e7bd8a27eb3
2020-01-07 16:46:29 -08:00
Makoto Onuki
57e56f2d3c Add a copy of Rlog for the telephony mainline module
We can't expose android.telephony.Rlog directly to the telephony
module as @SystemApi because we can't protect it from app code.

So instead, expose a lower level API from the Log class to the
telephony module with client=SystemApi.Client.MODULE_LIBRARIES so
it can only be accessed by boot classpath code, and then create
a copy of Rlog in the telephony module, which internally use the
aforementioned API.

Note:
- Support for MODULE_LIBRARIES is not fully in yet, so for now
the Log.logToRadioBuffer() API is still hidden.
- Once all the infra is in, we can expose logToRadioBuffer.
- Once we mark it with MODULE_LIBRARIES, ART will protect it
against app code, so no further protection will be needed.

Bug: 144374158
Test: boot
Change-Id: I5be0497a17d00152286fe3351bf58e75b675ceb6
2020-01-07 16:40:35 -08:00
Nathan Harold
8b804f3308 Merge "Add Callback for Registration Failure" 2020-01-07 18:17:03 +00:00
Artur Satayev
74cb719964 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I547d7fb2e6bc2e9707bbc0d14dc1e8cd632c5a23
2020-01-07 14:19:21 +00:00
Peter Wang
62a1145512 Merge "[Telephony Mainline] Move CarrierAppUtils and LocationAccessPolicy to telephony common" 2020-01-07 10:29:54 +00:00
Peter Wang
c61b1edc97 [Telephony Mainline] Move CarrierAppUtils and LocationAccessPolicy to telephony common
Bug: 146904426
Test: Build
Change-Id: I6f6d24fd0adab803899b25a47199839bcbb09eb0
2020-01-06 20:14:24 -08:00
Betty Chang
02141e80f7 Merge "[Mainline] Move the setAlwaysAllowMmsData from SubscriptionManager to TelephonyManager" 2020-01-07 02:41:52 +00:00
Sarah Chin
8bf65d078f Merge "SMS service loads MMS config directly instead" 2020-01-07 00:12:21 +00:00
Taesu Lee
44fb1904e3 SMS service loads MMS config directly instead
getCarrierConfigValues() is removed from MmsManager and SMS service
loads Carrier configuration values directly since MmsService could
return null or cached config instead if an app requests the config by
receiving ACTION_CARRIER_CONFIG_CHANGED before the config is loaded
newly in MmsService by ACTION_CARRIER_CONFIG_CHANGED.

Bug: 145768042
Test: manual

Change-Id: Idc21015cab2902bd0f67e2131ea89b04c4fc4f5e
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-01-06 15:09:48 -08:00
Jayachandran Chinnakkannu
0aaa6beedf Merge "Make the following telephony intents as system API" 2020-01-06 22:00:32 +00:00
changbetty
8f823800d7 [Mainline] Move the setAlwaysAllowMmsData from SubscriptionManager to TelephonyManager
Bug: 146309719
Test: make
Change-Id: Ibb68cd4e6a6ba49c56b313380ddf16734813459b
2020-01-06 16:59:28 +08:00
Jayachandran C
041e769c09 Make the following telephony intents as system API
ACTION_REQUEST_OMADM_CONFIGURATION_UPDATE
ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED
ACTION_DEFAULT_VOICE_SUBSCRIPTION_CHANGED

Bug: 146680426
Test: Build
Change-Id: I8ba6d564347777204e2563f87a81f6b0b905d43f
2020-01-03 16:43:23 -08:00
Nathan Harold
5e6e983cad Add Callback for Registration Failure
Add a callback to PhoneStateListener to indicate that
a registration procedure has failed.

Bug: 143187047
Test: make update-api && make
Change-Id: I4a4ba4479dfd465a9d8063135f3b4bf4e1323e99
2020-01-02 17:01:36 -08:00
Malcolm Chen
a3f8de5463 Hook supplyPin and supplyPuk to proper impl with subId specified
All TelephonyManager APIs are subId specified, where the public  API call
should map to a subId specific implementation via ITelephony and
PhoneInterfaceManager. But that's not the case for supplyPin and
supplyPuk. So fixing it and clean up unused aidl calls.

Bug: 146593004
Test: manual - pin and puk
Change-Id: If496674ef2ddc608264cf7b12905614698dc7e2d
2020-01-02 15:27:33 -08:00
Hall Liu
15bc4d2257 Copy isEmailAddress
Copy the util method from Telephony.Mms so we're not using the hidden
API.

Bug: 146834818
Test: atest GsmSmsTest#testIsEmailAddress
Change-Id: I003bf504d25b65ce4fc544d918007034471d7040
2019-12-30 16:01:47 -08:00
SongFerng Wang
70c19b4023 Merge "[Telephony Mainline] Add new api for Mvno matching" 2019-12-30 09:28:31 +00:00
changbetty
af15476935 [Telephony Mainline] Add new api for Mvno matching
Bug: 144977430
Test: make
Change-Id: I550e93ab8662c81068a6d52fef2e3c299607c18f
2019-12-27 14:01:25 +08:00
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