OSDN Git Service

android-x86/frameworks-native.git
7 years agoTrack AudioService method: disableRingtoneSync
Robin Lee [Tue, 24 Jan 2017 11:16:54 +0000 (11:16 +0000)]
Track AudioService method: disableRingtoneSync

Bug: 30658854
Test: cts-tradefed --test com.android.cts.devicepolicy.ManagedProfileTest
Change-Id: Ie38497f2ff268689171671c8e87cf75b1e2e22ae

7 years agoEGL: Load updated EGL/GLES drivers am: a91f64cbe1 -s ours
Jesse Hall [Tue, 17 Jan 2017 20:46:06 +0000 (20:46 +0000)]
EGL: Load updated EGL/GLES drivers am: a91f64cbe1  -s ours
am: 1fd440e925  -s ours

Change-Id: I13d034f5d019185f746e5ee92c55bd496fbe32c0

7 years agoLoad updated drivers using derived loader namespace am: afd02885b9 -s ours
Jesse Hall [Tue, 17 Jan 2017 20:45:53 +0000 (20:45 +0000)]
Load updated drivers using derived loader namespace am: afd02885b9  -s ours
am: bb649ee3a9  -s ours

Change-Id: Ia7d90b0bcc29f4d01b17de86d21d460a598c99bd

7 years agoEGL: Load updated EGL/GLES drivers
Jesse Hall [Tue, 17 Jan 2017 20:45:28 +0000 (20:45 +0000)]
EGL: Load updated EGL/GLES drivers
am: 1966cf622b

Change-Id: I9e2670098a3f51d3c1536f9ab503b0b2e6034604

7 years agoLoad updated drivers using derived loader namespace
Jesse Hall [Tue, 17 Jan 2017 20:45:20 +0000 (20:45 +0000)]
Load updated drivers using derived loader namespace
am: b2401203c6  -s ours

Change-Id: I7fd1b858d0541b794b424fa8c7f73ee5c2180ac1

7 years agoEGL: Load updated EGL/GLES drivers
Jesse Hall [Tue, 17 Jan 2017 20:31:46 +0000 (20:31 +0000)]
EGL: Load updated EGL/GLES drivers
am: a91f64cbe1  -s ours

Change-Id: I6a26eb01dfdcc27e3fedf61b03159862f0dd6da8

7 years agoLoad updated drivers using derived loader namespace
Jesse Hall [Tue, 17 Jan 2017 20:31:37 +0000 (20:31 +0000)]
Load updated drivers using derived loader namespace
am: afd02885b9  -s ours

Change-Id: Iea9d3a6d7efb7224a9c7b52e737299b921a704d3

7 years agoEGL: Load updated EGL/GLES drivers
Jesse Hall [Tue, 20 Dec 2016 23:24:28 +0000 (15:24 -0800)]
EGL: Load updated EGL/GLES drivers

Because the driver namespace is stored in libgui, and libgui depends
on libEGL, this required a hack for libEGL to access the namespace.
See the comment added in GraphicsEnv.h for details; the summary is
that the libgui->libEGL dependency should go away, and then libEGL can
depend on libgui directly.

For system drivers, the loader would happily load anything named
lib{GLES,EGL,GLESv2,GLESv1_CM}_*.so in /vendor/lib[64]/egl, for
backward-compatibility with the old and no-longer-supported egl.cfg
system. However, it preferred unsuffixed names. That's not actually a
good idea, since the DT_SONAME would clash with the system libraries.
For updated drivers, we only look for suffixes from the
ro.hardware.egl and ro.board.platform system properties, similar to
the Vulkan and HAL library search. A future change (tied to a future
release) will do the same for system drivers.

Bug: 33531483
Test: Launch GLES apps w/ and w/o updated driver package
Change-Id: Ibfbb275629b0c6cf9c51314aea1361e81ff72d4b

7 years agoLoad updated drivers using derived loader namespace
Jesse Hall [Thu, 15 Dec 2016 00:54:06 +0000 (16:54 -0800)]
Load updated drivers using derived loader namespace

Bug: 33531483
Test: Launch vulkan apps w/ and w/o updated driver package
Change-Id: Ia73e1e33b637d6ffd96ea0480ed6d85b9f68dce3

7 years agoMerge "Handle devices without quota, speed up lookup." am: 36ba03a248 am: 411ae16a91...
Jeff Sharkey [Tue, 17 Jan 2017 19:24:54 +0000 (19:24 +0000)]
Merge "Handle devices without quota, speed up lookup." am: 36ba03a248 am: 411ae16a91 am: 9eeb77f0dd
am: bf8bc22859

Change-Id: I94e86de78b8d84f0d3a23ff627b0808812a47ded

7 years agoMerge "Native IPlayer interface"
Jean-Michel Trivi [Tue, 17 Jan 2017 18:56:44 +0000 (18:56 +0000)]
Merge "Native IPlayer interface"

7 years agoMerge "Handle devices without quota, speed up lookup." am: 36ba03a248 am: 411ae16a91
Jeff Sharkey [Tue, 17 Jan 2017 18:07:20 +0000 (18:07 +0000)]
Merge "Handle devices without quota, speed up lookup." am: 36ba03a248 am: 411ae16a91
am: 9eeb77f0dd

Change-Id: I6f6004769a576003a5fb27bcd78470badf43d68a

