OSDN Git Service

android-x86/frameworks-native.git
7 years agoAdd DVR method to get native display metrics
Stephen Kiazyk [Fri, 9 Jun 2017 21:26:31 +0000 (14:26 -0700)]
Add DVR method to get native display metrics

This seems like the kind of infomration we should be able to communicate
to vrcore.

Bug: 62494565
Test: Builds and loads, still need to test with vrcore
Change-Id: I2342fabcd2bcb8a34c0b783391b60defc381f3c6

7 years agodumpstate: Dump all block device stat am: 509bb5d176
Wei Wang [Mon, 12 Jun 2017 09:23:54 +0000 (09:23 +0000)]
dumpstate: Dump all block device stat am: 509bb5d176
am: e7842d53e1

Change-Id: I812a39157cbeede11b6bc33e17c93127443a36af

7 years agodumpstate: Dump all block device stat
Wei Wang [Mon, 12 Jun 2017 09:20:10 +0000 (09:20 +0000)]
dumpstate: Dump all block device stat
am: 509bb5d176

Change-Id: I3ddf083f033b093e9304c8cf61e0f5b0ddb47a06

7 years agodumpstate: Dump all block device stat
Wei Wang [Fri, 9 Jun 2017 21:42:12 +0000 (14:42 -0700)]
dumpstate: Dump all block device stat

We have "UPTIME MMC PERF" but it is limited to MMC and thus has
been broken for a while in recent devices.
This CL is to add dump for all block devices stat information.

Bug: 62319771
Test: adb bugreport and check the result
Change-Id: I74e0bf0c4bf40e268dffd0abb8922f0ffb5e9692

7 years agoMerge "Move global buffer ops to VR display service." into oc-dr1-dev am: 6c7f1196ea
Corey Tabaka [Fri, 9 Jun 2017 23:14:37 +0000 (23:14 +0000)]
Merge "Move global buffer ops to VR display service." into oc-dr1-dev am: 6c7f1196ea
am: 8ce5306e88

Change-Id: If7410530cbc30dc126015475954283268eb87381

7 years agoMerge "Move global buffer ops to VR display service." into oc-dr1-dev
Corey Tabaka [Fri, 9 Jun 2017 22:29:39 +0000 (22:29 +0000)]
Merge "Move global buffer ops to VR display service." into oc-dr1-dev
am: 6c7f1196ea

Change-Id: I7d08e724cfebcb70e5d5ca23b576d2a878b604e3

7 years agoMerge "Move global buffer ops to VR display service." into oc-dr1-dev
TreeHugger Robot [Fri, 9 Jun 2017 21:56:52 +0000 (21:56 +0000)]
Merge "Move global buffer ops to VR display service." into oc-dr1-dev

7 years agoMerge "Add missing VNDK pixel formats to AHardwareBuffer" into oc-dev am: 2563c0f3b0...
Mathias Agopian [Fri, 9 Jun 2017 20:13:19 +0000 (20:13 +0000)]
Merge "Add missing VNDK pixel formats to AHardwareBuffer" into oc-dev am: 2563c0f3b0 am: f86cfd6dd9
am: 7eb30bde4c

Change-Id: I645224f36716462a8fbb6cd91bbe8389459209f8

7 years agoMerge "Add missing VNDK pixel formats to AHardwareBuffer" into oc-dev am: 2563c0f3b0...
Mathias Agopian [Fri, 9 Jun 2017 20:12:56 +0000 (20:12 +0000)]
Merge "Add missing VNDK pixel formats to AHardwareBuffer" into oc-dev am: 2563c0f3b0 am: b52ddcb252
am: c0828d1e13

Change-Id: I505b7ecfd4acb76f4e117948e13478a3217f41e8

7 years agoMerge "Add missing VNDK pixel formats to AHardwareBuffer" into oc-dev am: 2563c0f3b0
Mathias Agopian [Fri, 9 Jun 2017 19:49:24 +0000 (19:49 +0000)]
Merge "Add missing VNDK pixel formats to AHardwareBuffer" into oc-dev am: 2563c0f3b0
am: f86cfd6dd9

Change-Id: I7a4e930b62e9cdffa22a66b09509b0927a05beeb

7 years agoMerge "Add missing VNDK pixel formats to AHardwareBuffer" into oc-dev am: 2563c0f3b0
Mathias Agopian [Fri, 9 Jun 2017 19:40:38 +0000 (19:40 +0000)]
Merge "Add missing VNDK pixel formats to AHardwareBuffer" into oc-dev am: 2563c0f3b0
am: b52ddcb252

Change-Id: I29100f8c59a63036606523991fb0bd03a1d32329

7 years agoMerge "Add missing VNDK pixel formats to AHardwareBuffer" into oc-dev
Mathias Agopian [Fri, 9 Jun 2017 19:39:25 +0000 (19:39 +0000)]
Merge "Add missing VNDK pixel formats to AHardwareBuffer" into oc-dev
am: 2563c0f3b0

Change-Id: Iba3dfbfcbaa778da25de68a16beee024ac1b6efe

