OSDN Git Service

android-x86/frameworks-native.git
5 years agoRemove dependency with configstore 1.2
Sundong Ahn [Fri, 22 Feb 2019 02:57:38 +0000 (11:57 +0900)]
Remove dependency with configstore 1.2

The configstore 1.2 is deleted. So cut the dependency with configstore
1.2.

Bug: 124531214
Test: build & boot
Test: adb shell lshal | grep configstore & check configstore 1.2
Change-Id: Ic6b1875e4cf62d45176b83f69a48382c4d9c05c8

5 years agoMerge "Revert "SurfaceFlinger: add stack guards around SurfaceFlinger::postComposition""
TreeHugger Robot [Fri, 1 Mar 2019 05:26:34 +0000 (05:26 +0000)]
Merge "Revert "SurfaceFlinger: add stack guards around SurfaceFlinger::postComposition""

5 years agoMerge "SF: Fix for a leaked mock reported in processesVirtualDisplayAdded"
TreeHugger Robot [Fri, 1 Mar 2019 04:03:01 +0000 (04:03 +0000)]
Merge "SF: Fix for a leaked mock reported in processesVirtualDisplayAdded"

5 years agoMerge "SurfaceFlinger: fix dispatching DISPLAY_EVENT_CONFIG_CHANGED"
TreeHugger Robot [Fri, 1 Mar 2019 03:13:20 +0000 (03:13 +0000)]
Merge "SurfaceFlinger: fix dispatching DISPLAY_EVENT_CONFIG_CHANGED"

5 years agoMerge "Fix ctad-maybe-unsupported warning"
Yi Kong [Fri, 1 Mar 2019 02:09:40 +0000 (02:09 +0000)]
Merge "Fix ctad-maybe-unsupported warning"

5 years agoMerge "Clean up Renderengine caching semantics"
Alec Mouri [Fri, 1 Mar 2019 01:47:14 +0000 (01:47 +0000)]
Merge "Clean up Renderengine caching semantics"

5 years agoRevert "SurfaceFlinger: add stack guards around SurfaceFlinger::postComposition"
Ady Abraham [Fri, 1 Mar 2019 00:08:33 +0000 (16:08 -0800)]
Revert "SurfaceFlinger: add stack guards around SurfaceFlinger::postComposition"

This reverts commit 8164d48b4cb5f27ebb74e7f03875eb2b3b4b89b0.

Test: boot and open some apps
Bug: 122839222
Change-Id: I5ed78c6380a7a96af3c4435f2de1ca40452a71d3

5 years agoMerge "Game Driver Metrics: make gpu stats info parcelable"
TreeHugger Robot [Thu, 28 Feb 2019 23:56:21 +0000 (23:56 +0000)]
Merge "Game Driver Metrics: make gpu stats info parcelable"

5 years agoSF: Fix for a leaked mock reported in processesVirtualDisplayAdded
Lloyd Pique [Wed, 27 Feb 2019 00:26:09 +0000 (16:26 -0800)]
SF: Fix for a leaked mock reported in processesVirtualDisplayAdded

I'm not sure why it only started being reported  recently, but removing
the injected virtual display from the SurfaceFlinger current/drawing
state fixes the leak.

Bug: None
Test: adb shell libsurfaceflinger_unittest
Change-Id: Ibaf1a8878e296707b9fbbd0a647908cc1205cdc2

5 years agoClean up Renderengine caching semantics
Alec Mouri [Wed, 20 Feb 2019 03:46:38 +0000 (19:46 -0800)]
Clean up Renderengine caching semantics

* Add unbindExternalTextureBuffer, so that callers such as
BufferLayerConsumer can help manage the cache directly, which improves
system utilization.
* Remove the CacheHint, as it's no longer needed.
* Remove the backing image cache in BufferLayerConsumer, as it has not
been used. We still need a shadow array to properly callback into
RenderEngine, but we no longer need to store EGLImages here.

Bug: 123107664
Test: systrace
Test: open and close apps with GL composition forced, check for buffer
leakage through dumpsys
Change-Id: Ie48f99868dd46a4e18b5d659eea520e97a9eb300

5 years agoFix ctad-maybe-unsupported warning
Yi Kong [Thu, 28 Feb 2019 19:58:32 +0000 (11:58 -0800)]
Fix ctad-maybe-unsupported warning

The upcoming compiler warns about the following code pattern:

