summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-09-30Merge cherrypicks of [12730462, 12730463, 12729574, 12730525, 12730638, ↵android-11.0.0_r15android-11.0.0_r14android-11.0.0_r13android-11.0.0_r12android11-d1-s7-releaseandroid11-d1-s6-releaseandroid11-d1-s5-releaseandroid11-d1-releaseandroid-build-team Robot
12730639, 12730640, 12730641, 12730642, 12730643, 12730564, 12730542, 12730526, 12730527, 12730543, 12729545, 12729634, 12730565, 12730531, 12730645, 12730545, 12730406] into rvc-d1-release Change-Id: I5883d945ba90e0adbee71aae302ace584ea4e1b7
2020-09-30libbinder_ndk: fix failure when dump/shell are unsetSteven Moreland
People directly using libbinder_ndk functions who didn't create a debug dump function function would fail to initialize that pointer, and potentially crash. Those who didn't create a shell function were guaranteed to crash. This wasn't noticed because the C++ wrappers which are the recommended way to use libbinder_ndk always set these functions. Bug: 161812320 Test: unit tests Merged-In: I1f6909531bc640097f3f48c4a558fd03f2fa62cb Change-Id: I1f6909531bc640097f3f48c4a558fd03f2fa62cb (cherry picked from commit deb5346761308d9cda3a249283a482a1ce08549e)
2020-08-08Snap for 6747166 from c080030e715082f7a910066bbcd8cc7a3a8500eb to rvc-d1-releaseandroid-11.0.0_r9android-11.0.0_r8android-11.0.0_r7android-11.0.0_r11android-11.0.0_r10android11-d1-s1-releaseandroid-build-team Robot
Change-Id: I8ecba258055b375c609477c3be4a96414e2e79fe
2020-08-07Fix refresh rate callback fan-out for choreographerAlec Mouri
* AChoreographer receives refresh rates from DisplayManager already, so there's no need to default-enable them - AChoreographer only needs to pump an event with the latest refresh rate to wake up looper. This also ensures that AChoreographer's callbacks are entirely in-sync with DisplayManager since there's no raciness. * Instead of re-requesting a config change from SF, instead inject it in AChoreographer correctly to save on binder. Bug: 154874011 Bug: 158680912 Bug: 161406626 Test: while [ true ]; do adb shell service call SurfaceFlinger 1035 i32 1; adb shell service call SurfaceFlinger 1035 i32 0; and repeatedly rotate the home screen with auto-rotate off. Change-Id: I66abc2e28e60f06987ce3a54be294c94b77524fc Merged-In: I66abc2e28e60f06987ce3a54be294c94b77524fc
2020-08-04Snap for 6732909 from 140f65189fd2aaa43bc991556a9678a4ff981731 to rvc-d1-releaseandroid-build-team Robot
Change-Id: Ia5e1b9d82a16a99ac2e6cbb69462fb30b300b21a
2020-08-03Merge "GpuService: secure setUpdatableDriverPath" into rvc-dev am: 916c766b31TreeHugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12257974 Change-Id: I630ad28304ca52e8c2d9cc759b2f93b3d204d87b
2020-08-03Merge "GpuService: secure setUpdatableDriverPath" into rvc-devTreeHugger Robot
2020-07-31Snap for 6723917 from bad1977db570ac0d137118b37eb10ba2728982ad to rvc-d1-releaseandroid-build-team Robot
Change-Id: I4ae47c81b3813729b4e2332c4b4e0c0935960e89
2020-07-30Merge "Surface: do not evict outstanding buffer in onBuffersDiscarded" into ↵Yin-Chia Yeh
rvc-d1-dev
2020-07-30Surface: do not evict outstanding buffer in onBuffersDiscardedYin-Chia Yeh
Due to the nature of async callback, onBufferDiscarded may arrive after a discarded slot has been occupied by a new buffer. Fix that issue by skipping currently dequeued slots. Test: Stress test script in the bug Bug: 161787265 Change-Id: Ia8fdd5f28c4b535bc5a7010b6ee0b16e375ec257
2020-07-30[automerger skipped] RESTRICT AUTOMERGE: Fix security bug am: 01f9863464 -s ↵Valerie Hau
ours am: d07402fc46 am: 431955c576 -s ours am: 9e8311faec Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12182445 Change-Id: I12239c021da8407fdac6ab560b0014939972b508
2020-07-30[automerger skipped] RESTRICT AUTOMERGE: Fix security bug am: 01f9863464 -s ↵Valerie Hau
ours am: d07402fc46 am: 431955c576 -s ours am skip reason: subject contains skip directive Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12182445 Change-Id: I0a155313d51bce5faab19e42adacbb91538fe368
2020-07-30[automerger skipped] RESTRICT AUTOMERGE: Fix security bug am: 01f9863464 -s ↵Valerie Hau
ours am: d07402fc46 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12182445 Change-Id: I90544d91bf5c71e93f98d946e2367c948758bc91
2020-07-30[automerger skipped] RESTRICT AUTOMERGE: Fix security bug am: 01f9863464 -s oursValerie Hau
am skip reason: subject contains skip directive Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12182445 Change-Id: I1b01642c20c96c5bc9cd32d867bb1c338ca13d8f
2020-07-28GpuService: secure setUpdatableDriverPathYiwei Zhang
setUpdatableDriverPath should only be called by system_server and developer driver path needs to be protected by a lock. Bug: 162383705 Bug: 159240322 Test: ./gapit validate_gpu_profiling --os android Change-Id: I48896325598acab89079dbc658ddf9b92d303244 Merged-In: I48896325598acab89079dbc658ddf9b92d303244
2020-07-23Snap for 6701819 from b96ea771e0c1916eeaee6b979a5f9d7848c0ed59 to rvc-d1-releaseandroid-build-team Robot
Change-Id: I23e9657467f3314b5b64dfd8c0ca48e53315d0d8
2020-07-22RESTRICT AUTOMERGE: Fix security bugValerie Hau
Small bug fix - || instead of && causing flickering and incorrect layer removal Bug: 150845631, 137284057 Test: build, boot, SurfaceFlinger_test, libsurfaceflinger_unittest, manual Change-Id: I6c4e5239254300c70b802aa935fb638412a445ee
2020-07-21libbinder: setMinSchedulerPolicySteven Moreland
This function on BBinder allows the minimum scheduling priority for incoming binder transactions to be set by the binder driver. This functionality was originally developed for libhwbinder and ported here. The main difference from libhwbider is that invalid priority sets cause an abort, whereas for libhwbinder, an error is returned. Unfortunately, that error is frequently ignored, and since this reflects static configuration, abort is considered a benefit. Note, since these functions aren't available in the R GSI, they have been marked as weak here, and are available optionally. (cherry picked from commit bf1915b6d85d3c222200ef5d5fd7745ed299b17b) Bug: 149933095 Test: binderLibTest Change-Id: Ie93aebb09f4142cd66d841ca8b3ca39d1e0bb75e Merged-In: Ie93aebb09f4142cd66d841ca8b3ca39d1e0bb75e
2020-07-18Snap for 6690120 from c7481bbeb35c8c64cf21e79794dafb615197dbf1 to rvc-d1-releaseandroid-build-team Robot
Change-Id: Ib6ec4819cb91e430e790a0a1fa683dd622e3051e
2020-07-17Fix TextureView calling eglCreateImage with a destructed buffer am: df8a0739f7Stan Iliev
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12174650 Change-Id: I619eabbcbba87981e5acf99b16ebcf8b736c940e
2020-07-16Fix TextureView calling eglCreateImage with a destructed bufferandroid-cts-11.0_r2android11-devStan Iliev
Fix an issue with hardware buffer passed from the SurfaceTexture being destroyed before an SkImage is created. This CL is matched by a change in frameworks/base I4d121f087fc842ce317745e7b7e2656f80a52b7d. Test: Ran TextureView CTS tests and a few apps that use TextureView. Test: Fix verified by partner Mediatek Bug: 160930384 Bug: 152781833 Bug: 153045874 Bug: 156047948 Bug: 160514803 Bug: 155545635 Bug: 155171712 Change-Id: I2e025e683052168546f2e271a20a857b1e556b64 (cherry picked from commit 0702f1d077bab79c76a4889d7859abbaabf06b81)
2020-07-15Snap for 6680365 from a22cda2c3294c945ef21f602f256bab413bc72ba to rvc-d1-releaseandroid-build-team Robot
Change-Id: I8f1e50734090cb5b36aa47b54292e8bc74d47f4a
2020-07-14Merge changes from topic "rvc.nb.rs" into rvc-dev am: 4b2220c0c0Victor Khimenko
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12128091 Change-Id: I22f2bafd363f0b9610d043b8b063a8bcdd61c28d
2020-07-14Make libarect buildable for native_bridge am: 3b8e3215a6Victor Khimenko
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12128088 Change-Id: I7292f6d44828d954a6a6140448fe1b3accd83d2d
2020-07-14Merge changes from topic "rvc.nb.rs" into rvc-devVictor Khimenko
* changes: Make libbinder buildable for native_bridge Make libarect buildable for native_bridge
2020-07-11Snap for 6672770 from a7c7360213e8b2969cb465cf488328c212eb22bf to rvc-d1-releaseandroid-build-team Robot
Change-Id: Idc461f908f20147c7fca9ce752a2fa753fa90aef
2020-07-10Make libbinder buildable for native_bridgeVictor Khimenko
Bug: http://b/153609531 Test: m libbinder.native_bridge Change-Id: I3955d9b54aaea7a6b5b9bde81a336908a849cde6 Merged-In: I3955d9b54aaea7a6b5b9bde81a336908a849cde6
2020-07-10Increase touch video buffer sizeSiarhei Vishniakou
We are currently limited to having 10 buffers max inside a TouchVideoDevice. That means that if too many frames are generated, we will start dropping them. The dropped frames will never make it to the InputClassifier HAL. Now that touch is at 180 Hz, this becomes even more of a problem. If the system is running slow, it is easy to overrun the buffer. Increase the buffer size to avoid dropping frames. Bug: 160016140 Test: none Change-Id: I3662236a518e908cec94c31bf7604eb830c3308a Merged-In: I3662236a518e908cec94c31bf7604eb830c3308a (cherry picked from commit 487938ec81c70076852b13d8ee49bf37bfa8290a)
2020-07-10Make libarect buildable for native_bridgeVictor Khimenko
Also make headers available for RenderScript. Bug: http://b/153609531 Test: m libarect.native_bridge Change-Id: Iee387d19d167d8b90f4bf3fae7869ea370025b9a Merged-In: Iee387d19d167d8b90f4bf3fae7869ea370025b9a
2020-07-10Snap for 6667917 from f708228c0255cadaa23d9b0a7129c495bd95b818 to rvc-d1-releaseandroid-build-team Robot
Change-Id: Ia998dd89402bebe48bf11cd13b098e9aba507237
2020-07-09Merge "Check if sensor is accessible on flush" into rvc-dev am: 9aacd0cffdTreeHugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12091816 Change-Id: I7efa988c3c6d7f01d9d50918553ac83d2e7bc8b3
2020-07-09Merge "Check if sensor is accessible on flush" into rvc-devTreeHugger Robot
2020-07-09Merge "SurfaceFlinger: only ExplicitDefault can use appRequestRange" into ↵Ady Abraham
rvc-dev am: 747819d612 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12089386 Change-Id: I74f3a9d8fc9a355b0544d4ce041120cf5dfa44e9
2020-07-09Merge "SurfaceFlinger: only ExplicitDefault can use appRequestRange" into ↵Ady Abraham
rvc-dev
2020-07-09Snap for 6664195 from e29fcaca9ab7cf58d177a6ce5618c92e0655b7f3 to rvc-d1-releaseandroid-build-team Robot
Change-Id: I6f357788ee450514520e468447651ed8e0f19061
2020-07-08Merge "SurfaceFlinger: Enable ealy offset for reused client composition" ↵TreeHugger Robot
into rvc-d1-dev
2020-07-08SurfaceFlinger: only ExplicitDefault can use appRequestRangeAdy Abraham
This change is limiting layers that are ExplicitExactOrMultiple from using a refresh rate outside of the primary range. When these layers are visible and there is an interaction with the device, we usually change the refresh rate due to other layers that are animating. Letting layers that are ExplicitExactOrMultiple to pick a refresh rate from the extended appRequestRange results in refresh rate changes which are not desired. Bug: 159940172 Test: YouTube when the device the primary range is restricted Change-Id: I6aa60c359d690a92342963cb14bdeece4e6d5c5f
2020-07-07Check if sensor is accessible on flushStan Rokita
In cases where halVersion is less than or equal to 1 or the sensor is virtual the sensor service does not first check that the sensor is accessible. This was causing failures for tests where a virtual sensor was used because the flush command was not returning error. Now INVALID_OPERATION is returned when flush is called on an idle sensor. Test: set IGNORE_HARDWARE_FUSION to true and cts-tradefed && run cts -m CtsSensorTestCases -t android.hardware.cts.SensorTest#testBatchAndFlushUidIdle which fails before this change, but passes now Bug: 160282248 Change-Id: I6860bcdb9be341b5e2025caf7606d071779c9b39
2020-07-06SurfaceFlinger: Enable ealy offset for reused client compositionYichi Chen
In the condition of reused client composition, SurfaceFlinger still needed to call 'validate' and 'presentDisplay' and resulted in longer execution time. Before we can enable skip validation in this case, we need to provide the early offset to fit HWC behavior. Bug: 160552879 Test: Check the Vsync offset in PIP Change-Id: I6d11c6b1409997f550cf2441bba67de08ffb25a8
2020-07-01Snap for 6643509 from 58bf1b3535fd88f7d8783893f2827aa6404ee02b to rvc-d1-releaseandroid-build-team Robot
Change-Id: I9699b40ab581f64cc13896bc98f945a23b76045d
2020-06-30Merge "SF: update VSP timebase on error condition" into rvc-dev am: 9b2526e50dKevin DuBois
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12014614 Change-Id: Ib53447f0ed40505b743b7a107bbb1f54b0c63370
2020-06-30Merge "SF: update VSP timebase on error condition" into rvc-devKevin DuBois
2020-06-29SF: update VSP timebase on error conditionKevin DuBois
When an vsync timestamp is recorded that is anonmolous to the currently recorded timestamp ringbuffer, update the timebase for synthetic calculations. Test: 2 new unit tests Test: visual spot checking interactions on pixel4 device Test: uibench a/b anti-regression Test: dogfood with patch based one recent rvc build. Fixes: 159882858 Change-Id: Ie201cd593a54586d9b1f488c6d2ca44178d75cf1
2020-06-27Snap for 6635542 from 22615145ca07a161a14f16c99cb8ffb2600e0826 to rvc-d1-releaseandroid-build-team Robot
Change-Id: I3b2c6481bb01d0c8521b632414794d7902e41860
2020-06-27Snap for 6633916 from e059d4003cb7d4772ccf16f20ee6af30ee26a957 to rvc-d1-releaseandroid-build-team Robot
Change-Id: Ia2ea98f4851fd9e5b42c9307ab9f093fc16f0b5b
2020-06-27[automerger skipped] Call Layer::getLayerDebugInfo from the main thread am: ↵Vishnu Nair
927b3b1208 -s ours am: bf6f3dec9f -s ours am: 1e4cccab8d -s ours am: f4beceb1e8 -s ours am skip reason: Change-Id I04daedcb9a890083cc710bab30b295e14b9872ae with SHA-1 b123f47bbd is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/11972490 Change-Id: I05a53d85e016016627883c7a15b526ac3392d313
2020-06-27[automerger skipped] Call Layer::getLayerDebugInfo from the main thread am: ↵Vishnu Nair
927b3b1208 -s ours am: bf6f3dec9f -s ours am: 1e4cccab8d -s ours am skip reason: Change-Id I04daedcb9a890083cc710bab30b295e14b9872ae with SHA-1 b123f47bbd is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/11972490 Change-Id: I6dedd9fe0db79fdbb6b0438e826bb79f268c4f51
2020-06-26[automerger skipped] Call Layer::getLayerDebugInfo from the main thread am: ↵Vishnu Nair
927b3b1208 -s ours am: bf6f3dec9f -s ours am skip reason: Change-Id I04daedcb9a890083cc710bab30b295e14b9872ae with SHA-1 b123f47bbd is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/11972490 Change-Id: I54d812d033e70db7c894d86478dbe9590d3c68bf
2020-06-26[automerger skipped] Call Layer::getLayerDebugInfo from the main thread am: ↵Vishnu Nair
927b3b1208 -s ours am skip reason: Change-Id I04daedcb9a890083cc710bab30b295e14b9872ae with SHA-1 b123f47bbd is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/11972490 Change-Id: I53cac8a7d2fc4efacab81cdee53cee592c59312c
2020-06-26Merge "SurfaceFlinger: only focused layers can use appRequestRange" into ↵Ady Abraham
rvc-dev am: 18c692ccd1 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12011138 Change-Id: I65430cb16784e0d12299fbf8bf6d22dffb6687e8