OSDN Git Service

android-x86/frameworks-native.git
7 years agoMerge "Revert "(lib)?sensorservice: Android.mk -> Android.bp"" am: c6a6fd0516 am...
Steven Moreland [Fri, 21 Apr 2017 02:06:35 +0000 (02:06 +0000)]
Merge "Revert "(lib)?sensorservice: Android.mk -> Android.bp"" am: c6a6fd0516 am: 4fe57dd57d
am: e9c068b263  -s ours

Change-Id: I99468607352a9102923cef48b475860a602942f2

7 years agoMerge "Revert "(lib)?sensorservice: Android.mk -> Android.bp"" am: c6a6fd0516
Steven Moreland [Fri, 21 Apr 2017 02:03:35 +0000 (02:03 +0000)]
Merge "Revert "(lib)?sensorservice: Android.mk -> Android.bp"" am: c6a6fd0516
am: 4fe57dd57d

Change-Id: Ie46dfeb8c57c4edeedbf474a7f5cb414e3ab686e

7 years agoMerge "Revert "(lib)?sensorservice: Android.mk -> Android.bp""
Steven Moreland [Fri, 21 Apr 2017 02:01:04 +0000 (02:01 +0000)]
Merge "Revert "(lib)?sensorservice: Android.mk -> Android.bp""
am: c6a6fd0516

Change-Id: Ic5c3654b19f84b12add62a2ec127fb9eda7654a4

7 years agoMerge "Revert "(lib)?sensorservice: Android.mk -> Android.bp""
Steven Moreland [Fri, 21 Apr 2017 01:57:34 +0000 (01:57 +0000)]
Merge "Revert "(lib)?sensorservice: Android.mk -> Android.bp""

7 years agoRevert "(lib)?sensorservice: Android.mk -> Android.bp"
Steven Moreland [Fri, 21 Apr 2017 01:57:19 +0000 (01:57 +0000)]
Revert "(lib)?sensorservice: Android.mk -> Android.bp"

This reverts commit f1b07d51ed6a11a0446115934fb75c22a1badb87.

Bad internal merge and other errors.

Change-Id: If9b812916223773ee98354d0805626cf759355fd
Merged-In: Ib3a3f249c278be582de04a583e18de3c0e502d5e

7 years agoRevert "resolve merge conflicts of 03e80b462 to oc-dev-plus-aosp"
Steven Moreland [Fri, 21 Apr 2017 01:55:08 +0000 (01:55 +0000)]
Revert "resolve merge conflicts of 03e80b462 to oc-dev-plus-aosp"

This reverts commit 40d89431dbad9c7f5820ddbe21dd8a532f58f0f5.

Reason for revert: didn't delete mk

Change-Id: Ib3a3f249c278be582de04a583e18de3c0e502d5e

7 years agoresolve merge conflicts of 03e80b462 to oc-dev-plus-aosp
Steven Moreland [Fri, 21 Apr 2017 00:42:43 +0000 (17:42 -0700)]
resolve merge conflicts of 03e80b462 to oc-dev-plus-aosp

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I3f41140bf5f10e03667a9e36c29df0d3e90d7bb0

7 years agoMerge "(lib)?sensorservice: Android.mk -> Android.bp" am: 9a33cae051
Steven Moreland [Fri, 21 Apr 2017 00:09:25 +0000 (00:09 +0000)]
Merge "(lib)?sensorservice: Android.mk -> Android.bp" am: 9a33cae051
am: e8d1bd4f67

Change-Id: I7027e846ac5c62e5df1341bafd1598c3c9957c60

7 years agoMerge "(lib)?sensorservice: Android.mk -> Android.bp"
Steven Moreland [Fri, 21 Apr 2017 00:06:55 +0000 (00:06 +0000)]
Merge "(lib)?sensorservice: Android.mk -> Android.bp"
am: 9a33cae051

Change-Id: I453692e9058d54edfb8777371814f504d3886ba0

7 years agoMerge "(lib)?sensorservice: Android.mk -> Android.bp"
Steven Moreland [Fri, 21 Apr 2017 00:03:10 +0000 (00:03 +0000)]
Merge "(lib)?sensorservice: Android.mk -> Android.bp"

7 years ago(lib)?sensorservice: Android.mk -> Android.bp
Steven Moreland [Thu, 20 Apr 2017 22:56:38 +0000 (15:56 -0700)]
(lib)?sensorservice: Android.mk -> Android.bp

Test: links
Change-Id: I2ddab32c12bf07044416f983b5cf0ae19cc12ba0

7 years agoMerge "libui: log an error on allocation failure" into oc-dev
Chia-I Wu [Thu, 20 Apr 2017 19:12:14 +0000 (19:12 +0000)]
Merge "libui: log an error on allocation failure" into oc-dev
am: e937eb866d

Change-Id: I5440bd0a35b0629f637b364b504b29069fe3c146

7 years agoMerge "libui: log an error on allocation failure" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 18:56:25 +0000 (18:56 +0000)]
Merge "libui: log an error on allocation failure" into oc-dev

