OSDN Git Service

android-x86/frameworks-native.git
8 years agoMerge "libgui should re-export libbinder include paths"
Treehugger Robot [Tue, 19 Apr 2016 15:23:56 +0000 (15:23 +0000)]
Merge "libgui should re-export libbinder include paths"

8 years agolibgui should re-export libbinder include paths
Christopher Wiley [Mon, 18 Apr 2016 22:50:56 +0000 (15:50 -0700)]
libgui should re-export libbinder include paths

libgui headers include headres from libbinder.  Therefor, consumers
need the complete include paths of both libries.

Bug: 27804373
Change-Id: I4c355f32fb58298059abf7c546b48e8b24b4dc3c
Test: Compiles when libbinder include path changes.

8 years agoMerge "Revert "libbinder: Replace ScopedFd with base::unique_fd""
Christopher Wiley [Mon, 18 Apr 2016 17:42:06 +0000 (17:42 +0000)]
Merge "Revert "libbinder: Replace ScopedFd with base::unique_fd""

8 years agoRevert "libbinder: Replace ScopedFd with base::unique_fd"
Christopher Wiley [Mon, 18 Apr 2016 17:40:56 +0000 (17:40 +0000)]
Revert "libbinder: Replace ScopedFd with base::unique_fd"

This reverts commit b12c5a67f9cf5a55f67c08bef898c48cefa9d03d.

Change-Id: I13ab8151376bc3bda7f96b92db7934720dc62215

8 years agoMerge "libbinder: Replace ScopedFd with base::unique_fd"
Treehugger Robot [Mon, 18 Apr 2016 15:35:30 +0000 (15:35 +0000)]
Merge "libbinder: Replace ScopedFd with base::unique_fd"

8 years agoMerge "Run 'nativeperms', remove Brillo #ifdef."
Jorge Lucangeli Obes [Thu, 14 Apr 2016 17:10:50 +0000 (17:10 +0000)]
Merge "Run 'nativeperms', remove Brillo #ifdef."

8 years agoMerge "Add missing include to choreographer header."
Martijn Coenen [Thu, 14 Apr 2016 09:52:26 +0000 (09:52 +0000)]
Merge "Add missing include to choreographer header."

8 years agoAdd missing include to choreographer header.
Michael Wright [Wed, 27 Jan 2016 00:05:54 +0000 (16:05 -0800)]
Add missing include to choreographer header.

Change-Id: Id497f3a505211309a08e100b369300e81f84b13b

8 years agoMerge "Add NDK Choreographer API headers"
Martijn Coenen [Thu, 14 Apr 2016 08:11:45 +0000 (08:11 +0000)]
Merge "Add NDK Choreographer API headers"

8 years agoMerge "libbinder: Remove templated binder::Status stream operator."
Treehugger Robot [Wed, 13 Apr 2016 23:53:25 +0000 (23:53 +0000)]
Merge "libbinder: Remove templated binder::Status stream operator."

8 years agoRun 'nativeperms', remove Brillo #ifdef.
Jorge Lucangeli Obes [Wed, 13 Apr 2016 23:42:34 +0000 (16:42 -0700)]
Run 'nativeperms', remove Brillo #ifdef.

Bug: 25663983
Change-Id: I5b9f9747695d75f84bdfb61f90d28e0e5fee612c

8 years agoMerge "Implement a stub permission server for Brillo tier 1."
Jorge Lucangeli Obes [Wed, 13 Apr 2016 22:45:19 +0000 (22:45 +0000)]
Merge "Implement a stub permission server for Brillo tier 1."

8 years agoImplement a stub permission server for Brillo tier 1.
Jorge Lucangeli Obes [Wed, 13 Apr 2016 18:01:25 +0000 (11:01 -0700)]
Implement a stub permission server for Brillo tier 1.

This will allow removing some existing hardcoded checks, like
https://cs.corp.google.com/android/frameworks/native/libs/binder/IServiceManager.cpp?l=70

Also add a .clang-format file for Android Framework C++ style.

Bug: 25663983
Change-Id: Icc4473a6f7b8c7395cdb167dc3fdbb2f076e5960

8 years agolibbinder: Remove templated binder::Status stream operator.
Ralph Nathan [Wed, 13 Apr 2016 19:42:06 +0000 (12:42 -0700)]
libbinder: Remove templated binder::Status stream operator.

The templated binder::Status stream operator doesn't work with gmock
because of ambiguous operator overloading. Limiting the stream operator
to just std::stringstream allows it to be used with gmock.

