Commit Graph

9063 Commits

Author SHA1 Message Date
Peter Wang
ceba2adbbd [Telephony Mainline] Rename getActiveAndHiddenSubscriptionIdList and
guard with permission

Bug: 150878235
Fix: 150878235
Test: Build
Change-Id: I7f3b1f5170e032336d9b39b322c49e2b92573586
2020-03-18 20:35:44 -07:00
Anthony Stange
26d4854185 Merge "Revert "Un-expose ACTION_SERVICE_PROVIDERS_UPDATED."" into rvc-dev 2020-03-18 20:29:24 +00:00
Anthony Stange
c935bac0ae Revert "Un-expose ACTION_SERVICE_PROVIDERS_UPDATED."
This reverts commit 13a8d14fcd.

Reason for revert: Build breakage - b/151854914

Change-Id: I8ea4ac36605c8df92df92a286a8712e40a6944db
2020-03-18 20:26:27 +00:00
TreeHugger Robot
8562620d8a Merge "Un-expose ACTION_SERVICE_PROVIDERS_UPDATED." into rvc-dev 2020-03-18 19:31:38 +00:00
Sarah Chin
2b004fa8e8 Merge "Move getMsisdn and getLine1Number to READ_PHONE_NUMBERS" into rvc-dev 2020-03-18 18:04:18 +00:00
Shuo Qian
43c2f470ed API Council Feedbacks
1) Add Annotation for getCarrirPrivilegeStatus
2) Remove NullProinterException throwing in isDataConnectionAllowed
3) Add SdkConstant for ACTION_UPDATE_EMRGENCY_NUMBER_DB

Test: Treehugger
Bug: 148218347
Bug: 151455822
Change-Id: I4943491abf70641f9379862a67941295a4cf67f9
2020-03-18 02:12:30 +00:00
Amit Mahajan
13a8d14fcd Un-expose ACTION_SERVICE_PROVIDERS_UPDATED.
Will be exposed/reworked on in S.

Test: basic sanity
Bug: 147921202
Change-Id: Iab4974f9cd7cecde1ef6eba35c320101a288b481
2020-03-17 17:41:33 -07:00
TreeHugger Robot
e4e42d376a Merge "Update API documentation per api-council feedback." into rvc-dev 2020-03-18 00:30:54 +00:00
Shuo Qian
0d4f4e464e Merge "Hide several System APIs" into rvc-dev 2020-03-17 23:09:31 +00:00
Daniel Bright
d9e5f80d4b Merge "Undo isDataCapable as Public API" into rvc-dev 2020-03-17 20:13:57 +00:00
Robert Greenwalt
3dde71f506 Move getMsisdn and getLine1Number to READ_PHONE_NUMBERS
This is done to get dangerous stuff off the READ_PHONE_STATE permission.
Also keeping READ_PHONE_STATE for apps targeting old SDK versions.
Refactored getPhoneNumber to allow READ_PHONE_STATE pre-R

Bug: 136160623
Test: atest SubInfoControllerTest, TelephonyPermissionsTest
Change-Id: I5c0adcbe432ffcbb22ac8959792ee60da7039f15
2020-03-17 13:12:34 -07:00
Shuo Qian
1e154a345c Hide several System APIs
Test: Treehugger
Bug: 151241308
Change-Id: Ie611320f4651b83e0ced6f5c8fede34a8a0a41c1
2020-03-17 04:41:21 +00:00
SongFerng Wang
6e6e233019 Merge "upperLayerIndicator_r15 is optional, nr state design changed" into rvc-dev 2020-03-17 02:57:14 +00:00
Daniel Bright
cd0a829c49 Merge "Reannotate emergency broadcasts in TelephonyManager" into rvc-dev 2020-03-17 01:22:30 +00:00
TreeHugger Robot
7f4be5cfca Merge "API revisions in SmsManager and TelephonyManager" into rvc-dev 2020-03-17 01:12:40 +00:00
Amit Mahajan
d42340b66c Update API documentation per api-council feedback.
Test: SMS/MMS sending/receiving sanity (manual)
Bug: 149236716
Change-Id: I59b9d468fa6e1a5843871abf1a330962aef64505
2020-03-16 17:46:20 -07:00
Hall Liu
9749407e71 API revisions in SmsManager and TelephonyManager
- Make SmsManager#sendMultipartTextMessage public (the one that was
previously @SystemApi)
- Split TelephonyManager#getDefaultRespondViaMessageApplication into a
pure getter and a getter/updater

Bug: 147299011
Test: atest TelephonyManagerTest