7 years agoMerge "Add missing VNDK pixel formats to AHardwareBuffer" into oc-dev
Mathias Agopian [Fri, 9 Jun 2017 19:36:27 +0000 (19:36 +0000)]
Merge "Add missing VNDK pixel formats to AHardwareBuffer" into oc-dev
am: 2563c0f3b0

Change-Id: I10e623eebb70da1f4127c0eec2aa85867da0623c

7 years agoMerge "Add missing VNDK pixel formats to AHardwareBuffer" into oc-dev
Mathias Agopian [Fri, 9 Jun 2017 19:02:45 +0000 (19:02 +0000)]
Merge "Add missing VNDK pixel formats to AHardwareBuffer" into oc-dev

7 years agoMerge "Floor height API changes." into oc-dr1-dev am: 2717eaba05
Okan Arikan [Fri, 9 Jun 2017 16:57:12 +0000 (16:57 +0000)]
Merge "Floor height API changes." into oc-dr1-dev am: 2717eaba05
am: 65b2b5dcfb

Change-Id: Ic99fee0ca1cd279aaff882eb1e414dc27a758987

7 years agoMerge "Floor height API changes." into oc-dr1-dev
Okan Arikan [Fri, 9 Jun 2017 16:54:44 +0000 (16:54 +0000)]
Merge "Floor height API changes." into oc-dr1-dev
am: 2717eaba05

Change-Id: Id5783b9713cda9a5b1c62499a29322af3e86630c

7 years agoMerge "Floor height API changes." into oc-dr1-dev
Okan Arikan [Fri, 9 Jun 2017 16:48:47 +0000 (16:48 +0000)]
Merge "Floor height API changes." into oc-dr1-dev

7 years agoMerge "Fix build am: aaef0983ba am: 2c410e0d5f" into oc-dr1-dev-plus-aosp
Jorim Jaggi [Fri, 9 Jun 2017 08:05:12 +0000 (08:05 +0000)]
Merge "Fix build am: aaef0983ba am: 2c410e0d5f" into oc-dr1-dev-plus-aosp
am: 44a70e99b0

Change-Id: Ibe06c7ec7cff574b5ffb03c73d13401644e9ff4f

7 years agoFix build am: aaef0983ba am: 5a556bc71e
Jorim Jaggi [Fri, 9 Jun 2017 08:04:47 +0000 (08:04 +0000)]
Fix build am: aaef0983ba am: 5a556bc71e
am: 025d6efd95

Change-Id: I523da99a804e27c6ab4a35aecfb3c3a820ebd45d

7 years agoMerge "Fix build am: aaef0983ba am: 2c410e0d5f" into oc-dr1-dev-plus-aosp
Android Build Merger (Role) [Fri, 9 Jun 2017 08:02:23 +0000 (08:02 +0000)]
Merge "Fix build am: aaef0983ba am: 2c410e0d5f" into oc-dr1-dev-plus-aosp

7 years agoFix build am: aaef0983ba
Jorim Jaggi [Fri, 9 Jun 2017 08:02:05 +0000 (08:02 +0000)]
Fix build am: aaef0983ba
am: 2c410e0d5f

Change-Id: I10728186af370d9e47196eeda43dfeccc582bc74

7 years agoFix build am: aaef0983ba
Jorim Jaggi [Fri, 9 Jun 2017 08:02:04 +0000 (08:02 +0000)]
Fix build am: aaef0983ba
am: 5a556bc71e

Change-Id: I59426f537ebe484b865a3b424e7e56608fa14112

7 years agoFix build
Jorim Jaggi [Fri, 9 Jun 2017 07:59:34 +0000 (07:59 +0000)]
Fix build
am: aaef0983ba

Change-Id: I087952f069da1ba624bef32d1ac913a242533321

7 years agoFix build
Jorim Jaggi [Fri, 9 Jun 2017 07:59:34 +0000 (07:59 +0000)]
Fix build
am: aaef0983ba

Change-Id: Ia4d360cb942c43180d6077cd01bd9e9eb5b598d5

7 years agoFix build
Jorim Jaggi [Fri, 9 Jun 2017 06:55:29 +0000 (23:55 -0700)]
Fix build

Test: builds
Bug: 36631902
Change-Id: Iec23f8ab2b16c923f07d1857aa3471cfefc057dd

7 years agoMerge changes Idd883e15,I9e13e04f
TreeHugger Robot [Fri, 9 Jun 2017 05:12:43 +0000 (05:12 +0000)]
Merge changes Idd883e15,I9e13e04f

* changes:
  Re-enable default display when switching to VR mode.
  Add LambdaMessage to SurfaceFlinger

7 years agoProperly run window animations at vsync-sf (2/2) am: b1e2f8deb3 am: 5d37ae59e0
Jorim Jaggi [Fri, 9 Jun 2017 04:36:14 +0000 (04:36 +0000)]
Properly run window animations at vsync-sf (2/2) am: b1e2f8deb3 am: 5d37ae59e0
am: 879089b3e8