7 years agoMerge "Handle devices without quota, speed up lookup." am: 36ba03a248
Jeff Sharkey [Tue, 17 Jan 2017 17:47:16 +0000 (17:47 +0000)]
Merge "Handle devices without quota, speed up lookup." am: 36ba03a248
am: 411ae16a91

Change-Id: Icb7deaa5e60880d783fc4c434bbd0e70ad2c188b

7 years agoEGL: Load updated EGL/GLES drivers
Jesse Hall [Tue, 20 Dec 2016 23:24:28 +0000 (15:24 -0800)]
EGL: Load updated EGL/GLES drivers

Because the driver namespace is stored in libgui, and libgui depends
on libEGL, this required a hack for libEGL to access the namespace.
See the comment added in GraphicsEnv.h for details; the summary is
that the libgui->libEGL dependency should go away, and then libEGL can
depend on libgui directly.

For system drivers, the loader would happily load anything named
lib{GLES,EGL,GLESv2,GLESv1_CM}_*.so in /vendor/lib[64]/egl, for
backward-compatibility with the old and no-longer-supported egl.cfg
system. However, it preferred unsuffixed names. That's not actually a
good idea, since the DT_SONAME would clash with the system libraries.
For updated drivers, we only look for suffixes from the
ro.hardware.egl and ro.board.platform system properties, similar to
the Vulkan and HAL library search. A future change (tied to a future
release) will do the same for system drivers.

Bug: 33531483
Change-Id: If6eb7dbbc37f219c999e20a983569d4c4e73bda1
Merged-In: Ibfbb275629b0c6cf9c51314aea1361e81ff72d4b

7 years agoLoad updated drivers using derived loader namespace
Jesse Hall [Thu, 15 Dec 2016 00:54:06 +0000 (16:54 -0800)]
Load updated drivers using derived loader namespace

Bug: 33531483
Change-Id: I7e4d5b76d5dde42f2d1b2ad5079a5339a4d11f3d
Merged-In: Ia73e1e33b637d6ffd96ea0480ed6d85b9f68dce3

7 years agoMerge "Handle devices without quota, speed up lookup."
Jeff Sharkey [Tue, 17 Jan 2017 17:27:14 +0000 (17:27 +0000)]
Merge "Handle devices without quota, speed up lookup."
am: 36ba03a248

Change-Id: I38d4e01057e3cd65f4362056336294e8136df459

7 years agoMerge changes from topic 'drvup-master'
TreeHugger Robot [Tue, 17 Jan 2017 17:15:25 +0000 (17:15 +0000)]
Merge changes from topic 'drvup-master'

* changes:
  EGL: Load updated EGL/GLES drivers
  Load updated drivers using derived loader namespace

7 years agoNative IPlayer interface
Jean-Michel Trivi [Fri, 6 Jan 2017 02:05:28 +0000 (18:05 -0800)]
Native IPlayer interface

Native definition for the IPlayer interface.
Use types instead of int wherever applicable in IAudioManager.

Test: run OpenSL ES app and then dumpsys audio
Bug 30258418

Change-Id: I5b4686a7da4e88413439abfe2613206ed4773f7a

7 years agoMerge "Handle devices without quota, speed up lookup."
Jeff Sharkey [Tue, 17 Jan 2017 16:54:00 +0000 (16:54 +0000)]
Merge "Handle devices without quota, speed up lookup."

7 years agoEGL: Load updated EGL/GLES drivers
Jesse Hall [Tue, 20 Dec 2016 23:24:28 +0000 (15:24 -0800)]
EGL: Load updated EGL/GLES drivers

Because the driver namespace is stored in libgui, and libgui depends
on libEGL, this required a hack for libEGL to access the namespace.
See the comment added in GraphicsEnv.h for details; the summary is
that the libgui->libEGL dependency should go away, and then libEGL can
depend on libgui directly.

For system drivers, the loader would happily load anything named
lib{GLES,EGL,GLESv2,GLESv1_CM}_*.so in /vendor/lib[64]/egl, for
backward-compatibility with the old and no-longer-supported egl.cfg
system. However, it preferred unsuffixed names. That's not actually a
good idea, since the DT_SONAME would clash with the system libraries.
For updated drivers, we only look for suffixes from the
ro.hardware.egl and ro.board.platform system properties, similar to
the Vulkan and HAL library search. A future change (tied to a future
release) will do the same for system drivers.

Bug: 33531483
Test: Launch GLES apps w/ and w/o updated driver package
Change-Id: Ibfbb275629b0c6cf9c51314aea1361e81ff72d4b

7 years agoLoad updated drivers using derived loader namespace
Jesse Hall [Thu, 15 Dec 2016 00:54:06 +0000 (16:54 -0800)]
Load updated drivers using derived loader namespace

Bug: 33531483
Test: Launch vulkan apps w/ and w/o updated driver package
Change-Id: Ia73e1e33b637d6ffd96ea0480ed6d85b9f68dce3

7 years agoMerge changes Ic746ea89,Iebaa8063 am: 950e3f5696 am: f1d87ca9b8 am: 4c00ce0e6a
Jeff Sharkey [Tue, 17 Jan 2017 04:28:35 +0000 (04:28 +0000)]
Merge changes Ic746ea89,Iebaa8063 am: 950e3f5696 am: f1d87ca9b8 am: 4c00ce0e6a
am: d06bc6a970