7 years agoMerge "Convert inputflinger to Android.bp" am: b0a4e9bbef am: ef62f2abe2
Colin Cross [Thu, 20 Apr 2017 18:10:02 +0000 (18:10 +0000)]
Merge "Convert inputflinger to Android.bp" am: b0a4e9bbef am: ef62f2abe2
am: f9ff234477

Change-Id: Ia0b0186869e717e0dea16dbbbc4a10c9aac6f810

7 years agoMerge "Convert inputflinger to Android.bp" am: b0a4e9bbef
Colin Cross [Thu, 20 Apr 2017 18:07:30 +0000 (18:07 +0000)]
Merge "Convert inputflinger to Android.bp" am: b0a4e9bbef
am: ef62f2abe2

Change-Id: Ia902708ff58221e580f152fb5b10a98701b94098

7 years agoMerge "Convert inputflinger to Android.bp"
Colin Cross [Thu, 20 Apr 2017 18:04:30 +0000 (18:04 +0000)]
Merge "Convert inputflinger to Android.bp"
am: b0a4e9bbef

Change-Id: I28a5927c81eea714b0f2a29abae102e74b7771c4

7 years agoMerge "Convert inputflinger to Android.bp"
Treehugger Robot [Thu, 20 Apr 2017 17:59:45 +0000 (17:59 +0000)]
Merge "Convert inputflinger to Android.bp"

7 years agolibui: log an error on allocation failure
Chia-I Wu [Thu, 20 Apr 2017 05:20:55 +0000 (22:20 -0700)]
libui: log an error on allocation failure

This was on the gralloc0/gralloc1 path, but was missing from the HIDL
gralloc path.

Bug: 37444686
Test: allocate an invalid buffer
Change-Id: If1ea0e27c228d82abbcd6f6290eb8fee423828e7

7 years agoMerge "libbinder: vendor_available" am: e1b504457d am: 9d7f5c867b
Steven Moreland [Thu, 20 Apr 2017 04:20:35 +0000 (04:20 +0000)]
Merge "libbinder: vendor_available" am: e1b504457d am: 9d7f5c867b
am: d97b15855f

Change-Id: Icb31023a0be7b7a0df377084917fab13fb6bbaaf

7 years agoMerge "libpdx_uds: Serialize access to connection socket between threads" into oc-dev
Alex Vakulenko [Thu, 20 Apr 2017 04:15:31 +0000 (04:15 +0000)]
Merge "libpdx_uds: Serialize access to connection socket between threads" into oc-dev
am: 84a0b9238a

Change-Id: I9767b882688a200443976ff311b21b9a27dec279

7 years agoMerge "Fix reference loop in IEventQueue implementation." into oc-dev
Yifan Hong [Thu, 20 Apr 2017 04:13:38 +0000 (04:13 +0000)]
Merge "Fix reference loop in IEventQueue implementation." into oc-dev
am: e382c18831

Change-Id: Ie1c1a2d6b1820ce1a21d96ba523d904e635522ae

7 years agoMerge "libpdx_uds: Serialize access to connection socket between threads" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 04:11:17 +0000 (04:11 +0000)]
Merge "libpdx_uds: Serialize access to connection socket between threads" into oc-dev

7 years agoMerge "libpdx_uds: Allow to create Endpoint/ClientChannel from a socket pair" into...
Alex Vakulenko [Thu, 20 Apr 2017 04:08:30 +0000 (04:08 +0000)]
Merge "libpdx_uds: Allow to create Endpoint/ClientChannel from a socket pair" into oc-dev
am: f5524db232

Change-Id: I4d83b19a7998bf0ce76c7d0e7a6d678fc772be4e

7 years agoMerge "Fix reference loop in IEventQueue implementation." into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 04:08:29 +0000 (04:08 +0000)]
Merge "Fix reference loop in IEventQueue implementation." into oc-dev

7 years agoMerge "libpdx_uds: Allow to create Endpoint/ClientChannel from a socket pair" into...
TreeHugger Robot [Thu, 20 Apr 2017 03:57:16 +0000 (03:57 +0000)]
Merge "libpdx_uds: Allow to create Endpoint/ClientChannel from a socket pair" into oc-dev

7 years agoConvert inputflinger to Android.bp
Colin Cross [Wed, 19 Apr 2017 23:56:46 +0000 (16:56 -0700)]
Convert inputflinger to Android.bp

See build/soong/README.md for more information.

Test: m -j checkbuild
Change-Id: Iebdc3f4d2d560b0fdf5447dde0ac06df64826bb5
Merged-In: Iebdc3f4d2d560b0fdf5447dde0ac06df64826bb5
(cherry picked from commit 45a1b9c95de619785b68ce51b1a3e271abc4ffd9)

7 years agoMerge "Calculate batching param in a smarter way" into oc-dev
Peng Xu [Thu, 20 Apr 2017 02:12:04 +0000 (02:12 +0000)]
Merge "Calculate batching param in a smarter way" into oc-dev
am: 20c35e424e

Change-Id: I941b3af48cf7437d71079386ea6e7fc14a05df57