frameworks/native/libs/gui/SurfaceComposerClient.cpp:192:5: error: 'lock_guard' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported]                                                                                                                                                  std::lock_guard lock(mMutex);

Add explicit deduction guide to fix the warning.

Test: m checkbuild
Change-Id: I4b8b22cdd9b9714d0dfc56c1590a19fcdfbbeb07

5 years agoGame 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

5 years agoMerge "Move PublicFormat from libandroid_runtime to libui"
TreeHugger Robot [Thu, 28 Feb 2019 18:44:52 +0000 (18:44 +0000)]
Merge "Move PublicFormat from libandroid_runtime to libui"

5 years agoSurfaceFlinger: fix dispatching DISPLAY_EVENT_CONFIG_CHANGED
Ady Abraham [Thu, 28 Feb 2019 01:05:30 +0000 (17:05 -0800)]
SurfaceFlinger: fix dispatching DISPLAY_EVENT_CONFIG_CHANGED

When setting a new desired config, we might be in the middle of a
previous config changed. We need to maintain the information about
whether we need to generate a config changed event and dispatch it when
we are done with the config switch.

Test: manual test to change config from SF
Bug: 122905403
Change-Id: I7efad63b666e83f6459a65a40e6cc880119ca7f6

5 years agoMerge "SF: Add defensive check on luma sampling"
Sean Callanan [Thu, 28 Feb 2019 18:14:02 +0000 (18:14 +0000)]
Merge "SF: Add defensive check on luma sampling"

5 years agoMerge "Revert "Caching between SF and HWC for BufferStateLayers""
Wale Ogunwale [Thu, 28 Feb 2019 16:03:49 +0000 (16:03 +0000)]
Merge "Revert "Caching between SF and HWC for BufferStateLayers""

5 years agoRevert "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

5 years agoMerge "Expose allowAudioPlaybackCapture to PackageManagerNative"
Kevin Rocard [Thu, 28 Feb 2019 05:19:58 +0000 (05:19 +0000)]
Merge "Expose allowAudioPlaybackCapture to PackageManagerNative"

5 years agoMerge "SurfaceFlinger: add getAllowedDisplayConfigs"
TreeHugger Robot [Thu, 28 Feb 2019 03:12:18 +0000 (03:12 +0000)]
Merge "SurfaceFlinger: add getAllowedDisplayConfigs"

5 years agoExpose allowAudioPlaybackCapture to PackageManagerNative
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>
5 years agoMerge "Game Driver: dump driver package info in dumpsys gpu"
TreeHugger Robot [Thu, 28 Feb 2019 00:22:50 +0000 (00:22 +0000)]
Merge "Game Driver: dump driver package info in dumpsys gpu"

5 years agoMove PublicFormat from libandroid_runtime to libui
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

5 years agoMerge "Caching between SF and HWC for BufferStateLayers"
Valerie Hau [Wed, 27 Feb 2019 21:45:35 +0000 (21:45 +0000)]
Merge "Caching between SF and HWC for BufferStateLayers"

5 years agoMerge "Remove id from RegionProto object"
Nataniel Borges [Wed, 27 Feb 2019 21:12:36 +0000 (21:12 +0000)]
Merge "Remove id from RegionProto object"

5 years agoSurfaceFlinger: add getAllowedDisplayConfigs
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

5 years agoGame Driver: dump driver package info in dumpsys gpu
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

5 years agoMerge "SF: tidy comments for luma sampling."
TreeHugger Robot [Wed, 27 Feb 2019 17:58:34 +0000 (17:58 +0000)]
Merge "SF: tidy comments for luma sampling."

5 years agoCaching between SF and HWC for BufferStateLayers
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

5 years agoSF: Add defensive check on luma sampling
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

5 years agoMerge "SurfaceFlinger: fix flakiness in IdleTimerTest"
TreeHugger Robot [Wed, 27 Feb 2019 04:14:44 +0000 (04:14 +0000)]
Merge "SurfaceFlinger: fix flakiness in IdleTimerTest"

5 years agoMerge "[SurfaceFlinger] Add GPU protected content support."
Peiyong Lin [Wed, 27 Feb 2019 02:12:10 +0000 (02:12 +0000)]
Merge "[SurfaceFlinger] Add GPU protected content support."

5 years agoMerge "Game Driver: add GpuStats class to process and dump stats"
TreeHugger Robot [Wed, 27 Feb 2019 01:34:13 +0000 (01:34 +0000)]
Merge "Game Driver: add GpuStats class to process and dump stats"

