Commit Graph

10335 Commits

Author SHA1 Message Date
Xiangyu/Malcolm Chen
dcb71dfaad Merge "Define ril request for enableUiccApplications." 2019-12-13 22:32:34 +00:00
Treehugger Robot
2626cc7089 Merge "Do not use hidden API XmlUtils." 2019-12-13 22:14:26 +00:00
Jack Yu
39424f4b70 Merge "When SPN is empty, use PNN in mobile network settings" 2019-12-13 21:55:00 +00:00
SongFerng Wang
72f579d5f2 Merge "ServiceState merges voice and data into a single value" 2019-12-13 21:07:17 +00:00
Meng Wang
ba4eb1d6b4 Merge "Expose ACTION_EMERGENCY_ASSISTANCE as SystemAPi" 2019-12-13 21:00:21 +00:00
Jack Yu
5c6eb0e739 When SPN is empty, use PNN in mobile network settings
Added one more name source 'PNN', which has priority
higher than carrier id but lower than EF_SPN.

Bug: 143493866
Test: Manual

Merged-In: I2ef14204d0db018e7f67578a57e56fdbea8b698c
Change-Id: I2ef14204d0db018e7f67578a57e56fdbea8b698c
(cherry picked from commit 9d95aff922)
2019-12-13 11:12:21 -08:00
Xiangyu/Malcolm Chen
31bbebe179 Merge "Do not get CM instance in getActiveModemCount unless needed." 2019-12-13 18:27:06 +00:00
SongFerng Wang
4b30f26d79 Merge "Supplementary Services(SS) gray out when airplane mode on in Call Settings menu." 2019-12-13 03:19:59 +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
Malcolm Chen
e54a3031c9 Do not get CM instance in getActiveModemCount unless needed.
TM#getActiveModemCount might be called before ConnectivityService is
initialized. So do not try to get ConnectivityService instance unless
it's needed (very rarely). Otherwise it will throw WTF exception.

Bug: 144373595
Test: sanity
Change-Id: I7a90ec45a0a3700a0c6852c505d68f438f26768c
Merged-In: I7a90ec45a0a3700a0c6852c505d68f438f26768c
2019-12-13 00:56:15 +00: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
Sarah Chin
7c03a80247 Merge "Add APN type XCAP" 2019-12-12 22:39:01 +00:00
Sarah Chin
9146586e64 Merge "Change defaults for FREQUENCY_RANGE and NR_STATE" 2019-12-12 22:09:24 +00:00
Sarah Chin
ded54498d3 Change defaults for FREQUENCY_RANGE and NR_STATE
Change value from -1 to 0 to match proto

Bug: 141323073
Test: atest TelephonyMetricsTest
Change-Id: I4509f22cdae656de3ad011de3a1664e27d35986a
Merged-In: I4509f22cdae656de3ad011de3a1664e27d35986a
2019-12-12 12:57:35 -08: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
Hall Liu
06fc4257b7 Merge "Add ImsReasonInfo constant for retrying without RTT" 2019-12-12 19:29:37 +00:00
SongFerngWang
afd025f4ab ServiceState merges voice and data into a single value
The voice and data is the same for operator name at ServiceState.
So ServiceState merges voice and data into a single value.
- merge the voice and data OperatorAlphaLong,OperatorAlphaShort, and
OperatorNumeric.

Bug: 144663018
Test: Build pass.
      atest NetworkControllerDataTest (PASS)
      atest ServiceStateTest (PASS)
      atest TelephonyMetricsTest (PASS)
      atest ServiceStateProviderTest (PASS)

Change-Id: I67e4a822c792bf9a9e174146ef8d65d9927d7612
Merged-In: I67e4a822c792bf9a9e174146ef8d65d9927d7612
2019-12-12 22:10:04 +08:00
SongFerngWang
94e2f0c49b Supplementary Services(SS) gray out when airplane mode on in Call Settings menu.
add carrier config "KEY_DISABLE_SUPPLEMENTARY_SERVICES_IN_AIRPLANE_MODE_BOOL".

Bug: 141284019
Test: when airplane mode on, all of SS UIs are gray out.
Change-Id: I869a267fa5aaebf3b48f20bc70d21d612cd84586
Merged-In: I869a267fa5aaebf3b48f20bc70d21d612cd84586
2019-12-12 13:43:13 +00:00
Meng Wang
005a5a2d35 Expose ACTION_EMERGENCY_ASSISTANCE as SystemAPi
It's used by DefaultPermissionGrantPolicy.

