/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/utils/ |
D | ArrayHelper.java | 31 public static void swap32bitsToArray(int value, byte[] dest, int offset) { in swap32bitsToArray() argument 32 dest[offset] = (byte)(value & 0x000000FF); in swap32bitsToArray() 33 dest[offset + 1] = (byte)((value & 0x0000FF00) >> 8); in swap32bitsToArray() 34 dest[offset + 2] = (byte)((value & 0x00FF0000) >> 16); in swap32bitsToArray() 35 dest[offset + 3] = (byte)((value & 0xFF000000) >> 24); in swap32bitsToArray() 44 public static int swap32bitFromArray(byte[] value, int offset) { in swap32bitFromArray() argument 46 v |= ((int)value[offset]) & 0x000000FF; in swap32bitFromArray() 47 v |= (((int)value[offset + 1]) & 0x000000FF) << 8; in swap32bitFromArray() 48 v |= (((int)value[offset + 2]) & 0x000000FF) << 16; in swap32bitFromArray() 49 v |= (((int)value[offset + 3]) & 0x000000FF) << 24; in swap32bitFromArray() [all …]
|
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/log/ |
D | LogReceiver.java | 76 public void newData(byte[] data, int offset, int length); in newData() argument 112 public void parseNewData(byte[] data, int offset, int length) { in parseNewData() argument 115 mListener.newData(data, offset, length); in parseNewData() 125 System.arraycopy(data, offset, mEntryHeaderBuffer, mEntryHeaderOffset, length); in parseNewData() 134 System.arraycopy(data, offset, mEntryHeaderBuffer, mEntryHeaderOffset, in parseNewData() 145 offset += size; in parseNewData() 149 mCurrentEntry = createEntry(data, offset); in parseNewData() 153 offset += ENTRY_HEADER_SIZE; in parseNewData() 169 System.arraycopy(data, offset, mCurrentEntry.data, mEntryDataOffset, dataSize); in parseNewData() 183 offset += dataSize; in parseNewData() [all …]
|
D | EventLogParser.java | 375 int offset = dataOffset; in parseBinaryEvent() local 377 int type = eventData[offset++]; in parseBinaryEvent() 385 if (eventData.length - offset < 4) in parseBinaryEvent() 387 ival = ArrayHelper.swap32bitFromArray(eventData, offset); in parseBinaryEvent() 388 offset += 4; in parseBinaryEvent() 396 if (eventData.length - offset < 8) in parseBinaryEvent() 398 lval = ArrayHelper.swap64bitFromArray(eventData, offset); in parseBinaryEvent() 399 offset += 8; in parseBinaryEvent() 407 if (eventData.length - offset < 4) in parseBinaryEvent() 409 strLen = ArrayHelper.swap32bitFromArray(eventData, offset); in parseBinaryEvent() [all …]
|
D | GcEventContainer.java | 283 private static void put64bitsToArray(long value, byte[] dest, int offset) { in put64bitsToArray() argument 284 dest[offset + 7] = (byte)(value & 0x00000000000000FFL); in put64bitsToArray() 285 dest[offset + 6] = (byte)((value & 0x000000000000FF00L) >> 8); in put64bitsToArray() 286 dest[offset + 5] = (byte)((value & 0x0000000000FF0000L) >> 16); in put64bitsToArray() 287 dest[offset + 4] = (byte)((value & 0x00000000FF000000L) >> 24); in put64bitsToArray() 288 dest[offset + 3] = (byte)((value & 0x000000FF00000000L) >> 32); in put64bitsToArray() 289 dest[offset + 2] = (byte)((value & 0x0000FF0000000000L) >> 40); in put64bitsToArray() 290 dest[offset + 1] = (byte)((value & 0x00FF000000000000L) >> 48); in put64bitsToArray() 291 dest[offset + 0] = (byte)((value & 0xFF00000000000000L) >> 56); in put64bitsToArray()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
D | AndroidXmlAutoEditStrategy.java | 96 final int offset = c.offset; in customizeDocumentCommand() local 97 int lineStart = findLineStart(doc, offset); in customizeDocumentCommand() 98 int textStart = findTextStart(doc, lineStart, offset); in customizeDocumentCommand() 102 Pair<Integer,Integer> balance = getBalance(doc, textStart, offset); in customizeDocumentCommand() 121 ITextRegion left = getRegionAt(doc, offset, true /*biasLeft*/); in customizeDocumentCommand() 132 ITextRegion right = getRegionAt(doc, offset, false /*biasLeft*/); in customizeDocumentCommand() 137 offset, targetBalance); in customizeDocumentCommand() 161 ITextRegion left = getRegionAt(doc, offset, true /*biasLeft*/); in customizeDocumentCommand() 162 ITextRegion right = getRegionAt(doc, offset, false /*biasLeft*/); in customizeDocumentCommand() 170 c.caretOffset = offset + sb.length(); in customizeDocumentCommand() [all …]
|
D | AndroidXmlCharacterMatcher.java | 46 public IRegion match(IDocument doc, int offset) { in match() argument 47 if (offset < 0 || offset >= doc.getLength()) { in match() 51 IRegion match = findOppositeTag(doc, offset); in match() 56 return super.match(doc, offset); in match() 59 private IRegion findOppositeTag(IDocument document, int offset) { in findOppositeTag() argument 65 IStructuredDocumentRegion region = doc.getRegionAtCharacterOffset(offset); in findOppositeTag() 70 ITextRegion subRegion = region.getRegionAtCharacterOffset(offset); in findOppositeTag() 86 (subRegion.getStart() + region.getStartOffset() == offset)) { in findOppositeTag() 90 offset--; in findOppositeTag() 91 region = doc.getRegionAtCharacterOffset(offset); in findOppositeTag() [all …]
|
D | AndroidContentAssist.java | 134 public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) { in computeCompletionProposals() argument 135 String wordPrefix = extractElementPrefix(viewer, offset); in computeCompletionProposals() 151 Pair<Node, Node> context = DomUtilities.getNodeContext(viewer.getDocument(), offset); in computeCompletionProposals() 163 computeTextValues(proposals, offset, parentNode, currentNode, parentUiNode, in computeCompletionProposals() 167 AttribInfo info = parseAttributeInfo(viewer, offset, offset - wordPrefix.length()); in computeCompletionProposals() 168 char nextChar = extractChar(viewer, offset); in computeCompletionProposals() 173 computeAttributeProposals(proposals, viewer, offset, wordPrefix, currentUiNode, in computeCompletionProposals() 176 computeNonAttributeProposals(viewer, offset, wordPrefix, proposals, parentNode, in computeCompletionProposals() 184 private void computeNonAttributeProposals(ITextViewer viewer, int offset, String wordPrefix, in computeNonAttributeProposals() argument 197 boolean isNew = replaceLength == 0 && nextNonspaceChar(viewer, offset) == '<'; in computeNonAttributeProposals() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ |
D | ContextPullParser.java | 133 int offset = 0; in findFragmentLayout() local 136 while (currentLine < line && offset < length) { in findFragmentLayout() 137 int next = file.indexOf('\n', offset); in findFragmentLayout() 143 offset = next + 1; in findFragmentLayout() 146 offset += column; in findFragmentLayout() 147 if (offset < length) { in findFragmentLayout() 148 offset = file.indexOf('<', offset); in findFragmentLayout() 149 if (offset != -1 && file.startsWith(COMMENT_PREFIX, offset)) { in findFragmentLayout() 151 int end = file.indexOf(COMMENT_SUFFIX, offset); in findFragmentLayout() 154 offset + COMMENT_PREFIX.length(), end); in findFragmentLayout()
|
/sdk/sdkmanager/libs/sdklib/tests/src/com/android/sdklib/internal/repository/ |
D | AddonsListFetcherTest.java | 142 int offset = 0; in getTestResource() local 145 while ((n = xmlStream.read(data, offset, data.length - offset)) != -1) { in getTestResource() 146 offset += n; in getTestResource() 148 if (offset == data.length) { in getTestResource() 149 byte[] newData = new byte[offset + 8192]; in getTestResource() 150 System.arraycopy(data, 0, newData, 0, offset); in getTestResource() 155 return new ByteArrayInputStream(data, 0, offset); in getTestResource()
|
D | SdkAddonSourceTest.java | 435 int offset = 0; in getTestResource() local 438 while ((n = xmlStream.read(data, offset, data.length - offset)) != -1) { in getTestResource() 439 offset += n; in getTestResource() 441 if (offset == data.length) { in getTestResource() 442 byte[] newData = new byte[offset + 8192]; in getTestResource() 443 System.arraycopy(data, 0, newData, 0, offset); in getTestResource() 448 return new ByteArrayInputStream(data, 0, offset); in getTestResource()
|
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/ |
D | CollectingOutputReceiver.java | 51 public void addOutput(byte[] data, int offset, int length) { in addOutput() argument 55 s = new String(data, offset, length, "UTF-8"); //$NON-NLS-1$ in addOutput() 58 s = new String(data, offset,length); in addOutput()
|
D | MultiLineReceiver.java | 50 public final void addOutput(byte[] data, int offset, int length) { in addOutput() argument 54 s = new String(data, offset, length, "UTF-8"); //$NON-NLS-1$ in addOutput() 57 s = new String(data, offset,length); in addOutput()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/ |
D | AndroidXmlFormatter.java | 63 protected void formatMaster(IFormattingContext context, IDocument document, int offset, in formatMaster() argument 66 final int delta= offset - document.getLineInformationOfOffset(offset).getOffset(); in formatMaster() 67 offset -= delta; in formatMaster() 75 new TypedPosition(offset, length, IXMLPartitions.XML_DEFAULT)); in formatMaster()
|
/sdk/emulator/qtools/ |
D | read_trace.cpp | 77 uint32_t offset = addr - sym->addr - sym->region->base_addr; in main() local 82 offset = addr - vm_sym->addr - vm_sym->region->base_addr; in main() 85 if (strcmp(sym->name, "(unknown)") == 0 || offset > kOffsetThreshold) { in main() 117 sprintf(buf, "%s+%02x: %s", vm_name, offset, sym->name); in main() 119 sprintf(buf, "%s+%02x", sym->name, offset); in main() 155 offset += bytes; in main() 159 assert(offset < kOffsetThreshold); in main()
|
D | armdis.cpp | 233 uint32_t offset = insn & 0xffffff; in disasm_branch() local 235 if ((offset >> 23) & 1) in disasm_branch() 236 offset |= 0xff000000; in disasm_branch() 239 offset <<= 2; in disasm_branch() 240 offset += 8; in disasm_branch() 241 addr += offset; in disasm_branch() 334 uint16_t offset = insn & 0xfff; in disasm_mem() local 354 if (offset == 0) { in disasm_mem() 359 opname, cond_to_str(cond), byte, rd, rn, minus, offset, bang); in disasm_mem() 366 opname, cond_to_str(cond), byte, transfer, rd, rn, minus, offset); in disasm_mem() [all …]
|
D | thumbdis.cpp | 288 uint32_t offset; in disasm_insn_thumb() local 290 offset = BDISP23 (insn1, insn2); in disasm_insn_thumb() 291 offset = offset * 2 + pc + 4; in disasm_insn_thumb() 295 offset &= 0xfffffffc; in disasm_insn_thumb() 301 sprintf(ptr, "0x%x", offset); in disasm_insn_thumb()
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/util/ |
D | PsdFile.java | 56 public void addLayer(String name, BufferedImage image, Point offset) { in addLayer() argument 57 addLayer(name, image, offset, true); in addLayer() 60 public void addLayer(String name, BufferedImage image, Point offset, boolean visible) { in addLayer() argument 61 mLayersInfo.addLayer(name, image, offset, visible); in addLayer() 62 if (visible) mGraphics.drawImage(image, null, offset.x, offset.y); in addLayer() 247 void addLayer(String name, BufferedImage image, Point offset, boolean visible) { in addLayer() argument 248 mLayers.add(new Layer(name, image, offset, visible)); in addLayer() 316 Layer(String name, BufferedImage image, Point offset, boolean visible) { in Layer() argument 326 mTop = offset.y; in Layer() 327 mLeft = offset.x; in Layer() [all …]
|
/sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/ui/util/ |
D | PsdFile.java | 59 public void addLayer(String name, BufferedImage image, Point offset) { in addLayer() argument 60 addLayer(name, image, offset, true); in addLayer() 63 public void addLayer(String name, BufferedImage image, Point offset, boolean visible) { in addLayer() argument 64 mLayersInfo.addLayer(name, image, offset, visible); in addLayer() 66 mGraphics.drawImage(image, null, offset.x, offset.y); in addLayer() 289 void addLayer(String name, BufferedImage image, Point offset, boolean visible) { in addLayer() argument 290 mLayers.add(new Layer(name, image, offset, visible)); in addLayer() 375 Layer(String name, BufferedImage image, Point offset, boolean visible) { in Layer() argument 385 mTop = offset.y; in Layer() 386 mLeft = offset.x; in Layer() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/ |
D | AndroidJarLoader.java | 382 int offset = 0; in readZipData() 386 int count = zis.read(data, offset, data_size - offset); in readZipData() 390 offset += count; in readZipData() 392 if (entrySize >= 1 && offset >= entrySize) { // we know the size and we're done in readZipData() 398 if (offset >= data_size) { in readZipData() 407 if (offset < data_size) { in readZipData() 409 byte[] temp = new byte[offset]; in readZipData() 410 if (offset > 0) { in readZipData() 411 System.arraycopy(data, 0, temp, 0, offset); in readZipData()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/resources/ |
D | ResourcesContentAssist.java | 69 protected void computeAttributeValues(List<ICompletionProposal> proposals, int offset, in computeAttributeValues() argument 72 super.computeAttributeValues(proposals, offset, parentTagName, attributeName, node, in computeAttributeValues() 85 offset - wordPrefix.length(), // replacementOffset in computeAttributeValues() 125 addMatchingProposals(proposals, sorted.toArray(), offset, node, wordPrefix, in computeAttributeValues() 135 protected void computeTextValues(List<ICompletionProposal> proposals, int offset, in computeTextValues() argument 138 super.computeTextValues(proposals, offset, parentNode, currentNode, uiParent, in computeTextValues() 190 int replaceLength = computeTextReplaceLength(currentNode, offset); in computeTextValues() 191 addMatchingProposals(proposals, values, offset, currentNode, in computeTextValues()
|
/sdk/chimpchat/src/com/android/chimpchat/adb/ |
D | CommandOutputCapture.java | 33 public void addOutput(byte[] data, int offset, int length) { in addOutput() argument 34 String message = new String(data, offset, length); in addOutput()
|
D | LoggingOutputReceiver.java | 35 public void addOutput(byte[] data, int offset, int length) { in addOutput() argument 36 String message = new String(data, offset, length); in addOutput()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/ |
D | AndroidXmlAutoEditStrategyTest.java | 52 int offset = updateCaret(viewer, before); in checkInsertNewline() local 56 c.offset = offset; in checkInsertNewline() 68 document.replace(c.offset, c.length, c.text); in checkInsertNewline() 70 int caretOffset = c.offset + c.text.length(); in checkInsertNewline()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | DomUtilities.java | 129 public static Node getNode(IDocument document, int offset) { in getNode() argument 139 for (; offset >= 0 && node == null; --offset) { in getNode() 140 node = (Node) model.getIndexedRegion(offset); in getNode() 182 public static Pair<Node, Node> getNodeContext(IDocument document, int offset) { in getNodeContext() argument 192 for (; offset >= 0 && node == null; --offset) { in getNodeContext() 193 IndexedRegion indexedRegion = model.getIndexedRegion(offset); in getNodeContext() 206 doc.getRegionAtCharacterOffset(offset); in getNodeContext() 208 ITextRegion subRegion = region.getRegionAtCharacterOffset(offset); in getNodeContext() 217 if (previousRegion.getEndOffset() == offset) { in getNodeContext() 261 public static Node getNode(IDocument document, int offset, boolean forward) { in getNode() argument [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/animator/ |
D | AnimationContentAssist.java | 71 protected void computeAttributeValues(List<ICompletionProposal> proposals, int offset, in computeAttributeValues() argument 90 addMatchingProposals(proposals, interpolators.toArray(), offset, node, wordPrefix, in computeAttributeValues() 96 super.computeAttributeValues(proposals, offset, parentTagName, attributeName, node, in computeAttributeValues() 156 addMatchingProposals(proposals, pairs.toArray(), offset, node, wordPrefix, in computeAttributeValues() 163 super.computeAttributeValues(proposals, offset, parentTagName, attributeName, node, in computeAttributeValues()
|