Change-Id: I6849956cd847b61b062e4f01cc7221e2be8dfbd1

7 years agoWrap all installd operations in lock. am: 7a9059e8ed am: b940bdae84 am: 0c4cc3ebf1
Jeff Sharkey [Tue, 17 Jan 2017 04:28:13 +0000 (04:28 +0000)]
Wrap all installd operations in lock. am: 7a9059e8ed am: b940bdae84 am: 0c4cc3ebf1
am: 53c09d3b56

Change-Id: I97bb0b683c0033815009e6d9376aa18d1f503ebc

7 years agoMask st_mode before comparing it. am: 24ef15bd00 am: 0e636867b5 am: fc7bb04d26
Jeff Sharkey [Tue, 17 Jan 2017 04:27:50 +0000 (04:27 +0000)]
Mask st_mode before comparing it. am: 24ef15bd00 am: 0e636867b5 am: fc7bb04d26
am: d7025b423a

Change-Id: I19192f9d88fc022a4c252035ee6360e7a897b05e

7 years agoMerge changes Ic746ea89,Iebaa8063 am: 950e3f5696 am: f1d87ca9b8
Jeff Sharkey [Tue, 17 Jan 2017 04:19:55 +0000 (04:19 +0000)]
Merge changes Ic746ea89,Iebaa8063 am: 950e3f5696 am: f1d87ca9b8
am: 4c00ce0e6a

Change-Id: Ife5b173761432e8e0c4d79051742a7fd782998a7

7 years agoWrap all installd operations in lock. am: 7a9059e8ed am: b940bdae84
Jeff Sharkey [Tue, 17 Jan 2017 04:19:45 +0000 (04:19 +0000)]
Wrap all installd operations in lock. am: 7a9059e8ed am: b940bdae84
am: 0c4cc3ebf1

Change-Id: Ia1f4a8234e8ecbc7040e1042ad4c3d77d8399770

7 years agoMask st_mode before comparing it. am: 24ef15bd00 am: 0e636867b5
Jeff Sharkey [Tue, 17 Jan 2017 04:19:37 +0000 (04:19 +0000)]
Mask st_mode before comparing it. am: 24ef15bd00 am: 0e636867b5
am: fc7bb04d26

Change-Id: I47042d02d6a9de1678f24eb7fda1be61c9d51631

7 years agoMerge changes Ic746ea89,Iebaa8063 am: 950e3f5696
Jeff Sharkey [Tue, 17 Jan 2017 04:13:56 +0000 (04:13 +0000)]
Merge changes Ic746ea89,Iebaa8063 am: 950e3f5696
am: f1d87ca9b8

Change-Id: Icdbfc562c9aad5ed0253e04b215d88cb666c94c1

7 years agoWrap all installd operations in lock. am: 7a9059e8ed
Jeff Sharkey [Tue, 17 Jan 2017 04:13:46 +0000 (04:13 +0000)]
Wrap all installd operations in lock. am: 7a9059e8ed
am: b940bdae84

Change-Id: I494c59b015dac7dd301c1666ef95a9c28a00f7e3

7 years agoMask st_mode before comparing it. am: 24ef15bd00
Jeff Sharkey [Tue, 17 Jan 2017 04:13:37 +0000 (04:13 +0000)]
Mask st_mode before comparing it. am: 24ef15bd00
am: 0e636867b5

Change-Id: Ic8968f123759d36d49bf9bd65ec17e7f6024b888

7 years agoMerge changes Ic746ea89,Iebaa8063
Jeff Sharkey [Tue, 17 Jan 2017 04:08:16 +0000 (04:08 +0000)]
Merge changes Ic746ea89,Iebaa8063
am: 950e3f5696

Change-Id: I61d240c0345e7b0a5a5d499c003230396aa469ec

7 years agoWrap all installd operations in lock.
Jeff Sharkey [Tue, 17 Jan 2017 04:08:14 +0000 (04:08 +0000)]
Wrap all installd operations in lock.
am: 7a9059e8ed

Change-Id: Ide1ef93a041ee5ff683babb865e382d1cb7a7356

7 years agoMask st_mode before comparing it.
Jeff Sharkey [Tue, 17 Jan 2017 04:08:06 +0000 (04:08 +0000)]
Mask st_mode before comparing it.
am: 24ef15bd00

Change-Id: I2b9ec79a679428cb6018798110bf4c3aa2936ae0

7 years agoMerge changes Ic746ea89,Iebaa8063
Treehugger Robot [Tue, 17 Jan 2017 04:02:45 +0000 (04:02 +0000)]
Merge changes Ic746ea89,Iebaa8063

* changes:
  Wrap all installd operations in lock.
  Mask st_mode before comparing it.

7 years agoHandle devices without quota, speed up lookup.
Jeff Sharkey [Tue, 17 Jan 2017 03:57:45 +0000 (20:57 -0700)]
Handle devices without quota, speed up lookup.

Start tracking which block devices have quota support, and gracefully
clear FLAG_USE_QUOTA when no support is present.

Also build a cached map of mounted volumes that support quota, which
halves the average quota calculation speed from 0.70ms to 0.35ms,
since we're no longer parsing procfs every time.

Test: builds, boots, common operations work
Bug: 34249218
Change-Id: Ie791df7801b67495331f3eea256c018860c9b4f6

