OSDN Git Service

android-x86/frameworks-native.git
7 years agoSurfaceFlinger: Trivial Transaction_test refactoring.
Robert Carr [Wed, 22 Feb 2017 03:41:24 +0000 (19:41 -0800)]
SurfaceFlinger: Trivial Transaction_test refactoring.

Make consistent use of the assertBG/FG color helpers
introduced in a past CL.

Test: Existing test passes.
Change-Id: Ic793c195e9ff8a99a3b6fbcfc9995b522c252c9a

7 years agoMerge "Removed build time variable ENABLE_CPUSETS." am: 52a60e08fb am: 33f4b64f23
Isaac Chen [Tue, 21 Feb 2017 18:10:32 +0000 (18:10 +0000)]
Merge "Removed build time variable ENABLE_CPUSETS." am: 52a60e08fb am: 33f4b64f23
am: eb8be8f5e9

Change-Id: I9624618aae00134414e946e3f6df97e89c5b7495

7 years agoMerge "Removed build time variable ENABLE_CPUSETS." am: 52a60e08fb
Isaac Chen [Tue, 21 Feb 2017 18:03:09 +0000 (18:03 +0000)]
Merge "Removed build time variable ENABLE_CPUSETS." am: 52a60e08fb
am: 33f4b64f23

Change-Id: Ia6f3940b52c28741a43be171c930d0cdd77fb454

7 years agoMerge "Removed build time variable ENABLE_CPUSETS."
Isaac Chen [Tue, 21 Feb 2017 17:52:35 +0000 (17:52 +0000)]
Merge "Removed build time variable ENABLE_CPUSETS."
am: 52a60e08fb

Change-Id: Ic5d351f18a0c839212987c5fcbb803a7c07ac5cb

7 years agoMerge "Removed build time variable ENABLE_CPUSETS."
Isaac Chen [Tue, 21 Feb 2017 02:05:22 +0000 (02:05 +0000)]
Merge "Removed build time variable ENABLE_CPUSETS."

7 years agoUpdate list of output files in vr_window_manager hidl genrule
Colin Cross [Sun, 19 Feb 2017 17:39:05 +0000 (09:39 -0800)]
Update list of output files in vr_window_manager hidl genrule

The output files in the android.dvr.composer@1.0_genc++_headers rule
is not correct, which causes ninja to rebuild the rule on every
incremental build.  Fix the list of files to match what is actually
created.

Bug: 33554989
Bug: 35562758
Test: builds, but doesn't rebuild on every incremental build
Change-Id: I2938ad02b8feade4de6d8a5cc969f37e793e93a8

7 years agoMerge "move vector math out of libui"
TreeHugger Robot [Sat, 18 Feb 2017 05:37:19 +0000 (05:37 +0000)]
Merge "move vector math out of libui"

7 years agoMerge "Refactor HWC2on1Adapter"
TreeHugger Robot [Sat, 18 Feb 2017 05:08:17 +0000 (05:08 +0000)]
Merge "Refactor HWC2on1Adapter"

7 years agoRemoved build time variable ENABLE_CPUSETS.
Isaac Chen [Thu, 16 Feb 2017 03:51:51 +0000 (11:51 +0800)]
Removed build time variable ENABLE_CPUSETS.

Use runtime check, cpuset_enabled(), instead of build time varianble
usually set in BoardConfog.mk.

Bug: 34726944

Test: Tested on Sailfish
      without cpuset mounted
      with cpuset mounted, but without schedtune
      with cpuset mounted and with schedtune

Change-Id: I00153628db62abfbaa0ba75d571ba1bda0611ff3

7 years agomove vector math out of libui
Mathias Agopian [Fri, 17 Feb 2017 23:46:13 +0000 (15:46 -0800)]
move vector math out of libui

created a new header-only static libmath lib

Test: built & ran
Bug: n/a
Change-Id: Ic63ef5f54d9a0de07a9ab9e4d67be01ab6169fc0

7 years agoRefactor HWC2on1Adapter
Fabien Sanglard [Sun, 12 Feb 2017 08:08:14 +0000 (00:08 -0800)]
Refactor HWC2on1Adapter

