OSDN Git Service

android-x86/frameworks-native.git
6 years agoMerge "Include tracking state bits to DvrPose." into oc-dr1-dev am: 0d346a0cb1
Okan Arikan [Mon, 10 Jul 2017 19:06:55 +0000 (19:06 +0000)]
Merge "Include tracking state bits to DvrPose." into oc-dr1-dev am: 0d346a0cb1
am: 57056ecaaa

Change-Id: I7d9f0423278aac160b1ec47ef0a51f7cabd7063c

6 years agoMerge "Include tracking state bits to DvrPose." into oc-dr1-dev
Okan Arikan [Mon, 10 Jul 2017 19:02:26 +0000 (19:02 +0000)]
Merge "Include tracking state bits to DvrPose." into oc-dr1-dev
am: 0d346a0cb1

Change-Id: I1fe407462296a93ba23cc1d00fe95379cae21e05

6 years agoMerge "Include tracking state bits to DvrPose." into oc-dr1-dev
TreeHugger Robot [Mon, 10 Jul 2017 18:56:20 +0000 (18:56 +0000)]
Merge "Include tracking state bits to DvrPose." into oc-dr1-dev

6 years agoMerge "Check wide-color support before adding extensions"
TreeHugger Robot [Mon, 10 Jul 2017 18:42:38 +0000 (18:42 +0000)]
Merge "Check wide-color support before adding extensions"

6 years agoMerge "Mark media_plugin_headers as vendor_available"
TreeHugger Robot [Mon, 10 Jul 2017 17:42:13 +0000 (17:42 +0000)]
Merge "Mark media_plugin_headers as vendor_available"

6 years agoMerge "vulkan: update Vulkan headers to 1.0.53" am: 38bcc110b8 am: d0b439e33a am...
Jesse Hall [Mon, 10 Jul 2017 14:52:59 +0000 (14:52 +0000)]
Merge "vulkan: update Vulkan headers to 1.0.53" am: 38bcc110b8 am: d0b439e33a am: 06ac13f0e5
am: 4245bd827e

Change-Id: I210790b562a9ed4a46ca11789538f60d13fe6947

6 years agoMerge "vulkan: update Vulkan headers to 1.0.53" am: 38bcc110b8 am: d0b439e33a
Jesse Hall [Mon, 10 Jul 2017 14:44:59 +0000 (14:44 +0000)]
Merge "vulkan: update Vulkan headers to 1.0.53" am: 38bcc110b8 am: d0b439e33a
am: 06ac13f0e5

Change-Id: Ie5587cd9ad0dee432ae3e50eff347a4d7d8602cd

6 years agoMerge "vulkan: update Vulkan headers to 1.0.53" am: 38bcc110b8
Jesse Hall [Mon, 10 Jul 2017 14:36:40 +0000 (14:36 +0000)]
Merge "vulkan: update Vulkan headers to 1.0.53" am: 38bcc110b8
am: d0b439e33a

Change-Id: I6f5b93b8b6a56e90a51d8779c7d76a4ac321cf9a

6 years agoMerge "vulkan: update Vulkan headers to 1.0.53"
Jesse Hall [Mon, 10 Jul 2017 14:29:17 +0000 (14:29 +0000)]
Merge "vulkan: update Vulkan headers to 1.0.53"
am: 38bcc110b8

Change-Id: I986ac1445697fb93fd72ab196087145a6b9945a0

6 years agoMerge "vulkan: update Vulkan headers to 1.0.53"
Treehugger Robot [Mon, 10 Jul 2017 14:19:19 +0000 (14:19 +0000)]
Merge "vulkan: update Vulkan headers to 1.0.53"

6 years agoMerge "Add target binderDriverInterfaceTest_IPC_32" am: 86c1fa9527 am: 940286e38f...
Hsin-Yi Chen [Mon, 10 Jul 2017 09:26:53 +0000 (09:26 +0000)]
Merge "Add target binderDriverInterfaceTest_IPC_32" am: 86c1fa9527 am: 940286e38f am: ceb942b99f
am: cf7de46622

Change-Id: Ie2e8455e90d94f57993e302451317c21b4e21537

6 years agoMerge "Add target binderDriverInterfaceTest_IPC_32" am: 86c1fa9527 am: 940286e38f
Hsin-Yi Chen [Mon, 10 Jul 2017 09:22:52 +0000 (09:22 +0000)]
Merge "Add target binderDriverInterfaceTest_IPC_32" am: 86c1fa9527 am: 940286e38f
am: ceb942b99f

Change-Id: If0c39eda327dc49e08ab13dc6e0da2038c6ae815

6 years agoMerge "Add target binderDriverInterfaceTest_IPC_32" am: 86c1fa9527
Hsin-Yi Chen [Mon, 10 Jul 2017 09:18:52 +0000 (09:18 +0000)]
Merge "Add target binderDriverInterfaceTest_IPC_32" am: 86c1fa9527
am: 940286e38f

Change-Id: Iaefd8b3a1e9c0f4bde0b3e04342233be93eb7b18

6 years agoMerge "Add target binderDriverInterfaceTest_IPC_32"
Hsin-Yi Chen [Mon, 10 Jul 2017 09:13:53 +0000 (09:13 +0000)]
Merge "Add target binderDriverInterfaceTest_IPC_32"
am: 86c1fa9527

Change-Id: I86a28976f575c314bcd74cb8edc18334ced9c575

6 years agoMerge "Add target binderDriverInterfaceTest_IPC_32"
Hsin-Yi Chen [Mon, 10 Jul 2017 09:06:14 +0000 (09:06 +0000)]
Merge "Add target binderDriverInterfaceTest_IPC_32"

