Commit Graph

12248 Commits

Author SHA1 Message Date
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
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
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
SongFerngWang
cd7d966476 [Mainline] Add @hide. Revisit and redesign in S
Bug: 144486008
Test: build pass.
Change-Id: I9f301b65a3a476a114821c77916dbdb988e5d983
2020-03-11 14:34:25 +08:00
TreeHugger Robot
342f72063a Merge "Rollback @SystemApi on ApnSetting" into rvc-dev 2020-03-11 05:46:07 +00:00
TreeHugger Robot
f414c083dd Merge "Undo commit "Expose constants in Telephony.Carriers"" into rvc-dev 2020-03-11 05:39:55 +00:00
Daniel Bright
0080b55bc5 Merge "Rollback SystemApis for Mainline" into rvc-dev 2020-03-11 03:44:01 +00:00
TreeHugger Robot
60a6e43a74 Merge "Unexpose unnecessary SysUI APIs" into rvc-dev 2020-03-11 00:42:51 +00:00
Sarah Chin
76182efa9f Merge "Unexpose getDataRoamingFromRegistration API" into rvc-dev 2020-03-10 23:58:26 +00:00
Daniel Bright
d8b1c8b283 Rollback @SystemApi on ApnSetting
* Remove @SystemApi from ApnSetting.TYPE_*
* Remove @SystemApi from ApnSetting.getApnTypesStringFromBitmask

Bug: 147465477
Test: make \ flash
Change-Id: Ifc781ae494968fbaad8c591dbd990d397e0d733b
2020-03-10 15:08:12 -07:00
Sooraj Sasindran
4f1db18325 READ_PHONE_STATE permission for isModemEnabledForSlot
Specify READ_PHONE_STATE permission for isModemEnabledForSlot

Bug: 144791721
Test: make
Change-Id: I895f46671b0023b835239a661eea1881eb1ff48f
2020-03-10 20:14:28 +00:00
Sooraj Sasindran
40468064ed change getActiveAndHiddenSubscriptionInfoList API name
getActiveAndHiddenSubscriptionInfoList to getCompleteActiveSubscriptionInfoList

Bug: 144791721
Test: make
Merged-In: I6202c4039d858ccfed1d09e8b315d701bb571ccf
Change-Id: I6202c4039d858ccfed1d09e8b315d701bb571ccf
(cherry picked from commit feb6aa47b4)
2020-03-10 20:08:20 +00:00
Sarah Chin
ba01f23e9f Unexpose getDataRoamingFromRegistration API
Test: build
Bug: 148604865
Change-Id: I695645418d2babc1eb524a29b2054c1cd8f74da3
2020-03-10 12:40:40 -07:00
Daniel Bright
5dbd3c3b69 Undo commit "Expose constants in Telephony.Carriers"
Undid carrier constants as @SystemApis.  Also had to move
constants out of annotation.java because any references in
that specific file need to be to public APIs.

Bug: 148170690
Test: make, flash
Change-Id: Ie4b827563dbc373c58ec805bc5400e0950b5b81e
2020-03-10 12:27:16 -07:00
Jayachandran C
5e36c82b96 Make TelephonyManager.getCdmaEriInformation and CdmaEriInformation hide@
Bug: 147839123
Test: Basic telephony testing
      atest frameworks/base/packages/SystemUI/tests
Change-Id: I648b9b2acccaf835adab7c5d813c3728b7320d94
2020-03-10 10:56:49 -07:00
Brad Ebinger
5463a87fc3 Merge "API Review: Rethrow from system server for ImsCallSessionListener" into rvc-dev 2020-03-10 16:57:52 +00:00
SongFerngWang
56e1a31265 5G icon default changed
default value:"connected_mmwave:5G,connected:5G,not_restricted_rrc_idle:5G
,not_restricted_rrc_con:5G"

Bug: 150826929
Test: build pass
Change-Id: I298b0eb496f5aae8c812ccfa375e2649fc9c2a64
2020-03-10 13:08:31 +08:00