Change-Id: I5707fe2dba930c4a92b39c2b0fe67033d862d80f

7 years agoProperly run window animations at vsync-sf (2/2) am: b1e2f8deb3 am: d5ebce91c8
Jorim Jaggi [Fri, 9 Jun 2017 04:33:25 +0000 (04:33 +0000)]
Properly run window animations at vsync-sf (2/2) am: b1e2f8deb3 am: d5ebce91c8
am: a151804acb

Change-Id: I7d68092293a25e0e90a8b9ab87950959f9d12ca3

7 years agoProperly run window animations at vsync-sf (2/2) am: b1e2f8deb3
Jorim Jaggi [Fri, 9 Jun 2017 04:27:03 +0000 (04:27 +0000)]
Properly run window animations at vsync-sf (2/2) am: b1e2f8deb3
am: 5d37ae59e0

Change-Id: I286fbd09c2fe425a90fd2b93c4a83b03d55e8113

7 years agoProperly run window animations at vsync-sf (2/2) am: b1e2f8deb3
Jorim Jaggi [Fri, 9 Jun 2017 04:24:54 +0000 (04:24 +0000)]
Properly run window animations at vsync-sf (2/2) am: b1e2f8deb3
am: d5ebce91c8

Change-Id: I30768aba500834a157290871b0970f20a8eebd06

7 years agoProperly run window animations at vsync-sf (2/2)
Jorim Jaggi [Fri, 9 Jun 2017 04:16:44 +0000 (04:16 +0000)]
Properly run window animations at vsync-sf (2/2)
am: b1e2f8deb3

Change-Id: I2cf08e016fcd177117d7135d211e2676a1945eba

7 years agoProperly run window animations at vsync-sf (2/2)
Jorim Jaggi [Fri, 9 Jun 2017 04:15:20 +0000 (04:15 +0000)]
Properly run window animations at vsync-sf (2/2)
am: b1e2f8deb3

Change-Id: I7fbd22c681688edce1eda7f2786c68e6cbe32a22

7 years agoAdd missing VNDK pixel formats to AHardwareBuffer
Mathias Agopian [Fri, 9 Jun 2017 02:44:17 +0000 (19:44 -0700)]
Add missing VNDK pixel formats to AHardwareBuffer

AHardwareBuffer is now the only API available to
vendors to create graphic buffers in their HAL
implementations, unfortunately AHardwareBuffer
was designed for NDK use and was missing all
HAL specific pixel formats.

This CL adds these missing format to the VNDK-only
header.

The implementation is changed to accept all formats
which means, VNDK formats are indirectly exposed
to the NDK.

Bug: 38466076
Test: manual
Change-Id: I1e752cd33641aa861d9d15432cde6bec5a682e9a

7 years agoProperly run window animations at vsync-sf (2/2)
Jorim Jaggi [Thu, 8 Jun 2017 22:43:59 +0000 (15:43 -0700)]
Properly run window animations at vsync-sf (2/2)

- Add new Choreographer instance that runs on vsync-sf
- Use this new Choreographer for WindowAnimator, and remove all
the hacks around it

Test: Open apps and close apps, notice no stutter
Test: Screen zoom animations
Test: go/wm-smoke
Bug: 36631902
Change-Id: I72a8b39709303a38fc077100229b8a81a153ba3e

7 years agoMove global buffer ops to VR display service.
Corey Tabaka [Thu, 8 Jun 2017 00:54:33 +0000 (17:54 -0700)]
Move global buffer ops to VR display service.

The original home for these ops was the VR display manager service,
which is a protected singleton service that may only have one client.
Since more than one service needs to create global buffers, move these
ops to the display service. They are already protected by permission
checks.

Bug: 62424911
Test: dvr_api-test passes
Change-Id: Ia2f57fdf8a5258b52a652935d160e90db0f1cf9e

7 years agoRe-enable default display when switching to VR mode.
Alex Sakhartchouk [Mon, 5 Jun 2017 14:37:57 +0000 (10:37 -0400)]
Re-enable default display when switching to VR mode.

Previously, in an attempt to minimize the number of changes that got
reset during VR mode transitions, the primary display was not turned back
on.

Bug: 62215749
Test: Switch device into VR mode, observe primary display invalidations.

Change-Id: Idd883e1522f519a0db06fdd88b071007487b6e70

7 years agoAdd LambdaMessage to SurfaceFlinger
Alex Sakhartchouk [Wed, 7 Jun 2017 15:36:32 +0000 (11:36 -0400)]
Add LambdaMessage to SurfaceFlinger

LambdaMessage allows for a cleaner, more compact way to create and
dispatch messages inside SurfaceFlinger. A follow up CL uses this
method, but it was isolated here to keep added functionality and
helper facilities separate.

Bug: 62215749
Test: Compile
Change-Id: I9e13e04f1b67fd60f01bcab02fe4f19c91c10bd4

7 years agoFloor height API changes.
Okan Arikan [Tue, 6 Jun 2017 16:52:33 +0000 (09:52 -0700)]
Floor height API changes.

