OSDN Git Service

android-x86/frameworks-native.git
7 years agoBufferQueue: Add bufferReplaced flag in QueueBufferOutput
Shuzhen Wang [Thu, 19 Jan 2017 07:02:36 +0000 (23:02 -0800)]
BufferQueue: Add bufferReplaced flag in QueueBufferOutput

For async buffer queue, when queueBuffer overwrites a previously queued
buffer, because consumer won't be able to acquire the overwritten
buffer, onBufferReleased isn't triggered either.

This makes it difficult to track which buffer in the buffer queue
becomes free other than calling dequeueBuffer(). Adding a flag in
QueueBufferOutput addresses this issue.

Test: TestBufferReplacedInQueueBuffer in BufferQueue_tests
Bug: 34481539
Change-Id: Ic7f4be2d3f9691dd6b007a450240614c0c420f0d

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 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 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

7 years agoMerge "Added option to take a 'bugreporttelephony'."
TreeHugger Robot [Wed, 11 Jan 2017 20:45:37 +0000 (20:45 +0000)]
Merge "Added option to take a 'bugreporttelephony'."

7 years agoMerge "Added test cases to dumpsys." am: 5cfc1c0546 am: 74ee4a06a3 am: 70a7c38431
Felipe Leme [Wed, 11 Jan 2017 19:14:53 +0000 (19:14 +0000)]
Merge "Added test cases to dumpsys." am: 5cfc1c0546 am: 74ee4a06a3 am: 70a7c38431
am: f7fdd52792

Change-Id: If2e3b35f9b30b560a96eab8cc4ac3403cbbf0825

7 years agoMerge "Added test cases to dumpsys." am: 5cfc1c0546 am: 74ee4a06a3
Felipe Leme [Wed, 11 Jan 2017 19:09:52 +0000 (19:09 +0000)]
Merge "Added test cases to dumpsys." am: 5cfc1c0546 am: 74ee4a06a3
am: 70a7c38431

Change-Id: I45a9525b275bb0b327fce9982901b8e3304e2783

7 years agoMerge "Added test cases to dumpsys." am: 5cfc1c0546
Felipe Leme [Wed, 11 Jan 2017 19:04:25 +0000 (19:04 +0000)]
Merge "Added test cases to dumpsys." am: 5cfc1c0546
am: 74ee4a06a3

Change-Id: I5e536d12eef0ff8d41030f037f309f67c880b2a7

7 years agoMerge "Added test cases to dumpsys."
Felipe Leme [Wed, 11 Jan 2017 18:59:22 +0000 (18:59 +0000)]
Merge "Added test cases to dumpsys."
am: 5cfc1c0546

Change-Id: I87917d89160271a635ac1a42728fb643e1df99ae

7 years agoMerge "Added test cases to dumpsys."
Treehugger Robot [Wed, 11 Jan 2017 18:51:14 +0000 (18:51 +0000)]
Merge "Added test cases to dumpsys."

7 years agoAdded option to take a 'bugreporttelephony'.
Felipe Leme [Tue, 10 Jan 2017 23:29:53 +0000 (15:29 -0800)]
Added option to take a 'bugreporttelephony'.

This option takes a lightweight version of bugreport that only includes a few,
urgent sections used to report telephony bugs.

BUG: 32589463
BUG: 26849505

Test: dumpstate_test passes
Test: manual verification
Change-Id: I9b7369323a62e30e5d740eeb22db0045262387ba

7 years agoMerge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed." am: 6c207a7d96...
Richard Uhler [Wed, 11 Jan 2017 15:42:02 +0000 (15:42 +0000)]
Merge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed." am: 6c207a7d96 am: 83c87d4985 am: 3977570f9f
am: 94b74589f8

Change-Id: Icc93e0e83e6608f1ce064d40df8bd863f9cde0a6

7 years agoFix _treble build targets breakage.
Martijn Coenen [Wed, 11 Jan 2017 13:57:42 +0000 (14:57 +0100)]
Fix _treble build targets breakage.

Test: ENABLE_TREBLE=true builds again.
Change-Id: I4ec504e392cf99b9b3345d90a974bd9147fd2037

7 years agoMerge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed." am: 6c207a7d96...
Richard Uhler [Wed, 11 Jan 2017 10:58:41 +0000 (10:58 +0000)]
Merge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed." am: 6c207a7d96 am: 83c87d4985
am: 3977570f9f

