Commit Graph

4052 Commits

Author SHA1 Message Date
Pengquan Meng
3539c290db Move configs to CarrierConfig for MobileNetworkSettings
Move some configs of MobileNetworkSettings to the carrier config so that
the settings app can access them.

Bug: 115429501
Test: build
Merged-In: I9371bf179895eadeaa189faee2c2afc2a7e0cb8f
Change-Id: I9371bf179895eadeaa189faee2c2afc2a7e0cb8f
2018-11-06 18:28:38 -08:00
Tyler Gunn
009b2dd158 Merge "Add disconnect cause when outgoing call fails due to ongoing OTASP prov." 2018-11-06 23:32:05 +00:00
Brad Ebinger
37d8de2b2a Merge "Expose mRestrictCause as a @SystemApi" 2018-11-06 22:54:10 +00:00
Jack Yu
3bedd0a674 Merge "Added APN to string method" 2018-11-06 18:19:31 +00:00
Shuo Qian
1a517ba852 Merge "Revert "Make getRssi() API for LTE Received Signal Strength Indication (RSSI)"" 2018-11-06 03:06:20 +00:00
Shuo Qian
5e80484991 Revert "Make getRssi() API for LTE Received Signal Strength Indication (RSSI)"
This reverts commit c3380f767a.

Reason for revert: b/119055885

Change-Id: I47e6dd038d97a9d5a48d36b53f9e75e356a1e409
2018-11-06 00:18:16 +00:00
Jack Yu
24d9490c48 Added APN to string method
There were some limitation of the existing method
ApnSetting.getApnTypesBitmaskFromString, which prints
hipri+default when input is default APN type.

Also added access network type and transport type to string
method.

Test: Telephony sanity tests
Bug: 73659459
Change-Id: I5a24ac4b284c9237f84c8b1a6961569c4f0a747a
2018-11-05 14:37:23 -08:00
Brad Ebinger
f5544c3e92 Expose mRestrictCause as a @SystemApi
Bug: 117555643
Test: Telephony unit tests
Change-Id: I60a7028d79f7e5fa676cc12a427c6d2a8cd3961e
2018-11-05 10:33:00 -08:00
Jack Yu
aa08473294 Merge "Changed the onQualifiedNetworkTypesChanged API" 2018-11-03 15:32:55 +00:00
Jack Yu
390edbd3d2 Changed the onQualifiedNetworkTypesChanged API
Changed the first parameter from apnType to apnTypes so the
caller can update multiple APN types in one single call. This is
useful because in some cases one single APN setting can serve
multiple APN types.

Test: Manual
Bug: 73659459
Change-Id: Ie3274c76b42a67d2f41b41195a240052c2096f9f
2018-11-02 11:34:55 -07:00
Shuo Qian
f4a1945d87 Merge "Make getRssi() API for LTE Received Signal Strength Indication (RSSI)" 2018-11-02 17:46:43 +00:00
Chen Xu
b23fc3c2cd Merge "hidden API getCertsFromCarrierPrivilegeAccessRules" 2018-11-02 17:29:30 +00:00
Jack Yu
346bae7c76 Merge "Deprecated the resource config_tether_apndata" 2018-11-02 06:54:03 +00:00
chen xu
7a545324ff hidden API getCertsFromCarrierPrivilegeAccessRules
Bug: 110559381
Test: unit test & manual test
Change-Id: I7b2c946f1f4db08e1c071fe6eb9f3771a592fd47
Merged-in: I7b2c946f1f4db08e1c071fe6eb9f3771a592fd47
2018-11-02 03:35:14 +00:00
Hall Liu
f583bb525a Merge "Add TestApi to get RTT support status" 2018-11-02 00:43:27 +00:00
Chen Xu
e459133141 Merge "refactor resetNv API to resetRadioConfig and rebootRadio" 2018-11-01 21:29:39 +00:00
Jack Yu
080f131a69 Deprecated the resource config_tether_apndata
The resource has been migrated into the database so we can remove
this resource now.