7 years agoWrap all installd operations in lock.
Jeff Sharkey [Tue, 17 Jan 2017 02:07:18 +0000 (19:07 -0700)]
Wrap all installd operations in lock.

Historically installd has a single lock up in the framework, but
we're starting to call in from multiple locations, so installd needs
to protect itself.

This specifically applies to any disk measurement requests, which
use the optimized fts(3) mode which uses chdir() internally.

Test: builds, boots, common operations work
Bug: 34330051
Change-Id: Ic746ea890ebcc7b2bf923404874b04dbc19d42ad

7 years agoMask st_mode before comparing it.
Jeff Sharkey [Fri, 13 Jan 2017 02:27:03 +0000 (19:27 -0700)]
Mask st_mode before comparing it.

Otherwise it will never match the requested mode_t.

Test: builds, boots, skips when matching
Bug: 34201111
Change-Id: Iebaa8063a72eb6eaf2e773c1d35204617d0f16b8

7 years agoAdd GraphicsEnv to libgui am: 53c82c2696 -s ours
Jesse Hall [Tue, 17 Jan 2017 01:58:55 +0000 (01:58 +0000)]
Add GraphicsEnv to libgui am: 53c82c2696  -s ours
am: 25222e76e4  -s ours

Change-Id: If2d9d7df3f997df3cc355c7de3c4ada8a88ddc7a

7 years agoAdd GraphicsEnv to libgui
Jesse Hall [Tue, 17 Jan 2017 01:57:18 +0000 (01:57 +0000)]
Add GraphicsEnv to libgui
am: e36acfab92

Change-Id: I8fc965e79142ef4978fcbd9ea6e93067c6ae4b89

7 years agoMerge changes from topic 'latchAndLastRefresh'
Brian C. Anderson [Tue, 17 Jan 2017 01:09:47 +0000 (01:09 +0000)]
Merge changes from topic 'latchAndLastRefresh'

* changes:
  EGL: Expose latch, last composite, and dequeue ready.
  Add a DequeueReady FrameEvent

7 years agoMerge "Clean up Fence a little."
Brian C. Anderson [Mon, 16 Jan 2017 21:01:10 +0000 (21:01 +0000)]
Merge "Clean up Fence a little."

7 years agoAdd GraphicsEnv to libgui
Jesse Hall [Sun, 15 Jan 2017 05:58:50 +0000 (05:58 +0000)]
Add GraphicsEnv to libgui
am: 53c82c2696  -s ours

Change-Id: I2e98929a298cbc4b949bf247ca3f086d4629d678

7 years agoAdd GraphicsEnv to libgui
Jesse Hall [Mon, 12 Dec 2016 20:56:46 +0000 (12:56 -0800)]
Add GraphicsEnv to libgui

This singleton class stores information provided by the framework and
makes it available to EGL/GLES/Vulkan loaders. It will eventually
replace vulkan::LoaderData and possibly the egl blob cache directory
storage.

Bug: 33531483
Test: various apps w/ and w/o driver package installed
Change-Id: If8b84fd38428f1cc9fcee8ffc25eb90cd87cedb4
(cherry picked from commit 90b25ed559f3d04777dbbc195ad5c95287990bf7)

7 years agoAdd GraphicsEnv to libgui
Jesse Hall [Mon, 12 Dec 2016 20:56:46 +0000 (12:56 -0800)]
Add GraphicsEnv to libgui

This singleton class stores information provided by the framework and
makes it available to EGL/GLES/Vulkan loaders. It will eventually
replace vulkan::LoaderData and possibly the egl blob cache directory
storage.

Bug: 33531483
Change-Id: I40c3952374badabea738a34a51db90bf197979b8
Merged-In: If8b84fd38428f1cc9fcee8ffc25eb90cd87cedb4

7 years agoAdd GraphicsEnv to libgui
Jesse Hall [Mon, 12 Dec 2016 20:56:46 +0000 (12:56 -0800)]
Add GraphicsEnv to libgui

This singleton class stores information provided by the framework and
makes it available to EGL/GLES/Vulkan loaders. It will eventually
replace vulkan::LoaderData and possibly the egl blob cache directory
storage.

Bug: 33531483
Test: various apps w/ and w/o driver package installed
Change-Id: If8b84fd38428f1cc9fcee8ffc25eb90cd87cedb4

7 years agoMerge changes I6f728af0,I580409f0
Brian C. Anderson [Sat, 14 Jan 2017 21:57:04 +0000 (21:57 +0000)]
Merge changes I6f728af0,I580409f0

* changes:
  Surface unit tests for getFrameTimestamps.
  Avoid sync calls for unsupported/non-existant times

7 years agoMerge "Adapt change in HIDL hal and remove old hal version logic"
Peng Xu [Sat, 14 Jan 2017 08:50:53 +0000 (08:50 +0000)]
Merge "Adapt change in HIDL hal and remove old hal version logic"

7 years agoMerge changes from topic 'dumpstate-hidlize'
TreeHugger Robot [Sat, 14 Jan 2017 04:23:56 +0000 (04:23 +0000)]
Merge changes from topic 'dumpstate-hidlize'

* changes:
  Moved DumpstateUtil.h functions to its own namespace.
  dumpstate: remove references to legacy dumpstate