Change-Id: Ib75da8118af0cef7bd06a9a88478529b64cd328d

7 years agoMerge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed." am: 6c207a7d96
Richard Uhler [Wed, 11 Jan 2017 10:48:12 +0000 (10:48 +0000)]
Merge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed." am: 6c207a7d96
am: 83c87d4985

Change-Id: I72c03782c82ff40cef7c520adc6d694b52289951

7 years agoMerge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed."
Richard Uhler [Wed, 11 Jan 2017 10:37:44 +0000 (10:37 +0000)]
Merge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed."
am: 6c207a7d96

Change-Id: I82f59649db71b255abdbafae8190f40974534f83

7 years agoMerge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed."
Treehugger Robot [Wed, 11 Jan 2017 10:28:16 +0000 (10:28 +0000)]
Merge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed."

7 years agoMerge "Fix unitialized value in gralloc1"
TreeHugger Robot [Wed, 11 Jan 2017 03:23:22 +0000 (03:23 +0000)]
Merge "Fix unitialized value in gralloc1"

7 years agoAdded -t option to dumpstate.
Felipe Leme [Thu, 5 Jan 2017 23:05:46 +0000 (15:05 -0800)]
Added -t option to dumpstate.

This option takes a lightweight version of bugreport that only includes a few,
urgent sections used to report telephony bugs.

BUG: 32589463
BUG: 26849505
Test: manual
Merged-In: I9b7369323a62e30e5d740eeb22db0045262387ba
Change-Id: I9b7369323a62e30e5d740eeb22db0045262387ba

7 years agoAdded test cases to dumpsys.
Felipe Leme [Wed, 3 Aug 2016 01:57:37 +0000 (18:57 -0700)]
Added test cases to dumpsys.

BUG: 28980245
BUG: 33382892

Test: dumpsys_test passes

Change-Id: Ief6c21022abc74022256431351fd6eef789faf39
(cherry picked from commit b6e244914deaffcdeea02deebf7c0da2643f601c)

7 years agoReverted wake_lock code.
Felipe Leme [Tue, 10 Jan 2017 22:13:22 +0000 (14:13 -0800)]
Reverted wake_lock code.

If dumpstate dies, there is no guarantee the wake_lock will be released...

Fixes: 34193090
Bug: 33327009

Test: dumpstate_test passes
Test: manual verification
Change-Id: I4662722b1f82f3e140e174e506864a452c002fc8

7 years agoFix unitialized value in gralloc1
Fabien Sanglard [Tue, 10 Jan 2017 21:45:45 +0000 (13:45 -0800)]
Fix unitialized value in gralloc1

ReleaseFenceFD should never be initialized to 0 (stdout), it should
be initialized to -1 which is a special value meaning NO_FENCE.

Change-Id: Ie2e062ca838bbc01c2afd7e0f76f09c726ba05fe

7 years agoMerge "Fix InputReader_test"
TreeHugger Robot [Tue, 10 Jan 2017 18:33:42 +0000 (18:33 +0000)]
Merge "Fix InputReader_test"

7 years agoMerge "Start enumerating support for VK_KHR_incremental_present."
Ian Elliott [Tue, 10 Jan 2017 15:07:20 +0000 (15:07 +0000)]
Merge "Start enumerating support for VK_KHR_incremental_present."

7 years agoMerge "Methods to calculate user and external disk usage." am: 4d9746d7a3 am: 15e80e0...
Jeff Sharkey [Tue, 10 Jan 2017 04:53:00 +0000 (04:53 +0000)]
Merge "Methods to calculate user and external disk usage." am: 4d9746d7a3 am: 15e80e0436 am: e5281b7f9b
am: 4e4e8ab3a4

Change-Id: I954e87563f1a8222be418221657e730ffda51814

7 years agoMerge "Methods to calculate user and external disk usage." am: 4d9746d7a3 am: 15e80e0436
Jeff Sharkey [Tue, 10 Jan 2017 04:47:56 +0000 (04:47 +0000)]
Merge "Methods to calculate user and external disk usage." am: 4d9746d7a3 am: 15e80e0436
am: e5281b7f9b

Change-Id: Ie7f29f8b10dc1e9158c7574e9836e27e3fda62eb

7 years agoMerge "Methods to calculate user and external disk usage." am: 4d9746d7a3
Jeff Sharkey [Tue, 10 Jan 2017 04:43:03 +0000 (04:43 +0000)]
Merge "Methods to calculate user and external disk usage." am: 4d9746d7a3
am: 15e80e0436