- Simply memory allocation with a single, consolidated calloc().
- Remove latch system which did not prove useful.
- Converted { to be before \n.

Change-Id: Id1daec2343225598160395bfecddc86955e2b610

7 years agoMerge "libdvrgraphics: Add libarect as whole static lib to fix compile"
TreeHugger Robot [Sat, 18 Feb 2017 02:32:42 +0000 (02:32 +0000)]
Merge "libdvrgraphics: Add libarect as whole static lib to fix compile"

7 years agoMerge "Discard surfaceDamage for HWC1 v < 1.5"
TreeHugger Robot [Sat, 18 Feb 2017 01:52:17 +0000 (01:52 +0000)]
Merge "Discard surfaceDamage for HWC1 v < 1.5"

7 years agoMerge "Fix lshal cannot be run without root" am: 6481ebfbc3 am: 8d6362fc44
Yifan Hong [Sat, 18 Feb 2017 01:21:37 +0000 (01:21 +0000)]
Merge "Fix lshal cannot be run without root" am: 6481ebfbc3 am: 8d6362fc44
am: b40360f7c3

Change-Id: Id53e3d9648060bbdecc5f1b67d4ac85183162740

7 years agoMerge "Fix lshal cannot be run without root" am: 6481ebfbc3
Yifan Hong [Sat, 18 Feb 2017 01:07:20 +0000 (01:07 +0000)]
Merge "Fix lshal cannot be run without root" am: 6481ebfbc3
am: 8d6362fc44

Change-Id: Id188e2657e393b0463c936435d2d8273bc3a80cf

7 years agoMerge "Fix lshal cannot be run without root"
Yifan Hong [Sat, 18 Feb 2017 01:05:34 +0000 (01:05 +0000)]
Merge "Fix lshal cannot be run without root"
am: 6481ebfbc3

Change-Id: Ic269ab86b933557ee171961f78d6e49e0d4df315

7 years agoMerge "Fix lshal cannot be run without root"
Treehugger Robot [Sat, 18 Feb 2017 01:03:15 +0000 (01:03 +0000)]
Merge "Fix lshal cannot be run without root"

7 years agoMerge "Polynomial pose prediction."
TreeHugger Robot [Sat, 18 Feb 2017 00:45:35 +0000 (00:45 +0000)]
Merge "Polynomial pose prediction."

7 years agoMerge "Fix typos in EGL_ANDROID_get_native_client_buffer spec."
TreeHugger Robot [Sat, 18 Feb 2017 00:41:15 +0000 (00:41 +0000)]
Merge "Fix typos in EGL_ANDROID_get_native_client_buffer spec."

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 agoDiscard surfaceDamage for HWC1 v < 1.5
Fabien Sanglard [Sat, 18 Feb 2017 00:14:18 +0000 (16:14 -0800)]
Discard surfaceDamage for HWC1 v < 1.5

Test: Manual
Change-Id: Ia9193a88dc6df206c8f197adf144466f164afa1c

7 years agolibdvrgraphics: Add libarect as whole static lib to fix compile
John Muir [Sat, 18 Feb 2017 00:11:09 +0000 (16:11 -0800)]
libdvrgraphics: Add libarect as whole static lib to fix compile

Changes in frameworks/native cause compile errors looking for
android/rect.h.

Bug: None
Test: Build completes.
Change-Id: Ie9ba9aca0cb620c0874d47113b9ea9875277a0f7

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 agoFix lshal cannot be run without root
Yifan Hong [Fri, 17 Feb 2017 21:38:47 +0000 (13:38 -0800)]
Fix lshal cannot be run without root

Root cause is invoking copy constructor on a Return<T> object
implicitly, while the old object contains a failed status and
gets destroyed. Use the move constructor instead to fix this.

Test: adb unroot && adb shell lshal
Change-Id: I44710166cc5d7da30bf54b10d1860be1b91dc98a

7 years agoFix typos in EGL_ANDROID_get_native_client_buffer spec.
Craig Donner [Fri, 17 Feb 2017 22:24:29 +0000 (14:24 -0800)]
Fix typos in EGL_ANDROID_get_native_client_buffer spec.

Bug: 34050596
Test: N/A
Change-Id: Ic15f074c019b0973408436781a00f9bd0260f036

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 agoPolynomial pose prediction.
Okan Arikan [Thu, 9 Feb 2017 18:40:21 +0000 (10:40 -0800)]
Polynomial pose prediction.

Adds PolynomialPosePredictor. It is not enabled by default in sensord.

I will do a grid search for the best parameters before turning it on.

You can set dvr.predictor_type to 1 and restart sensord to test.

Bug: 35362498
Test: Run predictor_eval to test the numerical and performance. Set dvr.predictor_type to 1 for qualitative testing.
Change-Id: I435fcc4d141f5949047d0f9d972fcfc8f2a94519
(cherry picked from commit 0b024945982fd2630709534ce448e55657768696)

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