Commit Graph

7398 Commits

Author SHA1 Message Date
Malcolm Chen
4ece3db113 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
Merged-In: I9844e71260ea009afd0928a0f4be4426e7d12358
2020-01-08 13:56:27 -08:00
Malcolm Chen
2619a9b138 [Mainline] Make canManageSubscription(SubscriptionInfo, String)
System API.

Bug: 146900942
Test: Build flash and bootup
Change-Id: I824582f9203b950d1153091181de345629adfe65
Merged-In: I824582f9203b950d1153091181de345629adfe65
2020-01-08 13:39:36 -08:00
SongFerng Wang
995d20337f Merge "[Mainline] Create getDataRegistrationState and expose as system api" 2020-01-08 06:38:27 +00:00
Shuo Qian
6a2dab6878 Merge "Expose getActiveSubscriptionInfoForIcc for Mainline" 2020-01-07 23:48:56 +00:00
Peter Wang
18077c1587 Merge "[Telephony Mainline] Move CarrierAppUtils and LocationAccessPolicy to telephony common" 2020-01-07 22:59:17 +00:00
sqian
ff8dfe7eb2 Expose getActiveSubscriptionInfoForIcc for Mainline
Test: cts; treehugger
Bug: 122015219
Change-Id: I900e36fafe009206ec7431220603fcb8f404e33e
Merged-In: I900e36fafe009206ec7431220603fcb8f404e33e
(cherry picked from commit b086534dbe)
2020-01-07 13:45:07 -08:00
Jordan Liu
660a94aea9 Merge "Add isEmergencyApn" 2020-01-07 19:29:39 +00:00
Sooraj Sasindran
041a6d3125 Do not use hidden HandlerExecutor
Do not use hidden HandlerExecutor

Bug: 140908357
Test: Build

Change-Id: I998224991cb31d642435a23851aa18da3f00f159
Merged-In: I998224991cb31d642435a23851aa18da3f00f159
2020-01-07 13:50:12 +00:00
Peter Wang
d10972957f [Telephony Mainline] Move CarrierAppUtils and LocationAccessPolicy to telephony common
Bug: 146904426
Test: Build
Change-Id: I6f6d24fd0adab803899b25a47199839bcbb09eb0
Merged-In: I6f6d24fd0adab803899b25a47199839bcbb09eb0
2020-01-07 02:44:34 -08:00
SongFerng Wang
6297d2548d Merge "isTetheringApnRequired's permission is wrong." 2020-01-07 04:34:59 +00:00
SongFerngWang
d82fbaffa0 [Mainline] Create getDataRegistrationState and expose as system api
Bug: 144486008
Test: atest ServiceStateTest  (PASS)

Change-Id: Ice803f412135932ac2cedadc09433957c16ea512
Merged-In: Ice803f412135932ac2cedadc09433957c16ea512
2020-01-07 12:04:11 +08:00
Tom Hsu
03cbd5d35c Merge "Change TelephonyManager#isManualNetworkSelectionAllowed to system api" 2020-01-07 02:24:31 +00:00
Treehugger Robot
250a41a139 Merge "SMS service loads MMS config directly instead" 2020-01-07 01:29:05 +00:00
Treehugger Robot
b0546af594 Merge "Expose SignalStrength.CREATOR" 2020-01-07 01:02:53 +00:00
Taesu Lee
5f39e5d863 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
Merged-In: Idc21015cab2902bd0f67e2131ea89b04c4fc4f5e
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-01-07 00:12:54 +00:00
Hall Liu
13beb87783 Merge "Create new APIs for overriding APNs" 2020-01-06 23:14:44 +00:00
Jordan Liu
65dfd9d938 Add isEmergencyApn
DcTracker uses this to make sure emergency APNs are not set for initial
attach. This is used instead of canHandleType because it doesn't depend
on the APN being enabled.

Bug: 144932430
Test: manual
Change-Id: I642c7d2171adb862751a5022a9b613ab58b22bf8
2020-01-06 14:42:07 -08:00
tom hsu
070f90cab2 Change TelephonyManager#isManualNetworkSelectionAllowed to system api
Bug: 146036213
Test: make and atest pass
Change-Id: I185d4b1bb2061dbde3b18e6e9f0baf6461ff609d
2020-01-06 16:03:21 +00:00
Hall Liu
39839dc63b Create new APIs for overriding APNs
Create new APIs in TelephonyManager for DevicePolicyManager to add
override APNs, and use them in DevicePolicyManagerService instead of
directly accessing the APN database.