Change-Id: I63799087ee8b62b68da1f39ee2495b54481bd866

7 years agoMerge "Methods to calculate user and external disk usage."
Jeff Sharkey [Tue, 10 Jan 2017 04:38:23 +0000 (04:38 +0000)]
Merge "Methods to calculate user and external disk usage."
am: 4d9746d7a3

Change-Id: I7229c883efc6078b4fe3aa8231912eda1073ae48

7 years agoMerge "Methods to calculate user and external disk usage."
Jeff Sharkey [Tue, 10 Jan 2017 04:30:46 +0000 (04:30 +0000)]
Merge "Methods to calculate user and external disk usage."

7 years agoMethods to calculate user and external disk usage.
Jeff Sharkey [Sat, 7 Jan 2017 16:19:35 +0000 (09:19 -0700)]
Methods to calculate user and external disk usage.

Add method to calculate user disk usage, which will be faster than
making a Binder call for every single appId under a user.  Add method
to calculate external disk usage, which uses file extensions to track
usage with "audio", "video", and "images" categories.

Add script to generate optimized file extension matcher logic.

Start measuring internal and external storage space separately; new
GIDs are coming in a future CL.  Pass down all package names, inodes,
and code paths, since shared UIDs host more than one.

Test: builds, boots, stats are consistent
Bug: 2794881732206268
Change-Id: Icb9843ac5159e0e5f1503d9b64e0bcae407e1a5d

7 years agoStart enumerating support for VK_KHR_incremental_present.
Ian Elliott [Mon, 9 Jan 2017 23:21:36 +0000 (16:21 -0700)]
Start enumerating support for VK_KHR_incremental_present.

Test: Manually tested with a modified cube demo, that now reports the extension
present.

Change-Id: I828abd4351b8106708c7b5e83988347764fd0fa9

7 years agoMerge "Dump task I/O information from storaged."
TreeHugger Robot [Mon, 9 Jan 2017 21:55:49 +0000 (21:55 +0000)]
Merge "Dump task I/O information from storaged."

7 years agoMerge "vulkan: Update implementor's guide for V6 of ANDROID_native_buffer spec"
Chris Forbes [Mon, 9 Jan 2017 21:31:18 +0000 (21:31 +0000)]
Merge "vulkan: Update implementor's guide for V6 of ANDROID_native_buffer spec"

7 years agoDump task I/O information from storaged.
ynwang [Mon, 18 Jul 2016 04:56:00 +0000 (21:56 -0700)]
Dump task I/O information from storaged.

Bug: 30983988
Test: generate bugreport
Change-Id: I8631e08af175f9fd6efd09f8b0106d77554edb60

