Commit Graph

4364 Commits

Author SHA1 Message Date
Sooraj Sasindran
17ed973b1b Merge "Allow Privileged apps to read prefered data state" 2019-02-05 02:53:14 +00:00
Jordan Liu
8f7a989df5 Merge "CallAttributes.equals does deep check" 2019-02-05 00:59:31 +00:00
Sooraj Sasindran
96b977f796 Allow Privileged apps to read prefered data state
Allow Privileged apps to read prefered data state
Change ArrayList to List for public API

Bug: 122900079
Bug: 123697660
Test: verified manually
Change-Id: Ib1221a65edf554b700088d68505da137ccd7de5e
2019-02-04 16:25:59 -08:00
Treehugger Robot
256640541f Merge "Use default methods for MBMS group call callbacks" 2019-02-04 23:41:33 +00:00
Jordan Liu
8eaa95322b CallAttributes.equals does deep check
Also fix PreciseCallState.equals() to not return the opposite of equals.

Bug: 123363462
Test: CallAttributesTest
Change-Id: I7a9b65a01bc32ebfe304a0434a82bfe97929421c
2019-02-04 14:20:04 -08:00
Hall Liu
3d834a0e69 Merge "Unhide isRttSupported in TelephonyManager" 2019-02-04 21:15:04 +00:00
Youming Ye
0d16222125 Merge "Add IntDef for SIP response code." 2019-02-04 18:03:32 +00:00
Chen Xu
996f047394 Merge "Add NR to preferred network type combination" 2019-02-02 01:24:00 +00:00
Pengquan Meng
b8e4cd87de Merge "Add signal strength converter" 2019-02-01 21:09:46 +00:00
Jordan Liu
84d250c18d Merge "Refresh cardId before using it." 2019-02-01 18:23:26 +00:00
Holly Jiuyu Sun
2638587995 Merge "Handle permission check for multi-active SIMs devices." 2019-02-01 04:16:50 +00:00
Pengquan Meng
45fcd30fb0 Add signal strength converter
This add a converter for SignalStrength response and indication.

Bug: 123532650
Test: build & current test
Change-Id: Id4cf874f6cc1798c732d6afb4a22f4d6bc4047fd
2019-01-31 17:32:32 -08:00
Jordan Liu
ed3af9f960 Merge "Fix read/write parcel of CallAttributes" 2019-02-01 01:20:53 +00:00
Brad Ebinger
3811aba3a4 Merge "Add new ImsException to better handle ImsService errors" 2019-01-31 23:26:57 +00:00
Holly Jiuyu Sun
d0b187b204 Refresh cardId before using it.
Bug: 122978614
Bug: 111614811
Test: on phone
Change-Id: I30d70b839f05183ad201a114ea12c79c730f4206
Merged-In: I30d70b839f05183ad201a114ea12c79c730f4206
2019-01-31 14:46:33 -08:00
Jordan Liu
6192edb752 Fix read/write parcel of CallAttributes
Fixes: 123363462
Test: manual
Change-Id: I947005d43930ad136e5d6933c950d0f27f8fbadd
2019-01-31 20:03:30 +00:00
Hall Liu
5a0f2501c5 Unhide isRttSupported in TelephonyManager
Was hidden due to development process and never unhidden.

Change-Id: I1ef35e9988ad45491b2098628024f8d96b11ae3b
Fixes: 119620879
Test: compiles
2019-01-31 11:44:36 -08:00
chen xu
a143659d29 Add NR to preferred network type combination
This add NR 5G to preferred network type and move preferredNetworkMode
from SystemApi to hidden api as we are not going to support
preferredNetworMode enum in the future.

Bug: 111453000
Test: build
Change-Id: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d
(cherry picked from commit 8bcdc4cf66)
Merged-in: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d
2019-01-31 00:44:52 -08:00
Holly Jiuyu Sun
a2c1da0847 Handle permission check for multi-active SIMs devices.
For download and switch, if the caller can manage (has carrier privilege)
on any active sub on any other slots && the caller can manage the active
sub on the target slot or there is no active sub on the target slot, we
allow the caller to continue download. Otherwise, we require user consent.
For getting EID, we now check whether the caller has privilege on the
target card with the given cardId.
Other logic including the logic for single-active slot still keep the
same.
Also, open disable sub (switch to empty sub) to privileged carrier apps
instead of just system.

