OSDN Git Service

android-x86/frameworks-native.git
7 years agoMerge "Properly recover vr_wm from surface vr_flinger crashes."
TreeHugger Robot [Mon, 27 Mar 2017 14:00:29 +0000 (14:00 +0000)]
Merge "Properly recover vr_wm from surface vr_flinger crashes."

7 years agoMerge "Update native ColorSpace API for libhwui"
TreeHugger Robot [Mon, 27 Mar 2017 09:02:31 +0000 (09:02 +0000)]
Merge "Update native ColorSpace API for libhwui"

7 years agoUpdate native ColorSpace API for libhwui
Romain Guy [Mon, 27 Mar 2017 07:25:19 +0000 (00:25 -0700)]
Update native ColorSpace API for libhwui

Test: colorspace_test
Bug: 32984164
Change-Id: Id0728bfa90192173eb45c2d26a8b81ce970398d7

7 years agoProperly recover vr_wm from surface vr_flinger crashes.
Alex Sakhartchouk [Sun, 26 Mar 2017 02:22:16 +0000 (22:22 -0400)]
Properly recover vr_wm from surface vr_flinger crashes.

This is addressing a number of issues:

1) surface_flinger_view_ was incorrectly reset
on de-allocation, which renders vr_wm incapable of seeing
new frames after a crash.

2) dvrGraphicsWaitNextFrame will return -1 if vr_flinger
crashes, which means our graphics context is no longer valid.
We need to de-allocate resources and wait for SF to
reconnect.

3) Displays needed be be de-allocated on SF detach because
they will return incorrect fences on SF re-connect.

4) display_client_ needs to be allocated on demand instead
of at initialization time because vr_flinger crash
invalidates it.

Bug: 36589793
Test: Crash vr_flinger, observe vr_wm working after SF restarts.

Change-Id: I72a79690ee5224e3326c7c571ae4e23797103e6d

7 years agoThis test is used to check if the kernel scheduler
Howard Chen [Sat, 25 Mar 2017 09:12:59 +0000 (17:12 +0800)]
This test is used to check if the kernel scheduler

1. supports priority inheritance.
2. utilize the sync flag.

It also make statistic on average, best and worst latency
as well as number of deadline miss with a configurable
deadline specified in us.

The output is in json format hopefully to make it easy
to integrated with present test framework.

usage:

./schd-dbg                   # test and output json
./schd-dbg -i 1              # number of iterations
./schd-dbg -pair 4           # number of process pairs
./schd-dbg -deadline_us 2500 # deadline in us
./schd-dbg -v                # debug

Test: pixel
Change-Id: Idccf0d402dcd7b81c639020364b5ee32075e18cb

7 years agoMerge "libdvrcommon: Remove revision code."
John Muir [Fri, 24 Mar 2017 23:32:44 +0000 (23:32 +0000)]
Merge "libdvrcommon: Remove revision code."

7 years agolibdvrcommon: Remove revision code.
John Muir [Fri, 24 Mar 2017 21:43:39 +0000 (14:43 -0700)]
libdvrcommon: Remove revision code.

Move revision to libdvrplatform.

Bug: 36040117
Test: N/A.
Change-Id: I3f70509f9a694383bd7eb94173d5230bd8c66e51

7 years agoChecks hidl service and remove hidl call at dump
Peng Xu [Fri, 17 Mar 2017 19:20:27 +0000 (12:20 -0700)]
Checks hidl service and remove hidl call at dump

Two things:
  * check for hidl service availability before calling any hidl
    functions.
  * remove hidl dependency on dump to ensure dump will not cause
    crash due to hidl failure.

Bug: 36073404
Test: check sensor running after reboot
Test: check dumpsys sensorservice works normally.
Change-Id: I8626635a143a9f07f263f85d95ab16749ea1e452

7 years agoMerge "Revert "Quick fix to correctly handle empty file/channel handles.""
Alex Vakulenko [Fri, 24 Mar 2017 20:16:20 +0000 (20:16 +0000)]
Merge "Revert "Quick fix to correctly handle empty file/channel handles.""

7 years agoRevert "Quick fix to correctly handle empty file/channel handles."
Alex Vakulenko [Fri, 24 Mar 2017 15:53:50 +0000 (15:53 +0000)]
Revert "Quick fix to correctly handle empty file/channel handles."

This reverts commit e71fb7d2ab1118d30c5bec8a85114ac610844dc6.

This CL broke PDX unit tests

Bug: 36587839
Change-Id: I5b3cb857aacff337cb9a268a0415f8398303abe8

7 years agoMerge "media: mechanism to set/get vendor-extension configs for OMX component"
TreeHugger Robot [Fri, 24 Mar 2017 03:33:26 +0000 (03:33 +0000)]
Merge "media: mechanism to set/get vendor-extension configs for OMX component"

7 years agoMerge "Remove more EGL_ANDROID_create_native_client_buffer references"
TreeHugger Robot [Fri, 24 Mar 2017 02:39:10 +0000 (02:39 +0000)]
Merge "Remove more EGL_ANDROID_create_native_client_buffer references"