7 years agoFix syntax error in appendSfConfigString (#endif)
Fabien Sanglard [Mon, 9 Jan 2017 20:08:30 +0000 (12:08 -0800)]
Fix syntax error in appendSfConfigString (#endif)

Change-Id: I1ff05e34e4d8d9f73bb5cb090c96011497132947

7 years agovulkan: Update implementor's guide for V6 of ANDROID_native_buffer spec
Chris Forbes [Fri, 6 Jan 2017 02:29:37 +0000 (15:29 +1300)]
vulkan: Update implementor's guide for V6 of ANDROID_native_buffer spec

Infrastructure for frontbuffer rendering.

V2: rebase
V3: List changes in more detail in history

Change-Id: Ic8f9c762ff3398b854249d6c9728aa81c1512fb7
Test: docs change only

7 years agoMerge "Move TARGET_DISABLE_TRIPLE_BUFFERING to property"
Fabien Sanglard [Mon, 9 Jan 2017 19:43:16 +0000 (19:43 +0000)]
Merge "Move TARGET_DISABLE_TRIPLE_BUFFERING to property"

7 years agoMerge "Document crop and finalCrop"
Fabien Sanglard [Mon, 9 Jan 2017 19:43:03 +0000 (19:43 +0000)]
Merge "Document crop and finalCrop"

7 years agoMerge "HWC2: Initialize retire fence to -1"
TreeHugger Robot [Mon, 9 Jan 2017 18:56:17 +0000 (18:56 +0000)]
Merge "HWC2: Initialize retire fence to -1"

7 years agoMerge "Stubbed implementation of VK_GOOGLE_display_timing extension."
TreeHugger Robot [Mon, 9 Jan 2017 18:05:47 +0000 (18:05 +0000)]
Merge "Stubbed implementation of VK_GOOGLE_display_timing extension."

7 years agoStubbed implementation of VK_GOOGLE_display_timing extension.
Ian Elliott [Thu, 29 Dec 2016 18:07:26 +0000 (11:07 -0700)]
Stubbed implementation of VK_GOOGLE_display_timing extension.

This provides the header changes and most of the "boilerplate" changes to add
the VK_GOOGLE_display_timing extension to Vulkan.  Future changes will modify
and integrate with the Surface, FrameEvents, and SurfaceFlinger code.

Test: Manually tested that existing apps won't tickle the new-extension paths.

Change-Id: Iec46b1cab4b2561702ebac9a4ae7587584793192

7 years agoMerge "Surface: Use async lock/unlock in copyBlt" am: b73de86f13 am: e29dda829d am...
Jesse Hall [Mon, 9 Jan 2017 05:29:35 +0000 (05:29 +0000)]
Merge "Surface: Use async lock/unlock in copyBlt" am: b73de86f13 am: e29dda829d am: 55f599a079
am: 0bd15c1613

Change-Id: Ib1d9c139c68cfdc7b3854b94b825db5d980bc1ef

7 years agoMerge "Surface: Use async lock/unlock in copyBlt" am: b73de86f13 am: e29dda829d
Jesse Hall [Mon, 9 Jan 2017 05:24:33 +0000 (05:24 +0000)]
Merge "Surface: Use async lock/unlock in copyBlt" am: b73de86f13 am: e29dda829d
am: 55f599a079

Change-Id: I1f7603e0808a3794d708e788818d83814c10dcb3

7 years agoMerge "Surface: Use async lock/unlock in copyBlt" am: b73de86f13
Jesse Hall [Mon, 9 Jan 2017 05:20:03 +0000 (05:20 +0000)]
Merge "Surface: Use async lock/unlock in copyBlt" am: b73de86f13
am: e29dda829d

Change-Id: I753acee7ab8f0c0ca62a5606ae1b5c44e2314fd3

7 years agoMerge "Surface: Use async lock/unlock in copyBlt"
Jesse Hall [Mon, 9 Jan 2017 05:15:04 +0000 (05:15 +0000)]
Merge "Surface: Use async lock/unlock in copyBlt"
am: b73de86f13

Change-Id: I5312414d1e66cc0dbd3b346f14c14eb1ff90e6da

7 years agoMerge "Surface: Use async lock/unlock in copyBlt"
Jesse Hall [Mon, 9 Jan 2017 05:07:29 +0000 (05:07 +0000)]
Merge "Surface: Use async lock/unlock in copyBlt"

7 years agoMerge "egl: Add NULL check for num_config parameter" am: 64990fc0b9 am: ccaf6bf34a...
Jesse Hall [Sun, 8 Jan 2017 00:02:51 +0000 (00:02 +0000)]
Merge "egl: Add NULL check for num_config parameter" am: 64990fc0b9 am: ccaf6bf34a am: 68d96292a6
am: 84067b39f9

Change-Id: Ia3563162314c646a6e17731effe36bb31ce706dd

7 years agoMerge "egl: Add NULL check for num_config parameter" am: 64990fc0b9 am: ccaf6bf34a
Jesse Hall [Sat, 7 Jan 2017 23:58:21 +0000 (23:58 +0000)]
Merge "egl: Add NULL check for num_config parameter" am: 64990fc0b9 am: ccaf6bf34a
am: 68d96292a6

Change-Id: Icde1d5dc8ca191b752097e85cfb7e94857bcb27b

7 years agoMerge "egl: Add NULL check for num_config parameter" am: 64990fc0b9
Jesse Hall [Sat, 7 Jan 2017 23:53:50 +0000 (23:53 +0000)]
Merge "egl: Add NULL check for num_config parameter" am: 64990fc0b9
am: ccaf6bf34a

Change-Id: Ifada0489e548bbbfa7378b408a1268b7a7b4da03

7 years agoMerge "egl: Add NULL check for num_config parameter"
Jesse Hall [Sat, 7 Jan 2017 23:49:20 +0000 (23:49 +0000)]
Merge "egl: Add NULL check for num_config parameter"
am: 64990fc0b9

Change-Id: I1000300a6ca1a5ee9013f68aacd8541cdfac48b1