/cts/tests/pdf/src/android/graphics/pdf/cts/ |
D | PdfDocumentTest.java | 57 PdfDocument doc = new PdfDocument(); in getPagesEmptyDocAfterClose() local 58 doc.close(); in getPagesEmptyDocAfterClose() 59 assertEquals(0, doc.getPages().size()); in getPagesEmptyDocAfterClose() 64 PdfDocument doc = new PdfDocument(); in closeClosedDoc() local 65 doc.close(); in closeClosedDoc() 68 doc.close(); in closeClosedDoc() 73 PdfDocument doc = new PdfDocument(); in writeClosedDoc() local 74 doc.close(); in writeClosedDoc() 78 verifyException(() -> doc.writeTo(os), IllegalStateException.class); in writeClosedDoc() 83 PdfDocument doc = new PdfDocument(); in startPageClosedDoc() local [all …]
|
/cts/tests/tests/print/src/android/print/pdf/cts/ |
D | PrintedPdfDocumentTest.java | 76 PrintedPdfDocument doc = new PrintedPdfDocument(null, attr); in createWithNullContext() local 77 doc.close(); in createWithNullContext() 85 PrintedPdfDocument doc = new PrintedPdfDocument(sContext, attr); in startPage() local 86 PdfDocument.Page page = doc.startPage(0); in startPage() 87 doc.finishPage(page); in startPage() 88 doc.close(); in startPage() 96 PrintedPdfDocument doc = new PrintedPdfDocument(sContext, attr); in oneMilPageSize() local 101 assertException(() -> doc.startPage(0), IllegalArgumentException.class); in oneMilPageSize() 103 doc.close(); in oneMilPageSize() 122 PrintedPdfDocument doc = new PrintedPdfDocument(sContext, attr); in getPageWidth() local [all …]
|
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/ |
D | MyDocumentsProvider.java | 121 final Doc doc = new Doc(); in buildDoc() local 122 doc.docId = docId; in buildDoc() 123 doc.displayName = displayName; in buildDoc() 124 doc.mimeType = mimeType; in buildDoc() 125 doc.streamTypes = streamTypes; in buildDoc() 126 mDocs.put(doc.docId, doc); in buildDoc() 127 return doc; in buildDoc() 227 for (Doc doc : mDocs.get(parentDocumentId).children) { in isChildDocument() 228 if (doc.docId.equals(documentId)) { in isChildDocument() 231 if (Document.MIME_TYPE_DIR.equals(doc.mimeType)) { in isChildDocument() [all …]
|
/cts/tools/utils/cts/ |
D | tools.py | 53 def WriteDescription(self, doc, parent): argument 56 child = doc.createElement('TestSuite') 60 suite.WriteDescription(doc, child) 62 child = doc.createElement('TestCase') 66 test = doc.createElement('Test') 95 doc = minidom.Document() 96 package = doc.createElement('TestPackage') 99 self.root_suite.WriteDescription(doc, package) 100 doc.appendChild(package) 101 return doc [all …]
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | NdkApiXmlReport.java | 291 protected static void setAttribute(Document doc, Node elem, String name, String value) { in setAttribute() argument 292 Attr attr = doc.createAttribute(name); in setAttribute() 297 protected static Element createClassEle(Document doc, String name) { in createClassEle() argument 298 Element ele = doc.createElement(CLASS_TAG); in createClassEle() 299 setAttribute(doc, ele, ATTRIBUTE_NAME, name); in createClassEle() 300 setAttribute(doc, ele, "abstract", "false"); in createClassEle() 301 setAttribute(doc, ele, "static", "false"); in createClassEle() 302 setAttribute(doc, ele, "final", "true"); in createClassEle() 303 setAttribute(doc, ele, "deprecated", "not deprecated"); in createClassEle() 304 setAttribute(doc, ele, "visibility", "public"); in createClassEle() [all …]
|
/cts/tools/utils/ |
D | android_api_description_splitter.py | 86 self.doc = xml.dom.minidom.parse(xmlfile) 87 self.root = self.doc.documentElement 95 elemlist = self.doc.getElementsByTagName(tag) 125 doc = xml.dom.minidom.Document() 126 doc.appendChild(self.root) 131 fd.write(doc.toxml())
|
D | rerun.py | 52 doc = minidom.parse(resultXml) 53 testResult = doc.getElementsByTagName("TestResult")[0]
|
D | buildCts.py | 115 doc = tools.XmlFile(description) 116 packages.append(doc.GetAttr('TestPackage', 'appPackageName'))
|
/cts/suite/audio_quality/lib/src/task/ |
D | ModelBuilder.cpp | 88 XMLDocument doc; in parseTestDescriptionXml() local 89 int error = doc.LoadFile(xmlFileName.string()); in parseTestDescriptionXml() 95 if ((root = doc.FirstChildElement("case")) != NULL) { in parseTestDescriptionXml() 97 } else if (!caseOnly && ((root = doc.FirstChildElement("batch")) != NULL)) { in parseTestDescriptionXml()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTest.java | 296 Uri doc = DocumentsContract.buildDocumentUriUsingTree(uri, in testTree() local 301 assertEquals("DIR2", getColumn(doc, Document.COLUMN_DISPLAY_NAME)); in testTree() 316 Uri pic = DocumentsContract.createDocument(resolver, doc, "image/png", "pic.png"); in testTree() 317 Uri dir = DocumentsContract.createDocument(resolver, doc, Document.MIME_TYPE_DIR, "my dir"); in testTree() 552 Uri doc = DocumentsContract.buildDocumentUriUsingTree(uri, in testFindDocumentPathInScopedAccess() local 555 assertEquals("DIR2", getColumn(doc, Document.COLUMN_DISPLAY_NAME)); in testFindDocumentPathInScopedAccess() 560 Uri dir = DocumentsContract.createDocument(resolver, doc, Document.MIME_TYPE_DIR, "my dir"); in testFindDocumentPathInScopedAccess()
|
/cts/suite/cts/utils/ |
D | get_csv_report.py | 96 doc = minidom.parse(reportXml) 97 testResult = doc.getElementsByTagName("TestResult")[0]
|
/cts/hostsidetests/security/src/android/cts/security/ |
D | SELinuxHostTest.java | 283 Document doc = db.parse(vendorManifestFile); in getVendorSepolicyVersion() local 284 Element root = doc.getDocumentElement(); in getVendorSepolicyVersion()
|
/cts/apps/CameraITS/build/scripts/ |
D | gpylint_rcfile | 92 # used to format the message information. See doc for all details
|