7 years agoRemove more EGL_ANDROID_create_native_client_buffer references
Craig Donner [Fri, 24 Mar 2017 00:55:35 +0000 (17:55 -0700)]
Remove more EGL_ANDROID_create_native_client_buffer references

Bug: 35101209
Test: build
Change-Id: I8709b9881f0133756e2cfcfad3819d4032cfb03e

7 years agoMerge "Implement an API for vrwm to query if the current vr app is active"
TreeHugger Robot [Thu, 23 Mar 2017 23:26:14 +0000 (23:26 +0000)]
Merge "Implement an API for vrwm to query if the current vr app is active"

7 years agobinder: remove cgroup interactions [ DO NOT MERGE ] am: 05f4679d03
Tim Murray [Thu, 23 Mar 2017 23:09:08 +0000 (23:09 +0000)]
binder: remove cgroup interactions [ DO NOT MERGE ] am: 05f4679d03
am: 400e9a72fd  -s ours

Change-Id: Ic31695b9c7a981341ab601638b68f0bb7ef99f28

7 years agobinder: remove cgroup interactions [ DO NOT MERGE ]
Tim Murray [Thu, 23 Mar 2017 23:02:25 +0000 (23:02 +0000)]
binder: remove cgroup interactions [ DO NOT MERGE ]
am: 05f4679d03

Change-Id: Idba2f747151fc50866fb470681e50ba64b28b2d0

7 years agoMerge "Revert "atrace: Make atrace notify VR services of new trace sessions""
TreeHugger Robot [Thu, 23 Mar 2017 22:54:01 +0000 (22:54 +0000)]
Merge "Revert "atrace: Make atrace notify VR services of new trace sessions""

7 years agoMerge "Fix typo in Region to avoid unexpected values" am: 2cbfb0cda6 am: 7fc294e10e
Fabien Sanglard [Thu, 23 Mar 2017 22:49:40 +0000 (22:49 +0000)]
Merge "Fix typo in Region to avoid unexpected values" am: 2cbfb0cda6 am: 7fc294e10e
am: 5288e22d00

Change-Id: Ib8095bd01becfacbbcecd0f4ec369ed933eff173

7 years agoMerge "Dumpstate: dump HAL native traces processes."
TreeHugger Robot [Thu, 23 Mar 2017 22:47:30 +0000 (22:47 +0000)]
Merge "Dumpstate: dump HAL native traces processes."

7 years agoMerge "Fix typo in Region to avoid unexpected values" am: 2cbfb0cda6
Fabien Sanglard [Thu, 23 Mar 2017 22:43:34 +0000 (22:43 +0000)]
Merge "Fix typo in Region to avoid unexpected values" am: 2cbfb0cda6
am: 7fc294e10e

Change-Id: I7feff39e1be80c69a744c4eefad835ba50796f4c

7 years agoMerge "Fix typo in Region to avoid unexpected values"
Fabien Sanglard [Thu, 23 Mar 2017 22:38:03 +0000 (22:38 +0000)]
Merge "Fix typo in Region to avoid unexpected values"
am: 2cbfb0cda6

Change-Id: I92a204fa492374c4c69a5d794d974b3cb8f454b3

7 years agoMerge "Fix typo in Region to avoid unexpected values"
Treehugger Robot [Thu, 23 Mar 2017 22:26:44 +0000 (22:26 +0000)]
Merge "Fix typo in Region to avoid unexpected values"

7 years agoImplement an API for vrwm to query if the current vr app is active
Albert Chaulk [Mon, 20 Mar 2017 17:03:39 +0000 (13:03 -0400)]
Implement an API for vrwm to query if the current vr app is active

The API returns if the client_order 0 layer is visible or not. This
aids in 2D app detection

Bug: None
Test: Manual with permissionsgen & calculator

Change-Id: Id988e61a9f93885e93c28ed83ffaffd84f3bdf15

7 years agoRevert "atrace: Make atrace notify VR services of new trace sessions"
John Reck [Thu, 23 Mar 2017 20:58:29 +0000 (20:58 +0000)]
Revert "atrace: Make atrace notify VR services of new trace sessions"

This reverts commit 213feb32c76bb4ed4262dad8c71f0377ee710fac.

Reason for revert: tracing & perf teams don't want to support PDX at this point in time.

Change-Id: I28b8a7c55c9d31c8469236fb60a6e034b1ef8af7

7 years agoMerge "Enable Universal Bandwidth Compression for textures"
Mark Urbanus [Thu, 23 Mar 2017 20:58:06 +0000 (20:58 +0000)]
Merge "Enable Universal Bandwidth Compression for textures"

7 years agoEnable Universal Bandwidth Compression for textures
Mark Urbanus [Wed, 22 Mar 2017 20:11:51 +0000 (13:11 -0700)]
Enable Universal Bandwidth Compression for textures

We removed texture compression for VR display surfaces, which introduced memory
bandwidth issues on some QC platforms.

