Commit Graph

11271 Commits

Author SHA1 Message Date
Mingming Cai
e803aa15a4 Merge "Add global cell ID to all technologies" 2020-03-31 00:23:20 +00:00
Mingming Cai
abfecd4cf9 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
Merged-In: I2174e8d8c286da200562ef77cff78c3fca26cee2
(cherry picked from commit c78abaad35)
2020-03-30 08:43:43 -07:00
Amit Mahajan
69cf3f0f03 Update API documentation per api-council feedback.
Test: SMS/MMS sending/receiving sanity (manual)
Bug: 149236716
Merged--in: I59b9d468fa6e1a5843871abf1a330962aef64505
Change-Id: I59b9d468fa6e1a5843871abf1a330962aef64505
(cherry picked from commit d42340b66c)
2020-03-27 17:45:51 -07:00
Shuo Qian
cc3b8a0743 Add a hidden API for EXTRA_LAST_KNOWN_NETWORK_COUNTRY
Test: Treehugger; atest
Bug: 152246523
Change-Id: Id77b81e18b293d8d8c8e7b3127826fbd577d6117
Merged-In: Id77b81e18b293d8d8c8e7b3127826fbd577d6117
(cherry picked from commit 8d1791efc7)
2020-03-27 13:18:15 -07:00
Nathan Harold
7687477742 Merge changes from topic "cp-networkscan"
* changes:
  Remove NetworkClass from TelephonyManager
  Add Network Preference Bitmaps
2020-03-27 01:50:34 +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
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
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
388069c6c0 Merge "Convert getBands() to int[] from List<Integer>" 2020-03-26 01:32:54 +00: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
Hall Liu
8c86962f05 Merge "Change default value of ignore RTT setting config" 2020-03-25 20:50:31 +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
Sarah Chin
3782fad894 Merge "Fix NPE in updateNrState" 2020-03-23 22:14:12 +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
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
06d11782d7 Merge "API Review: Make ImsReasonInfo in ImsMmTelManager @NonNull" 2020-03-23 17:18:26 +00:00
Brad Ebinger
2a15872d99 Merge "API fix: getProprietaryCallExtras should not return null" 2020-03-23 17:10:13 +00:00
Brad Ebinger
ee30a546d6 Merge "API fix: Rename and clarify ProvisioningManager constants" 2020-03-23 16:19:36 +00:00
Brad Ebinger
3d46c07f77 Merge "API Review: Rethrow from system server for ImsCallSessionListener" 2020-03-23 16:18:18 +00:00
Brad Ebinger
a8ea082246 Merge "API Review: Define the extras as containing CharSequences, not Strings" 2020-03-23 16:17:21 +00:00
Philip P. Moltmann
2a9c3e49ba Merge "Pipe through attributeTag for one SMS permission check" 2020-03-21 05:18:24 +00:00
Sarah Chin
bf421a9826 Fix NPE in updateNrState
Test: build
Bug: 151837748
Change-Id: Ia05cb6b43a79524501821467c510f595f7a64ebe
Merged-In: Ia05cb6b43a79524501821467c510f595f7a64ebe
2020-03-20 16:57:59 -07:00
Brad Ebinger
51aa63a61d API Review: Make ImsReasonInfo in ImsMmTelManager @NonNull
1) If the vendor does not specify an ImsReasonInfo, create an
unspecified ImsReasonInfo instead of passing null back.
2) Move onUnregistered to @NonNull

Fixes: 150008589
Test: atest CtsTelephonyTestCases:ImsServiceTest
Merged-In: Idd0f2216bdd55011cb16d268b61cb652ca11bd41
Change-Id: Idd0f2216bdd55011cb16d268b61cb652ca11bd41
2020-03-20 16:49:41 -07:00
Brad Ebinger
3253b5421f API Review: Rethrow from system server for ImsCallSessionListener
Test: atest FrameworksTelephonyTests:ImsCallSessionListenerTests
Bug: 149997618
Fixes: 151172994
Merged-In: I98e7aeb033c3a5da332cc40e58ec5e066be6a2cc
Change-Id: I98e7aeb033c3a5da332cc40e58ec5e066be6a2cc
2020-03-20 16:28:41 -07:00
Brad Ebinger
72e3eef33c API fix: getProprietaryCallExtras should not return null
Bug: 149216142
Fixes: 151172594
Test: atest CtsTelephonyTestCases
Merged-In: I7bd0d44f08169d41396a8cb202f3928e14bc5939
Change-Id: I7bd0d44f08169d41396a8cb202f3928e14bc5939
2020-03-20 16:26:51 -07:00
Brad Ebinger
273a74f532 API Review: Clarify deprecated docs and rethrow from system server
1) Clarify why there are new APIs being added as @deprecated
   (backwards compatibility), and