Bug: 36260308
Bug: 120621262
Test: unit test, test on phone
Change-Id: Icfc0c9e9f4303876bceb1adbe217b39b538b347e
Merged-In: Icfc0c9e9f4303876bceb1adbe217b39b538b347e
2019-01-30 20:33:31 -08:00
Nazanin Bakhshi
87da0245c0 Add a method to determine if a reboot is required to alter the modem config
Bug: 123101701
Test: sanity
Change-Id: I841b947efda0016c003f54ecf7853624582abab9
Merged-In: I841b947efda0016c003f54ecf7853624582abab9
(cherry picked from commit 7eca4afab4)
2019-01-31 04:17:18 +00:00
Nazanin Bakhshi
602df1aa8c Merge "Add telephony API to switch multi sim config" 2019-01-31 03:44:15 +00:00
Jack Yu
7fab753180 Merge "Fixed crash in data service" 2019-01-31 00:46:04 +00:00
Jack Yu
0b8a0fa93a Fixed crash in data service
Test: telephony sanity tests
Bug: 123598340
Change-Id: Ie15f8869849a2aed4a32f4f6731abd5ba1eb05cd
2019-01-30 16:04:31 -08:00
Hall Liu
d6158fd8fb Use default methods for MBMS group call callbacks
Use default methods so that they get picked up by CTS coverage
Also this lets clients ignore certain methods easier.

Bug: 122619617
Test: CTS
Change-Id: I1f5fcdbce9548d3b4e59af7e648f29959a22774e
2019-01-30 15:46:20 -08:00
Nazanin Bakhshi
458a474998 Add telephony API to switch multi sim config
Bug: 122115649
Test: sanity
Change-Id: Idace8ed7f3fe78a6ce831225bda499a58a34c80f
Merged-In: Idace8ed7f3fe78a6ce831225bda499a58a34c80f
(cherry picked from commit 1e031bde1a)
2019-01-30 23:19:14 +00:00
Jack Yu
8c7b2b45c0 Added a broadcast intent for clients to listen for country changes
Added a broadcast intent ACTION_NETWORK_COUNTRY_CHANGED for clients
to listen for network country code changes. The same value can be
retrieved from TelephonyManager.getNetworkCountryIso().

Test: Manual + unit tests
Bug: 122900588
Merged-In: Ifec87dda7bae386118b7bc7523844342bd16c3ea
Change-Id: Ifec87dda7bae386118b7bc7523844342bd16c3ea
(cherry picked from commit 3d33698bf5)
2019-01-30 11:52:21 -08:00
Chen Xu
ebad5a64d0 Merge "new API for IMS call fail cause" 2019-01-30 18:01:56 +00:00
Chen Xu
607e797932 Merge "move ServiceState.getDataRegState to greylist" 2019-01-30 06:20:01 +00:00
Michele
233d6b292f Add APIs to get/set if usage of multiple SIMs is restricted.
Add API that indicates if the usage of multiple SIMs at the same time is
allowed or restricted in order to support requirements from carriers for
dual SIM devices

Bug: 123537730
Test: Verified with test application.
Change-Id: I5e3e5ff41927e43ead4a30988630cf9125d5a048
Merged-In: I5e3e5ff41927e43ead4a30988630cf9125d5a048
(cherry picked from commit 398d5d9113)
2019-01-29 17:38:23 -08:00
chen xu
75355b3639 move ServiceState.getDataRegState to greylist
given we don't have a public alternatives for dataregstate for Q,
thus we shouldn't move this API to app-compat dark list.

Bug: 123099466
Test: Build
Change-Id: I67531ce536e004e1bc0f764824a261fb51cd27fa
2019-01-29 16:04:19 -08:00
Youming Ye
57dde9657f Add IntDef for SIP response code.
Add IntDef for ImsReasonInfo codes and fix typo based on API review
result.

Bug: 123223018
Test: Compilation
Change-Id: I97b56805d14ec27a45de4b7dbd9a29e612020a76
2019-01-29 14:48:28 -08:00
Jordan Liu
bd4a4dc889 Merge "Card ID APIs are public" 2019-01-29 22:43:47 +00:00
Sooraj Sasindran
cf2e069962 Merge "Define more thresholds for opportunistic data" 2019-01-29 19:43:26 +00:00
Jordan Liu
d6c684fff4 Card ID APIs are public
These were system API but we should expose them for apps with carrier
privileges.

