Commit Graph

6355 Commits

Author SHA1 Message Date
Hall Liu
feadbafc03 Merge "Add carrier config for allowing merge of RTT calls" into qt-r1-dev
am: f84ff34a31

Change-Id: I14916ac03825bcfac65208aa2dfda26e7d7b8632
2019-08-08 17:13:34 -07:00
Hall Liu
f84ff34a31 Merge "Add carrier config for allowing merge of RTT calls" into qt-r1-dev 2019-08-08 23:47:58 +00:00
Hall Liu
ef80008000 Add carrier config for allowing merge of RTT calls
Add a carrier config key that specifies whether merging an RTT call is
allowed.

Bug: 136035168
Test: manual

Change-Id: I8cfdf68c69b50abed88d7c835db0480a53755f5a
2019-08-07 16:37:45 -07:00
sqian
66ef0077f2 Merge "Add a documentation in EmergencyNumber#getNumber" into qt-r1-dev
am: 46b82fd3ce

Change-Id: I09df0f18c165e2201732ccd126599b802c2fc508
2019-08-05 15:48:11 -07:00
TreeHugger Robot
46b82fd3ce Merge "Add a documentation in EmergencyNumber#getNumber" into qt-r1-dev 2019-08-05 22:23:20 +00:00
Sooraj Sasindran
3010c40175 Merge "Add carrier config for exit hysteresis time" into qt-qpr1-dev 2019-08-05 20:05:00 +00:00
sqian
8ab9550f86 Add documentation in TelephonyManager#getNetworkCountryIso
In multi-sim, returns a shared emergency network country iso
 from other subscription if the subscription used to create the
 TelephonyManager doesn't camp on a network due to some reason
 (e.g. pin/puk locked), or sim is absent in the corresponding slot.

Test: unit test
Bug: 137236159
Bug: 137235431
Change-Id: I311e690d1f79ebefbc068c486d9bed814c129aab
2019-08-01 23:07:40 +00:00
Sooraj Sasindran
9f80e4bd5a Add carrier config for exit hysteresis time
Add carrier config for exit hysteresis time which will
be used to decide hysteresis time while switching away from
opportunisitc network to a primary network

Bug: 135556490
Test: Make
Merged-In: Ic4916c11ae470f2440481670bc1e25f570e6ece4
Change-Id: Ic4916c11ae470f2440481670bc1e25f570e6ece4
2019-08-01 21:54:43 +00:00
Xiangyu/Malcolm Chen
1482be4c67 Merge "Add carrier config for data roaming notification" into qt-r1-dev 2019-08-01 18:30:41 +00:00
Tyler Gunn
1d0d34348c Merge changes from topic "remap-code" into qt-r1-dev
* changes:
  Add disconnect causes for WFC use cases.
  Add MEDIA_TIMEOUT error for RTCP timeout
2019-08-01 14:40:39 +00:00
Jordan Liu
b5fbb912bb Add carrier config for data roaming notification
This config, when enabled, shows the user a notification when the device
switches to data roaming and the user has data roaming on.

Bug: 133358875
Test: manual
Change-Id: Ia091575ff0fa7e02f0c6a98bae0e66ef73beff81
2019-07-31 15:57:59 -07:00
Tyler Gunn
edcf4aef38 Add disconnect causes for WFC use cases.
Add new disconnect cause used when an attempt is made to place an
emergency call over WFC but the service is unavailable.
Add new disconnect cause when WFC is not available in an area.

Bug: 128993720
Test: Unit tests added to confirm remapping.
Change-Id: I15dcff8fabc06b5d469d083b0970fe0e77e7d318
2019-07-31 09:58:51 -07:00
Youming Ye
46b32df18b Add MEDIA_TIMEOUT error for RTCP timeout
Bug: 130167535
Test: Build
Change-Id: I7498072a1c6a9ecf084308e91db07f3731969106
2019-07-30 10:38:49 -07:00
Hall Liu
3a23d7e63d Add carrier config for hiding TTY HCO and VCO
Add a carrier config option that will hide the HCO and VCO options for
TTY if RTT is available on the device.