Change-Id: I44160920a66b7ebd18eca3ad4773b5a144738b39
2020-03-16 15:49:06 -07:00
Hall Liu
8aece5d03a Re-hide ServiceState#getDataNetworkType
Fixes: 151184420
Test: NA
Change-Id: I08396033873567f668a2f6adbf10a9f2e0c36b68
2020-03-16 22:39:42 +00:00
Brad Ebinger
5f3d66bf30 Merge "@hide some APIs that will not be used in Android R" into rvc-dev 2020-03-16 21:23:07 +00:00
Tyler Gunn
26715b895d Merge "Hide car barring with password API." into rvc-dev 2020-03-16 21:18:12 +00:00
Daniel Bright
fc0b12be2e Reannotate emergency broadcasts in TelephonyManager
Test: make
Bug: 151454739
Change-Id: I2cd3c365710071e8187101edba63f23b56a11fce
2020-03-16 13:45:06 -07:00
Brad Ebinger
3bdd15fbb4 Merge "API Review: Make ImsReasonInfo in ImsMmTelManager @NonNull" into rvc-dev 2020-03-16 15:59:29 +00:00
SongFerngWang
b5faf6eaae upperLayerIndicator_r15 is optional, nr state design changed
Bug: 151270999
Test: build pass.
Change-Id: I7864077df6dad9a8bf70718615e3cfeb8159a50e
2020-03-16 21:52:41 +08:00
zoey chen
834b281fa5 [TelephonyMainline] @hide system api since we'll revisit in S - Cdma
Test: make
Bug: 148404061
Change-Id: I83dbaa24f94f5cca846d6ca71c7e6814ecd832b8
2020-03-16 13:46:17 +08:00
Zoey Chen
83afbeec0a Merge "[TelephonyMainline] @hide system api since we'll revisit in S. - IccLock" into rvc-dev 2020-03-16 05:26:58 +00:00
Zoey Chen
365dfedd5a Merge "[TelephonyMainline] @hide system api since we'll revisit in S. - DataAllowed" into rvc-dev 2020-03-16 05:11:50 +00:00
TreeHugger Robot
bee68ea797 Merge "Hide the IMS call barring constants" into rvc-dev 2020-03-14 00:55:31 +00:00
Daniel Bright
d9d7abb899 Undo isDataCapable as Public API
Test: make
Bug: 146206136
Change-Id: I8b6a7e001c114df5e90668738b2a2b978e8757fa
2020-03-13 15:14:42 -07:00
Brad Ebinger
32f843dbda 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
Change-Id: Idd0f2216bdd55011cb16d268b61cb652ca11bd41
2020-03-13 14:20:51 -07:00
Rambo Wang
5bb02f0890 Merge "CellularDataService: mCallbackMap is not thread safe" into rvc-dev 2020-03-13 21:11:39 +00:00
Hall Liu
19ecc1c95c Merge "Hide APIs introduced in earlier change" into rvc-dev 2020-03-13 20:29:19 +00:00
Rambo Wang
ccc118ec9b CellularDataService: mCallbackMap is not thread safe
The HashMap object mCallbackMap in CellularDataService is a shared
resource between DataService's handler thread and CellularDataService's
handler thread. The update operations (put and remove) has
synchronization issue.

This CL fixes the issue by letting CellularDataService shares the
looper/handler thread of DataService (but keeping its own handler). And
thus all the operations of mCallbackMap are handled serializally in
DataService's handler thread.

One alternative solution is to  move all operations of the mCallbackMap
into
CellularDataService's handler thread to make it thread-safe. But it's
difficult for close() method which need to clear mCallbackMap and
shutdown the handler thread.

The other alternative solution is to replace HashMap with
ConcurrentHashMap
for mCallbackMap. This do make mCallbackMap thread-safe but do not
change the fact that it is still a shared resource between two threads.

Bug: 151103522
Test: atest FrameworksTelephonyTests
Merged-In: I7f5a507c2a79c7c77c5c2d7d3be147af80dc9f69
Change-Id: I7f5a507c2a79c7c77c5c2d7d3be147af80dc9f69
(cherry picked from commit ccf29801e2)
2020-03-13 18:55:03 +00:00
Brad Ebinger
a469edb1d3 @hide some APIs that will not be used in Android R
Bug: 147319232
Bug: 148123085
Bug: 147732815
Test: atest CtsTelephonyTestCases
Change-Id: I623e52432fc820d302fcdbdb9a88a37deed455ae
2020-03-13 10:44:51 -07:00
Tyler Gunn
654c05b232 Hide car barring with password API.
Not needed in R.

