OSDN Git Service
Yifan Hong [Wed, 22 Feb 2017 18:43:43 +0000 (18:43 +0000)]
Merge "lshal: Fix timeout causes unexpected exits." am:
057e74631b am:
fdf61aa557
am:
91a4bd9cd2
Change-Id: I4663a64806ddb285e8bf5e9235759fee49bc8a93
Yifan Hong [Wed, 22 Feb 2017 18:41:44 +0000 (18:41 +0000)]
Merge "lshal: Fix timeout causes unexpected exits." am:
057e74631b
am:
fdf61aa557
Change-Id: Ie3f025b610fd8b523b4f03c2c9b5d62b7966f309
Yifan Hong [Wed, 22 Feb 2017 18:40:04 +0000 (18:40 +0000)]
Merge "lshal: Fix timeout causes unexpected exits."
am:
057e74631b
Change-Id: Iadfbc11f8bbfc45759f2214d0811922cbb173758
Yifan Hong [Wed, 22 Feb 2017 18:28:23 +0000 (18:28 +0000)]
Merge "lshal: Fix timeout causes unexpected exits."
TreeHugger Robot [Wed, 22 Feb 2017 07:39:15 +0000 (07:39 +0000)]
Merge "Add missing GLES 3.x metadata"
TreeHugger Robot [Wed, 22 Feb 2017 00:40:14 +0000 (00:40 +0000)]
Merge "cleanup libui’s includes"
Yifan Hong [Tue, 21 Feb 2017 22:59:00 +0000 (14:59 -0800)]
lshal: Fix timeout causes unexpected exits.
with thread::detach the background thread keeps running even after
the thread object is destroyed; the background thread will access
caller's stack memory, causing segfault. Change it to a thread join
to avoid the issue. To avoid waiting too long on the child thread,
send a SIGINT if timeout (child thread's signal handler will then
call pthread_exit() to terminate the thread).
Since we are using pthread_* functions, change usage of std::thread
to pthread_t for consistency.
Test: lshal
Test: run lshal with IPC_CALL_TIMEOUT set to zero will no longer
cause SIGSEGV and SIGABRT (test 10 times)
Bug:
35623669
Change-Id: I4eef8ffd8ff399793648e861ca4c1a2bdcc7ec50
TreeHugger Robot [Tue, 21 Feb 2017 23:21:33 +0000 (23:21 +0000)]
Merge "Use --receiver-include-background instead of package name on SendBroadcast()."
Mathias Agopian [Thu, 16 Feb 2017 03:48:58 +0000 (19:48 -0800)]
cleanup libui’s includes
- remove unneeded includes
- include a cpp’s header first in all cpps
Test: compiled & booted
Bug:
35164655
Change-Id: I0890913fcc6614cce156aff19fccdef183145beb
TreeHugger Robot [Tue, 21 Feb 2017 22:48:11 +0000 (22:48 +0000)]
Merge "Remove erroneous log message"
Jeff Sharkey [Tue, 21 Feb 2017 20:56:56 +0000 (20:56 +0000)]
Merge "Method to test for quota support."
Robert Carr [Thu, 9 Feb 2017 01:54:29 +0000 (17:54 -0800)]
Remove erroneous log message
It seems we always get a duplicate remove from the layer-cleaner
so this was showing up any time any layer was removed. We didn't have
this message before the child layers CL so lets get rid of it quickly.
Test: Deleting a line of logging code. It builds!
Change-Id: I16cc0c0b325e43d36cae684b06a93c099baa1aa6
TreeHugger Robot [Tue, 21 Feb 2017 20:16:57 +0000 (20:16 +0000)]
Merge "vr_wm: Import cloned buffer in VR HWC"
TreeHugger Robot [Tue, 21 Feb 2017 20:14:08 +0000 (20:14 +0000)]
Merge "Refactor libposepredictor to be self-contained."
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
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
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
Okan Arikan [Thu, 16 Feb 2017 21:21:04 +0000 (13:21 -0800)]
Refactor libposepredictor to be self-contained.
The CL seems big but it is mainly moving stuff around to
make libposepredictor self contained.
libposepredictor/include/predictor.h exposes all functionality and
it only includes Eigen stuff.
Also adds a shared library build step to the makefile.
Bug:
35362498
Test: No functional change.
Change-Id: I0c850711ffde16ee75e4c88b09e47f761c100385
Daniel Nicoara [Tue, 21 Feb 2017 17:23:49 +0000 (12:23 -0500)]
vr_wm: Import cloned buffer in VR HWC
Bug: b/
35619417
Test: Compiled and tested on device. Ensured SurfaceFlinger content is
visible in VR mode.
Change-Id: Ic2e653c9771fd022079486704b9e7a412d18bfdc
Jeff Sharkey [Tue, 21 Feb 2017 17:00:53 +0000 (10:00 -0700)]
Method to test for quota support.
Framework logic needs to change its behavior depending on how quickly
disk usage calculations can be performed.
Test: builds, boots
Bug:
34690590
Change-Id: I6139d1ea6a6084b1fd42062e2032ec9f515f6d98
Isaac Chen [Tue, 21 Feb 2017 02:05:22 +0000 (02:05 +0000)]
Merge "Removed build time variable ENABLE_CPUSETS."
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
Romain Guy [Sat, 18 Feb 2017 03:53:12 +0000 (19:53 -0800)]
Add missing GLES 3.x metadata
Prevent a crash when glGetIntegerv(GL_NUM_PROGRAM_BINARY_FORMATS) returns 0
Bug:
33106868
Test: Manual test app
Change-Id: I5c9fdf4f6f14aa08961e70a0cf63fb78b88738fb
TreeHugger Robot [Sat, 18 Feb 2017 05:37:19 +0000 (05:37 +0000)]
Merge "move vector math out of libui"
TreeHugger Robot [Sat, 18 Feb 2017 05:08:17 +0000 (05:08 +0000)]
Merge "Refactor HWC2on1Adapter"
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
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
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
TreeHugger Robot [Sat, 18 Feb 2017 02:32:42 +0000 (02:32 +0000)]
Merge "libdvrgraphics: Add libarect as whole static lib to fix compile"
TreeHugger Robot [Sat, 18 Feb 2017 01:52:17 +0000 (01:52 +0000)]
Merge "Discard surfaceDamage for HWC1 v < 1.5"
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
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
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
Treehugger Robot [Sat, 18 Feb 2017 01:03:15 +0000 (01:03 +0000)]
Merge "Fix lshal cannot be run without root"
TreeHugger Robot [Sat, 18 Feb 2017 00:45:35 +0000 (00:45 +0000)]
Merge "Polynomial pose prediction."
TreeHugger Robot [Sat, 18 Feb 2017 00:41:15 +0000 (00:41 +0000)]
Merge "Fix typos in EGL_ANDROID_get_native_client_buffer spec."
TreeHugger Robot [Sat, 18 Feb 2017 00:28:46 +0000 (00:28 +0000)]
Merge "Add tool to generate color space conversion 3D LUTs"
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
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
TreeHugger Robot [Sat, 18 Feb 2017 00:11:02 +0000 (00:11 +0000)]
Merge "Fix typo in Region to avoid unexpected values"
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
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
TreeHugger Robot [Fri, 17 Feb 2017 22:21:01 +0000 (22:21 +0000)]
Merge "Break a dependency of libui on libandroid"
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.
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
TreeHugger Robot [Fri, 17 Feb 2017 20:49:04 +0000 (20:49 +0000)]
Merge "Move FloatRect from libgfx to libui"
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
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"
TreeHugger Robot [Fri, 17 Feb 2017 19:40:10 +0000 (19:40 +0000)]
Merge "Verbose logging when API_MEDIA is force-disconnected"
Romain Guy [Fri, 17 Feb 2017 19:25:03 +0000 (19:25 +0000)]
Merge "Add RGBA 10:10:10:2 format for surfaces"
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
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
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
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
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
Treehugger Robot [Fri, 17 Feb 2017 18:38:53 +0000 (18:38 +0000)]
Merge "atrace: Don't output service lookup/notification errors."
TreeHugger Robot [Fri, 17 Feb 2017 18:06:22 +0000 (18:06 +0000)]
Merge "libui: Remove STL from Fence"
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
Courtney Goeltzenleuchter [Fri, 17 Feb 2017 14:56:04 +0000 (14:56 +0000)]
Merge "Add HDR Metadata extension"
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
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
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
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
TreeHugger Robot [Fri, 17 Feb 2017 00:02:00 +0000 (00:02 +0000)]
Merge "Expose extension for obtaining an EGLClientBuffer from an AHardwareBuffer"
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)
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
TreeHugger Robot [Thu, 16 Feb 2017 22:36:36 +0000 (22:36 +0000)]
Merge "VR: Move VR HWC initialization in SurfaceFlingerView"
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
TreeHugger Robot [Thu, 16 Feb 2017 20:44:11 +0000 (20:44 +0000)]
Merge "Move libgvr to vendor/unbundled_google/libraries/vr."
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
TreeHugger Robot [Thu, 16 Feb 2017 19:59:17 +0000 (19:59 +0000)]
Merge "surfaceflinger: disable VR mode while SELinux issues are resolved."
TreeHugger Robot [Thu, 16 Feb 2017 19:44:30 +0000 (19:44 +0000)]
Merge "Merged vr window manager and vr composer"
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
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
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
Yifan Hong [Thu, 16 Feb 2017 18:10:31 +0000 (18:10 +0000)]
Merge changes from topic 'lshal'
am:
7e894fc94f
Change-Id: Iede25dfbf58f71b56cec13733bd8f5ddbeb95c31
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
Alex Vakulenko [Thu, 16 Feb 2017 18:00:58 +0000 (18:00 +0000)]
Merge "sensord: Move sensord PDX socket directory creation to sensord.rc"
TreeHugger Robot [Thu, 16 Feb 2017 17:33:22 +0000 (17:33 +0000)]
Merge "Remove Java and gvr references from vr window manager."
TreeHugger Robot [Thu, 16 Feb 2017 15:16:21 +0000 (15:16 +0000)]
Merge "Moved bugreport intents to the com.android.internal namespace."
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
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
Calin Juravle [Thu, 16 Feb 2017 02:04:03 +0000 (02:04 +0000)]
Merge "Fix the ownership of compiler artifacts for secondary dex files"
Felipe Leme [Thu, 16 Feb 2017 01:27:40 +0000 (17:27 -0800)]
Use --receiver-include-background instead of package name on SendBroadcast().
...so it does not break other receivers of BUGREPORT_FINISHED.
Bug:
34833915
Test: manual verification
Change-Id: Ic203a02a8961be6aa7e70e536833c7ef0ec5ee33
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
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
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
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
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
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
Brian C. Anderson [Thu, 16 Feb 2017 00:39:29 +0000 (00:39 +0000)]
Merge "EGL: Enable eglGetFrameTimestamps."
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
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
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
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
Andy Hung [Wed, 15 Feb 2017 23:17:20 +0000 (23:17 +0000)]
Merge "VolumeShaper: Add to native IPlayer interface"
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
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
TreeHugger Robot [Wed, 15 Feb 2017 22:50:27 +0000 (22:50 +0000)]
Merge "Revert "Temporarily disable enumeration of VK_KHR_incremental_present""
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