7 years agoMerge changes Ie3784ba4,I656b6095,I1dceb4d4,I7df711e0,I2d7512ec
Chris Forbes [Sat, 14 Jan 2017 02:02:58 +0000 (02:02 +0000)]
Merge changes Ie3784ba4,I656b6095,I1dceb4d4,I7df711e0,I2d7512ec

* changes:
  vulkan: Chain VkSwapchainImageCreateInfoANDROID structure
  vulkan: Fix oversights in V6 of android native buffer
  vulkan: Fix vulkan.api for Ian's changes & regen
  vulkan: Use GetSwapchainGrallocUsage2ANDROID where available
  vulkan: Remove bogus IMAGE_USAGE_GENERAL from todo note

7 years agovulkan: Chain VkSwapchainImageCreateInfoANDROID structure
Chris Forbes [Thu, 12 Jan 2017 01:28:58 +0000 (14:28 +1300)]
vulkan: Chain VkSwapchainImageCreateInfoANDROID structure

This allows the hal to see the swapchain image usage flags for
gralloc-backed images, in case it needs to do something special during
VkImage creation.

Change-Id: Ie3784ba4c7fdc08d4deace2f70b7f8879ba431fb
Test: build, run cube demo

7 years agovulkan: Fix oversights in V6 of android native buffer
Chris Forbes [Thu, 12 Jan 2017 01:26:37 +0000 (14:26 +1300)]
vulkan: Fix oversights in V6 of android native buffer

- We want a *Flags, not a *FlagBits here.
- Header failed to declare the VK_STRUCTURE_TYPE enum, although it was
  declared in api file.

  Found by trying to actually use this.

Test: build
Change-Id: I656b6095a428c116b769073d825c747aff24d12b

7 years agovulkan: Fix vulkan.api for Ian's changes & regen
Chris Forbes [Thu, 12 Jan 2017 01:09:33 +0000 (14:09 +1300)]
vulkan: Fix vulkan.api for Ian's changes & regen

Various problems: uint32_t vs u32, a dropped }, function body with
semantics that crash the generator, etc ...

V2: don't export Ian's extensions from libvulkan.

Change-Id: I1dceb4d4fc21ad5d38255c4979d9ef372ea2a28b
Test: build

7 years agovulkan: Use GetSwapchainGrallocUsage2ANDROID where available
Chris Forbes [Wed, 11 Jan 2017 22:13:58 +0000 (11:13 +1300)]
vulkan: Use GetSwapchainGrallocUsage2ANDROID where available

Test: build
Change-Id: I7df711e0760593749db050c1df843e39e4275003

7 years agovulkan: Remove bogus IMAGE_USAGE_GENERAL from todo note
Chris Forbes [Wed, 11 Jan 2017 21:18:48 +0000 (10:18 +1300)]
vulkan: Remove bogus IMAGE_USAGE_GENERAL from todo note

There is no such usage. There is also no risk of bad interactions with
cpu-mapping, since gralloc-backed images do not use a VkDeviceMemory.

Test: build
Change-Id: I2d7512ec79777f796826bc2b9c8dc3626a535737

7 years agoMerge "Introduce new UI_MODE_TYPE_VR_HEADSET."
Zak Cohen [Fri, 13 Jan 2017 23:14:57 +0000 (23:14 +0000)]
Merge "Introduce new UI_MODE_TYPE_VR_HEADSET."

7 years agoMerge "libgfx: Add SafeLog"
TreeHugger Robot [Fri, 13 Jan 2017 22:48:09 +0000 (22:48 +0000)]
Merge "libgfx: Add SafeLog"

7 years agoAdapt change in HIDL hal and remove old hal version logic
Peng Xu [Fri, 13 Jan 2017 04:02:47 +0000 (20:02 -0800)]
Adapt change in HIDL hal and remove old hal version logic

Adapt Sensors HIDL changes
  * remove unused parameter (always 0) in batch function.
  * remove legacy/duplicated functionality setDelay

The new HIDL interface based SensorDeviceTreble does not
depend on old HAL version logic.

Test: tested with SensorLogger app, all sensor works.

Change-Id: I24ccb6a4ebe1ed5ed84882d46e77909c835a2f34

7 years agoMoved DumpstateUtil.h functions to its own namespace.
Felipe Leme [Wed, 21 Dec 2016 23:37:07 +0000 (15:37 -0800)]
Moved DumpstateUtil.h functions to its own namespace.

Also make it a shared library.

Test: dumpstate_test passes
Test: manual verification

Bug: 26379932

Change-Id: I75dd3ef9fec3ac692a132bdd8c68307c1a1ee602

7 years agoMerge "Fix signed vs. unsigned mismatch warnings"
Kalle Raita [Fri, 13 Jan 2017 21:30:37 +0000 (21:30 +0000)]
Merge "Fix signed vs. unsigned mismatch warnings"

7 years agoMerge "Add ScreenshotClient functionality for returning GraphicBuffer."
Rob Carr [Fri, 13 Jan 2017 21:29:07 +0000 (21:29 +0000)]
Merge "Add ScreenshotClient functionality for returning GraphicBuffer."

7 years agodumpstate: remove references to legacy dumpstate
Steven Moreland [Fri, 16 Dec 2016 00:13:39 +0000 (16:13 -0800)]
dumpstate: remove references to legacy dumpstate

