Home
last modified time | relevance | path

Searched refs:kLengthOfLength (Results 1 – 1 of 1) sorted by relevance

/external/chromium_org/tools/android/common/
Dadb_connection.cc36 const size_t kLengthOfLength = 4; in ConnectAdbHostSocket() local
37 const size_t kAddressMaxLength = kBufferMaxLength - kLengthOfLength; in ConnectAdbHostSocket()
41 if (address_length > kBufferMaxLength - kLengthOfLength) { in ConnectAdbHostSocket()
47 memcpy(request + kLengthOfLength, kAddressPrefix, arraysize(kAddressPrefix)); in ConnectAdbHostSocket()
48 memcpy(request + kLengthOfLength + arraysize(kAddressPrefix), in ConnectAdbHostSocket()
51 char length_buffer[kLengthOfLength + 1]; in ConnectAdbHostSocket()
54 memcpy(request, length_buffer, kLengthOfLength); in ConnectAdbHostSocket()
77 size_t bytes_remaining = address_length + kLengthOfLength; in ConnectAdbHostSocket()