6 years agoMark media_plugin_headers as vendor_available
Jiyong Park [Mon, 10 Jul 2017 03:34:17 +0000 (12:34 +0900)]
Mark media_plugin_headers as vendor_available

The headers should be available to vendors since vendors implement the
headers.

Bug: 37342627
Test: BOARD_VNDK_VERSION=current m -j camera.device@1.0-impl.vendor
Change-Id: I9936764039f2a5388707bdc093c869ec3551faad

6 years agoCheck wide-color support before adding extensions
Courtney Goeltzenleuchter [Fri, 7 Jul 2017 20:55:40 +0000 (14:55 -0600)]
Check wide-color support before adding extensions

Don't want applications seeing the wide-color EGL extensions
if the device or display cannot support wide-color.
Bug: 63170158
Test: adb shell /data/nativetest/test-opengl-gl2_basic/test-opengl-gl2_basic
Verify that EGL_EXT_gl_colorspace_scrgb, EGL_EXT_gl_colorspace_scrgb_linear,
EGL_EXT_gl_colorspace_display_p3_linear and EGL_EXT_gl_colorspace_display_p3
are not present on devices that do not support wide-color, e.g. Nexus 6P

Change-Id: I46a26a67f2d6da9c5aad50d884ef02a62ccb6945

6 years agoAdd target binderDriverInterfaceTest_IPC_32
Hsin-Yi Chen [Wed, 7 Jun 2017 10:05:05 +0000 (18:05 +0800)]
Add target binderDriverInterfaceTest_IPC_32

Add the target binderDriverInterfaceTest_IPC_32 which tests 32-bit
kernel and is independent from product_variables.

Bug: 62124459
Test: vts-tradefed run commandAndExit vts -m VtsKernelBinderTest
Change-Id: Ifad9ef24c35060179650955e24d1f046af7b7385

6 years agovulkan: update Vulkan headers to 1.0.53
Jesse Hall [Sat, 8 Jul 2017 00:13:23 +0000 (17:13 -0700)]
vulkan: update Vulkan headers to 1.0.53

Key changes since 1.0.49:
* Rename some extension enumerants to conform to naming style
* Add VK_EXT_sampler_filter_minmax
* Add VK_EXT_blend_operation_advanced
* Add VK_AMD_texture_gather_bias_lod
* Add VK_AMD_gpu_shader_int16
* Add VK_NV_fragment_coverage_to_color
* Add VK_NV_framebuffer_mixed_samples
* Add VK_NV_fill_rectangle

Test: build
Change-Id: I6b7931f4b7dfe4cae4fbc85fa961249534ccc11e

6 years agoMerge "vulkan: update Vulkan headers to 1.0.49" am: fa3c1590b9 -s ours am: 08fa90eaa...
Jesse Hall [Sat, 8 Jul 2017 05:18:34 +0000 (05:18 +0000)]
Merge "vulkan: update Vulkan headers to 1.0.49" am: fa3c1590b9  -s ours am: 08fa90eaab  -s ours am: 56d1521b02  -s ours
am: f1eec615c8  -s ours

Change-Id: I4699ddba3a479d19049e8787a3dfce38570a50a4

6 years agoMerge "vulkan: update Vulkan headers to 1.0.49" am: fa3c1590b9 -s ours am: 08fa90eaa...
Jesse Hall [Sat, 8 Jul 2017 05:16:04 +0000 (05:16 +0000)]
Merge "vulkan: update Vulkan headers to 1.0.49" am: fa3c1590b9  -s ours am: 08fa90eaab  -s ours
am: 56d1521b02  -s ours

Change-Id: I355b8cb7488b6878ec49a8d09f85512d69ad72b8

6 years agoMerge "vulkan: update Vulkan headers to 1.0.49" am: fa3c1590b9 -s ours
Jesse Hall [Sat, 8 Jul 2017 05:13:32 +0000 (05:13 +0000)]
Merge "vulkan: update Vulkan headers to 1.0.49" am: fa3c1590b9  -s ours
am: 08fa90eaab  -s ours

Change-Id: Ibd45109195a20a14435e9caceb8b5197f2265164

6 years agoMerge "vulkan: update Vulkan headers to 1.0.49"
Jesse Hall [Sat, 8 Jul 2017 05:11:03 +0000 (05:11 +0000)]
Merge "vulkan: update Vulkan headers to 1.0.49"
am: fa3c1590b9  -s ours

Change-Id: I1d22e6ffa33b6cd4479d6b09bb9d54c67f72ebfa

6 years agoMerge "vulkan: update Vulkan headers to 1.0.49"
Treehugger Robot [Sat, 8 Jul 2017 05:08:30 +0000 (05:08 +0000)]
Merge "vulkan: update Vulkan headers to 1.0.49"

6 years agoMerge changes from topic 'VelocityTracker - fix debugging flags'
TreeHugger Robot [Fri, 7 Jul 2017 21:27:35 +0000 (21:27 +0000)]
Merge changes from topic 'VelocityTracker - fix debugging flags'

* changes:
  Convert String8 to std::string
  Fix SIGABRT caused by integer sanitizer.

6 years agoConvert String8 to std::string
Siarhei Vishniakou [Thu, 6 Jul 2017 17:22:03 +0000 (10:22 -0700)]
Convert String8 to std::string

String8 is deprecated.

Test: m -j and uncomment DEBUG flags
in VelocityTracker to view coordinates
in logcat.

Change-Id: I968685765f06418be73fbb8ad2747a1fe8ed324e

