summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-02-17Merge "Allocate buffers locally in systems without SurfaceFlinger"brillo-m10-releasebrillo-m10-devChristopher Wiley
2016-02-16Allocate buffers locally in systems without SurfaceFlingerChristopher Wiley
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
2016-02-16Merge "libbinder: add getters for PersistableBundle keys"Samuel Tan
2016-02-16Merge "Fix -Wgnu-designator warnigns in cmds/flatland/Main.cpp"Aurimas Liutikas
2016-02-16Fix -Wgnu-designator warnigns in cmds/flatland/Main.cppAurimas Liutikas
Bug: http://b/27068438 Change-Id: I3064950f761411fe5271c6259867ad437c71e66d
2016-02-16Merge "Replace AppOpsManager locking with std::lock_guard"Christopher Wiley
2016-02-13Merge "Add missing liblog dependency"Dimitry Ivanov
2016-02-12Add missing liblog dependencyDimitry Ivanov
Bug: http://b/27171986 Change-Id: Ifbe01c6b325e7198a95ea865f557b0c9acb65809
2016-02-12Replace AppOpsManager locking with std::lock_guardChristopher Wiley
Change-Id: Ice4c101659837cea594194cfb335f9f3f6837f38
2016-02-12Merge "Don't rely on AppOpsManager in systems without applications"Christopher Wiley
2016-02-12Merge "Fix race in AppOpsManager client library"Christopher Wiley
2016-02-12libbinder: add getters for PersistableBundle keysSamuel Tan
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.
2016-02-11Merge "libbinder: Allow readByteVector to take uint8_t"Casey Dahlin
2016-02-10Merge "dumpstate: Continued build breakage"Mark Salyzyn
2016-02-10dumpstate: Continued build breakageMark Salyzyn
- drop assignment length in scanf - drop -std=gnu99 as invalid for C++ Change-Id: I924d2561069b3c289cb9deb475f732c46bb5a67e
2016-02-09libbinder: Allow readByteVector to take uint8_tCasey Dahlin
Change-Id: I2f0d1f3b4c04f04e7a866e9a4cf76c899b4b4980 Test: AIDL integration tests pass Bug: 27078230
2016-02-09Merge changes I6b499f53,If821ed21Mark Salyzyn
* changes: dumpstate: report process times Add option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps.
2016-02-09dumpstate: report process timesMark Salyzyn
- 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
2016-02-09Add option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps.Felipe Leme
(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
2016-02-06Merge "Enable wildcard in the list of kernel functions"John Reck
2016-02-05Merge "dumpstate: refine calculated eMMC performance values"Mark Salyzyn
2016-02-05dumpstate: refine calculated eMMC performance valuesMark Salyzyn
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
2016-02-05Don't rely on AppOpsManager in systems without applicationsChristopher Wiley
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
2016-02-05Merge "system_server BINDER_TYPE_FD driver ashmem accessors"Mark Salyzyn
2016-02-05Fix race in AppOpsManager client libraryChristopher Wiley
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
2016-02-05Enable wildcard in the list of kernel functionsThomas Buhot
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>
2016-02-05Merge "Binder::Status: Add operator<< to help with gtest logging"Eino-Ville Talvala
2016-02-04Binder::Status: Add operator<< to help with gtest loggingEino-Ville Talvala
Change-Id: I22fcf7c6314451701ba947af2d69d4e45b22345a
2016-02-03system_server BINDER_TYPE_FD driver ashmem accessorsMark Salyzyn
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
2016-02-03Merge "Fix typo from last commit."Dan Albert
2016-02-02Fix typo from last commit.Dan Albert
Bad commit: https://android-review.googlesource.com/#/c/200449/1 Change-Id: I412e2740951f15cf843bd36a50476070c0cb1ebd
2016-02-03Merge "Clean up warnings in inputflinger."Dan Albert
2016-02-03Merge "Clean up warnings in EGL."Dan Albert
2016-02-02Clean up warnings in inputflinger.Dan Albert
Bug: http://b/26936282 Change-Id: Ie1fb281425c3b8c4b3e6e88dc5722d51b77ee093
2016-02-02Clean up warnings in EGL.Dan Albert
Bug: http://b/26936282 Change-Id: I059628332d638f080a5236eed62cf0afa1d4d6ba
2016-02-01Merge "Binder: Add log output in IPCThreadState::self()"Andreas Gampe
2016-02-01Merge "Add support for decoding UTF16 to UTF8"Christopher Wiley
2016-02-01Binder: Add log output in IPCThreadState::self()Andreas Gampe
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
2016-01-29Add support for decoding UTF16 to UTF8Christopher Wiley
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
2016-01-28Merge "Application image support for installd DO NOT MERGE"Mathieu Chartier
2016-01-28Application image support for installd DO NOT MERGEMathieu Chartier
DO NOT MERGE sort of (cherry picked from commit edc8bc48fbf143e35578bf6cccf980dfab076196) Bug: 22858531 Change-Id: I5a9dfcf67d2232e8755886085e9ba1bb37494d39
2016-01-27Merge "system_server BINDER_TYPE_FD sockets using ashmem accessors"Mark Salyzyn
2016-01-27system_server BINDER_TYPE_FD sockets using ashmem accessorsMark Salyzyn
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
2016-01-27Merge changes I4ebccfd0,I3507bdfd,Iaf02f55cMark Salyzyn
* changes: Parcel: file descriptor leak Parcel: include Android coding standard Parcel: LOG_TAG cleanup
2016-01-27Parcel: file descriptor leakMark Salyzyn
Resolve a file descriptor leak when a request for ashmem size adjustment is not filed. Change-Id: I4ebccfd096ec5313725fd99dc3e025f9561d061f
2016-01-27Parcel: include Android coding standardMark Salyzyn
Change-Id: I3507bdfd04a06db85b46539338c787395ec652ff
2016-01-27Parcel: LOG_TAG cleanupMark Salyzyn
NB: several ALOG messages behind comments, recommend removal Change-Id: Iaf02f55cbf7ef0ee7c4a6ee67c7f8b57cf97cd26
2016-01-26Merge "Revert "dumpstate: Add security log dump""Mark Salyzyn
2016-01-26Revert "dumpstate: Add security log dump"Mark Salyzyn
This reverts commit c7ad8cb82f035576c28707a8cbeb16b7ead2a4e7. Bug: 26029733 Change-Id: I0c61f4d2c0aa9e07c6cc7b190d803e98c3a98d40
2016-01-25Merge "Implementation of HCE for NFC-F."Martijn Coenen