BUG=28171901
TEST=Compiles with gmock and CameraBinderTests

Change-Id: Ia674b68cbff4911b3f5cc3d8ee57d04a1d6cf6bf

8 years agolibbinder: Replace ScopedFd with base::unique_fd
Christopher Wiley [Mon, 11 Apr 2016 18:09:37 +0000 (11:09 -0700)]
libbinder: Replace ScopedFd with base::unique_fd

unique_fd is a more canonical construct going forward.

Bug: 27804373
Test: checkbuilds pass on aosp x86_64-eng

Change-Id: I8c1f202f1a6d646b5468f8c08fdcab7ea7f3178b

8 years agoMerge "Don't include <sys/sysconf.h>."
Josh Gao [Fri, 8 Apr 2016 17:59:15 +0000 (17:59 +0000)]
Merge "Don't include <sys/sysconf.h>."

8 years agoAdd NDK Choreographer API headers
Michael Wright [Mon, 7 Dec 2015 20:26:38 +0000 (15:26 -0500)]
Add NDK Choreographer API headers

Change-Id: Ib75d3341db4e48b328b7b92497a303c01c53fc90

8 years agoDon't include <sys/sysconf.h>.
Josh Gao [Fri, 8 Apr 2016 00:33:02 +0000 (17:33 -0700)]
Don't include <sys/sysconf.h>.

It doesn't exist in any standard, and is hence being moved. <unistd.h>
exposes everything in it already, anyway.

Bug: http://b/28067717
Change-Id: I258c607ef8799ec267151f424be27c72e295e3b6

8 years agoMerge "Split increments to silence a compiler warning."
Stephen Hines [Fri, 1 Apr 2016 20:07:51 +0000 (20:07 +0000)]
Merge "Split increments to silence a compiler warning."

8 years agoSplit increments to silence a compiler warning.
Stephen Hines [Fri, 1 Apr 2016 05:02:38 +0000 (22:02 -0700)]
Split increments to silence a compiler warning.

Upstream clang complains that this line may be a possible misuse of the
comma operator, since the result from "p++" is being discarded. Rather
than overcomplicate things with a static_cast<void>(), it is easiest to
just move this to a separate statement.

Change-Id: I5d005eb82a02430f691f99a2f1e8b7237320f84a

8 years agoMerge "Address const issues in preparation for libcxx rebase."
Dan Austin [Mon, 28 Mar 2016 21:40:50 +0000 (21:40 +0000)]
Merge "Address const issues in preparation for libcxx rebase."

8 years agoMerge "Switch GLES wrappers over to using Clang (and fix inline assembly)."
Stephen Hines [Mon, 28 Mar 2016 21:34:10 +0000 (21:34 +0000)]
Merge "Switch GLES wrappers over to using Clang (and fix inline assembly)."

8 years agoAddress const issues in preparation for libcxx rebase.
Dan Austin [Thu, 24 Mar 2016 19:19:25 +0000 (12:19 -0700)]
Address const issues in preparation for libcxx rebase.

Change-Id: I25a1e2946217049e9205589d6493e06362d2173b

8 years agoSwitch GLES wrappers over to using Clang (and fix inline assembly).
Stephen Hines [Wed, 23 Mar 2016 06:35:27 +0000 (23:35 -0700)]
Switch GLES wrappers over to using Clang (and fix inline assembly).

Bug: http://b/18003438

The GLES wrapper implementations make direct calls to their underlying
function without specifying that they are retaining the original
argument register(s). This change makes the retention of these argument
registers more explicit, and then removes the LOCAL_CLANG override,
since Clang no longer optimizes the code into a bad state.

We also switch to "naked" functions, so that we control all stack layout
information. This prevents us from accidentally still corrupting
arguments on x86 (and for other functions with many parameters).

Change-Id: I37f2ef4a697373388950b41f0a292393c9fcbac7

8 years agoMerge "Release resources when repeating dlopen-dlcose."
Casey Dahlin [Tue, 15 Mar 2016 21:12:34 +0000 (21:12 +0000)]
Merge "Release resources when repeating dlopen-dlcose."

8 years agoMerge "libbinder: Make null handling explicit for strong binders"
Christopher Wiley [Thu, 10 Mar 2016 23:32:15 +0000 (23:32 +0000)]
Merge "libbinder: Make null handling explicit for strong binders"