6 years agoFix SIGABRT caused by integer sanitizer.
Siarhei Vishniakou [Thu, 6 Jul 2017 01:58:41 +0000 (18:58 -0700)]
Fix SIGABRT caused by integer sanitizer.

Test: m -j and use flings in settings menu.
Change-Id: I7c15c610ed2d74b128a2924c097fb7dc351ea5f4

6 years agoMerge "Revert "Otapreopt: Work around bug 38186355""
TreeHugger Robot [Fri, 7 Jul 2017 04:51:30 +0000 (04:51 +0000)]
Merge "Revert "Otapreopt: Work around bug 38186355""

6 years agoRestore PDX support to atrace. am: a6c0a721bd
Corey Tabaka [Fri, 7 Jul 2017 00:36:42 +0000 (00:36 +0000)]
Restore PDX support to atrace. am: a6c0a721bd
am: 4c5f5779da

Change-Id: Iaa02a88978878b1c74d57d279a1a7c8bde9ce8ea

6 years agoRestore PDX support to atrace.
Corey Tabaka [Fri, 7 Jul 2017 00:34:22 +0000 (00:34 +0000)]
Restore PDX support to atrace.
am: a6c0a721bd

Change-Id: I39bd28bde2cad630c8891727670724df3c234ab6

6 years agoRestore PDX support to atrace.
Corey Tabaka [Wed, 31 May 2017 23:37:40 +0000 (16:37 -0700)]
Restore PDX support to atrace.

Restore PDX service tracing in atrace. This time only enable poking PDX services
when the "pdx" trace category is included.

Bug: 62882199
Test: Run systrace with/without pdx category and observe correct poke behavior.

Change-Id: I478332a661c3b8bc6061fda43f64b75d8113b305

6 years agoMerge "emulator: update EGL emulation library path"
Bo Hu [Thu, 6 Jul 2017 23:29:51 +0000 (23:29 +0000)]
Merge "emulator: update EGL emulation library path"

6 years agoRevert "Otapreopt: Work around bug 38186355"
Andreas Gampe [Thu, 6 Jul 2017 23:05:41 +0000 (16:05 -0700)]
Revert "Otapreopt: Work around bug 38186355"

This reverts commit 12375069e753adea6c123fca7706b1018d358c92.

Bug: 38186355
Bug: 38199123
Test: m
Test: manual OTA

6 years agoMerge "Change storage migration to use quota APIs."
TreeHugger Robot [Thu, 6 Jul 2017 19:33:54 +0000 (19:33 +0000)]
Merge "Change storage migration to use quota APIs."

6 years agoMerge "Add libandroid_sensor_headers"
Yifan Hong [Thu, 6 Jul 2017 18:07:41 +0000 (18:07 +0000)]
Merge "Add libandroid_sensor_headers"

6 years agoChange storage migration to use quota APIs.
Jeff Sharkey [Thu, 6 Jul 2017 17:29:37 +0000 (11:29 -0600)]
Change storage migration to use quota APIs.

New quota APIs are much faster than trying to measure manually, and
removing this last user of calculateDirectorySize() means we can
remove it once and for all.

Bug: 36056324
Test: builds, boots
Change-Id: I60bb197ffc161ed24fe4aa8093495c8874095cdb

6 years agoMerge "Package media/*/*.h headers as a headers lib: media_plugin_headers"
TreeHugger Robot [Wed, 5 Jul 2017 19:24:19 +0000 (19:24 +0000)]
Merge "Package media/*/*.h headers as a headers lib: media_plugin_headers"

6 years agoMerge "dumpstate/Android.mk is converted to Android.bp"
TreeHugger Robot [Wed, 5 Jul 2017 03:39:41 +0000 (03:39 +0000)]
Merge "dumpstate/Android.mk is converted to Android.bp"

6 years agoMerge "fix a signed/unsigned comparison warning"
TreeHugger Robot [Wed, 5 Jul 2017 02:56:39 +0000 (02:56 +0000)]
Merge "fix a signed/unsigned comparison warning"

6 years agofix a signed/unsigned comparison warning
George Burgess IV [Thu, 22 Jun 2017 21:23:54 +0000 (14:23 -0700)]
fix a signed/unsigned comparison warning

The comparison was farther down; we'd compare a size_t vector index
with an int index.

Complaint from clang:

vr_hwc.cpp:152:11: warning: comparison of integers of different signs:
'size_t' (aka 'unsigned long') and 'int'

Bug: None
Test: mma shows no more warning.
Change-Id: Icabb5d4bb3c554ffe01a25af975a05bd58f336a1

6 years agoPackage media/*/*.h headers as a headers lib: media_plugin_headers
Jiyong Park [Thu, 29 Jun 2017 05:21:37 +0000 (14:21 +0900)]
Package media/*/*.h headers as a headers lib: media_plugin_headers

Headers under frameworks/native/include/media serves as an interface
that is meant to be implemented by vendors. For example.
media/hardware/CryptoAPI.h is implemented under
vendor/widevine/libwvdrmengine/mediacrypto.

When building with BOARD_VNDK_VERSION, the headers are not accessible to
vendors since they have been included via the global include paths and
the paths are not available when building with BOARD_VNDK_VERSION.

So, we need to make a "headers library" for the media headers and modify
vendors to use the headers lib. Usually, we have been doing this by
moving the headers into a subdirectory (usually 'include') of a module
that implements the headers. But, this approach can't be used at this
time since the media headers are implemented by many modules.

The chosen solution is to a separate directory headers/media_plugin and
define a headers lib named media_plugin_headers there.

Note: frameworks/native/headers will now be the home for such
header-only libraries.

