summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
| | * liblog: LIBLOG_ABI_PRIVATE __android_log_is_debuggable()Mark Salyzyn2016-10-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow our own libraries to use this privately instead of running the less efficient get_properties and doing the math. Test: compile and boot smoke test Bug: 27566046 Bug: 31456426 Change-Id: I2f677276d27fbcb6af01b600ac1d9891c8938d43
* | | Merge "Remove socket_loopback_client."Elliott Hughes2016-10-141-1/+0
|\| | | | | | | | | | | | | | | | | am: 5171bebf41 Change-Id: I28080f043ba5a042573e81a6da3f5be83c7a4251
| * | Merge "Remove socket_loopback_client."Treehugger Robot2016-10-141-1/+0
| |\ \ | | |/ | |/|
| | * Remove socket_loopback_client.Elliott Hughes2016-10-131-1/+0
| | | | | | | | | | | | | | | | | | Bug: http://b/31537253 Test: builds Change-Id: If02c8107206fb60e4622f8937bee0d0a362e1c7d
* | | Merge "Fallback to IPv6 when IPv4 is not available in adb" am: c32d7fd66f ↵Tao Wu2016-10-141-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5b7c6772b0 am: 27c6c4cf04 Change-Id: I2ceb40b4589dfc2721197065ae5a85e9dc83b907
| * | | Merge "Fallback to IPv6 when IPv4 is not available in adb" am: c32d7fd66fTao Wu2016-10-141-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | am: 5b7c6772b0 Change-Id: I63e945622d47ab1cbcbdd82d00cfdf3d51c95564
| | * | Merge "Fallback to IPv6 when IPv4 is not available in adb"Treehugger Robot2016-10-141-0/+1
| | |\ \
| | | * | Fallback to IPv6 when IPv4 is not available in adbTao Wu2016-10-131-0/+1
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | Test: manual - make sure it works in both IPv4/IPv6 env. BUG: 31537253 Change-Id: Ica492bff34a8c0441516a213d0e8b78fcdfd3282 Signed-off-by: Tao Wu <lepton@google.com>
* | | | Merge "Add native_handle_init" am: d790aae4bc am: 28423b86feChia-I Wu2016-10-131-0/+15
|\| | | | | | | | | | | | | | | | | | | | | | | am: bf72cf21dc Change-Id: I5d4cc013421350dd30fa13d168112d30ad93e7cd
| * | | Merge "Add native_handle_init" am: d790aae4bcChia-I Wu2016-10-131-0/+15
| |\| | | | | | | | | | | | | | | | | | | | | | am: 28423b86fe Change-Id: Ied7a062c6ce40864ea181819f5da21e64cae04de
| | * | Add native_handle_initChia-I Wu2016-10-121-0/+15
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HIDL requires file descriptors to be wrapped in native_handle_t. We want a low overhead way to do that when the number of file descriptors is known at compile time. Instead of // wrap an fd in native_handle_t native_handle_t* fd_handle = native_handle_create(1, 0); if (!fd_handle) { // clean up and return error } fd_handle->data[0] = fd; hidl_cb(..., fd_handle); native_handle_delete(fd_handle); this change adds native_handle_init to allow for // wrap an fd in native_handle_t NATIVE_HANDLE_DECLARE_STORAGE(fd_storage, 1, 0); native_handle_t* fd_handle = native_handle_init(fd_storage, 1, 0); fd_handle->data[0] = fd; hidl_cb(..., fd_handle); Test: make libcutils Bug: 32021609 Change-Id: If1fd07482243d37492fdea57c602a1b13c8953cc
* | | Merge "liblog: adb: move security interfaces to private" am: 09dac589f1 am: ↵Mark Salyzyn2016-10-102-5/+4
|\| | | | | | | | | | | | | | | | | | | | | | | 586c6985cf am: 4b5456eacc Change-Id: Id78628d7e7abfa16f1ada16f894f9616a2dc469b
| * | Merge "liblog: adb: move security interfaces to private" am: 09dac589f1Mark Salyzyn2016-10-102-5/+4
| |\| | | | | | | | | | | | | | | | am: 586c6985cf Change-Id: I8c54bdc1a3582be1fc7c4a9be83b555624fcb0a3
| | * liblog: adb: move security interfaces to privateMark Salyzyn2016-10-102-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Compile & adb functioning Bug: 19235719 Bug: 26552300 Bug: 31289077 Bug: 31456426 Change-Id: I7ad8963bcca3d8b5c37b547c11d163b652d35556
* | | Merge "Add native_handle_clone" am: e8f6c7398b am: 462e087e40Chia-I Wu2016-10-081-0/+9
|\| | | | | | | | | | | | | | | | | am: cb52dc258e Change-Id: I011555d429120a26e61fbce5f7a125ce96fadb3f
| * | Merge "Add native_handle_clone" am: e8f6c7398bChia-I Wu2016-10-081-0/+9
| |\| | | | | | | | | | | | | | | | am: 462e087e40 Change-Id: I745341bf4c76fc8c75f36e578cf1086808119426
| | * Merge "Add native_handle_clone"Chia-I Wu2016-10-081-0/+9
| | |\
| | | * Add native_handle_cloneChia-I Wu2016-09-261-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libhwbinder's Parcel::readNativeHandleNoDup returns a temporary native_handle_t. We want a way to save the temporary handle for later use. Change-Id: I16f32043aa8b7d2c0aa57d67551500259b411410
* | | | Merge "Test for _WIN32 in instead of USE_MINGW." am: ec99158580 am: 2e7e065db9Elliott Hughes2016-10-051-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | am: 04819403d6 Change-Id: I03fc482f4d0aab72991b351e855b8e240ed3abd9
| * | | Merge "Test for _WIN32 in instead of USE_MINGW." am: ec99158580Elliott Hughes2016-10-051-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | am: 2e7e065db9 Change-Id: I9c7bee42bf1d7522d4dd95b5bb8a925841f96624
| | * | Merge "Test for _WIN32 in instead of USE_MINGW."Treehugger Robot2016-10-051-1/+1
| | |\ \
| | | * | Test for _WIN32 in instead of USE_MINGW.Elliott Hughes2016-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/23392815 Test: builds Change-Id: I7fce8de1f0e2314170cce456cd49346dcee9d134
* | | | | Merge "system/core: drop or replace log/logger.h" am: 1f90485804 am: cb670780beMark Salyzyn2016-10-042-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6e5ffe2680 Change-Id: I4c1351fb61b3357d059a8e1da4ce14e3701e17af
| * | | | Merge "system/core: drop or replace log/logger.h" am: 1f90485804Mark Salyzyn2016-10-042-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cb670780be Change-Id: I532a0f6143511f53f3303751f95de115ac034cd7
| | * | | system/core: drop or replace log/logger.hMark Salyzyn2016-10-042-2/+2
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | debuggerd does not require log/logger.h, can use android/log.h In some cases, mark why log/logger.h was required. Test: Compile and boot smoke test Bug: 26552300 Bug: 31289077 Bug: 31456426 Change-Id: Ia34987e25a01d81971ec8d785415f732b8376c4f
* | | | Merge "liblog: logd: Add android_lookupEventTag_len()" am: 093951a230 am: ↵Mohan Srinivasan2016-10-033-3/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aed39f1f3d am: 2acb41b46c Change-Id: Ifd5da3780cf05863b71fad9583b1b83f4962b46f
| * | | Merge "liblog: logd: Add android_lookupEventTag_len()" am: 093951a230Mohan Srinivasan2016-10-033-3/+14
| |\| | | | | | | | | | | | | | | | | | | | | | am: aed39f1f3d Change-Id: If1615c62df20df58eda2910455f2a1e05268fba7
| | * | liblog: logd: Add android_lookupEventTag_len()Mark Salyzyn2016-10-033-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows us to mitigate the impact of MAP_PRIVATE and copy on write by calling android_lookupEventTag_len instead of android_lookupEventTag, and delaying the copy on write impact to the later. We return a string length in a supplied location along with the string pointer with android_lookupEventTag_len(const EventTagMap* map, size_t* len, int tag). The string is not guaranteed to be nul terminated. Since android_lookupEventTag() called even once can cause the memory impact, we will mark it as deprecated, but we currently have no timeframe for removal since this is a very old interface. Add an API for __android_log_is_loggable_len() that accepts the non null terminated content and fixup callers that would gain because the length is known prior to the call either in the compiler or at runtime. Tackle transition to android_lookupEventTag_len() and fixup callers. On any application that performs logging (eg: com.android.phone) /proc/<pid>/smaps before: xxxxxxxxxx-xxxxxxxxxx rw-p 00000000 fd:00 463 /system/etc/event-log-tags Size: 20 kB Rss: 20 kB Pss: 1 kB Shared_Clean: 0 kB Shared_Dirty: 20 kB Private_Clean: 0 kB Private_Dirty: 0 kB Referenced: 0 kB Anonymous: 20 kB AnonHugePages: 0 kB Swap: 0 kB SwapPss: 0 kB KernelPageSize: 4 kB MMUPageSize: 4 kB Locked: 0 kB VmFlags: rd wr mr mw me ac /proc/<pid>/smaps after: xxxxxxxxxx-xxxxxxxxxx rw-p 00000000 fd:00 1773 /system/etc/event-log-tags Size: 20 kB Rss: 20 kB Pss: 1 kB Shared_Clean: 20 kB (was 0kB) Shared_Dirty: 0 kB (was 20kB) Private_Clean: 0 kB Private_Dirty: 0 kB Referenced: 20 kB (was 0kB) Anonymous: 0 kB (was 20kB) AnonHugePages: 0 kB Swap: 0 kB SwapPss: 0 kB KernelPageSize: 4 kB MMUPageSize: 4 kB Locked: 0 kB VmFlags: rd wr mr mw me ac Added liblog-unit-tests --gtest_filter=liblog.event_log_tags to check for Shared_Clean: to not be 0 and Anonymous: to be 0 for all processes referencing event-log-tags. Which can include multiple references to /system/etc/event-log-tags and future possible refs to /data/misc/logd/event-log-tags and /dev/event-log-tags. We want failure messages to help point to errant code using the deprecated interface. This change saves 1/4MB of memory or more on a typical system. Test: gTest liblog-unit-tests Bug: 31456426 Change-Id: I9e08e44d9092bd96fe704b5709242e7195281d33
* | | | system/core Replace log/log.h with android/log.h am: ff2dcd9af9 am: cac331afd9Mark Salyzyn2016-09-301-2/+3
|\| | | | | | | | | | | | | | | | | | | | | | | am: 0308b0eabd Change-Id: I4d631d53b4fc27e1a02d412bae21fffad6635258
| * | | system/core Replace log/log.h with android/log.h am: ff2dcd9af9Mark Salyzyn2016-09-301-2/+3
| |\| | | | | | | | | | | | | | | | | | | | | | am: cac331afd9 Change-Id: I95c6a64bc35a041688303fcee4d506865d0a19a4
| | * | system/core Replace log/log.h with android/log.hMark Salyzyn2016-09-301-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should use android/log.h instead of log/log.h as a good example to all others. Adjust header order to comply with Android Coding standards. Test: Compile Bug: 26552300 Bug: 31289077 Change-Id: I33a8fb4e754d2dc4754d335660c450e0a67190fc
* | | | system/core Replace cutils/log.h with android/log.h am: 66ce3e08c5 am: ↵Mark Salyzyn2016-09-304-10/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eb189f147b am: 16f7786032 Change-Id: I26939d55686b6182c9fae5fc74f3e7ed92132cdb
| * | | system/core Replace cutils/log.h with android/log.h am: 66ce3e08c5Mark Salyzyn2016-09-304-10/+9
| |\| | | | | | | | | | | | | | | | | | | | | | am: eb189f147b Change-Id: I3f2b13e259d9bbb7bc714f21eab7181fa72c35bf
| | * | system/core Replace cutils/log.h with android/log.hMark Salyzyn2016-09-304-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should use android/log.h instead of cutils/log.h as a good example to all others. Adjust header order to comply with Android Coding standards. Test: Compile Bug: 26552300 Bug: 31289077 Change-Id: I2c9cbbbd64d8dccf2d44356361d9742e4a9b9031
* | | | libcutils: Replace cutils/log.h with android/log.h am: 23ed4c242a am: f56fce0240Mark Salyzyn2016-09-301-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | am: 9fd2eaf827 Change-Id: If01fd686fc15aaf74b6f06b7e661eb46e127d51b
| * | | libcutils: Replace cutils/log.h with android/log.h am: 23ed4c242aMark Salyzyn2016-09-301-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | am: f56fce0240 Change-Id: I588c3a252594e1ecd4b34242217cf23c84e4af67
| | * | libcutils: Replace cutils/log.h with android/log.hMark Salyzyn2016-09-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace references to cutils/log.h and log/log.h with android/log.h. Point cutils/log.h to android/log.h. Adjust header order to comply with Android Coding standards. Test: Compile Bug: 26552300 Bug: 31289077 Change-Id: I4b00c0dff3a0a50cbb54301fdc5a6c29c21dab65
* | | | liblog: Replace log/log.h with android/log.h am: 6584d0a35a am: 499a33d6dcMark Salyzyn2016-09-306-724/+698
|\| | | | | | | | | | | | | | | | | | | | | | | am: c528ac0fe8 Change-Id: I2e6eb5782ccd27e47e8302381d790611fd58a1d7
| * | | liblog: Replace log/log.h with android/log.h am: 6584d0a35aMark Salyzyn2016-09-306-724/+698
| |\| | | | | | | | | | | | | | | | | | | | | | am: 499a33d6dc Change-Id: If28b70b199b4bbf99f853d6c6d14b73a72fafacb
| | * | liblog: Replace log/log.h with android/log.hMark Salyzyn2016-09-306-724/+698
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move all liblog related content into android/log.h, and make log/log.h points to android/log.h. Test: Compile Bug: 26552300 Bug: 31289077 Change-Id: I858e0ebe047b86f2a8530a99bc9c380d3d58edbb
* | | | liblog: logcat: Replace log/logd.h with log/log.h am: a166708d15 am: 772ed1c63cMark Salyzyn2016-09-302-55/+11
|\| | | | | | | | | | | | | | | | | | | | | | | am: 2b42b87d8c Change-Id: I4a977e248d0ea7e3b8ed31aed0643752aaab4e1c
| * | | liblog: logcat: Replace log/logd.h with log/log.h am: a166708d15Mark Salyzyn2016-09-302-55/+11
| |\| | | | | | | | | | | | | | | | | | | | | | am: 772ed1c63c Change-Id: Ibd14ac6a57994019e188e6ec138682b50d1f7e69
| | * | liblog: logcat: Replace log/logd.h with log/log.hMark Salyzyn2016-09-302-55/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should use log/log.h and in some cases android/log.h instead. Can not remove file because still in use by partners, so log/logd.h points to log/log.h. Test: Compile Bug: 26552300 Bug: 31289077 Change-Id: I3580d46154617abb7231027a44f4ab9ee023febf
* | | | liblog: logd: logcat: deprecate log/log_read.h am: 004cd3c55d am: 78a459a8c8Mark Salyzyn2016-09-303-181/+156
|\| | | | | | | | | | | | | | | | | | | | | | | am: 13c68b09d9 Change-Id: Icaab3eedecad8f55d8d1291b3414da5c12cec287
| * | | liblog: logd: logcat: deprecate log/log_read.h am: 004cd3c55dMark Salyzyn2016-09-303-181/+156
| |\| | | | | | | | | | | | | | | | | | | | | | am: 78a459a8c8 Change-Id: If1a76043e7941191b3c6ba07ca0277b7f9b7f2e6
| | * | liblog: logd: logcat: deprecate log/log_read.hMark Salyzyn2016-09-303-181/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Always used in combination with log/logger.h except in log_time.cpp, and not used externally. As a result liblog has to support stl, a small price to pay since goal is to convert liblog to C++ internally. Test: compile Bug: 31456426 Bug: 26552300 Bug: 31289077 Change-Id: I72828ec807d0a2c8e40bbdebd7a69f147a7ca5a9
* | | | liblog: Add C++ wrapper for C event log handler am: 8eaaac0103 am: 8b4cab3f69Mark Salyzyn2016-09-301-2/+94
|\| | | | | | | | | | | | | | | | | | | | | | | am: 848da90978 Change-Id: I215d1da28c1d4e0377097f49493d1e9c5fc9ee75
| * | | liblog: Add C++ wrapper for C event log handler am: 8eaaac0103Mark Salyzyn2016-09-301-2/+94
| |\| | | | | | | | | | | | | | | | | | | | | | am: 8b4cab3f69 Change-Id: I2760c8480818f30dd126e7cfbb900a0f5796c8b1
| | * | liblog: Add C++ wrapper for C event log handlerMark Salyzyn2016-09-301-2/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add android_log_event_context class. Test: in context of 'logd: add getEventTag command and service' Bug: 31456426 Bug: 26552300 Bug: 31289077 Bug: 19235719 Change-Id: Icf918b443f01e04040c8d3efe0cdb7a8e70be10c
* | | | Merge "[qemu]: Fix payload size format in qemu_pipe_frame_send()" am: ↵Miodrag Dinic2016-09-301-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e5976bea7a am: 8c274361fb am: f610eaac14 Change-Id: I890fbb885044e82d4ec66a5a400240124003ac25