summaryrefslogtreecommitdiff
path: root/core/java/android/util/ExceptionUtils.java
Commit message (Collapse)AuthorAgeFilesLines
* API for CDM wake-up opt-inEugene Susla2020-12-101-0/+2
| | | | | | Bug: 168052577 Test: presubmit Change-Id: I1cd1728099ddf374db4cf0e59f748ea3b655e1ba
* Couple fixes for M11nGestureHandlerEugene Susla2018-02-141-1/+13
| | | | | | | | | | 1. Added missing defensive copy for a MotionEvent that is posted asynchronously with delay, and thus might get recycled 2. Fixed transitioning to viewport dragging on 3tap/shortcut+swipe Test: manually ensure the fix is working Bug: 73359125 Change-Id: Iae8cd3a83512ee363abe9f0b5702287d7616c092
* MagnificationGestureHandler refactoring and unit testEugene Susla2017-08-311-0/+8
| | | | | | | | This is aimed at making MagnificationGestureHandler easier to understand and reason about Test: provided unit test + manual magnification test Change-Id: I958ef0bdd2e6f857a2fab24962b1a06480685732
* Unbind from service on app killed and dedup association requestsEugene Susla2017-03-241-2/+19
| | | | | | | | | | | | | | 1. Listen to calling package binder death stopping the scanning on that. 2. Don't restart scanning when a request with the same values was made. Bug: 30932767 Test: 1.: - Using a test app start scanning and kill the app. - In debug mode ensure that DeviceDiscoveryService#stopScan gets triggered 2.: - Start scanning and rotate the device while device chooser is visible - Ensure no visible loss of state is happening Change-Id: If126a2c963da90172a956fbd88e6b3dcd7ac8b01
* Record app<->device association to xml fileEugene Susla2017-03-061-0/+10
| | | | | | | | Bug: 30932767 Test: Ensure file not exists -> query associations -> ensure result is empty list Associate device -> cat xml file -> ensure record appears as extected Disassociate device -> cat xml file -> ensure record is no longer present Change-Id: Ibe456a6d9292e05e2391f5138e43fdaa37f87e1b
* Add Binder support for Parcelable exceptions.Jeff Sharkey2017-01-171-9/+5
| | | | | | | | | | | | | | | | | If an Exception thrown by a Binder call implements the Parcelable interface, then parcel it and rethrow back at the caller. There is strict requirement that these Parcelable exceptions must be defined by the system (as determined by checking the ClassLoader). We prefix the Parcelable contents with a length so that native code can skip over the blobs. Define a new ParcelableException class that can be used to transport exceptions that cannot be modified to add Parcelable behavior, and switch ExceptionUtils to use this new class for sending IOExceptions. Test: builds, boots, wrapped exceptions work Bug: 33749182 Change-Id: I1352ea1566ddf01120d9d0e819ba6f70fc407e11
* Mark resource-only splits as hasCode=false.Jeff Sharkey2014-07-151-0/+16
| | | | | | | | | PackageManagerService now skips dexopt for split APKs that don't declare they have code. Also surface more detailed error messages in logs. Bug: 14975160 Change-Id: Ie6078dba724815020cee59b7fc52317e88ca097a
* Package installation listener events.Jeff Sharkey2014-07-121-0/+42
Flesh out implementation of install session observers. Carve out 20% of published install progress for final system operations such as dexopt, etc. Add dumpsys output for active install sessions. Create explicit fsync() instead of overriding meaning of flush(). Hack to throw IOExceptions over Binder calls. Bug: 14975160, 15348430 Change-Id: I874457e40c45d2661bc0a526df9285ffea4bb77c