Commit Graph

9755 Commits

Author SHA1 Message Date
Sarah Chin
5b2f94a0aa Merge "Update Bands API" into rvc-dev 2020-03-27 00:33:05 +00:00
Nathan Harold
f85a2e9220 Check HIDL Discriminator for CSG Info
ART throws an exception if an unpopulated safe union element
is accessed at runtime, so instead we have to check the
hidl_discriminator to see whether the element is populated
before trying to access it (and thus we skip the null check).

Bug: 152486447
Test: atest testCellIdentityLte_1_5_CsgInfo \
        testCellIdentityWcdma_1_5_CsgInfo \
        testCellIdentityTdscdma_1_5_CsgInfo
Change-Id: I08dc0d2050a9f4d4b574178e1c68a23d015768e4
2020-03-26 16:53:42 -07:00
Sarah Chin
0c93d99998 Merge "Un-deprecate SmsManager APIs" into rvc-dev am: 85e3140365
Change-Id: I8eab09ba005e338a285f1a9cd9cb6643368272a8
2020-03-26 22:05:16 +00:00
Sarah Chin
854fc2ca64 Update Bands API
Test: build
Bug: 151842542
Change-Id: Ib033758d469b9b485eb7cce6c026b5a649e6a6fa
2020-03-26 15:02:29 -07:00
Sarah Chin
85e3140365 Merge "Un-deprecate SmsManager APIs" into rvc-dev 2020-03-26 21:53:51 +00:00
Rambo Wang
8e56e11eab NR is lower priority than all other signal strengths
aosp/891956 introduced signal strengths support for NR. In the
method SignalStrength.getPrimary, NR is the lowest priority.
This is against the policy which is in the comment, saying
"prioritizing newer faster RATs".

Bug: 148634820
Test: atest com.android.internal.telephony.SignalStrengthTest
Change-Id: Ia9055c9e8cd8d09cdd3f101750c9f9cea983a9f8
2020-03-26 12:35:38 -07:00
Mingming Cai
c78abaad35 Add global cell ID to all technologies
Add global cell ID to CellIdentity and all technologies,
including GSM, CDMA, WCDMA, TDSCDMA, LTE, and NR.

Bug: 80159277
Test: CellIdentityTest, CellIdentityGsmTest, CellIdentityCDMATest,
CellIdentityWcdmaTest, CellIdentityTdscdmaTest, CellIdentityLteTest,
CellIdentityNrTest, CellIdentityNrTes, ServiceStateTrackerTest

Change-Id: I2174e8d8c286da200562ef77cff78c3fca26cee2
2020-03-26 18:30:26 +00:00
Tyler Gunn
8f8713148f Merge "Fix potential issue where sub info change listener is not registered." into rvc-dev am: f0d5687181
Change-Id: Ib032072dcfd2d3d5e700e380af08b7b3142ebb8e
2020-03-26 15:29:13 +00:00
Tyler Gunn
f0d5687181 Merge "Fix potential issue where sub info change listener is not registered." into rvc-dev 2020-03-26 15:02:15 +00:00
Sarah Chin
ac3eb46325 Un-deprecate SmsManager APIs
MmsManager methods were removed for mainline, so unexposing these

Test: build
Bug: 144004293
Change-Id: I9714719f2d922cb027fa42a1aa535006dce7342c
2020-03-25 23:33:15 -07:00
Sarah Chin
631f893c05 Merge "API review: setNetworkSelectionModeManual" am: a0e42af02c
Change-Id: I4c43b2d64b77ee7872892a81718edcf8625d0572
2020-03-26 02:46:09 +00:00
Sarah Chin
9c1ab533e9 Merge "Unexpose unnecessary SysUI APIs" am: 8c346470bd
Change-Id: I73f390215f7ee33f42505c0675b1391d86d66770
2020-03-26 02:45:09 +00:00
Sarah Chin
a0e42af02c Merge "API review: setNetworkSelectionModeManual" 2020-03-26 02:19:57 +00:00
Sarah Chin
8c346470bd Merge "Unexpose unnecessary SysUI APIs" 2020-03-26 02:18:59 +00:00
Nathan Harold
d401c8c1ca Merge "Convert getBands() to int[] from List<Integer>" am: 388069c6c0
Change-Id: Ie48355776bdbe5202818961cd91729e6d7b3e7cb
2020-03-26 01:37:23 +00:00
Nathan Harold
63d4932804 Add Network Preference Bitmaps
To support conversion of the preferred network types
back to the network "class" types (really the RANs),
this change adds bitmaps for 2G, 3G, and 4G bitmaps
as well as for differentiating between 3gpp and 3gpp2
RATs.

Bug: 128572818
Test: manual
Merged-In: I25f41ad48eb4dc74c2cace80ccec4e1e954443f9
Change-Id: I25f41ad48eb4dc74c2cace80ccec4e1e954443f9
(cherry picked from commit febfb82bc8)
2020-03-25 18:34:06 -07:00
Nathan Harold
0f0432c1f6 Remove NetworkClass from TelephonyManager
NetworkClass isn't especially useful because the APIs for
getting and setting preferred networks have been converted
to bitmasks of individual RATs.