The platform does not populate this field yet. This CL is for making the
necessary API change in frameworks/native before we cut the DR branch.

Bug: 38212129
Test: No functional change. Must compile.
Change-Id: Iaa21bbc0cec866bf5325d760e13989e49bce502a

7 years agoMerge "Merge "Don't double-count external cached app data." into oc-dev am: b5a1f50f5...
Jeff Sharkey [Thu, 8 Jun 2017 15:52:15 +0000 (15:52 +0000)]
Merge "Merge "Don't double-count external cached app data." into oc-dev am: b5a1f50f5e am: c11cc1d365" into oc-dr1-dev-plus-aosp
am: 9869bcd499

Change-Id: I4f03389d3e1bd54c613d8b50f368b499d182f178

7 years agoMerge "Don't double-count external cached app data." into oc-dev am: b5a1f50f5e am...
Jeff Sharkey [Thu, 8 Jun 2017 15:51:50 +0000 (15:51 +0000)]
Merge "Don't double-count external cached app data." into oc-dev am: b5a1f50f5e am: 267b4fd7e7
am: b7747e554e

Change-Id: I415a74ad14709e3f3cffd8e09142dc834122a966

7 years agoMerge "Merge "Don't double-count external cached app data." into oc-dev am: b5a1f50f5...
Android Build Merger (Role) [Thu, 8 Jun 2017 15:37:41 +0000 (15:37 +0000)]
Merge "Merge "Don't double-count external cached app data." into oc-dev am: b5a1f50f5e am: c11cc1d365" into oc-dr1-dev-plus-aosp

7 years agoMerge "Don't double-count external cached app data." into oc-dev am: b5a1f50f5e
Jeff Sharkey [Thu, 8 Jun 2017 15:37:20 +0000 (15:37 +0000)]
Merge "Don't double-count external cached app data." into oc-dev am: b5a1f50f5e
am: 267b4fd7e7

Change-Id: Id940efe570f37a873df7a1b4a4b1dd1ee4ef32b0

7 years agoMerge "Don't double-count external cached app data." into oc-dev am: b5a1f50f5e
Jeff Sharkey [Thu, 8 Jun 2017 15:37:19 +0000 (15:37 +0000)]
Merge "Don't double-count external cached app data." into oc-dev am: b5a1f50f5e
am: c11cc1d365

Change-Id: I543c21f831b22ab5a74da370a8b18acfb5891d7e

7 years agoMerge "Don't double-count external cached app data." into oc-dev
Jeff Sharkey [Thu, 8 Jun 2017 15:34:49 +0000 (15:34 +0000)]
Merge "Don't double-count external cached app data." into oc-dev
am: b5a1f50f5e

Change-Id: Ia991cb98e842a9a9f64e669435c860611e79ff72

7 years agoMerge "Don't double-count external cached app data." into oc-dev
Jeff Sharkey [Thu, 8 Jun 2017 15:34:49 +0000 (15:34 +0000)]
Merge "Don't double-count external cached app data." into oc-dev
am: b5a1f50f5e

Change-Id: Ia2057fe4522596b4593465db1f5d6cdcbf39c063

7 years agoMerge "Don't double-count external cached app data." into oc-dev
Jeff Sharkey [Thu, 8 Jun 2017 15:27:07 +0000 (15:27 +0000)]
Merge "Don't double-count external cached app data." into oc-dev

7 years agoMerge "No more ashmem equivalent checker false alarm" into oc-dev am: d6d91e5833...
Peng Xu [Thu, 8 Jun 2017 10:37:02 +0000 (10:37 +0000)]
Merge "No more ashmem equivalent checker false alarm" into oc-dev am: d6d91e5833 am: 9d4f73e753
am: de60796189

Change-Id: I1f36724ac55ca3abe39b7a226fc2b825d291ba72

7 years agoMerge "No more ashmem equivalent checker false alarm" into oc-dev am: d6d91e5833...
Peng Xu [Thu, 8 Jun 2017 10:36:39 +0000 (10:36 +0000)]
Merge "No more ashmem equivalent checker false alarm" into oc-dev am: d6d91e5833 am: a8e13ef021
am: 52c35b7099

Change-Id: Icdc4d502be34f29822775c653300e39b70e4f8a7

7 years agoMerge "No more ashmem equivalent checker false alarm" into oc-dev am: d6d91e5833
Peng Xu [Thu, 8 Jun 2017 10:26:51 +0000 (10:26 +0000)]
Merge "No more ashmem equivalent checker false alarm" into oc-dev am: d6d91e5833
am: 9d4f73e753

Change-Id: Ife1b6aa7c68d97fe1ba0a0b121852d2d2cbb1a80

7 years agoMerge "No more ashmem equivalent checker false alarm" into oc-dev am: d6d91e5833
Peng Xu [Thu, 8 Jun 2017 10:26:08 +0000 (10:26 +0000)]
Merge "No more ashmem equivalent checker false alarm" into oc-dev am: d6d91e5833
am: a8e13ef021

Change-Id: Ia83ac2bda90969378009ce9beda7acc3d576b511