Bug: 146091614
Test: make
Change-Id: I907736c7d6745660279a505761e27dfbbd1ddc97
2019-12-12 04:50:41 +00:00
Hall Liu
07105b44cf Add ImsReasonInfo constant for retrying without RTT
Add CODE_RETRY_ON_IMS_WITHOUT_RTT for the IMS stack to indicate to
Telephony that a call should be retried without RTT enabled.

Bug: 141963475
Test: manual

Change-Id: Ic3aa8856e98d8c34fd98462d71834e69b857eda4
2019-12-11 18:27:25 -08:00
Brad Ebinger
7de7f018e8 Merge "Add CarrierConfig for roaming PLMNS that will need emer DDS switch" 2019-12-12 02:10:10 +00:00
Meng Wang
52a4a79b8c Remove ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED
and extra keys only used by the intent.

Those hidden constants are only used by TelephonyRegistry, blocking
telephony mainline. Remove them since no one uses the broadcast.

Bug: 140908357
Test: make
Change-Id: I8fffe2996f233f2422173e9823810523ce80f2e5
2019-12-11 10:10:55 -08:00
Meng Wang
79c83587c3 Merge "Remove ACTION_PRECISE_CALL_STATE_CHANGED and its extras." 2019-12-11 17:49:32 +00:00
Meng Wang
b857ba95e8 Remove ACTION_PRECISE_CALL_STATE_CHANGED and its extras.
Those hidden constants are only used in TelephonyRegistry, blocking
telephony mainline. Remove them since no one uses the broadcast.

Bug: 140908357
Test: make
Change-Id: I2425c157d9d24a8ec18cb66a2ce12c12e0fe49e1
2019-12-10 18:22:10 -08:00
Brad Ebinger
f51c917af3 Add CarrierConfig for roaming PLMNS that will need emer DDS switch
When roaming, we assume that the roaming operator will support
control plane fallback for emergency SUPL. For roaming operators
that we know do not support control plane fallback, we must perform
a DDS switch before dialing an emergency number on that operator.

Bug: 144383368
Test: atest TeleServiceTests; manual
Merged-In: I4a033f89610fd409ea81c40230938720ca76541c
Change-Id: I4a033f89610fd409ea81c40230938720ca76541c
2019-12-10 22:47:17 +00:00
Treehugger Robot
e31b09c825 Merge "Fix to handle duplicate call id for conference call" 2019-12-10 22:28:24 +00:00
Meng Wang
b9d73629d1 Merge "Remove hidden API usage PhoneConstants.SUBSCRIPTION_KEY/SLOT_KEY" 2019-12-10 21:53:26 +00:00
Chen Xu
20e05a4660 Merge "expose datafail cause used in telephony-sdk annotation class" 2019-12-10 21:39:35 +00:00
Jayachandran Chinnakkannu
b181ba61e2 Merge "Remove usage of IccCardConstants hidden APIs" 2019-12-10 21:31:17 +00:00
Meng Wang
4c18a3a5a6 Remove hidden API usage PhoneConstants.SUBSCRIPTION_KEY/SLOT_KEY
The two constants are hidden APIs and used as extra keys for a few
legacy broadcasts. No new external users are expected. So making a local
copy of them to keep backward compatibility, until the broadcasts are
removed in the future.

Also move ACTION_SUBSCRIPTION_PHONE_STATE_CHANGED constant out of
PhoneConstants since it's only used in TelephonyRegistry for backward
compatibility.

Bug: 140908357
Test: make
Change-Id: Ic7f15851377dcba5353dc6dade61b1dec96bcea5
2019-12-10 10:28:13 -08:00
Shuo Qian
8763091019 Merge "Integrate Signal Threshold for 5G" 2019-12-10 18:03:32 +00:00
Jack Yu
9be4d11abb Merge "CarrierConfigManager: Adds API for persistent override of values" 2019-12-10 17:35:20 +00:00
Treehugger Robot
78b90b3a76 Merge "Remove broadcast of NETWORK_SET_TIMEZONE intent" 2019-12-10 16:54:49 +00:00
Torbjorn Eklund
074e97d45e CarrierConfigManager: Adds API for persistent override of values
Adds an API in CarrierConfigManager for persistent override of carrier
config values.

Bug: 144544956
Test: Manual
Merged-In: I50618921d1ec522d5cd0bd71a5f8e0b1877f1ce1
Change-Id: I50618921d1ec522d5cd0bd71a5f8e0b1877f1ce1
2019-12-10 06:51:38 +00:00
Chen Xu
3c963e27b4 expose datafail cause used in telephony-sdk annotation class
1. expose one hidden dataFailCause used in telephony-sdk annotation
class
2. remove unused hidden dataFailCause referened in telephny-sdk
annotation