Removing this because it's causing confusion about the proper
structure of the API surface. There are < 100k total usages with
the vast majority (60% or more) coming from two apps.

Because NetworkClass is used in RadioAccessFamily for a sort of
comparison function, rewrite that function, porting and updating
logic from TelephonyConnectionService to that compare() method.

Bug: 128572818
Test: atest RadioAccessFamilyTest
Merged-In: I1f279fadd8c543b845fce0f13dc62c1480757692
Change-Id: I1f279fadd8c543b845fce0f13dc62c1480757692
(cherry picked from commit d44b4efa33)
2020-03-25 18:34:06 -07:00
Nathan Harold
388069c6c0 Merge "Convert getBands() to int[] from List<Integer>" 2020-03-26 01:32:54 +00:00
Tyler Gunn
cf2cd8dcd8 Fix potential issue where sub info change listener is not registered.
SubscriptionManager#addOnSubscriptionsChangedListener can fail to
register a listener if the TELEPHONY_REGISTRY system service is not up.
Currently this is just silently ignored.

Adding a callback method on the listener to notify the registrant that the
listener failed to be registered, and adding exponential backoff code in
TelecomAccountRegistry to retry registration.

Test: Manual; edited code in Subscriptionmanager to fail the first attempts
to add a listener for TelecomAccountRegistry.  Verified the backoff took
place and registration still occurred for the listener.
Test: Tried to write a mockito test but gave up because this code has
far too many intertwined dependencies and is not inherently testable
Fixes: 152217039

Change-Id: Icf3133cdeca526979cb621f29659b880127b680a
2020-03-25 18:11:56 -07:00
Mingming Cai
fa9bd571b9 Merge "Add comments to GSM and CDMA getDbm()" into rvc-dev 2020-03-26 01:05:36 +00:00
Brad Ebinger
d829dc0b1f Merge "Add new capability polling opt-in intent" am: e5c083c3ec
Change-Id: If96526ee93ba6b230d371a03a047b1a3d8a5112c
2020-03-25 23:18:09 +00:00
Shuo Qian
5fb0be0ac3 Merge "Hide several System APIs" am: 0d8a3bb0f6
Change-Id: Ibcae02d3d37832fb204aa5a4c372c89cf50c1409
2020-03-25 23:16:38 +00:00
Cody Kesting
a010445028 Make UiccAccessRule certificate utils accessible.
UiccAccessRule includes functionality for getting Signatures from a
PackageInfo and hashing a cert. Instead of duplicating this code in
CarrierPrivilegesTracker, make it visible with @hide.

Bug: 147391402
Test: atest FrameworksTelephonyTests
Change-Id: I4f95ab512e94cd851a6928d8eb7918d5a04bfa60
2020-03-25 16:13:40 -07:00
Brad Ebinger
e5c083c3ec Merge "Add new capability polling opt-in intent" 2020-03-25 23:13:03 +00:00
Shuo Qian
0d8a3bb0f6 Merge "Hide several System APIs" 2020-03-25 23:11:27 +00:00
Mingming Cai
e5befcbd28 Add comments to GSM and CDMA getDbm()
Bug: 148912739
Test: make
Change-Id: I9be4caeda8f50645bc742e95bfd7ba067a02883f
Merged-In: I9be4caeda8f50645bc742e95bfd7ba067a02883f
(cherry picked from commit b78e84c522)
2020-03-25 16:08:18 -07:00
Hall Liu
d6f661fc46 Merge "Change default value of ignore RTT setting config" am: 8c86962f05
Change-Id: Ib3d1c2956a051bcf4a7d48191add0792522647b7
2020-03-25 21:03:04 +00:00
Hall Liu
8c86962f05 Merge "Change default value of ignore RTT setting config" 2020-03-25 20:50:31 +00:00
Mingming Cai
3dccb439ff Merge "Add comments to GSM and CDMA getDbm()" am: a2bf158e3c am: 0a313ecc60
Change-Id: I6bb5e24020e74d6fe4f041d8373c085f2ec1b44a
2020-03-25 20:08:42 +00:00
Mingming Cai
0a313ecc60 Merge "Add comments to GSM and CDMA getDbm()" am: a2bf158e3c
Change-Id: Ia0d55df09d42cc6f1dee192e921bd0fb9e1cc2d5
2020-03-25 19:52:39 +00:00
sqian
bc1f641138 Hide several System APIs
Test: Treehugger
Bug: 151241308
Change-Id: Ie611320f4651b83e0ced6f5c8fede34a8a0a41c1
Merged-In: Ie611320f4651b83e0ced6f5c8fede34a8a0a41c1
(cherry picked from commit 1e154a345c)
2020-03-24 18:40:23 -07:00
Hall Liu
2c20048614 Change default value of ignore RTT setting config
Change the default value of KEY_IGNORE_RTT_MODE_SETTING to true.

