Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 35) sorted by relevance

12

/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/
DTraceFileReader.java43 int len; in getMessageAtOffset() local
50 len = file.readInt(); in getMessageAtOffset()
51 if (len > MAX_PROTOBUF_SIZE) { in getMessageAtOffset()
54 len); in getMessageAtOffset()
58 b = new byte[len]; in getMessageAtOffset()
DTraceFileWriter.java102 int len; in readTraceData() local
104 len = dis.readInt(); in readTraceData()
108 len = Integer.reverseBytes(len); // readInt is big endian, we want little endian in readTraceData()
110 byte[] buffer = new byte[len]; in readTraceData()
112 while (readLen < len) { in readTraceData()
114 int read = dis.read(buffer, readLen, len - readLen); in readTraceData()
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/lib/
DSocket.java115 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()
DChannel.java398 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/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/utils/
DFingerprintUtils.java50 int len = value.length; in toHexadecimalString() local
51 for (int i = 0; i < len; i++) { in toHexadecimalString()
57 if (i < len - 1) { in toHexadecimalString()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/
DNinePatchedImage.java192 int len = array.length; in initArray() local
193 for (int i = 0; i < len; i++) { in initArray()
377 int len = 0; in findPatches() local
381 len = pixels.length - 1; in findPatches()
382 for (int i = 1; i < len; i++) { in findPatches()
403 patch.end = len; in findPatches()
494 int len = 0; in findContentArea() local
498 len = pixels.length - 1; in findContentArea()
499 for (int x = 1; x < len; x++) { in findContentArea()
514 contents.end = len; in findContentArea()
[all …]
/sdk/emulator/mksdcard/src/source/
Dmksdcard.c194 int len = sizeof(empty); in write_empty() local
195 if (len > count) in write_empty()
196 len = count; in write_empty()
197 if ( fwrite( empty, 1, len, file ) != (size_t)len ) { in write_empty()
198 fprintf(stderr, "Failed to write %d bytes: %s\n", len, strerror(errno)); in write_empty()
202 count -= len; in write_empty()
/sdk/find_lock/
Dfind_lock.cpp298 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/find_java/src/source/
Dutils.h106 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/apps/SdkController/src/com/android/tools/sdkcontroller/handlers/
DSensorChannel.java598 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()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/renamepackage/
DApplicationPackageNameRefactoring.java187 int len = text.length(); in stripQuotes() local
188 if (len >= 2 && text.charAt(0) == '"' && text.charAt(len - 1) == '"') { in stripQuotes()
189 return text.substring(1, len - 1); in stripQuotes()
190 } else if (len >= 2 && text.charAt(0) == '\'' && text.charAt(len - 1) == '\'') { in stripQuotes()
191 return text.substring(1, len - 1); in stripQuotes()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DFragmentMenu.java145 int len = ANDROID_R_PREFIX.length() + 1; // prefix length to check in addMenuItems() local
146 if (index > len && source.startsWith(ANDROID_R_PREFIX, index - len)) { in addMenuItems()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/
DDescriptorsUtils.java273 int len = name.length();
274 for (int i = 1; i < len; i++) {
282 (i == len-1 ||
283 (i < len-1 && Character.isUpperCase(name.charAt(i+1))))) {
324 int len = name.length();
325 for (int i = 1; i < len; i++) {
335 if (i < len -1 && Character.isLowerCase(name.charAt(i + 1))) {
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/tree/
DUiActions.java147 final int len = nodes.size(); in doRemove() local
156 len > 1 ? "Remove elements from Android XML" // title in doRemove()
166 for (int i = len - 1; i >= 0; i--) { in doRemove()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/export/
DAbstractPropertiesFieldsPart.java223 int len = doc.getLength(); in saveFieldsToModel() local
224 doc.replace(len, 0, line); in saveFieldsToModel()
/sdk/eclipse/scripts/
Dgen_icon.py30 if not args or len(args) != 6:
Dcollect_sources_for_sdk.py88 if len(args) != 2:
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
DUiElementPullParser.java580 int len = s.length(); in stringToPixel() local
582 if (len <= 0) { in stringToPixel()
588 for (int i = 0 ; i < len ; i++) { in stringToPixel()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/export/
DExportWizard.java101 int len = e.text.length();
104 if (len + ((Text)e.getSource()).getText().length() > 127) {
110 for (int i = 0 ; i < len ; i++) {
/sdk/testapps/gridlayoutTest/v7-gridlayout/libs/
Dandroid-support-v7-gridlayout.jar ... widget.GridLayout$Arc[] arr$ int len$ int i$ int loc android.support. ...
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/
DExtractStringRefactoring.java724 int len = attrValue.length(); in unquoteAttrValue() local
725 int len1 = len - 1; in unquoteAttrValue()
726 if (len >= 2 && in unquoteAttrValue()
730 } else if (len >= 2 && in unquoteAttrValue()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/
DImageViewer.java173 int len = mUpdateListenerList.size(); in fireUpdateEvent() local
174 for(int i=0; i < len; i++) { in fireUpdateEvent()
/sdk/testapps/jarCheckTests3/lib2/libs/
Dandroid-support-v13.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/sdk/apps/NotificationStudio/libs/
Dandroid-support-v4.jar ... (long, java.lang.StringBuilder) int len long duration StringBuilder builder public static void formatDuration (long ...
/sdk/testapps/jarCheckTests2/lib2/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...

12