OSDN Git Service

android-x86/frameworks-native.git
7 years agoMediaCas: add plugin APIs
Chong Zhang [Sat, 29 Oct 2016 00:15:16 +0000 (17:15 -0700)]
MediaCas: add plugin APIs

bug: 22804304
Change-Id: I87913f39a95278d0d5eb282f2b83b1fa4d362cec

7 years agoMerge "Add tool to generate color space conversion 3D LUTs"
TreeHugger Robot [Sat, 18 Feb 2017 00:28:46 +0000 (00:28 +0000)]
Merge "Add tool to generate color space conversion 3D LUTs"

7 years agoMerge "Fix typo in Region to avoid unexpected values"
TreeHugger Robot [Sat, 18 Feb 2017 00:11:02 +0000 (00:11 +0000)]
Merge "Fix typo in Region to avoid unexpected values"

7 years agoMerge "Break a dependency of libui on libandroid"
TreeHugger Robot [Fri, 17 Feb 2017 22:21:01 +0000 (22:21 +0000)]
Merge "Break a dependency of libui on libandroid"

7 years agoMerge changes from topic 'GPU_replace_GL'
Brian C. Anderson [Fri, 17 Feb 2017 22:17:35 +0000 (22:17 +0000)]
Merge changes from topic 'GPU_replace_GL'

* changes:
  Fix unexpected FrameEvents on BufferQueue reconnect
  Add FrameEvents::isValidTimestamp
  Change GL references to GPU for getFrameTimestamps.
  Clean up FrameTimestamp log messages.

7 years agoAdd tool to generate color space conversion 3D LUTs
Romain Guy [Fri, 17 Feb 2017 19:31:59 +0000 (11:31 -0800)]
Add tool to generate color space conversion 3D LUTs

