summaryrefslogtreecommitdiff
path: root/core/java/android/view/SurfaceSession.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove SurfaceSession.nativeKillchaviw2021-02-091-8/+7
| | | | | | | | | | | | | | | SurfaceSession.nativeKill would call SurfaceComposerClient.dispose. This was unsafe since it would only clear the ISurfaceComposerClient binder object, but the SurfaceComposerClient object could still be around. Instead, when calling SurfaceSession.kill, just remove the Java reference, but allow the dtor of SurfaceComposerClient to handle disposing the binder object. Test: Force app to restart while in a sync transaction. No longer shows an error Fixes: 179459565 Change-Id: I322e7f3bd4e7efb3d85d1afe3c4704283f58a985
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-291-1/+2
| | | | | | | | | | | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. This is a resubmit of ag/12929664 with some APIs excluded that caused test failures; see bugs 171886397, 171888296, 171864568. APIs excluded: Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord; Landroid/os/Process;->myPpid()I Landroid/os/SharedMemory;->getFd()I Landroid/hardware/input/InputManager;->INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH:I Bug: 170729553 Test: Treehugger Change-Id: I8285daa8530260251ecad6f3f38f98e263629ca7
* Revert "Add maxTargetSdk restriction to unused APIs."Hongwei Wang2020-10-281-2/+1
| | | | | | | | | This reverts commit 72f07d6a8a32db4a0dedd7682a0b3385be2b9cd6. Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?testMethod=testAppZygotePreload&testClass=android.app.cts.ServiceTest&atpConfigName=suite%2Ftest-mapping-presubmit-retry_cloud-tf&testModule=CtsAppTestCases&fkbb=6936597&lkbb=6936969&lkgb=6936551&testResults=true&branch=git_master&target=cf_x86_phone-userdebug>, bug b/171886397 Bug: 171886397 Change-Id: Ibe0f0430a3451477c1ee8ef56a596e91ea1e7672
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-271-1/+2
| | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Change-Id: I4c8fd0006f950de9955242e93968fb0996ceb372
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I5be7335b23a92b8ac80d2fd890198273b66ad644
* Remove usage of scoped connections.Robert Carr2019-01-041-10/+0
| | | | | | | | | | | | Tracking SurfaceFlinger changes. Now to construct a child surface we need the SurfaceControl as opposed to just the surface, and so we parcel the SurfaceControl across relayout. Test: Manual Bug: 62536731 Bug: 111373437 Bug: 111297488 Change-Id: I0a034767e92becec63071d7b1e3e71b95d505b77
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-201-0/+5
| | | | | | | | | | | | | | | | | | | | | | For packages: android.view.textservice android.view.textclassifier.logging android.view.textclassifier android.view.inputmethod android.view.autofill android.view.accessibility android.view This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I4147b038ed7adf0311ee9918b44766f82a057eaf
* Check for valid surface when starting to dragRiddle Hsu2018-06-281-1/+6
| | | | | | | | Also protect creating SurfaceSession with root surface. Change-Id: I3649f160e85367169710b36faf26c96bef0f71fe Fix: 110922266 Test: atest CtsViewTestCases:android.view.cts.DragDropTest
* Modify SurfaceView to use SurfaceFlinger child surfaces.Robert Carr2017-03-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | | Here we have SurfaceView bypass the WindowManager and speak directly to SurfaceFlinger using child surfaces. We also implement some logic in the WM to handle child surfaces in various Surface replacement scenarios. For those following along in the revert Saga, this also includes the follow up CLs to the original CL. - Surface inset calculation - Animation fixes. The error causing the revert was an incorrect JNI signature around deferTransactionUntilSurface. I've noted it inline. Bug: 28858420 Bug: 31518219 Bug: 34888808 Bug: 35588318 Bug: 35396882 Test: Existing tests still pass (except for the ones that don't and will be deleted). Change-Id: Ie56b6f7ab16f32d7fc459b8eba26594337ad55de
* Revert "Modify SurfaceView to use SurfaceFlinger child surfaces."Wonsik Kim2017-03-081-5/+0
| | | | | | | | This reverts commit cd4aeef88052571365d4e193a2c41e2e6d145491. Bug: 36027342 Bug: 36015884 Change-Id: Ifd5b69caf64d65a8cd6570b7fe1fb6abe90e30b8
* Modify SurfaceView to use SurfaceFlinger child surfaces.Robert Carr2017-03-031-0/+5
| | | | | | | | | | | | | | | | | | | | | | | Here we have SurfaceView bypass the WindowManager and speak directly to SurfaceFlinger using child surfaces. We also implement some logic in the WM to handle child surfaces in various Surface replacement scenarios. For those following along in the revert Saga, this also includes the follow up CLs to the original CL. - Surface inset calculation - Animation fixes. The error causing revert was a deferTransactionUntil(-1)...-1 cast to uint, defer transaction until MAX_UINT. Bug: 28858420 Bug: 31518219 Bug: 34888808 Bug: 35588318 Bug: 35396882 Test: Existing tests still pass (except for the ones that don't and will be deleted). Change-Id: Ib37236950a1dd3c4f9f4b58fd41ef9003c0557ef
* Revert "Modify SurfaceView to use SurfaceFlinger child surfaces."Jeff Tinker2017-03-031-5/+0
| | | | | | | | | | | | | This reverts commit 693f3432ae77d1fcfaaf9d168de861192aacb4c4. P0: When playing encrypted content the Fugu displays a blank screen. Test: with topic "surfaceview-without-wm" reverted, encrypted playback works on ToT oc-release. See repro steps in 35917840#12. bug:35917840 Change-Id: I37fa1e427daff3a1c18ed1c92d035421d891f67c
* Modify SurfaceView to use SurfaceFlinger child surfaces.Robert Carr2017-02-281-0/+5
| | | | | | | | | | | | | | | Here we have SurfaceView bypass the WindowManager and speak directly to SurfaceFlinger using child surfaces. We also implement some logic in the WM to handle child surfaces in various Surface replacement scenarios. Bug: 28858420 Bug: 31518219 Bug: 34888808 Bug: 35588318 Bug: 35396882 Test: Existing tests still pass (except for the ones that don't and will be deleted). Change-Id: Icb7259365b51ebe8c7f6c7cd4f9ba29f9fce08a4
* AArch64: Use long for pointers in SurfaceSession classAshok Bhat2014-02-061-4/+4
| | | | | | | | For storing pointers, long is used in SurfaceSession class, as native pointers can be 64-bit. Change-Id: I1535a488dfffaddd20e3beac57e558035d715cbf Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
* Add plumbing for new surface flinger display API.Jeff Brown2012-08-271-11/+13
| | | | | | | | | | | | | | Cleaned up the implementation of Surface and SurfaceSession to use more consistent naming and structure. Added JNI for all of the new surface flinger display API calls. Enforced the requirement that all Surfaces created by the window manager be named. Updated the display manager service to use the new methods. Change-Id: I2a658f1bfd0437e1c6f9d22df8d4ffcce7284ca2
* Use new surface flinger API.Jeff Brown2012-08-271-13/+21
| | | | Change-Id: Ic888577408a59a36481a48010e19c5e77c24e211
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+49
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-49/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+49