This patch reintroduces texture compression for QC devices compatible with
both gralloc0/gralloc1 implementations.

Bug: 36370337
Test: Validate VR comes up
Change-Id: Ieaaa56f67522c85913476ed0d8da04f8eedbce63

7 years agoDumpstate: dump HAL native traces processes.
Steven Moreland [Wed, 22 Mar 2017 01:38:05 +0000 (18:38 -0700)]
Dumpstate: dump HAL native traces processes.

Test: hal service dumps in data/anr/bugreport-traces.txt after bugreport
Bug: 36414311
Change-Id: Ifca491d02f77bf4fb26450f06c2ea02769475786

7 years agomedia: mechanism to set/get vendor-extension configs for OMX component
Lajos Molnar [Fri, 17 Mar 2017 14:49:45 +0000 (07:49 -0700)]
media: mechanism to set/get vendor-extension configs for OMX component

Add OMX_CONFIG_ANDROID_VENDOR_EXTENSIONTYPE and
OMX_CONFIG_ANDROID_VENDOR_PARAMTYPE.

Android vendor extensions for OMX components have a name and one or
more parameter values - each with a string key - that are set together.
Support for not-set values is provided for vendor extensions in order
to not suddenly confuse applications with format keys that they were
not expecting.

Bug: 32746650
Change-Id: I21aad4a82d509fe2466764f65ee9e3b2d32f0842

7 years agoMerge "Re-add access of DisplayClient from vr_rm"
TreeHugger Robot [Thu, 23 Mar 2017 18:01:59 +0000 (18:01 +0000)]
Merge "Re-add access of DisplayClient from vr_rm"

7 years agoRe-add access of DisplayClient from vr_rm
Stephen Kiazyk [Wed, 22 Mar 2017 20:27:43 +0000 (13:27 -0700)]
Re-add access of DisplayClient from vr_rm

This was removed in a previous commit because it relied on an in-flight
CL that had not yet landed. Now that it has landed, the change is back
in.

Bug: 36139334
Test: Compile and run VR app, confirm that touch region is correct
      through hierarchy viewer.

Change-Id: I4ecc5e050fd896ba7442eac8b3a4e0b793915ed7

7 years agobinder: remove cgroup interactions [ DO NOT MERGE ]
Tim Murray [Tue, 7 Mar 2017 17:31:09 +0000 (09:31 -0800)]
binder: remove cgroup interactions [ DO NOT MERGE ]

Having binder change cgroups on the fly is too expensive in the common case to be useful.

Test: builds

bug 34825105

Change-Id: Ia692c9d2ab261d852cb2fac8f27d6779d0e2b057

7 years agoMerge "Check board config for wide-color color spaces"
Courtney Goeltzenleuchter [Thu, 23 Mar 2017 16:04:18 +0000 (16:04 +0000)]
Merge "Check board config for wide-color color spaces"

7 years agoMerge "VR: Add dvr API for service apps connecting to VR HWC"
TreeHugger Robot [Thu, 23 Mar 2017 16:04:02 +0000 (16:04 +0000)]
Merge "VR: Add dvr API for service apps connecting to VR HWC"

7 years agoCheck board config for wide-color color spaces
Courtney Goeltzenleuchter [Fri, 17 Mar 2017 22:16:48 +0000 (16:16 -0600)]
Check board config for wide-color color spaces

Check that board config allows wide-color color
spaces.
Test: make tests in libs/gui/tests/
Test: adb sync
Test: adb shell /data/nativetest/libgui_test/libgui_test --gtest_filter="SurfaceTest.GetWideColorSupport"

bug #35996305

Change-Id: Ia5b8116bc25befb6491e72e67cd8ed3c90ca5698

7 years agoMerge "Quick fix to correctly handle empty file/channel handles."
TreeHugger Robot [Thu, 23 Mar 2017 15:44:14 +0000 (15:44 +0000)]
Merge "Quick fix to correctly handle empty file/channel handles."

7 years agoMerge "libpdx: Remove superfluous DispatchRemoteMethod overloads."
TreeHugger Robot [Thu, 23 Mar 2017 15:42:22 +0000 (15:42 +0000)]
Merge "libpdx: Remove superfluous DispatchRemoteMethod overloads."

7 years agoAdd notification_title and notification_description to dumpstate
Naveen Kalla [Fri, 17 Mar 2017 01:17:25 +0000 (18:17 -0700)]
Add notification_title and notification_description to dumpstate

Initiator of dumpstate can set dumpstate.options.title and
dumpstate.options.description properties to notify dumpstate the details
that will be used to file a bug. dumpstate will send this information
along with the BUGREPORT_FINISHED intent.

Bug: 33561517
Test: Use the new API to invoke bugreport from TelephonyMonitor and
      ensure that the bugreport is taken and title and description are
      updated properly in the notification. Run dumpstate and
      BugreportReceiver unit tests

Change-Id: Ia23a3ef4d5751be14f347ac38ef7c8a18f79799d