Test: dumpstate_tests pass
Test: manual verification
Bug: 31982882

Change-Id: If48cccec2e334d54acf6f3a67098475d3122117a

7 years agoFix signed vs. unsigned mismatch warnings
Kalle Raita [Fri, 13 Jan 2017 18:18:36 +0000 (10:18 -0800)]
Fix signed vs. unsigned mismatch warnings

EGL header helpfully has EGLBoolean defined as unsigned and enums, including
EGL_TRUE, as signed. Khronos has not found a satisfactory way to amend
the headers, so we'll need to cast the warnings away.

Bug: 33214264
Test: Run EGLTest on Pixel XL
Change-Id: I63240c83a8a4097895d0731c763651fca89cfc55

7 years agoMerge "Add an uncalibrated sensor type."
Ashutosh Joshi [Fri, 13 Jan 2017 17:47:30 +0000 (17:47 +0000)]
Merge "Add an uncalibrated sensor type."

7 years agoMerge "Add EGL_RECORDABLE_ANDROID enum in EGLExt"
Kalle Raita [Fri, 13 Jan 2017 17:39:07 +0000 (17:39 +0000)]
Merge "Add EGL_RECORDABLE_ANDROID enum in EGLExt"

7 years agoMerge "expose the GetPidByName API of dumpstate"
Ecco Park [Fri, 13 Jan 2017 01:22:51 +0000 (01:22 +0000)]
Merge "expose the GetPidByName API of dumpstate"

7 years agoexpose the GetPidByName API of dumpstate
Ecco Park [Thu, 27 Oct 2016 22:46:26 +0000 (15:46 -0700)]
expose the GetPidByName API of dumpstate

Bug: 32248316

This API is used by external dumpstate module
1) add unittest for GetPidByName
2) change the API name to c++ style
3) Test: dumpstate_test pass

Change-Id: I5eb80e0d1f1ef0f09b77ac3affd8a9b41d64f679
Signed-off-by: Ecco Park <eccopark@google.com>
7 years agoMerge "Replace cutils/log.h and rationalize log/log.h and android/log.h"
TreeHugger Robot [Thu, 12 Jan 2017 22:54:24 +0000 (22:54 +0000)]
Merge "Replace cutils/log.h and rationalize log/log.h and android/log.h"

7 years agoMerge "Added a dumpstate readme for development."
Felipe Leme [Thu, 12 Jan 2017 22:20:06 +0000 (22:20 +0000)]
Merge "Added a dumpstate readme for development."

7 years agoMerge "liblog: use log/log.h when utilizing ALOG macros" am: 9a30f044ca am: 70a969c6f...
Mark Salyzyn [Thu, 12 Jan 2017 22:15:44 +0000 (22:15 +0000)]
Merge "liblog: use log/log.h when utilizing ALOG macros" am: 9a30f044ca am: 70a969c6fc am: eed9f305d1
am: ce85202907

Change-Id: Ia3b7d023db0f2f9705927fcb02cd4cdee1846670

7 years agoMerge "liblog: use log/log.h when utilizing ALOG macros" am: 9a30f044ca am: 70a969c6fc
Mark Salyzyn [Thu, 12 Jan 2017 22:09:58 +0000 (22:09 +0000)]
Merge "liblog: use log/log.h when utilizing ALOG macros" am: 9a30f044ca am: 70a969c6fc
am: eed9f305d1

Change-Id: I8b74f7e83492f0023c76be4796a2e94455fd87d8

7 years agoMerge "liblog: use log/log.h when utilizing ALOG macros" am: 9a30f044ca
Mark Salyzyn [Thu, 12 Jan 2017 22:06:58 +0000 (22:06 +0000)]
Merge "liblog: use log/log.h when utilizing ALOG macros" am: 9a30f044ca
am: 70a969c6fc

Change-Id: I5b2e4fa842edf56ab85c6bcb24997e537c02d5de

7 years agoAdded a dumpstate readme for development.
Felipe Leme [Thu, 12 Jan 2017 00:31:17 +0000 (16:31 -0800)]
Added a dumpstate readme for development.

Test: verified a formatted .md
Change-Id: If34b75c74d23bbe2afb025a59cb75f09f1d147d7

7 years agoMerge "liblog: use log/log.h when utilizing ALOG macros"
Mark Salyzyn [Thu, 12 Jan 2017 22:04:58 +0000 (22:04 +0000)]
Merge "liblog: use log/log.h when utilizing ALOG macros"
am: 9a30f044ca

Change-Id: Ibf35cc60eeb53bc421a2f886fa63b37ffa2083c1

7 years agoMerge "liblog: use log/log.h when utilizing ALOG macros"
Mark Salyzyn [Thu, 12 Jan 2017 21:59:57 +0000 (21:59 +0000)]
Merge "liblog: use log/log.h when utilizing ALOG macros"

7 years agoliblog: use log/log.h when utilizing ALOG macros
Mark Salyzyn [Thu, 12 Jan 2017 21:57:51 +0000 (13:57 -0800)]
liblog: use log/log.h when utilizing ALOG macros

Audit dropout because ALOG is behind MYLOG ...

Test: compile
Bug: 34250038
Change-Id: I009478157d2267e10f8c09a7faa4b8f7c7c4a1e7

