OSDN Git Service
Pablo Ceballos [Tue, 23 Feb 2016 19:18:51 +0000 (11:18 -0800)]
SF: check secure layers in screenshot message handler
- Instead of checking for the presence of secure layers on the Binder
thread, check in the message handler. Transactions may have occurred
in between when the check is done and when the screen shot message
is handled.
Bug
23757877
Change-Id: Iec74193996ca72c60f86f7c0f0b2a5dea8d19543
Pablo Ceballos [Mon, 22 Feb 2016 18:13:30 +0000 (18:13 +0000)]
Merge "Add a callback thread to ConsumerBase" into nyc-dev
Calin Juravle [Mon, 22 Feb 2016 11:41:59 +0000 (11:41 +0000)]
Merge "Extract profile files in their dedicated folder" into nyc-dev
Chia-I Wu [Mon, 22 Feb 2016 04:48:32 +0000 (04:48 +0000)]
Merge "vulkan/vkinfo: enable layers when -validate is specified" into nyc-dev
Chia-I Wu [Mon, 22 Feb 2016 03:41:27 +0000 (11:41 +0800)]
vulkan/vkinfo: enable layers when -validate is specified
Enable layers when -validate is given, instead of unconditionally. This
is a regression fix since vkinfo fails with
vkCreateInstance failed: VK_ERROR_LAYER_NOT_PRESENT (-6)
since commit
b1e7d59.
Change-Id: I42bfc474239896416e26ebf1b18cc65c9c045610
Pablo Ceballos [Sat, 20 Feb 2016 18:22:29 +0000 (18:22 +0000)]
Merge "Add interface for controlling single buffer auto refresh" into nyc-dev
Pablo Ceballos [Sat, 20 Feb 2016 01:41:54 +0000 (17:41 -0800)]
Add a callback thread to ConsumerBase
- Add a message queue and callback thread in ConsumerBase.
- This is used to prevent deadlocks when ConsumerBase calls into
BufferQueueConsumer and that generates a callback.
Bug
27229287
Change-Id: I45c41e5a554555511fcfa5c185a7d60b0d969b7e
Pablo Ceballos [Sat, 20 Feb 2016 00:59:54 +0000 (00:59 +0000)]
Merge "DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump" into klp-dev am:
c232606413 am:
1d0e811e5a -s ours am:
8b6dea4fa8 -s ours am:
84cd1a325d am:
31b8553cee -s ours am:
5fe5b47563 am:
c6e289a359 am:
15c5c3e6ed
am:
ba2d7d4eda -s ours
* commit '
ba2d7d4eda715453341bc2116cfcb6ac25990c8e':
DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Sat, 20 Feb 2016 00:46:48 +0000 (00:46 +0000)]
Merge "DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump" into klp-dev am:
c232606413 am:
1d0e811e5a -s ours am:
8b6dea4fa8 -s ours am:
84cd1a325d am:
31b8553cee -s ours am:
5fe5b47563 am:
c6e289a359
am:
15c5c3e6ed
* commit '
15c5c3e6ed6dc11bfe3bd7d7a0e4436cc37d5632':
DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Sat, 20 Feb 2016 00:40:22 +0000 (00:40 +0000)]
Merge "DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump" into klp-dev am:
c232606413 am:
1d0e811e5a -s ours am:
8b6dea4fa8 -s ours am:
84cd1a325d am:
31b8553cee -s ours am:
5fe5b47563
am:
c6e289a359
* commit '
c6e289a359df83b122933688a296a4dde37cb674':
DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Sat, 20 Feb 2016 00:34:00 +0000 (00:34 +0000)]
Merge "DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump" into klp-dev am:
c232606413 am:
1d0e811e5a -s ours am:
8b6dea4fa8 -s ours am:
84cd1a325d am:
31b8553cee -s ours
am:
5fe5b47563
* commit '
5fe5b4756383ac1fc858ed00970589a00fb7fe85':
DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Sat, 20 Feb 2016 00:33:59 +0000 (00:33 +0000)]
Merge "BQ: Add permission check to BufferQueueConsumer::dump" into lmp-dev am:
793be16dd3 am:
7e83de0114 am:
f419ec1bfb am:
8b640e6403 am:
5d2c73e7dc am:
724f7954db
am:
82b9819d93
* commit '
82b9819d930c48124812c1a499a91218305a5d14':
BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Sat, 20 Feb 2016 00:28:14 +0000 (00:28 +0000)]
Merge "BQ: Add permission check to BufferQueueConsumer::dump" into lmp-dev am:
793be16dd3 am:
7e83de0114 am:
f419ec1bfb am:
8b640e6403 am:
5d2c73e7dc
am:
724f7954db
* commit '
724f7954dba26a23a36c7832b37ea722987c3491':
BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Sat, 20 Feb 2016 00:28:10 +0000 (00:28 +0000)]
Merge "DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump" into klp-dev am:
c232606413 am:
1d0e811e5a -s ours am:
8b6dea4fa8 -s ours am:
84cd1a325d
am:
31b8553cee -s ours
* commit '
31b8553ceece9a4e3130510b484163e10c4fc588':
DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Sat, 20 Feb 2016 00:23:04 +0000 (00:23 +0000)]
Merge "BQ: Add permission check to BufferQueueConsumer::dump" into lmp-dev am:
793be16dd3 am:
7e83de0114 am:
f419ec1bfb am:
8b640e6403
am:
5d2c73e7dc
* commit '
5d2c73e7dc9d4d23a76ca92c0170233e897fe55c':
BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Sat, 20 Feb 2016 00:22:58 +0000 (00:22 +0000)]
Merge "DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump" into klp-dev am:
c232606413 am:
1d0e811e5a -s ours am:
8b6dea4fa8 -s ours
am:
84cd1a325d
* commit '
84cd1a325d4e1ff1bdec09137b13a7c925b267f8':
DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Sat, 20 Feb 2016 00:17:09 +0000 (00:17 +0000)]
Merge "BQ: Add permission check to BufferQueueConsumer::dump" into lmp-dev am:
793be16dd3 am:
7e83de0114 am:
f419ec1bfb
am:
8b640e6403
* commit '
8b640e6403de9dd328b2605c9f21b62d1d31e7d6':
BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Sat, 20 Feb 2016 00:11:58 +0000 (00:11 +0000)]
Merge "BQ: Add permission check to BufferQueueConsumer::dump" into lmp-dev am:
793be16dd3 am:
7e83de0114
am:
f419ec1bfb
* commit '
f419ec1bfb969f1add4c90b5b188041968f5f227':
BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Sat, 20 Feb 2016 00:11:58 +0000 (00:11 +0000)]
Merge "DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump" into klp-dev am:
c232606413 am:
1d0e811e5a -s ours
am:
8b6dea4fa8 -s ours
* commit '
8b6dea4fa88e967c221821e03f88b8f42585869e':
DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Sat, 20 Feb 2016 00:06:10 +0000 (00:06 +0000)]
Merge "BQ: Add permission check to BufferQueueConsumer::dump" into lmp-dev am:
793be16dd3
am:
7e83de0114
* commit '
7e83de0114538b006b4299fd608983ecd61b6422':
BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Sat, 20 Feb 2016 00:00:50 +0000 (00:00 +0000)]
Merge "DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump" into klp-dev am:
c232606413
am:
1d0e811e5a -s ours
* commit '
1d0e811e5ac853669fe96370e499428049a5b7ee':
DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Fri, 19 Feb 2016 23:54:34 +0000 (23:54 +0000)]
Merge "DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump" into klp-dev
am:
c232606413
* commit '
c2326064136adb834d12c3fed47af5d66cd42c15':
DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Fri, 19 Feb 2016 23:54:33 +0000 (23:54 +0000)]
Merge "BQ: Add permission check to BufferQueueConsumer::dump" into lmp-dev
am:
793be16dd3
* commit '
793be16dd31661e0e95915caa6fc99afc4acc3f6':
BQ: Add permission check to BufferQueueConsumer::dump
Pablo Ceballos [Fri, 19 Feb 2016 23:39:53 +0000 (23:39 +0000)]
Merge "BQ: Add permission check to BufferQueueConsumer::dump" into lmp-dev
Pablo Ceballos [Fri, 19 Feb 2016 23:39:36 +0000 (23:39 +0000)]
Merge "DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump" into klp-dev
Calin Juravle [Mon, 1 Feb 2016 12:12:16 +0000 (12:12 +0000)]
Extract profile files in their dedicated folder
Current profiles (the ones which have not been used for
compilation) are stored in /data/misc/profiles/cur/0/pkgname/.
Reference profiles (the merged of all user profiles, used for
compilation) are stored in /data/misc/profiles/ref/pkgname.
The profile analysis flow has been changed to use profman
before calling dex2oat. profman decides if there is a need
for compilation and does the merging.
Bug:
26719109
Bug:
26563023
Bug:
26881016
Change-Id: I5a86ed5fd07a28e2e580f9c108428527ba7993b6
Ian Pedowitz [Fri, 19 Feb 2016 08:34:54 +0000 (08:34 +0000)]
Merge "Revert "Revert "Fix warnings in servicemanager and KeyCharacterMap""" into nyc-dev
Ian Pedowitz [Fri, 19 Feb 2016 08:34:43 +0000 (08:34 +0000)]
Revert "Revert "Fix warnings in servicemanager and KeyCharacterMap""
This reverts commit
b480269b0f8e933fa6fc6bd4c9e1e504e1b51508.
Change-Id: If405c0786c5bdd02e3f2c3356d56a4200c6b9dfb
Ian Pedowitz [Fri, 19 Feb 2016 08:33:44 +0000 (08:33 +0000)]
Merge "Revert "Fix warnings in servicemanager and KeyCharacterMap"" into nyc-dev
Ian Pedowitz [Fri, 19 Feb 2016 08:33:18 +0000 (08:33 +0000)]
Revert "Fix warnings in servicemanager and KeyCharacterMap"
This reverts commit
d3b4c050f6bcdfd44bfb9c8ed885fd1c482c50bb.
Change-Id: I961f89d4446ac23f0e267c6541b504c4ec6b3af1
Colin Cross [Fri, 19 Feb 2016 07:41:15 +0000 (23:41 -0800)]
Fix checkbuild
Fix build breakage introduced by
I2e2acb15d1bc05c6ba09563a87d5baceebe7ebd9
Bug:
26936282
Change-Id: I944d758afd4d026a2d30b6816d88356a97ca70a5
Aurimas Liutikas [Fri, 19 Feb 2016 05:30:16 +0000 (05:30 +0000)]
Merge "Fix warnings in servicemanager and KeyCharacterMap" into nyc-dev
Aurimas Liutikas [Fri, 19 Feb 2016 01:48:22 +0000 (17:48 -0800)]
Fix warnings in servicemanager and KeyCharacterMap
- Suppress unused parameter warnings.
- Remove a few unused parameters.
- Set the correct formatting for size_t log.
Bug:
26936282
Change-Id: I2e2acb15d1bc05c6ba09563a87d5baceebe7ebd9
Pablo Ceballos [Thu, 18 Feb 2016 22:09:39 +0000 (22:09 +0000)]
Merge "Partial revert of "Fix Surface slot caching"" into nyc-dev
Pablo Ceballos [Thu, 18 Feb 2016 20:54:37 +0000 (12:54 -0800)]
Partial revert of "Fix Surface slot caching"
- Partially reverts commit
789a0c82cb370d6b82f401cc130af58c85802cbf.
- Leaves the fix in Surface, but reverts all changes to the
Producer/Consumer listeners.
Bug
27246023
Bug
27229287
Change-Id: I9283f9e59e666b5ae44c0db25f99a80d05eea3ee
Casey Dahlin [Tue, 9 Feb 2016 19:08:35 +0000 (11:08 -0800)]
libbinder: Allow readByteVector to take uint8_t
Change-Id: I2f0d1f3b4c04f04e7a866e9a4cf76c899b4b4980
Test: AIDL integration tests pass
Bug:
27078230
Aurimas Liutikas [Tue, 16 Feb 2016 18:42:52 +0000 (10:42 -0800)]
Fix -Wgnu-designator warnigns in cmds/flatland/Main.cpp
Cherry-pick of https://android-review.googlesource.com/#/c/202956/
Bug: http://b/
27068438
Change-Id: I83c56d8a0d19f6c86380b42b024331b5c262860a
Chia-I Wu [Thu, 18 Feb 2016 05:00:46 +0000 (05:00 +0000)]
Merge "vulkan: remove patches for other projects" into nyc-dev
Christopher Tate [Wed, 17 Feb 2016 19:42:39 +0000 (19:42 +0000)]
Sanity check IMemory access versus underlying mmap am:
94b0d4e3ab am:
ef6908e2b3 am:
97f49e50de am:
84f488f354 am:
ebdad60d6b am:
fc598c54d9 am:
f9e5e80bc1 am:
15364d3ec0
am:
049c5df3e5
* commit '
049c5df3e59a2d56c47deddc6ec20bf1eba4f50e':
Sanity check IMemory access versus underlying mmap
Christopher Tate [Wed, 17 Feb 2016 19:35:38 +0000 (19:35 +0000)]
Sanity check IMemory access versus underlying mmap am:
94b0d4e3ab am:
ef6908e2b3 am:
97f49e50de am:
84f488f354 am:
ebdad60d6b am:
fc598c54d9 am:
f9e5e80bc1
am:
15364d3ec0
* commit '
15364d3ec0fda521cd796fc28a2a8d6a68e2cf95':
Sanity check IMemory access versus underlying mmap
Christopher Tate [Wed, 17 Feb 2016 19:29:18 +0000 (19:29 +0000)]
Sanity check IMemory access versus underlying mmap am:
94b0d4e3ab am:
ef6908e2b3 am:
97f49e50de am:
84f488f354 am:
ebdad60d6b am:
fc598c54d9
am:
f9e5e80bc1
* commit '
f9e5e80bc1fe9255fa65b7185514d86beee5952a':
Sanity check IMemory access versus underlying mmap
Christopher Tate [Wed, 17 Feb 2016 19:23:03 +0000 (19:23 +0000)]
Sanity check IMemory access versus underlying mmap am:
94b0d4e3ab am:
ef6908e2b3 am:
97f49e50de am:
84f488f354 am:
ebdad60d6b
am:
fc598c54d9
* commit '
fc598c54d945c48ade547a52a01e2e704df1618b':
Sanity check IMemory access versus underlying mmap
Christopher Tate [Wed, 17 Feb 2016 19:16:19 +0000 (19:16 +0000)]
Sanity check IMemory access versus underlying mmap am:
94b0d4e3ab am:
ef6908e2b3 am:
97f49e50de am:
84f488f354
am:
ebdad60d6b
* commit '
ebdad60d6b0560493e50092c30888d3a7b5cc8c9':
Sanity check IMemory access versus underlying mmap
Christopher Tate [Wed, 17 Feb 2016 19:10:12 +0000 (19:10 +0000)]
Sanity check IMemory access versus underlying mmap am:
94b0d4e3ab am:
ef6908e2b3 am:
97f49e50de
am:
84f488f354
* commit '
84f488f354c33a7ece30cb569c85cd91f0259066':
Sanity check IMemory access versus underlying mmap
Christopher Tate [Wed, 17 Feb 2016 18:57:42 +0000 (18:57 +0000)]
Sanity check IMemory access versus underlying mmap am:
94b0d4e3ab am:
ef6908e2b3
am:
97f49e50de
* commit '
97f49e50ded651f1ddcf8a9981a7d97fe2816ad7':
Sanity check IMemory access versus underlying mmap
Christopher Tate [Wed, 17 Feb 2016 18:44:11 +0000 (18:44 +0000)]
Sanity check IMemory access versus underlying mmap am:
94b0d4e3ab
am:
ef6908e2b3
* commit '
ef6908e2b3e6ee6514620acc338b458ade7c3640':
Sanity check IMemory access versus underlying mmap
Christopher Tate [Wed, 17 Feb 2016 18:37:52 +0000 (18:37 +0000)]
Sanity check IMemory access versus underlying mmap
am:
94b0d4e3ab
* commit '
94b0d4e3ab023cfa03a7a4e85f3e09d3743da715':
Sanity check IMemory access versus underlying mmap
Andreas Gampe [Wed, 17 Feb 2016 16:49:32 +0000 (16:49 +0000)]
Merge "Otapreopt: Add path for patching boot image" into nyc-dev
Andreas Gampe [Sat, 13 Feb 2016 01:42:59 +0000 (17:42 -0800)]
Otapreopt: Add path for patching boot image
Add a path to use a preopted boot image during A/B OTA. This uses
a hard-coded check for the default preopted boot.art location.
Bug:
25612095
Change-Id: Ia6b954d5aca6b3455ac9feacdf9739fd964417e8
Narayan Kamath [Wed, 17 Feb 2016 14:56:58 +0000 (14:56 +0000)]
installd: fix path to code_cache.
Now exists in user_de, not user.
bug:
27216576
Change-Id: I9d50d9584de7b349fc9dfc829b690c20dd02eccd
Lajos Molnar [Wed, 17 Feb 2016 04:30:21 +0000 (04:30 +0000)]
Merge "omx: Add AllocateNativeHandleParams structure" into nyc-dev
Chia-I Wu [Wed, 17 Feb 2016 03:17:45 +0000 (11:17 +0800)]
vulkan: remove patches for other projects
They have been applied or superceded AFAICT.
Change-Id: Ie10d34cc81daf3d908bb32871a0fd387d8949362
Christopher Tate [Sat, 6 Feb 2016 03:02:56 +0000 (19:02 -0800)]
Sanity check IMemory access versus underlying mmap
Bug
26877992
Change-Id: Ibbf4b1061e4675e4e96bc944a865b53eaf6984fe
Pablo Ceballos [Fri, 12 Feb 2016 02:01:49 +0000 (18:01 -0800)]
BQ: Add permission check to BufferQueueConsumer::dump
Bug
27046057
Change-Id: Id7bd8cf95045b497943ea39dde49e877aa6f5c4e
Pablo Ceballos [Fri, 12 Feb 2016 03:15:35 +0000 (19:15 -0800)]
DO NOT MERGE BQ: Add permission check to BufferQueueConsumer::dump
Bug
27046057
Change-Id: I387178708f460596433f75bb059854a26cc22e78
Pablo Ceballos [Tue, 16 Feb 2016 18:46:40 +0000 (18:46 +0000)]
Merge "Fix Surface slot caching" into nyc-dev
Xia Yang [Tue, 16 Feb 2016 11:05:18 +0000 (03:05 -0800)]
dumpstate: remove length modifier on assignment suppressed scanf item
gcc throws warning for using the two together as there is no point specifying
storage size if the item is not to be stored. With -Werror enabled in this
module, such warning breaks the build under gcc compiling.
Change-Id: I6478c7cdb39f4709a63089191cc4ff541564cea4
Xia Yang [Tue, 16 Feb 2016 10:26:09 +0000 (02:26 -0800)]
dumpstate: remove -std=gnu99
-std=gnu99 no longer has effect now that dumpstate is C++.
The flag also break build if target platform is configured to default
gcc compiler since gcc throws warning for having -std=gnu99 when compiling
C++ and we have -Werror for the module.
Reproduce:
mm LOCAL_CLANG=false
...
error: command line option '-std=gnu99' is valid for C/ObjC but not for C++ [-Werror]
Change-Id: If1c272868ec4626873e7d91342b1fea51a15c52e
Courtney Goeltzenleuchter [Mon, 15 Feb 2016 16:33:30 +0000 (16:33 +0000)]
Merge changes Id64bb14c,I47fb1475,Iefd17b62,Ib0e963e8,I236183d5 into nyc-dev
* changes:
loader: Add extension before CreateInstance chain
vkinfo: Add debug command line option
vkinfo: Add validation layers
loader: Fix enumerate device extension properties
loader: Fix enumerate device layer properties
Courtney Goeltzenleuchter [Fri, 12 Feb 2016 14:53:12 +0000 (07:53 -0700)]
loader: Add extension before CreateInstance chain
A developer can cause the loader to enable VK_EXT_debug_report
extension by setting a specific property. However, that check
was happening after the instance chain was called and thus
no layers saw the extension enabled.
Also fix use of AddExtensionToCreateInfo to always allocate
and insert VK_EXT_debug_report. Otherwise cannot distinguish
between the failure case and the extension is already present
case.
Change-Id: Id64bb14cb2086e94190625b4364329d634afda70
Courtney Goeltzenleuchter [Tue, 9 Feb 2016 03:31:46 +0000 (20:31 -0700)]
vkinfo: Add debug command line option
Really handy for loader debug to switch between
waiting and not waiting for a debugger to attach.
Change-Id: I47fb1475d8aa62b8f4b2b7e6a156793f108a83ed
Felipe Leme [Fri, 12 Feb 2016 17:04:16 +0000 (09:04 -0800)]
Changed permission of temporary bugreport and dumpstate log files to Shell.
BUG:
27164100
Change-Id: I569cbe4854fad44c95c9bf3e2efa9c3c93317003
Lajos Molnar [Thu, 11 Feb 2016 22:20:39 +0000 (14:20 -0800)]
omx: Add AllocateNativeHandleParams structure
This reuses the EnableAndroidNativeBuffersParams structure
Bug:
26782004
Change-Id: I6d71c6686bbb3001dfe0e9d8ccb92c17bf43c67f
Felipe Leme [Fri, 12 Feb 2016 00:41:10 +0000 (00:41 +0000)]
Merge "Split bugreport identifier into id and pid." into nyc-dev
Courtney Goeltzenleuchter [Tue, 9 Feb 2016 03:31:25 +0000 (20:31 -0700)]
vkinfo: Add validation layers
Change-Id: Iefd17b622f0d91219b81bd1df09ffeb3397f9553
Courtney Goeltzenleuchter [Sun, 7 Feb 2016 17:32:27 +0000 (10:32 -0700)]
loader: Fix enumerate device extension properties
Same as device layer property issue.
Loader needs to provide aggregate data rather
than send to instance chain.
Change-Id: Ib0e963e8d1780e4870110c556051da921f94353b
Courtney Goeltzenleuchter [Sat, 6 Feb 2016 00:10:59 +0000 (17:10 -0700)]
loader: Fix enumerate device layer properties
Loader was calling down the chain when is needs to
respond with aggregate data. This patch fixes
https://buganizer.corp.google.com/u/0/issues/
26982782
Change-Id: I236183d5d781a6efc3d84db4a51376b8cc29664f
Dan Stoza [Thu, 11 Feb 2016 21:24:35 +0000 (21:24 +0000)]
Merge "SF: Prevent non-sync transactions from syncing" into nyc-dev
Dan Stoza [Thu, 11 Feb 2016 19:43:58 +0000 (11:43 -0800)]
SF: Prevent non-sync transactions from syncing
Clears the sync handle and frame number after registering a deferred
transaction to prevent other non-synchronized transactions from
erroneously getting marked as synchronized.
Also changes the application of pending states such that all valid
pending transactions are applied instead of breaking after the first
one.
Bug:
27061473
Change-Id: I98f0f26e9d9bb0d266563f209e94dfd776d8f8ea
Felipe Leme [Thu, 11 Feb 2016 18:53:46 +0000 (18:53 +0000)]
Merge "Send broadcasts as Shell." into nyc-dev
Felipe Leme [Thu, 11 Feb 2016 17:12:39 +0000 (09:12 -0800)]
Send broadcasts as Shell.
The BUGREPORT_STARTED was being sent as root, which would cause it to
bypass Shell restrictions when DISALLOW_DEBUGGING_FEATURES is set.
Also added the missing --receiver-background and unhardcoded shell's uid
from previous changes.
BUG:
26814173
Change-Id: I867361efafb96c7e709f83806a9301afc637a27e
Pablo Ceballos [Thu, 11 Feb 2016 17:54:03 +0000 (17:54 +0000)]
Merge "BQ: Fix iterator use" into nyc-dev
Srinath Sridharan [Mon, 1 Feb 2016 23:50:22 +0000 (15:50 -0800)]
Split dumpsys into critical and non-critical sections.
Order in which we report stats in bugreport can disrupt cpu and memory
stats. This CL sorts the bugreport process
from least impactful to most impactful to try and keep the
system stats as close to its initial state as possible throughout the BR (eg.
things like dumpsys meminfo should run before dumping thread stacks)
BUG:
26639621
Change-Id: I29dccfd423d83a6a69b7e025d45cb9cebfc41cc4
Pablo Ceballos [Wed, 10 Feb 2016 23:43:22 +0000 (15:43 -0800)]
BQ: Fix iterator use
Don't use an iterator after it's been removed from the container.
Change-Id: I374b454bba95d10dcec6a600bf8f16e5636e426b
Courtney Goeltzenleuchter [Fri, 29 Jan 2016 00:26:17 +0000 (17:26 -0700)]
loader: Can't dlclose until all done with the layers
The loader was freeing the layers (dlclose) at the
bottom of the DestroyInstance chain. Would get a
segfault when returning from DestroyInstance_Bottom
as layers would try to run that are no longer in memory.
Change-Id: I25cc611fed9d8b3a90fd2652e53cd450daefa08c
(cherry picked from commit
3160835e44fcb0c5367d2f50b132e41c789998d5)
Courtney Goeltzenleuchter [Tue, 9 Feb 2016 03:48:05 +0000 (20:48 -0700)]
loader: Implement new layer initialization
We now call down the instance and device chains
as part of the creation process. The loader puts
together "LinkInfo" structures that each layer
uses to reference the next layer down in the stack.
These info structures are attached to the CreateInfo
pNext structure. Also have an info structure that
the loader terminator functions (CreateInstance_Bottom
and CreateDevice_Bottom) that includes loader state
they need.
As part of this the CreateDevice function now lives
on the device chain and it has been split into
Top and Bottom functions. Top builds the LinkInfo
structures and Bottom makes the actual call to the ICD
to create the device object.
Change-Id: I5f5a6d579c34942511cce288ba8fa51f9f89f67f
(cherry picked from commit
9091095245975597a0b2031c3b4847f780c1721e)
Courtney Goeltzenleuchter [Tue, 9 Feb 2016 03:12:59 +0000 (20:12 -0700)]
loader: Add GetName and GetDescription for logs
Handy to have more layer detail for logging.
Change-Id: I6933a8fcb90b9cfb70fc85a358244863aac9d702
(cherry picked from commit
cf275f37b4a903b5dcc95b5100db667c906aa33f)
Courtney Goeltzenleuchter [Tue, 2 Feb 2016 18:51:32 +0000 (11:51 -0700)]
loader: Layer init structures
Update to match LoaderAndTools vk_layer.h
which includes the new layer initialization structures.
Change-Id: Ie6bf2a1705373bad3c77dd0b04be1263f1c4fc46
(cherry picked from commit
f7491b28bfcc47ce09b32168a5fd25b58c6aceab)
Courtney Goeltzenleuchter [Wed, 3 Feb 2016 22:14:46 +0000 (15:14 -0700)]
loader: Only use driver's DebugReport if it has one
Change-Id: Ic020b9d5a95c9ddd20dd4c94fd6e7de050b83f2b
(cherry picked from commit
b776ba1cff149bb724a1958cc3f470ba5c113b63)
Courtney Goeltzenleuchter [Tue, 2 Feb 2016 03:09:00 +0000 (20:09 -0700)]
tools: Need to specify pQueuePriorities
Change-Id: I689c3e8da9e8cf00705f2f90d472c1268a978f1b
(cherry picked from commit
363ac5d35ca076f419c14f14bce603d5d82553fa)
Jesse Hall [Wed, 10 Feb 2016 17:49:49 +0000 (17:49 +0000)]
Merge "libvulkan: Support R5G6B5_UNORM_PACK16 as a swapchain format" into nyc-dev
Jesse Hall [Wed, 10 Feb 2016 16:07:53 +0000 (16:07 +0000)]
Merge "libvulkan: Un-revert and fix VK_PRESENT_MODE_MAILBOX_KHR" into nyc-dev
Jesse Hall [Wed, 10 Feb 2016 16:06:54 +0000 (16:06 +0000)]
Merge "vknulldrv: Report physical device limits" into nyc-dev
Jesse Hall [Wed, 10 Feb 2016 16:02:55 +0000 (16:02 +0000)]
Merge "libvulkan: Initialize VkSurfacePropertiesKHR::supportedCompositeAlpha" into nyc-dev
Jesse Hall [Wed, 10 Feb 2016 08:07:18 +0000 (00:07 -0800)]
libvulkan: Support R5G6B5_UNORM_PACK16 as a swapchain format
Change-Id: I489cf12965372d5281d200102a4632e6e8d75ede
Jesse Hall [Wed, 10 Feb 2016 06:46:40 +0000 (06:46 +0000)]
Merge "vkinfo: Fix bytes -> megabytes conversion" into nyc-dev
Jesse Hall [Tue, 9 Feb 2016 21:26:59 +0000 (13:26 -0800)]
libvulkan: Initialize VkSurfacePropertiesKHR::supportedCompositeAlpha
Also rearrange the code to set the fields of this struct in the same
order they appear in the struct, to make it easier to tell when
something is missing.
Bug:
26991609
Change-Id: I681ed42c96ac75bb1589d30ab75f760f660eacdd
Jesse Hall [Wed, 10 Feb 2016 06:35:04 +0000 (22:35 -0800)]
vknulldrv: Report physical device limits
Limits are set to the minimum values allowed by the spec.
Change-Id: Ib3ca99ad6d1537e2ed3fa29e15368419f2331ba7
Jesse Hall [Wed, 10 Feb 2016 06:13:34 +0000 (22:13 -0800)]
libvulkan: Un-revert and fix VK_PRESENT_MODE_MAILBOX_KHR
This reverts commit
9ec497c, which was a revert of
f333922, and fixes
the problem that caused the initial revert.
MODE_MAILBOX corresponds to BufferQueue "async" mode; in that mode we
need one extra un-dequeued buffer at all times. We weren't accounting
for that, and weren't allocating enough bufers.
Bug:
26918467
Change-Id: Ice67e6d16828e50413ae453ecf3c67b8fb288f1a
Pablo Ceballos [Fri, 5 Feb 2016 21:39:27 +0000 (13:39 -0800)]
Fix Surface slot caching
- Now that it's possible to resize a BufferQueue while buffers are
dequeued/acquired, it's no longer correct for Surface to clear its
cache when the BufferQueue is resized since it must keep at least
the currently dequeued buffers.
- Add an onSlotsFreed callback to IProducerListener so that producers
that wish to be notified about buffers being freed can do so. Note
that this isn't currently used in Surface.
- Review and fixup all the places where the producer/consumer
listeners for freed buffers should be called.
Change-Id: I4ab0c92bc69b75a3c072ddf5d74d78f941dba4c8
Pablo Ceballos [Thu, 14 Jan 2016 01:09:58 +0000 (17:09 -0800)]
Add interface for controlling single buffer auto refresh
- Adds a boolean to BufferQueue that controls whether or not auto
refresh is enabled in SurfaceFlinger when in single buffer mode.
- Adds plumbing up to ANativeWindow.
- When enabled, it will cache the shared buffer slot in Surface in
order to prevent the Binder transaction with SurfaceFlinger.
Bug
24940410
Change-Id: I83142afdc00e203f198a32288f071d926f8fda95
Felipe Leme [Wed, 10 Feb 2016 00:35:14 +0000 (16:35 -0800)]
Fixed format.
Change-Id: If0322e3dcf56005541aa08e0ab91dae10d2d385d
Felipe Leme [Wed, 10 Feb 2016 00:07:20 +0000 (16:07 -0800)]
Fixed C++ syntax.
Change-Id: I9702fdede589dd37cb498bbf63c0773816a7e3b8
Mark Salyzyn [Fri, 5 Feb 2016 23:33:17 +0000 (15:33 -0800)]
dumpstate: report process times
(cherry picked from commit
0751efa64cddfab69749236193e776058c9db595)
- Fix per-pid helper to pick up comm if cmdline is empty
and assume kernel thread.
- Add per pid report command line user time if not kernel thread,
system time and I/O time, plus percentage if non zero.
Bug:
26966375
Change-Id: I6b499f535cc3687eb468b32ae39e7d151dffb11f
Felipe Leme [Tue, 9 Feb 2016 18:40:07 +0000 (10:40 -0800)]
Split bugreport identifier into id and pid.
Although 'pid' is more useful when diagnosing problems with the
bugreport workflow, it could be confusing to the end user. Hence, a
sequential id (started at 1 after a reboot) would be more useful.
BUG:
27076108
Change-Id: I6fd7ea8c703e8040034af183ef5cd35adfbcb4ef
Jesse Hall [Tue, 9 Feb 2016 05:20:20 +0000 (21:20 -0800)]
vkinfo: Fix bytes -> megabytes conversion
Also only report 256 MiB (chosen arbitrarily) as the null driver's
memory heap size. The previous value wasn't reasonable on 64-bit
systems (2^63 + 1).
Change-Id: Id57a4895752af45d046072ae8fee386ca219e82d
Jesse Hall [Mon, 18 Jan 2016 12:01:10 +0000 (04:01 -0800)]
vkinfo: Print VkPhysicalDeviceFeatures
Change-Id: Ifa045de906ce2612382f470168438f80c7188b0a
Jesse Hall [Tue, 9 Feb 2016 00:47:53 +0000 (00:47 +0000)]
Merge "vkinfo: improve indentation, add verbosity parameters" into nyc-dev
Jesse Hall [Mon, 18 Jan 2016 12:00:57 +0000 (04:00 -0800)]
vknulldrv: Report valid VkPhysicalDeviceFeatures
Change-Id: I616f8e40d42abb812cc150d31b3a07d41d86b43c
Jesse Hall [Mon, 18 Jan 2016 11:41:35 +0000 (03:41 -0800)]
vkinfo: improve indentation, add verbosity parameters
Change-Id: I23b4a08a24d6fb1463db55dbbb342eca866fc228