7 years agoMerge "Follow "atomic" to "group" refactoring."
TreeHugger Robot [Thu, 23 Mar 2017 06:04:44 +0000 (06:04 +0000)]
Merge "Follow "atomic" to "group" refactoring."

7 years agoMerge "lshal: --init-vintf exclude system hals" am: 8db626d2f3 am: 34206360f2
Steven Moreland [Thu, 23 Mar 2017 04:00:59 +0000 (04:00 +0000)]
Merge "lshal: --init-vintf exclude system hals" am: 8db626d2f3 am: 34206360f2
am: d1b6b40adb

Change-Id: Ie2d28a374a3fb18d969783394b80b3a0d6fe0869

7 years agoMerge "lshal: --init-vintf exclude system hals" am: 8db626d2f3
Steven Moreland [Thu, 23 Mar 2017 03:58:27 +0000 (03:58 +0000)]
Merge "lshal: --init-vintf exclude system hals" am: 8db626d2f3
am: 34206360f2

Change-Id: I21d0b37f6942204c748017e03e8c9a0e892a39dc

7 years agoMerge "lshal: --init-vintf exclude system hals"
Steven Moreland [Thu, 23 Mar 2017 03:55:27 +0000 (03:55 +0000)]
Merge "lshal: --init-vintf exclude system hals"
am: 8db626d2f3

Change-Id: Ibe4636eb13c9439d09f51948ca49921a1e209747

7 years agoMerge "lshal: --init-vintf exclude system hals"
Treehugger Robot [Thu, 23 Mar 2017 03:47:57 +0000 (03:47 +0000)]
Merge "lshal: --init-vintf exclude system hals"

7 years agoMerge "Fix BlockUntilVSync() to actually block"
TreeHugger Robot [Thu, 23 Mar 2017 03:34:08 +0000 (03:34 +0000)]
Merge "Fix BlockUntilVSync() to actually block"

7 years agoFollow "atomic" to "group" refactoring.
Jeff Sharkey [Thu, 23 Mar 2017 03:27:40 +0000 (21:27 -0600)]
Follow "atomic" to "group" refactoring.

Remove noisy logging about UIDs that are relying on default cache
quota of 64MiB.

Move away from yucky old statfs() and use statvfs() instead.

Test: /data/nativetest/installd_cache_test/installd_cache_test
Bug: 358128993568496936482620
Change-Id: I3d68da97eac2ebcda489bdf9d27061cac5b3f7cc

7 years agoMerge "SurfaceFlinger: Missed changes in HWC1. Fix build error."
Rob Carr [Thu, 23 Mar 2017 02:35:00 +0000 (02:35 +0000)]
Merge "SurfaceFlinger: Missed changes in HWC1. Fix build error."

7 years agolshal: --init-vintf exclude system hals
Steven Moreland [Wed, 22 Mar 2017 21:22:55 +0000 (14:22 -0700)]
lshal: --init-vintf exclude system hals

--init-vintf is provided for convenience so that vendors can initialize
their vendor interface. Excluding system hals so that they aren't
included in the default vintf file that is generated. They are
maintained manually.

Test: Verified frameworks hals are no longer visible in init-vintf.
Bug: 34772739
Change-Id: Ie40c384334affcb3abee063d58000b808f04e234

7 years agoFix BlockUntilVSync() to actually block
Steven Thomas [Thu, 23 Mar 2017 01:45:31 +0000 (18:45 -0700)]
Fix BlockUntilVSync() to actually block

In my refactoring in ag/2008740 I introduced a regression where blocking
until the next vsync would busy loop instead of actually blocking on an
event on the vsync fd. The problem was I changed the poll() call to
listen for POLLIN in addition to POLLPRI. While waiting for vsync events
we only want to listen for POLLPRI.

Bug: 36495351

Test: Confirmed with debug logs the busy loop bug and that we correctly
block with this patch applied.

Change-Id: Iec4951e014575a5d0ed3cfe3fc20ea91c67edf1b

7 years agoSurfaceFlinger: Missed changes in HWC1. Fix build error.
Robert Carr [Thu, 23 Mar 2017 01:23:23 +0000 (18:23 -0700)]
SurfaceFlinger: Missed changes in HWC1. Fix build error.

Apparently HWC1 isn't in presubmit anymore.

Test: Manual
Change-Id: Id173d71be62b8a3c888943c57c0ae0ec511bc94b

7 years agoMerge "dumpstate: Remove FWDUMP_bcmdhd support" am: 86388dbc9a am: 2d71f97dfb
Dmitry Shmidt [Thu, 23 Mar 2017 01:22:17 +0000 (01:22 +0000)]
Merge "dumpstate: Remove FWDUMP_bcmdhd support" am: 86388dbc9a am: 2d71f97dfb
am: b09149f6ec  -s ours

Change-Id: Iba7447b4f5eb32cbdd480b69fcc369d1ee1a3e3f

7 years agoMerge "batteryservice: add scheduleUpdate binder method" am: e007716bc4 am: 799bb3501a
Adam Lesinski [Thu, 23 Mar 2017 01:12:09 +0000 (01:12 +0000)]
Merge "batteryservice: add scheduleUpdate binder method" am: e007716bc4 am: 799bb3501a
am: cd1d8c6b10