5 years agoMerge changes I7c51f161,I9231f4b4
TreeHugger Robot [Wed, 27 Feb 2019 00:33:22 +0000 (00:33 +0000)]
Merge changes I7c51f161,I9231f4b4

* changes:
  SF: Remove LayerBE
  SF: Refactor onLayerDisplayed

5 years agoMerge changes from topic "display_policy"
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

5 years agoRemove id from RegionProto object
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

5 years agoMerge "Don't store empty objects on SF traces"
Nataniel Borges [Wed, 27 Feb 2019 00:00:12 +0000 (00:00 +0000)]
Merge "Don't store empty objects on SF traces"

5 years agoGame Driver: add GpuStats class to process and dump stats
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

5 years agoMerge changes from topic "frameworks/opengl/sync-gen"
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

5 years agoMerge "Use DEX2OATBOOTCLASSPATH in installd." am: 95ea7b751a am: 0fde25e90d
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

5 years agoMerge "Use DEX2OATBOOTCLASSPATH in installd." am: 95ea7b751a
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

5 years agoMerge "gui: add test for region sampling"
TreeHugger Robot [Tue, 26 Feb 2019 21:08:35 +0000 (21:08 +0000)]
Merge "gui: add test for region sampling"

5 years agoMerge "Use DEX2OATBOOTCLASSPATH in installd."
Nicolas Geoffray [Tue, 26 Feb 2019 21:01:35 +0000 (13:01 -0800)]
Merge "Use DEX2OATBOOTCLASSPATH in installd."
am: 95ea7b751a

Change-Id: Iddddc8bbef7feb2188b991d46ef4c3d28d50011c

5 years ago[SurfaceFlinger] Add GPU protected content support.
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

5 years agoMerge "Use DEX2OATBOOTCLASSPATH in installd."
Nicolas Geoffray [Tue, 26 Feb 2019 20:38:32 +0000 (20:38 +0000)]
Merge "Use DEX2OATBOOTCLASSPATH in installd."

5 years agoMerge "Add output fb cache to renderengine"
Alec Mouri [Tue, 26 Feb 2019 18:31:07 +0000 (18:31 +0000)]
Merge "Add output fb cache to renderengine"

5 years agoglgen: sync generator with manual changes
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

5 years agoSync generator script with manual Java changes
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

5 years agoMerge "Query the enable_apex_image flag from native experiment." am: 2cb4a0538f am...
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

5 years agoMerge "Query the enable_apex_image flag from native experiment." am: 2cb4a0538f
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

5 years agoMerge "Query the enable_apex_image flag from native experiment."
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

5 years agoMerge "Query the enable_apex_image flag from native experiment."
Nicolas Geoffray [Tue, 26 Feb 2019 15:26:17 +0000 (15:26 +0000)]
Merge "Query the enable_apex_image flag from native experiment."

5 years agoUse DEX2OATBOOTCLASSPATH in installd.
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

5 years agoMerge "add display_primary* to sysprop"
TreeHugger Robot [Tue, 26 Feb 2019 13:03:14 +0000 (13:03 +0000)]
Merge "add display_primary* to sysprop"

5 years agoMerge "Whitelist the staging directory in installd" am: 99ba118644 am: 3c86bd1dba
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

5 years agogui: add test for region sampling
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

5 years agoMerge "Whitelist the staging directory in installd" am: 99ba118644
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

5 years agoMerge "Whitelist the staging directory in installd"
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

5 years agoMerge "Whitelist the staging directory in installd"
Shafik Nassar [Tue, 26 Feb 2019 10:59:50 +0000 (10:59 +0000)]
Merge "Whitelist the staging directory in installd"

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-maste...
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

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-maste...
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

5 years agoMerge "Add enum type for supported HDR metadata"
TreeHugger Robot [Tue, 26 Feb 2019 02:08:00 +0000 (02:08 +0000)]
Merge "Add enum type for supported HDR metadata"

5 years agoSurfaceFlinger: fix flakiness in IdleTimerTest
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