Bug: 63120269
Test: build
Change-Id: I67d625706b40d06c8f0602284fbcc1cc8b174c6f

6 years agoemulator: update EGL emulation library path
bohu [Mon, 3 Jul 2017 05:08:13 +0000 (22:08 -0700)]
emulator: update EGL emulation library path

Change it from system/ to vendor/, due to
treble requirement.

Test: build sdk_phone_x86-eng, boot emulator
and surfaceflinger should not complain missing
emulation library and emulator should boot to
homescreen.

Change-Id: I08c5ac22358e464c5522deef93cd40ec3bc508c9

6 years agodumpstate/Android.mk is converted to Android.bp
Jiyong Park [Fri, 23 Jun 2017 12:23:16 +0000 (21:23 +0900)]
dumpstate/Android.mk is converted to Android.bp

Converted to soong. And libdumpstateutil is marked as
vendor_available:true.

Bug: 37342627
Test: BOARD_VNDK_VERSION=current m libdumpstateutil.vendor -j
Change-Id: Id1594d9aa2a7035aaad901d4c3881bd6128c431e

6 years agoAdd libandroid_sensor_headers
Yifan Hong [Sat, 1 Jul 2017 00:19:27 +0000 (17:19 -0700)]
Add libandroid_sensor_headers

This is a subset of NDK headers for vendor modules to use.
It only includes headers for sensors.

Test: m libsensorndkbridge -j
Test: BOARD_VNDK_VERSION=current m libsensorndkbridge.vendor -j

Bug: 33241851
Change-Id: Ia5ab876441f2f7d437a516aa97961b7a3540048d

6 years agosurfaceflinger: refresh after latching any buffer am: a36bf92663
Chia-I Wu [Fri, 30 Jun 2017 23:31:53 +0000 (23:31 +0000)]
surfaceflinger: refresh after latching any buffer am: a36bf92663
am: 81876de166

Change-Id: I6a62ab9052f47f9d97bc30029aa20546094ab9a7

6 years agosurfaceflinger: refresh after latching any buffer
Chia-I Wu [Fri, 30 Jun 2017 23:24:33 +0000 (23:24 +0000)]
surfaceflinger: refresh after latching any buffer
am: a36bf92663

Change-Id: If437e00a4c8aeda42f26150066a4fd7baaad485e

6 years agosurfaceflinger: refresh after latching any buffer
Chia-I Wu [Fri, 30 Jun 2017 19:51:05 +0000 (12:51 -0700)]
surfaceflinger: refresh after latching any buffer

We should not skip refresh when a latched buffer happens to have an
empty dirty region.  Also, we should signal a layer update when we
skip refresh.

Bug: 62752640
Test: manual
Change-Id: Ia603e7eeb37491c6ece7ea08d5d1e3b7ba93e6fa

6 years agoMerge "Fix potential access to invalid memory during shutdown" into oc-dr1-dev am...
Daniel Nicoara [Fri, 30 Jun 2017 15:50:41 +0000 (15:50 +0000)]
Merge "Fix potential access to invalid memory during shutdown" into oc-dr1-dev am: 77e9eeba69
am: 0e2e44357e

Change-Id: Ic061370a3ef751a8e36a372832e931fa3a516549

6 years agoMerge "Fix potential access to invalid memory during shutdown" into oc-dr1-dev
Daniel Nicoara [Fri, 30 Jun 2017 15:46:07 +0000 (15:46 +0000)]
Merge "Fix potential access to invalid memory during shutdown" into oc-dr1-dev
am: 77e9eeba69

Change-Id: I5b5703ab3b70755d3f8b8e2674c7c32ce0e1c05b

6 years agoMerge "Fix potential access to invalid memory during shutdown" into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 15:36:48 +0000 (15:36 +0000)]
Merge "Fix potential access to invalid memory during shutdown" into oc-dr1-dev

6 years agoMerge "Add dvr api entries for sensor enable/disable" into oc-dr1-dev am: 0a9bae53bc
Luke Song [Fri, 30 Jun 2017 02:24:48 +0000 (02:24 +0000)]
Merge "Add dvr api entries for sensor enable/disable" into oc-dr1-dev am: 0a9bae53bc
am: 18dcaf1795

Change-Id: Idbe478fd131ac74966bfdabb26d9422b79731b3e

6 years agoMerge "Add dvr api entries for sensor enable/disable" into oc-dr1-dev
Luke Song [Fri, 30 Jun 2017 02:20:48 +0000 (02:20 +0000)]
Merge "Add dvr api entries for sensor enable/disable" into oc-dr1-dev
am: 0a9bae53bc

Change-Id: I8ad0fedbac9cf950bf6917a524cb50839b41a362

6 years agoMerge "Add dvr api entries for sensor enable/disable" into oc-dr1-dev
Luke Song [Fri, 30 Jun 2017 02:14:54 +0000 (02:14 +0000)]
Merge "Add dvr api entries for sensor enable/disable" into oc-dr1-dev

6 years agoMerge "Trust navbar panel and accessibility overlays" into oc-dr1-dev am: b5f0e91c4c
Phil Weaver [Fri, 30 Jun 2017 02:13:21 +0000 (02:13 +0000)]
Merge "Trust navbar panel and accessibility overlays" into oc-dr1-dev am: b5f0e91c4c
am: c89bac8f6e

Change-Id: Iefedb1d008614884b1bd3d0abd5bbb7d1b1788fe

