summaryrefslogtreecommitdiffstats
path: root/libs/binder
Commit message (Collapse)AuthorAgeFilesLines
* am 708b42e0: am eba7afcc: am 2f340be3: Disregard alleged binder entities ↵Christopher Tate2015-07-021-1/+1
|\ | | | | | | | | | | | | beyond parcel bounds * commit '708b42e0ee5ad97b8426a6245f73131ddfc59a33': Disregard alleged binder entities beyond parcel bounds
| * Disregard alleged binder entities beyond parcel boundsChristopher Tate2015-06-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | When appending one parcel's contents to another, ignore binder objects within the source Parcel that appear to lie beyond the formal bounds of that Parcel's data buffer. Bug 17312693 Change-Id: If592a260f3fcd9a56fc160e7feb2c8b44c73f514 (cherry picked from commit 27182be9f20f4f5b48316666429f09b9ecc1f22e)
* | am 8728c390: am 2c4f5fde: am 861c3f56: am 9004e7f5: am 4ff0cb44: Verify that ↵Adam Lesinski2015-05-281-0/+4
|\ \ | |/ | | | | | | | | | | the native handle was created * commit '8728c390476110857dd6b290dac3bfdf13b33e81': Verify that the native handle was created
| * am 861c3f56: am 9004e7f5: am 4ff0cb44: Verify that the native handle was createdAdam Lesinski2015-05-281-0/+4
| |\ | | | | | | | | | | | | * commit '861c3f56157813627467054f488ecff7d339f2b0': Verify that the native handle was created
| | * am 9004e7f5: am 4ff0cb44: Verify that the native handle was createdAdam Lesinski2015-05-281-0/+4
| | |\ | | | | | | | | | | | | | | | | * commit '9004e7f5516c5b4a1b4178fa6a8bb4b3ca4ddcd0': Verify that the native handle was created
| | | * am 4ff0cb44: Verify that the native handle was createdAdam Lesinski2015-05-281-0/+4
| | | |\ | | | | | | | | | | | | | | | | | | | | * commit '4ff0cb4404db31576cd8a81ca5ef3b044d492904': Verify that the native handle was created
| | | | * Verify that the native handle was createdAdam Lesinski2015-05-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The inputs to native_handle_create can cause an overflowed allocation, so check the return value of native_handle_create before accessing the memory it returns. Bug:19334482 Change-Id: I1f489382776c2a1390793a79dc27ea17baa9b2a2 (cherry picked from commit eaac99a7172da52a76ba48c26413778a74951b1a)
* | | | | am 6e32c037: Merge "Kill HAVE_PTHREADS."Yabin Cui2015-01-271-11/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit '6e32c0377db89bafa477715b3a02431d651978cf': Kill HAVE_PTHREADS.
| * | | | | Kill HAVE_PTHREADS.Yabin Cui2015-01-261-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 19083585 Change-Id: I355491de945590f43c82bdcb7968b01b4bff6e06
* | | | | | am 8f3ade0c: Merge "Follow StrictMode refactoring."Jeff Sharkey2015-01-161-1/+1
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit '8f3ade0c9ab52a1e4f13d6ff1922dd98e3ccdbcc': Follow StrictMode refactoring.
| * | | | | Follow StrictMode refactoring.Jeff Sharkey2015-01-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18335678 Change-Id: Iea920cfa26b5ebfd77b4601c9e6e65b21599342a
* | | | | | am aec92242: Merge "Replace all instances of intptr_t with uintptr_t."Riley Andrews2015-01-131-8/+8
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'aec922426620804768f00a6c5cb902f278f2967f': Replace all instances of intptr_t with uintptr_t.
| * | | | | Replace all instances of intptr_t with uintptr_t.Riley Andrews2015-01-131-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When compiling 32 bit binaries against a 64 bit binder interface, implicit promotions of intptr_t types to uint64_t for fields in the binder ioctl structures can result in invalid pointers because of sign extension.
* | | | | | am 41a160c4: Merge "Fix signed/unsigned comparison warnings in driver ↵Riley Andrews2015-01-131-7/+7
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interface test." * commit '41a160c4cda1ef2c916028ec2d0801da738b5249': Fix signed/unsigned comparison warnings in driver interface test.
| * | | | | Fix signed/unsigned comparison warnings in driver interface test.Riley Andrews2015-01-121-7/+7
| | | | | |
* | | | | | am 53186a4d: Merge "Add binder tests"Riley Andrews2014-12-192-1/+960
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit '53186a4d78479ba21213b6e055c7a85faeb318e2': Add binder tests
| * | | | | Add binder testsRiley Andrews2014-12-192-1/+960
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib0b38708dd6387fc4d5a4857ca74a217f3edad1a
* | | | | | am dbd252ea: Merge "Add binder driver interface test"Riley Andrews2014-12-192-0/+382
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'dbd252eab09d669a7d4b917890d75408193a85d3': Add binder driver interface test
| * | | | | Add binder driver interface testRiley Andrews2014-12-192-0/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test ioctls and some binder commands without using libbinder. Change-Id: I86dde56ff1380bca17d086021ac5324dc5210354
* | | | | | am 80e81505: Merge "binder: Add {read,write}Uint32 methods to Parcel"Dan Stoza2014-12-011-0/+15
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit '80e8150549c9d8380dadf942336d41ab3d92bf78': binder: Add {read,write}Uint32 methods to Parcel
| * | | | | binder: Add {read,write}Uint32 methods to ParcelDan Stoza2014-12-011-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 2d7ec9d7: Merge "Fix build with clang in C++11 mode"Chih-hung Hsieh2014-11-251-6/+6
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit '2d7ec9d7b5dfdb93930b94c134fa2dc10fd27313': Fix build with clang in C++11 mode
| * | | | | Fix build with clang in C++11 modeBernhard Rosenkränzer2014-11-251-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we're in C++11 mode by default, clang complains about switch statements with case values not matching the type -- since some binder_driver_return_protocol values are > 0x7fffffff, we need to make the switch statements operate on uint32_t rather than int32_t. BUG: 18466763 Change-Id: Iedbfd5c7a3d3d9f087d2eab4ff21343ad7a2a448 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
* | | | | | am 2e42a906: Merge "Binder: Remove unused functions & variables"Andreas Gampe2014-11-252-10/+0
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit '2e42a90653abd0fc8a76909b5f101782d187136e': Binder: Remove unused functions & variables
| * | | | | Binder: Remove unused functions & variablesAndreas Gampe2014-11-242-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For build-system CFLAGS clean-up, remove unused functions and variables. Change-Id: I88abc2bc99e6b91c7aa56470ff9671bf8bf29f8d
* | | | | | am e0f91c37: Merge "We HAVE_LITTLE_ENDIAN."Elliott Hughes2014-11-221-5/+0
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'e0f91c3731b16b010eb31117e941e5468bdfeb2e': We HAVE_LITTLE_ENDIAN.
| * | | | | We HAVE_LITTLE_ENDIAN.Elliott Hughes2014-11-211-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I68551ad663f2649a06b1958e9bef152e6d026e72
* | | | | | am c894c204: Merge "C++11 compatibility."Dan Albert2014-11-202-2/+2
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'c894c2045f589571c80af0648e7a9dcd7e97b6a8': C++11 compatibility.
| * | | | | C++11 compatibility.Dan Albert2014-11-202-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Explicit conversion for atomic_uintptr_t initialization. * Fix string literal concatenation to not be a UD literal. * Use __typeof__ instead of typeof (should become decltype once this actually moves to C++11). Bug: 18466763 Change-Id: I4eedddfb945a2a703ed27317cb6e2b3041b1ebfc
* | | | | | am 55f71bc0: Merge "Replace IInterface::asBinder() with a static"Marco Nelissen2014-11-175-14/+19
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit '55f71bc0800b9ec7a779c5d30d5a90e074c2526b': Replace IInterface::asBinder() with a static
| * | | | | Replace IInterface::asBinder() with a staticMarco Nelissen2014-11-175-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so we can do NULL checks again, and update calls to IInterface::asBinder() to use the new static version. Change-Id: Ia7b10eb38ca55b72278bfd33d3bf647f338b4e6a
* | | | | | am a4cff88d: Fix issue #18356768: some app process may hang at Runtime#exit...Dianne Hackborn2014-11-142-20/+22
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | * commit 'a4cff88d80bf1acbdbd063af88ecad83a8b9b7b4': Fix issue #18356768: some app process may hang at Runtime#exit...
| * | | | | Fix issue #18356768: some app process may hang at Runtime#exit...Dianne Hackborn2014-11-132-20/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...in Parcel destructor Don't use a Mutux object, just use simple posix mutex primitives, to avoid static init/destroy order problems. Change-Id: Ic012d94297564c0a55d58869f8276d7d10545fbc
* | | | | | am ca69e8f2: Merge "Add tracking of parcel memory allocations." into lmp-mr1-devDianne Hackborn2014-11-122-2/+56
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'ca69e8f2d0a1fc963bd170f9b2bf164028761323': Add tracking of parcel memory allocations.
| * | | | | Add tracking of parcel memory allocations.Dianne Hackborn2014-11-112-2/+56
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I76ffed0e69ccfe70e87d98646f11d4de7c3fd980
* | | | | | am fee99040: Revert "Add more logging for dup(fd) failure"Jesse Hall2014-11-041-15/+3
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'fee99040de000a64f6036a7db172fb7c68d9764a': Revert "Add more logging for dup(fd) failure"
| * | | | | Revert "Add more logging for dup(fd) failure"Jesse Hall2014-11-041-15/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Underlying bug has been fixed, extra debug code no longer needed This reverts commit 36273c991b189c5516819f4d5e3f83061c320593. Change-Id: Ia47f1ae9ee7338329bfb8d710aff57e15e944f20
* | | | | | am 8e5cf83a: Revert "Parcel: extra validation/debug code for ↵Jesse Hall2014-11-041-25/+0
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | writeDupFileDescriptor" * commit '8e5cf83afbe2b671f96d04786cf0d0f967e342f9': Revert "Parcel: extra validation/debug code for writeDupFileDescriptor"
| * | | | | Revert "Parcel: extra validation/debug code for writeDupFileDescriptor"Jesse Hall2014-11-041-25/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Underlying bug has been fixed, extra debug code no longer needed. This reverts commit ccf851f108c008d086b7f3c3923d60d385985e71. Change-Id: I19ad9239efdf1d8f70cd74af9b7c2ae97713208f
* | | | | | am ac5cd96f: am dbab409c: Merge "Avoid two warnings from clang."Chih-Hung Hsieh2014-11-041-13/+11
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | * commit 'ac5cd96fe24690d9e0ae823c77334b8579139aa2': Avoid two warnings from clang.
| * | | | | am dbab409c: Merge "Avoid two warnings from clang."Chih-Hung Hsieh2014-11-041-13/+11
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'dbab409c49ca5dd6686912d0b3eeb19ef1c37a3e': Avoid two warnings from clang.
| | * | | | | Avoid two warnings from clang.Chih-Hung Hsieh2014-10-311-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clang compiler warns about undefined static functions like getReturnString before all references are removed inside IF_LOG_COMMANDS. To remove such warnings, we can leave those static functions defined and the compiler will remove them at the end when they are not used. Add a cast to long before converting from int to void*, to avoid type cast warnings on 64 bit targets. BUG: 17043248 Change-Id: Ica31101522279d2c8eacc90e2939767002fb827b
| * | | | | | am 9cc84950: Merge "Don\'t check if this == NULL."Dan Albert2014-10-151-2/+2
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit '9cc849500df0bba42d3ed19b90c38ff1dffd2262': Don't check if this == NULL.
| * | | | | | am 9ea09757: Fix broken error check in Parcel::readBlobNarayan Kamath2014-10-091-1/+1
| |\ \ \ \ \ \ | | | |_|/ / / | | |/| | | | | | | | | | | | | | | | | | * commit '9ea09757fa63ad2a9bea9c846b51c1210d69c79f': Fix broken error check in Parcel::readBlob
| * | | | | | am 78639c22: Merge "Parcel: extra validation/debug code for ↵Jesse Hall2014-10-061-0/+25
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | writeDupFileDescriptor" into lmp-dev * commit '78639c22acfa5e56d87fd6fe8340d083536b29fc': Parcel: extra validation/debug code for writeDupFileDescriptor
| * \ \ \ \ \ \ am 36462d9d: Merge "Add more logging for dup(fd) failure" into lmp-devMichael Lentine2014-10-021-3/+15
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '36462d9de00105ae46ee3dbb0f644fa6af599f97': Add more logging for dup(fd) failure
| * \ \ \ \ \ \ \ am 5ee2c9d2: Work on issue #17656716: Unhandled exception in Window ManagerDianne Hackborn2014-09-301-8/+13
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '5ee2c9d20c0fbecf6b4a482eb8d8bfdf85d0d424': Work on issue #17656716: Unhandled exception in Window Manager
* | \ \ \ \ \ \ \ \ am 98536859: Merge "Fix output of pointers for 64bit devices." into lmp-mr1-devMichael Lentine2014-10-311-2/+2
|\ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9853685931298ba02066ebb50a8377ad4aa80f00': Fix output of pointers for 64bit devices.