7 years agoMerge "Don't print error if we can't talk to hwservicemanager." am: 53d36e4476 am...
Martijn Coenen [Thu, 12 Jan 2017 21:33:26 +0000 (21:33 +0000)]
Merge "Don't print error if we can't talk to hwservicemanager." am: 53d36e4476 am: c144b7da38 am: 63f8f36dbd
am: 12a615c83c

Change-Id: If1facb53f01a7eb33dfdf70681c6de72fa4cef63

7 years agoMerge "Don't print error if we can't talk to hwservicemanager." am: 53d36e4476 am...
Martijn Coenen [Thu, 12 Jan 2017 21:29:55 +0000 (21:29 +0000)]
Merge "Don't print error if we can't talk to hwservicemanager." am: 53d36e4476 am: c144b7da38
am: 63f8f36dbd

Change-Id: I53ade820c7285638d444c7ca248e416e6e807f92

7 years agoMerge "Don't print error if we can't talk to hwservicemanager." am: 53d36e4476
Martijn Coenen [Thu, 12 Jan 2017 21:27:25 +0000 (21:27 +0000)]
Merge "Don't print error if we can't talk to hwservicemanager." am: 53d36e4476
am: c144b7da38

Change-Id: Ib2b9c2e285bd0dddab59b4ee40599d9fed63fd49

7 years agoMerge "Update scRGB ranges"
TreeHugger Robot [Thu, 12 Jan 2017 21:25:49 +0000 (21:25 +0000)]
Merge "Update scRGB ranges"

7 years agoMerge "Don't print error if we can't talk to hwservicemanager."
Martijn Coenen [Thu, 12 Jan 2017 21:24:56 +0000 (21:24 +0000)]
Merge "Don't print error if we can't talk to hwservicemanager."
am: 53d36e4476

Change-Id: I3a524a89d8d6b022b4a825197e29b6a69687c8d9

7 years agoMerge "Don't print error if we can't talk to hwservicemanager."
Treehugger Robot [Thu, 12 Jan 2017 21:20:15 +0000 (21:20 +0000)]
Merge "Don't print error if we can't talk to hwservicemanager."

7 years agoAdd an uncalibrated sensor type.
Ashutosh Joshi [Thu, 12 Jan 2017 19:35:19 +0000 (11:35 -0800)]
Add an uncalibrated sensor type.

Adding an uncalibrated sensor type.

Test: Build compiles.
Change-Id: Ib082e81220ecafe76452c8df5ffe3e3f7c80a50a

7 years agoReplace cutils/log.h and rationalize log/log.h and android/log.h
Mark Salyzyn [Thu, 29 Sep 2016 15:08:05 +0000 (08:08 -0700)]
Replace cutils/log.h and rationalize log/log.h and android/log.h

- cutils/log.h treat as deprecated and lead by example
- coding standard for header order
- include headers that are side effect of others.

Test: compile
Bug: 34250038
Change-Id: I8d99b24c333578c9b5aa9f2a01324bd0bba268dd

7 years agoAdd ScreenshotClient functionality for returning GraphicBuffer.
Robert Carr [Tue, 10 Jan 2017 03:48:38 +0000 (19:48 -0800)]
Add ScreenshotClient functionality for returning GraphicBuffer.

WM and SysUI are interested in screenshotting to GraphicBuffer, for
zero copy initialization of Starting Windows and usage in SysUI. Both
codepaths are co-existing in the WM now, so existing screenshot APIs
are not cleaned up, though perhaps they could be soon.

Test: Manual in combination with other branches.
Bug: 31339431
Change-Id: I11151f44eddbba53559befebf5ee2bde1dee9b40

7 years agoEGL: Expose latch, last composite, and dequeue ready.
Brian Anderson [Fri, 2 Sep 2016 17:10:04 +0000 (10:10 -0700)]
EGL: Expose latch, last composite, and dequeue ready.

Also fix discontinuous reserved token values.

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

Change-Id: I9d513b8784a7205dfe534c1c74b56c18cd49e74a

7 years agoClean up Fence a little.
Brian Anderson [Mon, 10 Oct 2016 23:52:56 +0000 (16:52 -0700)]
Clean up Fence a little.

Test: Cleanup patch only. Fences still work.

Change-Id: I65e5cdf5e3c067bc475c085ab6d3577d9753231c

7 years agoSurface unit tests for getFrameTimestamps.
Brian Anderson [Thu, 28 Jul 2016 23:20:47 +0000 (16:20 -0700)]
Surface unit tests for getFrameTimestamps.

Verifies the following:

1) The timestamps and fences aren't transferred if the
   feature isn't explicitly enabled.
2) Attempts to get the timestamps will fail if not enabled.
3) Timestamps are transferred if enabled.
4) The support for Present/Retire timestamps are properly
   queried from the ISurfaceComposer.
5) Timestamps correspond to the correct frame.
6) The consumer doesn't send the acquire fence back to the
   producer and a sync call isn't made to try and get it
   from the producer.
7) A sync call isn't made when no timestamps are requested.
8) If the consumer sent the producer fences, the consumer
   can get the timestamps without a sync call.
9) If there was no GL composite performed, a sync call
   isn't made to get a non-existant fence/time.
10) When asking for the retire or release time of the most
   recent frame, a sync call isn't made.
11) Requests for unsupported timestamps return an error and
   do not result in a sync call.

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

