summaryrefslogtreecommitdiff
path: root/core/java/android/telephony/SubscriptionPlan.java
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Revert "Migrate unsafe parcel APIs in framework-minus-apex""Bernardo Rufino2022-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 331be9a6431d6489f8d1e1b80cb510d0ee073c50. 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
* Revert "Migrate unsafe parcel APIs in framework-minus-apex"Bernardo Rufino2022-01-121-1/+1
| | | | | | | | This reverts commit 90bb3709dc75f7e44914222114752de5bce133d4. Reason for revert: b/214053959 Change-Id: Ic271bab1d3eaf677a5989dda9deb944ee2ad6850
* Migrate unsafe parcel APIs in framework-minus-apexBernardo Rufino2021-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add method to reset network typesSarah Chin2020-03-201-0/+10
| | | | | | Test: build Bug: 148218045 Change-Id: Ia6eaba4e40fe47e79f8a7b6bcbadc61151d84823
* API review: SubscriptionPlan#getNetworkTypes/setNetworkTypesSarah Chin2020-03-161-10/+11
| | | | | | | | Default value is TelephonyManager#getAllNetworkTypes instead of null Test: atest SubscriptionManagerTest, DcTrackerTest Bug: 148218045 Change-Id: If7a46be43648a337ca11ca9dcb30bc532829ef43
* SubscriptionPlan: remove getNetworkTypesBitMaskMeng Wang2020-01-031-18/+0
| | | | | | | | To avoid using hidden API TelephonyManager#getBitMaskForNetworkType Bug: 140908357 Test: make Change-Id: Ibb04fd43117d4b7cf9f768e6ccf9a8f605a2f5e8
* Merge "SubscriptionPlan: move out of telephony" am: a11df59bb4 am: 968927d7ffMeng Wang2019-12-061-2/+56
| | | | | | am: 088c61aaf4 Change-Id: Idefd8043655b3ab11b62f73a36989a149db35856
* SubscriptionPlan: move out of telephonyMeng Wang2019-12-061-0/+339
Hidden APIs of SubscriptionPlan are used in system server, not telephopny. So it makes more sense for SubscriptionPlan to be in core instead of telephopny. Bug: 145814152 Test: make Change-Id: I4c7ae02f9f4f154c99263521e08265d6fb367272