The tool needs to be run on an Android device and must be compiled
manually (i.e. it's not compiled as part of a regular Android build).

The tool outputs 3D LUTs in a format that can be included directly
in a C/C++ file/header.

Bug: 32984164
Test: ran lutgen and checked output
Change-Id: I96f7d0d088965c3b63c0fb4079ddeaeee7246418

7 years agoMerge "Move FloatRect from libgfx to libui"
TreeHugger Robot [Fri, 17 Feb 2017 20:49:04 +0000 (20:49 +0000)]
Merge "Move FloatRect from libgfx to libui"

7 years agoBreak a dependency of libui on libandroid
Mathias Agopian [Tue, 14 Feb 2017 00:42:28 +0000 (16:42 -0800)]
Break a dependency of libui on libandroid

This was only a header dependency, but it still
created a circular dependency, which will cause
problems in another CL.

We fix this by creating a libarect static library
containing only that header. both libui and
libandroid now depend on it and reexport the
header.

We also make sure rect.h ends-up in the right
place.

Test: built and booted device
Bug: 35164655

Change-Id: Iba25b8b801b26b26ec1401c00caf367a06f197ca

7 years agoMerge "Proper fix for vr_wm: the hwc_callback function is no longer called"
TreeHugger Robot [Fri, 17 Feb 2017 20:13:44 +0000 (20:13 +0000)]
Merge "Proper fix for vr_wm: the hwc_callback function is no longer called"

7 years agoMerge "Verbose logging when API_MEDIA is force-disconnected"
TreeHugger Robot [Fri, 17 Feb 2017 19:40:10 +0000 (19:40 +0000)]
Merge "Verbose logging when API_MEDIA is force-disconnected"

7 years agoMerge "Add RGBA 10:10:10:2 format for surfaces"
Romain Guy [Fri, 17 Feb 2017 19:25:03 +0000 (19:25 +0000)]
Merge "Add RGBA 10:10:10:2 format for surfaces"

7 years agoMerge "atrace: Don't output service lookup/notification errors." am: 9753b43355 am...
Martijn Coenen [Fri, 17 Feb 2017 19:00:11 +0000 (19:00 +0000)]
Merge "atrace: Don't output service lookup/notification errors." am: 9753b43355 am: acc03d821b am: b4951bb3c5
am: c874bf6032

Change-Id: I2f82d450a9a07d1a30b8017e34ad1f158fac3eec

7 years agoMerge "atrace: Don't output service lookup/notification errors." am: 9753b43355 am...
Martijn Coenen [Fri, 17 Feb 2017 18:55:08 +0000 (18:55 +0000)]
Merge "atrace: Don't output service lookup/notification errors." am: 9753b43355 am: acc03d821b
am: b4951bb3c5

Change-Id: I1795408b3731916b08d5c716bacebc1892a9760a

7 years agoMerge "atrace: Don't output service lookup/notification errors." am: 9753b43355
Martijn Coenen [Fri, 17 Feb 2017 18:50:40 +0000 (18:50 +0000)]
Merge "atrace: Don't output service lookup/notification errors." am: 9753b43355
am: acc03d821b

Change-Id: Id61287c635379735bc0c78dea8571720594de52f

7 years agoMove FloatRect from libgfx to libui
Dan Stoza [Thu, 16 Feb 2017 22:10:39 +0000 (14:10 -0800)]
Move FloatRect from libgfx to libui

Moves FloatRect from libgfx (which is being disintegrated) to libui

Test: Builds and sailfish boots
Change-Id: I68c1b7d86a363066fe4d6f0c038ca9d92d7ab9c7

7 years agoMerge "atrace: Don't output service lookup/notification errors."
Martijn Coenen [Fri, 17 Feb 2017 18:45:38 +0000 (18:45 +0000)]
Merge "atrace: Don't output service lookup/notification errors."
am: 9753b43355

Change-Id: I08da77d7664543aa1922a23792fa68f9094323ef

7 years agoMerge "atrace: Don't output service lookup/notification errors."
Treehugger Robot [Fri, 17 Feb 2017 18:38:53 +0000 (18:38 +0000)]
Merge "atrace: Don't output service lookup/notification errors."

7 years agoMerge "libui: Remove STL from Fence"
TreeHugger Robot [Fri, 17 Feb 2017 18:06:22 +0000 (18:06 +0000)]
Merge "libui: Remove STL from Fence"

7 years agoProper fix for vr_wm: the hwc_callback function is no longer called
Albert Chaulk [Thu, 16 Feb 2017 22:04:29 +0000 (17:04 -0500)]
Proper fix for vr_wm: the hwc_callback function is no longer called

Another change removed the call to GetBufferFromHandle but didn't
delete it and an alternate implementation is used. This replicates
the change into the second implementation and removes the original one

Bug: None
Test: Tested in dev branch; built in master
Change-Id: I2bdb38c7b692e30cf1b5e41476ecdd062b5d5d69

7 years agoMerge "Add HDR Metadata extension"
Courtney Goeltzenleuchter [Fri, 17 Feb 2017 14:56:04 +0000 (14:56 +0000)]
Merge "Add HDR Metadata extension"

7 years agoatrace: Don't output service lookup/notification errors.
Martijn Coenen [Fri, 17 Feb 2017 13:57:38 +0000 (14:57 +0100)]
atrace: Don't output service lookup/notification errors.

Bug: 34933232
Test: android.atrace.cts.AtraceHostTests
Change-Id: If981106fb1bf7db24b9fd173c6936a1e189756f0

7 years agoFix typo in Region to avoid unexpected values
Fabien Sanglard [Fri, 17 Feb 2017 03:29:35 +0000 (19:29 -0800)]
Fix typo in Region to avoid unexpected values

b/34193533 showed that Framework can sometimes use very large rect
(presumably to hide a window **very** far out of the screen visible
rectangle). Which results in SF freezing and using 100% of CPU.

max_value is not initialized to the right value. Really it should be
0x7FFFFFFF instead of
0x7FFFFFF
Since Region was templatized (originally to potentially use int16_t)
the fix uses C++11 numeric_limits instead of INT_MAX.

Test: Manual
Change-Id: Iaee64727226730dbea1f05618a97b801254cde4d

7 years agoVerbose logging when API_MEDIA is force-disconnected
Chong Zhang [Thu, 16 Feb 2017 23:52:33 +0000 (15:52 -0800)]
Verbose logging when API_MEDIA is force-disconnected

Media is seeing intermittent failures during CTS when mediaplayer
connected to a surface successfully but subsequent dequeueBuffer
fails. We suspect that media is getting force-disconnected. Adding
a verbose log when this happens to help track down the failure.

bug: 35364355

Change-Id: I0c48e3d141648a3d08c6abeb6793f8363e9502fc

7 years agoAdd HDR Metadata extension
Courtney Goeltzenleuchter [Thu, 5 Jan 2017 22:55:31 +0000 (15:55 -0700)]
Add HDR Metadata extension

Basic framework to support HDR Metadata extension. Will
add system plumbing in separate CL.

Test: CTS dEQP-VK.wsi.android.hdr_metadata.scale_none.fifo.*
Change-Id: I5de639ef87a988e02d194a2bd91d16ffe6102c6e

7 years agoMerge "Expose extension for obtaining an EGLClientBuffer from an AHardwareBuffer"
TreeHugger Robot [Fri, 17 Feb 2017 00:02:00 +0000 (00:02 +0000)]
Merge "Expose extension for obtaining an EGLClientBuffer from an AHardwareBuffer"

7 years agolibui: Remove STL from Fence
Dan Stoza [Thu, 16 Feb 2017 22:55:03 +0000 (14:55 -0800)]
libui: Remove STL from Fence

Renames Fence::hasSignaled to Fence::getStatus, and changes its return
type from std::experimental::optional (STL is no longer permitted in
libui) to an enum class. Also updates its one caller.

Test: Builds and sailfish boots
Change-Id: I682039b9fd88bf79f1e2a955944c4a564ed6f60b

7 years agoMerge "VR: Move VR HWC initialization in SurfaceFlingerView"
TreeHugger Robot [Thu, 16 Feb 2017 22:36:36 +0000 (22:36 +0000)]
Merge "VR: Move VR HWC initialization in SurfaceFlingerView"

7 years agoExpose extension for obtaining an EGLClientBuffer from an AHardwareBuffer
Craig Donner [Fri, 27 Jan 2017 20:30:44 +0000 (12:30 -0800)]
Expose extension for obtaining an EGLClientBuffer from an AHardwareBuffer

Bug: 34050596
Test: deqp test checks for extension
Change-Id: I0da1173688cd27b8dd9e907e535100b9a0605290

7 years agoMerge "Move libgvr to vendor/unbundled_google/libraries/vr."
TreeHugger Robot [Thu, 16 Feb 2017 20:44:11 +0000 (20:44 +0000)]
Merge "Move libgvr to vendor/unbundled_google/libraries/vr."

7 years agoVR: Move VR HWC initialization in SurfaceFlingerView
Daniel Nicoara [Thu, 16 Feb 2017 15:59:37 +0000 (10:59 -0500)]
VR: Move VR HWC initialization in SurfaceFlingerView

Initialize the VR HWC at first use since it is also needed to register
the frame observer VR WM uses to display SurfaceFlinger output.

Note, need the real implementation, rather than the passthrough
interface received via IComposer::getService().

Bug: b/35403318
Test: Compiled
Change-Id: I7569136edcef57f545e3d1c3daf644f48fd6b907

7 years agoMerge "surfaceflinger: disable VR mode while SELinux issues are resolved."
TreeHugger Robot [Thu, 16 Feb 2017 19:59:17 +0000 (19:59 +0000)]
Merge "surfaceflinger: disable VR mode while SELinux issues are resolved."

7 years agoMerge "Merged vr window manager and vr composer"
TreeHugger Robot [Thu, 16 Feb 2017 19:44:30 +0000 (19:44 +0000)]
Merge "Merged vr window manager and vr composer"

7 years agoMerge changes from topic 'lshal' am: 7e894fc94f am: c972254b58 am: fc025cd2aa
Yifan Hong [Thu, 16 Feb 2017 18:23:30 +0000 (18:23 +0000)]
Merge changes from topic 'lshal' am: 7e894fc94f am: c972254b58 am: fc025cd2aa
am: 9fc5b8da62

Change-Id: I5004085481e0a46331dbc82272806678e940f290

7 years agoMerge changes from topic 'lshal' am: 7e894fc94f am: c972254b58
Yifan Hong [Thu, 16 Feb 2017 18:18:59 +0000 (18:18 +0000)]
Merge changes from topic 'lshal' am: 7e894fc94f am: c972254b58
am: fc025cd2aa

Change-Id: If5e30cbb533aa16de6b2f565104102ecec66c87a

7 years agoMerge changes from topic 'lshal' am: 7e894fc94f
Yifan Hong [Thu, 16 Feb 2017 18:14:58 +0000 (18:14 +0000)]
Merge changes from topic 'lshal' am: 7e894fc94f
am: c972254b58

Change-Id: I1b5c1eceb88b57a50331340709c50507eb8f9bf8

7 years agoMerge changes from topic 'lshal'
Yifan Hong [Thu, 16 Feb 2017 18:10:31 +0000 (18:10 +0000)]
Merge changes from topic 'lshal'
am: 7e894fc94f

Change-Id: Iede25dfbf58f71b56cec13733bd8f5ddbeb95c31

7 years agoMerge changes from topic 'lshal'
Yifan Hong [Thu, 16 Feb 2017 18:02:51 +0000 (18:02 +0000)]
Merge changes from topic 'lshal'

* changes:
  lshal: Add option to print cmd lines instead of pids.
  lshal: Add timeout for IPC calls.
  lshal: Allow selecting columns and sorting by column.
  lshal: Refactor lshal to use an Lshal class; combined instance column with interface column

7 years agoMerge "sensord: Move sensord PDX socket directory creation to sensord.rc"
Alex Vakulenko [Thu, 16 Feb 2017 18:00:58 +0000 (18:00 +0000)]
Merge "sensord: Move sensord PDX socket directory creation to sensord.rc"

7 years agoMerge "Remove Java and gvr references from vr window manager."
TreeHugger Robot [Thu, 16 Feb 2017 17:33:22 +0000 (17:33 +0000)]
Merge "Remove Java and gvr references from vr window manager."

7 years agoMerge "Moved bugreport intents to the com.android.internal namespace."
TreeHugger Robot [Thu, 16 Feb 2017 15:16:21 +0000 (15:16 +0000)]
Merge "Moved bugreport intents to the com.android.internal namespace."

7 years agoMerge changes from topic 'cfg_nsfbuf'
Jaesoo Lee [Thu, 16 Feb 2017 05:27:03 +0000 (05:27 +0000)]
Merge changes from topic 'cfg_nsfbuf'

* changes:
  configstore: removing BoardConfig variables (NUM_FRAMEBUFFER_SURFACE_BUFFERS)
  configstore: use utility functions defined in ConfigStoreUtils.h

7 years agoFix vr_wm's importing of buffers. Register needs to be first now
Albert Chaulk [Wed, 15 Feb 2017 22:28:31 +0000 (17:28 -0500)]
Fix vr_wm's importing of buffers. Register needs to be first now

Test: Use VrModeTester to launch into vr mode, verify vr_wm gets buffers
Bug: None
Change-Id: I17a65dc822454386f392cfdd9ffb401055363515

7 years agoMerge "Fix the ownership of compiler artifacts for secondary dex files"
Calin Juravle [Thu, 16 Feb 2017 02:04:03 +0000 (02:04 +0000)]
Merge "Fix the ownership of compiler artifacts for secondary dex files"

7 years agosurfaceflinger: disable VR mode while SELinux issues are resolved.
Corey Tabaka [Thu, 16 Feb 2017 01:07:20 +0000 (17:07 -0800)]
surfaceflinger: disable VR mode while SELinux issues are resolved.

Temporarily disable VR mode support while SELinux policy issues are
rectified.

Bug: 35319396
Test: build; flash; run
Change-Id: I218afb6f9bff21980de184596471f8ec673af2e6

7 years agoAdd RGBA 10:10:10:2 format for surfaces
Romain Guy [Sat, 11 Feb 2017 02:50:17 +0000 (18:50 -0800)]
Add RGBA 10:10:10:2 format for surfaces

Bug: 2984164
Test: CtsHardwareTestCases
Change-Id: Ifc90e413f414a19ac09e923e48ec7ff45d3e930b

7 years agoFix unexpected FrameEvents on BufferQueue reconnect
Brian Anderson [Fri, 2 Dec 2016 00:54:33 +0000 (16:54 -0800)]
Fix unexpected FrameEvents on BufferQueue reconnect

Helps reduce the number of ALOGE's being hit
when switching between apps.

* Notify Layer when the Producer disconnects.
* Avoid sending event deltas from a previous connection.
* Avoid releasing a frame more than once.

Test: adb shell /data/nativetest/libgui_test/libgui_test
    --gtest_filter=*GetFrameTimestamps*

Change-Id: I64f314be72ddb154b584d726ac382cd468e345bf

7 years agoAdd FrameEvents::isValidTimestamp
Brian Anderson [Wed, 26 Oct 2016 23:12:21 +0000 (16:12 -0700)]
Add FrameEvents::isValidTimestamp

Refactor only.

Test: adb shell /data/nativetest/libgui_test/libgui_test
--gtest_filter=*GetFrameTimestamps*

Change-Id: I86653ac14186ca509f58a94047f25a7b74231b30

7 years agoChange GL references to GPU for getFrameTimestamps.
Brian Anderson [Fri, 21 Oct 2016 19:57:46 +0000 (12:57 -0700)]
Change GL references to GPU for getFrameTimestamps.

Test: Rename only.

Change-Id: Idaf7ab38f78f58aa8387823f47dac084e21eb1f0

7 years agoClean up FrameTimestamp log messages.
Brian Anderson [Fri, 21 Oct 2016 19:43:09 +0000 (12:43 -0700)]
Clean up FrameTimestamp log messages.

Test: Log message changes only. Existing tests pass.

Change-Id: I032c76393a4949b291c3a650279367caf05a775c

7 years agoMerge "EGL: Enable eglGetFrameTimestamps."
Brian C. Anderson [Thu, 16 Feb 2017 00:39:29 +0000 (00:39 +0000)]
Merge "EGL: Enable eglGetFrameTimestamps."

7 years agolshal: Add option to print cmd lines instead of pids.
Yifan Hong [Wed, 15 Feb 2017 01:33:50 +0000 (17:33 -0800)]
lshal: Add option to print cmd lines instead of pids.

Add -m to arguments of lshal. When this flag is set,
/proc/{pid}/cmdline is printed instead of a plain PID.
If the file doesn't exist, it will be striped out from
the PID column as well (the process is considered died
and won't hold a reference to the binder object.)

Test: lshal -icm

Bug: 35160832

Change-Id: I4345bf06112a1f87ce91bec6f6f787703e46cd17

7 years agoMoved bugreport intents to the com.android.internal namespace.
Felipe Leme [Thu, 16 Feb 2017 00:07:13 +0000 (16:07 -0800)]
Moved bugreport intents to the com.android.internal namespace.

Change-Id: I5b19c119b9f845007b37dc955120d2a4f1187e63
Fixes: 35275802
Test: manual verification

7 years agolshal: Add timeout for IPC calls.
Yifan Hong [Tue, 14 Feb 2017 23:43:31 +0000 (15:43 -0800)]
lshal: Add timeout for IPC calls.

IPC calls into interfaces should be done fault-torelently.
Add a timeout for each IPC call made so that lshal won't be
indefinitely blocked even if the interface don't reply
promptly.

Bug: 35317039

Test: lshal

Change-Id: Icb8157716ad68bddb5b33304b9063aa6f233985d

7 years agoconfigstore: removing BoardConfig variables (NUM_FRAMEBUFFER_SURFACE_BUFFERS)
Jaesoo Lee [Tue, 31 Jan 2017 06:26:18 +0000 (15:26 +0900)]
configstore: removing BoardConfig variables (NUM_FRAMEBUFFER_SURFACE_BUFFERS)

This change removes the use of NUM_FRAMEBUFFER_SURFACE_BUFFERS from
SurfaceFlinger.

Instead of using it, the implementation is changed so that it retrieves
corresponding configuration value (useTripleFramebuffer) from
configstore.

Design doc: go/design-confighal
Bug: 34723491
Test: build, run, log message "SurfaceFlinger FrameBuffer: ?" should be seen.

Change-Id: If6f6d13738d894b4880f42576f4ce8220b4a8bef

7 years agoMerge "VolumeShaper: Add to native IPlayer interface"
Andy Hung [Wed, 15 Feb 2017 23:17:20 +0000 (23:17 +0000)]
Merge "VolumeShaper: Add to native IPlayer interface"

7 years agoconfigstore: use utility functions defined in ConfigStoreUtils.h
Jaesoo Lee [Mon, 23 Jan 2017 10:03:16 +0000 (19:03 +0900)]
configstore: use utility functions defined in ConfigStoreUtils.h

This change modifies existing implementation to get config values via
configstore by using utility functions defined in ConfigStoreUtils.h.

Specifically, as an example, the utility function getInt64() is used
for vsyncEventPhaseoffsetNs defined in ISurfaceFlingerConfigs.

Design doc: go/design-confighal
Bug: 34724435
Test: build, run

Change-Id: I82a9371a84902c1e185d619d77e4c2e3272f84db

7 years agoMove libgvr to vendor/unbundled_google/libraries/vr.
Leandro Gracia Gil [Wed, 15 Feb 2017 02:34:05 +0000 (18:34 -0800)]
Move libgvr to vendor/unbundled_google/libraries/vr.

Bug: none
Change-Id: I1cffdf42a7b3fc5a4671c39ec39a85f8a16887f5

7 years agoMerge "Revert "Temporarily disable enumeration of VK_KHR_incremental_present""
TreeHugger Robot [Wed, 15 Feb 2017 22:50:27 +0000 (22:50 +0000)]
Merge "Revert "Temporarily disable enumeration of VK_KHR_incremental_present""

7 years agoFix the ownership of compiler artifacts for secondary dex files
Calin Juravle [Wed, 15 Feb 2017 20:44:14 +0000 (12:44 -0800)]
Fix the ownership of compiler artifacts for secondary dex files

odex, vdex and art files should be owned by the app and not by system.

Test: verify odex and vdex owner:
      adb shell cmd package compile -m speed --secondary-dex -f
com.google.android.gms
      adb shell ls
/data/user/0/com.google.android.gms/app_chimera/m/00000004/oat/arm64/
-al
      -rw-r--r-- 1 u0_a17 u0_a17       5640832 2017-02-02 18:00
DynamiteModulesA_GmsCore_prodmnc_alldpi_release.odex
      -rw-r--r-- 1 u0_a17 u0_a17       3016818 2017-02-15 12:42
DynamiteModulesA_GmsCore_prodmnc_alldpi_release.vdex

Bug: 35389574
Bug: 32871170
Change-Id: I0650265cedcc572d43bb1fc0d0758ae43ea890b2

7 years agoMerge "EGL: Add eglGetCompositorTimingANDROID."
Brian C. Anderson [Wed, 15 Feb 2017 22:32:45 +0000 (22:32 +0000)]
Merge "EGL: Add eglGetCompositorTimingANDROID."

7 years agosensord: Move sensord PDX socket directory creation to sensord.rc
Alex Vakulenko [Tue, 14 Feb 2017 17:48:08 +0000 (09:48 -0800)]
sensord: Move sensord PDX socket directory creation to sensord.rc

Moved sensord-specific init script rules to sensord.rc file

Bug: None
Test: `m -j32` succeeds, device boots.
Change-Id: Ica196019bea6a41bfa6f20982716eb2f40a1fb8f

7 years agoRemove Java and gvr references from vr window manager.
Alex Sakhartchouk [Fri, 10 Feb 2017 21:26:04 +0000 (16:26 -0500)]
Remove Java and gvr references from vr window manager.

Bug: 35224656
Test: Built with Java removed.
Change-Id: I4a9e37faee1b15a2f84724f928a94ab1b9dd60c7

7 years agoRevert "Temporarily disable enumeration of VK_KHR_incremental_present"
Ian Elliott [Wed, 15 Feb 2017 20:12:11 +0000 (20:12 +0000)]
Revert "Temporarily disable enumeration of VK_KHR_incremental_present"

This reverts commit 15b1cb2e57435514b4810f27e5ee01a2e480b338.

Change-Id: Ia4d6a75a6fc71107145e7273e891e1efb0f3eb9a

7 years agoMerge "sensorservice: Start using HIDL sensor HAL."
Ashutosh Joshi [Wed, 15 Feb 2017 16:49:51 +0000 (16:49 +0000)]
Merge "sensorservice: Start using HIDL sensor HAL."

7 years agoMerge "Remove TARGET_USES_QCOM_BSP from vr/sensord"
Jiyong Park [Wed, 15 Feb 2017 15:06:47 +0000 (15:06 +0000)]
Merge "Remove TARGET_USES_QCOM_BSP from vr/sensord"

7 years agolshal: Allow selecting columns and sorting by column.
Yifan Hong [Tue, 14 Feb 2017 01:51:59 +0000 (17:51 -0800)]
lshal: Allow selecting columns and sorting by column.

Examples: see tests below.

Test: lshal
Test: lshal -intpac
Test: lshal --sort=i
Test: lshal --sort=p

Bug: 34984175

Change-Id: Ia09823776a206868a5d58a2ede153a4538147756

7 years agolshal: Refactor lshal to use an Lshal class; combined instance column with interface...
Yifan Hong [Sat, 11 Feb 2017 01:49:58 +0000 (17:49 -0800)]
lshal: Refactor lshal to use an Lshal class; combined instance column with interface column

We need to be able to select columns, sort columns,
and do IPC calls fault-tolerently.
Refactoring lshal.cpp into an Lshal class for more
objective-oriented programming, so that global variables
can be avoided and less parameters will need
to be passed around.

Test: lshal outputs identical output as without this CL, except
with the column merged.

Change-Id: I9668c998da692222aef96ae67bbab8066172543d

7 years agoVolumeShaper: Add to native IPlayer interface
Andy Hung [Tue, 14 Feb 2017 21:45:26 +0000 (13:45 -0800)]
VolumeShaper: Add to native IPlayer interface

Test: Check proper ducking
Bug: 31015569
Change-Id: I679b32a3adbf8ec56bafa20c8479c7645b3d59fa

7 years agoMerge "surfaceflinger: skip buffer cache when BYPASS_IHWC"
TreeHugger Robot [Tue, 14 Feb 2017 20:46:22 +0000 (20:46 +0000)]
Merge "surfaceflinger: skip buffer cache when BYPASS_IHWC"

7 years agoMerge "Fix unitialized field in HWC2on1Adapter"
TreeHugger Robot [Tue, 14 Feb 2017 20:32:25 +0000 (20:32 +0000)]
Merge "Fix unitialized field in HWC2on1Adapter"

7 years agoMerge "Remove magic number usage in SurfaceFlinger"
TreeHugger Robot [Tue, 14 Feb 2017 20:06:55 +0000 (20:06 +0000)]
Merge "Remove magic number usage in SurfaceFlinger"

7 years agoMerged vr window manager and vr composer
Andrey Tuganov [Tue, 7 Feb 2017 21:19:15 +0000 (16:19 -0500)]
Merged vr window manager and vr composer

Vr window manager and vr composer are running in different threads of
the same process, communicating using a simple callback instead of binder
rpc.

Bug: 35101877
Test: Not tested.
Change-Id: I56d3cdfd3d9d60b2f2a25381a240542fd82d658f

7 years agoMerge "Ignore VK_KHR_incremental_present hint for MAILBOX."
TreeHugger Robot [Tue, 14 Feb 2017 19:45:36 +0000 (19:45 +0000)]
Merge "Ignore VK_KHR_incremental_present hint for MAILBOX."

7 years agosensorservice: Start using HIDL sensor HAL.
Steven Moreland [Tue, 20 Dec 2016 19:14:50 +0000 (11:14 -0800)]
sensorservice: Start using HIDL sensor HAL.

Framework now use the HIDL sensor HAL only. Loading the legacy
HAL library is removed.

Bug: 32978887
Test: sensors stream data in both passthrough and binderized mode.
Change-Id: I1d700a5a23cd9d209559570439f306aa22c613c1

7 years agoMerge "EGL: Use frameId instead of framesAgo for frame events."
Brian C. Anderson [Tue, 14 Feb 2017 19:26:21 +0000 (19:26 +0000)]
Merge "EGL: Use frameId instead of framesAgo for frame events."

7 years agoMerge "Sensors: Add LOW_LATENCY_OFFBODY_DETECT sensor API"
Nick Vaccaro [Tue, 14 Feb 2017 19:21:33 +0000 (19:21 +0000)]
Merge "Sensors: Add LOW_LATENCY_OFFBODY_DETECT sensor API"

7 years agoFix unitialized field in HWC2on1Adapter
Fabien Sanglard [Mon, 13 Feb 2017 20:43:08 +0000 (12:43 -0800)]
Fix unitialized field in HWC2on1Adapter

Bug: 33487853
Test: AUPT
Change-Id: If271eb6b9d357047b41fed19a2079325970132a7

7 years agoIgnore VK_KHR_incremental_present hint for MAILBOX.
Ian Elliott [Tue, 14 Feb 2017 17:58:30 +0000 (10:58 -0700)]
Ignore VK_KHR_incremental_present hint for MAILBOX.

Test: Using instrumented cube demo, and tmp ALOGI comments.

This code may eventually be replaced with code that constructs, stores,
and uses regions that spans multiple vkQueuePresentKHR() calls.  With
VK_PRESENT_MODE_MAILBOX_KHR, any given present may not be sent to the
display.  In such a case, the correct behavior is for the swapchain code
(a.k.a. acting for the "presentation engine") should build up a list of
regions across multiple vkQueuePresentKHR() calls, so that when an image
is presented, all of the updated regions will be sent to the display.
In the mean time, this code is correct (i.e. ignore the hint for
MAILBOX).

Change-Id: I413091871a9b9b7464ec941a857eea56e68f4189

7 years agosurfaceflinger: skip buffer cache when BYPASS_IHWC
Chia-I Wu [Tue, 14 Feb 2017 16:30:55 +0000 (08:30 -0800)]
surfaceflinger: skip buffer cache when BYPASS_IHWC

When SF talks to hwcomposer2 directly, we should skip HWC buffer
cache.  The cache works somehow similar to
IGraphicBufferConsumer::acquireBuffer, where buffer is set to
nullptr when it is already seen previously.  That confuses
hwcomposer2.

Bug: 35325794
Test: manual
Change-Id: I5306ecc9e7290bc6734091a9884024bf38667628

7 years agoMerge "Revert "dumpsys: add option to list hardware services."" am: 9555a5d497 am...
Steven Moreland [Tue, 14 Feb 2017 03:57:19 +0000 (03:57 +0000)]
Merge "Revert "dumpsys: add option to list hardware services."" am: 9555a5d497 am: d2390bea79 am: 8d3069503e
am: 36ec1bc76f

Change-Id: I5b16be2dae542e0becc114f36a2f75418e9911d5

7 years agoMerge "Revert "dumpsys: add option to list hardware services."" am: 9555a5d497 am...
Steven Moreland [Tue, 14 Feb 2017 03:54:22 +0000 (03:54 +0000)]
Merge "Revert "dumpsys: add option to list hardware services."" am: 9555a5d497 am: d2390bea79
am: 8d3069503e

Change-Id: I6f4d5148e41181a4498fe1bcc3b2e9e0551785fb

7 years agoMerge "Revert "dumpsys: add option to list hardware services."" am: 9555a5d497
Steven Moreland [Tue, 14 Feb 2017 03:52:21 +0000 (03:52 +0000)]
Merge "Revert "dumpsys: add option to list hardware services."" am: 9555a5d497
am: d2390bea79

Change-Id: Ib70ddc0635bc3a502dbc9f7eb31c5716860e9833

7 years agoMerge "Revert "dumpsys: add option to list hardware services.""
Steven Moreland [Tue, 14 Feb 2017 03:50:21 +0000 (03:50 +0000)]
Merge "Revert "dumpsys: add option to list hardware services.""
am: 9555a5d497

Change-Id: I022d2e803e169907c32fc7e263090ec2896d94c5

7 years agoMerge "Revert "dumpsys: add option to list hardware services.""
Treehugger Robot [Tue, 14 Feb 2017 03:44:52 +0000 (03:44 +0000)]
Merge "Revert "dumpsys: add option to list hardware services.""

7 years agoRevert "dumpsys: add option to list hardware services."
Steven Moreland [Mon, 13 Feb 2017 23:44:17 +0000 (23:44 +0000)]
Revert "dumpsys: add option to list hardware services."

This reverts commit 6270dd1bf7f4a6eaa0e36b2cbb0f9bdd4790b5d8.

Reason for revert: obsolete, removed in favor of lshal
Test: dumpsys_test

Change-Id: I06e256a5bd0995727a3d6f3f88f79a623b1474f3

7 years agoMerge "Ignore callbacks from the non-active hardware composer"
Steven Thomas [Tue, 14 Feb 2017 02:14:19 +0000 (02:14 +0000)]
Merge "Ignore callbacks from the non-active hardware composer"

7 years agoMerge "Temporarily disable enumeration of VK_KHR_incremental_present"
TreeHugger Robot [Tue, 14 Feb 2017 02:12:34 +0000 (02:12 +0000)]
Merge "Temporarily disable enumeration of VK_KHR_incremental_present"

7 years agoEGL: Enable eglGetFrameTimestamps.
Brian Anderson [Wed, 7 Dec 2016 00:18:38 +0000 (16:18 -0800)]
EGL: Enable eglGetFrameTimestamps.

Also clean up the specification description:
1) Reverse order of revision history notes.
2) Specifically mention polling from another thread.
3) Make it explicit that eglQueryTimestampSupportedANDROID
   works for the timestamps of both eglGetCompositorTimingANDROID
   and eglGetFrameTimestampsANDROID.