7 years agoMerge "Calculate batching param in a smarter way" into oc-dev
Peng Xu [Thu, 20 Apr 2017 02:01:37 +0000 (02:01 +0000)]
Merge "Calculate batching param in a smarter way" into oc-dev

7 years agoFix reference loop in IEventQueue implementation.
Yifan Hong [Thu, 20 Apr 2017 01:45:30 +0000 (18:45 -0700)]
Fix reference loop in IEventQueue implementation.

EventQueue's destructor is never called because
EventQueueLooperCallback has a strong reference to it,
and EventQueueLooperCallback is never destroyed because
the file descriptor is never removed from the looper.

Bug: 37280081
Test: camera works
Test: event queue is destroyed when client removes
its reference (from logcat)

Change-Id: I12347b6d1cca354288382555d2d9a20acfa59233

7 years agoMerge "libbinder: vendor_available" am: e1b504457d
Steven Moreland [Thu, 20 Apr 2017 01:58:27 +0000 (01:58 +0000)]
Merge "libbinder: vendor_available" am: e1b504457d
am: 9d7f5c867b

Change-Id: I9b29afedaab9487a96c448a7c791ceb059df2bae

7 years agoMerge "libbinder: vendor_available"
Steven Moreland [Thu, 20 Apr 2017 01:46:33 +0000 (01:46 +0000)]
Merge "libbinder: vendor_available"
am: e1b504457d

Change-Id: I1113c2bd11060d526c46d7f8f9d69e4526dd4ce4

7 years agoMerge "libbinder: vendor_available"
Treehugger Robot [Thu, 20 Apr 2017 01:39:21 +0000 (01:39 +0000)]
Merge "libbinder: vendor_available"

7 years agoMerge "Fix default optics" into oc-dev
Hendrik Wagenaar [Thu, 20 Apr 2017 01:23:56 +0000 (01:23 +0000)]
Merge "Fix default optics" into oc-dev
am: 87c83b1de4

Change-Id: I313cd0190cf3c38bfce6b94f3ee86824220f6770

7 years agoMerge "Remove the lookup distortion class" into oc-dev
Hendrik Wagenaar [Thu, 20 Apr 2017 01:23:41 +0000 (01:23 +0000)]
Merge "Remove the lookup distortion class" into oc-dev
am: 78145dd40d

Change-Id: I358b9f7960cb4df5854b2d9c04eb6b7748a5d751

7 years agoMerge "Fix default optics" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 01:20:01 +0000 (01:20 +0000)]
Merge "Fix default optics" into oc-dev

7 years agoMerge "Remove the lookup distortion class" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 01:19:47 +0000 (01:19 +0000)]
Merge "Remove the lookup distortion class" into oc-dev

7 years agoMerge "Fix lshal not to squash HAL entries incorrectly." am: 665173c59d am: 167edf54a0
Yifan Hong [Thu, 20 Apr 2017 01:03:30 +0000 (01:03 +0000)]
Merge "Fix lshal not to squash HAL entries incorrectly." am: 665173c59d am: 167edf54a0
am: 09ccaa169e

Change-Id: I1867070622cf8799859db748e6ca8bb6aadf7ed3

7 years agoMerge "Fix lshal not to squash HAL entries incorrectly." am: 665173c59d
Yifan Hong [Thu, 20 Apr 2017 01:01:25 +0000 (01:01 +0000)]
Merge "Fix lshal not to squash HAL entries incorrectly." am: 665173c59d
am: 167edf54a0

Change-Id: I6a0f3b69ff758598982971825747a19588e6063a

7 years agoMerge "Fix lshal not to squash HAL entries incorrectly."
Yifan Hong [Thu, 20 Apr 2017 00:59:25 +0000 (00:59 +0000)]
Merge "Fix lshal not to squash HAL entries incorrectly."
am: 665173c59d

Change-Id: I2e64c731627f971ee28f8e2c95d98a5e5717d841

7 years agoMerge "Fix lshal not to squash HAL entries incorrectly."
Yifan Hong [Thu, 20 Apr 2017 00:51:48 +0000 (00:51 +0000)]
Merge "Fix lshal not to squash HAL entries incorrectly."

7 years agoMerge "Otapreopt: Fix count" into oc-dev
Andreas Gampe [Thu, 20 Apr 2017 00:47:04 +0000 (00:47 +0000)]
Merge "Otapreopt: Fix count" into oc-dev
am: e620d805d8

Change-Id: Ifc134fd806137d09ed7ac914ea37769e0c1d92ad

7 years agoMerge "Otapreopt: Fix count" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 00:34:55 +0000 (00:34 +0000)]
Merge "Otapreopt: Fix count" into oc-dev

7 years agoMerge "Reflect removal of vndservice_manager SELinux object manager." into oc-dev
Dan Cashman [Thu, 20 Apr 2017 00:19:28 +0000 (00:19 +0000)]
Merge "Reflect removal of vndservice_manager SELinux object manager." into oc-dev
am: fbc73bf092

Change-Id: Id4517f15bb8e95e19c975eccc6a57dc95c9a8535

