summaryrefslogtreecommitdiffstats
path: root/include/binder
Commit message (Collapse)AuthorAgeFilesLines
* libbinder: allow devices to disable ashmem size trackingforkbomb2015-12-101-0/+2
| | | | | | | The addition of ashmem size tracking can lead to parcel objects overwriting other values on the stack in old binary blobs. Change-Id: Ife8514be1ba639c4061de38b59794c46bcc2d7f8
* Merge tag 'android-6.0.1_r3' of ↵Steve Kondik2015-12-071-3/+3
|\ | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/native into cm-13.0 Android 6.0.1 release 3 Change-Id: I437aaf148d440a8144afe1454948980fc3b40cca
| * Maintain Parcel ABIAdrian Roos2015-10-221-3/+3
| | | | | | | | | | | | | | | | | | Makes sure we don't change the memory layout of the Parcel class to maintain binary compatibility with prebuilts linking against libbinder. Bug: 25004154 Change-Id: I656687497f08bb85cefda796aafa2341e601e30a
| * Revert "Revert "Track ashmem memory usage in Parcel""Adrian Roos2015-10-221-2/+4
| | | | | | | | | | | | | | This reverts commit 6880307e8e35a6c484942443fb4ddd6173126152. Bug: 25004154 Change-Id: I9b432d1ebc39f3bbcd7afdefc403f0fb6ced8158
| * Revert "Track ashmem memory usage in Parcel"Ian Pedowitz2015-10-221-4/+2
| | | | | | | | | | | | | | | | | | This reverts commit e2f499fb734bc30a1e1c947112caa0727349b6ed. Bug: 25169267 Bug: 25191602 Bug: 25004154 Change-Id: I24bb0da4e8739ee5a0c251e4adac9904827144e0
| * Track ashmem memory usage in ParcelAdrian Roos2015-10-211-2/+4
| | | | | | | | | | Bug: 25004154 Change-Id: Id9d5656dd0605f1b50525596b75601309f67ebdc
* | libbinder: allow devices to disable ashmem size trackingforkbomb2015-12-041-0/+2
| | | | | | | | | | | | | | The addition of ashmem size tracking can lead to parcel objects overwriting other values on the stack in old binary blobs. Change-Id: Ida52cec851a6f9d5a57c8f9130a5875c03dcb094
* | update app opsRoman Birg2015-11-021-1/+13
| | | | | | | | | | Change-Id: Id189866c1868e6340b1b01ca94c06983fbcc242d Signed-off-by: Roman Birg <roman@cyngn.com>
* | binder: Squashed commit of MemoryHeapBaseIoncodeworkx2015-11-022-1/+74
|/ | | | | | | | | | | | | | | | | | | | | | | | Source: http://git.insignal.co.kr/samsung/exynos/android/platform/frameworks/native/commit/?h=exynos-jb&id=dc4cd25cc41e4358debd0c7d1a2706d208a58df6 Change-Id: Ib06cc37a2a25c78a061ee2bad48eec2d01b07833 binder: update MemoryHeapIon * Update from ODROID-XU 09232013 BSP release Change-Id: I5245c8a9f783e8902bf91a0ee23e60ebeb335b27 binder: update MemoryHeapIon * Update from ODROID-XU 04212014 BSP Change-Id: Ifc2664bcde37a71d855e05e7c9e50288a4508892 binder: Fixed new CM SLSI build variant Change-Id: Icfff592cf705af660c7318b08fce75dbbf42103c (cherry picked from commit 014ad5eee0a7de70c4a9f66e8f5ce7b32f4ecb16)
* Enable more flexible usage of blobs in parcels.Jeff Brown2015-06-051-5/+17
| | | | | | | | | | | Add functions to allow a client to take over the ashmem region that was transferred so that it can claim it for its own and reuse it. Add support for mutable ashmem regions too. Bug: 21428802 Change-Id: I16eca338cdb99b07d81fc43573d53ce86dbc60c8
* DO NOT MERGE Remove unused ParcelFileDescriptor methods in parcel.Tim Kilbourn2015-06-041-10/+0
| | | | | | | | Attempts to replicate Java parceling in native code is fraught with peril. Change-Id: I4359036c5dddd1b886d886beef1d060523e53e5f (cherry picked from commit f47a381001d4d4ce66c2e35aac5b96a26acc0730)
* Track camera and flashlight usage in battery stats.Ruben Brunk2015-06-011-0/+12
| | | | | | Bug: 15986092 Change-Id: I272ec070113a0bfc41c637c45a6e1a2ab346e87b
* Add body sensors app op - framework nativeSvetoslav2015-05-013-2/+12
| | | | Change-Id: I727a2bb1e28ae9158f2df9c74dd0aee977dfd47f
* Respect the record audio app op - frameworks nativeSvet Ganov2015-04-282-5/+32
| | | | Change-Id: Id747767377953fd644a538aad3f603d6c50875a2
* Merge "Add ashmem stats to Parcels"Dan Sandler2015-04-211-0/+6
|\
| * Add ashmem stats to ParcelsDan Sandler2015-04-161-0/+6
| | | | | | | | | | | | | | Requires change Ifaf115da in frameworks/base. Bug: 20079551 Change-Id: Ifaf115dabd1a59cdb1b46e2d49c41f64ac107de4
* | Added IPCThreadState::blockUntilThreadAvailable() method.Wale Ogunwale2015-04-142-10/+24
|/ | | | | | | | | Will be used by the system_server watchdog to monitor the availability of binder threads in the process to handle incoming IPC requests. Bug: 19297165 Change-Id: I39175f3869ad14da5620fddb47f454e6e4ee2b25
* binder: add uint64 support to Parcel.Ronghua Wu2015-03-191-0/+3
| | | | | Bug: 19620911 Change-Id: Ifce5319e4e35afd344dead67ab7ba1cd399476a3
* Add ProcessInfoService to activity manager.Ruben Brunk2015-02-022-0/+118
| | | | | | | | | - Adds a new AIDL interface for querying process information from activity manager. Bug: 19186859 Change-Id: Ic08858f346d6b66e7bfc9da6faa2c6e38d9b2e82
* am 80e81505: Merge "binder: Add {read,write}Uint32 methods to Parcel"Dan Stoza2014-12-011-0/+3
|\ | | | | | | | | * commit '80e8150549c9d8380dadf942336d41ab3d92bf78': binder: Add {read,write}Uint32 methods to Parcel
| * binder: Add {read,write}Uint32 methods to ParcelDan Stoza2014-12-011-0/+3
| | | | | | | | | | | | | | | | Adds readUint32 and writeUint32 methods to the Parcel class. This saves a lot of static_casting in anything implementing a Binder interface on the native side. Change-Id: Iafc73b0633654a3a4c49767f41806b56906c924f
* | am 104e1259: Merge "binder: Return pid_t/uid_t instead of int"Dan Stoza2014-12-011-2/+2
|\ \ | |/ | | | | | | * commit '104e12594e085bc8dd32eedb96643b774b1508a0': binder: Return pid_t/uid_t instead of int
| * binder: Return pid_t/uid_t instead of intDan Stoza2014-12-011-2/+2
| | | | | | | | | | | | | | Makes IPCThreadState::getCalling{Pid,Uid} return a more appropriate type. Change-Id: I97f8a83c1c0722bc1afbf8a6df1a288f8f1f0d2c
* | am 55f71bc0: Merge "Replace IInterface::asBinder() with a static"Marco Nelissen2014-11-171-3/+3
|\ \ | |/ | | | | | | * commit '55f71bc0800b9ec7a779c5d30d5a90e074c2526b': Replace IInterface::asBinder() with a static
| * Replace IInterface::asBinder() with a staticMarco Nelissen2014-11-171-3/+3
| | | | | | | | | | | | | | so we can do NULL checks again, and update calls to IInterface::asBinder() to use the new static version. Change-Id: Ia7b10eb38ca55b72278bfd33d3bf647f338b4e6a
* | am bc49cd07: Merge "kill HAVE_FORKEXEC"Yabin Cui2014-11-131-1/+1
|\ \ | |/ | | | | | | * commit 'bc49cd07664d8a590bc6ed44884ba9405f6b706e': kill HAVE_FORKEXEC
| * kill HAVE_FORKEXECYabin Cui2014-11-121-1/+1
| | | | | | | | | | Bug: 18317407 Change-Id: I0c7b5886e5de12bdd95cfcc046bc87e4a6aeef5b
| * am a0187a9c: Merge "Revert "Revert "Revert "Revert "Remove incorrect ↵Hans Boehm2014-08-131-1/+3
| |\ | | | | | | | | | | | | | | | | | | android_atomic_...64 use.""""" * commit 'a0187a9c83cb042b4cb92dac59214247bb7affcf': Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""
| | * Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""Hans Boehm2014-08-121-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | After fixing b/16874785. This reverts commit f010a05c7e9a23b6083294aff4a8183ab01f686e. Change-Id: I1645ca5d6f60595bf5d388913665ce4b8780b26d
| * | am f491f497: Merge "Revert "Revert "Revert "Remove incorrect ↵Hans Boehm2014-08-091-3/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | android_atomic_...64 use."""" * commit 'f491f497b2a4ba5a0ec60b291cce4ffb3be3d33c': Revert "Revert "Revert "Remove incorrect android_atomic_...64 use."""
| | * Revert "Revert "Revert "Remove incorrect android_atomic_...64 use."""Hans Boehm2014-08-091-3/+1
| | | | | | | | | | | | | | | | | | This reverts commit 66629e0de532376fa3ef43175ad05eccd21114da. Change-Id: Ic298b345d0e500d18e4297b00e755ce3340f13fb
| * | am 6e5316b1: Merge "Revert "Revert "Remove incorrect android_atomic_...64 ↵Hans Boehm2014-08-091-1/+3
| |\ \ | | |/ | | | | | | | | | | | | | | | use.""" * commit '6e5316b1dac10bed0d81f4b2942e4a8749cd67b2': Revert "Revert "Remove incorrect android_atomic_...64 use.""
| | * Revert "Revert "Remove incorrect android_atomic_...64 use.""Hans Boehm2014-08-081-1/+3
| | | | | | | | | | | | | | | | | | | | | This reverts commit 9dc5c269f74ac76f62515e3d9558e67c6e63067d. Adds a stdint.h include in case stdatomic.h stops including that. Change-Id: If3dd1db1f1132c0f2dc1efb0a44617d3f36d7cfb
| * | am 735082ea: Merge "Revert "Remove incorrect android_atomic_...64 use.""Hans Boehm2014-08-061-2/+1
| |\ \ | | |/ | | | | | | | | | * commit '735082ea156d91cf72c241e9134abc22038c8f13': Revert "Remove incorrect android_atomic_...64 use."
| | * Revert "Remove incorrect android_atomic_...64 use."Hans Boehm2014-08-061-2/+1
| | | | | | | | | | | | | | | | | | This reverts commit 88b7541d682a6ad402eff15e58c9c792497096d7. Change-Id: Ie701c308451a3697bb167aff119318b932133f90
| * | am c11eca81: Merge "Remove incorrect android_atomic_...64 use."Hans Boehm2014-08-061-1/+2
| |\ \ | | |/ | | | | | | | | | * commit 'c11eca81e66892eb62a03b4553055197d122fe5b': Remove incorrect android_atomic_...64 use.
| | * Remove incorrect android_atomic_...64 use.Hans Boehm2014-07-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the mExtras field in Binder.h to be a stdatomic.h atomic value, and replace references to it with proper stdatomic.h calls. This removes one of a small number of remaining 64 bit android_atomic references. It also replaces the erroneously non-atomic read accesses to mExtras. It would be better if this used the C++11 <atomic> facility, but we don't quite have that yet. Bug: 16513433 Change-Id: Ibabb88d05025187ee1ce6c7f1aa670b133a547f8
| | * Remove Parcel::writeIntPtr.Narayan Kamath2014-06-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All uses of this API have been removed. It should never have been made public in the first place. bug: 15424960 (cherry picked from commit 7da40c0a84dd89e92201448dd5ed3387dc94df2b) Change-Id: I8d89f62dbdaee7149ef908e0c97417b85e0c48a2
| | * Merge commit '6d05ef2310bdc84811d5b0385b009ad11447a749' into HEADBill Yi2014-04-291-0/+1
| | |\
| | | * am f0190bff: Add support for writing byte arrays to parcelsMarco Nelissen2014-03-141-0/+1
| | | |\ | | | | | | | | | | | | | | | | | | | | * commit 'f0190bff38b6c29abbfc4a877442f71fc3d7dad8': Add support for writing byte arrays to parcels
* | | | | Add tracking of parcel memory allocations.Dianne Hackborn2014-11-111-1/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: I76ffed0e69ccfe70e87d98646f11d4de7c3fd980
* | | | | Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""Hans Boehm2014-09-021-1/+3
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After fixing b/16874785. This reverts commit f010a05c7e9a23b6083294aff4a8183ab01f686e. Original comment, which actually describes the effect of this: Change the mExtras field in Binder.h to be a stdatomic.h atomic value, and replace references to it with proper stdatomic.h calls. This removes one of a small number of remaining 64 bit android_atomic references. It also replaces the erroneously non-atomic read accesses to mExtras. It would be better if this used the C++11 <atomic> facility, but we don't quite have that yet. Fixes Bug:16513433 Change-Id: I1645ca5d6f60595bf5d388913665ce4b8780b26d (cherry picked from commit 3effababf2980d029339522fdc914bdeb913d99b)
* | | | add noteResetVideo/Audio to IBatteryStatsChong Zhang2014-07-231-0/+4
| | | | | | | | | | | | | | | | | | | | Bug: 12979595 Change-Id: Ida474e539a3af0a85ec157a66bbf986430c8020e
* | | | update battery status for audio/videoChong Zhang2014-07-221-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 12979595 Change-Id: Ic8e8d625becc6d1050f840ad63b7423f388eeba3
* | | | Remove Parcel::writeIntPtr.Narayan Kamath2014-06-121-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All uses of this API have been removed. It should never have been made public in the first place. bug: 15424960 Change-Id: Id07d24ec95b2b393e6da138a7e8a9a4ecebeca94
* | | | am d09b2acd: am 033bdd72: Merge "Remove global variables from ProcessState."Narayan Kamath2014-04-031-11/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * commit 'd09b2acdc8ca706c65984956e61c0bb333cee992': Remove global variables from ProcessState.
| * \ \ \ am 033bdd72: Merge "Remove global variables from ProcessState."Narayan Kamath2014-04-031-11/+0
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '033bdd72f9f32f4bd3d282750bdc0dcfbb469959': Remove global variables from ProcessState.
| | * | | Remove global variables from ProcessState.Narayan Kamath2014-04-031-11/+0
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These weren't really being used and they make it very hard to reason about who looks at command line arguments. Processes started via app_process (this includes all zygote forks and the system_server) can get information about command line arguments from the AndroidRuntime class, which is available via a call to AndroidRuntime::getRuntime. bug: 13647418 Change-Id: I6f92680c3619a68c6d4b0995db4cdc9adc788e36
* | | | Allow creation of heaps that are read-only to partnerGlenn Kasten2014-03-181-1/+2
| | | | | | | | | | | | | | | | Change-Id: I3c2b3d9b1671da4b9d9c58dce27e291d30703b03
* | | | am 793be12c: am b730a452: am f0190bff: Add support for writing byte arrays ↵Marco Nelissen2014-03-151-0/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | to parcels * commit '793be12c0f5a7878d1085e94e58a9c36c84f0911': Add support for writing byte arrays to parcels