8 years agoRelease resources when repeating dlopen-dlcose.
zhongjie [Wed, 9 Mar 2016 07:05:04 +0000 (15:05 +0800)]
Release resources when repeating dlopen-dlcose.

When the libbinder.so is dlopen and dlclose many
times, we need to delete the pthread_key and
munmap the memory mapping.

Otherwise, it will crash as the leakage causes
the pthread_key or memory mapping surpass their
limit.

Change-Id: Ice64d4ef685c1f665350286f9e5ddf790beac236
Signed-off-by: zhongjie <zhongjie.shi@intel.com>
8 years agolibbinder: Make null handling explicit for strong binders
Christopher Wiley [Tue, 8 Mar 2016 18:49:51 +0000 (10:49 -0800)]
libbinder: Make null handling explicit for strong binders

Bug: 27156495
Test: Compiles

Change-Id: I62cade1761377a9ec2921a758307582552e4c2ac

8 years agoMerge ""#warning" conflict with -Werror"
Zhiquan Liu [Thu, 3 Mar 2016 15:41:49 +0000 (15:41 +0000)]
Merge ""#warning" conflict with -Werror"
am: e6b6843c5f

* commit 'e6b6843c5fc19976677706518c4875a78cc736bb':
  "#warning" conflict with -Werror

8 years agoMerge ""#warning" conflict with -Werror"
Dan Stoza [Thu, 3 Mar 2016 15:36:33 +0000 (15:36 +0000)]
Merge ""#warning" conflict with -Werror"

8 years ago"#warning" conflict with -Werror
Zhiquan Liu [Thu, 3 Mar 2016 07:24:41 +0000 (15:24 +0800)]
"#warning" conflict with -Werror

if code run #warning, it will have compile error.

Change-Id: Ic7f05cd722c14f3c5da89e2c3792615dd15cb798
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
8 years agoMerge commit 'db5c5bb0259fa024517d9a151726785facba4f02' into HEAD
Bill Yi [Wed, 17 Feb 2016 19:36:59 +0000 (11:36 -0800)]
Merge commit 'db5c5bb0259fa024517d9a151726785facba4f02' into HEAD

8 years agoMerge "Allocate buffers locally in systems without SurfaceFlinger"
Christopher Wiley [Wed, 17 Feb 2016 17:41:04 +0000 (17:41 +0000)]
Merge "Allocate buffers locally in systems without SurfaceFlinger"
am: afcf267cbd

* commit 'afcf267cbd86316cd98c96bc82400479c965d8d6':
  Allocate buffers locally in systems without SurfaceFlinger

8 years agoMerge "Allocate buffers locally in systems without SurfaceFlinger"
Christopher Wiley [Wed, 17 Feb 2016 17:32:15 +0000 (17:32 +0000)]
Merge "Allocate buffers locally in systems without SurfaceFlinger"

8 years agoAllocate buffers locally in systems without SurfaceFlinger
Christopher Wiley [Wed, 10 Feb 2016 23:33:14 +0000 (15:33 -0800)]
Allocate buffers locally in systems without SurfaceFlinger

In Brillo systems, we have no applications and configure
SELinux policy statically.  In this model, we do not need
a special service to allocate buffers, since any process
that needs buffers can be appropriately marked at build time.

Bug: 26936651
Test: A test program on brilloemulator can allocate buffers for
      the camera with this patch.

Change-Id: Ifcdb7a4b878f9a26f4899c7b75a12447dcdb0ac9

8 years agoMerge "libbinder: add getters for PersistableBundle keys"
Samuel Tan [Tue, 16 Feb 2016 20:52:03 +0000 (20:52 +0000)]
Merge "libbinder: add getters for PersistableBundle keys"
am: 4f321d1629

* commit '4f321d1629e2b848b4e9a5304ab4a9262bc81569':
  libbinder: add getters for PersistableBundle keys

8 years agoMerge "libbinder: add getters for PersistableBundle keys"
Samuel Tan [Tue, 16 Feb 2016 20:47:42 +0000 (20:47 +0000)]
Merge "libbinder: add getters for PersistableBundle keys"

8 years agoMerge "Fix -Wgnu-designator warnigns in cmds/flatland/Main.cpp"
Aurimas Liutikas [Tue, 16 Feb 2016 19:37:10 +0000 (19:37 +0000)]
Merge "Fix -Wgnu-designator warnigns in cmds/flatland/Main.cpp"
am: f4475023e7

* commit 'f4475023e728db1456a72b0e9a1292e11fb38245':
  Fix -Wgnu-designator warnigns in cmds/flatland/Main.cpp

