Commit Graph

4811 Commits

Author SHA1 Message Date
Grace Jia
d9bdab733f Merge "Add new API for new feature of display name." am: e43f70afc7 am: bacd6a4a11 am: 93e2d21187 am: aa6e8fff87
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1807961

Change-Id: I28ae3bf23808bca60b474969f4a0b90e9747e682
2022-01-06 20:23:29 +00:00
Grace Jia
e43f70afc7 Merge "Add new API for new feature of display name." 2022-01-06 18:59:37 +00:00
Chen Xu
855f028893 Merge "Make switchToSubscription use PendingIntent" 2022-01-06 06:18:11 +00:00
Meng Wang
692533e342 Merge "Add getPhoneNumber/setPhoneNumber API" 2022-01-05 23:04:27 +00:00
Sarah Chin
569fbec7ef Merge "Add Constants for UsageSetting" 2022-01-05 20:06:20 +00:00
sandeepjs
6afa68e472 [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
Merged-In: I71e4e1ef649b7301d126dde23d53783761de940f
2022-01-03 12:12:52 +00:00
Jordan Liu
805e7d12b7 Make switchToSubscription use PendingIntent
Bug: 205504646
Test: manual
Change-Id: Ieec385ee6b054d2c6392c4a45eb501eb876cdd0a
2021-12-30 19:22:22 -08:00
Nathan Harold
cb861c0f76 Add Constants for UsageSetting
Bug: 210023167
Test: compilation
Merged-In: Ief078770b44719e105828bb61d3768ad24e277dd
Change-Id: Ief078770b44719e105828bb61d3768ad24e277dd
(cherry picked from commit 793736cced)
2021-12-29 09:42:12 -08:00
Muralidhar Reddy
eb2712bb2f [MEP] Do not pass portIndex to disableProfile, derive portIndex from the passing iccid. Partially revert T API change ag/15808958, disableProfile remains unchanged for Android T
Bug: 211955076
Test: manual, atest FrameworksTelephonyTests
Change-Id: I5803251e6ecaac1d8a19c7d6870fb4f8382048b1
2021-12-28 11:06:22 +00:00
Meng Wang
04dd910a49 Add getPhoneNumber/setPhoneNumber API
Bug: 193539271
Test: make
Change-Id: Iac651f2ca4269f20a2c7e87c7b6edf1d6c992867
Merged-In: Iac651f2ca4269f20a2c7e87c7b6edf1d6c992867
(cherry picked from commit 0594b4f490)
2021-12-21 22:23:33 +00:00
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
jimsun
6fb25dc35a Add mock modem service operations in Telephony
Bug: 205101043
Bug: 203241555
Test: manual
Change-Id: I65127fc43c62b52e3efaa99d06bf77855aab7bb0
Merged-In: I65127fc43c62b52e3efaa99d06bf77855aab7bb0
2021-12-16 17:02:34 +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
Sooraj Sasindran
5d02dbb7bf Allow renounce location permission
Allow renounce location permission

Bug: 198533763
Test: CTS
Merged-In: I10872f34603441da2cf80f1f2976f3f3ca0ff6c2
Change-Id: I10872f34603441da2cf80f1f2976f3f3ca0ff6c2
2021-12-14 13:25:04 -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
Grace Jia
cc16b0403c Add new API for new feature of display name.
Bug: 181383364
Test: BlockedNumberProvider test
Change-Id: I13c0ea3451b78ce5c7352f1f3fa15a28ae9bfa1f
2021-12-01 21:34:04 +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