7 years agoMerge "Reflect removal of vndservice_manager SELinux object manager." into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 00:06:41 +0000 (00:06 +0000)]
Merge "Reflect removal of vndservice_manager SELinux object manager." into oc-dev

7 years agoMerge "Hold onto FileHandles for glBindSharedBufferQCOM calls" into oc-dev
John Bates [Wed, 19 Apr 2017 23:48:20 +0000 (23:48 +0000)]
Merge "Hold onto FileHandles for glBindSharedBufferQCOM calls" into oc-dev
am: e602082190

Change-Id: I5aa7ce944677838fbf86d0e1d59e4a0f9122e0a9

7 years agoFix default optics
Hendrik Wagenaar [Tue, 18 Apr 2017 22:12:30 +0000 (15:12 -0700)]
Fix default optics

* Prior cl caused an infinite loop with the defaults
* Removed linear approximation - it caused issues with
  inverse distortion

Bug: 37443861
Test: Manually ran on a few phones
Test: Wrote a program that compared the distortion and
      undistortion values with the old and new path
Change-Id: I7221679585dd7f0fe966ff11170e9d3ec74a51df

7 years agoMerge "Hold onto FileHandles for glBindSharedBufferQCOM calls" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 23:11:12 +0000 (23:11 +0000)]
Merge "Hold onto FileHandles for glBindSharedBufferQCOM calls" into oc-dev

7 years agoMerge changes If30bfa71,Ib8f78967 into oc-dev
Alex Vakulenko [Wed, 19 Apr 2017 22:35:40 +0000 (22:35 +0000)]
Merge changes If30bfa71,Ib8f78967 into oc-dev
am: 1fbefc70df

Change-Id: I077a810a54c33ca97c18912ca6399bcb3552824c

7 years agoDO NOT MERGE: SF: disable HW vsync while dozing am: 46d455b3ab am: eee8fc1cd2 -s...
Zheng Zhang [Wed, 19 Apr 2017 22:35:24 +0000 (22:35 +0000)]
DO NOT MERGE: SF: disable HW vsync while dozing am: 46d455b3ab am: eee8fc1cd2  -s ours
am: ddd347c298

Change-Id: I05f442bcd1d03b1adde9fc3ec78d5ed566c45d9b

7 years agoMerge changes If30bfa71,Ib8f78967 into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 22:34:25 +0000 (22:34 +0000)]
Merge changes If30bfa71,Ib8f78967 into oc-dev

* changes:
  pdx_benchmarks: Let the service create sockets by itself
  libpdx_uds: Fix send/receive over socket to handle signal interrupts

7 years agoDO NOT MERGE: SF: disable HW vsync while dozing am: 46d455b3ab am: eee8fc1cd2
Zheng Zhang [Wed, 19 Apr 2017 22:34:08 +0000 (22:34 +0000)]
DO NOT MERGE: SF: disable HW vsync while dozing am: 46d455b3ab am: eee8fc1cd2
am: bf2ae10cce  -s ours

Change-Id: Ia369c6436029f65fe46a379f400692751314faf5

7 years agoDO NOT MERGE: SF: disable HW vsync while dozing am: 46d455b3ab
Zheng Zhang [Wed, 19 Apr 2017 22:31:55 +0000 (22:31 +0000)]
DO NOT MERGE: SF: disable HW vsync while dozing am: 46d455b3ab
am: eee8fc1cd2

Change-Id: I35d9ddfd59394b85428faeadd33713c742edc273

7 years agoDO NOT MERGE: SF: disable HW vsync while dozing am: 46d455b3ab
Zheng Zhang [Wed, 19 Apr 2017 22:31:37 +0000 (22:31 +0000)]
DO NOT MERGE: SF: disable HW vsync while dozing am: 46d455b3ab
am: eee8fc1cd2  -s ours

Change-Id: I27ca7dfc0618b18865379441f0ab32d06477d220

7 years agoMerge "Fix passing --classpath-dir to dex2oat for split apks." am: 24ff69485e am...
Jeff Hao [Wed, 19 Apr 2017 22:29:10 +0000 (22:29 +0000)]
Merge "Fix passing --classpath-dir to dex2oat for split apks." am: 24ff69485e am: 7ad28fadc3
am: 08a3d08fee

Change-Id: I33b93e916c11b117101594d4dfde90b1e3de3e53

7 years agoDO NOT MERGE: SF: disable HW vsync while dozing
Zheng Zhang [Wed, 19 Apr 2017 22:29:07 +0000 (22:29 +0000)]
DO NOT MERGE: SF: disable HW vsync while dozing
am: 46d455b3ab

Change-Id: I8e2eb78fc79b5127d9baa6079095115c431e1823

7 years agoMerge "Fix passing --classpath-dir to dex2oat for split apks." am: 24ff69485e
Jeff Hao [Wed, 19 Apr 2017 22:27:38 +0000 (22:27 +0000)]
Merge "Fix passing --classpath-dir to dex2oat for split apks." am: 24ff69485e
am: 7ad28fadc3

Change-Id: I8aaad725f691d3e3cc4e3262853365c360d1d95a

