Commit Graph

12722 Commits

Author SHA1 Message Date
Nathan Harold
a14d8b1eee Merge "Check HIDL Discriminator for CSG Info" into rvc-dev am: 4af4402121 am: 4ebfdc1b6d
Change-Id: I468676ab5cccfad1ce6a34f83ae5b6bd61e176d7
2020-04-03 19:42:07 +00:00
Nathan Harold
4af4402121 Merge "Check HIDL Discriminator for CSG Info" into rvc-dev 2020-04-03 18:56:45 +00:00
Sarah Chin
8b3aac3f45 Merge "Add rebroadcast extra to CARRIER_CONFIG_CHANGED" into rvc-dev am: d58849abe2 am: d3df408d98
Change-Id: Idc672cdafeb2a0bc20c45616fae428afbd2c11eb
2020-04-03 17:16:43 +00:00
Sarah Chin
d58849abe2 Merge "Add rebroadcast extra to CARRIER_CONFIG_CHANGED" into rvc-dev 2020-04-03 17:06:22 +00:00
Tyler Gunn
ffcfaa7476 Merge "Update EmergencyNumber API docs to indicate they can throw." into rvc-dev 2020-04-03 17:02:24 +00:00
Xiangyu/Malcolm Chen
8c3fee86ff Merge "multiSimAllowed should be consistent with max active modem property." into rvc-dev am: e025fcef40
Change-Id: I0a650dca2cc96298fd8e1135ea233ea56af3dc25
2020-04-03 00:50:04 +00:00
Xiangyu/Malcolm Chen
e025fcef40 Merge "multiSimAllowed should be consistent with max active modem property." into rvc-dev 2020-04-03 00:43:30 +00:00
Automerger Merge Worker
031f56f2bc Update EmergencyNumber API docs to indicate they can throw.
Adding @throws tags for EmergencyNumber APIs so that callers are aware
that they can throw.
Test: Build; docs only change.
Bug: 134100020
Fixes: 152231444

Merged-In: Ic6bcd32ab93a97a8d075e720acb5fc17612a3984
Change-Id: Ic6bcd32ab93a97a8d075e720acb5fc17612a3984
(cherry picked from commit 5fe27428f0)
2020-04-02 18:24:50 +00:00
Malcolm Chen
ba874c6827 multiSimAllowed should be consistent with max active modem property.
Bug: 153023231
Test: manual - using test app
Change-Id: I2d38dd9a0a860ee451fe51372a62c2910b88c88f
2020-04-02 10:54:50 -07:00
Sarah Chin
53ae60d0de Add rebroadcast extra to CARRIER_CONFIG_CHANGED
Test: manual verify broadcast sent with/without extra
Bug: 152149072
Change-Id: Ib5d9c6f645f1b9b8deb9f896ecd67c68cb29dc17
2020-04-01 16:38:13 -07:00
Daniel Bright
0b39e52119 Merge "SIM De-personalization" into rvc-dev am: 374189846f
Change-Id: I7d0251f0663e4416e2c6b9f13ee5195130e05f33
2020-04-01 20:20:36 +00:00
Nazish Tabassum
64056e1262 SIM De-personalization
Added constant support to framework for sim deperso

Test: make
Bug: 69389695
Change-Id: Ia7b9ca82570c1c9a9fed945d687e4bec4e87b3a1
2020-03-31 15:05:16 -07:00
Cody Kesting
c195cf4856 Merge "Make UiccAccessRule certificate utils accessible." into rvc-dev am: 64d3ed6006
Change-Id: I0f79e33e0cadb87f4f95b32efbd49ba3060e377b
2020-03-31 18:02:57 +00:00
Cody Kesting
64d3ed6006 Merge "Make UiccAccessRule certificate utils accessible." into rvc-dev 2020-03-31 17:59:09 +00:00
James Lin
d7873c3aea Merge "Fix Telephony crash in the method ImsCallProfile#toString" into rvc-dev am: f5e5a8791c
Change-Id: I5b81da9b84667d99d24625f582f1332678b41d75
2020-03-31 00:06:07 +00:00
James Lin
f5e5a8791c Merge "Fix Telephony crash in the method ImsCallProfile#toString" into rvc-dev 2020-03-30 23:51:21 +00:00
TreeHugger Robot
30438ad6c2 Merge "Remove replaced PreciseDataConnectionState methods from SDK." into rvc-dev am: da50240343
Change-Id: Icc26b7446d88911ba40e5b0a3d888370af7d1c8e
2020-03-30 22:45:36 +00:00
TreeHugger Robot
da50240343 Merge "Remove replaced PreciseDataConnectionState methods from SDK." into rvc-dev 2020-03-30 22:24:30 +00:00
Michael Wright
eec778ccdd Remove replaced PreciseDataConnectionState methods from SDK.
Prior to finalization, we need to remove all methods which were
replaced but kept around for short-term compatibility purposes.
PreciseDataConnectionState had a couple methods that fell into this
category that had yet to be removed.

