Commit Graph

9264 Commits

Author SHA1 Message Date
Sarah Chin
e3228ca3fd Changed regex matching for MCC and MNC
Bug: 137942727
Test: atest CellIdentityTest
Change-Id: Iaeb9ff9e2a5a82be66855378831cd52ee49e3c5c
(cherry picked from commit cb76b14fdf)
Merged-In: Iaeb9ff9e2a5a82be66855378831cd52ee49e3c5c
2019-08-21 18:37:51 +00:00
Jayachandran Chinnakkannu
d084c899d9 Merge "Fixed null callback issue" into qt-r1-dev
am: f3395734e8

Change-Id: I438b53eec3edf8de1f9046ea820f7fdfd17f4249
2019-08-20 10:51:22 -07:00
Nathan Harold
a9df8f6993 Merge "Add Debounce text to ACTION_NETWORK_COUNTRY_CHANGE" into qt-qpr1-dev 2019-08-19 23:58:38 +00:00
SongFerng Wang
052a08bcda Merge "Extends carrier config KEY_5G_ICON_CONFIGURATION_STRING to support more scenarios." into qt-qpr1-dev 2019-08-19 18:26:03 +00:00
Jack Yu
09ef1cb126 Fixed null callback issue
Fixed the vendor data/network service non-responsive
issue. The callback binder passed from frameworks
might be GC'd so that vendor data/network service skipped
calling the callback. This eventually caused data
connection state machine messed up.

Fixed by turning the weak refernce to the callback into
a strong reference. This ensure the binder alive when
vendor service needs to invoke the callback.

Test: Telephony sanity tests
Bug: 139076980
Change-Id: Ica0b7b810ffd5416ffd1b2b61f7ebc4af0dcb8ce
2019-08-19 10:02:11 -07:00
SongFerngWang
52dada71a7 Extends carrier config KEY_5G_ICON_CONFIGURATION_STRING to support more scenarios.
Add RRC state condition to support more scenarios.
Carrier config KEY_5G_ICON_CONFIGURATION_STRING change default value.

Bug: 138932186
Test: atest NetworkControllerDataTest.java#testNr5GIcon_NrNotRestrictedRrcCon_show5GIcon
atest NetworkControllerDataTest.java#testNr5GIcon_NrNotRestrictedRrcIdle_show5GIcon

Change-Id: Icb8af599f95a09c5e709f00d7710e018218a23cc
2019-08-16 16:31:16 +08:00
Jack Yu
f14bf1ee93 Merge "Added debug messages and watchdog" into qt-r1-dev
am: 24397e7a07

Change-Id: I22a4a8e6599e46a0c3aba931af82bf98d7f48ece
2019-08-14 20:34:47 -07:00
Jack Yu
24397e7a07 Merge "Added debug messages and watchdog" into qt-r1-dev 2019-08-15 03:15:12 +00:00
Jack Yu
36e2bfbaad Added debug messages and watchdog
Added debug messages and watchdog to catch
unresponsive data service issue.

Bug: 139076980
Test: Manual
Change-Id: I52dd126fddc1b1e8b18d5388a92aabaa3e2e48d5
2019-08-15 00:07:07 +00:00
Vagdevi Kondeti
0e3973b1b0 Merge "[AT&T] Add key to show 4g for 3g RAT." into qt-r1-dev
am: d7a23cc714

Change-Id: I6ac937185796a11cba2efe513877ed330915290a
2019-08-13 12:07:31 -07:00
Nathan Harold
3bdc7e4c62 Add Debounce text to ACTION_NETWORK_COUNTRY_CHANGE
Explain that once a country signal is lost, the broadcast
will be delayed for some time until we are confident that
we have lost visibility to any country (unless we detect
a new country).

Bug: 136036974
Test: make offline-sdk-docs (docstring-only change)
Change-Id: I29536ca2d60968405bb476a97dfbda69487c0013
2019-08-13 11:43:27 -07:00
Pengquan Meng
8a66dd0357 Merge "Add timeout for displaying 5G icon" into qt-qpr1-dev 2019-08-12 22:24:58 +00:00
Pengquan Meng
0ac07b2b41 Add timeout for displaying 5G icon
This change add an optional filed that allows carrier to change the
timeout.

System UI will show the 5G icon and start a timer with the timeout
from this config when the device connect to a 5G cell. System UI stop
displaying 5G icon when both the device disconnect from 5G cell and
the timer is expired.

Bug: 136107473
Test: build
Change-Id: I9720ec127865daa03fb2c23fbdd7d4ebf5e30e1b
2019-08-12 12:00:25 -07:00
vagdevi
3f2b9a5ac9 [AT&T] Add key to show 4g for 3g RAT.
This key is introduced for AT&T

This will also require a carrier-config side change
to set show_4g_for_3g_data_icon_bool to true.

This will replace H/H+ that is shown by AT&T today.

Bug: 138655095
Test: manually

Change-Id: I480e14be41f8edbe607472351efd39d6d91b81b0
2019-08-09 16:44:11 -07:00
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
Andrew Sapperstein
f9dc7e8535 Merge "Add a blacklist for preinstalled carrier apps." into qt-dev am: aa3689c4d9
am: 386126a450

Change-Id: I71c331bb025b0c0786d5bfb6f46e760ef3d8aa54
2019-08-08 14:40:05 -07:00
Andrew Sapperstein
386126a450 Merge "Add a blacklist for preinstalled carrier apps." into qt-dev
am: aa3689c4d9

Change-Id: I4a9898f5a205b7ff13ef8631870cbe3f8451923b
2019-08-08 14:30:33 -07:00
Andrew Sapperstein
e016781807 Add a blacklist for preinstalled carrier apps.
Allows an OEM to specify that a preinstalled carrier app, even if
TelephonyManager says it should have carrier privileges, does not
get granted the default permissions and does not get enabled when
a compatible SIM is inserted.

Bug: 138150105
Test: verified locally
Change-Id: I0afec28f1f18227947c1fe9e6bb5fd0dad3b5dac
Merged-In: I0afec28f1f18227947c1fe9e6bb5fd0dad3b5dac
2019-08-08 15:05:06 +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
Eugene Susla
cbdc139229 Merge "Fix sms app changed broadcast" into qt-dev
am: 0a98e4b693

Change-Id: Ic2ab525c22b17afc97b5220a8c5b4ddd18db225b
2019-07-03 16:32: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
Eugene Susla
0fa8049fe8 Fix sms app changed broadcast
Fixes: 136257475
Test: switch sms holder in settings, and ensure ceceived broadcasts for both
becoming and leaving the sms app status
Change-Id: I10dda3fd8ebd38ab12bdb8192ed4f3863f4238b8
2019-07-02 11:06:26 -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
Andy Chou
a96ab85260 Merge "Notify physical channel configuration with phoneId and subId" into qt-r1-dev 2019-06-26 01:24:46 +00:00
andychou
ce65922c73 Notify physical channel configuration with phoneId and subId
Physical channel configuration may be retrieved before SIM loaded. So
configuration will not be able to report via TelephonyRegistry.
Therefore, use phoneId to mapping record and notify

Bug: 123904518
Test: Manual test and make sure physical channel configuration is
displayed in RadioInfo

Change-Id: I11c89b9cf68c3f3d7523ad8dfc21520f44fa7ce3
2019-06-25 17:57:29 +00: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