Commit Graph

4798 Commits

Author SHA1 Message Date
Nathan Harold
e93321c149 Add set/getUsageSetting APIs
Add the APIs in SubscriptionInfo/SubscriptionManager to
set and to get the Usage Setting.

Bug: 210023167
Test: atest SubscriptionControllerTest#testUsageSettingProperty
Change-Id: I515700ac0a7731c80002eee13d466c28c977f419
2021-12-16 10:54:42 -08:00
Jim Sun
1ada64a395 Merge "Add mock modem service operations in Telephony" 2021-12-16 06:38:56 +00:00
Chen Xu
d20446a397 Merge "Add EuiccCardManager requestEnabledProfileForPort" 2021-12-16 06:26:55 +00:00
Bernardo Rufino
90bb3709dc Migrate unsafe parcel APIs in framework-minus-apex
Migrate the following unsafe parcel APIs in framework-minus-apex:
* Parcel.readSerializable()
* Parcel.readArrayList()
* Parcel.readList()
* Parcel.readParcelable()
* Parcel.readParcelableList()
* Parcel.readSparseArray()

This CL was generated by applying lint fixes that infer the expected
type from the caller code and provide that as the type parameter
(ag/16365240).

A few observations:
* In some classes we couldn't migrate because the class also belonged to
another build module whose min SDK wasn't current (as is the case for
framework-minus-apex), hence I suppressed the lint check
(since I'll eventually submit the lint check to the tree).
* In some cases, I needed to do the cast in
https://stackoverflow.com/a/1080525/5765705 to make the compiler happy
since there isn't another way of providing a class of type
Class<MyClassWithGenerics<T>>.
* In the readSerializable() case, the new API also requires the class
loader, that was inferred to by InferredClass.class.getClassLoader().
* Note that automatic formatting and import rely on running hooked up
to the IDE, which wasn't the case here.

Bug: 195622897
Test: TH passes
Change-Id: I11a27b9bdab7959ee86e90aa1e1cbebd7aaf883c
2021-12-15 18:21:38 +00:00
Jordan Liu
f75bb13480 Add EuiccCardManager requestEnabledProfileForPort
Also expose DEFAULT_PORT_INDEX.

Bug: 205504646
Fixes: 207392528
Test: manual, atest TelephonyEuiccHostTest
Change-Id: I25dc041225e897ccf707473192287f2446b40b32
2021-12-14 16:10:41 -08:00
Nathan Harold
5071e04c2c Merge "Add Constants for UsageSetting" 2021-12-14 00:29:04 +00:00
jimsun
e000fb4f39 Add mock modem service operations in Telephony
Bug: 205101043
Bug: 203241555
Test: manual
Change-Id: I65127fc43c62b52e3efaa99d06bf77855aab7bb0
2021-12-13 14:08:22 +08:00
Nathan Harold
793736cced Add Constants for UsageSetting
Bug: 210023167
Test: compilation
Change-Id: Ief078770b44719e105828bb61d3768ad24e277dd
2021-12-10 12:59:51 -08:00
TreeHugger Robot
48845b2b7e Merge "Allow renounce location permission" 2021-12-10 20:56:40 +00:00
Sooraj Sasindran
1e7a4169ce Allow renounce location permission
Allow renounce location permission

Bug: 198533763
Test: CTS
Change-Id: I10872f34603441da2cf80f1f2976f3f3ca0ff6c2
2021-12-09 13:30:43 -08:00
Jack Yu
abbaf55198 Added command line tool to enable/disable new data stack
Provide the temporary command line tool to check whether new
data stack is enabled or not.

Bug: 196597630
Test: adb shell cmd phone get-data-mode
Change-Id: I9f95e7424e6e74af12a0f6780a58fb5732df7300
2021-12-09 00:33:21 -08:00
Sooraj Sasindran
4d21fbab33 Merge "Provide last known cell id for emergency call" am: 761ad6eaf8 am: fffe4f6865 am: 0f4de3172e am: 510974e364
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1870513

Change-Id: Ib0e18d6a0aeacdb7f45a376f6cb669b7f3becc27
2021-12-09 00:01:36 +00:00
Rambo Wang
2ebfca0f61 Introduce mutable parcelable request to open/close logical channel
With a simple parcelable defines in aidl file, ITelephony can
unify all the ways on how to open/close ICC logical channels.
This leaves a stable ITelephony interface and extendable space
in request parcelable to introduce new features.

The request parcelable can also serve as the data wrapper when all
request info need to pass to the handler of PhoneInterfaceManager,
or out side of phone process (e.g. TelephonyRegistry) to resist
phone process crash.

Bug: 197658986
Test: atest IccOpenLogicalChannelRequestTest
Change-Id: I15f920024d3ca3e630d16900e341ff41ee13d7d9
2021-12-07 19:22:32 +00:00
Sooraj Sasindran
81be082283 Provide last known cell id for emergency call
Provide last known cell id to connection service
for emergency calls.

Bug: 198533763
Test: unit test
Change-Id: I8b660c0b5fbe095e3b9b67129b7404ebd7ec5ccd
2021-12-06 12:52:31 -08:00
Muralidhar Reddy
5d4bad448f [MEP] Add port index to icc logical channel open, close and trasmit APIs.
Modified logic to retrieve phoneId based on the slot index and port index as well.

Test: build
Bug: 199559346
Change-Id: I98036645023bd7ba12475d4a06ce64287401471b
2021-12-02 21:21:32 +00:00
Sandeep Jawalkar
1319ca53f4 Merge "Adding getSimApplicationState & getSimSlotMapping" 2021-11-25 06:48:12 +00:00
sandeepjs
1fb2b00c3a Adding getSimApplicationState & getSimSlotMapping
Adding getSimApplicationState & getSimSlotMapping API in TelphonyManager
Test: atest TelephonyManagerTest#getSimSlotMappingTestReadPermission
Test: atest TelephonyManagerTest#getSimCardStateTest
Test: atest TelephonyManagerTest#getSimSlotMappingTest
Bug: 206718882

Change-Id: I40ec6c8083d9e8718a300b119ceb089648b8dea4
2021-11-23 09:54:34 +00:00
Jordan Liu
6f98f06a96 Merge "Add portIndex for switch subscription API" 2021-11-17 21:32:52 +00:00
Meng Wang
5caf17cea6 Merge "Add getPhoneNumber/setPhoneNumber API" 2021-11-17 00:36:15 +00:00
Jordan Liu
95c4643204 Add portIndex for switch subscription API
Bug: 205504646
Test: manual (builds, will not be functional until LPA implementation)
Change-Id: Ic289538f5df17c03b2f8da7f4966c583d4557586
2021-11-16 14:03:38 -08:00
Meng Wang
0594b4f490 Add getPhoneNumber/setPhoneNumber API
Bug: 193539271
Test: make
Change-Id: Iac651f2ca4269f20a2c7e87c7b6edf1d6c992867
2021-11-16 11:16:10 -08:00
Sandeep Jawalkar
89d29b89d1 Merge "[MEP] eSIM API refactor to support MEP" 2021-11-16 16:46:03 +00:00
Hunsuk Choi
9725d66837 Add ImsStateCallback
registerImsStateCallback and unregisterImsStateCallback are
added to ImsMmTelManager, ImsRcsManager, and SipDelegateManager.
Those are used to receive updates about the connection state
of the underlying ImsService.

Bug: 178016400
Test: atest ImsStateCallbackTest

Change-Id: If547ce637725d4f98942b0b554187a0ba91f60de
Merged-In: If547ce637725d4f98942b0b554187a0ba91f60de
Merged-In: I3ac14cc3bcb28f5f966a1b3c215727784527e475
2021-11-16 01:55:41 +00:00
Hunsuk Choi
511be9a373 Merge "Update ITelephony#registerImsStateCallback" 2021-11-15 23:00:40 +00:00
sandeepjs
177c4a4d02 [MEP] eSIM API refactor to support MEP
Newly added UiccPortInfo and UiccSlotMapping classes and introduced
UiccPortInfo as a port list in UiccCardInfo and UiccSlotInfo,
Deprecated some constructors and updated callers.
Test: build
Bug: 159354974
Change-Id: I71e4e1ef649b7301d126dde23d53783761de940f
2021-11-12 10:11:22 +00:00
Sooraj Sasindran
cf437b8a3d Merge changes from topic "VoNR_Toggle" am: 54ee695778 am: c5566f30c0 am: 9812f7f933 am: 7ae5c85292 am: 1ac4095177
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1881109

Change-Id: I243b2a3eeb29d7184485e83ef5000c213c9e9a77
2021-11-09 21:02:31 +00:00
Gary Jian
fe3f6bbf04 Correct the request number
RIL_REQUEST_IS_VONR_ENABLED

Bug: 203162440
Test: make
Change-Id: I9ecdc1811e9e680cd966ab91e7e2906a71e1c6ea
2021-11-09 15:05:37 +00:00
Sooraj Sasindran
e6abedb3ad VoNR toggle
Allow user to enable or disable voice over NR.

Bug: 190668235
Test: verified using settings UI
Change-Id: I655dc93c0b213e1b85b29b9a168f99072ca82186
Merged-In: I655dc93c0b213e1b85b29b9a168f99072ca82186
2021-11-09 15:05:05 +00:00
Rambo Wang
5d281472fa Merge "Clear up ALWAYS_REPORTED_SIGNAL_STRENGTH_CHANGED logic" am: aac94b26a7 am: f8f8a40658 am: fa8156441d am: 206fc30a50 am: 7dadceffa4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1569861

Change-Id: Iad9ed1ee3ec3b71e549d32959540bd0b31028842
2021-11-05 21:16:40 +00:00
Hunsuk Choi
10e2db6c01 Update ITelephony#registerImsStateCallback
Add a parameter, String callingPackage, to send the pakage name of the client.
With this, we can see what apps have listeners for which features.

Bug: 178016400
Test: atest
Change-Id: I3ac14cc3bcb28f5f966a1b3c215727784527e475
2021-11-05 06:50:12 +00:00
Rambo Wang
206fc30a50 Merge "Clear up ALWAYS_REPORTED_SIGNAL_STRENGTH_CHANGED logic" am: aac94b26a7 am: f8f8a40658 am: fa8156441d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1569861

Change-Id: Ib948561ba54963d88e35f79df4a73f4c9b1719a4
2021-11-05 05:53:48 +00:00
Hunsuk Choi
b36819b1f1 Add ImsStateCallback
registerImsStateCallback and unregisterImsStateCallback are
added to ImsMmTelManager, ImsRcsManager, and SipDelegateManager.
Those are used to receive updates about the connection state
of the underlying ImsService.

Bug: 178016400
Test: atest FrameworksTelephonyTests:ImsStateCallbackTest
Change-Id: If547ce637725d4f98942b0b554187a0ba91f60de
2021-11-04 18:37:23 +00:00
Rambo Wang
14cc15dc37 Clear up ALWAYS_REPORTED_SIGNAL_STRENGTH_CHANGED logic
The feature is now replaced with TM#setSignalStrengthUpdateRequest
introduced in S release. The logic for the obsoleted feature is
cleared up.

The request to report system signal strength while idle is
still protected by permission to use internally.

Bug: 177924721
Test: atest TelephonyRegistryTest SignalStrengthUpdateRequestTest
Change-Id: Idad4ca59720fac50b5ec0fe50e2b6ac8e9dbb801
2021-11-03 11:39:17 -07:00
Jordan Liu
556251df8c Merge "Do not strip trailing F's of test ICCID" am: 78a8259df5 am: 60a553a4e6 am: 1701e21425 am: 347582a227 am: 7ee17eb840
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1852927

Change-Id: I1183bb8187eba4295cc43f9286ca5d4399d2be9d
2021-10-19 00:53:33 +00:00
Jordan Liu
347582a227 Merge "Do not strip trailing F's of test ICCID" am: 78a8259df5 am: 60a553a4e6 am: 1701e21425
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1852927

Change-Id: I720920f0df0df7c55386a172409ffe3d0f4f40e3
2021-10-19 00:23:47 +00:00
Jordan Liu
e1dd6a01de Do not strip trailing F's of test ICCID
Some OEMs use test SIMs which have ICCID=FFFFFFF... In this case we
don't strip trailing F's.

Bug: 199254579
Test: manual
Change-Id: I69b40fa75e59163e8c30be77cc38e908d6dd8cd4
2021-10-18 11:51:31 -07:00
Sarah Chin
ae220e938b Merge "Update constructors for IRadioData classes" into stage-aosp-master am: 958f299826 am: 209163b6f0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15961170

Change-Id: I22655476d01e86dea4b4fa95f25606dae70d890e
2021-10-06 17:09:19 +00:00
Sarah Chin
80b8c7f128 Update constructors for IRadioData classes
Test: atest FrameworksTelephonyTests
Bug: 198331673
Change-Id: I8480df1164548dde491c6ae6251bbc2725c3eadf
Merged-In: I8480df1164548dde491c6ae6251bbc2725c3eadf
2021-10-06 10:14:30 +00:00
Sarah Chin
3101c0be77 Update constructors for IRadioData classes
Test: atest FrameworksTelephonyTests
Bug: 198331673
Change-Id: I8480df1164548dde491c6ae6251bbc2725c3eadf
2021-10-05 14:01:14 -07:00
SongFerng Wang
310d93011c Merge "VoNR toggle" into sc-qpr1-dev am: f36dd3cc76 am: 16049eeb91 am: 20ca4489d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15645594

Change-Id: Id84987f0ab9a1fbe852574737c1bb69cadd3a4fe
2021-09-08 21:17:49 +00:00
SongFerng Wang
16049eeb91 Merge "VoNR toggle" into sc-qpr1-dev am: f36dd3cc76
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15645594

Change-Id: I3c4db256316ae816eb4ec3b71647135bdff4ccc7
2021-09-08 03:51:39 +00:00
Sooraj Sasindran
5dbec20ded VoNR toggle
Allow user to enable or disable voice over NR.

Bug: 190668235
Test: verified using settings UI
Change-Id: I655dc93c0b213e1b85b29b9a168f99072ca82186
2021-09-03 16:15:29 +00:00
Jooyung Han
b790f0d1e1 Merge "telephony: suppress warnings in AIDL" am: 89242df0c9 am: 05820c8ff6 am: f2e4340476 am: 8f1cfa2ae8 am: f4c2717d34
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1796511

Change-Id: I3c5c4ddd87e39578bf2c506308bf35b1f9c03f98
2021-08-27 10:22:18 +00:00
Jooyung Han
05820c8ff6 Merge "telephony: suppress warnings in AIDL" am: 89242df0c9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1796511

Change-Id: Id02daf502a31ee333ea368621f072efc07104323
2021-08-25 05:03:06 +00:00
Jooyung Han
133879b683 telephony: suppress warnings in AIDL
Warnings from using untyped List/Map. For now these List/Map can't be
migrated to typed ones because AIDL List/Map doesn't support Integer as
key/value types.

Bug: 192615532
Test: m
Change-Id: If55364b4ad4dc5660871f7eef051e12ec0399a70
2021-08-17 14:36:04 +09:00
SongFerngWang
0c13fd19ec Add getPhoneCapability function in TelephonyManager
- Add a resource for Device's Nr information.
- Expose below as systemApi
  - getDeviceNrCapabilityBitmask()
  - getMaxActiveInternetData()
  - getMaxActivePacketSwitchedVoiceCalls()
Bug: 175711587
Test: atest TelephonyManager#testGetPhoneCapability
atest PhoneCapabilityTest
atest PhoneConfigurationManagerTest
atest CellularNetworkValidatorTest
atest PhoneSwitcherTest
atest TelephonyRegistryTest
atest PhoneCapabilityTest

Change-Id: Ide25344787c15b3a57a9e6621766ad02a906f12e
Merged-In: Ide25344787c15b3a57a9e6621766ad02a906f12e
2021-07-20 23:59:19 +08:00
Calvin Pan
2c2c9541d1 Merge "Add TelephonyShellCommand to get EAB capability" into sc-dev am: ffc60f6f53 am: 473ae33ed2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15173031

Change-Id: I5bb94cb12ab2a8a5cc6fb01d1a48c86ba4ba9b50
2021-07-02 17:48:05 +00:00
Calvin Pan
252fdc0e38 Add TelephonyShellCommand to get EAB capability
Bug: 192370112
Test: atest
Change-Id: I1bccebd44f3f820b36f199804246d148cf58cfeb
2021-07-01 12:26:48 +00:00
Xin Li
48e70ad8bc DO NOT MERGE - Merge ab/7272582
Bug: 190855093
Merged-In: I81c036a8484d14683db9450b55bd379c7a728d73
Change-Id: I71fe9744d88740a8d95235ddb4c8ab91881473ce
2021-06-14 22:01:46 -07:00
Treehugger Robot
6feb8da529 Merge "Add API for SHELL command to set the capabilities request timeout." am: 49ec135724 am: 301caad026 am: 6727c2cbc5 am: 71e79106e2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1719881

Change-Id: I2f3a5859f0967b818f5882613bcc35a2b548c660
2021-05-27 23:05:15 +00:00