Age | Commit message (Collapse) | Author |
|
|
|
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
|
|
|
|
|
|
Bug: http://b/27068438
Change-Id: I3064950f761411fe5271c6259867ad437c71e66d
|
|
|
|
|
|
Bug: http://b/27171986
Change-Id: Ifbe01c6b325e7198a95ea865f557b0c9acb65809
|
|
Change-Id: Ice4c101659837cea594194cfb335f9f3f6837f38
|
|
|
|
|
|
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.
|
|
|
|
|
|
- drop assignment length in scanf
- drop -std=gnu99 as invalid for C++
Change-Id: I924d2561069b3c289cb9deb475f732c46bb5a67e
|
|
Change-Id: I2f0d1f3b4c04f04e7a866e9a4cf76c899b4b4980
Test: AIDL integration tests pass
Bug: 27078230
|
|
* changes:
dumpstate: report process times
Add option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps.
|
|
- 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
|
|
(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
|
|
|
|
|
|
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
|
|
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
|
|
|
|
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
|
|
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>
|
|
|
|
Change-Id: I22fcf7c6314451701ba947af2d69d4e45b22345a
|
|
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
|
|
|
|
Bad commit: https://android-review.googlesource.com/#/c/200449/1
Change-Id: I412e2740951f15cf843bd36a50476070c0cb1ebd
|
|
|
|
|
|
Bug: http://b/26936282
Change-Id: Ie1fb281425c3b8c4b3e6e88dc5722d51b77ee093
|
|
Bug: http://b/26936282
Change-Id: I059628332d638f080a5236eed62cf0afa1d4d6ba
|
|
|
|
|
|
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
|
|
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
|
|
|
|
DO NOT MERGE
sort of
(cherry picked from commit edc8bc48fbf143e35578bf6cccf980dfab076196)
Bug: 22858531
Change-Id: I5a9dfcf67d2232e8755886085e9ba1bb37494d39
|
|
|
|
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
|
|
* changes:
Parcel: file descriptor leak
Parcel: include Android coding standard
Parcel: LOG_TAG cleanup
|
|
Resolve a file descriptor leak when a request for
ashmem size adjustment is not filed.
Change-Id: I4ebccfd096ec5313725fd99dc3e025f9561d061f
|
|
Change-Id: I3507bdfd04a06db85b46539338c787395ec652ff
|
|
NB: several ALOG messages behind comments, recommend removal
Change-Id: Iaf02f55cbf7ef0ee7c4a6ee67c7f8b57cf97cd26
|
|
|
|
This reverts commit c7ad8cb82f035576c28707a8cbeb16b7ead2a4e7.
Bug: 26029733
Change-Id: I0c61f4d2c0aa9e07c6cc7b190d803e98c3a98d40
|
|
|