8 years agoMerge "Fix -Wgnu-designator warnigns in cmds/flatland/Main.cpp"
Aurimas Liutikas [Tue, 16 Feb 2016 19:30:38 +0000 (19:30 +0000)]
Merge "Fix -Wgnu-designator warnigns in cmds/flatland/Main.cpp"

8 years agoFix -Wgnu-designator warnigns in cmds/flatland/Main.cpp
Aurimas Liutikas [Tue, 16 Feb 2016 18:42:52 +0000 (10:42 -0800)]
Fix -Wgnu-designator warnigns in cmds/flatland/Main.cpp

Bug: http://b/27068438
Change-Id: I3064950f761411fe5271c6259867ad437c71e66d

8 years agoMerge "Replace AppOpsManager locking with std::lock_guard"
Christopher Wiley [Tue, 16 Feb 2016 16:57:44 +0000 (16:57 +0000)]
Merge "Replace AppOpsManager locking with std::lock_guard"
am: d3a9228d1d

* commit 'd3a9228d1d2388f21b4e8013cf2fad7b4c91ace7':
  Replace AppOpsManager locking with std::lock_guard

8 years agoMerge "Replace AppOpsManager locking with std::lock_guard"
Christopher Wiley [Tue, 16 Feb 2016 16:50:01 +0000 (16:50 +0000)]
Merge "Replace AppOpsManager locking with std::lock_guard"

8 years agoMerge "Add missing liblog dependency"
Dimitry Ivanov [Sat, 13 Feb 2016 01:50:29 +0000 (01:50 +0000)]
Merge "Add missing liblog dependency"
am: 39f1abac3c

* commit '39f1abac3c21e2f5a4a450b21d1c52ba5f099ddb':
  Add missing liblog dependency

8 years agoMerge "Add missing liblog dependency"
Dimitry Ivanov [Sat, 13 Feb 2016 01:43:29 +0000 (01:43 +0000)]
Merge "Add missing liblog dependency"

8 years agoAdd missing liblog dependency
Dimitry Ivanov [Sat, 13 Feb 2016 01:13:10 +0000 (17:13 -0800)]
Add missing liblog dependency

Bug: http://b/27171986
Change-Id: Ifbe01c6b325e7198a95ea865f557b0c9acb65809

8 years agoMerge "Don\'t rely on AppOpsManager in systems without applications"
Christopher Wiley [Sat, 13 Feb 2016 00:07:49 +0000 (00:07 +0000)]
Merge "Don\'t rely on AppOpsManager in systems without applications"
am: 46c32a1b1c

* commit '46c32a1b1c895ec7630686aa8228785479f8fe92':
  Don't rely on AppOpsManager in systems without applications

8 years agoMerge "Fix race in AppOpsManager client library"
Christopher Wiley [Sat, 13 Feb 2016 00:07:40 +0000 (00:07 +0000)]
Merge "Fix race in AppOpsManager client library"
am: 712fe62ab2

* commit '712fe62ab282b3897fc1ee98e35b12d95663be52':
  Fix race in AppOpsManager client library

8 years agoReplace AppOpsManager locking with std::lock_guard
Christopher Wiley [Fri, 12 Feb 2016 23:41:08 +0000 (15:41 -0800)]
Replace AppOpsManager locking with std::lock_guard

Change-Id: Ice4c101659837cea594194cfb335f9f3f6837f38

8 years agoMerge "Don't rely on AppOpsManager in systems without applications"
Christopher Wiley [Fri, 12 Feb 2016 23:43:07 +0000 (23:43 +0000)]
Merge "Don't rely on AppOpsManager in systems without applications"

8 years agoMerge "Fix race in AppOpsManager client library"
Christopher Wiley [Fri, 12 Feb 2016 23:43:00 +0000 (23:43 +0000)]
Merge "Fix race in AppOpsManager client library"

8 years agolibbinder: add getters for PersistableBundle keys
Samuel Tan [Fri, 12 Feb 2016 21:56:17 +0000 (13:56 -0800)]
libbinder: add getters for PersistableBundle keys

Add getters for the keys in each map stored in
PersistableBundle. This will allow users of
PersistableBundle to iterate over entries of
a specific type in PersistableBundle.

Also, add "using" statements to PersistableBundle
for std containers to reduce verbosity.

BUG: 27171235
Change-Id: Idd4b3bf713071ca8d8d023f1f83bdaf3ccbdd46f
TEST: libbinder compiles successfully.