Bug: 146834818
Test: cts-tradefed run cts --module DevicePolicyManager --test
com.android.cts.devicepolicy.DeviceOwnerTest#testOverrideApn
Test: atest TelephonyManagerTest

Change-Id: I6c6214424169c05fd452db71a8c6593f8473b9d4
Merged-In: I6c6214424169c05fd452db71a8c6593f8473b9d4
2020-01-05 14:24:22 -08:00
Treehugger Robot
8ab4812386 Merge "Removed LTE_CA from Annotations" 2020-01-03 18:51:33 +00:00
Daniel Bright
f88d11a37a Removed LTE_CA from Annotations
Teams need to directly link to Annotations and having
a @hide as a const prevents that @SystemApi methods from
doing this.

Bug: 146084549
Test: FrameworkServiceTests
Merged-In: I2d6ad7621560ef73b10d6eb861c44700b27a2ea6
Change-Id: I2d6ad7621560ef73b10d6eb861c44700b27a2ea6
2020-01-03 10:06:08 -08:00
Treehugger Robot
d031947100 Merge "Moved RilRadioTechnology annotation" 2020-01-03 02:10:39 +00:00
Daniel Bright
dba2aa6e6c Moved RilRadioTechnology annotation
Moved annotation from Annotation to ServiceState

Bug: 146084549
Test: FrameworkTests, TeleServiceTests
Change-Id: I2411052465204d87cb5982102df0fd1af012a97c
Merged-In: I2411052465204d87cb5982102df0fd1af012a97c
2019-12-27 20:59:56 -08:00
Daniel Bright
10aa8e7815 Make SystemApi ACTION_SUBSCRIPTION_PLANS_CHANGED
Bug: 146174645
Test: NetworkPolicyManagerServiceTests, TelephonyManagerTest

Change-Id: Ie397a65e0878994540bc42a217b3d27a2e7f108e
Merged-In: Ie397a65e0878994540bc42a217b3d27a2e7f108e
2019-12-27 13:50:46 -08:00
Nathan Harold
47fbf0aaa0 Merge "Expose PreciseDataConnectionState to Public API" 2019-12-26 23:05:58 +00:00
Hall Liu
e00ad76e90 Expose SignalStrength.CREATOR
Parcelable creators should be public per API guidelines

Bug: 146834818
Test: atest android.telephony.cts.SignalStrengthTest
Change-Id: Ib15e21c005ea5fecd5886583213af5fdb9f70abb
2019-12-26 12:48:09 -08:00
Tomita, Ryounosuke X
19078ae003 Improve LTE signal bar level with flexible RSRQ and RSSNR threshold
Current AOSP LTE signal bar has following limitation:
- For Threshold type, "RSRP & RSSNR" or "RSRP only" are selectable,
  but "RSRP & RSRQ" is unavailable.
- For threshold value, RSRP is flexible by carrier config,
  but RSSNR is hard-coded.
- The signal strength reporting criteria apply to only the RSRP.

This change allows following customizations by new carrier config:
- Threshold type can select "RSRP & RSRQ" too.
- Threshold value of RSRQ and RSSNR can be flexible.
- RSRQ and RSSNR thresholds can set signal strength reporting criteria.

Test: auto - Confirmed that run
FrameworksTelephonyTests#testSignalStrength and it has no problem.
Test: auto - Confirmed that run
FrameworksTelephonyTests#SignalThresholdInfoTest and it has no problem.
Bug: 133400544

Change-Id: I37d0dc5ff41169b0309cfaabaa0f2595894b3749
Merged-In: I37d0dc5ff41169b0309cfaabaa0f2595894b3749
2019-12-26 10:10:14 -08:00
SongFerngWang
780bdfa39c isTetheringApnRequired's permission is wrong.
permission change to MODIFY_PHONE_STATE.

Bug: 146406302
Test: build pass
atest TetheringConfigurationTest (PASS)

Change-Id: I908d83abb3e6df74af16d112d31ecaa404355825
2019-12-24 17:42:14 +08:00
Meng Wang
c4aa6f6dcd Remove unused SystemProperties.set
Bug: 140908357
Test: make
Merged-In: I47239b57bbbd37695fba5a37cc64b78428189a31
Change-Id: I47239b57bbbd37695fba5a37cc64b78428189a31
2019-12-23 18:36:58 +00:00
Zongheng Wang
e5f36d48ef Merge "add languageTable and languageShiftTable to calculateLength" 2019-12-21 05:32:25 +00:00
Zongheng Wang
571cbd7a6a add languageTable and languageShiftTable to calculateLength
* Change the calculateLength API's return value to an int array whose
  length is 6. Added languageTable and languageShiftTable which is used
  in Bluetooth MAP profile to encode GSM message.

