Commit Graph

3430 Commits

Author SHA1 Message Date
Shuo Qian
e11e621d5a Merge "Add Emergency Number Test Mode" 2019-01-17 21:52:58 +00:00
Jack Yu
995480dc9d Merge "Split applyNewState into enable/disable APN" 2019-01-17 07:17:19 +00:00
sqian
cb4bd3a30f Add Emergency Number Test Mode
Add EMERGENCY_NUMBER_SOURCE_TEST_MODE

This also does not allow to send the service categories from database when
dialing.

Bug: 122840137
Test: Manual; Treehugger
Change-Id: I4ea3539e3b814b71e03e956d4a857ec20141fa8c
2019-01-16 17:05:40 -08:00
Jack Yu
ade6d1a66d Split applyNewState into enable/disable APN
This is the preliminary work for adding handover
type for enable/disable APN.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Change-Id: I51fd01d798cdf8d04fd41455126d017ac97f5f3f
2019-01-16 15:35:38 -08:00
Chen Xu
fb34f40ab9 Merge "Update sharedPreference to false when exits new device provisioning" 2019-01-16 08:00:03 +00:00
Allen Su
86c7e98c17 Merge "Add new intent ACTION_REPORT_RADIO_BUG and setting for radio error" 2019-01-16 02:43:40 +00:00
chen xu
24652bdf22 Update sharedPreference to false when exits new device provisioning
Update sharedPreference to false when exits new device provisioning,
indicating no users modifications on the settings for new devices.
Thus carrier specific default roaming settings can be applied for new devices.

Bug: 122817867
Test: Manual test on VZW SIM in Setupwizard
Change-Id: Ic93b16f9f96ccc98d12f46c79ab1008ae0df8a07
2019-01-15 16:17:47 -08:00
Jordan Liu
1f49aca8ef Merge "EuiccManager handles multiple eUICCs using cardId" 2019-01-15 18:32:57 +00:00
Nazanin Bakhshi
2ef5a3b87d Merge "add getPreferredDataSubId to SubscriptionManager and rename setPreferredData -> serPreferredDataSubId" 2019-01-15 01:45:32 +00:00
Jordan Liu
c1c89e470a EuiccManager handles multiple eUICCs using cardId
Bug: 80097562
Test: manual
Change-Id: I61ab60dfe4b97080148c9ee4b180e0a582b10f59
2019-01-14 15:13:41 -08:00
Hall Liu
37c22c1018 Merge "IMS: Propagate media profile changed message" am: 7ae295368d am: 4dee3b2193
am: c5c6046579

Change-Id: Icfa541a094255b3b60600e479cac31fc5220612c
2019-01-14 15:13:10 -08:00
Hall Liu
c5c6046579 Merge "IMS: Propagate media profile changed message" am: 7ae295368d
am: 4dee3b2193

Change-Id: I95e75988b622f788b4fc63a9c3e5205b67d0455b
2019-01-14 14:30:55 -08:00
Jordan Liu
fd2fc70be2 Merge "Add CallAttributes and PhoneStateListener method" am: 7bc14fcc38 am: 8a6a6a61f8
am: d887e0f5f9

Change-Id: I81363ce1cae66491dc3c539905ce089302929e53
2019-01-14 13:53:38 -08:00
Hall Liu
7ae295368d Merge "IMS: Propagate media profile changed message" 2019-01-14 21:28:28 +00:00
Jordan Liu
d887e0f5f9 Merge "Add CallAttributes and PhoneStateListener method" am: 7bc14fcc38
am: 8a6a6a61f8

Change-Id: I019bafc8fc47758f7cdeae0aee1081f73965fc7b
2019-01-14 12:56:20 -08:00
Jordan Liu
7bc14fcc38 Merge "Add CallAttributes and PhoneStateListener method" 2019-01-14 18:45:12 +00:00
Nazanin Bakhshi
6ca46074e1 add getPreferredDataSubId to SubscriptionManager
and rename setPreferredData -> serPreferredDataSubId

Bug: 117833883
Test: sanity
Change-Id: I67b18f1ef450c3d9e5615b3d2ec8a53a0691d7af
2019-01-14 10:00:37 -08:00
allenwtsu
f63b644cbe Add new intent ACTION_REPORT_RADIO_BUG and setting for radio error
Add an intent ACTION_REPORT_RADIO_BUG for reporting radio error
Also add new settings for radio error detection

Bug: 113635050
Test: Build pass
Change-Id: I060db9b11776a67ce4da1c3142b2e6cdc23f38cf
2019-01-14 10:33:38 +08:00
Sooraj Sasindran
a951bbe072 Merge "Rename ANS to ONS" am: c78240df19
am: ac483b306d

