/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
D | TypoFix.java | 60 int start, int end) { in apply() argument 72 String current = document.get(start, end-start); in apply() 74 document.replace(start, end - start, replacements.get(0)); in apply() 78 IRegion forward = finder.find(start, typo, true /*forward*/, true, true, false); in apply() 79 IRegion backward = finder.find(start, typo, false /*forward*/, true, true, false); in apply() 82 int forwardDelta = forward.getOffset() - start; in apply() 83 int backwardDelta = start - backward.getOffset(); in apply() 85 start = forward.getOffset(); in apply() 87 start = backward.getOffset(); in apply() 90 start = forward.getOffset(); in apply() [all …]
|
D | DocumentFix.java | 37 int start, int end); in apply() argument 46 int start = mMarker.getAttribute(IMarker.CHAR_START, -1); in apply() local 48 if (start != -1 && end != -1) { in apply() 51 Node node = DomUtilities.getNode(document, start); in apply() 53 apply(document, model, node, start, end); in apply()
|
D | UseCompoundDrawableDetectorFix.java | 72 int start, int end) { in apply() argument 80 ITextSelection textSelection = new TextSelection(start, in apply() 81 end - start); in apply()
|
D | ExtractStringFix.java | 61 protected void apply(IDocument document, IStructuredModel model, Node node, int start, in apply() argument 66 ITextSelection selection = new TextSelection(start, end - start); in apply()
|
D | RemoveUselessViewFix.java | 55 protected void apply(IDocument document, IStructuredModel model, Node node, int start, in apply() argument 71 ITextSelection textSelection = new TextSelection(start, in apply() 72 end - start); in apply()
|
D | AddPrefixFix.java | 49 protected void apply(IDocument document, IStructuredModel model, Node node, int start, in apply() argument 53 document.replace(start, 0, prefix + ':'); in apply()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/ |
D | AndroidTypeRenameParticipant.java | 419 int start = RefactoringUtil.getTagNameRangeStart(element, document); in addLayoutReplacements() local 420 if (start != -1) { in addLayoutReplacements() 421 int end = start + mOldFqcn.length(); in addLayoutReplacements() 422 edits.add(new ReplaceEdit(start, end - start, mNewFqcn)); in addLayoutReplacements() 428 int start = RefactoringUtil.getAttributeValueRangeStart(classNode, document); in addLayoutReplacements() local 429 if (start != -1) { in addLayoutReplacements() 430 int end = start + mOldFqcn.length(); in addLayoutReplacements() 431 edits.add(new ReplaceEdit(start, end - start, mNewFqcn)); in addLayoutReplacements() 440 int start = RefactoringUtil.getAttributeValueRangeStart(classNode, document); in addLayoutReplacements() local 441 if (start != -1) { in addLayoutReplacements() [all …]
|
D | AndroidTypeMoveParticipant.java | 278 int start = RefactoringUtil.getTagNameRangeStart(element, document); in addLayoutReplacements() local 279 if (start != -1) { in addLayoutReplacements() 280 int end = start + mOldFqcn.length(); in addLayoutReplacements() 281 edits.add(new ReplaceEdit(start, end - start, mNewFqcn)); in addLayoutReplacements() 286 int start = RefactoringUtil.getAttributeValueRangeStart(classNode, document); in addLayoutReplacements() local 287 if (start != -1) { in addLayoutReplacements() 288 int end = start + mOldFqcn.length(); in addLayoutReplacements() 289 edits.add(new ReplaceEdit(start, end - start, mNewFqcn)); in addLayoutReplacements() 298 int start = RefactoringUtil.getAttributeValueRangeStart(classNode, document); in addLayoutReplacements() local 299 if (start != -1) { in addLayoutReplacements() [all …]
|
D | AndroidPackageRenameParticipant.java | 127 int start = ir.getStartOffset(); in checkConditions() local 128 region = new Region(start, ir.getEndOffset() - start); in checkConditions() 444 int start = RefactoringUtil.getTagNameRangeStart(element, document); 445 if (start != -1) { 446 int end = start + tag.length(); 447 edits.add(new ReplaceEdit(start, end - start, getNewClassName(tag))); 467 int start = RefactoringUtil.getAttributeValueRangeStart(classNode, document); 468 if (start != -1) { 469 int end = start + fqcn.length(); 470 edits.add(new ReplaceEdit(start, end - start, getNewClassName(fqcn))); [all …]
|
D | RenameResourceXmlTextAction.java | 194 int start = offset; in findResource() local 196 for (; start >= 0; start--) { in findResource() 197 char c = document.getChar(start); in findResource() 207 int end = start + 1; in findResource() 214 if (end > start + 1) { in findResource() 215 String url = document.get(start, end - start); in findResource() 300 int start = offset; in findClassName() local 301 for (; start >= 0; start--) { in findClassName() 302 char c = document.getChar(start); in findClassName() 304 start++; in findClassName() [all …]
|
D | RenameResourceParticipant.java | 558 int start = RefactoringUtil.getAttributeValueRangeStart(nameNode, document); in addReplacements() local 559 if (start != -1) { in addReplacements() 560 int end = start + mOldName.length(); in addReplacements() 561 edits.add(new ReplaceEdit(start, end - start, mNewName)); in addReplacements() 577 int start = RefactoringUtil.getAttributeValueRangeStart(attr, document); in addReplacements() local 578 if (start != -1) { in addReplacements() 579 int end = start + mXmlMatch1.length(); in addReplacements() 580 edits.add(new ReplaceEdit(start, end - start, mXmlNewValue1)); in addReplacements() 611 int start = region.getStartOffset(); in addReplacements() local 613 edits.add(new ReplaceEdit(start, end - start, "")); in addReplacements() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/ |
D | XmlFormatProcessor.java | 43 public void formatModel(IStructuredModel structuredModel, int start, int length) { in formatModel() argument 45 super.formatModel(structuredModel, start, length); in formatModel() 53 context.setProperty(CONTEXT_PARTITION, new TypedPosition(start, length, in formatModel() 55 context.setProperty(CONTEXT_REGION, new org.eclipse.jface.text.Region(start, length)); in formatModel() 56 formatter.formatMaster(context, document, start, length); in formatModel()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/ |
D | ExtractStringProposal.java | 58 int start = coveringNode.getStartPosition(); in apply() local 60 ITextSelection selection = new TextSelection(start, length); in apply() 83 int start = coveringNode.getStartPosition(); in getAdditionalProposalInfo() local 87 String string = buffer.getText(start, length); in getAdditionalProposalInfo() 97 int i = start - 1; in getAdditionalProposalInfo() 105 String linePrefix = buffer.getText(i + 1, start - (i + 1)).trim(); in getAdditionalProposalInfo() 108 i = start + length; in getAdditionalProposalInfo() 116 String lineSuffix = buffer.getText(start + length, i - (start + length)); in getAdditionalProposalInfo()
|
/sdk/find_java/src/source/ |
D | utils.h | 76 CString(const char *start, size_t length) { mStr = NULL; set(start, length); } in CString() argument 92 CString& set(const char *start, size_t length) { in set() argument 94 if (start != NULL) { in set() 96 strncpy(mStr, start, length); in set() 193 const char *start = last ? last : mStr; in split() local 194 (*result)[n++].set(start, s-start); in split() 243 CPath(const char *start, int length) : CString(start, length) { } in CPath() argument
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/editors/ |
D | GLCallGroups.java | 137 public static List<GLCallNode> constructCallHierarchy(GLTrace trace, int start, int end, in constructCallHierarchy() argument 144 return flatHierarchy(trace, start, end); in constructCallHierarchy() 152 for (int i = start; i < end; i++) { in constructCallHierarchy() 192 private static List<GLCallNode> flatHierarchy(GLTrace trace, int start, int end) { in flatHierarchy() argument 196 for (int i = start; i < end; i++) { in flatHierarchy()
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
D | ViewHierarchyLoader.java | 155 int start = 0; in loadProperties() local 159 int index = data.indexOf('=', start); in loadProperties() 161 property.name = data.substring(start, index); in loadProperties() 170 start = index2 + 1 + length; in loadProperties() 176 stop = start >= data.length(); in loadProperties() 178 start += 1; in loadProperties()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | VisualRefactoring.java | 167 int start = Integer.MAX_VALUE; in VisualRefactoring() local 171 start = Math.min(start, region.getStartOffset()); in VisualRefactoring() 175 if (start >= 0) { in VisualRefactoring() 176 mSelectionStart = start; in VisualRefactoring() 178 mOriginalSelectionStart = start; in VisualRefactoring() 196 int start = Integer.MAX_VALUE; in VisualRefactoring() local 209 start = Math.min(start, region.getStartOffset()); in VisualRefactoring() 214 if (start >= 0) { in VisualRefactoring() 215 mSelectionStart = start; in VisualRefactoring() 394 int start = subRegionStart + 1; // skip quote in replaceIds() local [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/ |
D | NinePatchedImage.java | 398 patch.start = i; in findPatches() 429 rect.x = horizontal.start; in getContentArea() 433 rect.y = vertical.start; in getContentArea() 449 Tick start = null; in getContentArea() local 455 if (start == null) { in getContentArea() 456 start = t; in getContentArea() 465 if (start == null) { in getContentArea() 469 Tick result = new Tick(start.color); in getContentArea() 470 result.start = start.start; in getContentArea() 509 contents.start = x; in findContentArea() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.traceview/src/com/android/ide/eclipse/traceview/ |
D | TraceviewPlugin.java | 43 public void start(BundleContext context) throws Exception { in start() method in TraceviewPlugin 44 super.start(context); in start()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
D | AndroidDoubleClickStrategy.java | 48 int start = ns + 1; in processElementDoubleClicked() local 50 + start, fTextRegion.getTextLength() - start); in processElementDoubleClicked()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/ |
D | MonitorPlugin.java | 34 public void start(BundleContext context) throws Exception { in start() method in MonitorPlugin 35 super.start(context); in start()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/ |
D | GridModel.java | 2090 int start = 0; in onDeleted() local 2091 while (start < actualColumnCount) { in onDeleted() 2093 while (start < actualColumnCount && usedColumns.contains(start)) { in onDeleted() 2094 start++; in onDeleted() 2096 if (start == actualColumnCount) { in onDeleted() 2099 assert !usedColumns.contains(start); in onDeleted() 2102 int end = start + 1; in onDeleted() 2110 int width = getColumnWidth(start, end - start); in onDeleted() 2119 for (int column = start; column < end; column++) { in onDeleted() 2129 spacer.column = columnMap[start]; in onDeleted() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/build/ |
D | AaptParserTest.java | 192 int start = marker.getAttribute(IMarker.CHAR_START, 0); in checkRanges() local 196 + getCaretContext(fileContents, start), rangeBegin, start); in checkRanges()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/ |
D | AaptQuickFix.java | 118 int start = marker.getAttribute(IMarker.CHAR_START, 0); in getResolutions() local 120 if (end > start) { in getResolutions() 121 int length = end - start; in getResolutions() 126 String resource = document.get(start, length); in getResolutions() 182 int start = marker.getAttribute(IMarker.CHAR_START, 0); in computeQuickAssistProposals() local 184 int length = end - start; in computeQuickAssistProposals() 185 String resource = document.get(start, length); in computeQuickAssistProposals()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/tree/ |
D | CopyCutAction.java | 174 int start = region.getStartOffset(); in getXmlTextFromEditor() local 177 if (end > start) { in getXmlTextFromEditor() 178 data = sse_doc.get(start, end - start); in getXmlTextFromEditor()
|