Change-Id: I6fcf1788701a7b3c9e481a2bdfbdd352cf24d598

7 years agoMerge "dumpstate: Remove FWDUMP_bcmdhd support" am: 86388dbc9a
Dmitry Shmidt [Thu, 23 Mar 2017 01:09:37 +0000 (01:09 +0000)]
Merge "dumpstate: Remove FWDUMP_bcmdhd support" am: 86388dbc9a
am: 2d71f97dfb

Change-Id: I1e3a7ae0e7855a8003f463586d368a81ad89be5f

7 years agoMerge "batteryservice: add scheduleUpdate binder method" am: e007716bc4
Adam Lesinski [Thu, 23 Mar 2017 01:03:08 +0000 (01:03 +0000)]
Merge "batteryservice: add scheduleUpdate binder method" am: e007716bc4
am: 799bb3501a

Change-Id: Ia1ef3d769c453bc58cc52b93df5d6f03e601d23e

7 years agoMerge "dumpstate: Remove FWDUMP_bcmdhd support"
Dmitry Shmidt [Thu, 23 Mar 2017 00:52:59 +0000 (00:52 +0000)]
Merge "dumpstate: Remove FWDUMP_bcmdhd support"
am: 86388dbc9a

Change-Id: Iadf37acb012f762919567354a7aede95f81b9eff

7 years agoMerge "batteryservice: add scheduleUpdate binder method"
Adam Lesinski [Thu, 23 Mar 2017 00:48:42 +0000 (00:48 +0000)]
Merge "batteryservice: add scheduleUpdate binder method"
am: e007716bc4

Change-Id: I8565c0502c3838d74fcd09ec75677e65cf85a0a9

7 years agoMerge "dumpstate: Remove FWDUMP_bcmdhd support"
Dmitry Shmidt [Thu, 23 Mar 2017 00:47:47 +0000 (00:47 +0000)]
Merge "dumpstate: Remove FWDUMP_bcmdhd support"

7 years agoMerge "batteryservice: add scheduleUpdate binder method"
Treehugger Robot [Wed, 22 Mar 2017 23:53:59 +0000 (23:53 +0000)]
Merge "batteryservice: add scheduleUpdate binder method"

7 years agoMerge "BQ: Resend queued buffer handles after disconnect"
TreeHugger Robot [Wed, 22 Mar 2017 23:51:07 +0000 (23:51 +0000)]
Merge "BQ: Resend queued buffer handles after disconnect"

7 years agoMerge changes Ic8309518,If3199d7c,Ie4d32162
Rob Carr [Wed, 22 Mar 2017 23:44:12 +0000 (23:44 +0000)]
Merge changes Ic8309518,If3199d7c,Ie4d32162

* changes:
  SurfaceFlinger: Inherit Alpha for child surfaces.
  Add SurfaceFlinger test filter for presubmit.
  Include finalCrop in setGeometryAppliesWithResize.

7 years agoMerge "vrwm: Add 2D Mode + control app change"
TreeHugger Robot [Wed, 22 Mar 2017 23:28:46 +0000 (23:28 +0000)]
Merge "vrwm: Add 2D Mode + control app change"

7 years agoMerge "dumpstate: Remove FWDUMP_bcmdhd support"
TreeHugger Robot [Wed, 22 Mar 2017 22:57:38 +0000 (22:57 +0000)]
Merge "dumpstate: Remove FWDUMP_bcmdhd support"

7 years agoMerge changes from topic 'vendorbinder'
Martijn Coenen [Wed, 22 Mar 2017 22:14:05 +0000 (22:14 +0000)]
Merge changes from topic 'vendorbinder'

* changes:
  Add vndservicemanager.
  Allow ProcessState to use another binder dev node.

7 years agoMerge "Reduce vr_wm logging."
TreeHugger Robot [Wed, 22 Mar 2017 21:54:19 +0000 (21:54 +0000)]
Merge "Reduce vr_wm logging."

7 years agovrwm: Add 2D Mode + control app change
Albert Chaulk [Tue, 21 Mar 2017 21:27:53 +0000 (17:27 -0400)]
vrwm: Add 2D Mode + control app change

2D mode is similar to debug mode in that it will always show the
application layer if it exists, but unlike debug mode will strip any
system layers from the output and will attempt to recognize the VR
layers. The virtual display is always in 2D mode as it can only show
2D apps. The primary display can be switched by vr_wm_ctl

Bug: None
Test: Manual with permissionsgen and launching calculator app
Change-Id: I38d025c457b1fca9aeb47cb94ed481ac9ff084f9

7 years agoBQ: Resend queued buffer handles after disconnect
Dan Stoza [Tue, 21 Mar 2017 20:43:22 +0000 (13:43 -0700)]
BQ: Resend queued buffer handles after disconnect