Bug: 146085721
Test: manual
Change-Id: I8c5c3e40a6500c140eb8ad1f180ad7d3c9afd4bc
Merged-In: I8c5c3e40a6500c140eb8ad1f180ad7d3c9afd4bc
2020-03-25 01:19:27 +00:00
Mingming Cai
b78e84c522 Add comments to GSM and CDMA getDbm()
Bug: 148912739
Test: make
Change-Id: I9be4caeda8f50645bc742e95bfd7ba067a02883f
2020-03-24 15:16:22 -07:00
Brad Ebinger
beb6c846ec Add new capability polling opt-in intent
Adds a new capability discovery opt-in intent,
which an application can use to prompt the user
to enable contact discovery.

Bug: 111305845
Test: atest CtsTelephonyTestCases; telecom test app
Merged-In: I42b9d7226a1296bc7e4e86a5ff6448bc8f23d3c0
Change-Id: I42b9d7226a1296bc7e4e86a5ff6448bc8f23d3c0
2020-03-24 15:10:34 -07:00
Michael Groover
8750e08f48 Merge "Update SubInfo#getNumber docs to reflect permission requirement" into rvc-dev am: c55df5a4df
Change-Id: Ie759288ec8ae6975d10ad8ea0af344cf475ddb30
2020-03-24 16:32:18 +00:00
Michael Groover
c55df5a4df Merge "Update SubInfo#getNumber docs to reflect permission requirement" into rvc-dev 2020-03-24 16:26:34 +00:00
Sarah Chin
a71b527a82 Merge "Fix NPE in updateNrState" am: 3782fad894
Change-Id: If468d3f519cd65ae5fad9af99be730a1106027b8
2020-03-23 22:36:27 +00:00
Sarah Chin
3782fad894 Merge "Fix NPE in updateNrState" 2020-03-23 22:14:12 +00:00
TreeHugger Robot
f8d6165956 Merge "Add unit test for ClosedSubscriberGroupInfo" into rvc-dev am: 4f53d72e52
Change-Id: I684d2a8078eb7467003998a663a6f497e4b1b8bf
2020-03-23 22:03:30 +00:00
TreeHugger Robot
4f53d72e52 Merge "Add unit test for ClosedSubscriberGroupInfo" into rvc-dev 2020-03-23 21:50:07 +00:00
Xiangyu/Malcolm Chen
a7a00e9398 Merge "Fix bug that getBaseBandVersion() may write the value incorrectly." am: 074af36692
Change-Id: I56481e25cf459394be9683031e9066beda571a49
2020-03-23 21:49:54 +00:00
Michael Groover
52625d0adc Merge "Add method to clear out SubscriptionInfo#getCardString" into rvc-dev am: 6d4c98513b
Change-Id: Ifc9b808cbc57ac1c1ac7dbf93d748747abd0b9ed
2020-03-23 21:41:24 +00:00
Michael Groover
6d4c98513b Merge "Add method to clear out SubscriptionInfo#getCardString" into rvc-dev 2020-03-23 21:31:42 +00:00
Xiangyu/Malcolm Chen
074af36692 Merge "Fix bug that getBaseBandVersion() may write the value incorrectly." 2020-03-23 21:31:35 +00:00
Hunter Knepshield
f8e72f4605 Merge "Forward IBinder#dump to CarrierService#dump" am: b2a7f082e4
Change-Id: I47d4d2ac7608eb88685ea2b7f8135bbb919d6490
2020-03-23 20:43:49 +00:00
Brad Ebinger
1e87aa36d8 Merge "API Review: Clarify deprecated docs and rethrow from system server" am: 0fd00037ea
Change-Id: I582bad8060a9c6b7e7c236ae289d3da40b3e390f
2020-03-23 20:41:04 +00:00
Hunter Knepshield
b2a7f082e4 Merge "Forward IBinder#dump to CarrierService#dump" 2020-03-23 20:21:13 +00:00
Brad Ebinger
0fd00037ea Merge "API Review: Clarify deprecated docs and rethrow from system server" 2020-03-23 20:17:41 +00:00
Hunter Knepshield
dcd87bf35c Forward IBinder#dump to CarrierService#dump
This will allow CarrierConfigLoader to dump packages' bound carrier
services as part of bug reports when appropriate.

Bug: 146521742
Test: manual with modified CarrierConfigLoader + dumpsys carrier_config
Change-Id: Ie3aef4216e7a42e5e4cc5ba4a3978b9c4dda50dd
Merged-In: Ie3aef4216e7a42e5e4cc5ba4a3978b9c4dda50dd
(cherry picked from commit 05a57b6f5e)
2020-03-23 11:01:35 -07:00
Brad Ebinger
3ca91ce522 Merge "API Review: Make ImsReasonInfo in ImsMmTelManager @NonNull" am: 06d11782d7
Change-Id: Ib95726cecfe28621d6655f29bc1dd4b18cb2fd89
2020-03-23 17:28:24 +00:00