Searched refs:len (Results 1 – 5 of 5) sorted by relevance
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/lib/ |
D | Socket.java | 115 public void send(byte[] data, int offset, int len) throws IOException { in send() argument 121 socket.getOutputStream().write(data, offset, len); in send() 132 public static void receive(LocalSocket socket, byte[] data, int len) throws IOException { in receive() argument 135 while (received != len) { in receive() 136 final int chunk = is.read(data, received, len - received); in receive() 152 public void receive(byte[] data, int len) throws IOException { in receive() argument 158 receive(socket, data, len); in receive()
|
D | Channel.java | 398 private void sendMessage(Socket socket, int msg_type, byte[] msg, int len) in sendMessage() argument 404 ByteBuffer bb = ByteBuffer.allocate(ProtocolConstants.MESSAGE_HEADER_SIZE + len); in sendMessage() 409 bb.putInt(ProtocolConstants.MESSAGE_HEADER_SIZE + len); in sendMessage() 414 if (len != 0) { in sendMessage() 415 bb.put(msg, 0, len); in sendMessage() 539 public boolean sendQueryResponse(int query_id, byte[] qresp, int len) { in sendQueryResponse() argument 542 ByteBuffer bb = ByteBuffer.allocate(ProtocolConstants.QUERY_RESP_HEADER_SIZE + len); in sendQueryResponse() 547 bb.putInt(ProtocolConstants.QUERY_RESP_HEADER_SIZE + len); in sendQueryResponse() 552 if (qresp != null && len != 0) { in sendQueryResponse() 553 bb.put(qresp, 0, len); in sendQueryResponse()
|
/sdk/find_java/src/source/ |
D | utils.h | 106 size_t len = strlen(str) + 1024; in setv() local 107 mStr = (char *)malloc(len); in setv() 110 int ret = vsnprintf(mStr, len, str, ap); in setv() 114 len *= 2; in setv() 115 } else if (ret >= len) { in setv() 116 len = ret + 1; in setv() 121 mStr = (char *)realloc((void *)mStr, len); in setv()
|
/sdk/find_lock/ |
D | find_lock.cpp | 298 int len = sizeof(kFileW); in isFileHandleType() local 301 for (; type != 0 && len > 0; c+=2, d++, len--) { in isFileHandleType() 336 DWORD len = ((DWORD *)buf)[0]; in FileNameThreadFunc() local 337 if (len <= MAX_PATH * 2) { in FileNameThreadFunc() 345 for (DWORD i = 0; i < len; dest++, src += 2, i += 2) { in FileNameThreadFunc() 353 info->outStr->set(buf + 4, len); in FileNameThreadFunc() 411 WORD len = uniStr->Length; in getProcessName() local 414 if (len <= MAX_PATH * 2) { in getProcessName() 422 for (WORD i = 0; i < len; dest++, src += 2, i += 2) { in getProcessName() 430 outStr->set(buf, len); in getProcessName()
|
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/handlers/ |
D | SensorChannel.java | 598 final int len = values.length; in onSensorChanged() local 604 if (len > 1) { in onSensorChanged() 606 if (len > 2) { in onSensorChanged() 634 if (len > 1) { in onSensorChanged() 636 if (len > 2) { in onSensorChanged()
|