Fixes: 137672992
Test: manual
Change-Id: I7a2ca247a3bf06e6a2b244656add78bb0449674b
2019-07-30 00:39:05 +00:00
Chen Xu
fed8ece4e1 Merge "support limited sim function notification under dsds" into qt-r1-dev 2019-07-29 18:22:56 +00:00
Jordan Liu
7dad5ea750 Merge "Use TM SubId in getDataState and getDataActivity" into qt-r1-dev 2019-07-12 18:29:05 +00:00
TreeHugger Robot
4c452a6534 Merge "Check Carrier Privilege on Hidden Subs" into qt-r1-dev 2019-07-12 18:00:48 +00:00
Xiangyu/Malcolm Chen
896cdfa547 Merge changes from topic "135105735" into qt-r1-dev
* changes:
  Use new API to get mergedSubscriberIds based on grouping.
  Provide @hide API to return merged IMSIs from grouping.
2019-07-12 17:19:48 +00:00
sqian
552a58ae51 Add a documentation in EmergencyNumber#getNumber
If the number starts with a carrier prefix, the
 carrier prefix is configured in
 {@link CarrierConfigManager#KEY_EMERGENCY_NUMBER_PREFIX_STRING_ARRAY}.

This is important because it provides a solid reference for Apps to
strip the prefix, which they may not prefer to display.

Bug: 137225076
Test: Treehugger
Change-Id: I1f6bd74f1d6eb86fe3326246e0ddb08b9cf7ac11
2019-07-12 03:45:37 +00:00
Malcolm Chen
ac56a4254e Provide @hide API to return merged IMSIs from grouping.
Bug: 135105735
Test: test app. Apply grouping and call the new API, to make sure
it returns correct values.

Change-Id: I99586976d3421d4b35be465201ee33cbb2dfd1d9
2019-07-11 13:19:36 -07:00
Nathan Harold
9d2660041a Use TM SubId in getDataState and getDataActivity
-Update getDataState() API to use the SubId specified
 by the TelephonyManager instance.

-Update the getDataActivity() API to use the SubId
 specified by the TelephonyManager instance.

(This CL is an un-revert of aosp/984377)

Bug: 135205433
Test: manual (automated test is infeasible)
Change-Id: I035f2c44a7955e88608b1c336acb72fb68c3e450
Merged-In: I035f2c44a7955e88608b1c336acb72fb68c3e450
2019-07-11 12:39:31 -07:00
Hunter Knepshield
b26cbbd53d Check Carrier Privilege on Hidden Subs
When calling CheckCarrierPrivilegeForAnySubId the
hidden subscriptions were not being taken into account
due to getAllActiveSubscriptionIds being a public method
that intentionally ignores hidden subscriptions.

NOTE: This is identical to ag/8193293, except that the
SubscriptionManager modifications don't make
getActiveSubscriptionIdList() static (it was causing test failures). A
further bug can be pursued to make everything static all at once.

Bug: 135684437
Test: manual
Change-Id: Iad6a3c2635e5eac2d33a16aa460b98394fd817f4
2019-07-10 13:14:44 -07:00
Sooraj Sasindran
318471896d Send error if ONS is not available
Send error for data switch api if ONS is not available

Bug: 136294842
Test: regression test
Change-Id: If844939c0936729e4487b6e4f75cd58d28195718
2019-07-09 17:43:01 -07:00
chen xu
0051106f6a support limited sim function notification under dsds
warn users that sim voice & data function might be limited
during DSDS due to sharing the same radio. this is controlled
by carrier config, carrier which provide emergency service can
choose to notify users that their service might be impacted
under certain dual sim scenarios.

Bug: 134790138
Test: Manual
Change-Id: I8ae33fc9d775b9654587f0e863a51115ca6065db
2019-07-02 16:39:21 -07:00
Jack Yu
ac9a731d27 Added disallowed APN types configuration support
The change added the configuration support for disallowed APN
types for WWAN or WLAN transport. This is to meet carrier policy
that certain traffic for APN types are not allowed on given
transport.

Bug: 135551751
Test: Manual + unit tests
Change-Id: I63c44d1e774b7491929406929e1a5a556db9515a
2019-06-28 17:53:44 -07:00
TreeHugger Robot
2f952a8462 Merge "Check for null executor" into qt-r1-dev 2019-06-25 01:23:24 +00:00
Jack Yu
51867b4380 Merge "Reverted to the old logic for APN selection" into qt-dev
am: 5d02fcb146

Change-Id: Iec56dfbbaeced79fb02973360ddf5df89b69609f
2019-06-24 16:18:48 -07:00
TreeHugger Robot
5d02fcb146 Merge "Reverted to the old logic for APN selection" into qt-dev 2019-06-24 22:34:53 +00:00
Sooraj Sasindran
4b2d134b8c Check for null executor
Check for null executor when invalid parameters are passed

Test: build
Bug: 135927110
Change-Id: I12014f4da00d3783506642162ad7668fc7c05d9d
2019-06-24 15:22:55 -07:00
Youming Ye
c6931e3fbb Merge "Add carrier config for conference participants data support" into qt-dev
am: 23b6339ebd

Change-Id: Id1e5fcf1fbdfe47c73a8e76949ce4d75f03f9ed7
2019-06-21 17:33:29 -07:00
Youming Ye
60b023bfd0 Add carrier config for conference participants data support
Bug: 132312382
Test: Manual
Change-Id: I88edd5a590f46b961c986ef0bf24585b3c2cf4a1
Merged-In: I88edd5a590f46b961c986ef0bf24585b3c2cf4a1
2019-06-21 22:30:08 +00:00
Jack Yu
ee029fcefa Reverted to the old logic for APN selection
Reverted to the old logic that we select APN based on
RAT, but adding a special handling for 2G cases. This can
deal with the case that some APN settings has EHRPD which
we incorrectly thought that APN setting can be used on CDMA
network.

Bug: 134086103
Test: Unit tests
Change-Id: I557f00d32f53498782394ea7824e316e263ca7e7
2019-06-21 13:54:37 -07:00
Hall Liu
054f7c02b8 Merge "Update documentation for TelephonyManager#getImei" into qt-dev
am: 6d574ed355

Change-Id: I864acd0cddb3c016b3c71ab43b0e7155bc5ab1b7
2019-06-19 19:42:16 -07:00
Hall Liu
6ee5ddcfbd Update documentation for TelephonyManager#getImei
Update the documentation for getImei to reflect that default SMS apps
are allowed to call this API.

Fixes: 135627578
Test: compiles
Change-Id: Ifef46c9cdb16e8485f3b5bf6d582aca320052b5c
2019-06-19 21:39:40 +00:00
Nazanin Bakhshi
408704dfea Merge "Store subscriber ID / IMSI into telephony database" into qt-dev 2019-06-19 18:09:33 +00:00
Malcolm Chen
bf231035c9 Merge "Mark two unfinished APIs as "DO NOT USE"." into qt-dev
am: a8a95549ff

Change-Id: Ieab28d08087e13bbfd406f25d0f5500f401dcbce
2019-06-18 20:28:48 -07:00
Malcolm Chen
bfa821b43a Mark two unfinished APIs as "DO NOT USE".
The two APIs at this point are not well defined and implemented due to
design changes after they were introduced. Marking them as DO NOT USE
until further re-define or clean up.

Test: build
Bug: 135222940
Change-Id: I3f06040fdda25c7aa27be45cd90177136f7e996f
2019-06-18 23:35:05 +00:00
Nazanin Bakhshi
a120f95d26 Store subscriber ID / IMSI into telephony database
Bug: 131916175
Test: manual
Change-Id: I64cd12a6737b7ef7fb31b851c1cbb5b7f46e6ca7
Merged-In: I64cd12a6737b7ef7fb31b851c1cbb5b7f46e6ca7
(cherry picked from commit 4e97d2c105)
2019-06-14 17:39:06 -07:00
Jack Yu
5e640ac80e Fixed incorrect merge service state
The existing logic for merging service state when device is on
IWLAN does not work properly on AP-assisted mode devices. Fixed
by copying the IWLAN preferred flag into IMS service state so
it can get the correct data RAT for AP-assisted mode devices.

Bug: 134706530
Test: WFC manual tests
Change-Id: Ic18934adb870a0114c913855cdb68e0ef33caa79
2019-06-13 08:53:35 -07:00
Xiangyu/Malcolm Chen
71c3b209ed Merge "Make sure on non-dds phone, try MMS data connection when PS is not attached." into qt-dev
am: 1f7ee0bc98

Change-Id: Ieb76ab05d801e02a644ac614ee78df94492ed0a3
2019-06-11 19:34:23 -07:00
Malcolm Chen
6499e6d95b Make sure on non-dds phone, try MMS data connection when PS is not
attached.

Before setting up data connection, we check if it's on non-dds and
voice is registered on non-LTE network, if true we'll setup the data
connection even if it's not attached.

Bug: 134086103
Test: manual
Change-Id: I43e150c1d0cc4065da07f4a5ec738b967e7a9a6d
2019-06-11 22:22:53 +00:00
Amit Mahajan
67f8039799 Merge "Avoid UnsupportedOperationException from getDefaultSmsSubscriptionId()" into qt-dev
am: be063ffb59

Change-Id: I221da0882cec481f4f0e892d8eb19c196889db1a
2019-06-07 15:35:47 -07:00
Amit Mahajan
be063ffb59 Merge "Avoid UnsupportedOperationException from getDefaultSmsSubscriptionId()" into qt-dev 2019-06-07 22:25:36 +00:00
TreeHugger Robot
070e64b1e5 Merge "Fixed tethering failed when device is on CBRS" into qt-r1-dev 2019-06-07 20:55:12 +00:00
Jack Yu
a952d2018b Fixed tethering failed when device is on CBRS
Fixed by using the correct sub id for CBRS subscription

Bug: 133852860
Test: Manual
Change-Id: If01e17becce9684556345eb76512f617b9a9278c
2019-06-07 11:07:43 -07:00
Amit Mahajan
900aad9924 Avoid UnsupportedOperationException from getDefaultSmsSubscriptionId()
This is basically reverting to earlier behavior.

Test: basic sanity
Bug: 134375393
Change-Id: I44dc66f9f3d5d4dfcab95220d7a6a6be0ed5a825
2019-06-07 10:40:09 -07:00
Nazanin Bakhshi
4e97d2c105 Store subscriber ID / IMSI into telephony database
Bug: 131916175
Test: manual
Change-Id: I64cd12a6737b7ef7fb31b851c1cbb5b7f46e6ca7
Merged-In: I64cd12a6737b7ef7fb31b851c1cbb5b7f46e6ca7
2019-06-05 15:20:31 -07:00
Xiangyu/Malcolm Chen
9ad9609f4c Merge "Triggering notifications when dual CDMA SIM combinations are detected" into qt-dev
am: b613fec2f8

Change-Id: I26ed9920543db1d26ca451d288533940f42f33a7
2019-06-05 11:21:22 -07:00
Xiangyu/Malcolm Chen
b613fec2f8 Merge "Triggering notifications when dual CDMA SIM combinations are detected" into qt-dev 2019-06-05 18:03:17 +00:00
Brad Ebinger
0954b1f704 Merge "Switch DDS during MSIM emergency call" into qt-dev
am: fcc6df7c6d

Change-Id: Ibad3c48368e759864b686affdfbe3d5aa2a4b738
2019-06-05 01:11:43 -07:00