summaryrefslogtreecommitdiff
path: root/libs/androidfw/CursorWindow.cpp
AgeCommit message (Collapse)Author
2019-05-24Update LOG_WINDOW format params.Daniel Santiago Rivera
Params of size_t use %zu formatting, while int64_t use PRId64. These params had not been updated in a while since LOG_WINDOW is a no-op macro when LOG_NDEBUG is off. Test: Enable LOG_NDEBUG and do make Change-Id: I59e9fa1aa343fd0a1da83c40fd24f3ef7bae5ed4
2019-04-03Improve CursorWindow failure messageMakoto Onuki
Bug: 129139241 Bug: 129721058 Test: atest CursorWindowTest Change-Id: Iac1c5ec6f999dadd638fc5ab47c69d13f60ea467
2019-01-14CursorWindow.cpp: replace dup() with fcntl(F_DUPFD_CLOEXEC)Nick Kralevich
Replace calls to dup() with fcntl(F_DUPFD_CLOEXEC). The only difference between the two is that O_CLOEXEC is set on the newly duped file descriptor. This helps address file descriptor leaks crossing an exec() boundary. Test: compiles and boots Bug: 120983106 Change-Id: Icc2ff2f7f398905aa8283c8797898114d34a9829
2017-02-16Check bounds in offsetToPtrFyodor Kupolov
Check whether specified offset belongs to mData. Also added a default argument bufferSize to check the end offset. Size of the ashmem descriptor can be modified between ashmem_get_size_region call and mmap. createFromParcel method was updated to check ashmem size again immediately after memory is mapped. Test: manual - using the test app from the bug Bug: 34128677 Change-Id: I3ecd1616a870ce20941ce9b20a1843d2b4295750
2014-03-27AArch64: Make frameworks/base code more portableAshok Bhat
Changes in this patch include [x] Use %zu for size_t, %zd for ssize_t [x] Some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) Change-Id: Id1aaa7894a7d0b85ac7ecd7b2bfd8cc40374261f Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Craig Barber <craig.barber@arm.com> Signed-off-by: Kévin PETIT <kevin.petit@arm.com> Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
2014-03-19androidfw: resolve 64-bit build issuesMark Salyzyn
- uid_t/gid_t cast to unsigned long - unused argument warnings - tab and space requirements Change-Id: Ib446d8165b9082be02edb55e6b71fd1a03ea3431
2013-07-01Move input library code to frameworks/native.Jeff Brown
No longer compile libandroidfw as a static library on the device since it already exists as a shared library. Keeping the static library would force us to provide a static library version of libinput for the device as well which doesn't make sense. Change-Id: I3517881b87b47dcc209d80dbd0ac6b5cf29a766f
2012-02-27move CursorWindow from libbinder to libandroidfwMathias Agopian
Change-Id: I3b304e4f74e0d0ec8b20c57296c62449c9a0f792