/sdk/monkeyrunner/src/com/android/monkeyrunner/doc/ |
H A D | MonkeyRunnerExported.java | 16 package com.android.monkeyrunner.doc; 36 String doc(); method in interface:MonkeyRunnerExported
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
H A D | AndroidXmlCharacterMatcher.java | 46 public IRegion match(IDocument doc, int offset) { argument 47 if (offset < 0 || offset >= doc.getLength()) { 51 IRegion match = findOppositeTag(doc, offset); 56 return super.match(doc, offset); 63 IStructuredDocument doc = (IStructuredDocument) document; 65 IStructuredDocumentRegion region = doc.getRegionAtCharacterOffset(offset); 91 region = doc.getRegionAtCharacterOffset(offset); 121 int target = findTagForwards(doc, subRegion.getStart() + region.getStartOffset(), 0); 129 int target = findTagBackwards(doc, subRegion.getStart() + region.getStartOffset(), -1); 140 * @param doc th 145 findTagBackwards(IStructuredDocument doc, int offset, int targetTagBalance) argument 199 findTagForwards(IStructuredDocument doc, int start, int targetTagBalance) argument [all...] |
H A D | AndroidXmlAutoEditStrategy.java | 87 IStructuredDocument doc = (IStructuredDocument) document; 91 && TextUtilities.endsWith(doc.getLegalLineDelimiters(), c.text) != -1) { 94 IStructuredModel model = modelManager.getModelForRead(doc); 98 int lineStart = findLineStart(doc, offset); 99 int textStart = findTextStart(doc, lineStart, offset); 101 IStructuredDocumentRegion region = doc.getRegionAtCharacterOffset(textStart); 103 Pair<Integer,Integer> balance = getBalance(doc, textStart, offset); 109 lineIndent = doc.get(lineStart, textStart - lineStart); 122 ITextRegion left = getRegionAt(doc, offset, true /*biasLeft*/); 133 ITextRegion right = getRegionAt(doc, offse 345 copyPreviousLineIndentation(IDocument doc, DocumentCommand command) argument 375 getRegionAt(IStructuredDocument doc, int offset, boolean biasLeft) argument 397 getBalance(IStructuredDocument doc, int start, int end) argument [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/functests/sampleProjects/ |
H A D | AndroidManifestWriter.java | 57 private AndroidManifestWriter(Document doc, String osManifestFilePath) { argument 58 mDoc = doc; 118 Document doc = docBuilder.parse(osManifestFilePath); 119 return new AndroidManifestWriter(doc, osManifestFilePath);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
H A D | EclipseLintRunner.java | 52 * @param doc the associated document, if known, or null 59 @Nullable IDocument doc, 62 LintJob job = (LintJob) startLint(resources, source, doc, fatalOnly, 92 * @param doc the associated document, if known, or null 100 @Nullable IDocument doc, 104 EclipseLintClient client = new EclipseLintClient(registry, resources, doc, fatalOnly); 56 runLint( @onNull List<? extends IResource> resources, @Nullable IResource source, @Nullable IDocument doc, boolean fatalOnly) argument 97 startLint( @onNull List<? extends IResource> resources, @Nullable IResource source, @Nullable IDocument doc, boolean fatalOnly, boolean show) argument
|
H A D | EclipseLintClient.java | 490 private static Pair<Integer, Integer> getRange(IFile file, IDocument doc, argument 496 if (doc == null) { 500 doc = provider.getDocument(file); 501 if (doc != null) { 502 return adjustOffsets(doc, startOffset, endOffset); 510 return adjustOffsets(doc, startOffset, endOffset); 527 private static Pair<Integer, Integer> adjustOffsets(IDocument doc, int startOffset, argument 529 if (doc != null) { 530 while (endOffset > startOffset && endOffset < doc.getLength()) { 532 if (!Character.isWhitespace(doc [all...] |
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/devices/ |
H A D | DeviceWriter.java | 62 Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); 63 Element root = doc.createElement(PREFIX + DeviceSchema.NODE_DEVICES); 67 doc.appendChild(root); 70 Element deviceNode = doc.createElement(PREFIX + DeviceSchema.NODE_DEVICE); 73 Element name = doc.createElement(PREFIX + DeviceSchema.NODE_NAME); 74 name.appendChild(doc.createTextNode(device.getName())); 77 Element manufacturer = doc.createElement(PREFIX + DeviceSchema.NODE_MANUFACTURER); 78 manufacturer.appendChild(doc.createTextNode(device.getManufacturer())); 81 deviceNode.appendChild(generateMetaNode(device.getMeta(), doc)); 82 deviceNode.appendChild(generateHardwareNode(device.getDefaultHardware(), doc)); 100 generateMetaNode(Meta meta, Document doc) argument 131 generateHardwareNode(Hardware hw, Document doc) argument 203 generateSoftwareNode(Software sw, Document doc) argument 227 generateStateNode(State s, Document doc, Hardware defaultHardware) argument 253 addElement(Document doc, Element parent, String tag, String content) argument 260 addElement(Document doc, Element parent, String tag, Collection<? extends Object> content) argument 272 addStorageElement(Document doc, Element parent, String tag, Collection<Storage> content) argument [all...] |
/sdk/sdkmanager/libs/sdklib/tests/src/com/android/sdklib/internal/repository/ |
H A D | AddonsListFetcherTest.java | 43 public Site[] _parseAddonsList(Document doc, argument 47 return super.parseAddonsList(doc, nsUri, baseUrl, monitor); 107 Document doc = mFetcher._getDocument(xmlStream, monitor); 108 assertNotNull(doc); 111 Site[] result = mFetcher._parseAddonsList(doc, uri, "http://base/url/", monitor); 153 Document doc = mFetcher._getDocument(xmlStream, monitor); 154 assertNotNull(doc); 157 Site[] result = mFetcher._parseAddonsList(doc, uri, "http://base/url/", monitor);
|
H A D | SdkStatsTest.java | 44 public SparseArray<PlatformStat> _parseStatsDocument(Document doc, argument 47 return super.parseStatsDocument(doc, nsUri, monitor); 104 Document doc = mStats._getDocument(xmlStream, monitor); 105 assertNotNull(doc); 108 SparseArray<PlatformStat> result = mStats._parseStatsDocument(doc, uri, monitor);
|
/sdk/sdkmanager/libs/sdklib/tests/src/com/android/sdklib/internal/repository/sources/ |
H A D | SdkSysImgSourceTest.java | 54 public boolean _parsePackages(Document doc, String nsUri, ITaskMonitor monitor) { argument 55 return super.parsePackages(doc, nsUri, monitor); 124 Document doc = mSource._getDocument(xmlStream, monitor); 125 assertNotNull(doc); 128 assertTrue(mSource._parsePackages(doc, uri, monitor));
|
H A D | SdkAddonSourceTest.java | 61 public boolean _parsePackages(Document doc, String nsUri, ITaskMonitor monitor) { argument 62 return super.parsePackages(doc, nsUri, monitor); 176 Document doc = mSource._getDocument(xmlStream, monitor); 177 assertNotNull(doc); 180 assertTrue(mSource._parsePackages(doc, uri, monitor)); 252 Document doc = mSource._getDocument(xmlStream, monitor); 253 assertNotNull(doc); 256 assertTrue(mSource._parsePackages(doc, uri, monitor)); 346 Document doc = mSource._getDocument(xmlStream, monitor); 347 assertNotNull(doc); [all...] |
H A D | SdkRepoSourceTest.java | 72 Document doc = super.findAlternateToolsXml(xml, new ErrorHandler() { 89 return Pair.of(doc, output.toString()); 92 public boolean _parsePackages(Document doc, String nsUri, ITaskMonitor monitor) { argument 93 return super.parsePackages(doc, nsUri, monitor); 233 Document doc = mSource._getDocument(xmlStream, monitor); 234 assertNotNull(doc); 237 assertTrue(mSource._parsePackages(doc, uri, monitor)); 311 Document doc = mSource._getDocument(xmlStream, monitor); 312 assertNotNull(doc); 315 assertTrue(mSource._parsePackages(doc, ur [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/ |
H A D | AaptQuickFix.java | 221 private IndexedRegion perform(IDocument doc) { argument 223 IStructuredModel model = manager.getExistingModelForEdit(doc); 296 public Point getSelection(IDocument doc) { argument
|
/sdk/manifmerger/src/com/android/manifmerger/ |
H A D | XmlUtils.java | 107 Document doc = builder.parse(is); 108 doc.setUserData(DATA_ORIGIN_FILE, xmlFile, null /*handler*/); 109 findLineNumbers(doc, 1); 111 return doc; 147 Document doc = builder.parse(is); 148 findLineNumbers(doc, 1); 149 return doc; 167 * @param doc The document to decorate. 170 static void decorateDocument(@NonNull Document doc, @NonNull String fileName) { argument 171 doc 257 lookupNsPrefix(Document doc, String nsUri) argument 271 printXmlFile( @onNull Document doc, @NonNull File outFile, @NonNull IMergerLog log) argument 303 printXmlString( @onNull Document doc, @NonNull IMergerLog log) argument [all...] |
H A D | ManifestMerger.java | 364 * @param doc The document in which to expand potential FQCNs. 366 private void expandFqcns(Document doc) { argument 369 Element manifest = findFirstElement(doc, "/manifest"); 391 NodeList elements = doc.getElementsByTagName(elemName); 419 * - {@code @name}: Ignore if empty. Warning if its expanded FQCN doesn't match the main doc. 420 * - {@code @backupAgent}: Ignore if empty. Warning if its expanded FQCN doesn't match main doc. 445 // The main doc does not have to have an application node. 1404 * @param doc The document where to find the expression. 1410 @NonNull Document doc, 1414 result = (Node) mXPath.evaluate(path, doc, XPathConstant 1409 findFirstElement( @onNull Document doc, @NonNull String path) argument 1441 findElements( @onNull Document doc, @NonNull String path) argument 1467 findElements( @onNull Document doc, @NonNull String path, @Nullable String attrName, @Nullable String attrValue) argument [all...] |
/sdk/monkeyrunner/src/com/android/monkeyrunner/ |
H A D | JythonUtils.java | 50 import com.android.monkeyrunner.doc.MonkeyRunnerExported; 275 MonkeyRunnerExported doc = clz.getAnnotation(MonkeyRunnerExported.class); 276 String fullDoc = buildClassDoc(doc, clz); 304 MonkeyRunnerExported doc = m.getAnnotation(MonkeyRunnerExported.class); 306 realPyFunc.__doc__ = new PyString(buildDoc(doc)); 319 MonkeyRunnerExported doc = f.getAnnotation(MonkeyRunnerExported.class); 323 // realPyfield.__setattr__("__doc__", new PyString(buildDoc(doc))); 349 * build a jython doc-string for a class from the annotation and the fields 352 * @param doc the annotation 354 * @return the doc 356 buildClassDoc(MonkeyRunnerExported doc, Class<?> clz) argument 418 buildDoc(MonkeyRunnerExported doc) argument [all...] |
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/repository/ |
H A D | AddonsListFetcher.java | 313 Document doc = null; 342 doc = builder.parse(xml); 357 if (doc == null) { 370 for (Node child = doc.getFirstChild(); child != null; child = child.getNextSibling()) { 497 Document doc = builder.parse(new InputSource(xml)); 499 return doc; 516 * @param doc The XML DOM to parse. 523 Document doc, 535 Node root = getFirstChild(doc, nsUri, SdkAddonsListConstants.NODE_SDK_ADDONS_LIST); 522 parseAddonsList( Document doc, String nsUri, String baseUrl, ITaskMonitor monitor) argument
|
H A D | SdkStats.java | 298 Document doc = null; 326 doc = builder.parse(xml); 340 if (doc == null) { 353 for (Node child = doc.getFirstChild(); child != null; child = child.getNextSibling()) { 486 Document doc = builder.parse(new InputSource(xml)); 488 return doc; 509 Document doc, 523 Node root = getFirstChild(doc, nsUri, SdkStatsConstants.NODE_SDK_STATS); 508 parseStatsDocument( Document doc, String nsUri, ITaskMonitor monitor) argument
|
/sdk/apps/DeviceConfig/src/com/example/android/deviceconfig/ |
H A D | ConfigGenerator.java | 171 Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); 173 Element devices = doc.createElement(PREFIX + NODE_DEVICES); 177 doc.appendChild(devices); 179 Element device = doc.createElement(PREFIX + NODE_DEVICE); 182 Element name = doc.createElement(PREFIX + NODE_NAME); 184 name.appendChild(doc.createTextNode(android.os.Build.MODEL)); 185 Element manufacturer = doc.createElement(PREFIX + NODE_MANUFACTURER); 187 manufacturer.appendChild(doc.createTextNode(android.os.Build.MANUFACTURER)); 189 Element hardware = doc.createElement(PREFIX + NODE_HARDWARE); 192 Element screen = doc 609 getCameraElements(Document doc) argument [all...] |
/sdk/lint/libs/lint_api/src/com/android/tools/lint/detector/api/ |
H A D | Location.java | 473 private static int adjustLine(String doc, int line, int offset, int newOffset) { argument 479 return line - countLines(doc, newOffset, offset); 481 return line + countLines(doc, offset, newOffset); 485 private static int countLines(String doc, int start, int end) { argument 488 char c = doc.charAt(offset);
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/repository/sources/ |
H A D | SdkSource.java | 727 Document doc = null; 756 doc = builder.parse(xml); 770 if (doc == null) { 783 for (Node child = doc.getFirstChild(); child != null; child = child.getNextSibling()) { 864 protected boolean parsePackages(Document doc, String nsUri, ITaskMonitor monitor) { argument 866 Node root = getFirstChild(doc, nsUri, getRootElementName()); 905 // We only load platform, doc and tool packages from internal 976 Document doc = builder.parse(new InputSource(xml)); 978 return doc;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
H A D | VisualRefactoring.java | 345 IStructuredDocument doc, int skipStart, int skipEnd, 367 IStructuredDocumentRegion region = doc.getFirstStructuredDocumentRegion(); 697 IStructuredDocument doc = mDelegate.getEditor().getStructuredDocument(); 698 Pair<Element, Element> range = DomUtilities.getElementRange(doc, 998 IStructuredDocument doc = model.getStructuredDocument(); 1000 IStructuredDocumentRegion region = doc.getRegionAtCharacterOffset(offset); 1088 IStructuredDocument doc = model.getStructuredDocument(); 1089 if (doc != null) { 1091 IStructuredDocumentRegion region = doc.getRegionAtCharacterOffset(start); 1103 DeleteEdit deletion = createDeletion(doc, startOffse 344 replaceIds(String androidNamePrefix, IStructuredDocument doc, int skipStart, int skipEnd, String rootId, String referenceId) argument 1146 removeIndentation(MultiTextEdit rootEdit, String removeIndent, IStructuredDocument doc, int startLineInclusive, int endLineInclusive, Element element, List<Element> skip) argument 1177 setIndentation(MultiTextEdit rootEdit, String indent, IStructuredDocument doc, int startLineInclusive, int endLineInclusive, Element element, List<Element> skip) argument 1232 createDeletion(IStructuredDocument doc, int startOffset, int endOffset) argument [all...] |