No description
Find a file
Eric Chung a15f697353 Refine freeBuffer in Mapper 2.0
When users call Mapper:freeBuffer, Mapper will erase buffer handle from mBufferHandles.
No matter the result of free buffer handle returned from gralloc, buffer handle is removed from mBufferHandles.
This means that a buffer handle can not be freed twice, even if it fail to be freed at the first time.
Because users will receive nullptr when they call freeBuffer to free the same bufferHandle at the second time.

When freeBuffer is called, Mapper only looks for input buffer in mBufferHandles instead of erasing it from mBufferHandles.
If the result of freeBuffer returned by gralloc is NONE, then remove the buffer handle from mBufferHandles.

Test: Manual
Bug: 141145482

Change-Id: I4e27f54eb219f23a5844d6b440d7160b296c31e2
2019-09-17 01:12:06 +00:00
atrace/1.0 Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
audio Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
authsecret/1.0 Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
automotive Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
biometrics Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
bluetooth Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
boot/1.0 Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
broadcastradio Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
camera Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
cas Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
compatibility_matrices Deprecate thermal@1.1 HAL for launching devices. 2019-08-23 09:32:34 -07:00
configstore Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
confirmationui Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
contexthub/1.0 Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
drm Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
dumpstate/1.0 Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
fastboot/1.0 Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
gatekeeper/1.0 Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
gnss Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
graphics Refine freeBuffer in Mapper 2.0 2019-09-17 01:12:06 +00:00
health Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
input Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
ir/1.0 Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
keymaster Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
light Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
media DO NOT MERGE - Merge pie-platform-release (PPRL.190705.004) into master 2019-07-09 15:22:03 -07:00
memtrack/1.0 Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
neuralnetworks Cleanup NNAPI VTS tests 2019-08-30 11:17:32 -07:00
nfc Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
oemlock/1.0 Update hidl makefiles for bpfmt 2019-04-17 09:38:50 -07:00
power Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
prebuilt_hashes power@1.3 is for P. 2019-04-23 12:51:21 -07:00
radio Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
renderscript/1.0 Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
secure_element Update hidl makefiles for bpfmt 2019-04-17 09:38:50 -07:00
sensors Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
soundtrigger Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
tests Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
tetheroffload Update hidl makefiles for bpfmt 2019-04-17 09:38:50 -07:00
thermal Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
tv Tuner HAL Demux Filter VTS 2019-09-06 22:40:40 +00:00
usb Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
vibrator Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
vr/1.0 Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
weaver/1.0 Update hidl makefiles for bpfmt 2019-04-17 09:38:50 -07:00
wifi Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
.clang-format Replace clang-format with symlink. 2019-01-18 14:26:33 -08:00
Android.bp Remove libhwbinder/libhidltransport deps 2019-09-06 01:07:02 +00:00
CleanSpec.mk Remove configstore 1.2 2019-02-27 12:22:54 +09:00
current.txt Merge "Fix V1_2::IDevice::getType documentation: was @param instead of @return" 2019-08-29 11:14:21 -07:00
MODULE_LICENSE_APACHE2 Apache2 module license. 2016-08-30 11:28:36 -07:00
NOTICE Apache2 module license. 2016-08-30 11:28:36 -07:00
OWNERS Add restricted OWNERS for .hal/.aidl files. 2019-08-09 15:07:49 -07:00
PREUPLOAD.cfg Keymaster should be developed in AOSP 2019-08-01 15:52:53 -07:00
update-base-files.sh Adding Dataspace BT2020_SRGB and ColorMode BT2020_SRGB 2018-10-22 11:19:52 -07:00
update-makefiles.sh Remove update scripts for VTS makefiles. 2019-02-28 10:32:51 -08:00