7 years agoMerge "Fix passing --classpath-dir to dex2oat for split apks."
Jeff Hao [Wed, 19 Apr 2017 22:25:39 +0000 (22:25 +0000)]
Merge "Fix passing --classpath-dir to dex2oat for split apks."
am: 24ff69485e

Change-Id: If467da70c5637b9025435ebf7e6900349564f815

7 years agoMerge "Fix passing --classpath-dir to dex2oat for split apks."
Treehugger Robot [Wed, 19 Apr 2017 22:22:32 +0000 (22:22 +0000)]
Merge "Fix passing --classpath-dir to dex2oat for split apks."

7 years agolibbinder: vendor_available
Steven Moreland [Fri, 14 Apr 2017 04:19:48 +0000 (21:19 -0700)]
libbinder: vendor_available

By setting vendor_available, the following may become true:

* a prebuilt library from this release may be used at runtime by
  in a later releasse (by vendor code compiled against this release).
  so this library shouldn't depend on runtime state that may change
  in the future.
* this library may be loaded twice into a single process (potentially
  an old version and a newer version). The symbols will be isolated
  using linker namespaces, but this may break assumptions about 1
  library in 1 process (your singletons will run twice).

Background:

This means that these modules may be built and installed twice --
once for the system partition and once for the vendor partition. The
system version will build just like today, and will be used by the
framework components on /system. The vendor version will build
against a reduced set of exports and libraries -- similar to, but
separate from, the NDK. This means that all your dependencies must
also mark vendor_available.

At runtime, /system binaries will load libraries from /system/lib*,
while /vendor binaries will load libraries from /vendor/lib*. There
are some exceptions in both directions -- bionic(libc,etc) and liblog
are always loaded from /system. And SP-HALs (OpenGL, etc) may load
/vendor code into /system processes, but the dependencies of those
libraries will load from /vendor until it reaches a library that's
always on /system. In the SP-HAL case, if both framework and vendor
libraries depend on a library of the same name, both versions will be
loaded, but they will be isolated from each other.

It's possible to compile differently -- reducing your source files,
exporting different include directories, etc. For details see:

https://android-review.googlesource.com/368372

None of this is enabled unless the device opts into the system/vendor
split with BOARD_VNDK_VERSION := current.

Bug: 36426473
Bug: 36079834
Test: m -j libbinder
Test: attempt to compile with BOARD_VNDK_VERSION := current
(cherry picked from commit 3aa761697b93dab3e4b1acf90d14502a79a49219)
Merged-In: Iec94a66adbc852f7f23352307cf36f49a79ee3a6
Change-Id: Iec94a66adbc852f7f23352307cf36f49a79ee3a6

7 years agoMerge "Otapreopt: Add non-profile fallback" into oc-dev
Andreas Gampe [Wed, 19 Apr 2017 21:52:18 +0000 (21:52 +0000)]
Merge "Otapreopt: Add non-profile fallback" into oc-dev
am: c211793ac6

Change-Id: Ia5382234efcb715e7c58fac62eb1400055a41f04

7 years agoOtapreopt: Fix count
Andreas Gampe [Wed, 19 Apr 2017 20:58:49 +0000 (13:58 -0700)]
Otapreopt: Fix count

Don't count null for argc.

Bug: 37158297
Test: m
Test: OTA pre-versioned -> OTA versioned
Change-Id: I378b0b7b445f34c766460182d724d6abd84ff773

7 years agoFix passing --classpath-dir to dex2oat for split apks.
Jeff Hao [Wed, 19 Apr 2017 20:50:15 +0000 (13:50 -0700)]
Fix passing --classpath-dir to dex2oat for split apks.

Merged wrong version of CL in by mistake. CL should have been
cherry-picked from cc5c4e32637601432bc6359fb7ff34e4cadb6502.

Bug: 34169257
Test: cts-tradefed run singleCommand cts -d --module
CtsAppSecurityHostTestCases -t android.appsecurity.cts.SplitTests

Change-Id: Ibebcdce1c9ab0de3254727c8dfc3d0de18932f1c

7 years agoresolve merge conflicts of d3b56698c to oc-dev-plus-aosp
Jeff Hao [Wed, 19 Apr 2017 20:37:47 +0000 (13:37 -0700)]
resolve merge conflicts of d3b56698c to oc-dev-plus-aosp

Test: I solemnly swear I tested this conflict resolution.
Change-Id: Iae7fc90e9281102fb32dcc214838f590b9576f7a

7 years agoMerge "Otapreopt: Add non-profile fallback" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 20:31:59 +0000 (20:31 +0000)]
Merge "Otapreopt: Add non-profile fallback" into oc-dev

7 years agoMerge "Run dex2oat from the staged apk directory." into oc-dev
Jeff Hao [Wed, 19 Apr 2017 20:16:18 +0000 (20:16 +0000)]
Merge "Run dex2oat from the staged apk directory." into oc-dev