Bug: 140562205
Test: Manual
Change-Id: I25e23c75d7aabcf2e3f678758a5a398f2ef8d4c1
2019-12-20 15:32:51 -08:00
Sarah Chin
598b5d5340 Merge "Change reference to Bundle.filterValues" 2019-12-20 22:28:35 +00:00
Treehugger Robot
c037935d74 Merge "Make PreciseCallState Constructor System API" 2019-12-20 22:08:13 +00:00
Sarah Chin
c8905d008d Change reference to Bundle.filterValues
Add to TelephonyUtils and replace method call

Test: atest FrameworksTelephonyTests:ImsCallProfileTest
Bug: 140761560
Change-Id: I5cbc7f771f8443835da7acc9e4330ca238d0f929
Merged-In: I5cbc7f771f8443835da7acc9e4330ca238d0f929
2019-12-20 13:07:57 -08:00
Shuo Qian
c12886376a Make PreciseCallState Constructor System API
We would make the constructor of PreciseCallState system API, to resolve
the mainline concern from TelephonyRegistry.

Also clean up unused imports.

Test: built
Bug: 146585782
Change-Id: I0bbca065f86fe352a06c63bdd1b25d34e77a9265
2019-12-20 12:12:57 -08:00
Shuo Qian
071d78b1ef Merge "Make getDefaultCarrierServicePackageName for Mainline" 2019-12-20 18:23:12 +00:00
Nathan Harold
d9b5dda461 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)
(cherry picked from commit c95b4e5421)
2019-12-20 10:06:54 -08:00
Treehugger Robot
afb16fa9d4 Merge "Use sysprop library for telephony props" 2019-12-20 02:00:38 +00:00
Treehugger Robot
268fd3556d Merge "Remove Wifi APIs unused in AOSP." 2019-12-20 01:17:05 +00:00
Shuo Qian
ec428aa436 Make getDefaultCarrierServicePackageName for Mainline
Make this API system to resolve mainline concern. It is ok to make it
system API as it is not a key in CarrierConfigManager. We can add
permission check on the other side.

Test: built
Bug: 146583148
Change-Id: I7c4297d659635622ba4523abf2ce32e21f961ad0
2019-12-20 00:15:52 +00:00
Treehugger Robot
2e321705a7 Merge "Make Gps.KEY_PREFIX and Gps.KEY_PERSIST_LPP_MODE_BOOL Public" 2019-12-19 23:55:34 +00:00
Treehugger Robot
4d83e67433 Merge "Change reference to Build.IS_DEBUGGABLE" 2019-12-19 23:36:16 +00:00
Chen Xu
7be5365dc6 Merge "move carrierconfig key disable_severe_when_extreme_disabled to res" 2019-12-19 22:44:57 +00: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
Chen Xu
aec1aa8d5d move carrierconfig key disable_severe_when_extreme_disabled to res
Bug: 135956699
Test: Manual
Change-Id: Ib12ff430c5781044ec0b36ac9b930224fc410c95
(cherry picked from commit 49b3b1680d)
Merged-in: Ib12ff430c5781044ec0b36ac9b930224fc410c95
2019-12-19 10:56:03 -08:00
Chen Xu
5910f6dd65 Merge "Expose ModemActivitiyInfo to system API" 2019-12-19 18:01:46 +00:00
Austin Wang
edf7ce4f38 Merge "Revert "Use new UnsupportedAppUsage annotation."" 2019-12-19 10:09:11 +00:00
Austin Wang
a63a2c0130 Revert "Use new UnsupportedAppUsage annotation."
This reverts commit a5264903e2.

Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=sdk_phone_armv7-sdk&lkgb=6083299&lkbb=6085371&fkbb=6083313, bug b/146533269

Change-Id: Ie5b031d7b277cf0e09b0a9776b26bf74f5f69e70
2019-12-19 06:38:19 +00:00
Brad Ebinger
8283939cec Merge "Create new Carrier configuration for separate MMTEL/RCS features" 2019-12-19 02:02:57 +00:00
Jayachandran Chinnakkannu
d3adef0662 Merge "Expose ACTION_NETWORK_SET_TIME as system API" 2019-12-19 00:24:57 +00:00