5 years ago[automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master am...
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

5 years agoAdd enum type for supported HDR metadata
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

5 years ago[automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
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

5 years agoDon't store empty objects on SF traces
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

5 years agoMerge "Exclude secure layers from most screenshots taken by the system server."
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."

5 years agoMerge "Report DispSync model updates in the correct place."
Alec Mouri [Mon, 25 Feb 2019 23:52:18 +0000 (23:52 +0000)]
Merge "Report DispSync model updates in the correct place."

5 years agoSF: tidy comments for luma sampling.
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

5 years agoMerge "Rename resampling property"
TreeHugger Robot [Mon, 25 Feb 2019 21:36:20 +0000 (21:36 +0000)]
Merge "Rename resampling property"

5 years agoSurfaceFlinger: add DISPLAY_EVENT_CONFIG_CHANGED
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

5 years agoSurfaceFlinger: add setAllowedDisplayConfigs
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

5 years agoMerge "Rename IDumpstateListener errorcode" am: d7d075fbf6 am: c943242ff9
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

5 years agoMerge "Log duration reporter to logcat" am: 86d900ff2d am: 46fe8a946d
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

5 years ago[automerger skipped] Merge "installd: parameterize user data snapshots with snapshot_...
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

5 years agoMerge "dumpstate: Fix IO Errors during zip writing." am: 01f59ce0f6 am: 48d93b7298
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

5 years agoAdd output fb cache to renderengine
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

5 years agoReport DispSync model updates in the correct place.
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

5 years agoMerge "Rename IDumpstateListener errorcode" am: d7d075fbf6
Nandana Dutt [Mon, 25 Feb 2019 18:24:58 +0000 (10:24 -0800)]
Merge "Rename IDumpstateListener errorcode" am: d7d075fbf6
am: c943242ff9

Change-Id: I2a8b3bf992243d3d5508248127e690e050f925e3

5 years agoMerge "Log duration reporter to logcat" am: 86d900ff2d
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

5 years agoMerge "installd: parameterize user data snapshots with snapshot_id" am: 8a3c8b1a94
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

5 years agoMerge "dumpstate: Fix IO Errors during zip writing." am: 01f59ce0f6
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

5 years agoRename resampling property
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

5 years agoQuery the enable_apex_image flag from native experiment.
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

5 years agoMerge "Test InputDeviceIdentifier::getCanonicalName"
TreeHugger Robot [Mon, 25 Feb 2019 16:52:26 +0000 (16:52 +0000)]
Merge "Test InputDeviceIdentifier::getCanonicalName"

5 years agoMerge "Game Driver: add dumpsys interface to GpuService"
TreeHugger Robot [Mon, 25 Feb 2019 10:04:25 +0000 (10:04 +0000)]
Merge "Game Driver: add dumpsys interface to GpuService"

5 years agoGame 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

5 years agoMerge "Merge metadata from transaction instead of replace"
TreeHugger Robot [Sat, 23 Feb 2019 06:57:44 +0000 (06:57 +0000)]
Merge "Merge metadata from transaction instead of replace"

5 years agoMerge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp...
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

5 years agoMerge "blast: adding a buffer doesn't make the frame dirty"
TreeHugger Robot [Sat, 23 Feb 2019 00:34:21 +0000 (00:34 +0000)]
Merge "blast: adding a buffer doesn't make the frame dirty"

5 years agoMerge "Remove spamming logs from ProducerChannel"
TreeHugger Robot [Fri, 22 Feb 2019 23:48:28 +0000 (23:48 +0000)]
Merge "Remove spamming logs from ProducerChannel"

5 years agoMerge "Game Driver: add required sphal libraries to game driver namespace"
Yiwei Zhang [Fri, 22 Feb 2019 21:45:56 +0000 (21:45 +0000)]
Merge "Game Driver: add required sphal libraries to game driver namespace"

5 years agoRemove spamming logs from ProducerChannel
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.

5 years agoblast: adding a buffer doesn't make the frame dirty
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

5 years ago[sf] Implement addSamplingListener
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

5 years agoMerge "Rename IDumpstateListener errorcode"
Nandana Dutt [Fri, 22 Feb 2019 08:54:16 +0000 (00:54 -0800)]
Merge "Rename IDumpstateListener errorcode"
am: d7d075fbf6

Change-Id: I2d37f696f9236fe36378a56ee5a0937771ce43a1

5 years agoMerge "Rename IDumpstateListener errorcode"
Nandana Dutt [Fri, 22 Feb 2019 08:43:48 +0000 (08:43 +0000)]
Merge "Rename IDumpstateListener errorcode"

5 years agoadd display_primary* to sysprop
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

5 years agoMerge "Plumb fence from dequeueBuffer into renderengine"
TreeHugger Robot [Fri, 22 Feb 2019 04:56:32 +0000 (04:56 +0000)]
Merge "Plumb fence from dequeueBuffer into renderengine"

5 years agoPlumb 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