When the producer disconnects from a BufferQueue, all of its slots are
cleared and buffers in the queue are marked as stale. When the slots
are cleared, we notify the consumer that buffers were released so that
it can clear its cache of slot-to-buffer mappings.

However, when we were marking queued buffers as stale, we were not
clearing the bit that dictates whether the BQ needs to send a buffer
handle upon acquire, so in the case where the producer queues a buffer
and disconnects, and then the consumer acquires that queued buffer,
the consumer doesn't get the buffer handle, nor can it retrieve it from
its cache, because it has (or should have) already cleared it.

This change clears that bit upon disconnect.

Bug: 36453246
Test: New test in libgui_tests + Vulkan CTS test from bug
Change-Id: Ic27f119a4164878257c3841b4e1d421694159774

7 years agoSurfaceFlinger: Inherit Alpha for child surfaces.
Robert Carr [Tue, 21 Mar 2017 17:41:29 +0000 (10:41 -0700)]
SurfaceFlinger: Inherit Alpha for child surfaces.

Necessary for various animations to work correctly and
for the general goal of treating child surfaces like
pixels in the parent surface.

Test: Includes new test in SurfaceFlinger_test
Bug: None yet ;)
Change-Id: Ic8309518bd327bbba6ad2f79f265e24cf37898e7

7 years agoAdd SurfaceFlinger test filter for presubmit.
Robert Carr [Tue, 21 Mar 2017 05:27:31 +0000 (22:27 -0700)]
Add SurfaceFlinger test filter for presubmit.

HWC2 tests and SurfaceInterceptor tests aren't yet passing. See
second attached bug for more context on test filters for pre-submit.

Test: Verify Surfaceflinger_test.filter appears in output folder after build.
Bug: 36117490
Bug: 36359778
Change-Id: If3199d7c005722c235f065766f2961e2ed2d6e0d

7 years agoInclude finalCrop in setGeometryAppliesWithResize.
Robert Carr [Thu, 16 Mar 2017 22:41:03 +0000 (15:41 -0700)]
Include finalCrop in setGeometryAppliesWithResize.

A refresher on this archaic function. Normally window crop and
position apply immediately. This is so the window manager can always
crop surfaces (e.g. while docked resizing) even if the app is lagging
behind. In some cases though the apps position or cropping may depend
on whether the resize has occured or not. For example when an app
gains shadows, we need to move expand the Surface and move it by a
negative offset for the content to remain in the same place. This
movement needs to be synchronized with the buffer latching for the
expansion.

We implemented setGeometryAppliesWithResize to take care of this. At
the time it wasn't clear if it was needed for finalCrop so we let it
be. Now that we are exclusively using final crop in the pinned stack
however it is required. The same way we have an issue with position
and shadows, we have an issue with expanding the crop rect (we may
have actually been cropping out part of a larger surface that is now
supposed to be shadows).

Also includes a test suite for setGeometryAppliesWithResize behavior
which was previously untested.

Bug: 35396882
Test: SurfaceFlinger_test
Change-Id: Ie4d32162eb21154496bb231161692d18341a1e1e

7 years agoMerge "Fix virtual touchpad re-attachment."
TreeHugger Robot [Wed, 22 Mar 2017 20:30:35 +0000 (20:30 +0000)]
Merge "Fix virtual touchpad re-attachment."

7 years agoMerge "Fix janky pose"
Jiwen Cai [Wed, 22 Mar 2017 20:26:47 +0000 (20:26 +0000)]
Merge "Fix janky pose"

7 years agoMerge "VR: Add VR Hardware Composer Service"
TreeHugger Robot [Wed, 22 Mar 2017 20:25:44 +0000 (20:25 +0000)]
Merge "VR: Add VR Hardware Composer Service"

7 years agoReduce vr_wm logging.
Kevin Schoedel [Wed, 22 Mar 2017 20:24:00 +0000 (16:24 -0400)]
Reduce vr_wm logging.

Controller events ALOGI -> ALOGV.

Change-Id: I942b6b88cc9f3fe35efcb1e3c1ce0c478d1281e1
Test: manual

7 years agodumpstate: Remove FWDUMP_bcmdhd support
Dmitry Shmidt [Wed, 22 Mar 2017 20:24:21 +0000 (13:24 -0700)]
dumpstate: Remove FWDUMP_bcmdhd support

Bug: 35983944
Test: Manual

Change-Id: I4fe1c5d755940d84967d0bd1270ab86638e0311a
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
7 years agobatteryservice: add scheduleUpdate binder method
Adam Lesinski [Thu, 16 Feb 2017 02:45:23 +0000 (18:45 -0800)]
batteryservice: add scheduleUpdate binder method

Allows a caller to force an update to occur, instead of waiting
for an event or timer timeout.
Test: None (interface change)
Bug: 32645990

Change-Id: I1c94f1bed34d5f4cfe8e7d50cca4e5391dac2d62

7 years agoMerge "Use max acquired buffer setting to configStore"
TreeHugger Robot [Wed, 22 Mar 2017 18:51:30 +0000 (18:51 +0000)]
Merge "Use max acquired buffer setting to configStore"