6 years agoMerge "Trust navbar panel and accessibility overlays" into oc-dr1-dev
Phil Weaver [Fri, 30 Jun 2017 02:04:48 +0000 (02:04 +0000)]
Merge "Trust navbar panel and accessibility overlays" into oc-dr1-dev
am: b5f0e91c4c

Change-Id: Ia00e2b0cbaba95b3265171bbe1e13cb86813c511

6 years agoMerge "Trust navbar panel and accessibility overlays" into oc-dr1-dev
Phil Weaver [Fri, 30 Jun 2017 01:57:31 +0000 (01:57 +0000)]
Merge "Trust navbar panel and accessibility overlays" into oc-dr1-dev

6 years agoInclude tracking state bits to DvrPose.
Okan Arikan [Mon, 26 Jun 2017 17:57:24 +0000 (10:57 -0700)]
Include tracking state bits to DvrPose.

These will be used internally for debugging so VrCore
has an idea about what's going on with Tango.

Bug: 62917278
Test: No functional change.
Change-Id: I7f5f7a2ccad4f0259ee5219726bf0e6890f34187

6 years agoAdd dvr api entries for sensor enable/disable
Luke Song [Tue, 27 Jun 2017 21:03:45 +0000 (14:03 -0700)]
Add dvr api entries for sensor enable/disable

Follow-up to ag/2263549 because we want to use it in VrCore now.

Bug: 63070540
Test: Api call in VrCore
Change-Id: Ic3b2c68ade31008ada8078a74ebe2945748143ae

6 years agoFix potential access to invalid memory during shutdown
Daniel Nicoara [Fri, 23 Jun 2017 16:48:01 +0000 (12:48 -0400)]
Fix potential access to invalid memory during shutdown

Since binder threads have a reference to the callback, need to make sure
it is properly reset before deleting the DvrHwcClient object.

Bug: 63139142
Test: Ran on device to ensure VrCore restart don't result in crashes in
DvrHwcClient
Change-Id: I559844a70d4483fee3148526f704d234994a96d4

6 years agoMerge "Fixed CropLatchingTest that was failing"
Chavi Weingarten [Thu, 29 Jun 2017 20:34:52 +0000 (20:34 +0000)]
Merge "Fixed CropLatchingTest that was failing"

6 years agoMerge changes Id4647e54,I66b6edbd into oc-dr1-dev am: bf72631a10
Corey Tabaka [Thu, 29 Jun 2017 18:54:08 +0000 (18:54 +0000)]
Merge changes Id4647e54,I66b6edbd into oc-dr1-dev am: bf72631a10
am: f036493fab

Change-Id: Ie396445c41942ab6bbeaf35c504a3be004d5e473

6 years agoMerge changes I9047b298,Id9554d6b into oc-dr1-dev am: e6ffd49479
Corey Tabaka [Thu, 29 Jun 2017 18:53:49 +0000 (18:53 +0000)]
Merge changes I9047b298,Id9554d6b into oc-dr1-dev am: e6ffd49479
am: e241cbaa7d

Change-Id: I29e56cb95b74097c70ba19cc356472ee06e2fac1

6 years agoMerge changes Id4647e54,I66b6edbd into oc-dr1-dev
Corey Tabaka [Thu, 29 Jun 2017 18:50:09 +0000 (18:50 +0000)]
Merge changes Id4647e54,I66b6edbd into oc-dr1-dev
am: bf72631a10

Change-Id: Ib1f5d7cc4841124c4f5fc1ea543ce3984dc26d16

6 years agoMerge changes I9047b298,Id9554d6b into oc-dr1-dev
Corey Tabaka [Thu, 29 Jun 2017 18:49:52 +0000 (18:49 +0000)]
Merge changes I9047b298,Id9554d6b into oc-dr1-dev
am: e6ffd49479

Change-Id: I8ac6a10b071dd5293dda9347d590b92c9cea0124

6 years agoMerge changes Id4647e54,I66b6edbd into oc-dr1-dev
TreeHugger Robot [Thu, 29 Jun 2017 18:44:52 +0000 (18:44 +0000)]
Merge changes Id4647e54,I66b6edbd into oc-dr1-dev

* changes:
  Fix VR surface attributes.
  DVR API: Implement support for deleting surface attributes.

6 years agoMerge changes I9047b298,Id9554d6b into oc-dr1-dev
TreeHugger Robot [Thu, 29 Jun 2017 18:44:35 +0000 (18:44 +0000)]
Merge changes I9047b298,Id9554d6b into oc-dr1-dev

* changes:
  libdvr: Add performance API to platform library.
  libpdx_uds: Fix uninitialized variable bug.

6 years agoMerge "Add VrFlinger dumpsys to SurfaceFlinger" into oc-dr1-dev am: ae11e71bb7
Karthik Ravi Shankar [Thu, 29 Jun 2017 04:32:26 +0000 (04:32 +0000)]
Merge "Add VrFlinger dumpsys to SurfaceFlinger" into oc-dr1-dev am: ae11e71bb7
am: 9579e3cd94

Change-Id: I3f56806205f651d714255c66a1b1bd8e0cc73f6d

6 years agoMerge "Add VrFlinger dumpsys to SurfaceFlinger" into oc-dr1-dev
Karthik Ravi Shankar [Thu, 29 Jun 2017 04:28:27 +0000 (04:28 +0000)]
Merge "Add VrFlinger dumpsys to SurfaceFlinger" into oc-dr1-dev
am: ae11e71bb7

Change-Id: Ic3ac3d8b16a14aed3fb3553616c4adec23044f7a

6 years agoMerge "Add VrFlinger dumpsys to SurfaceFlinger" into oc-dr1-dev
TreeHugger Robot [Thu, 29 Jun 2017 04:21:05 +0000 (04:21 +0000)]
Merge "Add VrFlinger dumpsys to SurfaceFlinger" into oc-dr1-dev