Test: Telephony sanity tests
Bug: 113942223
Merged-In: I1b65a8bee81f1d190c587cf65cb55da64a184284
Change-Id: I1b65a8bee81f1d190c587cf65cb55da64a184284
(cherry picked from commit 25b7a917f8)
2018-11-01 14:08:05 -07:00
Hall Liu
3e478bf55e Merge "Change default of hide LTE+ config to true" 2018-11-01 20:10:59 +00:00
Chen Xu
8c64274ee6 Merge "Revert "Need to check empty not null for String"" 2018-11-01 20:00:36 +00:00
Shuo Qian
f5852d1500 Merge "Make SignalStrength#INVALID public" 2018-11-01 18:06:25 +00:00
Chen Xu
f5d8e6c793 Revert "Need to check empty not null for String"
This reverts commit 77680bd4db.

Reason for revert: this change caused no wcdma signal bar because "" is a valid default value from carrier config

Bug: 118800169
Change-Id: I0285827c84edda88f7f0d287d254ba89c9931382
2018-11-01 16:41:16 +00:00
chen xu
dbff1bd8e4 refactor resetNv API to resetRadioConfig and rebootRadio
Bug: 116476729
Test: telephony unit test and Manual test
Change-Id: I420da20f2290d1fc3962f7c14a9ca4999eafbde8
Merged-in: I420da20f2290d1fc3962f7c14a9ca4999eafbde8
2018-10-31 22:51:13 -07:00
Hall Liu
1ce5e6659e Change default of hide LTE+ config to true
Hide the LTE+ icon by default.

Change-Id: I9d9fbc283ac9d5b75df3818191253d84a5e6c36c
Fixes: 118775808
Test: manual
2018-10-31 18:17:38 -07:00
Hall Liu
a7d0230572 Add TestApi to get RTT support status
Add a TestApi for CTS to be able to tell whether a device supports RTT
on the current carrier.

Bug: 113069001
Test: manual
Change-Id: I135338b7b83f888d454d09dddd30c72197fe0533
2018-10-31 17:05:07 -07:00
Chuck Liao
c85fa5471d Merge "Add a new carrier config to support emergency dialer shortcut feature." 2018-10-31 23:58:21 +00:00
Chuck Liao
3bad37e0be Add a new carrier config to support emergency dialer shortcut feature.
Test: manual
Bug: 117865402
Change-Id: I5d008af8d4dc73adc76630d7b6f47724544f068c
2018-11-01 02:21:07 +08:00
Chen Xu
3ad3478213 Merge "new system API getRadioAccessFamily" 2018-10-31 17:12:23 +00:00
Youming Ye
e3a989f7d3 Merge "Add CarrierConfig to hide "Network default" option in Caller ID setting" 2018-10-31 00:44:04 +00:00
Tyler Gunn
9034478033 Add disconnect cause when outgoing call fails due to ongoing OTASP prov.
Adding a new disconnect cause shown to the user when they attempt to place
a call when OTASP provisioning is in process.

Test: Manual with test intent.
Test: Added unit test.
Bug: 70843686
Change-Id: I5cecb79948c9467b4d297ac3ea06df6cc7fd41bd
2018-10-30 14:21:25 -07:00
sqian
c3380f767a Make getRssi() API for LTE Received Signal Strength Indication (RSSI)
Bug: 113074174
Test: CTS, Treehugger

Change-Id: If12e8e88831ffcce36b04ffe0617b3283811e4a6
2018-10-30 10:56:18 -07:00
Treehugger Robot
40745e1def Merge "Define CellInfo.UNAVAILABLE for Unreported Fields" 2018-10-30 17:53:24 +00:00
chen xu
eb18644660 new system API getRadioAccessFamily
1. new API in telephonyManager to getRadioAccessFamily
2. define bitmask for radioAccessFamily based on NetworkType because
we don't want to expose two sets of definition RIL_RADIO and Network
type together in public API surface
3. convert definition to NetworkType

Bug: 118351153
Test: telehony unit test
Change-Id: I4a71c61929d9df8ec13c157e0452c6f30d8e4b9c
Merged-in: I4a71c61929d9df8ec13c157e0452c6f30d8e4b9c
2018-10-29 19:00:21 +00:00
Chen Xu
d4e2c6cd5a Merge "Revert "Revert "Telephony light grey list clean up for Q""" 2018-10-29 17:20:48 +00:00
Chen Xu
4c0b06d1d1 Revert "Revert "Telephony light grey list clean up for Q""
This reverts commit bab59cb9db.