7 years agoQuick fix to correctly handle empty file/channel handles.
Corey Tabaka [Wed, 22 Mar 2017 18:50:58 +0000 (11:50 -0700)]
Quick fix to correctly handle empty file/channel handles.

Empty file/channel handles (value < 0) should result in a negative
FileReference/ChannelReference value. The original code incorrectly
interpreted the negative reference value as an error, causing errno
to be returned. In most cases errno is 0, leading to confusion
across the wire when the deserialization logic attempts to lookup an
invalid, but non-empty reference.

Bug: None
Test: bufferhub_tests passes
Change-Id: I664daf3cdc178fe2c4ca0c44eef35a8bb9c7310d

7 years agolibpdx: Remove superfluous DispatchRemoteMethod overloads.
Corey Tabaka [Tue, 21 Mar 2017 04:34:52 +0000 (21:34 -0700)]
libpdx: Remove superfluous DispatchRemoteMethod overloads.

The introduction of RemoteMethodReturn<>() properly handles the
differences between most of these overloads. Remove the ones that
are now obsolete in favor of the generic version.

Bug: None
Test: make -j30
Change-Id: I23e63431e9f668c324b408707ce65e7d6aee69c8

7 years agoMerge "Fully strip META state during event rewrite"
Evan Rosky [Wed, 22 Mar 2017 18:46:40 +0000 (18:46 +0000)]
Merge "Fully strip META state during event rewrite"

7 years agodumpstate: Remove FWDUMP_bcmdhd support
Dmitry Shmidt [Wed, 22 Mar 2017 18:40:01 +0000 (11:40 -0700)]
dumpstate: Remove FWDUMP_bcmdhd support

Bug: 35983944
Test: Manual

Change-Id: Ia527bbe950b0f569a07e68805684d11ba2f71c66
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
7 years agoAdd vndservicemanager.
Martijn Coenen [Tue, 21 Mar 2017 17:00:38 +0000 (10:00 -0700)]
Add vndservicemanager.

vndservicemanager is the context manager for
binder services that are exclusively used from
the vendor binder domain, "/dev/vndbinder";
these services can only be registered and accessed
by vendor processes.

To facilitate code re-use, vndservicemanager
is just framework servicemanager accessing the
vendor binder devnode.

Bug: 36052864
Test: modified binder_test to use /dev/vndbinder

Change-Id: Iac19a1180321a5be78d7be5ceb4ba211c593dc47

7 years agoMerge "Replace 'cpuset' init option with 'writepid'"
TreeHugger Robot [Wed, 22 Mar 2017 17:39:40 +0000 (17:39 +0000)]
Merge "Replace 'cpuset' init option with 'writepid'"

7 years agoVR: Add dvr API for service apps connecting to VR HWC
Daniel Nicoara [Thu, 16 Mar 2017 21:22:46 +0000 (17:22 -0400)]
VR: Add dvr API for service apps connecting to VR HWC

Bug: 36050795
Test: Compiled
Change-Id: I447fe56f7585ed3774bdc3577389d1f9b8281e7c

7 years agoVR: Add VR Hardware Composer Service
Daniel Nicoara [Thu, 9 Mar 2017 20:10:26 +0000 (15:10 -0500)]
VR: Add VR Hardware Composer Service

Create a separate service with serves the binderized HWComposer
implementation for VR.

Exposes a binder service which VrCore may connect in order to receive
SurfaceFlinger output.

Bug: 36051907
Test: Compiled and ran unittests
Change-Id: I16ec08d32ba0445ac982fc235e59bc3129e03096

7 years agoFix virtual touchpad re-attachment.
Kevin Schoedel [Wed, 22 Mar 2017 17:33:32 +0000 (13:33 -0400)]
Fix virtual touchpad re-attachment.

If the client crashes without detaching the virtual touchpad
and a new instance reconnects, it should take over the existing
device without attempting to configure it again.

Bug: 36051900
Test: no
Change-Id: I446f1bc7cb9c08f914b9bfc653857a97fdc7839c

7 years agoFix janky pose
Jiwen 'Steve' Cai [Tue, 21 Mar 2017 22:43:31 +0000 (15:43 -0700)]
Fix janky pose

It's introduced through ag/1980993, where render_buffer_index_ was not
managed after the refactor.

Bug: 36194745
Test: Build and flash, pose is no longer janky.
Change-Id: I6ef86625dbc1c1afd2725614062f5e40e1b7f60a

7 years agoMerge "Remove mediacodec from native_processes_to_dump."
TreeHugger Robot [Wed, 22 Mar 2017 06:15:34 +0000 (06:15 +0000)]
Merge "Remove mediacodec from native_processes_to_dump."

7 years agoRemove mediacodec from native_processes_to_dump.
Pawin Vongmasa [Tue, 28 Feb 2017 04:36:47 +0000 (20:36 -0800)]
Remove mediacodec from native_processes_to_dump.

Test: Camera, Photos, YouTube, and Play Movies apps.
Bug: 35328855
Change-Id: I098fe262e414822419c1e08e5f891e8e2b13cdc9