8 years agoMerge "libbinder: Allow readByteVector to take uint8_t"
Casey Dahlin [Thu, 11 Feb 2016 23:31:07 +0000 (23:31 +0000)]
Merge "libbinder: Allow readByteVector to take uint8_t"
am: dda39f2a22

* commit 'dda39f2a2229ea74cc4738daa1c6a1c758284d7d':
  libbinder: Allow readByteVector to take uint8_t

8 years agoMerge "libbinder: Allow readByteVector to take uint8_t"
Casey Dahlin [Thu, 11 Feb 2016 23:24:41 +0000 (23:24 +0000)]
Merge "libbinder: Allow readByteVector to take uint8_t"

8 years agoMerge "dumpstate: Continued build breakage"
Mark Salyzyn [Wed, 10 Feb 2016 16:13:54 +0000 (16:13 +0000)]
Merge "dumpstate: Continued build breakage"
am: 16072e7e17

* commit '16072e7e1717bcf1ea8be99eb7af90974dbbeeb7':
  dumpstate: Continued build breakage

8 years agoMerge "dumpstate: Continued build breakage"
Mark Salyzyn [Wed, 10 Feb 2016 16:12:50 +0000 (16:12 +0000)]
Merge "dumpstate: Continued build breakage"

8 years agodumpstate: Continued build breakage
Mark Salyzyn [Wed, 10 Feb 2016 15:41:12 +0000 (07:41 -0800)]
dumpstate: Continued build breakage

- drop assignment length in scanf
- drop -std=gnu99 as invalid for C++

Change-Id: I924d2561069b3c289cb9deb475f732c46bb5a67e

8 years agolibbinder: Allow readByteVector to take uint8_t
Casey Dahlin [Tue, 9 Feb 2016 19:08:35 +0000 (11:08 -0800)]
libbinder: Allow readByteVector to take uint8_t

Change-Id: I2f0d1f3b4c04f04e7a866e9a4cf76c899b4b4980
Test: AIDL integration tests pass
Bug: 27078230

8 years agoMerge changes I6b499f53,If821ed21
Mark Salyzyn [Tue, 9 Feb 2016 17:25:01 +0000 (17:25 +0000)]
Merge changes I6b499f53,If821ed21
am: c658aee7d6

* commit 'c658aee7d6dc56b1b3b1722412029830e966ba71':
  dumpstate: report process times
  Add option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps.

8 years agoMerge changes I6b499f53,If821ed21
Mark Salyzyn [Tue, 9 Feb 2016 17:22:50 +0000 (17:22 +0000)]
Merge changes I6b499f53,If821ed21

* changes:
  dumpstate: report process times
  Add option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps.

8 years agodumpstate: report process times
Mark Salyzyn [Fri, 5 Feb 2016 23:33:17 +0000 (15:33 -0800)]
dumpstate: report process times

- Fix per-pid helper to pick up comm if cmdline is empty
  and assume kernel thread.
- Add per pid report command line user time if not kernel thread,
  system time and I/O time, plus percentage if non zero.

Bug: 26966375
Change-Id: I6b499f535cc3687eb468b32ae39e7d151dffb11f

8 years agoAdd option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps.
Felipe Leme [Wed, 11 Nov 2015 04:10:25 +0000 (20:10 -0800)]
Add option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps.

(cherry picked from commit 93d705b6d742e8f00167ff2384e35c2205a6f9da)

Such option is useful when debugging dumpstate itself, since it will
finish much sooner and its output will be much smaller.

Change-Id: If821ed21715461bf82eea0b2be4b926239ad69da

8 years agoMerge "Enable wildcard in the list of kernel functions"
John Reck [Sat, 6 Feb 2016 00:14:35 +0000 (00:14 +0000)]
Merge "Enable wildcard in the list of kernel functions"
am: fda23631b9

* commit 'fda23631b978bec793b67037dc2841a6a15531fb':
  Enable wildcard in the list of kernel functions

8 years agoMerge "Enable wildcard in the list of kernel functions"
John Reck [Sat, 6 Feb 2016 00:11:38 +0000 (00:11 +0000)]
Merge "Enable wildcard in the list of kernel functions"

8 years agoMerge "dumpstate: refine calculated eMMC performance values"
Mark Salyzyn [Fri, 5 Feb 2016 22:41:30 +0000 (22:41 +0000)]
Merge "dumpstate: refine calculated eMMC performance values"
am: 088e7586ea

