/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/ |
D | NativeAllocationInfo.java | 218 StringBuffer buffer = new StringBuffer(); in toString() local 219 buffer.append(ALLOCATIONS_KW); in toString() 220 buffer.append(' '); in toString() 221 buffer.append(mAllocations); in toString() 222 buffer.append('\n'); in toString() 224 buffer.append(SIZE_KW); in toString() 225 buffer.append(' '); in toString() 226 buffer.append(mSize); in toString() 227 buffer.append('\n'); in toString() 229 buffer.append(TOTAL_SIZE_KW); in toString() [all …]
|
D | HandleNativeHeap.java | 131 ByteBuffer buffer = ByteBuffer.wrap(copy); in handleNHGT() local 132 buffer.order(ByteOrder.LITTLE_ENDIAN); in handleNHGT() 143 int mapSize = buffer.getInt(); in handleNHGT() 144 int allocSize = buffer.getInt(); in handleNHGT() 145 int allocInfoSize = buffer.getInt(); in handleNHGT() 146 int totalMemory = buffer.getInt(); in handleNHGT() 147 int backtraceSize = buffer.getInt(); in handleNHGT() 162 buffer.get(maps, 0, mapSize); in handleNHGT() 170 buffer.getInt() /* size */, in handleNHGT() 171 buffer.getInt() /* allocations */); in handleNHGT() [all …]
|
D | DeviceMonitor.java | 304 byte[] buffer = new byte[length]; in processIncomingDeviceData() 305 String result = read(mMainAdbConnection, buffer); in processIncomingDeviceData() 712 byte[] buffer = new byte[length]; in processIncomingJdwpData() 713 String result = read(monitorSocket, buffer); in processIncomingJdwpData() 921 private int readLength(SocketChannel socket, byte[] buffer) throws IOException { in readLength() argument 922 String msg = read(socket, buffer); in readLength() 943 private String read(SocketChannel socket, byte[] buffer) throws IOException { in read() argument 944 ByteBuffer buf = ByteBuffer.wrap(buffer, 0, buffer.length); in read() 956 return new String(buffer, 0, buf.position(), AdbHelper.DEFAULT_ENCODING); in read()
|
/sdk/ide_common/src/com/android/ide/common/resources/ |
D | ValueResourceParser.java | 253 char[] buffer = value.toCharArray(); in trimXmlWhitespaces() local 256 if (buffer[i] == '\\' && i + 1 < length) { in trimXmlWhitespaces() 257 if (buffer[i+1] == 'u') { in trimXmlWhitespaces() 260 int unicodeChar = Integer.parseInt(new String(buffer, i+2, 4), 16); in trimXmlWhitespaces() 263 buffer[i] = (char)unicodeChar; in trimXmlWhitespaces() 266 if (i + 6 < buffer.length) { in trimXmlWhitespaces() 267 System.arraycopy(buffer, i+6, buffer, i+1, length - i - 6); in trimXmlWhitespaces() 272 if (buffer[i+1] == 'n') { in trimXmlWhitespaces() 274 buffer[i+1] = '\n'; in trimXmlWhitespaces() 278 System.arraycopy(buffer, i+1, buffer, i, length - i - 1); in trimXmlWhitespaces() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gldebugger/ |
D | GLServerVertex.java | 67 public GLBuffer buffer; field in GLAttribPointer 75 if (buffer != null) in clone() 76 copy.buffer = copyBuffers.get(buffer.name); in clone() 231 ByteBuffer buffer = ByteBuffer.allocate(attribBuffer.data.capacity()); in glBufferSubData() local 232 buffer.order(SampleView.targetByteOrder); in glBufferSubData() 233 buffer.put(attribBuffer.data); in glBufferSubData() 234 attribBuffer.data = buffer; in glBufferSubData() 240 ByteBuffer buffer = ByteBuffer.allocate(indexBuffer.data.capacity()); in glBufferSubData() local 241 buffer.order(SampleView.targetByteOrder); in glBufferSubData() 242 buffer.put(indexBuffer.data); in glBufferSubData() [all …]
|
D | MessageParser.java | 52 ByteBuffer buffer = ByteBuffer.allocate(count * 4); in parseFloats() local 53 buffer.order(SampleView.targetByteOrder); in parseFloats() 56 buffer.putFloat(Float.parseFloat(arg[i].trim())); in parseFloats() 57 buffer.rewind(); in parseFloats() 58 return ByteString.copyFrom(buffer); in parseFloats() 62 ByteBuffer buffer = ByteBuffer.allocate(count * 4); in parseInts() local 63 buffer.order(SampleView.targetByteOrder); in parseInts() 66 buffer.putInt(Integer.parseInt(arg[i].trim())); in parseInts() 67 buffer.rewind(); in parseInts() 68 return ByteString.copyFrom(buffer); in parseInts() [all …]
|
D | CodeGen.java | 240 private void codeGenBufferData(final ByteBuffer buffer, final String call) { in codeGenBufferData() argument 241 ByteBuffer bfr = buffer; in codeGenBufferData() 242 if (buffer.isReadOnly()) { in codeGenBufferData() 243 bfr = ByteBuffer.allocate(buffer.capacity()); in codeGenBufferData() 244 bfr.put(buffer); in codeGenBufferData() 271 final GLBuffer buffer = v.buffers.valueAt(i); in codeGenServerVertex() local 281 if (buffer.target != null) { in codeGenServerVertex() 282 code.format("glBindBuffer(%s, %s);CHKERR;\n", buffer.target, id); in codeGenServerVertex() 283 if (buffer.data != null) { in codeGenServerVertex() 284 String s = String.format("glBufferData(%s, %d, bufferData, %s)", buffer.target, in codeGenServerVertex() [all …]
|
D | MessageQueue.java | 274 byte[] buffer = new byte[len]; 279 read = dis.read(buffer, readLen, len - readLen); 289 Message msg = Message.parseFrom(buffer);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/ |
D | ExtractStringProposal.java | 82 IBuffer buffer = mContext.getCompilationUnit().getBuffer(); in getAdditionalProposalInfo() local 84 String string = buffer.getText(start, length); in getAdditionalProposalInfo() 96 char c = buffer.getChar(i); in getAdditionalProposalInfo() 102 String linePrefix = buffer.getText(i + 1, start - (i + 1)).trim(); in getAdditionalProposalInfo() 106 while (i < buffer.getLength()) { in getAdditionalProposalInfo() 107 char c = buffer.getChar(i); in getAdditionalProposalInfo() 113 String lineSuffix = buffer.getText(start + length, i - (start + length)); in getAdditionalProposalInfo()
|
/sdk/traceview/src/com/android/traceview/ |
D | DmTraceReader.java | 104 MappedByteBuffer buffer = null; in mapFile() local 108 buffer = fc.map(FileChannel.MapMode.READ_ONLY, offset, file.length() - offset); in mapFile() 109 buffer.order(ByteOrder.LITTLE_ENDIAN); in mapFile() 111 return buffer; in mapFile() 114 private void readDataFileHeader(MappedByteBuffer buffer) { in readDataFileHeader() argument 115 int magic = buffer.getInt(); in readDataFileHeader() 124 int version = buffer.getShort(); in readDataFileHeader() 139 int offsetToData = buffer.getShort() - 16; in readDataFileHeader() 142 buffer.getLong(); in readDataFileHeader() 150 mRecordSize = buffer.getShort(); in readDataFileHeader() [all …]
|
/sdk/sdklauncher/ |
D | sdklauncher.c | 135 LPSTR buffer = (LPSTR) malloc(size + 1); in read_temp_file() local 137 LPSTR p = buffer; in read_temp_file() 150 if (p != buffer) { in read_temp_file() 154 char* s1 = strstr(buffer, "WARNING"); in read_temp_file() 155 char* s2 = strstr(buffer, "ERROR"); in read_temp_file() 173 free(buffer); in read_temp_file()
|
/sdk/avdlauncher/ |
D | avdlauncher.c | 135 LPSTR buffer = (LPSTR) malloc(size + 1); in read_temp_file() local 137 LPSTR p = buffer; in read_temp_file() 150 if (p != buffer) { in read_temp_file() 154 char* s1 = strstr(buffer, "WARNING"); in read_temp_file() 155 char* s2 = strstr(buffer, "ERROR"); in read_temp_file() 173 free(buffer); in read_temp_file()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/ |
D | ConvertSwitchQuickFixProcessor.java | 83 IBuffer buffer = context.getCompilationUnit().getBuffer(); in getCorrections() local 93 char c = buffer.getChar(i); in getCorrections() 100 for (int i = errorStart + errorLength, n = buffer.getLength(); i < n; i++) { in getCorrections() 105 char c = buffer.getChar(i); in getCorrections() 113 String expression = buffer.getText(errorStart, errorLength); in getCorrections()
|
/sdk/common/src/com/android/io/ |
D | FileWrapper.java | 101 byte[] buffer = new byte[1024]; in setContents() 103 while ((count = source.read(buffer)) != -1) { in setContents() 104 fos.write(buffer, 0, count); in setContents()
|
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/ |
D | SdkUpdaterNoWindow.java | 392 private String readLine(byte[] buffer) throws IOException { in readLine() argument 393 int count = System.in.read(buffer); in readLine() 396 if (count == buffer.length && buffer[count-1] != 10) { in readLine() 398 "Input is longer than the buffer size, (%1$s) bytes", buffer.length)); in readLine() 402 while (count > 0 && (buffer[count-1] == '\r' || buffer[count-1] == '\n')) { in readLine() 406 return new String(buffer, 0, count); in readLine()
|
/sdk/swtmenubar/src-darwin/com/android/menubar/internal/ |
D | MenuBarEnhancerCarbon.java | 104 char buffer[] = new char[l]; in setupMenu() local 105 about.getChars(0, l, buffer, 0); in setupMenu() 106 int str = OS.CFStringCreateWithCharacters(OS.kCFAllocatorDefault, buffer, l); in setupMenu()
|
/sdk/ninepatch/src/com/android/ninepatch/ |
D | NinePatch.java | 210 BufferedImage buffer = GraphicsUtilities.createTranslucentCompatibleImage( in convertTo9Patch() local 213 Graphics2D g2 = buffer.createGraphics(); in convertTo9Patch() 217 return buffer; in convertTo9Patch()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactoring/core/ |
D | AndroidRenameParticipant.java | 70 ITextFileBuffer buffer = mManager.getTextFileBuffer(mAndroidManifest.getFullPath(), in getDocument() local 72 mDocument = buffer.getDocument(); in getDocument()
|
D | AndroidTypeMoveParticipant.java | 129 ITextFileBuffer buffer = lManager.getTextFileBuffer(file.getFullPath(), in createChange() local 131 IDocument lDocument = buffer.getDocument(); in createChange() 152 ITextFileBuffer buffer = mManager.getTextFileBuffer(mAndroidManifest.getFullPath(), in getDocument() local 154 mDocument = buffer.getDocument(); in getDocument() 268 ITextFileBuffer buffer = lManager.getTextFileBuffer(file.getFullPath(), in parse() local 270 IDocument lDocument = buffer.getDocument(); in parse()
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/io/ |
D | FileOp.java | 179 byte[] buffer = new byte[8192]; in copyFile() 188 while ((read = fis.read(buffer)) != -1) { in copyFile() 189 fos.write(buffer, 0, read); in copyFile()
|
/sdk/emulator/qtools/ |
D | read_elf.h | 16 int ReadSection(Elf32_Shdr *shdr, void *buffer, FILE *f);
|
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/log/event/ |
D | EventLogPanel.java | 252 byte[] buffer = new byte[1024]; in saveLog() 256 while ((count = fis.read(buffer)) != -1) { in saveLog() 257 fos.write(buffer, 0, count); in saveLog() 901 byte[] buffer = new byte[256]; in runLocalEventLogService() 906 while ((count = fis.read(buffer)) != -1) { in runLocalEventLogService() 907 logReceiver.parseNewData(buffer, 0, count); in runLocalEventLogService()
|
/sdk/emulator/sensors/ |
D | sensors_qemu.c | 551 char buffer[12]; in sensors__get_sensors_list() local 566 ret = qemud_channel_recv(fd, buffer, sizeof buffer-1); in sensors__get_sensors_list() 573 buffer[ret] = 0; in sensors__get_sensors_list() 577 mask = atoi(buffer); in sensors__get_sensors_list()
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/ |
D | ScreenViewer.java | 718 byte[] buffer = rawImage.data; in rawImage32toARGB() 736 int value = buffer[index++] & 0x00FF; in rawImage32toARGB() 737 value |= (buffer[index++] & 0x00FF) << 8; in rawImage32toARGB() 738 value |= (buffer[index++] & 0x00FF) << 16; in rawImage32toARGB() 739 value |= (buffer[index++] & 0x00FF) << 24; in rawImage32toARGB() 759 byte[] buffer = rawImage.data; in rawImage16toARGB() 764 int value = buffer[index++] & 0x00FF; in rawImage16toARGB() 765 value |= (buffer[index++] << 8) & 0x0FF00; in rawImage16toARGB()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt.ndk/src/com/android/ide/eclipse/adt/ndk/internal/discovery/ |
D | NdkDiscoveryUpdater.java | 143 StringBuffer buffer = new StringBuffer(entry.getKey()); in calcEnvironment() local 144 buffer.append('=').append(entry.getValue()); in calcEnvironment() 145 strings.add(buffer.toString()); in calcEnvironment()
|