summaryrefslogtreecommitdiffstats
path: root/libs/binder
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken error check in Parcel::readBlobNarayan Kamath2014-10-081-1/+1
| | | | | | | | | | | mmap returns MAP_FAILED (which is -1) and not NULL on failure. Diagnosed by cferris. bug: 17909809 Change-Id: I609788ebf94742ef88af002d2d3f3bc9b9e520ac
* Parcel: extra validation/debug code for writeDupFileDescriptorJesse Hall2014-10-061-0/+25
| | | | | | | | | Temporary extra debug validation for b/17477219: a Parcel recipient is getting a positive but invalid fd unexpectedly. Trying to track down where it's coming from. Debug code for bug: 17477219 Change-Id: Idb1e71621025a3928c7adc88fd44790e1abd2a01
* Add more logging for dup(fd) failureMichael Lentine2014-10-021-3/+15
| | | | Bug: 17477219 Change-Id: Ide0ae16d777c9af783023c705c18a93c00999147
* Work on issue #17656716: Unhandled exception in Window ManagerDianne Hackborn2014-09-301-8/+13
| | | | | | | | | | | | Try to clean up the code paths coming in and out of binder IPCs to plug any places where we could disrupt the gather flag of a thread, causing it to keep gathering stack crawls (which is the thing that is causing our strict mode data to become so large). We now take care of saving and restoring this state in the core IPC code path, not at the Java layer. Change-Id: I73d564778da127bdce00f304225930e7f2318293
* Fix CAS argument type.Hans Boehm2014-09-021-1/+1
| | | | | | | | Gcc apparently doesn't check; clang does. Bug:17067219 Change-Id: I184084a5063131dbc857c63f97e70e78a05e1a76 (cherry picked from commit 1ddaadb59883df5ca821b4b08fdd41a1720a3b6f)
* Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""Hans Boehm2014-09-021-14/+18
| | | | | | | | | | | | | | | | | | | | | | | | 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/+24
| | | | | Bug: 12979595 Change-Id: Ida474e539a3af0a85ec157a66bbf986430c8020e
* update battery status for audio/videoChong Zhang2014-07-221-0/+56
| | | | | | Bug: 12979595 Change-Id: Ic8e8d625becc6d1050f840ad63b7423f388eeba3
* Remove Parcel::writeIntPtr.Narayan Kamath2014-06-121-5/+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
* Merge "Fix mips build for libbinder."Narayan Kamath2014-06-041-0/+1
|\
| * Fix mips build for libbinder.Narayan Kamath2014-06-041-0/+1
| | | | | | | | | | | | Mips specific code was using an uninitialized variable. Change-Id: I445043c76ebfa420b26376ade60f8068b4ea0b11
* | am f0a24759: am a28750ee: Merge "binder: Turn on -Werror"Mark Salyzyn2014-06-033-68/+70
|\ \ | |/ |/| | | | | * commit 'f0a2475905786d5457e7af838ac714acbfdafa4f': binder: Turn on -Werror
| * am a28750ee: Merge "binder: Turn on -Werror"Mark Salyzyn2014-06-033-68/+70
| |\ | | | | | | | | | | | | * commit 'a28750eec38c848230adfeef28725b29cc36a9da': binder: Turn on -Werror
| | * binder: Turn on -WerrorMark Salyzyn2014-06-033-68/+70
| | | | | | | | | | | | Change-Id: I0ee785927a7ae5f731b02176b0b781b87c22a24e
* | | binder: rm utils/Debug.h as unutilizedMark Salyzyn2014-05-301-1/+0
| | | | | | | | | Change-Id: I52eb8b64b71cec7ffd4560e902daf358fda98b4a
* | | am ea3f1da9: am 1ce5ecbe: am 63645c69: Merge "binder: rm utils/Debug.h"Mark Salyzyn2014-05-295-5/+0
|\ \ \ | |/ / | | | | | | | | | * commit 'ea3f1da9013b33ecf3f3f8771393c1754a9aec59': binder: rm utils/Debug.h
| * | am 1ce5ecbe: am 63645c69: Merge "binder: rm utils/Debug.h"Mark Salyzyn2014-05-295-5/+0
| |\ \ | | |/ | | | | | | | | | * commit '1ce5ecbe3286380f5ff7ace289369ed006e9b40a': binder: rm utils/Debug.h
| | * am 63645c69: Merge "binder: rm utils/Debug.h"Mark Salyzyn2014-05-295-5/+0
| | |\ | | | | | | | | | | | | | | | | * commit '63645c69e03cf3862c52cfde6cbd5f5143ccd38a': binder: rm utils/Debug.h
| | | * binder: rm utils/Debug.hMark Salyzyn2014-05-295-5/+0
| | | | | | | | | | | | | | | | Change-Id: I16931919a26c16a0d701771c93fa7fe1c6f60ef8
* | | | am 114d71ce: am 214b4a61: am 8155ce81: Merge "Remove unused LOCAL_LDLIBS."Ying Wang2014-05-081-2/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '114d71ce7c6ec1ce0327c812a42966c4258b4a46': Remove unused LOCAL_LDLIBS.
| * | | am 214b4a61: am 8155ce81: Merge "Remove unused LOCAL_LDLIBS."Ying Wang2014-05-071-2/+0
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '214b4a61ac3fa63e35c79157d3acf0d8b692b3ac': Remove unused LOCAL_LDLIBS.
| | * | am 8155ce81: Merge "Remove unused LOCAL_LDLIBS."Ying Wang2014-05-071-2/+0
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '8155ce81d4b150e6e453d9443f9fea4cc2c546d2': Remove unused LOCAL_LDLIBS.
| | | * Remove unused LOCAL_LDLIBS.Ying Wang2014-05-071-2/+0
| | | | | | | | | | | | | | | | Change-Id: I62904c410a66f256da8253764577acae18f964f8
* | | | am 57fdbbda: am 4314ccd1: am 70278fbf: Merge "Add error message for hints ↵Jesse Hall2014-05-051-1/+6
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | when exceptions occur during binder transactions." * commit '57fdbbda2c475d2abdd828177f942ddb6d164bef': Add error message for hints when exceptions occur during binder transactions.
| * | | am 4314ccd1: am 70278fbf: Merge "Add error message for hints when exceptions ↵Jesse Hall2014-05-051-1/+6
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | occur during binder transactions." * commit '4314ccd1ba9fe773b0fc91f0a08dc536ebce8dfe': Add error message for hints when exceptions occur during binder transactions.
| | * | am 70278fbf: Merge "Add error message for hints when exceptions occur during ↵Jesse Hall2014-05-051-1/+6
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | binder transactions." * commit '70278fbfe012c1fce3e63a41ffb9feaf1e53a64a': Add error message for hints when exceptions occur during binder transactions.
| | | * Add error message for hints when exceptions occur during binder transactions.Jun Jiang2014-04-291-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It can help to detect some kind of error, such as why GraphicBuffer::flatten will crash when handle is null. Change-Id: I703cd035b96edb7afb324cf24d8230d4e55f4f52 Signed-off-by: Jun Jiang <jun.a.jiang@intel.com>
| | * | Merge commit '6d05ef2310bdc84811d5b0385b009ad11447a749' into HEADBill Yi2014-04-291-6/+18
| | |\ \ | | | |/ | | |/|
| | | * am 01502981: Merge "fix valgrind ioctl warning."Jesse Hall2014-03-201-1/+1
| | | |\ | | | | | | | | | | | | | | | | | | | | * commit '01502981cddb69b9ab7e4bf8bc66366ae0eb7035': fix valgrind ioctl warning.
| | | * \ am 5b61ad2c: Check the padded size of the read byte arrayKenny Root2014-03-171-2/+4
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit '5b61ad2cda8ec8ab634ce02f388bb2d3c5ab048d': Check the padded size of the read byte array
| | | * \ \ am f0190bff: Add support for writing byte arrays to parcelsMarco Nelissen2014-03-141-0/+10
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f0190bff38b6c29abbfc4a877442f71fc3d7dad8': Add support for writing byte arrays to parcels
| | | * \ \ \ am d1c87d37: Merge changes I3432d9d3,I90fcf538,I64398603Arve Hjønnevåg2014-03-102-1/+11
| | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd1c87d37025c49f6a47fe43328572da495ff04c1': Binder: Fix some valgrind errors. Binder: Don't cast directly from a pointer to binder_uintptr_t Binder: Disable attemptIncStrongHandle
| | | * \ \ \ \ am 74be0f7b: Merge "binder: fix all warnings"Colin Cross2014-03-078-36/+39
| | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '74be0f7be35e7b40a322fa9a407cb49265333a0b': binder: fix all warnings
| | | * \ \ \ \ \ am 4e7fd950: Merge "Use 64 bit binder interface if TARGET_USES_64_BIT_BINDER ↵Arve Hjønnevåg2014-03-071-0/+4
| | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _or_ TARGET_IS_64_BIT is set." * commit '4e7fd9506103dcc9750788caf1f94b8d1348f37b': Use 64 bit binder interface if TARGET_USES_64_BIT_BINDER _or_ TARGET_IS_64_BIT is set.
| | | * \ \ \ \ \ \ am 58242fc2: Merge changes ↵Arve Hjønnevåg2014-03-075-85/+117
| | | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ib0e5a037,I1bd7c38e,Icfc67c2a,I96c64312,I59528054, ... * commit '58242fc29881cf29d56ee6e5fde6d73b16d0b67c': 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
* | | | \ \ \ \ \ \ \ am d09b2acd: am 033bdd72: Merge "Remove global variables from ProcessState."Narayan Kamath2014-04-031-35/+0
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd09b2acdc8ca706c65984956e61c0bb333cee992': Remove global variables from ProcessState.
| * | | | | | | | | | am 033bdd72: Merge "Remove global variables from ProcessState."Narayan Kamath2014-04-031-35/+0
| |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '033bdd72f9f32f4bd3d282750bdc0dcfbb469959': Remove global variables from ProcessState.
| | * | | | | | | | | Remove global variables from ProcessState.Narayan Kamath2014-04-031-35/+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
* | | | | | | | | | Merge "Allow creation of heaps that are read-only to partner"Glenn Kasten2014-03-271-2/+2
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Allow creation of heaps that are read-only to partnerGlenn Kasten2014-03-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3c2b3d9b1671da4b9d9c58dce27e291d30703b03
* | | | | | | | | | | am 74ae7490: am 01502981: Merge "fix valgrind ioctl warning."Jesse Hall2014-03-201-1/+1
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / |/| / / / / / / / / / | |/ / / / / / / / / | | | | | | | | | | * commit '74ae749099a3c84f38dbe2f43e6627bb17caf5e4': fix valgrind ioctl warning.
| * | | | | | | | | am 01502981: Merge "fix valgrind ioctl warning."Jesse Hall2014-03-201-1/+1
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '01502981cddb69b9ab7e4bf8bc66366ae0eb7035': fix valgrind ioctl warning.
| | * | | | | | | | Merge "fix valgrind ioctl warning."Jesse Hall2014-03-201-1/+1
| | |\ \ \ \ \ \ \ \
| | | * | | | | | | | fix valgrind ioctl warning.Jin Wei2013-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initialize local variable to avoid syscall ioctl warning. Change-Id: I33a90917856018a8527305bb362948ef03bd734c Origin-Change-Id: I022ebce40b3774a815639a5af34bc7aeb2489936 Signed-off-by: Jin Wei <wei.a.jin@intel.com> Signed-off-by: Jian Luo <jian.luo@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Author-tracking-BZ: 62797
| | * | | | | | | | | Binder: Make sure binder objects do not overlapArve Hjønnevåg2014-02-241-0/+12
| | | |_|_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes crashing part of bug 11355082. The driver still leaks references. Change-Id: Ibc6a63b151c1fc1f7666237f25255ba781e02071
* | | | | | | | | | am ca609e43: am 38e2aaaa: am 5b61ad2c: Check the padded size of the read ↵Kenny Root2014-03-171-2/+4
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | byte array * commit 'ca609e4300d88ad1e815581ebc6a478b446d3882': Check the padded size of the read byte array
| * | | | | | | | | am 38e2aaaa: am 5b61ad2c: Check the padded size of the read byte arrayKenny Root2014-03-171-2/+4
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '38e2aaaa3dd62a20eb211808ae6fe45ec37ee6d5': Check the padded size of the read byte array
| | * \ \ \ \ \ \ \ \ am 5b61ad2c: Check the padded size of the read byte arrayKenny Root2014-03-171-2/+4
| | |\ \ \ \ \ \ \ \ \ | | | | |_|_|_|_|_|_|/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '5b61ad2cda8ec8ab634ce02f388bb2d3c5ab048d': Check the padded size of the read byte array
| | | * | | | | | | | Check the padded size of the read byte arrayKenny Root2014-03-171-2/+4
| | | | |_|_|_|_|_|/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 13509200 Change-Id: Id93894fcc617ec1cd4ce66921c6e1f1c3cf40b09
* | | | | | | | | | am 793be12c: am b730a452: am f0190bff: Add support for writing byte arrays ↵Marco Nelissen2014-03-151-0/+10
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to parcels * commit '793be12c0f5a7878d1085e94e58a9c36c84f0911': Add support for writing byte arrays to parcels