Home
last modified time | relevance | path

Searched refs:document (Results 1 – 14 of 14) sorted by relevance

/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DAppSearchMigratorTest.java43 @NonNull GenericDocument document) { in testOnUpgrade()
45 document.getNamespace(), in testOnUpgrade()
46 document.getId(), in testOnUpgrade()
47 document.getSchemaType()) in testOnUpgrade()
48 .setCreationTimestampMillis(document.getCreationTimestampMillis()) in testOnUpgrade()
49 .setScore(document.getScore()) in testOnUpgrade()
50 .setTtlMillis(document.getTtlMillis()) in testOnUpgrade()
65 @NonNull GenericDocument document) { in testOnUpgrade()
66 return document; in testOnUpgrade()
105 @NonNull GenericDocument document) { in testOnDowngrade()
[all …]
DGenericDocumentCtsTest.java161 GenericDocument document = in testDocumentGetSingleValue() local
173 assertThat(document.getId()).isEqualTo("id1"); in testDocumentGetSingleValue()
174 assertThat(document.getTtlMillis()).isEqualTo(1L); in testDocumentGetSingleValue()
175 assertThat(document.getSchemaType()).isEqualTo("schemaType1"); in testDocumentGetSingleValue()
176 assertThat(document.getCreationTimestampMillis()).isEqualTo(5); in testDocumentGetSingleValue()
177 assertThat(document.getScore()).isEqualTo(1); in testDocumentGetSingleValue()
178 assertThat(document.getPropertyLong("longKey1")).isEqualTo(1L); in testDocumentGetSingleValue()
179 assertThat(document.getPropertyDouble("doubleKey1")).isEqualTo(1.0); in testDocumentGetSingleValue()
180 assertThat(document.getPropertyBoolean("booleanKey1")).isTrue(); in testDocumentGetSingleValue()
181 assertThat(document.getPropertyString("stringKey1")).isEqualTo("test-value1"); in testDocumentGetSingleValue()
[all …]
DAppSearchSchemaMigrationCtsTestBase.java88 int currentVersion, int finalVersion, @NonNull GenericDocument document) {
89 return document;
95 int currentVersion, int finalVersion, @NonNull GenericDocument document) {
96 return document;
109 int currentVersion, int finalVersion, @NonNull GenericDocument document) {
110 return document;
116 int currentVersion, int finalVersion, @NonNull GenericDocument document) {
117 return document;
500 @NonNull GenericDocument document) { in testSchemaMigration()
501 if (document.getId().equals("id2")) { in testSchemaMigration()
[all …]
DDocumentIdUtilCtsTest.java74 GenericDocument document = new GenericDocument.Builder<>("namespace", "id", "type").build(); in testQualifiedIdFromDocument() local
75 String qualifiedId = DocumentIdUtil.createQualifiedId(packageName, databaseName, document); in testQualifiedIdFromDocument()
DSetSchemaRequestCtsTest.java109 @NonNull GenericDocument document) { in testSetSchemaRequestTypeChanges()
110 return document; in testSetSchemaRequestTypeChanges()
118 @NonNull GenericDocument document) { in testSetSchemaRequestTypeChanges()
119 return document; in testSetSchemaRequestTypeChanges()
134 @NonNull GenericDocument document) { in testSetSchemaRequestTypeChanges()
135 return document; in testSetSchemaRequestTypeChanges()
143 @NonNull GenericDocument document) { in testSetSchemaRequestTypeChanges()
144 return document; in testSetSchemaRequestTypeChanges()
159 @NonNull GenericDocument document) { in testSetSchemaRequestTypeChanges()
160 return document; in testSetSchemaRequestTypeChanges()
[all …]
DGlobalSearchSessionCtsTestBase.java950 GenericDocument document = in testAddObserver() local
957 .addGenericDocuments(document) in testAddObserver()
2028 @NonNull GenericDocument document) { in testRegisterObserver_schemaMigration()
2031 assertThat(document.getSchemaType()) in testRegisterObserver_schemaMigration()
2034 document.getPropertyStringArray( in testRegisterObserver_schemaMigration()
2039 document.getNamespace(), in testRegisterObserver_schemaMigration()
2040 document.getId(), in testRegisterObserver_schemaMigration()
2041 document.getSchemaType()) in testRegisterObserver_schemaMigration()
2051 @NonNull GenericDocument document) { in testRegisterObserver_schemaMigration()
2072 @NonNull GenericDocument document) { in testRegisterObserver_schemaMigration()
[all …]
DAppSearchSessionCtsTestBase.java1628 GenericDocument document = in testPutDocuments_emptyProperties() local
1640 .addGenericDocuments(document) in testPutDocuments_emptyProperties()
4488 GenericDocument document = in testSnippet() local
4497 new PutDocumentsRequest.Builder().addGenericDocuments(document).build())); in testSnippet()
4646 GenericDocument document = in testCJKSnippet() local
4652 new PutDocumentsRequest.Builder().addGenericDocuments(document).build())); in testCJKSnippet()
10544 GenericDocument document = in testPutDocuments_emptyBytesAndDocuments() local
10554 .addGenericDocuments(document) in testPutDocuments_emptyBytesAndDocuments()
/cts/hostsidetests/appsearch/test-apps/AppSearchHostTestHelperA/src/android/appsearch/app/helper_a/
DEnterpriseContactsDeviceTest.java225 GenericDocument document = getResult.getSuccesses().get("123"); in testGetEnterpriseContact() local
226 assertThat(document.getPropertyNames()).containsAtLeast(PERSON_PROPERTY_NAME, in testGetEnterpriseContact()
231 assertThat(document.getPropertyNames()).doesNotContain(PERSON_PROPERTY_NOTES); in testGetEnterpriseContact()
232 assertThat(document.getPropertyString(PERSON_PROPERTY_NAME)).isEqualTo("Sam1 Curran"); in testGetEnterpriseContact()
233 assertThat(document.getPropertyString(PERSON_PROPERTY_GIVEN_NAME)).isEqualTo("givenName"); in testGetEnterpriseContact()
234 assertThat(document.getPropertyString(PERSON_PROPERTY_MIDDLE_NAME)).isEqualTo("middleName"); in testGetEnterpriseContact()
235 assertThat(document.getPropertyString(PERSON_PROPERTY_FAMILY_NAME)).isEqualTo("familyName"); in testGetEnterpriseContact()
236 assertThat(document.getPropertyString(PERSON_PROPERTY_EXTERNAL_URI)).isEqualTo( in testGetEnterpriseContact()
238 assertThat(document.getPropertyLongArray( in testGetEnterpriseContact()
241 assertThat(document.getPropertyStringArray( in testGetEnterpriseContact()
[all …]
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/customer/
DCustomerDocumentTest.java92 private CustomerDocument(GenericDocument document) { in CustomerDocument() argument
93 super(document); in CustomerDocument()
/cts/tests/tests/print/src/android/print/cts/
DPageRangeAdjustAndVerify.java301 PrintedPdfDocument document = new PrintedPdfDocument(getActivity(), in adjustPageRangeAndVerifyPages()
326 PdfDocument.Page page = document.startPage(pageNumber); in adjustPageRangeAndVerifyPages()
336 document.finishPage(page); in adjustPageRangeAndVerifyPages()
340 document.writeTo(fos); in adjustPageRangeAndVerifyPages()
342 document.close(); in adjustPageRangeAndVerifyPages()
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/external/testutil/
DAppSearchEmail.java91 public AppSearchEmail(@NonNull GenericDocument document) { in AppSearchEmail() argument
92 super(document); in AppSearchEmail()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java818 PrintedPdfDocument document = new PrintedPdfDocument(getActivity(), constraints); in writeBlankPages() local
821 PdfDocument.Page page = document.startPage(i); in writeBlankPages()
822 document.finishPage(page); in writeBlankPages()
825 document.writeTo(fos); in writeBlankPages()
827 document.close(); in writeBlankPages()
/cts/tests/vibrator/src/android/os/cts/
DVibrationEffectXmlSerializationTest.java964 assertWithMessage("Expected document parsing to fail for " + xml)
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt37051 field public static final String MIME_TYPE_DIR = "vnd.android.document/directory";
37081 field public static final String MIME_TYPE_ITEM = "vnd.android.document/root";