Bug: 152787887
Test: builds
Change-Id: Ib175b2530791cec7e31684a1d3f318c95e27f707
2020-03-30 20:39:27 +00:00
Mingming Cai
9e5947d3c1 Merge "Add global cell ID to all technologies" into rvc-dev am: dc087115c8
Change-Id: Ib24ebe1857a70b8e622ea4731c218fa9b32a5960
2020-03-30 15:47:57 +00:00
Mingming Cai
dc087115c8 Merge "Add global cell ID to all technologies" into rvc-dev 2020-03-30 15:33:10 +00:00
James.cf Lin
8fb76731ee Fix Telephony crash in the method ImsCallProfile#toString
According to the crash stack, the Telephony crash in the method ImsCallProfile#toString. Add the null check before assessing the class instance.

Bug: 148746493
Test: manual
Change-Id: I156c8ac9f8cd05e678cc38397e84e10f14ce7403
2020-03-30 13:59:17 +08:00
Hall Liu
2d4f0566d3 Merge changes from topic "phonestatelistener-limit-rvc-dev" into rvc-dev am: 952697b886
Change-Id: I0f8dd0d1f7383e94b394cead42113c848b5b8ad4
2020-03-28 06:50:32 +00:00
Hall Liu
952697b886 Merge changes from topic "phonestatelistener-limit-rvc-dev" into rvc-dev
* changes:
  Add gating, logging for PhoneStateListener's limit
  Institute limit on PhoneStateListener
2020-03-28 06:48:56 +00:00
Hall Liu
ed6d6e69a8 Add gating, logging for PhoneStateListener's limit
Add gating via PlatformCompat and DeviceConfig and logging via
PlatformCompat to the limit instituted on per-process listeners

Fixes: 152074216
Test: atest CtsTelephonyHostCases
Change-Id: I4d6681d90705b68c3349f4124e434a29b50fd3a2
2020-03-27 19:21:51 -07:00
TreeHugger Robot
3f1e7189b9 Merge "Remove "@Deprecated" from supplyPinReportResult + supplyPukReportResult" into rvc-dev am: ddcf560b4e
Change-Id: Ie934fdda3129c45adfa3613641a6bbfb3c4e5ffc
2020-03-28 00:05:40 +00:00
TreeHugger Robot
ddcf560b4e Merge "Remove "@Deprecated" from supplyPinReportResult + supplyPukReportResult" into rvc-dev 2020-03-28 00:03:49 +00:00
Rambo Wang
2b11f828f1 Merge "NR is lower priority than all other signal strengths" into rvc-dev am: 2939486f37
Change-Id: Ia99ee7e63e6b8eb5c6b2acb110b93249e84be210
2020-03-27 23:51:31 +00:00
Rambo Wang
2939486f37 Merge "NR is lower priority than all other signal strengths" into rvc-dev 2020-03-27 23:38:16 +00:00
Daniel Bright
ef5836157f Remove "@Deprecated" from supplyPinReportResult + supplyPukReportResult
Fully rolled back comments and signature to original state before change

Test: bootup phone
Bug: 147854704
Change-Id: I5fcd71e1569e6b0e16cff5392239b89259ee1790
2020-03-27 15:01:16 -07:00
Shuo Qian
3d9667ebc4 Merge "Add a hidden API for EXTRA_LAST_KNOWN_NETWORK_COUNTRY" into rvc-dev am: 00813b7648
Change-Id: I314494b73c0eda09e6f39b8a2b2618a68c58c43f
2020-03-27 20:10:47 +00:00
Shuo Qian
00813b7648 Merge "Add a hidden API for EXTRA_LAST_KNOWN_NETWORK_COUNTRY" into rvc-dev 2020-03-27 20:00:50 +00:00
Jack Yu
412b479766 Merge "Get rid of SIM record access in DcTracker" into rvc-dev am: e3e18663f9
Change-Id: Id08aa41d326ff948191b935bc3832f1922e18bd1
2020-03-27 18:52:24 +00:00
Jack Yu
e3e18663f9 Merge "Get rid of SIM record access in DcTracker" into rvc-dev 2020-03-27 18:44:21 +00:00
Shuo Qian
8d1791efc7 Add a hidden API for EXTRA_LAST_KNOWN_NETWORK_COUNTRY
Test: Treehugger; atest
Bug: 152246523
Change-Id: Id77b81e18b293d8d8c8e7b3127826fbd577d6117
2020-03-27 02:45:47 +00:00
Sarah Chin
2e7450f292 Merge "Update Bands API" into rvc-dev am: 5b2f94a0aa
Change-Id: I64ceb47277c6e397ea3d5934eef0fc5012b19e9b
2020-03-27 00:46:54 +00:00
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
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
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
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