OSDN Git Service
Siarhei Vishniakou [Thu, 28 Feb 2019 16:16:26 +0000 (08:16 -0800)]
Initialize PointerCoords in input tests
The struct PointerCoords in VelocityTracker_test is created on the
stack, but never initialized. Later, the coords are used to add an x and
y value to the MotionEvent.
The field "bits" in the struct is therefore initialized to whatever was
previously occupying that stack address.
It is possible that stack contained some non-zero data. This would cause
enough of the bits of the 'bits' variable to be set, but without any of
them being X or Y. As a result, when a new X or Y value is assigned, it
does not fit into the bits (there's a 30-axes limit), and therefore
remains at zero.
Later, when velocity is computed, the coordinates evaluate to zero, and
therefore, zero velocity is produced. The test fails, because a non-zero
velocity is expected.
After an audit of the entire Android codebase for usage of
PointerCoords, found another potential issue in InputClassifier_test.
Likely the code was copied over from VelocityTracker_test. Add a fix for
that as well.
Bug:
126536349
Test: atest -it -a libinput_tests, but only executed after building and
flashing asanified libinput and libinput_tests onto device.
Change-Id: Id8b870b6201d7489284bf9fc646750770bb9321a
TreeHugger Robot [Thu, 28 Feb 2019 23:56:21 +0000 (23:56 +0000)]
Merge "Game Driver Metrics: make gpu stats info parcelable"
Yiwei Zhang [Thu, 28 Feb 2019 05:05:06 +0000 (21:05 -0800)]
Game Driver Metrics: make gpu stats info parcelable
This change also rename the GpuStats*Atom to GpuStats*Info because we'd
like to make GpuStats generic to all the authorized recipients, but atom
is too specific to statsd.
Bug:
126560138
Test: adb shell dumpsys gpu --gpustats
Change-Id: Ie071277ae849a32607979d07aca7682febaf4368
TreeHugger Robot [Thu, 28 Feb 2019 18:44:52 +0000 (18:44 +0000)]
Merge "Move PublicFormat from libandroid_runtime to libui"
Sean Callanan [Thu, 28 Feb 2019 18:14:02 +0000 (18:14 +0000)]
Merge "SF: Add defensive check on luma sampling"
Wale Ogunwale [Thu, 28 Feb 2019 16:03:49 +0000 (16:03 +0000)]
Merge "Revert "Caching between SF and HWC for BufferStateLayers""
Wale Ogunwale [Thu, 28 Feb 2019 15:53:59 +0000 (15:53 +0000)]
Revert "Caching between SF and HWC for BufferStateLayers"
This reverts commit
b28f007e51fb84ff78ce8b053d80efb0efdbce20.
Reason for revert: Causing pre-submit failure b/
126704033
Change-Id: I17c99cd410b3fa3825d01fedd21a52451368b5c0
Kevin Rocard [Thu, 28 Feb 2019 05:19:58 +0000 (05:19 +0000)]
Merge "Expose allowAudioPlaybackCapture to PackageManagerNative"
TreeHugger Robot [Thu, 28 Feb 2019 03:12:18 +0000 (03:12 +0000)]
Merge "SurfaceFlinger: add getAllowedDisplayConfigs"
Kevin Rocard [Fri, 22 Feb 2019 17:49:24 +0000 (09:49 -0800)]
Expose allowAudioPlaybackCapture to PackageManagerNative
Audio playback has both c++ and java API.
The flag is needed in the audio policy service in c++ to know if the app
can be captured by other apps.
Bug:
119500128
Test: dumpsys media.audio_policy
Change-Id: I949b5e31039b024a34a9646a18586cff5f8807ab
Signed-off-by: Kevin Rocard <krocard@google.com>
TreeHugger Robot [Thu, 28 Feb 2019 00:22:50 +0000 (00:22 +0000)]
Merge "Game Driver: dump driver package info in dumpsys gpu"
Jooyung Han [Thu, 21 Feb 2019 06:02:58 +0000 (15:02 +0900)]
Move PublicFormat from libandroid_runtime to libui
PublicFormat is defined in android_view_Surface.
However this and related functions are also used in libmediandk
which is both NDK and LL-NDK. As a LL-NDK it should run without
libandroid_runtime.
By moving PublicFormat definition and its utility functions
into libui, LL-NDK can use it without cost of libandroid_runtime.
And also PublicFormat will be deprecated(b/
126594675).
This is a part cutting dependency from libmediandk to
libandroid_runtime.
Note: applied clang-format
Bug:
124268753
Test: m -j
Change-Id: I7215dde607b425f7a0d47a6541b83fbe3a0deaf4
Valerie Hau [Wed, 27 Feb 2019 21:45:35 +0000 (21:45 +0000)]
Merge "Caching between SF and HWC for BufferStateLayers"
Nataniel Borges [Wed, 27 Feb 2019 21:12:36 +0000 (21:12 +0000)]
Merge "Remove id from RegionProto object"
Ady Abraham [Tue, 26 Feb 2019 22:08:03 +0000 (14:08 -0800)]
SurfaceFlinger: add getAllowedDisplayConfigs
Add an API to ISurfaceComposer to get allowed display configurations.
Test: manual test that calls getAllowedDisplayConfigs()
Bug:
122905403
Change-Id: Ieeb04f0d002ecfb2dbb0acd22ef6f659806c3950
Yiwei Zhang [Wed, 27 Feb 2019 19:27:18 +0000 (11:27 -0800)]
Game Driver: dump driver package info in dumpsys gpu
Bug:
126560138
Test: adb shell dumpsys gpu
Change-Id: I7215e68f32a83bc8efa631e296033ea7c7983a34
TreeHugger Robot [Wed, 27 Feb 2019 17:58:34 +0000 (17:58 +0000)]
Merge "SF: tidy comments for luma sampling."
Valerie Hau [Wed, 20 Feb 2019 18:36:29 +0000 (10:36 -0800)]
Caching between SF and HWC for BufferStateLayers
Bug:
120434937
Test: build, boot,libcompositionengine_test
Change-Id: I4a99faeb7aa88683aac19c7000db87bd75f9ebe9
tangrobin [Tue, 26 Feb 2019 10:10:10 +0000 (18:10 +0800)]
SF: Add defensive check on luma sampling
The Add/Remove RegionSamplingListener should return BAD_VALUE
if the input was invalid.
Bug:
119639245
Test: ./libgui_test --gtest_filter="RegionSamplingTest.*"
Change-Id: I5c5f7a30131c52dead970b23230058a62a874902
TreeHugger Robot [Wed, 27 Feb 2019 04:14:44 +0000 (04:14 +0000)]
Merge "SurfaceFlinger: fix flakiness in IdleTimerTest"
Peiyong Lin [Wed, 27 Feb 2019 02:12:10 +0000 (02:12 +0000)]
Merge "[SurfaceFlinger] Add GPU protected content support."
TreeHugger Robot [Wed, 27 Feb 2019 01:34:13 +0000 (01:34 +0000)]
Merge "Game Driver: add GpuStats class to process and dump stats"
TreeHugger Robot [Wed, 27 Feb 2019 00:33:22 +0000 (00:33 +0000)]
Merge changes I7c51f161,I9231f4b4
* changes:
SF: Remove LayerBE
SF: Refactor onLayerDisplayed
TreeHugger Robot [Wed, 27 Feb 2019 00:01:45 +0000 (00:01 +0000)]
Merge changes from topic "display_policy"
* changes:
SurfaceFlinger: add DISPLAY_EVENT_CONFIG_CHANGED
SurfaceFlinger: add setAllowedDisplayConfigs
Nataniel Borges [Fri, 15 Feb 2019 23:29:39 +0000 (15:29 -0800)]
Remove id from RegionProto object
The region proto object contains an Id, which is assigned to the memory
address of the Region object.
This information is not necessary on winscope traces, remove.
Test: Flash a device. Collect a SF trace. Open trace in winscope. Check
if Id for region objects is removed from the property list
Change-Id: I4f91745d79d9f1812915836e5e7ac3b416c2052a
Nataniel Borges [Wed, 27 Feb 2019 00:00:12 +0000 (00:00 +0000)]
Merge "Don't store empty objects on SF traces"
Yiwei Zhang [Mon, 25 Feb 2019 06:28:08 +0000 (22:28 -0800)]
Game Driver: add GpuStats class to process and dump stats
Bug:
123529932
Test: adb shell dumpsys gpu
Change-Id: I2d524b1eecb00be71d344c07e8e18244a44bbcb8
TreeHugger Robot [Tue, 26 Feb 2019 21:58:42 +0000 (21:58 +0000)]
Merge changes from topic "frameworks/opengl/sync-gen"
* changes:
glgen: sync generator with manual changes
Sync generator script with manual Java changes
Nicolas Geoffray [Tue, 26 Feb 2019 21:18:12 +0000 (13:18 -0800)]
Merge "Use DEX2OATBOOTCLASSPATH in installd." am:
95ea7b751a am:
0fde25e90d
am:
8525a5557e
Change-Id: Ibeec24813af48a5142959fd77ec206486afed204
Nicolas Geoffray [Tue, 26 Feb 2019 21:09:54 +0000 (13:09 -0800)]
Merge "Use DEX2OATBOOTCLASSPATH in installd." am:
95ea7b751a
am:
0fde25e90d
Change-Id: I6d71f82f41f4341f9866591f978de333bf8092a5
TreeHugger Robot [Tue, 26 Feb 2019 21:08:35 +0000 (21:08 +0000)]
Merge "gui: add test for region sampling"
Nicolas Geoffray [Tue, 26 Feb 2019 21:01:35 +0000 (13:01 -0800)]
Merge "Use DEX2OATBOOTCLASSPATH in installd."
am:
95ea7b751a
Change-Id: Iddddc8bbef7feb2188b991d46ef4c3d28d50011c
Peiyong Lin [Fri, 8 Feb 2019 01:25:12 +0000 (17:25 -0800)]
[SurfaceFlinger] Add GPU protected content support.
Switch to protected context when a layer with protected contents presents.
Previously we black out layers with protected contents, now that we add support
of protected contents in GPU composition, we can turn it on. In screenshot
cases for Recents, we still black out layers with protected contents.
BUG:
35315015
Test: Build, flash and boot
Test: Watch Youtube movie, verifed by force GPU composition.
Change-Id: I556bdd6f82c06c3d54ce62fab06a8c6f47599dcf
Nicolas Geoffray [Tue, 26 Feb 2019 20:38:32 +0000 (20:38 +0000)]
Merge "Use DEX2OATBOOTCLASSPATH in installd."
Alec Mouri [Tue, 26 Feb 2019 18:31:07 +0000 (18:31 +0000)]
Merge "Add output fb cache to renderengine"
Orion Hodson [Tue, 26 Feb 2019 16:57:18 +0000 (16:57 +0000)]
glgen: sync generator with manual changes
Syncs generator to accomodate manual changes to checked-in sources.
Adds note to EGL15.cpp that file is automatically generated.
Bug:
126352534
Bug:
124064285
Test: gen and diff based on generated command lines.
Change-Id: I31909de4c077679dec0323761fb06f388d128a14
Orion Hodson [Tue, 26 Feb 2019 15:47:59 +0000 (15:47 +0000)]
Sync generator script with manual Java changes
Incorporate manual changes to generated Java files back into the
generator.
Bug:
126352534
Bug:
124338141
Test: ./gen and check output has no commands for java files to be run.
Change-Id: Ie5f48d704b1485316718ae19b20016a08e688916
Nicolas Geoffray [Tue, 26 Feb 2019 15:47:03 +0000 (07:47 -0800)]
Merge "Query the enable_apex_image flag from native experiment." am:
2cb4a0538f am:
15326fb133
am:
6186bfd2b6
Change-Id: I1a45757cec416206b34b8c63fb68a9d77242c0c7
Nicolas Geoffray [Tue, 26 Feb 2019 15:42:46 +0000 (07:42 -0800)]
Merge "Query the enable_apex_image flag from native experiment." am:
2cb4a0538f
am:
15326fb133
Change-Id: I305d96d9d5764a843cb8a070c70c987723b308be
Nicolas Geoffray [Tue, 26 Feb 2019 15:38:26 +0000 (07:38 -0800)]
Merge "Query the enable_apex_image flag from native experiment."
am:
2cb4a0538f
Change-Id: I35770107e30df01ef38c64926eec072b2a76a951
Nicolas Geoffray [Tue, 26 Feb 2019 15:26:17 +0000 (15:26 +0000)]
Merge "Query the enable_apex_image flag from native experiment."
Nicolas Geoffray [Fri, 22 Feb 2019 21:42:45 +0000 (21:42 +0000)]
Use DEX2OATBOOTCLASSPATH in installd.
Bug:
119800099
Bug:
122937705
Test: dexopt_test
Change-Id: Ie31762910a51ddb1211eed6a24456f0a70379d9c
TreeHugger Robot [Tue, 26 Feb 2019 13:03:14 +0000 (13:03 +0000)]
Merge "add display_primary* to sysprop"
Shafik Nassar [Tue, 26 Feb 2019 12:18:38 +0000 (04:18 -0800)]
Merge "Whitelist the staging directory in installd" am:
99ba118644 am:
3c86bd1dba
am:
67e702ae57
Change-Id: I5fc45c2b1864b52a8b23dea383c0ba9708e0b716
Kevin DuBois [Thu, 14 Feb 2019 20:59:43 +0000 (12:59 -0800)]
gui: add test for region sampling
Adds a test that checks the correct luma is produced under a few
scenarios with different layerings.
Bug:
119639245
Test: ./libgui_test --gtest_filter="RegionSamplingTest.*"
Change-Id: Ic85a97f475a3414a79d3719bbd0b2b648bbccfb0
Shafik Nassar [Tue, 26 Feb 2019 11:25:09 +0000 (03:25 -0800)]
Merge "Whitelist the staging directory in installd" am:
99ba118644
am:
3c86bd1dba
Change-Id: I3541435ea245841079e34ea5bb7dc704dd3330df
Shafik Nassar [Tue, 26 Feb 2019 11:15:35 +0000 (03:15 -0800)]
Merge "Whitelist the staging directory in installd"
am:
99ba118644
Change-Id: I5be2f0d4a82e7e352453371a3ca5f8d6e46ab2d3
Shafik Nassar [Tue, 26 Feb 2019 10:59:50 +0000 (10:59 +0000)]
Merge "Whitelist the staging directory in installd"
Xin Li [Tue, 26 Feb 2019 03:18:26 +0000 (19:18 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge pi-dev@
5234907 into stage-aosp-master" into stage-aosp-master am:
d65a2e6283 -s ours
am:
e93f01cd75 -s ours
am skip reason: subject contains skip directive
Change-Id: I0509d61ba16b2919e7145e3763f7054c41464b87
Xin Li [Tue, 26 Feb 2019 02:54:33 +0000 (18:54 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge pi-dev@
5234907 into stage-aosp-master" into stage-aosp-master
am:
d65a2e6283 -s ours
am skip reason: subject contains skip directive
Change-Id: I4c6db4219a673da35e0666c1b51051d93ab38da9
TreeHugger Robot [Tue, 26 Feb 2019 02:08:00 +0000 (02:08 +0000)]
Merge "Add enum type for supported HDR metadata"
Ady Abraham [Tue, 26 Feb 2019 01:25:57 +0000 (17:25 -0800)]
SurfaceFlinger: fix flakiness in IdleTimerTest
Increase the timeout of waiting for reset callback to avoid flakinessas
a result of poor scheduling.
Test: adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest --gtest_filter=IdleTimerTest* --gtest_repeat=1000
Change-Id: Ib87aebab4474baaa6583b9481137a268fafed368
Xin Li [Tue, 26 Feb 2019 01:16:35 +0000 (17:16 -0800)]
[automerger skipped] DO NOT MERGE - Merge pi-dev@
5234907 into stage-aosp-master am:
5f4277821a -s ours
am:
3f29cb565f -s ours
am skip reason: subject contains skip directive
Change-Id: Ic02ee51e4fe9dfe34ad4440da057bd258b6397d1
Pawin Vongmasa [Thu, 21 Feb 2019 16:43:45 +0000 (08:43 -0800)]
Add enum type for supported HDR metadata
Test: Builds
Bug:
112508112
Bug:
120990898
Change-Id: If6e01bad9275b057d9bdbe963a25b7a26b7198a2
Xin Li [Tue, 26 Feb 2019 00:13:59 +0000 (16:13 -0800)]
[automerger skipped] DO NOT MERGE - Merge pi-dev@
5234907 into stage-aosp-master
am:
5f4277821a -s ours
am skip reason: subject contains skip directive
Change-Id: I3d4582885b96c96308856ff969fce86a2b51edc3
Nataniel Borges [Fri, 15 Feb 2019 22:11:58 +0000 (14:11 -0800)]
Don't store empty objects on SF traces
Proto3 doesn't store default values for object, however, it stored the
object start-end tags if an empty object was created.
Do not create objects when they are empty
Test: Flash a device. Record SF trace. Open them in the new winscope
version with "display defaults" unchecked. Check if there are no empty
objects
Change-Id: I3f48047e43e9c62c572d5b83e63a0f96527ef146
Rob Carr [Mon, 25 Feb 2019 23:57:26 +0000 (23:57 +0000)]
Merge "Exclude secure layers from most screenshots taken by the system server."
Alec Mouri [Mon, 25 Feb 2019 23:52:18 +0000 (23:52 +0000)]
Merge "Report DispSync model updates in the correct place."
Kevin DuBois [Mon, 25 Feb 2019 22:53:28 +0000 (14:53 -0800)]
SF: tidy comments for luma sampling.
Tidying of const, comment and one internal fn name for
Region Luma sampling.
Test: libgui_test --gtest_filter="RegionSamp*"
Change-Id: I46895c8ed5b2e2045d7ce7444085585b62b5ab6e
TreeHugger Robot [Mon, 25 Feb 2019 21:36:20 +0000 (21:36 +0000)]
Merge "Rename resampling property"
Ady Abraham [Thu, 14 Feb 2019 00:07:27 +0000 (16:07 -0800)]
SurfaceFlinger: add DISPLAY_EVENT_CONFIG_CHANGED
Add a new event to DisplayEventReceiver for display
configuration change. This event is sent by SF when display config
is changed.
Test: adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest
Bug:
122905403
Change-Id: Ibb7e0ce7b83b91259ccb0e9c982f5e378b0ebfaf
Ady Abraham [Mon, 4 Feb 2019 18:24:03 +0000 (10:24 -0800)]
SurfaceFlinger: add setAllowedDisplayConfigs
Add an API to ISurfaceComposer to set allowed display configurations.
This API is expected to be called by DisplayManager depends on the
current policy in place. Once setAllowedDisplayConfigs is called,
SF can only set a new display config if it is part of the allowed
configurations list.
Test: call setAllowedDisplayConfigs() from backdoor and
observe config change.
Bug:
122905403
Change-Id: I1d0a3649bbe7a08efeb72dc270f0b2df330b021c
Nandana Dutt [Mon, 25 Feb 2019 19:58:32 +0000 (11:58 -0800)]
Merge "Rename IDumpstateListener errorcode" am:
d7d075fbf6 am:
c943242ff9
am:
c6c5cdde65
Change-Id: I898f3d7363946d9fdda92afac5babf43b5ef2dc1
Nandana Dutt [Mon, 25 Feb 2019 19:57:12 +0000 (11:57 -0800)]
Merge "Log duration reporter to logcat" am:
86d900ff2d am:
46fe8a946d
am:
66cc69fe9c
Change-Id: I3eba5e7434484ac1add403109b69ce754a3bb26a
Nikita Ioffe [Mon, 25 Feb 2019 19:55:36 +0000 (11:55 -0800)]
[automerger skipped] Merge "installd: parameterize user data snapshots with snapshot_id" am:
8a3c8b1a94 am:
bfa5131193
am:
a20fc9399a -s ours
am skip reason: change_id I4177a44a60cdfdc5429a28c613ce661b24482b8b with SHA1
b68f0d1493 is in history
Change-Id: I7627b17fffb6749937c925498a06af3721cd92b1
Narayan Kamath [Mon, 25 Feb 2019 19:54:15 +0000 (11:54 -0800)]
Merge "dumpstate: Fix IO Errors during zip writing." am:
01f59ce0f6 am:
48d93b7298
am:
8cc3318b1c
Change-Id: I9965667c7ce7762d567f1a59a0995324138542da
Alec Mouri [Tue, 12 Feb 2019 23:33:01 +0000 (15:33 -0800)]
Add output fb cache to renderengine
On some devices this can shave off multiple milliseconds.
Bug:
123107664
Test: manual tests, systrace
Change-Id: If29b1753f899fec03852fb1ddaaa1a245f68424b
Alec Mouri [Fri, 22 Feb 2019 21:40:36 +0000 (13:40 -0800)]
Report DispSync model updates in the correct place.
Otherwise, metrics sometimes aren't updated in the right spot.
Also, add the reference time to detailed trace info, as it's important
for event calculation.
Bug:
124383894
Test: systrace
Change-Id: I4ad834fc2076600116831e0f6c38c6ee8f178c11
Nandana Dutt [Mon, 25 Feb 2019 18:24:58 +0000 (10:24 -0800)]
Merge "Rename IDumpstateListener errorcode" am:
d7d075fbf6
am:
c943242ff9
Change-Id: I2a8b3bf992243d3d5508248127e690e050f925e3
Nandana Dutt [Mon, 25 Feb 2019 18:23:55 +0000 (10:23 -0800)]
Merge "Log duration reporter to logcat" am:
86d900ff2d
am:
46fe8a946d
Change-Id: I787245655aecb9dadc8c868fe63d68a5d147d971
Nikita Ioffe [Mon, 25 Feb 2019 18:22:58 +0000 (10:22 -0800)]
Merge "installd: parameterize user data snapshots with snapshot_id" am:
8a3c8b1a94
am:
bfa5131193
Change-Id: Ic32854f8ae690a7ca745a0513515b7c499f59c05
Narayan Kamath [Mon, 25 Feb 2019 18:21:54 +0000 (10:21 -0800)]
Merge "dumpstate: Fix IO Errors during zip writing." am:
01f59ce0f6
am:
48d93b7298
Change-Id: I503c787c5e24ac2082f387ee2fac319f722cfd94
Siarhei Vishniakou [Thu, 21 Feb 2019 15:27:39 +0000 (09:27 -0600)]
Rename resampling property
The resampling property is currently '*.noresample', which is confusing
because it is false by default.
Test: enable 'DEBUG_RESAMPLING', in InputTransport, then touch the screen to see that
events are being resampled. This can be seen in the logcat.
Next, run 'adb shell setprop ro.input.resampling 0', adb shell stop &&
start and touch screen again. See that resampling is no longer active.
Bug:
119214052
Change-Id: I9cea4515f7b064b6a745abeef3309a6e97205c54
Nicolas Geoffray [Mon, 25 Feb 2019 13:31:10 +0000 (13:31 +0000)]
Query the enable_apex_image flag from native experiment.
Bug:
119800099
Test: m
Change-Id: Ibcd90840b4342fae14307ef7f30eec96d58a698b
TreeHugger Robot [Mon, 25 Feb 2019 16:52:26 +0000 (16:52 +0000)]
Merge "Test InputDeviceIdentifier::getCanonicalName"
TreeHugger Robot [Mon, 25 Feb 2019 10:04:25 +0000 (10:04 +0000)]
Merge "Game Driver: add dumpsys interface to GpuService"
Yiwei Zhang [Sun, 24 Feb 2019 01:53:27 +0000 (17:53 -0800)]
Game Driver: add dumpsys interface to GpuService
This change also factored some formats in GpuService.
Bug:
123529932
Test: adb shell dumpsys gpu
Change-Id: I9a89c044cc78a43fa4ff2ce1d389a518679bc6b7
TreeHugger Robot [Sat, 23 Feb 2019 06:57:44 +0000 (06:57 +0000)]
Merge "Merge metadata from transaction instead of replace"
Xin Li [Sat, 23 Feb 2019 00:39:18 +0000 (00:39 +0000)]
Merge "DO NOT MERGE - Merge pi-dev@
5234907 into stage-aosp-master" into stage-aosp-master
TreeHugger Robot [Sat, 23 Feb 2019 00:34:21 +0000 (00:34 +0000)]
Merge "blast: adding a buffer doesn't make the frame dirty"
TreeHugger Robot [Fri, 22 Feb 2019 23:48:28 +0000 (23:48 +0000)]
Merge "Remove spamming logs from ProducerChannel"
Yiwei Zhang [Fri, 22 Feb 2019 21:45:56 +0000 (21:45 +0000)]
Merge "Game Driver: add required sphal libraries to game driver namespace"
Tianyu Jiang [Fri, 22 Feb 2019 19:11:14 +0000 (11:11 -0800)]
Remove spamming logs from ProducerChannel
Change-Id: I86aba99d6c07e0606a6f512129bca48314f16d20
Fix:
125846981
Test: run on walleye_xr target and no more spamming logs.
Marissa Wall [Fri, 22 Feb 2019 18:50:32 +0000 (10:50 -0800)]
blast: adding a buffer doesn't make the frame dirty
The frame shouldn't be marked as dirty when a new buffer is set.
When a frame is marked as dirty, it forces SurfaceFlinger to do
extra work on the CPU which hurts power/performance.
Bug:
125859110
Test: Take a systrace when running the Blast Chrome.apk. Check that
there is no extra work done.
Change-Id: I0cf9802f495a7e9f2e5b1f4e58f0a7a4a75d8225
Dan Stoza [Mon, 17 Dec 2018 23:35:09 +0000 (15:35 -0800)]
[sf] Implement addSamplingListener
Implements ISurfaceComposer::addSamplingListener, which allows a client
to receive streaming median luma updates for a given region of the
screen.
Bug:
119639245
Test: Manual using SamplingDemo in libgui
Test: Automated libgui_test in Ic85a97f475a3414a79d3719bbd0b2b648bbccfb0
Change-Id: Ic52359aeab884e734a806372be0eb4e327c45298
Nandana Dutt [Fri, 22 Feb 2019 08:54:16 +0000 (00:54 -0800)]
Merge "Rename IDumpstateListener errorcode"
am:
d7d075fbf6
Change-Id: I2d37f696f9236fe36378a56ee5a0937771ce43a1
Nandana Dutt [Fri, 22 Feb 2019 08:43:48 +0000 (08:43 +0000)]
Merge "Rename IDumpstateListener errorcode"
Sundong Ahn [Mon, 18 Feb 2019 06:51:53 +0000 (15:51 +0900)]
add display_primary* to sysprop
The display_primary* properties is added for getDisplayNativePrimaries
function. Since this function is changed from configstore to sysrpop for
removing configstore 1.2
Bug:
124531214
Test: m -j && boot test && atest libsurfaceflinger_unittest
Change-Id: Ibe22aadab1095e624dc498a743f343f301dc4ea6
TreeHugger Robot [Fri, 22 Feb 2019 04:56:32 +0000 (04:56 +0000)]
Merge "Plumb fence from dequeueBuffer into renderengine"
Alec Mouri [Fri, 8 Feb 2019 00:57:51 +0000 (16:57 -0800)]
Plumb fence from dequeueBuffer into renderengine
This defers blocking from the ui thread, to the gpu driver, so
SurfaceFlinger can continue work without waiting on an old frame.
Bug:
123107664
Test: manual tests
Change-Id: Ied4ba84dd3fe63c65470ae3396dec0cb667a5ff0
Alec Mouri [Fri, 22 Feb 2019 02:52:50 +0000 (02:52 +0000)]
Merge "More accurate frames missed for client composited frames."
TreeHugger Robot [Fri, 22 Feb 2019 02:27:34 +0000 (02:27 +0000)]
Merge "Use InputDeviceIdentifier.getCanonicalName"
Chavi Weingarten [Thu, 21 Feb 2019 23:33:44 +0000 (23:33 +0000)]
Merge "Add synchronous transaction to wait for setInputWindow to complete (4/n)"
TreeHugger Robot [Thu, 21 Feb 2019 23:07:50 +0000 (23:07 +0000)]
Merge "Replace non-alphanumerics with _ in VirtualKeyMap"
Robert Carr [Tue, 19 Feb 2019 18:05:00 +0000 (10:05 -0800)]
Exclude secure layers from most screenshots taken by the system server.
In pre-P versions of Android, it was allowed to screenshot secure layers if the
buffer queue producer which was the target of the screenshot was owned by
the system (in this case SurfaceFlinger). This really was a synonym for:
The screen rotation animation was allowed to capture secure layers, but the other
code paths weren't. In O we mistakenly changed this check to always allow the system server
to capture secure layers via the captureScreen path (the captureLayers path used for
TaskSnapshots was unaffected). This can result in data leakage in cases where the
system server takes screenshots on behalf of other parts of the system (e.g. for
the assistant). To mitigate this we provide an explicit switch for the system server
to specify whether it wishes to capture Secure layers. While this is dangerous, I think
it is less dangerous than the previous implicit switch of capturing secure layers based on which
type of BufferQueue was passed in. The flag defaults to not capturing secure layers
and we set it to true in the one place we need it (for the screen rotation animation).
Non privileged clients can still not capture secure layers at all directly.
Test: SetFlagsSecureEUidSystem
Bug:
120610669
Change-Id: I288ad3bbb0444306e90fe3bb15e51b447539dea5
Siarhei Vishniakou [Thu, 21 Feb 2019 20:37:06 +0000 (14:37 -0600)]
Test InputDeviceIdentifier::getCanonicalName
We recently added a function to InputDeviceIdentifier from
InputDevice.h. Add a test for that function here.
Bug:
113575658
Test: atest libinput_tests inputflinger_tests
Change-Id: Ifc6aa1a0731a3800526746b989d32c7e72fdb3f3
Siarhei Vishniakou [Thu, 21 Feb 2019 01:36:25 +0000 (19:36 -0600)]
Use InputDeviceIdentifier.getCanonicalName
Currently, there are 2 places with identical logic in InputDevice.cpp.
This is because the file name adjustment to only contain
alphanumerics, dash, and underscore is done for virtual key maps and for
other devices together.
Use the recently added api to simplify this. Also, this will prevent
having to iterate through Vendor_*_Product_* filenames, since those are
already guaranteed to be compliant.
Bug:
113575658
Test: atest libinput_tests inputflinger_tests
Change-Id: Icb22f6e76b83b6d7d170b9e537787f0455db1c1f
Siarhei Vishniakou [Thu, 21 Feb 2019 01:22:09 +0000 (19:22 -0600)]
Replace non-alphanumerics with _ in VirtualKeyMap
We currently rewrite device name for finding the matching .idc, .kl,
.kcm files, but we aren't allowing this for virtual key maps.
Rewrite the name for virtual devices to provide some flexibility in
matching for the right files in sys/board_properties.
Bug:
113575658
Test: atest libinput_tests inputflinger_tests
Change-Id: I54d159e9ecf02327cae388ae14c0bcf21c415e6e
Nandana Dutt [Thu, 21 Feb 2019 19:13:47 +0000 (11:13 -0800)]
Merge "Log duration reporter to logcat"
am:
86d900ff2d
Change-Id: I2ac8e95d3700764b2e98a49bfcd40fe8dbdf4a18
Treehugger Robot [Thu, 21 Feb 2019 19:00:12 +0000 (19:00 +0000)]
Merge "Log duration reporter to logcat"