7 years agoMerge "No more ashmem equivalent checker false alarm" into oc-dev
Peng Xu [Thu, 8 Jun 2017 10:23:02 +0000 (10:23 +0000)]
Merge "No more ashmem equivalent checker false alarm" into oc-dev
am: d6d91e5833

Change-Id: I754b5d0d1e9426efa07821eba8a6ca6c826914cf

7 years agoMerge "No more ashmem equivalent checker false alarm" into oc-dev
Peng Xu [Thu, 8 Jun 2017 10:23:01 +0000 (10:23 +0000)]
Merge "No more ashmem equivalent checker false alarm" into oc-dev
am: d6d91e5833

Change-Id: Ia4dad911062490db360fec8a1dc470b5a7bce9d6

7 years agoMerge "No more ashmem equivalent checker false alarm" into oc-dev
TreeHugger Robot [Thu, 8 Jun 2017 10:16:09 +0000 (10:16 +0000)]
Merge "No more ashmem equivalent checker false alarm" into oc-dev

7 years agoMerge "Resurrect the pose tool."
TreeHugger Robot [Thu, 8 Jun 2017 01:24:29 +0000 (01:24 +0000)]
Merge "Resurrect the pose tool."

7 years agoMerge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw...
Matthew Bouyack [Wed, 7 Jun 2017 23:31:43 +0000 (23:31 +0000)]
Merge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw-f-dev am: 9e5585930a am: f613f073b2  -s ours am: 4c0bb0a09a am: 9a41a3483a
am: 073fad6cfe

Change-Id: I53daac62c1b770c1172c15858e8eed26f4a22ec2

7 years agoMerge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw...
Matthew Bouyack [Wed, 7 Jun 2017 23:31:21 +0000 (23:31 +0000)]
Merge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw-f-dev am: 9e5585930a am: f613f073b2  -s ours am: 4c0bb0a09a am: 5b4bcd21ac
am: 4c9cb53be7

Change-Id: I9f3f5881217c1aa7cfd25c54265d249ce923bec2

7 years agoMerge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw...
Matthew Bouyack [Wed, 7 Jun 2017 23:22:24 +0000 (23:22 +0000)]
Merge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw-f-dev am: 9e5585930a am: f613f073b2  -s ours am: 4c0bb0a09a
am: 9a41a3483a

Change-Id: I65d061197561958cce50bc4a34b0123a25d17687

7 years agoMerge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw...
Matthew Bouyack [Wed, 7 Jun 2017 23:09:54 +0000 (23:09 +0000)]
Merge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw-f-dev am: 9e5585930a am: f613f073b2  -s ours am: 4c0bb0a09a
am: 5b4bcd21ac

Change-Id: If79fbe8a291e8e14eff877c01def5bd78a0aaedd

7 years agoMerge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw...
Matthew Bouyack [Wed, 7 Jun 2017 23:07:56 +0000 (23:07 +0000)]
Merge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw-f-dev am: 9e5585930a am: f613f073b2  -s ours
am: 4c0bb0a09a

Change-Id: I579772728ba0f1c12ac6a611c53b0bba6e23c09b

7 years agoMerge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw...
Matthew Bouyack [Wed, 7 Jun 2017 23:05:31 +0000 (23:05 +0000)]
Merge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw-f-dev am: 9e5585930a am: f613f073b2  -s ours
am: 4c0bb0a09a

Change-Id: I7872b8894502b9286206f7d73563634a3ac34c3b

7 years agoMerge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw...
Matthew Bouyack [Wed, 7 Jun 2017 22:59:18 +0000 (22:59 +0000)]
Merge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw-f-dev am: 9e5585930a
am: f613f073b2  -s ours

Change-Id: I8a6e0a9b7e7810cfc33db9de074c2cdac139d233

7 years agoMerge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw...
Matthew Bouyack [Wed, 7 Jun 2017 22:53:37 +0000 (22:53 +0000)]
Merge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw-f-dev
am: 9e5585930a

Change-Id: I3b534f26c60bd8d6cf0736da7de807cf339a1cdd

7 years agoMerge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw...
Matthew Bouyack [Wed, 7 Jun 2017 22:46:08 +0000 (22:46 +0000)]
Merge "DO NOT MERGE: Eliminate redundant changes to hardware vsync state." into cw-f-dev

7 years agoDO NOT MERGE: Eliminate redundant changes to hardware vsync state.
Matthew Bouyack [Thu, 1 Jun 2017 21:37:29 +0000 (14:37 -0700)]
DO NOT MERGE: Eliminate redundant changes to hardware vsync state.

When transitioning between NORMAL and DOZE power modes
we were redundantly calling resyncHardwareVsync.

Similarly, when transitioning from DOZE_SUSPEND to OFF
we were redundantly calling disableHardwareVsync.

This change eliminates those redundant calls.

Fixes bug 62235417

Change-Id: I513bbf94a7ab973ab258efe16436441ac2379b70

