Mark Salyzyn
8a7297a09f
Merge "system/core: preparation to pull back interfaces from android/log.h"
...
am: 27d2d49f48
Change-Id: I604bb1d4cf62636663fa92e3d14a55887dbcae23
2016-10-20 18:03:57 +00:00
Mark Salyzyn
cfd5b080af
system/core: preparation to pull back interfaces from android/log.h
...
Point to log/log.h where necessary, define LOG_TAG where necessary.
Accept that private/android_logger.h is suitable replacement for
log/logger.h and android/log.h.
Correct liblog/README
Effectively a cleanup and controlled select revert of
'system/core: drop or replace log/logger.h' and
'system/core: Replace log/log.h with android/log.h'.
Test: compile
Bug: 30465923
Change-Id: Ic2ad157bad6f5efe2c6af293a73bb753300b17a2
2016-10-20 08:11:39 -07:00
Mark Salyzyn
f43c324ce1
libcutils: use __android_log_is_debuggable()
...
am: b5aa4e7125
Change-Id: Ifd6eafdcaf348fe64e88341cb5c511d28a390e15
2016-10-18 16:46:02 +00:00
Treehugger Robot
c1f74ca5aa
Merge changes Ibf4774f7,I6568eea0,I35e83679,I9faf8826,I8ee9d999
...
* changes:
fs_mgr: use __android_log_is_debuggable()
adb: use __android_log_is_debuggable()
debuggerd: use __android_log_is_debuggable()
logd: use __android_log_is_debuggable()
libcutils: use __android_log_is_debuggable()
2016-10-18 16:33:28 +00:00
Elliott Hughes
091113ec6c
Merge "Remove socket_loopback_client."
...
am: 5171bebf41
Change-Id: I28080f043ba5a042573e81a6da3f5be83c7a4251
2016-10-14 20:37:06 +00:00
Treehugger Robot
5171bebf41
Merge "Remove socket_loopback_client."
2016-10-14 18:21:38 +00:00
Mark Salyzyn
b5aa4e7125
libcutils: use __android_log_is_debuggable()
...
Test: compile and boot smoke test
Bug: 27566046
Bug: 31456426
Change-Id: I8ee9d999a2e6a0336e45b6180ce6fd7975c113dc
2016-10-14 08:04:19 -07:00
Elliott Hughes
19340be9fe
Merge "Rely on the platform -std default." am: 955648a915
am: 4594f50635
...
am: f1dffe0501
Change-Id: Ibbffb45d50ad038d55a4d435a250b59b64547227
2016-10-14 02:56:09 +00:00
Treehugger Robot
955648a915
Merge "Rely on the platform -std default."
2016-10-14 02:28:38 +00:00
Tao Wu
4b9774fe97
Merge "Fallback to IPv6 when IPv4 is not available in adb" am: c32d7fd66f
am: 5b7c6772b0
...
am: 27c6c4cf04
Change-Id: I2ceb40b4589dfc2721197065ae5a85e9dc83b907
2016-10-14 01:51:54 +00:00
Treehugger Robot
c32d7fd66f
Merge "Fallback to IPv6 when IPv4 is not available in adb"
2016-10-14 01:35:43 +00:00
Elliott Hughes
dd92a0a812
Remove socket_loopback_client.
...
Bug: http://b/31537253
Test: builds
Change-Id: If02c8107206fb60e4622f8937bee0d0a362e1c7d
2016-10-13 16:51:46 -07:00
Chia-I Wu
7e671b343f
Merge "Add native_handle_init" am: d790aae4bc
am: 28423b86fe
...
am: bf72cf21dc
Change-Id: I5d4cc013421350dd30fa13d168112d30ad93e7cd
2016-10-13 22:32:57 +00:00
Chia-I Wu
d790aae4bc
Merge "Add native_handle_init"
2016-10-13 22:18:11 +00:00
Tao Wu
7b700763f5
Fallback to IPv6 when IPv4 is not available in adb
...
Test: manual - make sure it works in both IPv4/IPv6 env.
BUG: 31537253
Change-Id: Ica492bff34a8c0441516a213d0e8b78fcdfd3282
Signed-off-by: Tao Wu <lepton@google.com>
2016-10-13 08:54:43 -07:00
Elliott Hughes
fc485e4488
Merge "Start retiring socket_loopback_client." am: 58f7f61266
am: cd0e8cfd33
...
am: aa509a3e9d
Change-Id: Iea3a25f193b9249ba93d49514b2a409d693121e1
2016-10-13 15:00:24 +00:00
Elliott Hughes
58f7f61266
Merge "Start retiring socket_loopback_client."
2016-10-13 14:38:48 +00:00
Chia-I Wu
b843791b61
Add native_handle_init
...
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
2016-10-12 18:04:41 -07:00
Elliott Hughes
139b372fab
Start retiring socket_loopback_client.
...
Bug: http://b/31537253
Test: can still talk to adb
Change-Id: Icfd7f00d35cf963befc139e81904790b4b8b67c0
2016-10-11 13:45:03 -07:00
Elliott Hughes
36e0d390a2
Rely on the platform -std default.
...
Bug: http://b/32019064
Test: builds
Change-Id: I18a1d816d63b64601485045070851f32d44e85eb
2016-10-10 14:31:12 -07:00
Dimitry Ivanov
8a4e8bba64
Merge "Revert "Revert "Revert "Revert "Remove liblog from libcutils as a whole static lib""""" am: afda14e61d
am: a46dfe2306
...
am: d1f924f663
Change-Id: I1303ec146eb71fb7111f31c5d87e4268a875e77a
2016-10-08 08:05:52 +00:00
Dimitry Ivanov
afda14e61d
Merge "Revert "Revert "Revert "Revert "Remove liblog from libcutils as a whole static lib"""""
2016-10-08 07:51:33 +00:00
Chia-I Wu
ebebf0198d
Merge "Add native_handle_clone" am: e8f6c7398b
am: 462e087e40
...
am: cb52dc258e
Change-Id: I011555d429120a26e61fbce5f7a125ce96fadb3f
2016-10-08 01:39:01 +00:00
Chia-I Wu
e8f6c7398b
Merge "Add native_handle_clone"
2016-10-08 01:25:35 +00:00
Dimitry Ivanov
625484ddfa
Revert "Revert "Revert "Revert "Remove liblog from libcutils as a whole static lib""""
...
This reverts commit 6a452917b3
.
Bug: http://b/31289077
Bug: http://b/27171986
Change-Id: Id020fa10c50847bf16a2fcbc7d5e72cf8766b711
2016-10-07 18:43:37 +00:00
John Reck
5e106e0da8
Merge "Revert "Revert "Revert "Remove liblog from libcutils as a whole static lib"""" am: b02a355d10
am: 8e7fa9fb7e
...
am: 7e86b688cb
Change-Id: I90d8fc3b22fc59b04532fba6418b73ad8af998e3
2016-10-07 16:46:29 +00:00
John Reck
b02a355d10
Merge "Revert "Revert "Revert "Remove liblog from libcutils as a whole static lib""""
2016-10-07 16:32:38 +00:00
John Reck
6a452917b3
Revert "Revert "Revert "Remove liblog from libcutils as a whole static lib"""
...
This reverts commit 595c1480d0
.
Revert reason: broke bullhead-eng build in master
Change-Id: Ie64fc31c3c971366ab9f2543b91b8f5d2040868b
2016-10-07 16:22:38 +00:00
Dimitry Ivanov
674e2a3c00
Merge "Revert "Revert "Remove liblog from libcutils as a whole static lib""" am: 8949696d33
am: e89ec3c4e0
...
am: 54be582396
Change-Id: I73c8bdff9d4d804b6c259d1beab0fe9a442a741a
2016-10-06 14:26:59 +00:00
Treehugger Robot
8949696d33
Merge "Revert "Revert "Remove liblog from libcutils as a whole static lib"""
2016-10-06 14:20:41 +00:00
Dimitry Ivanov
595c1480d0
Revert "Revert "Remove liblog from libcutils as a whole static lib""
...
This reverts commit f93d732a45
.
Bug: http://b/31289077
Bug: http://b/27171986
Change-Id: Ib6e6c0a01296f0a01d98cbf1a9d2659883280d44
2016-10-06 12:47:07 +00:00
Dimitry Ivanov
897fa44319
Merge "Revert "Remove liblog from libcutils as a whole static lib"" am: d4446ccce8
am: 3e5bb6dc6e
...
am: 1814d808f3
Change-Id: If6507fc771cce958f0cbfe7ecc18407826494326
2016-10-03 22:33:41 +00:00
Dimitry Ivanov
d4446ccce8
Merge "Revert "Remove liblog from libcutils as a whole static lib""
2016-10-03 22:21:19 +00:00
Dimitry Ivanov
f93d732a45
Revert "Remove liblog from libcutils as a whole static lib"
...
This reverts commit 6dd58c00ca
.
Bug: http://b/31289077
Bug: http://b/27171986
Change-Id: I519d77de118f02346a4f89b197ca4df7e9f883ac
2016-10-03 22:18:49 +00:00
Dimitry Ivanov
17c88c7743
Merge "Remove liblog from libcutils as a whole static lib" am: dd01f980e5
am: 7e06b19328
...
am: e9f4c175f3
Change-Id: I3b71d2aeb0591937a3ee974fb5fdaa868c03bd29
2016-10-03 18:47:14 +00:00
Dimitry Ivanov
dd01f980e5
Merge "Remove liblog from libcutils as a whole static lib"
2016-10-03 18:26:45 +00:00
Dimitry Ivanov
6dd58c00ca
Remove liblog from libcutils as a whole static lib
...
libcutils no longer needs to export liblog symbols.
Bug: http://b/31289077
Bug: http://b/27171986
Test: make
Change-Id: I546a5bce56c0c88ac2493c320298d4dc13954566
2016-10-03 03:07:13 -07:00
Mark Salyzyn
9f6b98dec0
system/core Replace log/log.h with android/log.h am: ff2dcd9af9
am: cac331afd9
...
am: 0308b0eabd
Change-Id: I4d631d53b4fc27e1a02d412bae21fffad6635258
2016-09-30 22:18:18 +00:00
Mark Salyzyn
9bb1f2f915
libcutils: Replace cutils/log.h with android/log.h am: 23ed4c242a
am: f56fce0240
...
am: 9fd2eaf827
Change-Id: If01fd686fc15aaf74b6f06b7e661eb46e127d51b
2016-09-30 22:17:30 +00:00
Mark Salyzyn
ff2dcd9af9
system/core Replace log/log.h with android/log.h
...
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
2016-09-30 12:47:05 -07:00
Mark Salyzyn
23ed4c242a
libcutils: Replace cutils/log.h with android/log.h
...
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
2016-09-30 12:47:05 -07:00
Connor O'Brien
6d72798094
Merge "Add basic tests for ashmem" am: a2d4a6b598
am: 46d2e20ba6
...
am: 90ad05af85
Change-Id: Ia297292d33b626b8e0aaf87e32e206cd77558ebe
2016-09-29 22:17:41 +00:00
Connor O'Brien
a2d4a6b598
Merge "Add basic tests for ashmem"
2016-09-29 21:32:02 +00:00
Chia-I Wu
fd3ea3d118
Add native_handle_clone
...
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
2016-09-26 21:59:04 +08:00
Colin Cross
8e3427fb04
Merge "Move android_get_control_socket out of line" am: 4b5abcdba2
am: 4873829953
...
am: ea2b61c7a8
Change-Id: Ib406546b998d6d525829f0023a5f693c2e1dfd6c
2016-09-23 21:00:41 +00:00
Colin Cross
e8ffa449fd
Move android_get_control_socket out of line
...
android_get_control_socket has a warning from the implicit cast from
long to int. The warning was being hidden because cutils/sockets.h was
included with -isystem. Move android_get_control_socket to sockets.cpp,
since we don't want header only dependencies anyways, and fix the
warning with a range check and a static_cast.
Bug: 31492149
Test: m -j <module that uses sockets.h and -Wall>
Change-Id: I1f394ab26d4ec8a7dd0e7907c10416d7f8647624
2016-09-23 11:26:08 -07:00
Mitchell Wills
a0a91241af
Merge "Give wifi_hal_legacy access to netlink" am: 6fc7eaaad0
am: c3d7cb95cc
...
am: 9fef925542
Change-Id: I3e4439c4a873284d7dce3cab7c564d2c8c2991df
2016-09-23 16:37:01 +00:00
Treehugger Robot
6fc7eaaad0
Merge "Give wifi_hal_legacy access to netlink"
2016-09-23 16:27:41 +00:00
Tao Wu
485153bf44
Merge "We should break from loop after getting connected." am: 53171e5f97
am: 646a70b1fb
...
am: 298571ec19
Change-Id: I16093f42b297abdd94e97cd26219d86d4a465f09
2016-09-22 22:53:25 +00:00
Colin Cross
7673c4dc88
Merge "Hide warning in cutils/trace.h" am: 5cf3db6d2b
am: a802e570b3
...
am: 06ec4b1352
Change-Id: If41d5b551ffe237922f4768cf403cadf7ee15887
2016-09-22 09:15:21 +00:00