7 years agoFully strip META state during event rewrite
Evan Rosky [Wed, 22 Mar 2017 01:12:36 +0000 (18:12 -0700)]
Fully strip META state during event rewrite

Bug: 36288555
Test: Logged keys coming into PhoneWindowManager to verify that
      meta state is stripped.

Change-Id: If51210517845464de185997f7c71a3888ee6af56

7 years agoMerge "Update re hwservicemanager debugDump semantics." am: ed2debbb47 am: eec11e4cf5
Steven Moreland [Wed, 22 Mar 2017 00:38:57 +0000 (00:38 +0000)]
Merge "Update re hwservicemanager debugDump semantics." am: ed2debbb47 am: eec11e4cf5
am: 1cf95ad88a

Change-Id: Ieb69025cf922fbcc4e838c88d8701c8a8a5abfb7

7 years agoMerge "binder: remove cgroup interactions" am: c12c6dca4e am: 62f07e540f
Tim Murray [Wed, 22 Mar 2017 00:34:24 +0000 (00:34 +0000)]
Merge "binder: remove cgroup interactions" am: c12c6dca4e am: 62f07e540f
am: bcb3d7fd03

Change-Id: I860e9a7565870681f2cf841a7f866b9ca22e3f22

7 years agoMerge "Add system feature for Companion Device Manager"
Eugene Susla [Tue, 21 Mar 2017 23:58:29 +0000 (23:58 +0000)]
Merge "Add system feature for Companion Device Manager"

7 years agoAllow ProcessState to use another binder dev node.
Martijn Coenen [Tue, 21 Mar 2017 22:56:40 +0000 (15:56 -0700)]
Allow ProcessState to use another binder dev node.

Since we have different binder domains at different
/dev nodes now, processes using libbinder must be able
to select which /dev node they want to use. This is
achieved with a new ProcessState::initWithDriver() API,
which takes the /dev node to talk to as an argument.

Bug: 36052864
Test: system boots without issues
Change-Id: I5b3b13decf254ca0957665c91abac4b287e448c4

7 years agoUse max acquired buffer setting to configStore
Fabien Sanglard [Fri, 10 Mar 2017 22:50:03 +0000 (14:50 -0800)]
Use max acquired buffer setting to configStore

Change-Id: I48454243bcac12f5a83d080cd9115686f9f728ca

7 years agoMerge "Update re hwservicemanager debugDump semantics." am: ed2debbb47
Steven Moreland [Tue, 21 Mar 2017 22:52:25 +0000 (22:52 +0000)]
Merge "Update re hwservicemanager debugDump semantics." am: ed2debbb47
am: eec11e4cf5

Change-Id: Ib6813604432530b9e09c1848f89d12dabd348b20

7 years agoMerge "Update re hwservicemanager debugDump semantics."
Steven Moreland [Tue, 21 Mar 2017 22:47:56 +0000 (22:47 +0000)]
Merge "Update re hwservicemanager debugDump semantics."
am: ed2debbb47

Change-Id: Ibcac4fabedc0f3a1b310d02510785e4c46261a3b

7 years agoMerge "Update re hwservicemanager debugDump semantics."
Treehugger Robot [Tue, 21 Mar 2017 22:42:44 +0000 (22:42 +0000)]
Merge "Update re hwservicemanager debugDump semantics."

7 years agoMerge "binder: remove cgroup interactions" am: c12c6dca4e
Tim Murray [Tue, 21 Mar 2017 22:25:35 +0000 (22:25 +0000)]
Merge "binder: remove cgroup interactions" am: c12c6dca4e
am: 62f07e540f

Change-Id: I2d52ec71454f41500fb1fd2963b34984cfeb2e7d

7 years agoMerge "Revert "Revert "Tie vr flinger to persistent vr mode"""
Steven Thomas [Tue, 21 Mar 2017 22:24:52 +0000 (22:24 +0000)]
Merge "Revert "Revert "Tie vr flinger to persistent vr mode"""

7 years agoMerge "binder: remove cgroup interactions"
Tim Murray [Tue, 21 Mar 2017 22:17:50 +0000 (22:17 +0000)]
Merge "binder: remove cgroup interactions"
am: c12c6dca4e

Change-Id: I98cba352689749b2f5f4306453985dad83b98ed8

7 years agoAdd system feature for Companion Device Manager
Eugene Susla [Sat, 11 Mar 2017 00:50:50 +0000 (16:50 -0800)]
Add system feature for Companion Device Manager

Bug: 30932767
Test: Add just the feature gating first, ensure Context#getSystemSetrvice now
returns null.
Add feature in the configuration files, ensure companion device feature works again.
Change-Id: I4ad2d52f7877eae0e951f43ddbb23881d5de8d8b

7 years agoMerge "binder: remove cgroup interactions"
Treehugger Robot [Tue, 21 Mar 2017 22:09:50 +0000 (22:09 +0000)]
Merge "binder: remove cgroup interactions"