7 years agoMerge "DVRBuffer functions should acquire AHardwareBuffer" into oc-dev
Hendrik Wagenaar [Wed, 19 Apr 2017 19:59:37 +0000 (19:59 +0000)]
Merge "DVRBuffer functions should acquire AHardwareBuffer" into oc-dev
am: b132557432

Change-Id: I579c54fbd02aa39d5a92d9a827a18a615d75edea

7 years agoMerge "DVRBuffer functions should acquire AHardwareBuffer" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 19:51:37 +0000 (19:51 +0000)]
Merge "DVRBuffer functions should acquire AHardwareBuffer" into oc-dev

7 years agolibpdx_uds: Serialize access to connection socket between threads
Alex Vakulenko [Tue, 18 Apr 2017 21:41:33 +0000 (14:41 -0700)]
libpdx_uds: Serialize access to connection socket between threads

Added a mutex to allow only one client thread to perform atomic
send-request/receive-responce actions.

Also added a unit test that perfroms multiple parallel client requests
to the same service to ensure it can handle multithreaded access
correctly.

Bug: 37443070
Test: `libpdx_uds_tests` pass
Change-Id: Ica516f7806f9146fb530b5cb371d2ee89146fed7

7 years agolibpdx_uds: Allow to create Endpoint/ClientChannel from a socket pair
Alex Vakulenko [Tue, 18 Apr 2017 21:37:20 +0000 (14:37 -0700)]
libpdx_uds: Allow to create Endpoint/ClientChannel from a socket pair

This is important to enable Service/Client operation in unit tests.
Being able to create a pair of Unix domain sockets and construct both
Service and Client so that they can talk to each other without having
to create a physical socket file is convenient.

This change makes it possible to create an instance of Endpoint and
ClientChannel classes based just on a pair of sockets (Endpoint does
take another socket to simulate the main endpoint FD to accept incoming
connection on, but it is not used for this, only the shutdown events
are received from that main socket. Endpoint uses the channel FD to
perform actual communication with the client).

Bug: 37443070
Test: `libpdx_uds_tests` pass
Change-Id: Ifa1a9d03b97bd90282a04715c2105ad37a8de936

7 years agopdx_benchmarks: Let the service create sockets by itself
Alex Vakulenko [Mon, 17 Apr 2017 23:19:51 +0000 (16:19 -0700)]
pdx_benchmarks: Let the service create sockets by itself

Default implementation of Endpoint::Create() takes the socket name
as provided by the init process when it forks. pdx_benchmark is not
a service but a command-line utility and it is being started manually
and not through init process. So, named sockets are not available.
Instead, it must create a socket by the specified name. For this,
it must use Endpoint::CreateAndBindSocket() method.

Bug: 37507039
Test: Tested manually on device: `pdx_benchmarks --service foo`.
Change-Id: If30bfa7138f5a97ba0bff9e61460c6bd3697ec19

7 years agoMerge "Return error when trying to disconnect twice" into oc-dev
Wonsik Kim [Wed, 19 Apr 2017 19:07:39 +0000 (19:07 +0000)]
Merge "Return error when trying to disconnect twice" into oc-dev
am: fc333972e9

Change-Id: Ief6294b415385e1cf584f1d54cf605c78717c43d

7 years agoMerge "Return error when trying to disconnect twice" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 18:47:44 +0000 (18:47 +0000)]
Merge "Return error when trying to disconnect twice" into oc-dev

7 years agoRun dex2oat from the staged apk directory.
Jeff Hao [Thu, 6 Apr 2017 00:11:39 +0000 (17:11 -0700)]
Run dex2oat from the staged apk directory.

The frameworks/base change makes the PackageManager pass relative paths
of previous code paths as shared library paths. This change passes the
base directory for these relative paths to dex2oat using the new switch
--classpath-dir.

Part of a multi-project change.

Bug: 34169257
Test: cts-tradefed run singleCommand cts -d --module
CtsAppSecurityHostTestCases -t android.appsecurity.cts.SplitTests

(cherry-picked from commit cc5c4e32637601432bc6359fb7ff34e4cadb6502)

Change-Id: I8f941eb9982a051c1f49256d5489f2575af1d80f

7 years agoMerge "Run dex2oat from the staged apk directory." am: 296d91edc8 am: 7b30832493
Jeff Hao [Wed, 19 Apr 2017 17:51:06 +0000 (17:51 +0000)]
Merge "Run dex2oat from the staged apk directory." am: 296d91edc8 am: 7b30832493
am: 27167f9cd0

Change-Id: I3fe2a1e60a8fd3a8e6726940249e523837ddb733

7 years agoMerge "Run dex2oat from the staged apk directory." am: 296d91edc8
Jeff Hao [Wed, 19 Apr 2017 17:30:18 +0000 (17:30 +0000)]
Merge "Run dex2oat from the staged apk directory." am: 296d91edc8
am: 7b30832493

Change-Id: Ica5c4f3bbfb1f99fd21251917f223b6e04658ffc

7 years agoMerge "Run dex2oat from the staged apk directory."
Jeff Hao [Wed, 19 Apr 2017 17:21:47 +0000 (17:21 +0000)]
Merge "Run dex2oat from the staged apk directory."
am: 296d91edc8

