Home
last modified time | relevance | path

Searched refs:doc (Results 1 – 19 of 19) sorted by relevance

/cts/tests/pdf/src/android/graphics/pdf/cts/
DPdfDocumentTest.java56 PdfDocument doc = new PdfDocument(); in getPagesEmptyDocAfterClose() local
57 doc.close(); in getPagesEmptyDocAfterClose()
58 assertEquals(0, doc.getPages().size()); in getPagesEmptyDocAfterClose()
63 PdfDocument doc = new PdfDocument(); in closeClosedDoc() local
64 doc.close(); in closeClosedDoc()
67 doc.close(); in closeClosedDoc()
72 PdfDocument doc = new PdfDocument(); in writeClosedDoc() local
73 doc.close(); in writeClosedDoc()
77 assertThrows(IllegalStateException.class, () -> doc.writeTo(os)); in writeClosedDoc()
82 PdfDocument doc = new PdfDocument(); in startPageClosedDoc() local
[all …]
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DGenericDocumentCtsTest.java434 GenericDocument doc = in testDocumentInvalid_setNullDocValues() local
440 () -> builder.setPropertyDocument("propDocs", doc, nullDoc)); in testDocumentInvalid_setNullDocValues()
544 GenericDocument doc = in testRetrieveTopLevelProperties() local
555 assertThat(doc.getPropertyStringArray("propString")) in testRetrieveTopLevelProperties()
559 assertThat(doc.getPropertyLongArray("propInts")) in testRetrieveTopLevelProperties()
563 assertThat(doc.getPropertyDoubleArray("propDoubles")) in testRetrieveTopLevelProperties()
567 assertThat(doc.getPropertyBooleanArray("propBools")).asList().containsExactly(false); in testRetrieveTopLevelProperties()
568 assertThat(doc.getPropertyBytesArray("propBytes")).isEqualTo(new byte[][] {{3, 4}}); in testRetrieveTopLevelProperties()
571 assertThat(doc.getPropertyString("propString")).isEqualTo("Goodbye"); in testRetrieveTopLevelProperties()
572 assertThat(doc.getPropertyLong("propInts")).isEqualTo(3); in testRetrieveTopLevelProperties()
[all …]
DAppSearchSchemaMigrationCtsTestBase.java152 GenericDocument doc = in setUp() local
161 .addGenericDocuments(doc) in setUp()
946 GenericDocument doc = in testSchemaMigration_sourceToNowhere() local
954 .addGenericDocuments(doc) in testSchemaMigration_sourceToNowhere()
1175 GenericDocument doc = in testSchemaMigration_toAnotherType() local
1181 .addGenericDocuments(doc) in testSchemaMigration_toAnotherType()
1689 GenericDocument doc = in testSchemaMigration_multiStep1To4() local
1698 .addGenericDocuments(doc) in testSchemaMigration_multiStep1To4()
1760 GenericDocument doc = in testSchemaMigration_multiStep2To4() local
1770 .addGenericDocuments(doc) in testSchemaMigration_multiStep2To4()
[all …]
DAppSearchSessionCtsTestBase.java2608 GenericDocument doc = in testQueryIndexableLongProperty_numericSearchNotEnabled() local
2614 mDb1.putAsync(new PutDocumentsRequest.Builder().addGenericDocuments(doc).build())); in testQueryIndexableLongProperty_numericSearchNotEnabled()
7002 GenericDocument doc = in testQuery_hasPropertyFunctionWithoutEnablingFeatureFails() local
7006 mDb1.putAsync(new PutDocumentsRequest.Builder().addGenericDocuments(doc).build()).get(); in testQuery_hasPropertyFunctionWithoutEnablingFeatureFails()
8418 GenericDocument doc = in testSearchSuggestion_replacementDocument() local
8424 mDb1.putAsync(new PutDocumentsRequest.Builder().addGenericDocuments(doc).build())); in testSearchSuggestion_replacementDocument()
10240 GenericDocument doc = in testEmbeddingSearchWithoutEnablingFeatureFails() local
10256 mDb1.putAsync(new PutDocumentsRequest.Builder().addGenericDocuments(doc).build())); in testEmbeddingSearchWithoutEnablingFeatureFails()
/cts/tests/tests/print/src/android/print/pdf/cts/
DPrintedPdfDocumentTest.java76 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/
DMyDocumentsProvider.java121 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()
228 for (Doc doc : mDocs.get(parentDocumentId).children) { in isChildDocument()
229 if (doc.docId.equals(documentId)) { in isChildDocument()
232 if (Document.MIME_TYPE_DIR.equals(doc.mimeType)) { in isChildDocument()
[all …]
/cts/tools/utils/cts/
Dtools.py53 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/
DNdkApiXmlReport.java292 protected static void setAttribute(Document doc, Node elem, String name, String value) { in setAttribute() argument
293 Attr attr = doc.createAttribute(name); in setAttribute()
298 protected static Element createClassEle(Document doc, String name) { in createClassEle() argument
299 Element ele = doc.createElement(CLASS_TAG); in createClassEle()
300 setAttribute(doc, ele, ATTRIBUTE_NAME, name); in createClassEle()
301 setAttribute(doc, ele, "abstract", "false"); in createClassEle()
302 setAttribute(doc, ele, "static", "false"); in createClassEle()
303 setAttribute(doc, ele, "final", "true"); in createClassEle()
304 setAttribute(doc, ele, "deprecated", "not deprecated"); in createClassEle()
305 setAttribute(doc, ele, "visibility", "public"); in createClassEle()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-4658/
Dpoc.c28 xmlDocPtr doc; in main() local
32 doc = xmlReadFile(argv[1], NULL, 0); in main()
33 if (doc) { in main()
35 xpathCtx = (xmlXPathContextPtr)xmlXPtrNewContext(doc, (xmlNode *)NULL, in main()
44 xmlFreeDoc(doc); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-5131/
Dpoc.c28 xmlDocPtr doc; in main() local
32 doc = xmlReadFile(argv[1], NULL, 0); in main()
33 if (doc) { in main()
35 xpathCtx = (xmlXPathContextPtr)xmlXPtrNewContext(doc, (xmlNode *)NULL, in main()
44 xmlFreeDoc(doc); in main()
/cts/tools/utils/
Dandroid_api_description_splitter.py86 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())
Drerun.py52 doc = minidom.parse(resultXml)
53 testResult = doc.getElementsByTagName("TestResult")[0]
DbuildCts.py115 doc = tools.XmlFile(description)
116 packages.append(doc.GetAttr('TestPackage', 'appPackageName'))
/cts/hostsidetests/multidevices/tools/
Drun_all_tests.py158 for doc in test_summary_content:
159 if doc['Type'] == 'Record':
162 RESULT_PASS if doc['Result'] in ('PASS', 'SKIP') else RESULT_FAIL
/cts/tests/tests/telecom-cuj/
DAndroid.bp60 name: "telecom-cuj-doc-stubs",
95 // The metalava conversion is done by droidstub module "telcom-doc-stubs".
99 ":telecom-cuj-doc-stubs",
/cts/suite/cts/utils/
Dget_csv_report.py96 doc = minidom.parse(reportXml)
97 testResult = doc.getElementsByTagName("TestResult")[0]
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTest.java407 Uri doc = DocumentsContract.buildDocumentUriUsingTree(uri, in testTree() local
412 assertEquals("DIR2", getColumn(doc, Document.COLUMN_DISPLAY_NAME)); in testTree()
427 Uri pic = DocumentsContract.createDocument(resolver, doc, "image/png", "pic.png"); in testTree()
428 Uri dir = DocumentsContract.createDocument(resolver, doc, Document.MIME_TYPE_DIR, "my dir"); in testTree()
826 Uri doc = DocumentsContract.buildDocumentUriUsingTree(uri, in testFindDocumentPathInScopedAccess() local
829 assertEquals("DIR2", getColumn(doc, Document.COLUMN_DISPLAY_NAME)); in testFindDocumentPathInScopedAccess()
834 Uri dir = DocumentsContract.createDocument(resolver, doc, Document.MIME_TYPE_DIR, "my dir"); in testFindDocumentPathInScopedAccess()
/cts/tests/appsearch/helper-app/src/com/android/cts/appsearch/helper/
DAppSearchTestService.java92 for (GenericDocument doc : results) { in globalSearch()
93 resultStrings.add(doc.toString()); in globalSearch()
/cts/hostsidetests/security/src/android/security/cts/
DSELinuxHostTest.java471 Document doc = db.parse(vendorManifestFile); in getVendorSepolicyVersionFromManifests() local
472 Element root = doc.getDocumentElement(); in getVendorSepolicyVersionFromManifests()