7 years agoDon't double-count external cached app data.
Jeff Sharkey [Wed, 7 Jun 2017 21:59:03 +0000 (15:59 -0600)]
Don't double-count external cached app data.

Cached app data is already counted in extStats.dataSize, so we don't
need to count it twice.

Test: builds, boots, verified Settings UI before/after
Bug: 62343684
Change-Id: Ic02cbe3f5938949730f9bc8d911ed398436f84d7

7 years agoNo crash from AHardwareBuffer_unlock on NULL fence am: ae6955fda8 am: 71b22bee5b
Jiwen 'Steve' Cai [Wed, 7 Jun 2017 19:48:47 +0000 (19:48 +0000)]
No crash from AHardwareBuffer_unlock on NULL fence am: ae6955fda8 am: 71b22bee5b
am: f92508e2ca

Change-Id: Ie5aa4cf26de51ec782ae39235b3710fcf1374ec3

7 years agoNo crash from AHardwareBuffer_unlock on NULL fence am: ae6955fda8 am: c197b62e97
Jiwen 'Steve' Cai [Wed, 7 Jun 2017 19:48:24 +0000 (19:48 +0000)]
No crash from AHardwareBuffer_unlock on NULL fence am: ae6955fda8 am: c197b62e97
am: 94e2222bb3

Change-Id: I082dac4ea7d3a9ff9407d8ed592f1c78d1f952b6

7 years agoMerge "dumpstate: Remove wpa_cli usage"
TreeHugger Robot [Wed, 7 Jun 2017 19:43:25 +0000 (19:43 +0000)]
Merge "dumpstate: Remove wpa_cli usage"

7 years agoNo crash from AHardwareBuffer_unlock on NULL fence am: ae6955fda8
Jiwen 'Steve' Cai [Wed, 7 Jun 2017 19:35:17 +0000 (19:35 +0000)]
No crash from AHardwareBuffer_unlock on NULL fence am: ae6955fda8
am: 71b22bee5b

Change-Id: I749958788a77eba8879acdd61dcd302f60122572

7 years agoNo crash from AHardwareBuffer_unlock on NULL fence am: ae6955fda8
Jiwen 'Steve' Cai [Wed, 7 Jun 2017 19:32:46 +0000 (19:32 +0000)]
No crash from AHardwareBuffer_unlock on NULL fence am: ae6955fda8
am: c197b62e97

Change-Id: Ida8d12b6ff13655683dd604d112d47048f378be3

7 years agoNo crash from AHardwareBuffer_unlock on NULL fence
Jiwen 'Steve' Cai [Wed, 7 Jun 2017 19:30:47 +0000 (19:30 +0000)]
No crash from AHardwareBuffer_unlock on NULL fence
am: ae6955fda8

Change-Id: I884ab8f0f15ad2e9e838572be638bfeee076686f

7 years agoNo crash from AHardwareBuffer_unlock on NULL fence
Jiwen 'Steve' Cai [Wed, 7 Jun 2017 19:30:46 +0000 (19:30 +0000)]
No crash from AHardwareBuffer_unlock on NULL fence
am: ae6955fda8

Change-Id: Iaedc2bbf55cf369b9c273678a0787572826b8f72

7 years agoNo crash from AHardwareBuffer_unlock on NULL fence
Jiwen 'Steve' Cai [Fri, 2 Jun 2017 22:23:26 +0000 (15:23 -0700)]
No crash from AHardwareBuffer_unlock on NULL fence

The API document states: "If fence is not NULL then it will be set to a
file descriptor that is signaled when all pending work on the buffer is
completed." As it's too late to change the document, we should probably
update the implement and use GraphicsBuffer::unlock under the hood.

Bug: 62302267
Test: Build, AHardware CTS
Change-Id: Ic0fac5d7addfba67baaa1b5d7c221fc25d02df56
(cherry picked from commit 6cdbb537105b663572e71afe06bde1164fc215f3)

7 years agoMerge changes from topic 'vrflinger-cleanup'
TreeHugger Robot [Wed, 7 Jun 2017 04:05:22 +0000 (04:05 +0000)]
Merge changes from topic 'vrflinger-cleanup'

* changes:
  libbufferhub: Fix native buffer.
  libvrflinger: Move display request to avoid duplicate calls.
  libvrflinger: Remove superfluous update to display manager.
  libvrflinger: Move some tracing to a more verbose level.
  libvrflinger: Add additional info to PDX dump.

7 years agoMerge "Support custom permission, slight adjust of dumpsys print"
Peng Xu [Wed, 7 Jun 2017 03:16:09 +0000 (03:16 +0000)]
Merge "Support custom permission, slight adjust of dumpsys print"

7 years agoMerge "Read saturation boost from a persistent property"
TreeHugger Robot [Wed, 7 Jun 2017 02:36:12 +0000 (02:36 +0000)]
Merge "Read saturation boost from a persistent property"

7 years agolibbufferhub: Fix native buffer.
Corey Tabaka [Wed, 10 May 2017 23:27:21 +0000 (16:27 -0700)]
libbufferhub: Fix native buffer.