Change-Id: I6f728af0d4a0f431c9e47131da64584a589559e7

7 years agoAdd a DequeueReady FrameEvent
Brian Anderson [Mon, 31 Oct 2016 23:34:13 +0000 (16:34 -0700)]
Add a DequeueReady FrameEvent

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

Change-Id: I98ffd4123fc50b5f560e432f4078408c913c8edf

7 years agoAvoid sync calls for unsupported/non-existant times
Brian Anderson [Fri, 30 Sep 2016 21:01:24 +0000 (14:01 -0700)]
Avoid sync calls for unsupported/non-existant times

* Make sure not to do sync calls for present or retire
  if they aren't supported.

* Don't do sync calls for retire or release if they
  can not possibly exist.

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

Change-Id: I580409f01cbf07e9a6e00fbb05d914654f12a4a2

7 years agoUpdate scRGB ranges
Romain Guy [Thu, 12 Jan 2017 18:34:44 +0000 (10:34 -0800)]
Update scRGB ranges

Bug: 32984164
Test: colorspace_test
Change-Id: I6e062bd5fd7fc22fd94354cd2c8b965134c42e3c

7 years agoAdd EGL_RECORDABLE_ANDROID enum in EGLExt
Kalle Raita [Thu, 12 Jan 2017 18:25:14 +0000 (10:25 -0800)]
Add EGL_RECORDABLE_ANDROID enum in EGLExt

Test: CtsMediaTestCases on N5X
Bug: 29402583
Change-Id: I47f7af535396cc1ad006b54ce150b9d7f376fced

7 years agoresolve merge conflicts of a2c2d11f9 to master
Mark Salyzyn [Thu, 12 Jan 2017 16:35:35 +0000 (08:35 -0800)]
resolve merge conflicts of a2c2d11f9 to master

Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I84d0ffa430df3beca0dcc6ed205ce220d7be1f87

7 years agoDon't print error if we can't talk to hwservicemanager.
Martijn Coenen [Thu, 12 Jan 2017 16:16:31 +0000 (17:16 +0100)]
Don't print error if we can't talk to hwservicemanager.

This currently fails as a non-root user due to SEPolicy,
and is causing CTS test failures. Until we figure out
the policy on b/34242478, don't print an error to allow
the test to pass again.

Test: cts-tradefed run cts --module CtsAtraceHostTestCases --test
android.atrace.cts.AtraceHostTest#testSimpleRun

Bug: 33814619
Change-Id: Ie5578639028e7890284d71bbf1b753f5803ca4af

7 years agoMerge "Replace cutils/log.h and rationalize log/log.h and android/log.h" am: d655e61a...
Mark Salyzyn [Thu, 12 Jan 2017 16:01:35 +0000 (16:01 +0000)]
Merge "Replace cutils/log.h and rationalize log/log.h and android/log.h" am: d655e61a22 am: 16a30c1ac8
am: fbc9758151

Change-Id: I911936217c6b47f48092319ff66edafaf0f7c395

7 years agoMerge "Replace cutils/log.h and rationalize log/log.h and android/log.h" am: d655e61a22
Mark Salyzyn [Thu, 12 Jan 2017 15:48:18 +0000 (15:48 +0000)]
Merge "Replace cutils/log.h and rationalize log/log.h and android/log.h" am: d655e61a22
am: 16a30c1ac8

Change-Id: I697418fbab0dbbd447d0dca2eda5b1545cc2522e

7 years agoMerge "Replace cutils/log.h and rationalize log/log.h and android/log.h"
Mark Salyzyn [Thu, 12 Jan 2017 15:34:32 +0000 (15:34 +0000)]
Merge "Replace cutils/log.h and rationalize log/log.h and android/log.h"
am: d655e61a22

Change-Id: I86d040528ab10e503e03f033f12d47a8142c3c6b

7 years agoMerge "Replace cutils/log.h and rationalize log/log.h and android/log.h"
Mark Salyzyn [Thu, 12 Jan 2017 15:19:07 +0000 (15:19 +0000)]
Merge "Replace cutils/log.h and rationalize log/log.h and android/log.h"

7 years agoAdded -t option to dumpstate. am: cd4d6631fa
Felipe Leme [Wed, 11 Jan 2017 23:18:39 +0000 (23:18 +0000)]
Added -t option to dumpstate. am: cd4d6631fa
am: de3d159226  -s ours

Change-Id: I895071533d2e365de7770d42ceca2ebf5942c292

7 years agoAdded -t option to dumpstate.
Felipe Leme [Wed, 11 Jan 2017 23:09:18 +0000 (23:09 +0000)]
Added -t option to dumpstate.
am: cd4d6631fa

Change-Id: Ib29893ecf7400bd4890dda09164d525e904aa219

7 years agoReplace cutils/log.h and rationalize log/log.h and android/log.h
Mark Salyzyn [Thu, 29 Sep 2016 15:08:05 +0000 (08:08 -0700)]
Replace cutils/log.h and rationalize log/log.h and android/log.h

- cutils/log.h treat as deprecated and lead by example
- android/log.h to be used instead of log/log.h if possible
- add system includes that are assumed as side effects
- define LOG_TAG first

Test: compile
Bug: 31289077
Bug: 30465923
Change-Id: I8d99b24c333578c9b5aa9f2a01324bd0bba268dd