6 years agoFix VR surface attributes.
Corey Tabaka [Fri, 23 Jun 2017 03:39:42 +0000 (20:39 -0700)]
Fix VR surface attributes.

VR surface attributes had two issues that prevented the full extent
of their use:
1. The older clang version missed that templated copy constructor
   and assignment operators do not override the default ones in
   the Variant class. This caused issues with certain types when
   copy constructing / assigning from another Variant of the same
   type. This was noticed by running tests with a newer version of
   clang which provided warnings.
2. C++ rules about implicit conversion to bool from types that
   decay to pointers causes subtle issues with Variants that have
   bool elements.

   For example this assignment compiles but produces the wrong
   result:

   const int array[3] = { 1, 2, 3};
   Variant<int, bool, std::array<int, 3>> variant = array;
   EXPECT_FALSE(variant.is<bool>()); // Actually true.

   Here the programmer might accidentally think that the std::array
   element of the variant can be assigned from the regular array.
   This doesn't work, but instead the compiler decays the array to
   a pointer and assigns the bool element to true.

The first issue is addressed by defining copy/move constructors /
assignment operators on Variant and deleting the default ones from
the internal Union type for extra safety.

The second issue is addressed by making a more restrictive version
of the std::is_constructible trait that rejects bool construction
from types that decay to pointers. Once this was put in place the
erroneous use cases no longer compiled and is fixed as part of
this CL.

Tests are updated to verify the fixes to these issues.

Bug: 62557221
Test: pdx_tests and dvr_api-test passes.
Change-Id: Id4647e54e0a7b1753217fe7fe351462fe5bcfd83

6 years agolibdvr: Add performance API to platform library.
Corey Tabaka [Fri, 23 Jun 2017 23:20:07 +0000 (16:20 -0700)]
libdvr: Add performance API to platform library.

- Add dvrPerformanceSetSchedulerPolicy API. Only this API is exposed
  through the DVR platform library, the older API will be deprecated.
- Add permission checks to all performanced APIs.
- Allow services with android.permission.RESTRICTED_VR_ACCESS to change
  scheduler policy for VR apps.
- Minor updates to use the updated PDX service API. The older API will
  be deprecated soon.
- Add tests for permission checks and policy API.

Most of the tests are automatic however, there is one manual step for
testing the android.permission.RESTRICTED_VR_ACCESS (e.g. trusted uid)
check. Because there is no reliable way to determine the UID of VrCore
from the gtest, instead the gtest looks for an env var named
GTEST_TRUSTED_UID; if this is set the value is used as a uid and the
trusted uid tests are enabled.

Bug: 62468109
Test: 'GTEST_TRUSTED_UID=<VrCore UID> performance_service_tests' passes.
Change-Id: I9047b298a015a69535b655a299ca26c179e2d57d

6 years agoDVR API: Implement support for deleting surface attributes.
Corey Tabaka [Thu, 8 Jun 2017 21:29:58 +0000 (14:29 -0700)]
DVR API: Implement support for deleting surface attributes.

- Implement support for deleting surface attributes using the "NONE"
  attribute type.
- Add tests for attribute events and attribute deletion.

Bug: 62456002
Test: dvr_api-test passes.
Change-Id: I66b6edbd35077596d89e85829bcbe7c52829ef5b

6 years agoFixed CropLatchingTest that was failing
chaviw [Wed, 28 Jun 2017 23:39:06 +0000 (16:39 -0700)]
Fixed CropLatchingTest that was failing

FinalCropLatchingRegressionForb37531386 test was failing
do to an incorrect assertion. Also added the test classes that
were not yet added to the filter so they run in presubmit.

Change-Id: Ia298ac2e9f64809373f9d0267325c6b51b70d9c5

6 years agoAdd VrFlinger dumpsys to SurfaceFlinger
Karthik Ravi Shankar [Wed, 28 Jun 2017 22:40:24 +0000 (15:40 -0700)]
Add VrFlinger dumpsys to SurfaceFlinger

When we do dumpsys SurfaceFlinger, we get no information about the
layers/what is composed when the device is in VR mode.

Bug: 63113212
Test:
VrFlinger state:
Application Surfaces:
Surface 0: surface_id=11 process_id=5550 user_id=10104 visible=1
z_order=0 queue_ids=29,37
Surface 1: surface_id=13 process_id=5035 user_id=10130 visible=1
z_order=0 queue_ids=53,65

Direct Surfaces:
Surface 0: surface_id=8 process_id=5563 user_id=10104 visible=1
z_order=0 queue_ids=17

Display metrics:     1440x2880 537.882x537.882 dpi @ 60 Hz
Post thread resumed: 1
Active layers:       1

Layer 0: type=Device surface_id=8 buffer_id=19

Hardware Composer Debug Info:
-------------------------------
HWC2 display_id: 0
layer:   30 z: 0 compositon: Device/Device alpha: 255 format:
RGBA_8888_UBWC dataspace:0x00000000 transform: 0/0/0 buffer_id:
0x70b4877500
color modes supported: 0 7 9 current mode: 7
current transform:
  1.08  -0.02  -0.02   0.00
  -0.07   1.03  -0.07   0.00
  -0.01  -0.01   1.09   0.00
  0.00   0.00   0.00   1.00
-------------------------------

This section doesn't appear when the device is not in VR mode.