* commit '088e7586ea7d0103d1b5395172a4594eddbf5b4a':
  dumpstate: refine calculated eMMC performance values

8 years agoMerge "dumpstate: refine calculated eMMC performance values"
Mark Salyzyn [Fri, 5 Feb 2016 22:38:34 +0000 (22:38 +0000)]
Merge "dumpstate: refine calculated eMMC performance values"

8 years agodumpstate: refine calculated eMMC performance values
Mark Salyzyn [Thu, 4 Feb 2016 17:20:44 +0000 (09:20 -0800)]
dumpstate: refine calculated eMMC performance values

Correct the raw performance with the average queue depth. Add a
report for I/O per second, and the average queue depth. Round
values up.

Bug: 26966375
Change-Id: I2a8d233872d5e5ff79d433abba3c34d5945701f4

8 years agoDon't rely on AppOpsManager in systems without applications
Christopher Wiley [Fri, 5 Feb 2016 17:08:23 +0000 (09:08 -0800)]
Don't rely on AppOpsManager in systems without applications

Brillo has no applications, and doesn't run AppOpsManager.  Instead,
services are granted statically configured SELinux permissions at
build time.  Rely on that configuration rather than Android's
dynamically configurable permission model.

Bug: 26936651
Test: Test code on Brillo system is able to connect to the camera.

Change-Id: I84b72a762c2f534c2e1cc6f99ef2003388fb1265

8 years agoMerge "system_server BINDER_TYPE_FD driver ashmem accessors"
Mark Salyzyn [Fri, 5 Feb 2016 18:08:36 +0000 (18:08 +0000)]
Merge "system_server BINDER_TYPE_FD driver ashmem accessors"
am: b23a388c64

* commit 'b23a388c64d2fef51482feaaf89c345488f3cabc':
  system_server BINDER_TYPE_FD driver ashmem accessors

8 years agoMerge "system_server BINDER_TYPE_FD driver ashmem accessors"
Mark Salyzyn [Fri, 5 Feb 2016 18:05:23 +0000 (18:05 +0000)]
Merge "system_server BINDER_TYPE_FD driver ashmem accessors"

8 years agoFix race in AppOpsManager client library
Christopher Wiley [Fri, 5 Feb 2016 17:06:30 +0000 (09:06 -0800)]
Fix race in AppOpsManager client library

If the service stays down for more than 10 seconds, client threads
will time out attempting to obtain a reference, and never release
the mutex.  This causes deadlock on the next attempt to speak
with the AppOpsManager.

Test: System without AppOpsManager service no longer hangs in camera
      code.

Change-Id: I5a8ac2f0f35345f72c3d2a45b9d1fc5a78d28a51

8 years agoEnable wildcard in the list of kernel functions
Thomas Buhot [Wed, 27 Jan 2016 08:44:31 +0000 (09:44 +0100)]
Enable wildcard in the list of kernel functions

The handling of the -k option is too restrictive
as it stricly checks the names of the kernel functions
after it wrote them in /d/tracing/set_ftrace_filter.

However, a common usage of that function filtering with ftrace
is to use a wildcard character (*) that the ftrace tracer
automatically expands to all the matching kernel functions.

This enables the support of the wildcard (*) character
in the -k option to trace kernel functions.

Change-Id: Ifffae975c20e1c253157a3a6b44a14b4f342b9d0
Signed-off-by: Thomas Buhot <thomas.buhot@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
8 years agoMerge "Binder::Status: Add operator<< to help with gtest logging"
Eino-Ville Talvala [Fri, 5 Feb 2016 00:54:57 +0000 (00:54 +0000)]
Merge "Binder::Status: Add operator<< to help with gtest logging"
am: 259eb56171

* commit '259eb56171420f62be325eadc38673d967527ab6':
  Binder::Status: Add operator<< to help with gtest logging

8 years agoMerge "Binder::Status: Add operator<< to help with gtest logging"
Eino-Ville Talvala [Fri, 5 Feb 2016 00:52:11 +0000 (00:52 +0000)]
Merge "Binder::Status: Add operator<< to help with gtest logging"

8 years agoBinder::Status: Add operator<< to help with gtest logging
Eino-Ville Talvala [Wed, 3 Feb 2016 21:19:49 +0000 (13:19 -0800)]
Binder::Status: Add operator<< to help with gtest logging

Change-Id: I22fcf7c6314451701ba947af2d69d4e45b22345a