Change-Id: Ib3ddad33a505a74e6004123d08e64a177c7045aa

7 years agoMerge "Run dex2oat from the staged apk directory."
Treehugger Robot [Wed, 19 Apr 2017 17:13:11 +0000 (17:13 +0000)]
Merge "Run dex2oat from the staged apk directory."

7 years agolibpdx_uds: Fix send/receive over socket to handle signal interrupts
Alex Vakulenko [Mon, 17 Apr 2017 19:02:38 +0000 (12:02 -0700)]
libpdx_uds: Fix send/receive over socket to handle signal interrupts

Previous implementation of send/receive didn't account for the fact that
send/receive operation might be interrupted by a signal and transfer
fewer bytes than requested.

Fix this by repeatedly calling send/recv until all the requested data
is transferred over sockets.

Also added a number of unit tests for send/receive functions.

Bug: 37427314
Test: `m -j32` succeeds for Sailfish.
      `libpdx_uds_tests` pass on device

Change-Id: Ib8f78967af3c218d9f18fb3dfe8953c35800540b

7 years agoOtapreopt: Add non-profile fallback
Andreas Gampe [Tue, 18 Apr 2017 03:04:02 +0000 (20:04 -0700)]
Otapreopt: Add non-profile fallback

Slightly refactor compilation flow. Add a fallback option: if the
compilation fails and was profile-guided, attempt a non-profile-
guided compilation. This makes A/B OTA more robust to profile
format changes.

Bug: 37256688
Test: m
Test: manual OTA N -> O
Change-Id: I20c4b44a87c0f7faa8920abdae01e39379405eca

7 years agoMerge "libui: remove gralloc0/gralloc1 support" into oc-dev
Chia-I Wu [Wed, 19 Apr 2017 16:21:42 +0000 (16:21 +0000)]
Merge "libui: remove gralloc0/gralloc1 support" into oc-dev
am: 5330710aeb

Change-Id: I41ca51009ee0c79ea5cead75d9da29707c17abc4

7 years agoMerge "libui: remove gralloc0/gralloc1 support" into oc-dev
Chia-I Wu [Wed, 19 Apr 2017 16:16:21 +0000 (16:16 +0000)]
Merge "libui: remove gralloc0/gralloc1 support" into oc-dev

7 years agoDVRBuffer functions should acquire AHardwareBuffer
Hendrik Wagenaar [Wed, 19 Apr 2017 05:03:09 +0000 (22:03 -0700)]
DVRBuffer functions should acquire AHardwareBuffer

Bug: 37488135
Test: Updated DVR buffer tests
Change-Id: Ia255aca571e7162382e7be3c13be8ea192adbc90

7 years agoRemove the lookup distortion class
Hendrik Wagenaar [Wed, 19 Apr 2017 03:45:10 +0000 (20:45 -0700)]
Remove the lookup distortion class

* This class is no longer used.

Test: Compiled locally
Bug: 37487610
Change-Id: Ie0bd1441e04086990309d5eb4ca3b4f64351ae05

7 years agoFix lshal not to squash HAL entries incorrectly.
Yifan Hong [Tue, 18 Apr 2017 21:19:40 +0000 (14:19 -0700)]
Fix lshal not to squash HAL entries incorrectly.

Bug: 37311367
Test: lshal --init-vintf
Change-Id: I693b53f5f342c7600e4031d020792fd347e3ae83

7 years agoRun dex2oat from the staged apk directory.
Jeff Hao [Thu, 6 Apr 2017 00:11:39 +0000 (17:11 -0700)]
Run dex2oat from the staged apk directory.

The frameworks/base change makes the PackageManager pass relative paths
of previous code paths as shared library paths. This change passes the
base directory for these relative paths to dex2oat using the new switch
--base-dir.

Part of a multi-project change.

Bug: 34169257
Test: cts-tradefed run singleCommand cts -d --module
CtsAppSecurityHostTestCases -t android.appsecurity.cts.SplitTests

Merged-In: Ic20aa0b6a80104d0759ac84df3eb89570604e53f
(cherry-picked from commit cc5c4e32637601432bc6359fb7ff34e4cadb6502)

Change-Id: I29e6e7365654cc1a538272591356e2253d6ec0e4

7 years agoMerge "atrace: Don't NPE if we can't access hal-related tracepoint files." into oc-dev
Carmen Jackson [Wed, 19 Apr 2017 01:10:50 +0000 (01:10 +0000)]
Merge "atrace: Don't NPE if we can't access hal-related tracepoint files." into oc-dev
am: 638fc1f809

Change-Id: I5c6fa1f459c84c45d00f1047aee09fdf921cf345

7 years agoMerge "atrace: Don't NPE if we can't access hal-related tracepoint files." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 01:06:26 +0000 (01:06 +0000)]
Merge "atrace: Don't NPE if we can't access hal-related tracepoint files." into oc-dev

7 years agoMerge "Add atrace_userdebug.rc to enable some tracepoints for userdebug only." into...
Carmen Jackson [Tue, 18 Apr 2017 23:47:54 +0000 (23:47 +0000)]
Merge "Add atrace_userdebug.rc to enable some tracepoints for userdebug only." into oc-dev
am: 932dc64614