Change-Id: I2961a05fc3ea303e070be08de355fb6e56c3d0db
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
6 years agoMerge "Add telephony related dumpsys in the telephony monitor bugreports" into oc...
Jayachandran C [Wed, 28 Jun 2017 19:15:19 +0000 (19:15 +0000)]
Merge "Add telephony related dumpsys in the telephony monitor bugreports" into oc-dr1-dev am: d16d297825
am: f8b9f54e47

Change-Id: Ibfa4db88795a5953ad8dd1d327d2bf8b2ba2249c

6 years agoMerge "Add telephony related dumpsys in the telephony monitor bugreports" into oc...
Jayachandran C [Wed, 28 Jun 2017 19:11:19 +0000 (19:11 +0000)]
Merge "Add telephony related dumpsys in the telephony monitor bugreports" into oc-dr1-dev
am: d16d297825

Change-Id: Id02616a3d6084a18bdf6a3b87868eb1e1f905a9a

6 years agoMerge "Add telephony related dumpsys in the telephony monitor bugreports" into oc...
TreeHugger Robot [Wed, 28 Jun 2017 19:01:17 +0000 (19:01 +0000)]
Merge "Add telephony related dumpsys in the telephony monitor bugreports" into oc-dr1-dev

6 years agolibpdx_uds: Fix uninitialized variable bug.
Corey Tabaka [Mon, 26 Jun 2017 23:51:43 +0000 (16:51 -0700)]
libpdx_uds: Fix uninitialized variable bug.

In this code path epoll_wait() returns 0 when the operation times
out, but there is no condition to catch this and return the
approptiate status. This allows the event value to be used
uninitialized, which returns a junk pending event mask.

This bug results in BufferHub queues sometimes thinking that the
producer side of the buffer hung up, when the junk value happens
to have the EPOLLHUP bit set.

Bug: 62886596
Test: Observe VR app switching stability.
Change-Id: Id9554d6bf224fd27815ff042ac145f59041d0aae

6 years agoAdd telephony related dumpsys in the telephony monitor bugreports
Jayachandran C [Sat, 10 Jun 2017 22:08:12 +0000 (15:08 -0700)]
Add telephony related dumpsys in the telephony monitor bugreports

Collect dumpsys for the following in telephony monitor auto
generated bugreports for better debugging

1) TelephonyDebugService
2) CarrierConfig
3) Connectivity

Test: Verified telephony monintor auto generated bugreport

Bug: 62504502
Change-Id: Ia2a9e1ff5b289dec7a4d0bb4e8ef85fb413df87a

6 years agoMerge "Merge "SurfaceFlinger: Last minute log removal." into oc-dev am: 56cca289cc...
Robert Carr [Wed, 28 Jun 2017 00:12:58 +0000 (00:12 +0000)]
Merge "Merge "SurfaceFlinger: Last minute log removal." into oc-dev am: 56cca289cc am: d5547979ec" into oc-dr1-dev-plus-aosp
am: 62da928d92

Change-Id: Ie4fd3fe54b06d7061e4d9e57786a361c91a7ab77

6 years agoMerge "SurfaceFlinger: Last minute log removal." into oc-dev am: 56cca289cc am: a75a9...
Robert Carr [Wed, 28 Jun 2017 00:12:38 +0000 (00:12 +0000)]
Merge "SurfaceFlinger: Last minute log removal." into oc-dev am: 56cca289cc am: a75a975dc8
am: 8e73ea0c99

Change-Id: I704080d3be3170b4d3046e492d19b4e789be9177

6 years agoMerge "Merge "SurfaceFlinger: Last minute log removal." into oc-dev am: 56cca289cc...
Android Build Merger (Role) [Wed, 28 Jun 2017 00:09:20 +0000 (00:09 +0000)]
Merge "Merge "SurfaceFlinger: Last minute log removal." into oc-dev am: 56cca289cc am: d5547979ec" into oc-dr1-dev-plus-aosp

6 years agoMerge "SurfaceFlinger: Last minute log removal." into oc-dev am: 56cca289cc
Robert Carr [Wed, 28 Jun 2017 00:09:08 +0000 (00:09 +0000)]
Merge "SurfaceFlinger: Last minute log removal." into oc-dev am: 56cca289cc
am: a75a975dc8

Change-Id: I1b4544d48d3248edc5621af1218b38a3ad0d9cae

6 years agoMerge "SurfaceFlinger: Last minute log removal." into oc-dev am: 56cca289cc
Robert Carr [Wed, 28 Jun 2017 00:09:08 +0000 (00:09 +0000)]
Merge "SurfaceFlinger: Last minute log removal." into oc-dev am: 56cca289cc
am: d5547979ec

Change-Id: I1a6c13f9fd00d082425b374e440e5d8482260b73

6 years agoMerge "SurfaceFlinger: Last minute log removal." into oc-dev
Robert Carr [Wed, 28 Jun 2017 00:06:38 +0000 (00:06 +0000)]
Merge "SurfaceFlinger: Last minute log removal." into oc-dev
am: 56cca289cc

Change-Id: Ib4448b62b985fac82c24fb81aef550ba7d0280a9

6 years agoMerge "SurfaceFlinger: Last minute log removal." into oc-dev
Robert Carr [Wed, 28 Jun 2017 00:06:37 +0000 (00:06 +0000)]
Merge "SurfaceFlinger: Last minute log removal." into oc-dev
am: 56cca289cc

Change-Id: I07e2b1c1efd0cc8eec73467fdd4ef88bf36f081c

6 years agoMerge "SurfaceFlinger: Last minute log removal." into oc-dev
TreeHugger Robot [Tue, 27 Jun 2017 23:59:16 +0000 (23:59 +0000)]
Merge "SurfaceFlinger: Last minute log removal." into oc-dev