Test: adb shell /data/nativetest/libgui_test/libgui_test
    --gtest_filter=*GetFrameTimestamps*

Change-Id: I26ff1ea97654d8953a18afaad1455813191abe7d

7 years agoEGL: Add eglGetCompositorTimingANDROID.
Brian Anderson [Wed, 7 Dec 2016 22:55:56 +0000 (14:55 -0800)]
EGL: Add eglGetCompositorTimingANDROID.

Exposes the composite deadline, composite interval, and
the composite to present latency.

A history of composite and present fences are stored.
When the present fence's timestamp becomes known,
the composite to present latency is updated with
sampling jitter removed.

The values are updated in the producer when timestamps
are enabled and on queue and dequeue.

The deadline is snapped to the next expected deadline
based on the current systemTime().

Test: adb shell /data/nativetest/libgui_test/libgui_test
    --gtest_filter=*GetFrameTimestamps*

Change-Id: I406814258613b984b56488236632494f2f61ff2e

7 years agoTemporarily disable enumeration of VK_KHR_incremental_present
Ian Elliott [Mon, 13 Feb 2017 23:27:02 +0000 (16:27 -0700)]
Temporarily disable enumeration of VK_KHR_incremental_present

Test: Ran the instrumented cube demo, which showed the extension not
enumerated.