This class was broken during a clean up. Fix the code in preparation
for adding tools that will use it again.

Bug: None
Test: build; flash
Change-Id: I8e60c7ba316080a24ff8914807972886e21ebce9

7 years agolibvrflinger: Move display request to avoid duplicate calls.
Corey Tabaka [Tue, 6 Jun 2017 23:33:31 +0000 (16:33 -0700)]
libvrflinger: Move display request to avoid duplicate calls.

Move the request display call to avoid duplicate calls when direct
surfaces change but the current VrFlinger mode does not change.

Bug: 62389162
Test: build; flash; VrFlinger mode works.
Change-Id: I1348ada93e2992306cba7e319f9b20726fb97cb7

7 years agolibvrflinger: Remove superfluous update to display manager.
Corey Tabaka [Tue, 6 Jun 2017 23:16:28 +0000 (16:16 -0700)]
libvrflinger: Remove superfluous update to display manager.

Setting visibility attributes already triggers an update to the
display manager. Avoid the double trigger.

Bug: None
Test: build; run
Change-Id: I4c8a7c814143ccd1a4fc22fe068ba9b05d95cdd6

7 years agolibvrflinger: Move some tracing to a more verbose level.
Corey Tabaka [Tue, 6 Jun 2017 23:14:21 +0000 (16:14 -0700)]
libvrflinger: Move some tracing to a more verbose level.

Quiet the logs when using TRACE=1.

Bug: None
Test: Set TRACE=1; build; observe traces do not appear.
Change-Id: I521fa5cf4b0ab18e73f89a1898bf2d58fc2d1f88

7 years agolibvrflinger: Add additional info to PDX dump.
Corey Tabaka [Fri, 19 May 2017 19:02:58 +0000 (12:02 -0700)]
libvrflinger: Add additional info to PDX dump.

- Add logging for surface and layers.
- Minor cleanup of AcquiredBuffer code.
- Add additional debug tracing.

Bug: None
Test: servicetool --dump /dev/socket/pdx/system/vr/display/client
Change-Id: Ie7cfe46978139e0eef2184b03acb4b9bab428a33

7 years agoMerge "buffer_hub_queue_client: Batch allocate buffers"
TreeHugger Robot [Tue, 6 Jun 2017 23:20:56 +0000 (23:20 +0000)]
Merge "buffer_hub_queue_client: Batch allocate buffers"

7 years agoDo not use default initializer for union
Yi Kong [Tue, 6 Jun 2017 23:05:38 +0000 (23:05 +0000)]
Do not use default initializer for union
am: 584dfc7688

Change-Id: I328296e07f5b6e5c3f880a2b243a7fe2e297252e

7 years agoDo not use default initializer for union
Yi Kong [Thu, 11 May 2017 18:51:08 +0000 (11:51 -0700)]
Do not use default initializer for union

The next Clang update complains about this code pattern. Rewrite default
constructor to explicitly initialize the union field instead of using
the default initializer.

Test: Build
Bug: 37752547
Change-Id: I22a2aa392d7f4803282baed832b0fa2f852016ac
(cherry picked from commit 4fdbdd1692a549a31382f33f5d529fd141453ea1)

7 years agoatrace: setup saved_cmdlines_size and write only if available am: 9351f72049
Joel Fernandes [Tue, 6 Jun 2017 20:56:50 +0000 (20:56 +0000)]
atrace: setup saved_cmdlines_size and write only if available am: 9351f72049
am: 485d70cfa4

Change-Id: I5b0d49466edc2d0824cef0f6b3cef3a5bcf66f09

7 years agoatrace: setup saved_cmdlines_size and write only if available
Joel Fernandes [Tue, 6 Jun 2017 20:54:50 +0000 (20:54 +0000)]
atrace: setup saved_cmdlines_size and write only if available
am: 9351f72049

Change-Id: I6ac54d96cda205bc5d4e4d569b03b2064140e310

7 years agoMerge "Revert "Disable in-place vdex update"" into oc-dev am: 7258088ea5
Nicolas Geoffray [Tue, 6 Jun 2017 20:48:00 +0000 (20:48 +0000)]
Merge "Revert "Disable in-place vdex update"" into oc-dev am: 7258088ea5
am: 0ef3b0eca2

Change-Id: I54f6eea644b392f6aefa9c07e035a1e2478ba311

7 years agoatrace: setup saved_cmdlines_size and write only if available
Joel Fernandes [Tue, 6 Jun 2017 19:20:29 +0000 (12:20 -0700)]
atrace: setup saved_cmdlines_size and write only if available

Older kernels (bullhead etc) don't have saved_cmdlines_size, check and
write only if available. Also make work on non-root by setting
permissions in rc file (thanks John Reck for suggestion).

Bug: 62375794

Change-Id: Iefffc3203afd092ffb6cf420a144b38844aaee39
Signed-off-by: Joel Fernandes <joelaf@google.com>
7 years agoMerge "Revert "Disable in-place vdex update"" into oc-dev
Nicolas Geoffray [Tue, 6 Jun 2017 20:38:42 +0000 (20:38 +0000)]
Merge "Revert "Disable in-place vdex update"" into oc-dev
am: 7258088ea5

