OSDN Git Service
Wei Wang [Fri, 21 Jul 2017 06:10:49 +0000 (06:10 +0000)]
SurfaceFlinger: Set property in StartPropertySetThread during init
am:
f9b05eeb5f
Change-Id: I3433d57d6e929f57202c4d9a68a6a09845474166
Wei Wang [Thu, 20 Jul 2017 03:59:39 +0000 (20:59 -0700)]
SurfaceFlinger: Set property in StartPropertySetThread during init
This is similar to ag/
1849505/ (see b/
34499826), which by setting
property in a separate thread, that CL aims to avoid slow initialization
in SurfaceFlinger::init where SurfaceFlinger is waiting on
property_service.
There is new property_set() call added, and this CL is to move it to the
StartPropertySetThread.
Bug:
63844978
Test: on taimen with simulated delay ag/
2562492/
Change-Id: I31547cb5e75f44eac635386b3cf345a44931c78f
Ashutosh Joshi [Thu, 20 Jul 2017 01:25:58 +0000 (01:25 +0000)]
Use appendFormat instead of append when passing arguments am:
53e5aa93fa
am:
fab65a0d34
Change-Id: Ic78a7fff83919089330cbdebeffd5a9aebb0243b
Ashutosh Joshi [Thu, 20 Jul 2017 01:20:27 +0000 (01:20 +0000)]
Use appendFormat instead of append when passing arguments
am:
53e5aa93fa
Change-Id: Ia3ad9c8ddbef9937542feca396d05f8dca136125
Calin Juravle [Fri, 14 Jul 2017 05:50:21 +0000 (22:50 -0700)]
Replace dexopt shared libraries with class loader context
Pass the class loader context to dex2oat with --class-loader-context
instead of using the runtime -cp argument.
Test: adb shell cmd package compile a_split_test_apk
Bug:
38138251
Change-Id: I2e483969af8adf97291aa94f42e6da9ee5f1716b
TreeHugger Robot [Wed, 19 Jul 2017 21:54:51 +0000 (21:54 +0000)]
Merge "sf: Defer DispSync initialization"
Saurabh Shah [Thu, 13 Jul 2017 17:45:07 +0000 (10:45 -0700)]
sf: Defer DispSync initialization
Some DispSync members are initialized based on uninitialized static
members of sf, that are in turn initialized in sf constructor. Fix
the sequence by deferring DispSync initialization.
Current sequence:
sf constructor|-> DispSync constructor -> Access static sf members
|-> Initialize sf static members
New sequence:
sf constructor|-> DispSync constructor
|-> Initialize sf static members
|-> DispSync init -> Access static sf members
Bug:
63671437
Test: "present fences are ignored" not present in SF dumpsys
Change-Id: I618d2bbbbd4e39fc382e67f85dd8d637dd82cf38
Ashutosh Joshi [Wed, 19 Jul 2017 16:52:57 +0000 (09:52 -0700)]
Use appendFormat instead of append when passing arguments
Using append crashes the system.
Bug:
63804323
Test: On a contrived build with no sensors, dumpsys does not crash the
sensorservice.
Change-Id: I4ee942d58af8347388f4f5f71c48da339c1cf7e7
Dan Albert [Wed, 19 Jul 2017 05:53:01 +0000 (05:53 +0000)]
Merge "_FILE_OFFSET_BITS=64 support for asset_manager.h." am:
47c479d9b9 am:
0f169dac29 am:
1cb4f68592
am:
6468e8c874
Change-Id: I297ddaf5f21a84c00104c16b70e727b3f4b1f9fa
Dan Albert [Wed, 19 Jul 2017 05:50:01 +0000 (05:50 +0000)]
Merge "_FILE_OFFSET_BITS=64 support for asset_manager.h." am:
47c479d9b9 am:
0f169dac29
am:
1cb4f68592
Change-Id: I70e186b1f6e3b4dee6901435587c991b0307a48c
Dan Albert [Wed, 19 Jul 2017 05:47:29 +0000 (05:47 +0000)]
Merge "_FILE_OFFSET_BITS=64 support for asset_manager.h." am:
47c479d9b9
am:
0f169dac29
Change-Id: I52a2b05119df7ebda3084074aa4f6584fe53e9d1
Dan Albert [Wed, 19 Jul 2017 05:44:19 +0000 (05:44 +0000)]
Merge "_FILE_OFFSET_BITS=64 support for asset_manager.h."
am:
47c479d9b9
Change-Id: I8fcdb3ff9680b1fb7cc41a7bb5e91b71fd16abc5
Treehugger Robot [Wed, 19 Jul 2017 05:37:13 +0000 (05:37 +0000)]
Merge "_FILE_OFFSET_BITS=64 support for asset_manager.h."
Hsin-Yi Chen [Wed, 19 Jul 2017 04:00:25 +0000 (04:00 +0000)]
Merge "Merge "Add target binderDriverInterfaceTest_IPC_32" into oc-dev am:
72cce2f70a am:
de1ad9de0c" into oc-dr1-dev-plus-aosp
am:
67b2424559
Change-Id: Icab64a7718c9f6d6b57a422a26736bab7a7dd3c6
Hsin-Yi Chen [Wed, 19 Jul 2017 04:00:08 +0000 (04:00 +0000)]
Merge "Add binderLibTest_IPC_32 am:
75be4a1000 am:
973ff48d4e" into oc-dr1-dev-plus-aosp
am:
fcff4bb16d
Change-Id: I9c531beeca730cd5ce1219f1aea42cd0f1344059
Hsin-Yi Chen [Wed, 19 Jul 2017 03:59:51 +0000 (03:59 +0000)]
Merge "Add target binderDriverInterfaceTest_IPC_32" into oc-dev am:
72cce2f70a am:
e97e5d9556
am:
fb8eff13e9
Change-Id: Ic189e0685e95fa8658b913ea47ca8944360cc96a
Hsin-Yi Chen [Wed, 19 Jul 2017 03:59:35 +0000 (03:59 +0000)]
Add binderLibTest_IPC_32 am:
75be4a1000 am:
3274de62d4
am:
3ba7fd6ea8
Change-Id: Iac14e1a40a7d9b244cd9d8160a26ac5cbeaa9893
Android Build Merger (Role) [Wed, 19 Jul 2017 03:57:53 +0000 (03:57 +0000)]
Merge "Merge "Add target binderDriverInterfaceTest_IPC_32" into oc-dev am:
72cce2f70a am:
de1ad9de0c" into oc-dr1-dev-plus-aosp
Hsin-Yi Chen [Wed, 19 Jul 2017 03:57:43 +0000 (03:57 +0000)]
Merge "Add target binderDriverInterfaceTest_IPC_32" into oc-dev am:
72cce2f70a
am:
de1ad9de0c
Change-Id: Ib974b6a33a5d3c3fb2bafdd5e718a0911ddaed1a
Android Build Merger (Role) [Wed, 19 Jul 2017 03:57:39 +0000 (03:57 +0000)]
Merge "Add binderLibTest_IPC_32 am:
75be4a1000 am:
973ff48d4e" into oc-dr1-dev-plus-aosp
Hsin-Yi Chen [Wed, 19 Jul 2017 03:57:29 +0000 (03:57 +0000)]
Add binderLibTest_IPC_32 am:
75be4a1000
am:
973ff48d4e
Change-Id: I0c59ad1f2fdab199ed541dd58be1822c9dd2f858
Hsin-Yi Chen [Wed, 19 Jul 2017 03:57:21 +0000 (03:57 +0000)]
Merge "Add target binderDriverInterfaceTest_IPC_32" into oc-dev am:
72cce2f70a
am:
e97e5d9556
Change-Id: Ia2573b6c9b78413fad4be1b7ddb3ea3841b9a426
Hsin-Yi Chen [Wed, 19 Jul 2017 03:57:05 +0000 (03:57 +0000)]
Add binderLibTest_IPC_32 am:
75be4a1000
am:
3274de62d4
Change-Id: Iaf348e731bc397460a2e8d8354b62b327d70c722
Hsin-Yi Chen [Wed, 19 Jul 2017 03:54:49 +0000 (03:54 +0000)]
Merge "Add target binderDriverInterfaceTest_IPC_32" into oc-dev
am:
72cce2f70a
Change-Id: I32f4bf8987679def643f2a4d848878f545dbf130
Hsin-Yi Chen [Wed, 19 Jul 2017 03:54:27 +0000 (03:54 +0000)]
Merge "Add target binderDriverInterfaceTest_IPC_32" into oc-dev
am:
72cce2f70a
Change-Id: I7c81227c25df80581ef40b40da84915abcb3b7e9
Hsin-Yi Chen [Wed, 19 Jul 2017 03:54:05 +0000 (03:54 +0000)]
Add binderLibTest_IPC_32
am:
75be4a1000
Change-Id: I1ad068367e6e3c0ddbf44825bbe4e1aadee1948a
Hsin-Yi Chen [Wed, 19 Jul 2017 03:54:04 +0000 (03:54 +0000)]
Add binderLibTest_IPC_32
am:
75be4a1000
Change-Id: I47b598881baf7cb4520b0fad05a68ec741201a27
Hsin-Yi Chen [Wed, 19 Jul 2017 03:51:43 +0000 (03:51 +0000)]
Merge "Add target binderDriverInterfaceTest_IPC_32" into oc-dev
Manoj Gupta [Wed, 19 Jul 2017 01:52:27 +0000 (01:52 +0000)]
Merge "Fix clang static analyzer warnings." am:
411414c916 am:
c95b45c72f am:
37146b7b02
am:
ef5e1bb46e
Change-Id: Ia9ca864825904017a05c502a15ce970802ea4dc3
Manoj Gupta [Wed, 19 Jul 2017 01:40:30 +0000 (01:40 +0000)]
Merge "Fix clang static analyzer warnings." am:
411414c916 am:
c95b45c72f
am:
37146b7b02
Change-Id: I80d0a661cfa8da9d19609dffe7beb9688d82535a
Manoj Gupta [Wed, 19 Jul 2017 01:38:28 +0000 (01:38 +0000)]
Merge "Fix clang static analyzer warnings." am:
411414c916
am:
c95b45c72f
Change-Id: Iaf350d2172258a8c0425cb8970b197a1eacb86c4
Manoj Gupta [Wed, 19 Jul 2017 01:36:29 +0000 (01:36 +0000)]
Merge "Fix clang static analyzer warnings."
am:
411414c916
Change-Id: Icb0a337935cdcdccd5d66702188e7e53cf319c35
Treehugger Robot [Wed, 19 Jul 2017 01:27:18 +0000 (01:27 +0000)]
Merge "Fix clang static analyzer warnings."
Manoj Gupta [Tue, 18 Jul 2017 22:57:14 +0000 (15:57 -0700)]
Fix clang static analyzer warnings.
Fix the following warning:
Potential leak of memory pointed to by 'b'
[clang-analyzer-cplusplus.NewDeleteLeaks]
Bug: b/
27101951
Test:Warning is gone.
Change-Id: If898bae71771f325c97777a19af0c0cf2e8a0400
Manoj Gupta [Tue, 18 Jul 2017 23:23:44 +0000 (23:23 +0000)]
Merge "Fix clang static anaylzer warnings." am:
a97d58a21b am:
747d847ff1 am:
802529f46d
am:
e7c634a4e5
Change-Id: I17ac8c3b889c78234315b176230a66d650bad733
Manoj Gupta [Tue, 18 Jul 2017 22:35:58 +0000 (22:35 +0000)]
Merge "Fix clang static anaylzer warnings." am:
a97d58a21b am:
747d847ff1
am:
802529f46d
Change-Id: I497397026dafe63a912927cbd1d8a0ca327399f4
Steven Moreland [Tue, 18 Jul 2017 22:06:08 +0000 (22:06 +0000)]
Merge "Reference nativehelper/jni.h as jni.h" am:
28c9177f66 am:
6ac4d2a42b am:
9cd659c8dc
am:
7ec584b142
Change-Id: Id80fe1c03e327153a8ecb73cb9953f43b3ed8cfb
Steven Moreland [Tue, 18 Jul 2017 21:52:06 +0000 (21:52 +0000)]
Merge "Reference nativehelper/jni.h as jni.h" am:
28c9177f66 am:
6ac4d2a42b
am:
9cd659c8dc
Change-Id: Iaf417e768c22335df1720b13e6583006a9a6c6c4
Ian Elliott [Tue, 18 Jul 2017 21:48:11 +0000 (21:48 +0000)]
Merge "resolve merge conflicts of
f8187f4e1 to oc-dr1-dev-plus-aosp" into oc-dr1-dev-plus-aosp
am:
72f1824c46 -s ours
Change-Id: Id0de85cb32bfc7d90cf048639c4d3a6a21d63a54
Chia-I Wu [Tue, 18 Jul 2017 21:46:29 +0000 (21:46 +0000)]
surfaceflinger: fix a nullptr dereference am:
0a68b461d3
am:
b111e153d9
Change-Id: I31ce55db7b94082405d54b730f98c7875c1c85e5
TreeHugger Robot [Tue, 18 Jul 2017 21:45:42 +0000 (21:45 +0000)]
Merge "resolve merge conflicts of
f8187f4e1 to oc-dr1-dev-plus-aosp" into oc-dr1-dev-plus-aosp
Chia-I Wu [Tue, 18 Jul 2017 21:44:12 +0000 (21:44 +0000)]
surfaceflinger: fix a nullptr dereference
am:
0a68b461d3
Change-Id: I4f449e515a8f18335d711b5e145537435dabe27f
Ian Elliott [Tue, 18 Jul 2017 20:41:28 +0000 (14:41 -0600)]
resolve merge conflicts of
f8187f4e1 to oc-dr1-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Merged-In: I5f908f88923378e4d121dfd5fbc11e4f210cbb2a
Change-Id: I29912e8c2d61f7711b201deaf0e35cebb0bbf28a
Manoj Gupta [Tue, 18 Jul 2017 20:31:50 +0000 (20:31 +0000)]
Merge "Fix clang static anaylzer warnings." am:
a97d58a21b
am:
747d847ff1
Change-Id: Ic74cc49d92fc6a661be461bca19b77b45e9a3a4e
Manoj Gupta [Tue, 18 Jul 2017 20:23:07 +0000 (20:23 +0000)]
Merge "Fix clang static anaylzer warnings."
am:
a97d58a21b
Change-Id: Id66bd914d41190df5c3dc29968fab5b7f942851d
Steven Moreland [Tue, 18 Jul 2017 20:16:08 +0000 (20:16 +0000)]
Merge "Reference nativehelper/jni.h as jni.h" am:
28c9177f66
am:
6ac4d2a42b
Change-Id: Id1fd8abd06cfb80ccae1304d2a3005b27ba95008
Steven Moreland [Tue, 18 Jul 2017 20:05:57 +0000 (20:05 +0000)]
Merge "Reference nativehelper/jni.h as jni.h"
am:
28c9177f66
Change-Id: If460edb57fbd4678cfe932eb76b0931024f17f80
Ian Elliott [Tue, 18 Jul 2017 20:03:22 +0000 (20:03 +0000)]
resolve merge conflicts of
8a094116b to stage-aosp-master
am:
bb7e1b68e6
Change-Id: I453a7aaf28c20634337ac70ea6586d5a10d4736c
Chia-I Wu [Tue, 18 Jul 2017 18:30:05 +0000 (11:30 -0700)]
surfaceflinger: fix a nullptr dereference
When the child layer latched a buffer but the fixed-size parent
layer never did (for reasons such as no buffer queued or buffer got
rejected), we could end up with p->mActiveBuffer being nullptr.
Bug:
62996512
Test: manual (I could never repro anyway)
Change-Id: Id7e4c7037633b8a37039baa6e8a306e55170b894
Dan Albert [Mon, 17 Jul 2017 21:03:29 +0000 (14:03 -0700)]
_FILE_OFFSET_BITS=64 support for asset_manager.h.
Rename off_t based functions to their 64-bit equivalents if we're in
LP32 with a 64-bit off_t.
We can safely do this for all supported API levels now since API 13 is
no longer supported. Clean up all the guards for that API level while
I'm here.
Test: make checkbuild
Bug: https://github.com/android-ndk/ndk/issues/459
Change-Id: I7032e94c7288f87b4895411079216f0ac2cab6bc
Shubham Ajmera [Tue, 18 Jul 2017 17:09:02 +0000 (17:09 +0000)]
Merge "Check dexopt needed for secondary dex while downgrading"
Treehugger Robot [Tue, 18 Jul 2017 08:55:28 +0000 (08:55 +0000)]
Merge "Fix clang static anaylzer warnings."
TreeHugger Robot [Tue, 18 Jul 2017 05:30:23 +0000 (05:30 +0000)]
Merge "Add android version guard to ASensorManager_getInstanceForPackage"
TreeHugger Robot [Tue, 18 Jul 2017 03:54:39 +0000 (03:54 +0000)]
Merge "Make vulkan build with the VNDK."
Peng Xu [Mon, 17 Jul 2017 23:40:50 +0000 (16:40 -0700)]
Add android version guard to ASensorManager_getInstanceForPackage
This function is added to header file since 2015 but the corresponding
function is not exported through libandroid.map file until O. Thus,
it make sense to gate the usage to ANDROID_O and forward.
ASensorManager_getInstance is deprecated accordingly.
Bug:
63639195
Test: compiles
Change-Id: Ib2fdb635ffca9ec629dd487bd377aaa98afa4359
Treehugger Robot [Tue, 18 Jul 2017 02:47:33 +0000 (02:47 +0000)]
Merge "Reference nativehelper/jni.h as jni.h"
Steven Thomas [Tue, 18 Jul 2017 00:25:24 +0000 (00:25 +0000)]
Merge "Fix concurrent writes to the hardware composer" into oc-dr1-dev am:
87cd11513f
am:
ad59d3ad0b
Change-Id: Ib0e1c3a2804d2b77c7f41adcca65b4de926ae24b
Steven Thomas [Tue, 18 Jul 2017 00:23:24 +0000 (00:23 +0000)]
Merge "Fix concurrent writes to the hardware composer" into oc-dr1-dev
am:
87cd11513f
Change-Id: I00d0a5267913c284eddd97bfe7eefb15b9ee403e
Steven Thomas [Tue, 18 Jul 2017 00:19:04 +0000 (00:19 +0000)]
Merge "Fix concurrent writes to the hardware composer" into oc-dr1-dev
Steven Thomas [Mon, 17 Jul 2017 20:59:23 +0000 (13:59 -0700)]
Fix concurrent writes to the hardware composer
Stale hardware composer layers were causing concurrent writes to the
Composer object from the surface flinger and vr flinger threads, a big
no-no. The concurrent writes would sometimes stomp on each other,
causing the hardware composer service to fail to read the command buffer
containing surface flinger's composer commands, leading to all sorts of
issues.
Bug:
62925812
Test: Locally added logs to surface flinger to catch the concurrent
writes, and confirmed the logs are no longer present with this patch
applied. Went through a bunch of sleep/wake cycles and confirmed the
device continues to function normally.
Change-Id: I70929c4a3c71142f5e9083cac294c122d127aa27
Corey Tabaka [Mon, 17 Jul 2017 21:46:43 +0000 (21:46 +0000)]
Merge "Fix memory leak." into oc-dr1-dev am:
02b37f7594
am:
5b7045ee2d
Change-Id: I1960f76a9d237bed8b0cb9d3be109aedac7b697c
Corey Tabaka [Mon, 17 Jul 2017 21:44:14 +0000 (21:44 +0000)]
Merge "Fix memory leak." into oc-dr1-dev
am:
02b37f7594
Change-Id: If382353979a9a31c2d46fd7398ec59b086d97ac6
TreeHugger Robot [Mon, 17 Jul 2017 21:35:38 +0000 (21:35 +0000)]
Merge "Fix memory leak." into oc-dr1-dev
Ian Elliott [Mon, 17 Jul 2017 21:05:03 +0000 (15:05 -0600)]
resolve merge conflicts of
8a094116b to stage-aosp-master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I87e2955a7e44aa28eafacd44d404a23a1ae2e4a0
Treehugger Robot [Mon, 17 Jul 2017 19:54:28 +0000 (19:54 +0000)]
Merge "Update the Khronos EGL and GLES* header files."
Ian Elliott [Mon, 17 Jul 2017 19:50:45 +0000 (19:50 +0000)]
Merge "Update the Khronos EGL and GLES* header files."
Steven Moreland [Mon, 17 Jul 2017 19:08:45 +0000 (12:08 -0700)]
Reference nativehelper/jni.h as jni.h
nativehelper will no longer export nativehelper/jni.h so that everywhere
can reference this file with the same name.
Bug:
63762847
Change-Id: Ifc3a3feb7578fd1352c25a3f55884ab75f337039
Steven Moreland [Mon, 17 Jul 2017 18:49:21 +0000 (11:49 -0700)]
Make vulkan build with the VNDK.
When the vndk is enabled (BOARD_VNDK_VERSION=current),
vendor libraries must only link against vendor variants
in the build system. This also means that they receive
restricted sets of headers and that automatic global
headers are restricted.
Test: build vulkan with BOARD_VNDK_VERSION=current
Bug:
37342627
Change-Id: I9690635e4654e053cf35a3941aff14f4f7b46491
Ian Elliott [Thu, 6 Jul 2017 19:02:32 +0000 (13:02 -0600)]
Update the Khronos EGL and GLES* header files.
The latest Khronos header file contents are used. Some
not-yet-registered Android extensions are added in, along with a few
data types that were accidentally deleted from "GLES/gl.h". Note that
Khronos rearranged some of the content.
In addition, a repeat of a 2012 fix was required to avoid ANativeWindow
being declared twice during the compilation of source files which also
include "window.h". Both "window.h" and "native_window.h" contain the
following line: typedef struct ANativeWindow ANativeWindow;
I tested this by building Android as well as other source that includes
"window.h", and carefully compared diff's of the old and new content.
Bug: None
Test: Built Android
Merged-In: I5f908f88923378e4d121dfd5fbc11e4f210cbb2a
Change-Id: Ic40276fc8bc0b7120a11db34c3e59ebeec9c9f97
Ian Elliott [Thu, 6 Jul 2017 19:02:32 +0000 (13:02 -0600)]
Update the Khronos EGL and GLES* header files.
The latest Khronos header file contents are used. Some
not-yet-registered Android extensions are added in, along with a few
data types that were accidentally deleted from "GLES/gl.h". Note that
Khronos rearranged some of the content.
In addition, a repeat of a 2012 fix was required to avoid ANativeWindow
being declared twice during the compilation of source files which also
include "window.h". Both "window.h" and "native_window.h" contain the
following line: typedef struct ANativeWindow ANativeWindow;
I tested this by building Android as well as other source that includes
"window.h", and carefully compared diff's of the old and new content.
Bug: None
Test: Built Android
Change-Id: I5f908f88923378e4d121dfd5fbc11e4f210cbb2a
Hsin-Yi Chen [Wed, 7 Jun 2017 10:05:05 +0000 (18:05 +0800)]
Add target binderDriverInterfaceTest_IPC_32
Add the target binderDriverInterfaceTest_IPC_32 which tests 32-bit
kernel and is independent from product_variables.
Bug:
62124459
Test: vts-tradefed run commandAndExit vts -m VtsKernelBinderTest
Change-Id: Ifad9ef24c35060179650955e24d1f046af7b7385
(cherry picked from commit
6929575affc7d0037c79a45b2cb0ef7c6020581a)
Hsin-Yi Chen [Thu, 6 Jul 2017 03:40:20 +0000 (11:40 +0800)]
Add binderLibTest_IPC_32
1) Add product_variables to binderLibTest because the test case
CheckHandleZeroBinderHighBitsZeroCookie uses binder data structure.
2) Add binderLibTest_IPC_32 which always compiles the test program for
32-bit binder.
Bug:
63307240
Bug:
62366937
Test: vts-tradefed run commandAndExit vts -m VtsKernelBinderTest
Change-Id: I40c738a039459fbfece9689012249ae7ea93df9d
(cherry picked from commit
f6edfc1b096cba544227d85b0ea3f38a4dd11af5)
Shubham Ajmera [Thu, 22 Jun 2017 18:10:27 +0000 (11:10 -0700)]
Check dexopt needed for secondary dex while downgrading
Test: make otapreopt
Test: manual
* Remove the check in the code that allows downgrade only when
the space is low on the device.
* adb root
* Set pm.dexopt_unopt_after_inactive_days to 600
* Make sure the current time of the device is correctly set
* Install 2 non system apps - B, C
* Downgrade B to extract
* Upgrade a system apps to speed-profile - E
* Downgrade a system app to quicken - G
* adb shell cmd package bg-dexopt-job
Expected Results:
* Extract - B
* Verify - C
* There should not be any entries for apps E an G
in dalvik_cache
For secondary dex:
* compile googlequicksearchbox to everything.
* run background dexopt service for secondary dex.
* verify the compiler filter for the corresponding odex files.
Bug:
36598475
Change-Id: I6ad40e2c53433326f83c2589646d94ba555400b2
Dan Stoza [Fri, 14 Jul 2017 20:48:46 +0000 (20:48 +0000)]
Merge changes I23e6f088,I800208e8,I55123a7a into oc-dr1-dev am:
607b5d1b40
am:
1042a22877
Change-Id: I4c5e092f7119fb9a90e791dd31fbdb4f56b811cd
Dan Stoza [Fri, 14 Jul 2017 20:45:47 +0000 (20:45 +0000)]
Merge changes I23e6f088,I800208e8,I55123a7a into oc-dr1-dev
am:
607b5d1b40
Change-Id: I51b25a25bae1517f64edf9ce072244addd1b3544
Dan Stoza [Fri, 14 Jul 2017 20:38:46 +0000 (20:38 +0000)]
Merge changes I23e6f088,I800208e8,I55123a7a into oc-dr1-dev
* changes:
SF: Move screenshot Surface ops off main thread
SF: Add ImageHolder for screenshot code
SF: Add WindowDisconnector for screenshot code
Jesse Hall [Fri, 14 Jul 2017 19:52:47 +0000 (19:52 +0000)]
Merge "Add GraphicBufferMapper::preloadHal" into oc-dr1-dev am:
2f83627449
am:
6645d88787
Change-Id: If7a5617abdf33ad055dec1a46586e50813a8c151
Jesse Hall [Fri, 14 Jul 2017 19:40:55 +0000 (19:40 +0000)]
Merge "Add GraphicBufferMapper::preloadHal" into oc-dr1-dev
am:
2f83627449
Change-Id: I0462d321276c9315fba82d8cc97b9889c0e5a88c
TreeHugger Robot [Fri, 14 Jul 2017 19:33:18 +0000 (19:33 +0000)]
Merge "Add GraphicBufferMapper::preloadHal" into oc-dr1-dev
Corey Tabaka [Fri, 14 Jul 2017 18:43:49 +0000 (11:43 -0700)]
Fix memory leak.
A missing destructor caused a memory leak in the UDS backend for PDX.
Add the destructor and use std namespace for realloc/malloc/free.
Bug:
63026993
Test: Ran pdx_benchmarks for 400M iterations before and after fix.
Confirmed that heap grows before fix and is stable after fix.
Confirmed that VR service reported in the bug now have stable
memory use.
Change-Id: If870a5db50dfaf5f212285824a1803f34acdabc7
Dan Stoza [Thu, 1 Jun 2017 23:40:30 +0000 (16:40 -0700)]
SF: Move screenshot Surface ops off main thread
This change rearranges the various operations that correspond to
capturing a screenshot such that all of the Surface-related ones
(connect, dequeue, queue, disconnect) are performed on the incoming
Binder thread rather than on SurfaceFlinger's main thread. This has two
major benefits:
1) It reduces the amount of time that the SurfaceFlinger main thread
is blocked while performing a screenshot, often by a considerable
amount. This should reduce the risk of jank when screenshots are
taken, such as for task snapshots during window transitions.
2) It means that the SurfaceFlinger main thread is not susceptible to
being blocked by a badly-performing BufferQueue consumer. This
also enables us to remove the GraphicProducerWrapper class, which
was previously performing a similar role.
Finally, this change also adds a mechanism that detects if the
screenshot would have been performed between the two phases of normal
SurfaceFlinger operation (invalidate and refresh), and defers it if
this condition is detected. This should further reduce the risk of jank
as a screenshot will only occur between frames rather than in the
middle of a frame.
Bug:
62257775
Test: SurfaceFlinger_test and manual verification that screenshots
still work
Change-Id: I23e6f088b4d6e477472dfc2a6c36ef3dd930c047
Jiwen 'Steve' Cai [Fri, 14 Jul 2017 02:02:40 +0000 (02:02 +0000)]
Merge "Fix ALOGE_IF log in bufferhubqueue" into oc-dr1-dev am:
c3e0cdb28a
am:
05a8133967
Change-Id: I8fec5db7cc3248c8142f08f9fd896d6bd16dd5b2
Jiwen 'Steve' Cai [Fri, 14 Jul 2017 01:59:40 +0000 (01:59 +0000)]
Merge "Fix ALOGE_IF log in bufferhubqueue" into oc-dr1-dev
am:
c3e0cdb28a
Change-Id: I5ed228cd0f98a6324b799b506377df750238e549
TreeHugger Robot [Fri, 14 Jul 2017 01:53:23 +0000 (01:53 +0000)]
Merge "Fix ALOGE_IF log in bufferhubqueue" into oc-dr1-dev
Peng Xu [Thu, 13 Jul 2017 23:19:25 +0000 (23:19 +0000)]
Merge "Add sensor HAL process into dump list" into oc-dr1-dev am:
fec340ea0f
am:
11c7026ee7
Change-Id: I17c398d623f09098b44e5332824f235af62b45b3
Peng Xu [Thu, 13 Jul 2017 23:07:02 +0000 (23:07 +0000)]
Merge "Add sensor HAL process into dump list" into oc-dr1-dev
am:
fec340ea0f
Change-Id: I942e3fc98bea55a826e81a90581a5e09ec825742
TreeHugger Robot [Thu, 13 Jul 2017 23:01:06 +0000 (23:01 +0000)]
Merge "Add sensor HAL process into dump list" into oc-dr1-dev
Tomasz Wasilczyk [Thu, 13 Jul 2017 20:50:10 +0000 (20:50 +0000)]
Merge "Rename radio feature to broadcastradio."
Colin Cross [Thu, 13 Jul 2017 20:35:42 +0000 (20:35 +0000)]
Merge "Add getBinderKernelReferences" am:
4bd6f567d5 -s ours am:
6a505f7ce1 -s ours am:
5e1532a8ea -s ours
am:
bd736d3633 -s ours
Change-Id: I2f11893689ca488a01a4352e0afb799d8d8cbf32
Colin Cross [Thu, 13 Jul 2017 20:15:43 +0000 (20:15 +0000)]
Merge "Add getBinderKernelReferences" am:
4bd6f567d5 -s ours am:
6a505f7ce1 -s ours
am:
5e1532a8ea -s ours
Change-Id: I443175be02ff43cdd241b264129441c800aa6af0
Colin Cross [Thu, 13 Jul 2017 20:03:57 +0000 (20:03 +0000)]
Merge "Add getBinderKernelReferences" am:
4bd6f567d5 -s ours
am:
6a505f7ce1 -s ours
Change-Id: I97b5a1471fbf262765869cdf0635dc3d04f723df
Colin Cross [Thu, 13 Jul 2017 19:55:08 +0000 (19:55 +0000)]
Merge "Add getBinderKernelReferences"
am:
4bd6f567d5 -s ours
Change-Id: I42dcecfe9d49d60c1552bdb597a2f3c2001fd7ed
Colin Cross [Thu, 13 Jul 2017 19:41:25 +0000 (19:41 +0000)]
Merge "Add getBinderKernelReferences"
TreeHugger Robot [Thu, 13 Jul 2017 16:58:54 +0000 (16:58 +0000)]
Merge "Couple libbatteryservice headers with module."
Colin Cross [Thu, 13 Jul 2017 16:16:31 +0000 (16:16 +0000)]
Add getBinderKernelReferences am:
9d45ccc057 am:
e318eb1af8
am:
41b79fe3ad -s ours
Change-Id: I28dbdf97cc9e7e84b84519e3df67965bb65bf454
Colin Cross [Thu, 13 Jul 2017 16:11:01 +0000 (16:11 +0000)]
Add getBinderKernelReferences am:
9d45ccc057
am:
e318eb1af8
Change-Id: Ia369a97ba24b80d81d81feb6c53646b9f4747424
Colin Cross [Thu, 13 Jul 2017 16:08:34 +0000 (16:08 +0000)]
Add getBinderKernelReferences
am:
9d45ccc057
Change-Id: I5710b544cb1ce2d07d396aa302d313324d4e3e3b
Colin Cross [Wed, 21 Jun 2017 00:48:33 +0000 (17:48 -0700)]
Add getBinderKernelReferences
Add a wrapper for the new BINDER_GET_NODE_DEBUG_INFO ioctl for use by
libmemunreachable.
Test: memunreachable_binder_test
Bug:
28275695
Change-Id: Ic112584fa05071bd336974b3a18869077a69389b
Merged-In: Ic112584fa05071bd336974b3a18869077a69389b
(cherry picked from commit
b869cc94704d1a3d6226f471984eb33ff1bac7d5)
Colin Cross [Wed, 21 Jun 2017 00:48:33 +0000 (17:48 -0700)]
Add getBinderKernelReferences
Add a wrapper for the new BINDER_GET_NODE_DEBUG_INFO ioctl for use by
libmemunreachable.
Test: memunreachable_binder_test
Bug:
28275695
Change-Id: Ic112584fa05071bd336974b3a18869077a69389b
Merged-In: Ic112584fa05071bd336974b3a18869077a69389b
(cherry picked from commit
b869cc94704d1a3d6226f471984eb33ff1bac7d5)
TreeHugger Robot [Thu, 13 Jul 2017 11:51:09 +0000 (11:51 +0000)]
Merge "Add getBinderKernelReferences"