Since the extension is not yet ratified, we can't enable it in the
upcoming DP1 release.

Change-Id: I8234c2d9510a0d31c309fb2c25fe6126fb021a59

7 years agoMerge "Remove TARGET_USES_QCOM_BSP from libvrflinger"
Jiyong Park [Mon, 13 Feb 2017 23:12:37 +0000 (23:12 +0000)]
Merge "Remove TARGET_USES_QCOM_BSP from libvrflinger"

7 years agoMerge "Vibrates using 'cmd vibrator' instead of HAL vibrator."
TreeHugger Robot [Mon, 13 Feb 2017 20:54:34 +0000 (20:54 +0000)]
Merge "Vibrates using 'cmd vibrator' instead of HAL vibrator."

7 years agoIgnore callbacks from the non-active hardware composer
Steven Thomas [Mon, 6 Feb 2017 20:29:30 +0000 (12:29 -0800)]
Ignore callbacks from the non-active hardware composer

Ignore callbacks from the non-active hardware composer so we don't get
e.g. duplicate vsync callbacks, one from each composer.

Bug: None

Test: Manually confirmed with logs we're now ignoring callbacks on the
      non-active composer.

Change-Id: I8b475d6283d86c64ff96b41e78528bce8c6ff1d3

7 years agoMerge changes from topic 'lshal' am: c9bc03729b am: d99d31d5d3 am: 5581e229a6
Yifan Hong [Mon, 13 Feb 2017 19:49:41 +0000 (19:49 +0000)]
Merge changes from topic 'lshal' am: c9bc03729b am: d99d31d5d3 am: 5581e229a6
am: cd98373272