Change-Id: I3e36f53541ccac1cccd2361d4d6b752e8e881668

7 years agoMerge "Revert "Disable in-place vdex update"" into oc-dev
Nicolas Geoffray [Tue, 6 Jun 2017 20:20:33 +0000 (20:20 +0000)]
Merge "Revert "Disable in-place vdex update"" into oc-dev

7 years agoatrace: setup saved_cmdlines_size and write only if available
Joel Fernandes [Tue, 6 Jun 2017 19:20:29 +0000 (12:20 -0700)]
atrace: setup saved_cmdlines_size and write only if available

Older kernels (bullhead etc) don't have saved_cmdlines_size, check and
write only if available. Also make work on non-root by setting
permissions in rc file (thanks John Reck for suggestion).

Bug: 62375794

Change-Id: Iefffc3203afd092ffb6cf420a144b38844aaee39
Signed-off-by: Joel Fernandes <joelaf@google.com>
7 years agobuffer_hub_queue_client: Batch allocate buffers
Jiwen 'Steve' Cai [Thu, 25 May 2017 06:16:54 +0000 (23:16 -0700)]
buffer_hub_queue_client: Batch allocate buffers

Bug: 36147743
Test: buffer_hub_queue-test, buffer_hub_queue_producer-test, dvr_api-test
Change-Id: I40a9babfa8d28d4496e27a7ccecb7ae1b9bc7bd5

7 years agoMerge "Add DVR API for scroll event injection."
TreeHugger Robot [Tue, 6 Jun 2017 18:20:31 +0000 (18:20 +0000)]
Merge "Add DVR API for scroll event injection."

7 years agofix race condition that can cause a use after free am: 59485525a6 am: 5da64c91d0...
Mathias Agopian [Tue, 6 Jun 2017 18:19:26 +0000 (18:19 +0000)]
fix race condition that can cause a use after free am: 59485525a6 am: 5da64c91d0 am: 46361c6c2b am: ee464e00d3 am: 21e9397776 am: 7b8472157a  -s ours
am: 66bc85165a

Change-Id: I977e8a53b3ff189b1740dfd612ec19edf0acc79a

7 years agofix race condition that can cause a use after free am: 59485525a6 am: 5da64c91d0...
Mathias Agopian [Tue, 6 Jun 2017 18:18:59 +0000 (18:18 +0000)]
fix race condition that can cause a use after free am: 59485525a6 am: 5da64c91d0 am: 46361c6c2b am: ee464e00d3 am: 21e9397776  -s ours am: 1b81145396
am: 390786a204

Change-Id: I606f740ad26e0b415149a657adfe6c2dd879c139

7 years agofix race condition that can cause a use after free am: 59485525a6 am: 5da64c91d0...
Mathias Agopian [Tue, 6 Jun 2017 18:06:07 +0000 (18:06 +0000)]
fix race condition that can cause a use after free am: 59485525a6 am: 5da64c91d0 am: 46361c6c2b am: ee464e00d3 am: 21e9397776
am: 7b8472157a  -s ours

Change-Id: I5289fea87abce43cb9fa7cf4cb11041b5201800d

7 years agofix race condition that can cause a use after free am: 59485525a6 am: 5da64c91d0...
Mathias Agopian [Tue, 6 Jun 2017 18:05:04 +0000 (18:05 +0000)]
fix race condition that can cause a use after free am: 59485525a6 am: 5da64c91d0 am: 46361c6c2b am: ee464e00d3 am: 21e9397776  -s ours
am: 1b81145396

Change-Id: I3038e41c1e4b64e397162fea3ddb80eab6374614

7 years agofix race condition that can cause a use after free am: 59485525a6 am: 5da64c91d0...
Mathias Agopian [Tue, 6 Jun 2017 17:59:02 +0000 (17:59 +0000)]
fix race condition that can cause a use after free am: 59485525a6 am: 5da64c91d0 am: 46361c6c2b am: ee464e00d3
am: 21e9397776  -s ours

Change-Id: If0f229ba54f2c9978ba83beca331896d1d303db4

7 years agofix race condition that can cause a use after free am: 59485525a6 am: 5da64c91d0...
Mathias Agopian [Tue, 6 Jun 2017 17:53:01 +0000 (17:53 +0000)]
fix race condition that can cause a use after free am: 59485525a6 am: 5da64c91d0 am: 46361c6c2b am: ee464e00d3
am: 21e9397776

Change-Id: Ifffa0ed1d960232754976ebb29b891ec99d62b75

7 years agofix race condition that can cause a use after free am: 59485525a6 am: 5da64c91d0...
Mathias Agopian [Tue, 6 Jun 2017 17:46:30 +0000 (17:46 +0000)]
fix race condition that can cause a use after free am: 59485525a6 am: 5da64c91d0 am: 46361c6c2b
am: ee464e00d3

Change-Id: Ifb22956eadae06f2ff6b0445d5e92e450c947942