Change-Id: I8714b3f7b4c71d817d2a8e8361442f720bf5a5a2
2019-01-12 11:37:42 -08:00
Sooraj Sasindran
c78240df19 Merge "Rename ANS to ONS" 2019-01-12 19:11:53 +00:00
Sooraj Sasindran
10ed4a2b01 Merge "Rename ANS to ONS" 2019-01-12 02:32:31 +00:00
Eugene Susla
40335c1be9 Merge "Mirgate default SMS app handling to RoleManager" 2019-01-11 21:23:34 +00:00
Wileen Chiu
f2ec298d7d IMS: Propagate media profile changed message
- RTT Voice information will be passed to the UI via
  media profile changed message

- The RTT voice information - SPEECH/SILENCE, will be conveyed
  via the ImsStreamMediaProfile.hasRttAudioSpeech

- A connection event will be sent from frameworks to the UI -
  EVENT_RTT_AUDIO_INDICATION_CHANGED

- Add listeners, connection event and extras to propagate
  media profile changed to the UI

Test: Manual
Bug: 110976450
Change-Id: I34d2dd612915d65f5047986dabece968c78f0abe
2019-01-11 11:58:31 -08:00
Chen Xu
26c60d6d69 Merge "precisedataState refactor part 3" am: 2351fa8b8f
am: f7f229bc1d

Change-Id: Iad8b0677d1853957582c20a86c242bff3512f869
2019-01-11 11:02:38 -08:00
Jordan Liu
fd59a81329 Add CallAttributes and PhoneStateListener method
CallAttributes changes will not be reported until we have a full modem
and framework implementation. Registering for one right now is a no-op.

Test: builds
Bug: 110107501
Change-Id: I9c246438de407f5553fd90652e481cdc39b8c844
2019-01-11 10:41:52 -08:00
Sooraj Sasindran
9ac6a8b5d4 Rename ANS to ONS
Rename AlternativeNetworkService to OpportunisticNetworkService
Bug: 118347827
Test: compile

Merged-In: Ifbbc5eccd35c4b0c2c4e60a04425f4aea0fdeafd
Change-Id: Ifbbc5eccd35c4b0c2c4e60a04425f4aea0fdeafd
2019-01-11 17:46:50 +00:00
Jiuyu Sun
5f08027714 Merge "Allow privileged carrier app to update subscription nickname." 2019-01-11 03:01:12 +00:00
Sooraj Sasindran
fd617463b4 Rename ANS to ONS
Rename AlternativeNetworkService to OpportunisticNetworkService
Bug: 118347827
Test: compile

Change-Id: Ifbbc5eccd35c4b0c2c4e60a04425f4aea0fdeafd
2019-01-10 15:57:31 -08:00
Eugene Susla
4ab9511993 Mirgate default SMS app handling to RoleManager
This includes laying down some groundwork to make the remaining migrations
more straightforward

Bug: 110557011
Test: atest RoleManagerTest && atest SmsManagerTest
Change-Id: Ie96abd73751d10f521756c9dcdab2a5710ca2045
2019-01-10 10:41:10 -08:00
chen xu
896e3d4580 precisedataState refactor part 3
1. expose DataFailCause to systemAPI
2. expose PreciseDataState to systemAPI
3. change string apntype to bitmask.
4. change string dataFaiLcause to intdef

Bug: 119891533
Change-Id: Ife380a5063f44f80d41f60ffaecc5185f2f5b16b
(cherry picked from commit 16e24cd5de)
Merged-in: Ife380a5063f44f80d41f60ffaecc5185f2f5b16b
2019-01-09 22:49:42 -08:00
Holly Jiuyu Sun
5b44f9b4c2 Allow privileged carrier app to update subscription nickname.
Make EuiccManager#updateSubscriptionNickname as public API to allow
carrier app to call it.
Only a privileged app of the given subscription can update the
subscription nickname.
Refresh cached subscription list after the nickname is successfully
updated.

Bug: 122597547
Test: test on phone
Change-Id: I63c5ec4366f32735a54adf40b9cc0b47af681736
2019-01-09 13:52:07 -08:00
chen xu
16e24cd5de precisedataState refactor part 3
1. expose DataFailCause to systemAPI
2. expose PreciseDataState to systemAPI
3. change string apntype to bitmask.
4. change string dataFaiLcause to intdef

Bug: 119891533
Change-Id: Ife380a5063f44f80d41f60ffaecc5185f2f5b16b
2019-01-07 14:01:05 -08:00
Jack Yu
4d3d43d006 Merge "Stop exposing reasons through phone state listener" am: 26ebccdcff
am: d05f403adc

Change-Id: I12080acebc37dc496f9b016784fc8ef6e611f1d4
2019-01-07 07:54:34 -08:00
Jack Yu
084b7f514f Merge "Cleaned up dead code" am: d14ed44c52
am: bcea94219a