Reason for revert: Put maxTargetSdk=P now will move APIs onto light greylist
because per-SDK versioned dark greylist is not yet supported by ART. We can
keep doing annotation work without breaking existing apps targeting on P.

Bug:117934933
Bug:112477300

Change-Id: I5e0e693dde49fac3044cd73fd6360c4485f312ec
Merged-in: I5e0e693dde49fac3044cd73fd6360c4485f312ec
2018-10-26 23:31:40 +00:00
Hall Liu
bd46b1c4a2 Merge "Move Binder.clearCallingIdentity" 2018-10-26 01:35:24 +00:00
Xiangyu/Malcolm Chen
923bbad67a Merge "Add @NonNull in SubMgr#getOpportunisticSubscriptions return value." 2018-10-26 01:30:21 +00:00
sqian
61524e1b61 Make SignalStrength#INVALID public
Bug: 113074174
Bug: 118460482
Test: Treehugger; compile
Change-Id: I088f2f46c0adfbedc0fd53838add57078d6aac56
2018-10-26 00:52:48 +00:00
Nathan Harold
a629ea3928 Define CellInfo.UNAVAILABLE for Unreported Fields
For all CellInfo classes, there is a common value for
fields that are unreported by the modem: Integer.MAX_VALUE.
To better document this value, this CL defines it as a
constant "UNAVAILABLE" to indicate that for whatever reason
the framework is not reporting this value to the caller.

Bug: 28171234
Test: make; make offline-sdk-docs
Change-Id: I0aa692e3f1b5478284d262ef97fd65b90bce8293
2018-10-25 23:00:11 +00:00
Pengquan Meng
cdb6c68ed1 Set default value to false for show4GForLte
Bug: 118375031
Test: build
Change-Id: I542bfcbf5e88748321f75bdf3bdd5faa214360ea
2018-10-24 15:43:50 -07:00
Youming Ye
568455ffe7 Add CarrierConfig to hide "Network default" option in Caller ID setting
Add a key to hide "Network default". When value is false,
"Network default" shouldn't be displayed for options in Caller ID
setting.

Test: manual - check options in Caller ID setting
Bug: 111809829
Change-Id: Ic9bab7e819bc5b0164508f9d2709a35950fdc797
2018-10-24 15:00:03 -07:00
Brad Ebinger
1e8249a1d6 Merge "Remove obsolete @VisibleForTesting Annotation" 2018-10-24 20:15:35 +00:00
Brad Ebinger
a1474266bf Merge "ImsSsData needs a public constructor for vendors to use" 2018-10-24 17:08:39 +00:00
Youming Ye
94fe6430ea Merge "Revert "Add CarrierConfig to hide "Network default" option in Caller ID setting"" 2018-10-24 16:26:21 +00:00
Tony Zhu
ee31b2214d Merge "[Call Screening]Support for carrier call screening app" 2018-10-24 15:51:48 +00:00
Hall Liu
a82f952fe7 Merge "Add test API to override carrier config" 2018-10-24 00:00:22 +00:00
Nathan Harold
ac87c0a884 Merge "Add getMobileNetworkOperator to CellIdentityTdscdma" 2018-10-23 23:34:26 +00:00
Brad Ebinger
8853179fa7 Remove obsolete @VisibleForTesting Annotation
Bug: 118296374
Test: atest FrameworksTelephonyTests
Change-Id: I5156db7d199f89307ca7c602bfc855dbc6ae236e
2018-10-23 15:46:59 -07:00
Nathan Harold
c65e610c06 Merge "Remove Hidden TimestampType From CellInfo" 2018-10-23 22:02:15 +00:00
Brad Ebinger
4123f9587d ImsSsData needs a public constructor for vendors to use
Expose Builder for IMS Supp Service APIs as well as clean
up some of the ambiguous int[] usage.

Bug: 117555643
Test: Manual
Change-Id: I5cad08e0a032f4e38a62ac033c01111319cf9fd5
2018-10-23 14:57:59 -07:00
Nathan Harold
f5cf9f24ed Merge "Move some members to the "Q blacklist"." 2018-10-23 21:53:51 +00:00