Test: manual
Bug: 122974656
Change-Id: Ie60e4c580dfa9dd0d7d6fb6b94226661d0620dad
2019-01-29 10:55:35 -08:00
Michele Berionne
d8148b6c8c Merge "Add check for slot index value" 2019-01-29 17:25:17 +00:00
chen xu
0f49468184 new API for IMS call fail cause
Bug: 119890559
Test: atest CtsTelephonyTestCases:PhoneStateListenerTest
Change-Id: Ia047b7ba2345ad0c8d998506026defc02eb80dc9
(cherry picked from commit 6ac5fc19e6)
Merged-in: Ia047b7ba2345ad0c8d998506026defc02eb80dc9
2019-01-28 23:07:37 -08:00
Sooraj Sasindran
428871cb04 Define more thresholds for opportunistic data
Define entry bandwidth threshold for opportunistic data
Define entry and hysteresis time for opportunistic data

Bug: 120847469
Test: make
Change-Id: Ie7c35e10aeaf791dba49d9f5e881d292068f81f3
Merged-In: Ie7c35e10aeaf791dba49d9f5e881d292068f81f3
2019-01-29 00:49:39 +00:00
Pengquan Meng
5cf41e47fe Merge "new SystemAPI to getSimLocale" 2019-01-29 00:21:49 +00:00
Jack Yu
b551d0d6d3 Merge "Data profile refactoring" 2019-01-28 21:29:27 +00:00
Michele
3590fa4d72 Add check for slot index value
Verify that slot index passed in setAllowedCarrier() and in
getAllowedCarrier() has a valid value or return error code.

Bug: 123097251
Test: compilation
Change-Id: I322ecd11c49301a7d5bf5edb75d32a72a9f813c3
2019-01-28 13:07:30 -08:00
Amit Mahajan
783400c390 Merge "Add Emergency Number Test Mode" 2019-01-28 20:51:25 +00:00
Jordan Liu
b3f282daa1 Merge "CallQuality is set to empty instead of null" 2019-01-28 19:16:06 +00:00
sqian
4fd607e32e 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
Merged-in: I4ea3539e3b814b71e03e956d4a857ec20141fa8c
Change-Id: I4ea3539e3b814b71e03e956d4a857ec20141fa8c
(cherry picked from commit cb4bd3a30f)
2019-01-28 10:58:45 -08:00
sqian
86e2209260 Add Emergency Uniform Resource Number (URN)
Test: Treehugger
Bug: 112657134
Change-Id: I87537f7123910e9843207428eb3167a90a15b6df
Merged-In: I87537f7123910e9843207428eb3167a90a15b6df
(cherry picked from commit 03bde886e5)
2019-01-28 18:37:47 +00:00
Jack Yu
7d675e5a44 Data profile refactoring
Data profile should use the public defined types
instead of the internal defined data types.

1. Using integer instead of string for protocol type.
2. Using TelephonyManager.NetworkTypeBitMask instead of
   the internal ServiceState.RIL_RADIO_TECHNOLOGY_XXX
   in data profile.

Test: Telephony sanity tests
Bug: 73659459
Merged-In: I04b910f8e349e8b7819ff058bf37ad06c3fd9adc
Change-Id: I04b910f8e349e8b7819ff058bf37ad06c3fd9adc
(cherry picked from commit af6b47af54)
2019-01-28 10:32:23 -08:00
Jordan Liu
eae57b26e6 CallQuality is set to empty instead of null
Bug: 110107501
Test: manual
Change-Id: Ifb289c1c61d7cf16a7c6b60b181b94cf759f75d8
2019-01-25 16:10:55 -08:00
Brad Ebinger
5a8bb0a7f2 Add new ImsException to better handle ImsService errors
The ImsService can crash unexpectantly or not be available
for certain device configurations. Define a checked exception
ImsException to handle these cases instead of using
RuntimeExceptions.

Bug: 122480210
Test: atest FrameworksTelephonyTests
Merged-In: Ie3221d56a235c0e037d71e197f4972df31faa09b
Change-Id: Ie3221d56a235c0e037d71e197f4972df31faa09b
2019-01-26 00:02:42 +00:00
Pengquan Meng
c09b41cada Merge "A get method for NR status in ServiceState" 2019-01-25 00:40:48 +00:00
Jordan Liu
23a6598fe4 Merge "Fix NPE in parcel constructor" 2019-01-24 22:50:43 +00:00
Pengquan Meng
123cd32a6f A get method for NR status in ServiceState
Bug: 111453000
Bug: 123099654
Test: build
Merged-In: I07749ff00fc9d53796208ca78721b498ed4c16fd
Change-Id: I07749ff00fc9d53796208ca78721b498ed4c16fd
2019-01-24 13:45:54 -08:00