Change-Id: Ic3701fac667f51f1ab8faef451355fff4ac97249
2019-01-06 22:58:29 -08:00
Jack Yu
f05919ab76 Stop exposing reasons through phone state listener
The data connection reasons are implementation details
of telephony and should not be exposed externally. The
data connection fail cause, which is different from
reasons, are still available.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: Ia005abf19664e6213118ee932495950af118456d
Change-Id: Ia005abf19664e6213118ee932495950af118456d
(cherry picked from commit 4d1c945000)
2019-01-07 06:39:38 +00:00
Jack Yu
239aa0ae0a Cleaned up dead code
Renamed the scanning state to retrying. Removed the
old retrying dead code.

Test: Telephony sanity tests
Bug: 73659459

Merged-In: I54849bafbd0d05206e67636f0717b4b833a5e229
Change-Id: I54849bafbd0d05206e67636f0717b4b833a5e229
(cherry picked from commit 5de4a2d869)
2019-01-06 11:48:32 -08:00
Jack Yu
4d1c945000 Stop exposing reasons through phone state listener
The data connection reasons are implementation details
of telephony and should not be exposed externally. The
data connection fail cause, which is different from
reasons, are still available.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Change-Id: Ia005abf19664e6213118ee932495950af118456d
2019-01-04 14:13:28 -08:00
Mathew Inwood
8501ae1763 Merge "Limit access to suspected false positives." am: aeda49d185
am: 152d5a5dcd

Change-Id: I8e10322e69d2d479079df5cf8fec0287c7c117f1
2019-01-02 05:00:54 -08:00
Mathew Inwood
aeda49d185 Merge "Limit access to suspected false positives." 2019-01-02 12:30:32 +00:00
Shuo Qian
65008ba65b Merge "Add Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check" am: 8336204f99
am: 9038699348

Change-Id: I2e749228e6ff119c2dbd3962889ff6637d3575bf
2018-12-28 12:32:35 -08:00
sqian
c18b326a5b Add Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check
Bug: 112657134
Test: Treehugger
Change-Id: I297334be370688fd9a9d46920a09152f57152039
Merged-In: I297334be370688fd9a9d46920a09152f57152039
(cherry picked from commit 6279e97c43)
2018-12-28 11:00:26 -08:00
Shuo Qian
d78fdd83b2 Merge "EmergencyNumber enhancement" am: b158b12cbb
am: 8af07a9e24

Change-Id: I17931c9ef06a9e192a6c7f7c28563045daf37e2d
2018-12-28 10:33:42 -08:00
Mathew Inwood
55418eada5 Limit access to suspected false positives.
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.

Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.

For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: Ia937d8c41512e7f1b6e7f67b9104c1878b5cc3a0
Merged-In: I020a9c09672ebcae64c5357abc4993e07e744687
2018-12-28 14:26:35 +00:00
Mathew Inwood
31755f94e1 Limit access to suspected false positives.
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.

Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.

For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: I020a9c09672ebcae64c5357abc4993e07e744687
2018-12-28 11:50:04 +00:00
sqian
46c0c303fa EmergencyNumber enhancement
1) Add Database source for EmergencyNumber
2) add mergeEmergencyNumber for merging two emergency numbers
3) enable Listener.EmergencyNumber enhancement
4) no need to pass any parameter to PhoneNotifier
5) modify API documentation
6) deprecate PhoneNumberUtils.isEmergencyNumber
7) modify API documentation for security exception and backward
compatibility
9) introduce some utils in EmergencyNumber for merging number purposes
10) add mnc into EmergencyNumber

Bug: 112657134
Test: Treehugger
Change-Id: I0dcd01bdad7d9c37294cd8b87eda54b4ac9d0a0b
Merged-In: I0dcd01bdad7d9c37294cd8b87eda54b4ac9d0a0b
(cherry picked from commit 9f93a12e1f)
2018-12-27 22:16:25 +00:00
Nazanin Bakhshi
ecb117ebac Merge "Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java" 2018-12-27 18:57:02 +00:00
TreeHugger Robot
561ba9eae2 Merge "Cleaned up dead code" 2018-12-27 17:08:02 +00:00
Jordan Liu
c9b8ad0c41 Merge "Add UiccCardInfo APIs" am: 8acece0441 am: a1ce4f0ec9
am: da2cdd3596

Change-Id: I831e44185649620ad9b48c2db7b103218638912a
2018-12-26 08:48:52 -08:00
Jordan Liu
da2cdd3596 Merge "Add UiccCardInfo APIs" am: 8acece0441
am: a1ce4f0ec9

Change-Id: I24b89cb46f6d9d8e4e0f9f24cde49090615ed007
2018-12-26 08:35:35 -08:00
Jordan Liu
8acece0441 Merge "Add UiccCardInfo APIs" 2018-12-26 16:16:02 +00:00