Change-Id: I944f3c8c0b1a1f4c191cf616ddff22f67d4f2b14

7 years agoMerge "Add atrace_userdebug.rc to enable some tracepoints for userdebug only." into...
Carmen Jackson [Tue, 18 Apr 2017 23:37:48 +0000 (23:37 +0000)]
Merge "Add atrace_userdebug.rc to enable some tracepoints for userdebug only." into oc-dev

7 years agoDO NOT MERGE: SF: disable HW vsync while dozing
Zheng Zhang [Fri, 17 Mar 2017 10:19:39 +0000 (11:19 +0100)]
DO NOT MERGE: SF: disable HW vsync while dozing

It cancels any in-progress resync when display goes to sleep, then
it avoids any unexpected wake up due to delayed frames once device
has just switched to ambient mode.

In DOZE_SUSPEND, screen displays a still image in a self-refresh mode,
so there is no need to keep aligned with HW vsync. At the opposite, DOZE
mode is used to refresh the screen in Ambient (i.e. watchface refresh,
nofications, app updates in ambi-active), hence resync SF to HW vsync.

Bug: 35998607
Bug: 36215242
Change-Id: I22cd8f84e9aca04b4f657fe07785751cf31a7c68

7 years agoatrace: Don't NPE if we can't access hal-related tracepoint files.
Carmen Jackson [Tue, 18 Apr 2017 22:37:57 +0000 (15:37 -0700)]
atrace: Don't NPE if we can't access hal-related tracepoint files.

This currently NPEs when Traceur attempts to start a trace.
Based on b/34242478, this is currently expected and we should fail
gracefully instead.

Bug: 37281960

Test: Starting a trace using Traceur on a userdebug build succeeds.

Change-Id: I082d5750625dec0e1db4a1dd341dc332d8dd752f

7 years agoMerge "Fix query management in GpuProfiler" into oc-dev
Steven Thomas [Tue, 18 Apr 2017 22:43:22 +0000 (22:43 +0000)]
Merge "Fix query management in GpuProfiler" into oc-dev
am: 511544f212

Change-Id: I854ef8bf9424a06b36e98315237868d4263f0ce2

7 years agoMerge "Fix query management in GpuProfiler" into oc-dev
Steven Thomas [Tue, 18 Apr 2017 22:25:39 +0000 (22:25 +0000)]
Merge "Fix query management in GpuProfiler" into oc-dev

7 years agoMerge "[vr] Add DVR API to get native handle for buffers" into oc-dev
John Bates [Tue, 18 Apr 2017 22:21:26 +0000 (22:21 +0000)]
Merge "[vr] Add DVR API to get native handle for buffers" into oc-dev
am: 1ab06328bb

Change-Id: I3271aa728a4ed73469a7278dbcd51a0d3644db92

7 years agoMerge "[vr] Add DVR API to get native handle for buffers" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 22:08:09 +0000 (22:08 +0000)]
Merge "[vr] Add DVR API to get native handle for buffers" into oc-dev

7 years agoMerge "SurfaceFlinger: Inherit non-transform Scaling from parent." into oc-dev
Rob Carr [Tue, 18 Apr 2017 20:24:21 +0000 (20:24 +0000)]
Merge "SurfaceFlinger: Inherit non-transform Scaling from parent." into oc-dev
am: 08260b881a

Change-Id: Ie65a136803007c3d8cde8e909f913399764de557

7 years agoMerge "SurfaceFlinger: Inherit non-transform Scaling from parent." into oc-dev
Rob Carr [Tue, 18 Apr 2017 20:10:44 +0000 (20:10 +0000)]
Merge "SurfaceFlinger: Inherit non-transform Scaling from parent." into oc-dev

7 years agoMerge "Move VR HWC HAL impl to vr/hardware_composer and cleanup deps" into oc-dev
Daniel Nicoara [Tue, 18 Apr 2017 19:52:11 +0000 (19:52 +0000)]
Merge "Move VR HWC HAL impl to vr/hardware_composer and cleanup deps" into oc-dev
am: 73fe6115e4

Change-Id: I468ed2fa3a4502b825c265a88c91dc00f0a9690c

7 years agoMerge "Expose EGL_ANDROID_native_fence_sync." into oc-dev
Craig Donner [Tue, 18 Apr 2017 19:42:16 +0000 (19:42 +0000)]
Merge "Expose EGL_ANDROID_native_fence_sync." into oc-dev
am: 44f7bbe6d3

Change-Id: I7b6885fc66e9ae3f99015553842f18cc6f218e43

7 years agoReflect removal of vndservice_manager SELinux object manager.
Dan Cashman [Tue, 18 Apr 2017 18:17:49 +0000 (11:17 -0700)]
Reflect removal of vndservice_manager SELinux object manager.

Bug: 34454312
Bug: 36052864
Test: policy builds and device boots.
Change-Id: Ic2aebb15f4ae9085bf2cb440cceef6b4beb5ddc5