8 years agosystem_server BINDER_TYPE_FD driver ashmem accessors
Mark Salyzyn [Tue, 2 Feb 2016 18:27:03 +0000 (10:27 -0800)]
system_server BINDER_TYPE_FD driver ashmem accessors

check if device matches the ashmem rdev, before calling
ashmem_get_size_region. This eliminates making this call
when associated with other driver file descriptors.

Bug: 26374183
Bug: 26918423
Bug: 26871259
Change-Id: I1f88c2c93ea35a73c8e14125f3d1a6c67fa4f15b

8 years agoMerge "Fix typo from last commit."
Dan Albert [Wed, 3 Feb 2016 01:20:13 +0000 (01:20 +0000)]
Merge "Fix typo from last commit."
am: ae8442856b

* commit 'ae8442856bfdcfd4daf287a880ce7ce4eadaa3e4':
  Fix typo from last commit.

8 years agoMerge "Fix typo from last commit."
Dan Albert [Wed, 3 Feb 2016 01:16:40 +0000 (01:16 +0000)]
Merge "Fix typo from last commit."

8 years agoFix typo from last commit.
Dan Albert [Wed, 3 Feb 2016 01:08:05 +0000 (17:08 -0800)]
Fix typo from last commit.

Bad commit: https://android-review.googlesource.com/#/c/200449/1

Change-Id: I412e2740951f15cf843bd36a50476070c0cb1ebd

8 years agoMerge "Clean up warnings in inputflinger."
Dan Albert [Wed, 3 Feb 2016 00:43:16 +0000 (00:43 +0000)]
Merge "Clean up warnings in inputflinger."
am: f3606ef25f

* commit 'f3606ef25fb588283020c4df178076852eecc4e3':
  Clean up warnings in inputflinger.

8 years agoMerge "Clean up warnings in EGL."
Dan Albert [Wed, 3 Feb 2016 00:43:10 +0000 (00:43 +0000)]
Merge "Clean up warnings in EGL."
am: c312141adc

* commit 'c312141adc9a5f00b5d13d0980d132d2a8c6f3c9':
  Clean up warnings in EGL.

8 years agoMerge "Clean up warnings in inputflinger."
Dan Albert [Wed, 3 Feb 2016 00:40:26 +0000 (00:40 +0000)]
Merge "Clean up warnings in inputflinger."

8 years agoMerge "Clean up warnings in EGL."
Dan Albert [Wed, 3 Feb 2016 00:40:03 +0000 (00:40 +0000)]
Merge "Clean up warnings in EGL."

8 years agoClean up warnings in inputflinger.
Dan Albert [Tue, 2 Feb 2016 23:11:57 +0000 (15:11 -0800)]
Clean up warnings in inputflinger.

Bug: http://b/26936282
Change-Id: Ie1fb281425c3b8c4b3e6e88dc5722d51b77ee093

8 years agoClean up warnings in EGL.
Dan Albert [Tue, 2 Feb 2016 23:08:34 +0000 (15:08 -0800)]
Clean up warnings in EGL.

Bug: http://b/26936282
Change-Id: I059628332d638f080a5236eed62cf0afa1d4d6ba

8 years agoMerge "Binder: Add log output in IPCThreadState::self()"
Andreas Gampe [Mon, 1 Feb 2016 22:26:59 +0000 (22:26 +0000)]
Merge "Binder: Add log output in IPCThreadState::self()"
am: 2be113a248

* commit '2be113a2489e7d56b21f8ec340198959348012b3':
  Binder: Add log output in IPCThreadState::self()

8 years agoMerge "Binder: Add log output in IPCThreadState::self()"
Andreas Gampe [Mon, 1 Feb 2016 22:23:33 +0000 (22:23 +0000)]
Merge "Binder: Add log output in IPCThreadState::self()"

8 years agoMerge "Add support for decoding UTF16 to UTF8"
Christopher Wiley [Mon, 1 Feb 2016 21:41:56 +0000 (21:41 +0000)]
Merge "Add support for decoding UTF16 to UTF8"
am: ac4728f8ba

* commit 'ac4728f8ba54e5f25466efeaf65a1dbda179ca97':
  Add support for decoding UTF16 to UTF8

8 years agoMerge "Add support for decoding UTF16 to UTF8"
Christopher Wiley [Mon, 1 Feb 2016 21:40:33 +0000 (21:40 +0000)]
Merge "Add support for decoding UTF16 to UTF8"

