Commit Graph

4826 Commits

Author SHA1 Message Date
Treehugger Robot
108ec178ee Merge "Create EVENT_TRAFFIC_DESCRIPTORS_UPDATED" am: 35ac7e34ce am: d47e88e58c am: c15388da45 am: 39173ceda9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1917117

Change-Id: I1b0fe0c9642064a22485774bd523bbe47953dda8
2022-01-27 03:06:12 +00:00
Treehugger Robot
35ac7e34ce Merge "Create EVENT_TRAFFIC_DESCRIPTORS_UPDATED" 2022-01-27 01:49:59 +00:00
Hunter Knepshield
2526568630 APIs for SIM call manager voice status
This CL creates two new PhoneAccount capabilities for the SIM call
manager (and potentially telephony itself for PSTN PhoneAccounts) to
advertise that they support voice calling, potentially independent of
voice service state. With this information, telecom will feed updated
back into telephony for plumbing through the standard ServiceState-based
APIs.

Bug: 205737545
Test: atest android.telecom.cts.PhoneAccountOperationsTest
  (an additional CTS test for the TelephonyManager API will be added as
  a follow-up)
Change-Id: If7a5b03a7aa630823ac238ef27721e5e6cc596e6
2022-01-24 13:18:12 -08:00
Sandeep Jawalkar
c0168a8677 Merge "Adding compareIgnoreTrailingFs helper method to compare IccId's" 2022-01-24 09:29:26 +00:00
sandeepjs
9560590d89 Adding compareIgnoreTrailingFs helper method to compare IccId's
Test: build, manual
Bug: 213434330
Change-Id: I20c37c4178c269b71864220852ba067ff70191ba
2022-01-24 06:48:06 +00:00
Hakjun Choi
e120a5c163 Merge "Add public API to ProvisioningManager for IMS/RCS provisioning by updatable provisioning app" 2022-01-22 06:50:31 +00:00
Hakjun Choi
a9008580f4 Add public API to ProvisioningManager for IMS/RCS provisioning by
updatable provisioning app

Bug: 197992603
Test: CTS ImsServiceTest#testProvisioningManagerWhen(Mmtel/Rcs)ProvisionIs(Not)Required
Change-Id: I4fc0759111d15cec01a49a78cda5065bfb7e6c65
2022-01-20 05:46:33 +00:00
Bernardo Rufino
1a5cb387d6 Revert "Revert "Migrate unsafe parcel APIs in framework-minus-apex""
This reverts commit 331be9a643.

Reintroducing ag/16366278 since it seems unrelated to b/214053959 (more details on b/214053959#comment55).

Original commit message:

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
Change-Id: I272432e6e082a973f7a50492ec35d79c2b577c93
Test: TH passes
2022-01-19 11:13:18 +00:00
Jonggeon Kim
45ed6b9c92 Merge "ImsService Subscription Notifications" 2022-01-18 06:20:43 +00:00
Jonggeon Kim
235d7a46ca ImsService Subscription Notifications
Provide a new API in ImsService that creates a new version of each ImsFeature and dependencies when a new subId is loaded.
The ImsService handles ImsFeature setup and teardown procedures to happen on a per-subscription basis instead of on a per-slot basis.
Provide the compatibility behavior for older devices that are not upgrading to using the new API.

Bug: 197991451
Test: atest FrameworksTelephonyTests:ImsServiceTest, atest CtsTelephonyTestCases:ImsServiceTest

Change-Id: I231da2f4479d4a4fb272edbf27e49f46833a082a
2022-01-14 21:18:58 +00:00
Sooraj Sasindran
47dfd08b45 Merge "Add ril constant for slicing config change" am: daa74af0eb am: a646471f5e am: 00c7c02c46 am: a490c7ebf1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1945429

Change-Id: I70b4d40d04f1962835ca37e6b97e231fa0c4f3f8
2022-01-14 04:27:54 +00:00
Sooraj Sasindran
2dd968d7ef Add ril constant for slicing config change
Add ril constant for slicing config change

Test: build
Bug: 194332512
Change-Id: I5e81a3ba9118537e3dba1c45a2db253ff5bbdc8b
2022-01-13 17:00:34 +00:00
Ashwini Oruganti
776b439703 Merge "Revert "Migrate unsafe parcel APIs in framework-minus-apex"" 2022-01-12 23:07:08 +00:00
Bernardo Rufino
331be9a643 Revert "Migrate unsafe parcel APIs in framework-minus-apex"
This reverts commit 90bb3709dc.

Reason for revert: b/214053959

Change-Id: Ic271bab1d3eaf677a5989dda9deb944ee2ad6850
2022-01-12 17:44:44 +00:00
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
Sarah Chin
193815a0cf Create EVENT_TRAFFIC_DESCRIPTORS_UPDATED
Test: atest DataConnectionTest, DcTrackerTest
Bug: 198473491
Change-Id: Idc6ef705090192eb7f7d145b10616fb9ac3de074
2021-12-09 10:33:38 -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