2) onLineIdentificationSupplementaryServiceResponse should throw
an exception instead of silently failing.

Test: atest CtsTelephonyTestCases FrameworksTelephonyTests
Bug: 149997057
Bug: 143987946
Fixes: 151172761
Merged-In: I5c2bacad43917a6ecad49dcf9d3213b3472534cc
Change-Id: I5c2bacad43917a6ecad49dcf9d3213b3472534cc
2020-03-20 16:16:33 -07:00
Brad Ebinger
36f34a1755 API Review: Define the extras as containing CharSequences, not Strings
Test: atest FrameworksTelephonyTests:ImsPhoneTest
Bug: 150331517
Fixes: 151172931
Merged-In: I7c6f4c13e6267a3e643ebae77697ea18ee8cd242
Change-Id: I7c6f4c13e6267a3e643ebae77697ea18ee8cd242
2020-03-20 16:13:28 -07:00
Nathan Harold
c62ebcc6c3 Convert getBands() to int[] from List<Integer>
To conform with API council guidelines, convert the
getBands() function to store and return an array of
int[] rather than a List<Integer> to avoid autoboxing.

Also:
-Add bands to hashCode() and equals() for CellIdentityLte
-Add EARFCN to hashCode() for CellIdentityLte

Bug: 150399894
Test: atest FrameworksTelephonyTests
Merged-In: I7edd5896b48794cd9c291788c28420ce40898f77
Change-Id: I7edd5896b48794cd9c291788c28420ce40898f77
(cherry picked from commit 9d722a0c7f)
2020-03-20 15:23:55 -07:00
Peter Wang
54af9046ac Merge "[API Review] APIs in SubscriptionManager" 2020-03-20 19:54:58 +00:00
Jack Yu
c33377b077 Merge changes from topic "lte_bands"
* changes:
  Added bands from HAL 1.5
  Convert getAdditionalPlmns to return a Set
2020-03-20 19:03:49 +00:00
Malcolm Chen
a212555ad2 Fix bug that getBaseBandVersion() may write the value incorrectly.
getBaseBandVersion tries to get value from a legacy API and rewrites it
back. However the read value is the full list but the write is to a
specific phone, causing the list to grow unexpectedly.

Bug: 149342541
Test: manual - using test app, call API and check result.
Change-Id: I78b0443c5e38a30010796fcb69f01a8c7ebaf160
2020-03-19 23:20:39 -07:00
Sarah Chin
3986bb5040 Merge "Update AccessNetworkConstants to uses values from HAL" 2020-03-20 04:04:12 +00:00
Sarah Chin
7b53d011cb Unexpose unnecessary SysUI APIs
These APIs were exposed for mainline since they were used in SysUI code,
but the logic that was using them was moved to Telephony. Unexposing the
APIs since they no longer need to be exposed.

Test: atest FrameworksTelephonyTests
Bug: 147447171
Bug: 111498835
Bug: 149874525
Change-Id: I1930977c5345c075773d18db4eb05913038d7e7f
Merged-In: I1930977c5345c075773d18db4eb05913038d7e7f
2020-03-19 20:40:30 -07:00
Sarah Chin
35554486b7 Update AccessNetworkConstants to uses values from HAL
Test: build
Bug: 150479290
Change-Id: I46034fce8f8f13b555a0cfb05cc5a9f076c7251a
Merged-In: I46034fce8f8f13b555a0cfb05cc5a9f076c7251a
2020-03-19 18:47:44 -07:00
Sarah Chin
c0a1448ac8 Add response and indication for CellInfo
cellInfoList_1_5
getCellInfoListResponse_1_5
networkScanResult_1_5