6 years agoMerge "libgui: New mutex for ConsumerBase frame callbacks" into oc-dev am: fb672ba37b...
Dan Stoza [Tue, 27 Jun 2017 23:10:54 +0000 (23:10 +0000)]
Merge "libgui: New mutex for ConsumerBase frame callbacks" into oc-dev am: fb672ba37b am: f64e75d2f0
am: 8b961670ad

Change-Id: I6a7658f2c6cd4c4a5ed0afcb4711fe2d7216d383

6 years agoMerge "libgui: New mutex for ConsumerBase frame callbacks" into oc-dev am: fb672ba37b...
Dan Stoza [Tue, 27 Jun 2017 23:10:33 +0000 (23:10 +0000)]
Merge "libgui: New mutex for ConsumerBase frame callbacks" into oc-dev am: fb672ba37b am: 1813e093bd
am: ba01bec3b4

Change-Id: I9d45dc2a97af80a3a7625c07a528b3a04bcc7bde

6 years agoMerge "libgui: New mutex for ConsumerBase frame callbacks" into oc-dev am: fb672ba37b
Dan Stoza [Tue, 27 Jun 2017 23:04:08 +0000 (23:04 +0000)]
Merge "libgui: New mutex for ConsumerBase frame callbacks" into oc-dev am: fb672ba37b
am: f64e75d2f0

Change-Id: Icf927506ab83ac03c754658625520eca4cd1b529

6 years agoMerge "libgui: New mutex for ConsumerBase frame callbacks" into oc-dev am: fb672ba37b
Dan Stoza [Tue, 27 Jun 2017 23:03:33 +0000 (23:03 +0000)]
Merge "libgui: New mutex for ConsumerBase frame callbacks" into oc-dev am: fb672ba37b
am: 1813e093bd

Change-Id: I9ca3c8a6bb058177cf47e8d0f8ca5a38d003c686

6 years agoMerge "libgui: New mutex for ConsumerBase frame callbacks" into oc-dev
Dan Stoza [Tue, 27 Jun 2017 23:01:03 +0000 (23:01 +0000)]
Merge "libgui: New mutex for ConsumerBase frame callbacks" into oc-dev
am: fb672ba37b

Change-Id: I90f2ebe102c40c70620ca12bda5000b455109d26

6 years agoMerge "libgui: New mutex for ConsumerBase frame callbacks" into oc-dev
Dan Stoza [Tue, 27 Jun 2017 23:01:03 +0000 (23:01 +0000)]
Merge "libgui: New mutex for ConsumerBase frame callbacks" into oc-dev
am: fb672ba37b

Change-Id: I14c99a3137f086eca4e1c1ab2f8877ae6df88a4a

6 years agoMerge "libgui: New mutex for ConsumerBase frame callbacks" into oc-dev
TreeHugger Robot [Tue, 27 Jun 2017 22:54:05 +0000 (22:54 +0000)]
Merge "libgui: New mutex for ConsumerBase frame callbacks" into oc-dev

6 years agoSurfaceFlinger: Last minute log removal.
Robert Carr [Tue, 27 Jun 2017 20:51:07 +0000 (13:51 -0700)]
SurfaceFlinger: Last minute log removal.

Whoops.

Test: Log removed!
Change-Id: I4593352cf565603a4507c6ef13504b167d882eec

6 years agoMerge "Fix percentile calculations"
Mengjiao Yang [Tue, 27 Jun 2017 19:22:40 +0000 (19:22 +0000)]
Merge "Fix percentile calculations"

6 years agoMerge "Fix a warning about redefining arraysize"
TreeHugger Robot [Tue, 27 Jun 2017 18:28:27 +0000 (18:28 +0000)]
Merge "Fix a warning about redefining arraysize"

6 years agoMerge "Fix an incorrect format specifier in printf"
TreeHugger Robot [Tue, 27 Jun 2017 18:25:45 +0000 (18:25 +0000)]
Merge "Fix an incorrect format specifier in printf"

6 years agoFix percentile calculations
Sherry Yang [Thu, 15 Jun 2017 18:32:06 +0000 (11:32 -0700)]
Fix percentile calculations

Adjust max latency in running binderThroughputTest
to improve percentile accuracy. We used to use a fixed
max latency which is devided into time buckets to obtain
the round trip latency percentile. The actual latency,
however, can be much smaller than the max latency, which
results in measurements from all iterations ending up in
the same bucket and leads to inaccurate percentile
measurement. This is resolved by either performing a
training round (option -t), which sets the max latency to
two times the worst latency during training, or by providing
a max latency (option -m) in millisecond by the caller.
Use --help option to see usage.

Bug: 62660944
Change-Id: Iaa23837eb24b90012ae20c35f20caae33986b35a
Fixes: 62660944
Test: Running "binderThroughputTest -p -w 2  -i 10000 -s 0" on marlin-3.18 used to show the same percentile values for 50%, 90%, 95%, and 99%. Now with -t flag,percentile values are different.
Signed-off-by: Sherry Yang <sherryy@google.com>
6 years agoMerge "resolve merge conflicts of 40da4609e to oc-dr1-dev-plus-aosp" into oc-dr1...
Jiyong Park [Tue, 27 Jun 2017 08:11:43 +0000 (08:11 +0000)]
Merge "resolve merge conflicts of 40da4609e to oc-dr1-dev-plus-aosp" into oc-dr1-dev-plus-aosp
am: cbfbd85c8e

Change-Id: I54192e31782629a629231d0ef6f0a49788e9f6e7