Bug: 140908357
Test: Build
Change-Id: Ia7ca9a2a354937946ba57017f4bd03fe880aeb6d
2019-12-09 21:18:59 -08:00
Shuo Qian
c1f935e3c0 Integrate Signal Threshold for 5G
1) Introduce default values for 5G Signal thresholds
2) Introduce parameter to control in 5G NR Signal Strength Level
3) Introduce SignalThresholdInfo to support Framework and HAL

Test: Treehugger
Bug: 135717625
Change-Id: I8a716e9fe445349a56bb33b6b8f581febb21552b
Merged-In: I8a716e9fe445349a56bb33b6b8f581febb21552b
(cherry picked from commit 7d7b2f1a44)
2019-12-09 15:24:39 -08:00
Jordan Liu
9fd7c05eb9 Merge "Expose some SystemApis and edit framework-cellbroadcast-shared-srcs" 2019-12-07 00:06:23 +00:00
Jayachandran C
316302c001 Remove usage of IccCardConstants hidden APIs
Expose the string IccCardConstants as system APIs
Use TelephonyManger.SIM_STATE_XXX for remaining

Bug: 145767148
Test: Build
Change-Id: I5711d783be8c8414b8f9d7baa80cb4224bd771aa
2019-12-06 16:06:12 -08:00
Treehugger Robot
c4090312df Merge "SubscriptionPlan: move out of telephony" 2019-12-06 23:12:58 +00:00
Shuo Qian
0024076b1a Merge "Make getPackagesWithPriviligesForAllActiveSubscriptions system API" 2019-12-06 22:01:17 +00:00
Meng Wang
1ba2871a02 SubscriptionPlan: move out of telephony
Hidden APIs of SubscriptionPlan are used in system server, not
telephopny. So it makes more sense for SubscriptionPlan to be in
core instead of telephopny.

Bug: 145814152
Test: make
Change-Id: I3bfb0ec699f46b0cc34c3bc2e13bfb242bc295bf
2019-12-06 13:50:15 -08:00
Meng Wang
a11df59bb4 Merge "SubscriptionPlan: move out of telephony" 2019-12-06 21:37:52 +00:00
sqian
22f5749ccc Make getPackagesWithPriviligesForAllActiveSubscriptions system API
Test: build
Bug: 145550382
Change-Id: Ia7efb9e4b22b24f3c87c7cd631548c7254b28926
Merged-In: Ia7efb9e4b22b24f3c87c7cd631548c7254b28926
(cherry picked from commit 6f27c5769d)
2019-12-06 12:07:57 -08:00
Meng Wang
36673a4b44 SubscriptionPlan: move out of telephony
Hidden APIs of SubscriptionPlan are used in system server, not
telephopny. So it makes more sense for SubscriptionPlan to be in
core instead of telephopny.

Bug: 145814152
Test: make
Change-Id: I4c7ae02f9f4f154c99263521e08265d6fb367272
2019-12-06 11:47:46 -08:00
Jordan Liu
bf68dc85a4 Expose some SystemApis and edit framework-cellbroadcast-shared-srcs
The APIs are used in the CellBroadcastService, and the
framework-cellbroadcast-shared-srcs library is also linked there.

Bug: 135956699
Test: manual
Change-Id: I5e71ea1ee1a858c0520c241dc7365733441e0f50
Merged-In: I5e71ea1ee1a858c0520c241dc7365733441e0f50
2019-12-06 11:19:48 -08:00
Meng Wang
392f3db6b0 Merge "Move SIM_ACTIVATION_TYPE_* to TelephonyRegistryManager" 2019-12-06 00:32:40 +00:00
Meng Wang
037b717fe8 Merge "Move DataConnectionRealTimeInfo from telephony to core." 2019-12-05 23:43:06 +00:00
Sarah Chin
226499214c Merge changes from topics "ngran", "update_ngran"
* changes:
  Update NGRAN bands
  Updated AccessNetworkConstants and RadioAccessSpecifier
2019-12-05 21:37:37 +00:00
Meng Wang
62d2ff8b36 Move SIM_ACTIVATION_TYPE_* to TelephonyRegistryManager
Because the constants are only used by TelephonyRegistryManager and
TelephonyRegistry.

Bug: 140908357
Test: make
Change-Id: I6933d1aa5b8dc35f136c8c4aed8572221ddfb755
2019-12-05 21:32:03 +00:00