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
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
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
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)
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)
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
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
Change the default value of KEY_IGNORE_RTT_MODE_SETTING to true.
Bug: 146085721
Test: manual
Change-Id: I8c5c3e40a6500c140eb8ad1f180ad7d3c9afd4bc
Merged-In: I8c5c3e40a6500c140eb8ad1f180ad7d3c9afd4bc
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
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)