OSDN Git Service
Jiyong Park [Wed, 21 Jun 2017 00:56:00 +0000 (00:56 +0000)]
Merge "Move include/binder to libs/binder/include" am:
d46d9f1243 am:
b212140bbf -s ours am:
7f683a8b8f -s ours
am:
77e8c55ce5 -s ours
Change-Id: I172720eef8bc8f6a61a64bdf5b7550e148b14e26
Jiyong Park [Wed, 21 Jun 2017 00:50:46 +0000 (00:50 +0000)]
Merge "Move include/binder to libs/binder/include" am:
d46d9f1243 am:
b212140bbf -s ours
am:
7f683a8b8f -s ours
Change-Id: I0a02efc1cac647857ba32235fac2c160d7dcb8db
Jiyong Park [Wed, 21 Jun 2017 00:44:55 +0000 (00:44 +0000)]
Merge "Move include/binder to libs/binder/include" am:
d46d9f1243
am:
b212140bbf -s ours
Change-Id: If344d9c14b3cf767956d55e0dd5d13b5a700c7a4
Jiyong Park [Wed, 21 Jun 2017 00:40:25 +0000 (00:40 +0000)]
Merge "Move include/binder to libs/binder/include"
am:
d46d9f1243
Change-Id: I41744e18ca3731b3027cb459b97945270a4d94ef
Treehugger Robot [Wed, 21 Jun 2017 00:27:49 +0000 (00:27 +0000)]
Merge "Move include/binder to libs/binder/include"
TreeHugger Robot [Wed, 21 Jun 2017 00:20:28 +0000 (00:20 +0000)]
Merge "Remove backpressure ALOG"
TreeHugger Robot [Tue, 20 Jun 2017 23:55:27 +0000 (23:55 +0000)]
Merge "Clean up possible null dereference warning."
TreeHugger Robot [Tue, 20 Jun 2017 23:31:01 +0000 (23:31 +0000)]
Merge "Reduce number of Fence syscalls made."
Fabien Sanglard [Tue, 20 Jun 2017 22:38:21 +0000 (15:38 -0700)]
Remove backpressure ALOG
The backpressure ALOG was needed to troubleshoot fence not signaling
while we worked on libhwc2on1adapter. Since these issues have been
resolved we don't need the log anymore.
Test: Manual
Change-Id: I29b2aa36f27f93d93ef14f1746d8c2f03101fc33
Chia-I Wu [Tue, 20 Jun 2017 20:52:49 +0000 (20:52 +0000)]
Merge "Merge "surfaceflinger: fix a potential child layer leak" into oc-dev am:
1b02b6329e am:
989ed5c4c1" into oc-dr1-dev-plus-aosp
am:
e58386a897
Change-Id: Ide20da61903dce4396a88a56c79ba34044354157
Chia-I Wu [Tue, 20 Jun 2017 20:52:22 +0000 (20:52 +0000)]
Merge "surfaceflinger: fix a potential child layer leak" into oc-dev am:
1b02b6329e am:
4d5cc90559
am:
4a96718e3e
Change-Id: Ia92eb6fb96ff972d1398eb6790a040fa6b42bec1
Android Build Merger (Role) [Tue, 20 Jun 2017 20:33:20 +0000 (20:33 +0000)]
Merge "Merge "surfaceflinger: fix a potential child layer leak" into oc-dev am:
1b02b6329e am:
989ed5c4c1" into oc-dr1-dev-plus-aosp
Chia-I Wu [Tue, 20 Jun 2017 20:32:59 +0000 (20:32 +0000)]
Merge "surfaceflinger: fix a potential child layer leak" into oc-dev am:
1b02b6329e
am:
989ed5c4c1
Change-Id: I1255ff4ef6234b61996e6f7c8dfb86c890e4268e
Chia-I Wu [Tue, 20 Jun 2017 20:32:58 +0000 (20:32 +0000)]
Merge "surfaceflinger: fix a potential child layer leak" into oc-dev am:
1b02b6329e
am:
4d5cc90559
Change-Id: Ib956b914044fee1941ef966bbf96c151bbbcf6a4
Chia-I Wu [Tue, 20 Jun 2017 20:28:58 +0000 (20:28 +0000)]
Merge "surfaceflinger: fix a potential child layer leak" into oc-dev
am:
1b02b6329e
Change-Id: I3548aaa0a071f5b1009c5b1070405a09d7841095
Chia-I Wu [Tue, 20 Jun 2017 20:28:58 +0000 (20:28 +0000)]
Merge "surfaceflinger: fix a potential child layer leak" into oc-dev
am:
1b02b6329e
Change-Id: Ie2bd5a6d1d37bb5b7c7b679b8c472389ff619188
TreeHugger Robot [Tue, 20 Jun 2017 20:15:29 +0000 (20:15 +0000)]
Merge "surfaceflinger: fix a potential child layer leak" into oc-dev
Brian Anderson [Fri, 26 May 2017 23:23:54 +0000 (16:23 -0700)]
Reduce number of Fence syscalls made.
This patch saves 6 or more Fence syscalls per frame.
* Timelines are updated just before adding a new fence
since the newly added fence is unlikely to have signaled.
* Layer::latch uses a FenceTime now, so the signal time is
automatically shared with other owners of the FenceTime.
* DispSync uses FenceTime now, only using cached values of
the signal time that have been populated by a Timeline.
Test: SurfaceFlinger boots and dumps still work.
Change-Id: Ie0cfc1af2aca143dd8d5f08f08dbe1e597376f2f
Yifan Hong [Tue, 20 Jun 2017 05:05:10 +0000 (05:05 +0000)]
Merge "Fix minor version bump reflected in lshal --init-vintf" am:
ac6575097d am:
99065302ed am:
cf64ff00ea -s ours
am:
e787161e19 -s ours
Change-Id: Id28857bc67fcd6100d4a895cef086c5da64fc555
Yifan Hong [Tue, 20 Jun 2017 04:58:16 +0000 (04:58 +0000)]
Merge "Fix minor version bump reflected in lshal --init-vintf" am:
ac6575097d am:
99065302ed
am:
cf64ff00ea -s ours
Change-Id: I9811de0500a5d5172744c962549524416c3183e3
Yifan Hong [Tue, 20 Jun 2017 04:52:23 +0000 (04:52 +0000)]
Merge "Fix minor version bump reflected in lshal --init-vintf" am:
ac6575097d
am:
99065302ed
Change-Id: Ic2a1f895312dee90e9e0eaf691edb48df4897c4e
Yifan Hong [Tue, 20 Jun 2017 01:10:56 +0000 (01:10 +0000)]
Merge "Fix minor version bump reflected in lshal --init-vintf"
am:
ac6575097d
Change-Id: I05dafdba2c7f302dc6200bd2d274e30a33f77de7
Treehugger Robot [Tue, 20 Jun 2017 01:06:52 +0000 (01:06 +0000)]
Merge "Fix minor version bump reflected in lshal --init-vintf"
Yifan Hong [Tue, 20 Jun 2017 01:04:17 +0000 (01:04 +0000)]
Fix minor version bump reflected in lshal --init-vintf am:
e86f70b474
am:
cab805aa80
Change-Id: Idf92e510713e438f8a649e411eecbb4e61715eee
Yifan Hong [Tue, 20 Jun 2017 01:02:46 +0000 (01:02 +0000)]
Fix minor version bump reflected in lshal --init-vintf
am:
e86f70b474
Change-Id: Id573ba5c3b436249a5f407e575a01a61e7985e62
Yifan Hong [Mon, 19 Jun 2017 23:40:49 +0000 (23:40 +0000)]
Merge "Fix incorrect bitness for lshal --init-vintf" am:
e162a97703 am:
126eee4d14 am:
c77bc022f7 -s ours
am:
1987126c27 -s ours
Change-Id: I049166d7bf1102a9b9af79b07598cfe5bb25eece
Yifan Hong [Mon, 19 Jun 2017 23:23:24 +0000 (23:23 +0000)]
Merge "Fix incorrect bitness for lshal --init-vintf" am:
e162a97703 am:
126eee4d14
am:
c77bc022f7 -s ours
Change-Id: I69a55e1df55604c5ec36a93fbd070fe333e01cc1
Yifan Hong [Mon, 19 Jun 2017 23:08:15 +0000 (23:08 +0000)]
Merge "Fix incorrect bitness for lshal --init-vintf" am:
e162a97703
am:
126eee4d14
Change-Id: I435466a45aa5217f99c73007d5f07c1754216995
Yifan Hong [Mon, 19 Jun 2017 23:02:08 +0000 (23:02 +0000)]
Merge "Fix incorrect bitness for lshal --init-vintf"
am:
e162a97703
Change-Id: Ib59a256b4491b2bf93e8eca1fa85d9a193719446
Treehugger Robot [Mon, 19 Jun 2017 22:51:52 +0000 (22:51 +0000)]
Merge "Fix incorrect bitness for lshal --init-vintf"
Yifan Hong [Mon, 19 Jun 2017 22:47:39 +0000 (15:47 -0700)]
Fix minor version bump reflected in lshal --init-vintf
Test: lshal --init-vintf has no warnings, and power@1.1 / vibrator@1.1
is shown in output.
Bug:
62675393
Change-Id: I1ffd8b6dc7fcadcf7228cf2b8838e918bb3afe6b
Merged-In: I1ffd8b6dc7fcadcf7228cf2b8838e918bb3afe6b
Yifan Hong [Mon, 19 Jun 2017 22:47:39 +0000 (15:47 -0700)]
Fix minor version bump reflected in lshal --init-vintf
Test: lshal --init-vintf has no warnings, and power@1.1 / vibrator@1.1
is shown in output.
Bug:
62675393
Change-Id: I1ffd8b6dc7fcadcf7228cf2b8838e918bb3afe6b
Merged-In: I1ffd8b6dc7fcadcf7228cf2b8838e918bb3afe6b
Yifan Hong [Mon, 19 Jun 2017 21:54:35 +0000 (21:54 +0000)]
Merge "Fix incorrect bitness for lshal --init-vintf" into oc-dr1-dev am:
5cf813eef0
am:
d5ba16a0bc
Change-Id: Icee4e0f8fb3de02bca80dbf8748fc29deb2b5665
Yifan Hong [Mon, 19 Jun 2017 21:36:03 +0000 (21:36 +0000)]
Merge "Fix incorrect bitness for lshal --init-vintf" into oc-dr1-dev
am:
5cf813eef0
Change-Id: I1267c96addf4c501fd695faddf5e4d59bd51f8a0
TreeHugger Robot [Mon, 19 Jun 2017 21:27:01 +0000 (21:27 +0000)]
Merge "Fix incorrect bitness for lshal --init-vintf" into oc-dr1-dev
Yifan Hong [Mon, 19 Jun 2017 19:27:08 +0000 (12:27 -0700)]
Fix incorrect bitness for lshal --init-vintf
Test: lshal --init-vintf, graphics.mapper has 32+64.
Change-Id: Ic586c8333064cc5636679ce8ad4e1231307191f4
Merged-In: Ic586c8333064cc5636679ce8ad4e1231307191f4
Fixes:
62675393
Yifan Hong [Mon, 19 Jun 2017 19:27:08 +0000 (12:27 -0700)]
Fix incorrect bitness for lshal --init-vintf
Test: lshal --init-vintf, graphics.mapper has 32+64.
Change-Id: Ic586c8333064cc5636679ce8ad4e1231307191f4
Merged-In: Ic586c8333064cc5636679ce8ad4e1231307191f4
Fixes:
62675393
Chia-I Wu [Sat, 17 Jun 2017 02:11:25 +0000 (02:11 +0000)]
Merge "Merge changes from topic 'layer-wp-race' into oc-dev am:
a17b14eb92 am:
c35a5e29f3" into oc-dr1-dev-plus-aosp
am:
9a5140ee18
Change-Id: I1320ab8128d9e4b239a8ed6bb12661a41d6e25a0
Chia-I Wu [Sat, 17 Jun 2017 02:10:59 +0000 (02:10 +0000)]
Merge changes from topic 'layer-wp-race' into oc-dev am:
a17b14eb92 am:
f39c08c906
am:
40d6bc3e61
Change-Id: I3eaad7b03c595122dd2aae9c4101b60dcb72ebfc
Bryce Lee [Sat, 17 Jun 2017 02:10:36 +0000 (02:10 +0000)]
Merge "Add method to explicitly create Surface. am:
4e623e259c am:
84051d9c97" into oc-dr1-dev-plus-aosp
am:
6de331a349
Change-Id: Ic4ccdeff08c15b79ff148949d1633a28594f293a
Android Build Merger (Role) [Sat, 17 Jun 2017 02:01:09 +0000 (02:01 +0000)]
Merge "Merge changes from topic 'layer-wp-race' into oc-dev am:
a17b14eb92 am:
c35a5e29f3" into oc-dr1-dev-plus-aosp
Chia-I Wu [Sat, 17 Jun 2017 02:01:00 +0000 (02:01 +0000)]
Merge changes from topic 'layer-wp-race' into oc-dev am:
a17b14eb92
am:
c35a5e29f3
Change-Id: I590c8667049be99f407972953c41ff88e555bb2a
Chia-I Wu [Sat, 17 Jun 2017 02:00:50 +0000 (02:00 +0000)]
Merge changes from topic 'layer-wp-race' into oc-dev am:
a17b14eb92
am:
f39c08c906
Change-Id: I579504e93cc6c21dd13e5b8468d8b87037133a0c
Chia-I Wu [Sat, 17 Jun 2017 01:58:33 +0000 (01:58 +0000)]
Merge changes from topic 'layer-wp-race' into oc-dev
am:
a17b14eb92
Change-Id: I1af51f57255024d36e9cae5c221361f36cb28da4
Chia-I Wu [Sat, 17 Jun 2017 01:58:31 +0000 (01:58 +0000)]
Merge changes from topic 'layer-wp-race' into oc-dev
am:
a17b14eb92
Change-Id: I2fb898abae8b4602aa7257b45293f582f0641f24
TreeHugger Robot [Sat, 17 Jun 2017 01:51:06 +0000 (01:51 +0000)]
Merge changes from topic 'layer-wp-race' into oc-dev
* changes:
surfaceflinger: Layer::getParent requires state lock held
surfaceflinger: distinguish mCurrentParent/mDrawingParent
surfaceflinger: protect Client::mParentLayer with a lock
Bryce Lee [Sat, 17 Jun 2017 00:36:35 +0000 (00:36 +0000)]
Add method to explicitly create Surface. am:
4e623e259c am:
05e6335833
am:
e1446df653
Change-Id: Ibc151c3fc1ecefa670f74c316f978849fbf7c6ce
Android Build Merger (Role) [Fri, 16 Jun 2017 23:34:58 +0000 (23:34 +0000)]
Merge "Add method to explicitly create Surface. am:
4e623e259c am:
84051d9c97" into oc-dr1-dev-plus-aosp
Bryce Lee [Fri, 16 Jun 2017 23:33:15 +0000 (23:33 +0000)]
Add method to explicitly create Surface. am:
4e623e259c
am:
84051d9c97
Change-Id: I4368e31fdb9b7ec0912bddbe75399c7d778383b8
Bryce Lee [Fri, 16 Jun 2017 23:33:12 +0000 (23:33 +0000)]
Add method to explicitly create Surface. am:
4e623e259c
am:
05e6335833
Change-Id: Id470d62303b9055522d1cb6ad456bcbe4d320cfd
Chia-I Wu [Thu, 15 Jun 2017 19:53:59 +0000 (12:53 -0700)]
surfaceflinger: fix a potential child layer leak
We should not remove a child layer from its already removed parent.
Call p->removeChild only after we've checked that the ancestor is
alive.
Apply
e6b63e1ae12692327f7e46d5f10d6ade5a7bf192 and this fix to
SurfaceFlinger_hwc1.cpp as well.
Bug:
37121786
Test: manual stress test
Change-Id: I7b811450a998acc4ad9690bd4eda058ce6588e14
Chia-I Wu [Thu, 15 Jun 2017 19:53:59 +0000 (12:53 -0700)]
surfaceflinger: Layer::getParent requires state lock held
We rely on mStateLock to synchronize accesses to
Layer::mCurrentParent.
Bug:
38505866
Test: manual stress test
Change-Id: I5f8ec358ed7e35df28f8c6aec31ae6ee51cb5b93
Bryce Lee [Fri, 16 Jun 2017 23:24:47 +0000 (23:24 +0000)]
Add method to explicitly create Surface.
am:
4e623e259c
Change-Id: I22ff0cd39e80478a74e4589084d5ccabfbe54443
Bryce Lee [Fri, 16 Jun 2017 23:24:46 +0000 (23:24 +0000)]
Add method to explicitly create Surface.
am:
4e623e259c
Change-Id: Ie3755008a75dc67f1d01a0a5fc8bf4e953c8cf9d
Jesse Hall [Fri, 16 Jun 2017 23:06:52 +0000 (23:06 +0000)]
Merge "libui: Load a.h.graphics.mapper passthrough service on library load" into oc-dr1-dev am:
90254a8d57
am:
3f7ed48900
Change-Id: I7e673178cdf0ca6dccf4be8f9be08d4e9fb24575
Jesse Hall [Fri, 16 Jun 2017 22:53:34 +0000 (22:53 +0000)]
Merge "libui: Load a.h.graphics.mapper passthrough service on library load" into oc-dr1-dev
am:
90254a8d57
Change-Id: I4e1b88ca22dc7ca4bb1be792f17b03cad5e75f10
Jesse Hall [Fri, 16 Jun 2017 22:45:37 +0000 (22:45 +0000)]
Merge "libui: Load a.h.graphics.mapper passthrough service on library load" into oc-dr1-dev
Kevin Schoedel [Fri, 16 Jun 2017 21:15:55 +0000 (21:15 +0000)]
Merge "Fix virtual touchpad scroll events." into oc-dr1-dev am:
23970309e2
am:
587778f41d
Change-Id: Ib7b8951e53af415c64ca7b02cc41d7cb6a91c254
Kevin Schoedel [Fri, 16 Jun 2017 21:04:13 +0000 (21:04 +0000)]
Merge "Fix virtual touchpad scroll events." into oc-dr1-dev
am:
23970309e2
Change-Id: I89257f0a2b434016601aac06a9ed8cbbf5be1bd1
Kevin Schoedel [Fri, 16 Jun 2017 20:56:33 +0000 (20:56 +0000)]
Merge "Fix virtual touchpad scroll events." into oc-dr1-dev
Bryce Lee [Fri, 16 Jun 2017 14:06:17 +0000 (07:06 -0700)]
Add method to explicitly create Surface.
It is sometimes necessary for a SurfaceControl client to request the
associated Surface object be created rather than reuse the cached
value. This changelist adds an additional method that performs the
same creation operations as if the Surface object was created for the
first time.
Bug:
62108743
Test: go/wm-smoke
Change-Id: I2f460f20b2d16ed9ff81cb36842bcd2f8641e03c
Chia-I Wu [Tue, 13 Jun 2017 21:10:56 +0000 (14:10 -0700)]
surfaceflinger: distinguish mCurrentParent/mDrawingParent
Updates to wp<> is not atomic. We cannot use/update it at the same
time from the main thread and a binder thread. With this change,
binder threads use mCurrentParent with the external state lock held.
The main thread uses mDrawingParent.
This is also an alternative fix to bug
62099658 and allows us to
revert "SurfaceFlinger: Update parent pointer while performing
transaction."
Bug:
38505866
Bug:
62099658
Test: boots and no repro (but I can never repro)
Change-Id: Id286a437537daaeec5eee5de62b1d9df245ece53
Chia-I Wu [Thu, 15 Jun 2017 21:01:18 +0000 (14:01 -0700)]
surfaceflinger: protect Client::mParentLayer with a lock
Updates to wp<> is not atomic. Use Client::mLock to protect
mParentLayer.
Bug:
38505866
Test: camera and youtube work
Change-Id: I2739382d5bb99961a47c1011963b6f676d34eec6
Kevin Schoedel [Thu, 15 Jun 2017 15:21:13 +0000 (11:21 -0400)]
Fix virtual touchpad scroll events.
1. Correctly configure the uinput device to pass REL_*WHEEL events.
2. Configure the virtual touchpad as a 'rotary encoder', which is
an inputflinger device class originally provided for the G1 scroll
ball. This provides two advantages over the default mouse-wheel
interpretation:
- It works without an associated mouse pointer to determine the
event target.
- It allows for higher resolution through a scale factor (the
scaling here is chosen by experiment to feel no worse than wheel
mode, but might benefit from future adjustment).
There is one accompanying disadvantage: inputflinger only handles
vertical scrolling (REL_WHEEL) and ignores the horizontal axis
(REL_HWHEEL).
Bug:
62632827
Test: manual on sailfish
Change-Id: Ic8edad01796d75e8c94fa20f05a5badb0727a948
Stephen Kiazyk [Fri, 16 Jun 2017 16:25:00 +0000 (16:25 +0000)]
Set the vr hwc vsync rate to match the native vsync am:
22c1462add
am:
b9b48ae890
Change-Id: I3f7b29551d6ecd928381769a6425664bb575e2a2
Stephen Kiazyk [Fri, 16 Jun 2017 16:20:59 +0000 (16:20 +0000)]
Set the vr hwc vsync rate to match the native vsync
am:
22c1462add
Change-Id: I3b4ebea0ad9e8249d6dec76e798e67724a84761d
TreeHugger Robot [Fri, 16 Jun 2017 11:37:29 +0000 (11:37 +0000)]
Merge "Support 180-degree screen rotation for Stem Buttons."
Jiyong Park [Fri, 16 Jun 2017 06:16:33 +0000 (15:16 +0900)]
Move include/binder to libs/binder/include
Also moved include/private/binder to libs/binder/include/private/binder.
This allows libbinder to be compiled without depending on global
headers.
Bug:
33241851
Test: Build, flash, and run sailfish.
Test: Try building with BOARD_VNDK_VERSION := current
Change-Id: I266d5338677a92dd0563b311a479e7ad27bbaf55
Merged-In: I0a82b733353add589de26eb2db7af5a246e5c97f
Jesse Hall [Wed, 7 Jun 2017 21:44:46 +0000 (14:44 -0700)]
libui: Load a.h.graphics.mapper passthrough service on library load
Zygote loads libui, this helps complete the chain from
zygote -> libui -> a.h.graphics.mapper -> gralloc
so that all of these libraries which are used by nearly every app are
loaded by zygote and shared.
Bug:
62353585
Test: boot to launcher, run calculator, confirm a.h.graphics.mapper
implementation library is in /proc/`pid zygote64`/maps
Change-Id: Ib505c926a410191e3e2ad809bfe98a73b21fac90
Stephen Kiazyk [Thu, 15 Jun 2017 22:53:59 +0000 (15:53 -0700)]
Set the vr hwc vsync rate to match the native vsync
This simple modification reduces the motopho latency from 85ms to 65ms.
However, this is not a final solution, and we should continue to look
for how to address the issue of difference in vsync reporting.
Bug:
36493906
Test: Run motopho, latency is now much lower.
Change-Id: Id52689900a5fe58dfc9d7790b7c3746903380972
Steven Thomas [Thu, 15 Jun 2017 21:53:50 +0000 (21:53 +0000)]
Merge "Fix vr flinger post thread to resume correctly" into oc-dr1-dev am:
4bfb7550af
am:
21802dacac
Change-Id: Iddbcd0b9b3a89bd5b3f47400143669421edb743d
Steven Thomas [Thu, 15 Jun 2017 21:45:05 +0000 (21:45 +0000)]
Merge "Fix vr flinger post thread to resume correctly" into oc-dr1-dev
am:
4bfb7550af
Change-Id: I2957b1b32bf8378f4b965d1f60dcafd4c48f938e
TreeHugger Robot [Thu, 15 Jun 2017 21:35:32 +0000 (21:35 +0000)]
Merge "Fix vr flinger post thread to resume correctly" into oc-dr1-dev
Steven Thomas [Thu, 15 Jun 2017 18:38:40 +0000 (11:38 -0700)]
Fix vr flinger post thread to resume correctly
After being paused, the vr flinger post thread remained paused until it
was enabled by requesting display ownership, but the request for display
ownership was made from the vr flinger post thread, causing the post
thread to get stuck in the paused state forever. I moved the display
ownership request to the vr flinger dispatcher thread, so the post
thread can be resumed.
Bug:
62666511
Test: Put a device through a sleep/wake cycle and confirmed the vr
flinger post thread resumes as expected.
Change-Id: Ic57adb7376c8f2b5760bfaa4a5a30b58894a7ab7
Mathieu Chartier [Thu, 15 Jun 2017 18:57:54 +0000 (18:57 +0000)]
Merge "Use _exit for profile copy dexopt command" into oc-dr1-dev am:
de65cb8e1f
am:
d4f8de92ee
Change-Id: I8e8194f88b895d15955316377c801611407c1f68
Mathieu Chartier [Thu, 15 Jun 2017 18:54:54 +0000 (18:54 +0000)]
Merge "Use _exit for profile copy dexopt command" into oc-dr1-dev
am:
de65cb8e1f
Change-Id: I1d53221347533d9d7b393141b4262b66cee53134
Mathieu Chartier [Thu, 15 Jun 2017 18:47:18 +0000 (18:47 +0000)]
Merge "Use _exit for profile copy dexopt command" into oc-dr1-dev
Alistair Strachan [Thu, 15 Jun 2017 17:37:11 +0000 (17:37 +0000)]
Merge "Fix getDisplayInfo() for SurfaceFlinger in HWC2 mode. am:
c175253b6d am:
f86e12ba89" into oc-dr1-dev-plus-aosp
am:
289fd0d079
Change-Id: I1cc67242355440e7c6ab931bd400db2b6e2445cb
Alistair Strachan [Thu, 15 Jun 2017 17:36:48 +0000 (17:36 +0000)]
Fix getDisplayInfo() for SurfaceFlinger in HWC2 mode. am:
c175253b6d am:
d8449e55a6
am:
45c28e4a5e
Change-Id: I663702bd8a4744e3d7fb0cd349178d6838221ddd
Android Build Merger (Role) [Thu, 15 Jun 2017 17:33:32 +0000 (17:33 +0000)]
Merge "Fix getDisplayInfo() for SurfaceFlinger in HWC2 mode. am:
c175253b6d am:
f86e12ba89" into oc-dr1-dev-plus-aosp
Alistair Strachan [Thu, 15 Jun 2017 17:33:17 +0000 (17:33 +0000)]
Fix getDisplayInfo() for SurfaceFlinger in HWC2 mode. am:
c175253b6d
am:
d8449e55a6
Change-Id: I400998a8226e19fb54f5cb981630841ee8d288ef
Alistair Strachan [Thu, 15 Jun 2017 17:33:17 +0000 (17:33 +0000)]
Fix getDisplayInfo() for SurfaceFlinger in HWC2 mode. am:
c175253b6d
am:
f86e12ba89
Change-Id: I56fcdd654db56912fe2a04457946eef468b1825f
Alistair Strachan [Thu, 15 Jun 2017 17:30:19 +0000 (17:30 +0000)]
Fix getDisplayInfo() for SurfaceFlinger in HWC2 mode.
am:
c175253b6d
Change-Id: I55ca473facef90f00eb1a401d9bc8ad7a36e4878
Alistair Strachan [Thu, 15 Jun 2017 17:30:17 +0000 (17:30 +0000)]
Fix getDisplayInfo() for SurfaceFlinger in HWC2 mode.
am:
c175253b6d
Change-Id: I8a1db090809ec0354dda54a6202ff92b76681bb4
Ivan Podogov [Mon, 13 Feb 2017 15:34:32 +0000 (15:34 +0000)]
Support 180-degree screen rotation for Stem Buttons.
Bug:
17961466
Change-Id: I1892db400724bb80fb92bdf0e2cbaf3102dd7c80
Alistair Strachan [Wed, 7 Jun 2017 23:34:44 +0000 (16:34 -0700)]
Fix getDisplayInfo() for SurfaceFlinger in HWC2 mode.
When HWC2 mode is enabled in SurfaceFlinger, the getDisplayInfo()
function would fail to return the correct active mode in some cases.
This bug was only noticable if you had more than one mode registered
by the HWC2 backend.
The SurfaceComposerClient::getDisplayInfo() function works by calling
getDisplayConfigs(), and de-referencing the config at the index
returned by getActiveConfig(). The active config returned was correct,
but the getDisplayConfigs() array was not properly sorted.
Tracing this back, this problem occurs because the configId is stored
alongside the config in an unordered_map, so when this is converted
to a vector and the configId is discarded, the conversion must be
sorted correctly; it can't just be the hash order returned from
the unordered_map.
There are a few ways to fix this problem, but the easiest was to nip
the problem in the bud by not allowing an unsorted list of configs
to exist on the base HWC2 class. It may be better still to just get
rid of the map and go back to a vector, as this data is more often
used as an array than it is indexed by configId, so the use of an
unordered_map was probably overkill.
Change-Id: Ibfb015a6d9b49c870f37a1c892f15f90abbd1e2c
Bug:
62617569
Test: ./cts-tradefed run cts -m CtsViewTestCases -t android.view.cts.DisplayRefreshRateTest#testRefreshRate
Mathieu Chartier [Wed, 14 Jun 2017 20:02:26 +0000 (13:02 -0700)]
Use _exit for profile copy dexopt command
Previously we used exit(0), but this called global destructors and
could cause problems depending on the state when the forking
happened.
Using _exit avoids calling hte global destructors in the child
process.
Test: Delete packages.xml and flash to simulate first boot
Bug:
62597429
Change-Id: I3a6dcd5f05ca85e1488df154ec283c2ec842e59f
TreeHugger Robot [Wed, 14 Jun 2017 22:27:39 +0000 (22:27 +0000)]
Merge "Support 180-degree screen rotation for RSB."
Eino-Ville Talvala [Wed, 14 Jun 2017 08:18:20 +0000 (08:18 +0000)]
Merge "Merge changes Ibc1444b8,I14c200d1 into oc-dev am:
fd43dc6723 am:
eb444d602c" into oc-dr1-dev-plus-aosp
am:
8b689d1683
Change-Id: If251537b609fa2827b886ddc847c963a9588fcb5
Eino-Ville Talvala [Wed, 14 Jun 2017 08:18:00 +0000 (08:18 +0000)]
Merge changes Ibc1444b8,I14c200d1 into oc-dev am:
fd43dc6723 am:
b209c12155
am:
4b91f8c362
Change-Id: I1a58f54f316beaa2139250c95b8f1c26f5040ade
Android Build Merger (Role) [Wed, 14 Jun 2017 08:15:48 +0000 (08:15 +0000)]
Merge "Merge changes Ibc1444b8,I14c200d1 into oc-dev am:
fd43dc6723 am:
eb444d602c" into oc-dr1-dev-plus-aosp
Eino-Ville Talvala [Wed, 14 Jun 2017 08:15:30 +0000 (08:15 +0000)]
Merge changes Ibc1444b8,I14c200d1 into oc-dev am:
fd43dc6723
am:
b209c12155
Change-Id: I9da639be63a43343d236c865aa810957290e2e49
Eino-Ville Talvala [Wed, 14 Jun 2017 08:15:30 +0000 (08:15 +0000)]
Merge changes Ibc1444b8,I14c200d1 into oc-dev am:
fd43dc6723
am:
eb444d602c
Change-Id: I5c01a250bf9422b23210fc6860676c60ed33c172
Eino-Ville Talvala [Wed, 14 Jun 2017 08:13:01 +0000 (08:13 +0000)]
Merge changes Ibc1444b8,I14c200d1 into oc-dev
am:
fd43dc6723
Change-Id: Iae111bcc2770c1e75aba29021e31d07ff89243ab
Eino-Ville Talvala [Wed, 14 Jun 2017 08:13:00 +0000 (08:13 +0000)]
Merge changes Ibc1444b8,I14c200d1 into oc-dev
am:
fd43dc6723
Change-Id: I7a63dd4d785a3bc4e386cc10a427b12d678e7b28
Eino-Ville Talvala [Wed, 14 Jun 2017 08:09:40 +0000 (08:09 +0000)]
Merge changes Ibc1444b8,I14c200d1 into oc-dev
* changes:
ConsumerBase: discardFreeBuffers() also needs to dump its own cache
BufferQueueProducer: Call onBuffersReleased() in detachNextBuffer
Peng Xu [Wed, 14 Jun 2017 06:45:18 +0000 (06:45 +0000)]
Merge changes from topic 'sensor_looper_crash' into oc-dev am:
638055ef41 am:
642e5511f4
am:
659c063b31
Change-Id: Ifdce9ab4644d58c22a7056fd68ae168973e58ded
Yifan Hong [Wed, 14 Jun 2017 06:44:57 +0000 (06:44 +0000)]
SensorManager: attach background thread to JavaVM am:
09034f076e am:
e1ae771108
am:
13ba0489bf
Change-Id: If8cbd3e3785189b624904603639c04bbc706708e
Yifan Hong [Wed, 14 Jun 2017 06:43:02 +0000 (06:43 +0000)]
Framework sensor manager init not depends on ::android::SensorManager. am:
542eace6bf am:
7c4c5860c0 -s ours
am:
b7d502bec6 -s ours
Change-Id: I4fcd0353c12d5fa51645d7266fa5670bdfd70143
Peng Xu [Wed, 14 Jun 2017 06:37:17 +0000 (06:37 +0000)]
Merge changes from topic 'sensor_looper_crash' into oc-dev am:
638055ef41 am:
91768a2bfe
am:
063a42c499
Change-Id: I912eea3bd90446147566ef9334663b7f320d1f84