Change-Id: Ibea02dc9a1fc6e659992c746db3ef59ec5fc35aa

7 years agoMerge changes from topic 'lshal' am: c9bc03729b am: d99d31d5d3
Yifan Hong [Mon, 13 Feb 2017 19:43:23 +0000 (19:43 +0000)]
Merge changes from topic 'lshal' am: c9bc03729b am: d99d31d5d3
am: 5581e229a6

Change-Id: I526b604879c5c5103a7d0f9a66471534383c6175

7 years agoMerge changes from topic 'lshal' am: c9bc03729b
Yifan Hong [Mon, 13 Feb 2017 19:40:23 +0000 (19:40 +0000)]
Merge changes from topic 'lshal' am: c9bc03729b
am: d99d31d5d3

Change-Id: I615d885788739a2d3d2f11204ad23833a77d96d5

7 years agoMerge changes from topic 'lshal'
Yifan Hong [Mon, 13 Feb 2017 19:37:54 +0000 (19:37 +0000)]
Merge changes from topic 'lshal'
am: c9bc03729b

Change-Id: I5051bdae873e53c21dcd6e949e7c47da4482a192

7 years agoMerge changes from topic 'lshal'
Yifan Hong [Mon, 13 Feb 2017 19:32:37 +0000 (19:32 +0000)]
Merge changes from topic 'lshal'

* changes:
  Dump client PIDs for passthrough HALs.
  Fix permissions for lshal

7 years agolibui: add notes to registerBuffer(buffer_handle_t)
Chia-I Wu [Fri, 10 Feb 2017 22:53:12 +0000 (14:53 -0800)]
libui: add notes to registerBuffer(buffer_handle_t)

The method is semi-broken on gralloc0 devices.  It calls down to
Gralloc1On0Adapter::managementHook, which will return
GRALLOC1_ERROR_BAD_HANDLE when the handle is received from a remote
process.

Test: make
Change-Id: Ia0ca2b51e38e8afe66a917ca7fe2282db3968f53

7 years agoRemove TARGET_USES_QCOM_BSP from vr/sensord
Jiyong Park [Mon, 13 Feb 2017 04:55:31 +0000 (13:55 +0900)]
Remove TARGET_USES_QCOM_BSP from vr/sensord

Removing TARGET_USES_QCOM_BSP because 1) it is broken:
QCOM_B_FAMILY, QCOM_BSP macros are defined but never used. 2)
conditional compilation must be eliminated from the framework-side code
so that we can build a generic system.img.

Bug: 34115514
Test: build & run
Change-Id: Ic96c8d77bed9ce399fe6ffac2e57453861aa35a1