summaryrefslogtreecommitdiff
path: root/core/java/android/os/ServiceSpecificException.java
Commit message (Collapse)AuthorAgeFilesLines
* Add missing nullability annotations.Aurimas Liutikas2019-08-291-0/+2
| | | | | | | | | | | | | | To prepare for enabling MissingNullability Metalava check this CL works on adding missing nullability issues that metalava flags if we tell it to flag new things since API 29. This is not a complete CL, mostly addresses public api and toString/equals for @SystemApi Exempt-From-Owner-Approval: Large scale nullability clean up Bug: 124515653 Test: make -j checkapi Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
* Fix Automated API Review issues.paulhu2019-03-211-1/+2
| | | | | | | | | | | | | | | | These API's argument/return value must be marked either @NonNull or @Nullable. Bug: 126701148 Bug: 126699090 Bug: 126701058 Bug: 126700772 Bug: 126699941 Bug: 126701299 Bug: 126700007 Bug: 126700900 Test: atest FrameworksNetTests Change-Id: Id030a9f1116178b96aa3d4614b10969a537b2fc4
* Expose ServiceSpecificException as @SystemApi.Lorenzo Colitti2019-01-221-0/+3
| | | | | | | | | | | | | | This class is useful as a system API because: - It is one of the few exceptions that is natively Parcelable. - It is directly supported by native code without using JNI, using Status::fromServiceSpecificError. - Unlike other natively parcelable exceptions, it contains both an error message and an error code. Test: m Bug: 112869080 Change-Id: Ica3e88c2b6877e429a61b053d75f69b9f19fc74a
* Catch all exceptions from installd, log codes.Jeff Sharkey2016-12-121-0/+5
| | | | | | | | | | | | | Now that installd is throwing both SecurityException and IllegalArgumentException, it's time that we turned all these into InstallerException. Also extend ServiceSpecificException to include the contained errorCode value when printing. Test: builds, boots, apps install/uninstall fine Bug: 13758960, 30944031 Change-Id: Ic9c1e99ae87f4442402ef528bf352c7978572c85
* Camera2: Switch to auto-gen C++ binder interfacesEino-Ville Talvala2016-03-011-4/+7
| | | | | | | | | | | | | | - Move camera AIDL files to frameworks/av - Update makefiles to point to new AIDL locations - Adjust camera2 implementation to match modifications to AIDL needed for native AIDL auto-generation - Move Surface.aidl to frameworks/native to allow use in native AIDL. Use android::view::Surface in Surface JNI to serialize Surface objects to ensure parceling compatibility. - Adjust service binder tests to new interface Bug: 25091611 Change-Id: I85b817374b34a4540fa145328dbe4bbf7f746baf
* Rethrow remote's ServiceSpecificExceptionChristopher Wiley2015-12-041-0/+39
Certain system services would like to throw exceptions with specific error codes, so that the framework can catch these specific conditions and express them appropriately. Bug: 25800533 Change-Id: I94b3d30fa131f5e14bba893c971615840085459f