summaryrefslogtreecommitdiffstats
path: root/include/binder
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * | | am b730a452: am f0190bff: Add support for writing byte arrays to parcelsMarco Nelissen2014-03-141-0/+1
| |\ \ \ | | |/ / | |/| / | | |/ | | | * commit 'b730a45216991cf22c39451c47393b4bccae111b': Add support for writing byte arrays to parcels
| | * Add support for writing byte arrays to parcelsMarco Nelissen2014-03-131-0/+1
| | | | | | | | | | | | | | | | | | b/13418320 Change-Id: I2285df9e9d3dc8a6a54055b13b352b81660bf45d
* | | am c93865de: am 58242fc2: Merge changes ↵Arve Hjønnevåg2014-02-032-9/+17
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ib0e5a037,I1bd7c38e,Icfc67c2a,I96c64312,I59528054, ... * commit 'c93865de80a16d3638936890fb42eb175284044b': ServiceManager: Implement PING_TRANSACTION ServiceManager: Use 32/64 bit types from new binder header Binder: Use 64 bit pointers in 32 processes if selected by the target Add BINDER_IPC_32BIT to CFLAGS unless TARGET_USES_64_BIT_BINDER is true Binder: Make binder portable ServiceManager: Fix the binder interface ServiceManager: Store handles in uint32_t instead of void * ServiceManager: Generic Fixes ServiceManager: Add extra error handling ServiceManager: Fix Android.mk ServiceManager: Make use of kernel exported structures
| * | Binder: Use 64 bit pointers in 32 processes if selected by the targetArve Hjønnevåg2014-01-312-9/+13
| | | | | | | | | | | | | | | | | | Uses new kernel header where void * has been replaced by binder_uintptr_t Change-Id: Icfc67c2a279269f700343bd9246fd7cb94efe2c1
| * | Binder: Make binder portableSerban Constantinescu2014-01-311-0/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes include - Binder attempts to cast pointers to a int datatype which is not sufficient on a 64-bit platform. - This patch introduces new read/write functions into Parcel that allow pointers to be written using the uintptr_t datatype for compile-time data type size selection. - Change access specifier for the methods above. - Binder uses the 64bit android_atomic_release_cas64 (aka cmpxchg) Change-Id: I595280541e0ba1d19c94b2ca2127bf9d96efabf1 Signed-off-by: Matthew Leach <matthew.leach@arm.com> Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
| * Native counterpart of new power manager methodMarco Nelissen2013-10-251-0/+1
| | | | | | | | | | | | | | | | Cherrypicked from master. b/9464621 Change-Id: I54c0ed50a57ac870da91db8589a73a2c792dbd8d
* | Native counterpart of new power manager methodMarco Nelissen2013-10-161-0/+1
| | | | | | | | Change-Id: I54c0ed50a57ac870da91db8589a73a2c792dbd8d
* | Cleanup Binder interface between sensorservice and BatteryStatsMike Lockwood2013-09-251-0/+55
| | | | | | | | Change-Id: Ia507160a2534059afe93849c8efc8407a046b50e
* | Add support for sending and receiving ParcelFileDescriptors from native ↵Mike Lockwood2013-09-051-0/+10
| | | | | | | | | | | | Binder code Change-Id: I7f308e28ebac0755628e19c9b4d0d7399341b435
* | Remove obsolete commentMarco Nelissen2013-09-041-8/+0
|/ | | | Change-Id: I8b040e4b2e968fd0754e15dcf9f899fbfe210b6e
* Make Flattenable not virtualMathias Agopian2013-07-301-9/+58
| | | | | | | | | | | | | | | | | Fallout from the Flattenable change, update all its uses. Additionnaly, fix/tighten size checks when (un)flatten()ing things. Removed the assumption by some flattenables (e.g.: Fence) that the size passed to them would be exact (it can and will be larger in some cases) The code in Parcel is a bit complicated so that we don't have to expose the full implementation (and also to keep the code smallish). Change-Id: I0bf1c8aca2a3128491b4f45510bc46667e566dde
* libbinder: include sys/uio.h instead of cutils/uio.hColin Cross2013-07-231-1/+1
| | | | | | | | libbinder is only built for the target, where bionic will provide uio, so it does not need to include the libcutils wrapper around uio for windows. Change-Id: Ifc2dd353bf7ed51bf08ec0ae91c43b12830f94ba