Test: atest RILTest
Bug: 151774189
Change-Id: I1ba01eb97f13f843fd27b65d4a2b1049e97ead71
Merged-In: I1ba01eb97f13f843fd27b65d4a2b1049e97ead71
2020-03-19 18:38:14 -07:00
Philip P. Moltmann
b36bcc882a Pipe through attributeTag for one SMS permission check
Bug: 136595429
Test: TH
Change-Id: I99635efd0da5e72c3df9c6383779a059bbe3c1d1
Merged-In: I346ac2d3acad0e0d18b298f89f0b96324fc52333
2020-03-20 00:28:09 +00:00
Peter Wang
0ddf44070b [API Review] APIs in SubscriptionManager
Bug: 146362772
Bug: 148180034
Test: atest SubscriptionControllerTest, TelephonyDatabaseHelperTest, TelephonyProviderTest
Change-Id: I77cad8f828ac38976355b7a5f3e8d757b73694ca
Merged-In: I77cad8f828ac38976355b7a5f3e8d757b73694ca
2020-03-19 16:06:52 -07:00
Philip P. Moltmann
9ed7e7f1b1 Merge "Pipe through attributeTag for one self-permission check" 2020-03-19 19:41:17 +00:00
Jack Yu
63fcb9b978 Hide API
Hide API that is only used by telephony registry.

Test: Telephony sanity tests
Bug: 149850449
Merged-In: Ie4c46de336097fb7231291f15048329aea0b639c
Change-Id: Ie4c46de336097fb7231291f15048329aea0b639c
(cherry picked from commit f0df0ba2ba)
2020-03-19 10:27:36 -07:00
Jack Yu
49a35718f8 Added bands from HAL 1.5
Test: Manual
Merged-In: Ib155ee5c2f660c8866a7be91e7f62a8c90e78d8e
Change-Id: Ib155ee5c2f660c8866a7be91e7f62a8c90e78d8e
Fix: 149475773
(cherry picked from commit 16e5d2a0f3)
2020-03-18 22:17:04 -07:00
Nathan Harold
a4e79e3d41 Convert getAdditionalPlmns to return a Set
Set support is a little weird in Java and Android.
Java doesn't support ArraySet, but Android does; Parcel
has both read/write for ArraySet, but they are @hide. Thus,
my options were limited to:
-use the hidden parcel methods
-convert between list and set in the constructor and parcel code
-convert between list and set in the getter
-maintain parallel data structures.

Using the hidden methods seemed cleanest. Since they are
@UnsupportedAppUsage they can't be credibly removed.

In addition, the HAL code doesn't understand Set<> only List<> so
I was faced with the choice of having 2 constructors or using
Collection<>, which actually works just fine and avoids changing
a hundred or so unit tests with no ill effect.

Bug: 149476549
Test: atest FrameworksTelephonyTests
Test: (cts) atest CellInfoTest
Merged-In: I9dfa5f59512f3d1305187cc383c4069ceaaf27fd
Change-Id: I9dfa5f59512f3d1305187cc383c4069ceaaf27fd
(cherry picked from commit 5522de1af3)
2020-03-18 22:05:36 -07:00
Jack Yu
7a5e98e131 Added the high usage hidden APIs back
Added the high usage hidden APIs back for Q or older
apps. Apps built on R SDK should use the new API
getNetworkCountryIso(int).

Test: Build
Bug: 150368215
Merged-In: I1ccfbe269f3d9b91b715c20bd2f200cfb20e2a8c
Change-Id: I1ccfbe269f3d9b91b715c20bd2f200cfb20e2a8c
(cherry picked from commit ff8275e6b9)
2020-03-18 21:51:21 -07:00
Philip P. Moltmann
a345428817 Pipe through attributeTag for one self-permission check
... Also remove unused aidl methods.

Bug: 136595429
Test: TH
Change-Id: I37bf62a83c1043acdc878f747ef85d719766f991
2020-03-18 18:16:22 -07:00