Test: Build APIs
Bug: 148184879
Change-Id: I036980c2e565bf4f84e51b028d0b6938b7afff97
2020-03-13 08:11:21 -07:00
Philip P. Moltmann
d7a823623f Merge "Rename featureId -> attributionTag" into rvc-dev 2020-03-13 14:26:31 +00:00
zoey chen
7c626cb897 [TelephonyMainline] @hide system api since we'll revisit in S. - DataAllowed
Test: make
Bug: 146107006
Change-Id: I62a0249a1462c9e8d71552e2304642eb6bde3eb5
Merged-In: I62a0249a1462c9e8d71552e2304642eb6bde3eb5
2020-03-13 12:21:00 +08:00
Hall Liu
a936d6481d Hide the IMS call barring constants
Fixes: 151184695
Test: NA
Change-Id: Ieb30d3adaaa8e1a0d808ee8137fd28d4e13033f7
2020-03-12 17:15:24 -07:00
Shuo Qian
28ab493385 Merge "API Council Feedbacks" into rvc-dev 2020-03-12 21:54:42 +00:00
Philip P. Moltmann
12ac3f406f Rename featureId -> attributionTag
In the core functionality this changes everything including aidl's and
field names:
- Context
- ContentProvider
- AppOps*
- Package parsing

For the rest, this is a shallow change to only change to the changed
APIs. This keeps the change small-ish

Exempt-From-Owner-Approval: Rename
Fixes: 148792795
Test: TH
Change-Id: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
Merged-In: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
2020-03-12 19:26:10 +00:00
TreeHugger Robot
3269b7a4c8 Merge "[Mainline] Add @hide. Revisit and redesign in S" into rvc-dev 2020-03-12 17:50:44 +00:00
Shuo Qian
e3efafddda API Council Feedbacks
1) Update doc of ACTION_UPDATE_EMERGENCY_NUMBER_DB
2) Add new APIs EXTRA_VERSION and EXTRA_REQUIRED_HASH
3) Rename isDataConnectionEnabled to IsDataConnectionAllowed
4) Format the API documentations with html format
5) Throw errors for shutdownAllRadios, isAnyRadioPoweredOn
6) Modify the doc of TelephonyManager.getEmergencyNumberDbVersion
7) Add UPDATE_CONFIG permission for ACTION_UPDATE_EMERGENCY_NUMBER_DB

Test: Treehugger; Manual made a call; make -j offline-sdk-docs
Bug: 147696692
Bug: 147805285
Bug: 148217670
Bug: 148218347
Change-Id: Idf3dee3de5ebf75ca8b8fbaaf879e69f7ae4b754
Merged-In: Idf3dee3de5ebf75ca8b8fbaaf879e69f7ae4b754
(cherry picked from commit dc86120fca)
2020-03-12 03:49:15 +00:00
TreeHugger Robot
6a781e90bd Merge "Throw RuntimeException/ImsException when binder is null." into rvc-dev 2020-03-12 00:41:03 +00:00
Daniel Bright
50b916bd53 Merge "Remove PHONE_TYPE_IMS and PHONE_TYPE_THIRD_PARTY as apis" into rvc-dev 2020-03-12 00:33:51 +00:00
Hall Liu
a9a6d69b94 Hide APIs introduced in earlier change
Hide device policy override APN APIs

Fixes: 151183944
Test: NA
Change-Id: I9cde79894bda4b31effd2b3ef13d7c9f8df9cbb6
2020-03-12 00:26:55 +00:00
Jayachandran Chinnakkannu
dd3768ed8c Merge "Remove API getDefaultSimCountryIso() as per API council feedback" into rvc-dev 2020-03-11 21:53:08 +00:00
TreeHugger Robot
8ca61d7cd3 Merge "change getActiveAndHiddenSubscriptionInfoList API name" into rvc-dev 2020-03-11 20:54:07 +00:00
TreeHugger Robot
b6e24590fd Merge "READ_PHONE_STATE permission for isModemEnabledForSlot" into rvc-dev 2020-03-11 20:50:15 +00:00
Daniel Bright
87941e4fa1 Remove PHONE_TYPE_IMS and PHONE_TYPE_THIRD_PARTY as apis
Removing api status to several apis created during telephony mainline in R.

Bug: 147465477
Test: make
Change-Id: I6d394fae478ef62769147beaeb944771a67aca70
2020-03-11 11:59:03 -07:00
zoey chen
8e622f6f9d [TelephonyMainline] @hide system api since we'll revisit in S. - IccLock
Bug: 146983487
Test: make
Change-Id: Iabc3300e883e2afad6145f9bb1410d0606a35c11
2020-03-11 11:25:38 +00:00
James Lin
5dd0e09694 Merge "Add a carrier config for two digital number pattern" into rvc-dev 2020-03-11 09:35:21 +00:00