8 years agoBinder: Add log output in IPCThreadState::self()
Andreas Gampe [Mon, 1 Feb 2016 21:21:56 +0000 (13:21 -0800)]
Binder: Add log output in IPCThreadState::self()

In the failure case, and on shutdown, add log output. It's highly
likely the client will crash when a null value is returned. Displaying
a possible root cause helps diagnosing issues.

Bug: 26865304
Change-Id: Ie5255ac50d6dcdf9f918dcef785788ea795a4791

8 years agoAdd support for decoding UTF16 to UTF8
Christopher Wiley [Fri, 29 Jan 2016 00:56:53 +0000 (16:56 -0800)]
Add support for decoding UTF16 to UTF8

This is helpful because many native service developers use std::string
internally, and String16 doesn't work very well with many C++
primitives.

Bug: 26729450
Test: Integration test appears to show this is correct.

Change-Id: Ib75068881da28fd8515685bcbcbe864ba3b7ec23

8 years agoMerge "Application image support for installd DO NOT MERGE"
Mathieu Chartier [Thu, 28 Jan 2016 19:15:10 +0000 (19:15 +0000)]
Merge "Application image support for installd DO NOT MERGE"
am: 7f9c122ab9  -s ours

* commit '7f9c122ab98d84e54647541edf99e72dec86f6db':
  Application image support for installd DO NOT MERGE

8 years agoMerge "Application image support for installd DO NOT MERGE"
Mathieu Chartier [Thu, 28 Jan 2016 19:13:02 +0000 (19:13 +0000)]
Merge "Application image support for installd DO NOT MERGE"

8 years agoApplication image support for installd DO NOT MERGE
Mathieu Chartier [Wed, 21 Oct 2015 21:05:28 +0000 (14:05 -0700)]
Application image support for installd DO NOT MERGE

DO NOT MERGE

sort of
(cherry picked from commit edc8bc48fbf143e35578bf6cccf980dfab076196)

Bug: 22858531

Change-Id: I5a9dfcf67d2232e8755886085e9ba1bb37494d39

8 years agoMerge "system_server BINDER_TYPE_FD sockets using ashmem accessors"
Mark Salyzyn [Wed, 27 Jan 2016 19:04:53 +0000 (19:04 +0000)]
Merge "system_server BINDER_TYPE_FD sockets using ashmem accessors"

8 years agosystem_server BINDER_TYPE_FD sockets using ashmem accessors
Mark Salyzyn [Wed, 27 Jan 2016 16:02:48 +0000 (08:02 -0800)]
system_server BINDER_TYPE_FD sockets using ashmem accessors

check if device is a character device, before calling
ashmem_get_size_region. We do not check if the st_rdev
matches /dev/ashmem. So this at least eliminates making
this call when associated with a socket.

Bug: 26374183
Change-Id: I68ed9d1c2cd4c47228ed065e3e18eb4151f038f4

8 years agoMerge changes I4ebccfd0,I3507bdfd,Iaf02f55c
Mark Salyzyn [Wed, 27 Jan 2016 17:59:58 +0000 (17:59 +0000)]
Merge changes I4ebccfd0,I3507bdfd,Iaf02f55c

* changes:
  Parcel: file descriptor leak
  Parcel: include Android coding standard
  Parcel: LOG_TAG cleanup

8 years agoParcel: file descriptor leak
Mark Salyzyn [Wed, 27 Jan 2016 16:02:48 +0000 (08:02 -0800)]
Parcel: file descriptor leak

Resolve a file descriptor leak when a request for
ashmem size adjustment is not filed.

Change-Id: I4ebccfd096ec5313725fd99dc3e025f9561d061f

8 years agoParcel: include Android coding standard
Mark Salyzyn [Wed, 27 Jan 2016 16:02:48 +0000 (08:02 -0800)]
Parcel: include Android coding standard

Change-Id: I3507bdfd04a06db85b46539338c787395ec652ff

8 years agoParcel: LOG_TAG cleanup
Mark Salyzyn [Wed, 27 Jan 2016 16:02:48 +0000 (08:02 -0800)]
Parcel: LOG_TAG cleanup

NB: several ALOG messages behind comments, recommend removal

Change-Id: Iaf02f55cbf7ef0ee7c4a6ee67c7f8b57cf97cd26

8 years agoMerge "Revert "dumpstate: Add security log dump""
Mark Salyzyn [Tue, 26 Jan 2016 20:41:51 +0000 (20:41 +0000)]
Merge "Revert "dumpstate: Add security log dump""