summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/PhoneAccountSuggestion.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
* Merge "API tweaks" am: f3fbbeaa05 am: 4c3e0ccfa5Hall Liu2019-03-061-5/+8
|\ | | | | | | | | | | am: fe12d8de3f Change-Id: I13342f7735adb24240c4ca34245f93e3d7579d78
| * API tweaksHall Liu2019-03-061-5/+8
| | | | | | | | | | | | | | | | | | | | | | * Make the PhoneAccountSuggestion ctor public * Change protection level of the bind-suggestion-service permission to signature-only. Fixes: 126442573 Fixes: 126442403 Test: CTS Change-Id: Ic6d44989efd28420a5e9e7e9c365318538d140bb
* | Merge "Revert "API tweaks"" am: c61bb461b6 am: 8230f428e4Wei Sheng Shih2019-03-061-8/+5
|\ \ | | | | | | | | | | | | | | | am: fdc3dc5670 Change-Id: I53aba1bcac7bc5aabba152dcb9f6510befba4f69
| * | Revert "API tweaks"Wei Sheng Shih2019-03-061-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit f3e0eb8b0c9e334138b0e663dfb498e34144877b. Reason for revert: Droid Cop revert this CL due to it cause Cts fail on PermissionPolicyTest.testPlatformPermissionPolicyUnaltered Change-Id: I062b2b9f25dbf388940930a81fd8e036b82b7f45
* | | Merge "API tweaks" am: 13152049e9 am: cc8f17b2ddHall Liu2019-03-051-5/+8
|\| | | | | | | | | | | | | | | | | am: aa1483ec38 Change-Id: Id177c76677cbe3c8b0ef6b9a0fcc235ca223c069
| * | API tweaksHall Liu2019-03-041-5/+8
| |/ | | | | | | | | | | | | | | | | | | | | * Make the PhoneAccountSuggestion ctor public * Change protection level of the bind-suggestion-service permission to signature-only. Fixes: 126442573 Fixes: 126442403 Test: CTS Change-Id: Ie1616e86df6814e4aa05659d4aa3aca1959519d2
* | Merge "API tweaks round 2" am: 3c0a49ec48 am: 87d1b7a83eHall Liu2019-03-011-2/+3
|\| | | | | | | | | | | am: dfe5bcebd5 Change-Id: Ibec797ea98e43ef450fe6a095550c5c73c4f8604
| * API tweaks round 2Hall Liu2019-02-281-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add nullability annotations and change a static constant to a method that returns a value. Fixes: 126702861 Fixes: 126699926 Fixes: 126698717 Fixes: 126699057 Fixes: 126701443 Fixes: 126700882 Test: compiles Change-Id: I96396eb8890b8b5148cf74447e08c31983398e47
* | All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
|/ | | | | | | | | If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
* Enable CTS testing for phone account suggestionsHall Liu2018-12-171-0/+16
| | | | | | | | | Add TestApi annotation on PhoneAccountSuggestionService and add sensible equals and hashCode methods to PhoneAccountSuggestions Bug: 111455117 Test: CTS Change-Id: I112e350cc637cb086252c53be5e08596e743537d
* Add docs and more annotationsHall Liu2018-12-101-1/+54
| | | | | | | | | | Add docs to some constants in PhoneAccountSuggestion and add @TestApi annotations to enable CTS testing for the new APIs. Test: compiles Bug: 111455117 Change-Id: I2b55a411ff4f0da37eefa0996f7316ea53bca41d
* Add PhoneAccountSuggestion classHall Liu2018-12-061-0/+82
Add parcelable data class for the phone acct suggestion feature. Test: TBD Bug: 111455117 Change-Id: I6d5368133abfc076ccb2e6ddfff70de8b6a56e8f