/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | StubProvider.java | 141 mStorage.put(rootInfo.document.documentId, rootInfo.document); in clearCacheAndBuildRoots() 167 row.add(Root.COLUMN_DOCUMENT_ID, info.document.documentId); in queryRoots() 215 final StubDocument document = StubDocument.createRegularDocument(file, mimeType, parent); in createDocument() local 216 mStorage.put(document.documentId, document); in createDocument() 217 Log.d(TAG, "Created document " + document.documentId); in createDocument() 218 notifyParentChanged(document.parentId); in createDocument() 220 DocumentsContract.buildDocumentUri(mAuthority, document.documentId), in createDocument() 223 return document.documentId; in createDocument() 229 final StubDocument document = mStorage.get(documentId); in deleteDocument() local 230 final long fileSize = document.file.length(); in deleteDocument() [all …]
|
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/ |
D | StressProvider.java | 95 StubDocument document; in onCreate() local 100 document = StubDocument.createDirectory(i); in onCreate() 101 mDocuments.put(document.id, document); in onCreate() 102 children.add(document); in onCreate() 109 document = StubDocument.createFile( in onCreate() 116 mDocuments.put(document.id, document); in onCreate() 117 children.add(document); in onCreate() 144 final StubDocument document = mDocuments.get(documentId); in queryDocument() local 145 includeDocument(result, document); in queryDocument() 156 for (StubDocument document : childDocuments) { in queryChildDocuments() [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/usagereporting/ |
D | TakenActionGenericDocument.java | 46 public static TakenActionGenericDocument create(@NonNull GenericDocument document) in create() argument 48 Objects.requireNonNull(document); in create() 49 int actionType = (int) document.getPropertyLong(PROPERTY_PATH_ACTION_TYPE); in create() 52 return new SearchActionGenericDocument.Builder(document).build(); in create() 54 return new ClickActionGenericDocument.Builder(document).build(); in create() 61 protected TakenActionGenericDocument(@NonNull GenericDocument document) { in TakenActionGenericDocument() argument 62 super(Objects.requireNonNull(document)); in TakenActionGenericDocument() 107 Builder(@NonNull GenericDocument document) { in Builder() argument 108 super(Objects.requireNonNull(document)); in Builder()
|
D | SearchActionGenericDocument.java | 45 SearchActionGenericDocument(@NonNull GenericDocument document) { in SearchActionGenericDocument() argument 46 super(Objects.requireNonNull(document)); in SearchActionGenericDocument() 94 public Builder(@NonNull GenericDocument document) { in Builder() argument 95 super(Objects.requireNonNull(document)); in Builder() 97 if (document.getPropertyLong(PROPERTY_PATH_ACTION_TYPE) in Builder()
|
D | ClickActionGenericDocument.java | 47 ClickActionGenericDocument(@NonNull GenericDocument document) { in ClickActionGenericDocument() argument 48 super(Objects.requireNonNull(document)); in ClickActionGenericDocument() 106 public Builder(@NonNull GenericDocument document) { in Builder() argument 107 super(Objects.requireNonNull(document)); in Builder() 109 if (document.getPropertyLong(PROPERTY_PATH_ACTION_TYPE) in Builder()
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/transformer/ |
D | EnterpriseSearchResultPageTransformerTest.java | 93 GenericDocument document = new GenericDocument.Builder<>("namespace", "1", in testTransformSearchResult() local 98 .setGenericDocument(document).build(); in testTransformSearchResult() 101 .setGenericDocument(document) in testTransformSearchResult() 111 PersonEnterpriseTransformer.transformDocument(document); in testTransformSearchResult() 131 GenericDocument document = new GenericDocument.Builder<>("namespace", "1", in testTransformDocument_transformsPersonSchemaType() local 136 document)).isEqualTo( in testTransformDocument_transformsPersonSchemaType() 137 PersonEnterpriseTransformer.transformDocument(document)); in testTransformDocument_transformsPersonSchemaType() 140 document = new GenericDocument.Builder<>("namespace", "1", "otherSchemaType") in testTransformDocument_transformsPersonSchemaType() 144 document)).isNotEqualTo( in testTransformDocument_transformsPersonSchemaType() 145 PersonEnterpriseTransformer.transformDocument(document)); in testTransformDocument_transformsPersonSchemaType()
|
/packages/services/Car/tools/telemetry/lua-interpreter/static/js/ |
D | index.js | 21 document.getElementById('script-input'); 24 document.getElementById('published-data-input'); 27 document.getElementById('saved-state-input'); 115 document.getElementById('published-data-button-group'); 123 document.createElement('span'); 149 const /** !HTMLButtonElement */ button = document.createElement('button'); 154 const /** !HTMLSpanElement */ rippleSpan = document.createElement('span'); 157 const /** !HTMLSpanElement */ labelSpan = document.createElement('span');
|
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/ |
D | SearchResultInternalTest.java | 26 GenericDocument document = in testSearchResultBuilderCopyConstructor() local 30 .setGenericDocument(document) in testSearchResultBuilderCopyConstructor() 34 .setGenericDocument(document) in testSearchResultBuilderCopyConstructor() 38 .setGenericDocument(document) in testSearchResultBuilderCopyConstructor() 68 GenericDocument document = in testSearchResultBuilderCopyConstructor_informationalRankingSignal() local 72 .setGenericDocument(document) in testSearchResultBuilderCopyConstructor_informationalRankingSignal() 85 GenericDocument document = in testSearchResultBuilder_clearJoinedResults() local 89 .setGenericDocument(document) in testSearchResultBuilder_clearJoinedResults() 92 .setGenericDocument(document) in testSearchResultBuilder_clearJoinedResults()
|
D | SearchResultPageInternalTest.java | 29 GenericDocument document = in testSearchResultPage() local 34 .setGenericDocument(document) in testSearchResultPage() 37 .setGenericDocument(document) in testSearchResultPage() 45 assertThat(searchResults.get(0).getGenericDocument()).isEqualTo(document); in testSearchResultPage() 48 assertThat(searchResults.get(1).getGenericDocument()).isEqualTo(document); in testSearchResultPage()
|
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/ |
D | EnterpriseContactsTest.java | 242 GenericDocument document = getResult.getSuccesses().get("123"); in testGetEnterpriseContact() local 243 assertThat(document.getPropertyNames()).containsExactly(PERSON_PROPERTY_NAME, in testGetEnterpriseContact() 251 assertThat(document.getPropertyString(PERSON_PROPERTY_NAME)).isEqualTo("Sam1 Curran"); in testGetEnterpriseContact() 252 assertThat(document.getPropertyString(PERSON_PROPERTY_GIVEN_NAME)).isEqualTo("givenName"); in testGetEnterpriseContact() 253 assertThat(document.getPropertyString(PERSON_PROPERTY_MIDDLE_NAME)).isEqualTo("middleName"); in testGetEnterpriseContact() 254 assertThat(document.getPropertyString(PERSON_PROPERTY_FAMILY_NAME)).isEqualTo("familyName"); in testGetEnterpriseContact() 255 assertThat(document.getPropertyString(PERSON_PROPERTY_EXTERNAL_URI)).isEqualTo( in testGetEnterpriseContact() 257 assertThat(document.getPropertyLongArray( in testGetEnterpriseContact() 260 assertThat(document.getPropertyStringArray( in testGetEnterpriseContact() 262 assertThat(document.getPropertyString(Person.PERSON_PROPERTY_IMAGE_URI)).isEqualTo( in testGetEnterpriseContact() [all …]
|
/packages/services/Car/tools/hidl_parser/ |
D | parser.py | 233 def resolve(self, enum, document): argument 243 def resolve(self, enum, document): argument 256 def resolve(self, enum, document): argument 257 return self.value.resolve(enum, document) + 1 266 def resolve(self, enum, document): argument 268 if case.name == self.ref: return case.value.resolve(enum, document) 278 def resolve(self, enum, document): argument 279 base = self.base.resolve(enum, document) 280 offset = self.offset.resolve(enum, document) 291 def resolve(self, enum, document): argument [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/ |
D | GenericDocumentToProtoConverter.java | 64 public static DocumentProto toDocumentProto(@NonNull GenericDocument document) { in toDocumentProto() argument 65 Objects.requireNonNull(document); in toDocumentProto() 68 .setUri(document.getId()) in toDocumentProto() 69 .setSchema(document.getSchemaType()) in toDocumentProto() 70 .setNamespace(document.getNamespace()) in toDocumentProto() 71 .setScore(document.getScore()) in toDocumentProto() 72 .setTtlMs(document.getTtlMillis()) in toDocumentProto() 73 .setCreationTimestampMs(document.getCreationTimestampMillis()); in toDocumentProto() 74 ArrayList<String> keys = new ArrayList<>(document.getPropertyNames()); in toDocumentProto() 79 Object property = document.getProperty(name); in toDocumentProto()
|
/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/ |
D | document.h | 59 Document(ScopedFPDFDocument document, bool is_password_protected) in Document() argument 60 : Document(std::move(document), is_password_protected, nullptr, false, false) {} in Document() 104 Document(ScopedFPDFDocument document, bool is_password_protected, in Document() argument 108 document_(std::move(document)), in Document()
|
D | document_test.cc | 67 std::unique_ptr<Document> document; in LoadDocument() local 69 /* closeFdOnFailure= */ true, &document)) in LoadDocument() 71 return document; in LoadDocument()
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/ |
D | SearchResult.java | 92 @Param(id = 1) @NonNull GenericDocumentParcel document, in SearchResult() 99 mDocument = Objects.requireNonNull(document); in SearchResult() 282 public Builder setGenericDocument(@NonNull GenericDocument document) { in setGenericDocument() argument 283 Objects.requireNonNull(document); in setGenericDocument() 285 mGenericDocument = document; in setGenericDocument() 685 private static String getPropertyValues(GenericDocument document, String propertyName) { in getPropertyValues() argument 686 String result = document.getPropertyString(propertyName); in getPropertyValues() 700 void setDocument(@NonNull GenericDocument document) { in setDocument() argument 701 mDocument = document; in setDocument()
|
D | Migrator.java | 68 int currentVersion, int finalVersion, @NonNull GenericDocument document); in onUpgrade() argument 90 int currentVersion, int finalVersion, @NonNull GenericDocument document); in onDowngrade() argument
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/ |
D | GenericDocumentToProtoConverterTest.java | 75 GenericDocument document = in testDocumentProtoConvert() local 146 GenericDocumentToProtoConverter.toDocumentProto(document); in testDocumentProtoConvert() 149 assertThat(convertedGenericDocument).isEqualTo(document); in testDocumentProtoConvert() 155 GenericDocument document = in testConvertDocument_whenPropertyHasEmptyList() local 253 GenericDocumentToProtoConverter.toDocumentProto(document); in testConvertDocument_whenPropertyHasEmptyList() 255 assertThat(convertedGenericDocument).isEqualTo(document); in testConvertDocument_whenPropertyHasEmptyList() 404 GenericDocument document = in testDocumentProtoConvert_EmbeddingProperty() local 461 GenericDocumentToProtoConverter.toDocumentProto(document); in testDocumentProtoConvert_EmbeddingProperty() 464 assertThat(convertedGenericDocument).isEqualTo(document); in testDocumentProtoConvert_EmbeddingProperty()
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/util/ |
D | DocumentIdUtil.java | 50 @NonNull GenericDocument document) { in createQualifiedId() argument 52 packageName, databaseName, document.getNamespace(), document.getId()); in createQualifiedId()
|
/packages/modules/AppSearch/framework/java/android/app/appsearch/ |
D | AppSearchMigrationHelper.java | 260 GenericDocument document; in readAndTransform() local 263 document = readDocumentFromInputStream(inputStream); in readAndTransform() 271 newDocument = migrator.onUpgrade(currentVersion, finalVersion, document); in readAndTransform() 274 newDocument = migrator.onDowngrade(currentVersion, finalVersion, document); in readAndTransform() 329 @NonNull DataOutputStream outputStream, @NonNull GenericDocument document) in writeDocumentToOutputStream() argument 331 GenericDocumentParcel documentParcel = document.getDocumentParcel(); in writeDocumentToOutputStream()
|
D | SearchSessionUtil.java | 146 GenericDocument document; in createGetDocumentCallback() local 157 document = new GenericDocument(genericDocumentParcel); in createGetDocumentCallback() 165 documentResultBuilder.setSuccess(entry.getKey(), document); in createGetDocumentCallback() local
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | RenameDocumentFragment.java | 61 public static void show(FragmentManager fm, DocumentInfo document) { in show() argument 68 dialog.mDocument = document; in show() 211 protected DocumentInfo doInBackground(DocumentInfo... document) { in doInBackground() argument 212 assert(document.length == 1); in doInBackground() 214 return mActivity.getInjector().actions.renameDocument(mNewDisplayName, document[0]); in doInBackground()
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/ |
D | AppSearchImplTest.java | 495 GenericDocument document = new GenericDocument.Builder<>("namespace", "id", "type").build(); in testTriggerCheckOptimizeByMutationSize() local 499 document, in testTriggerCheckOptimizeByMutationSize() 713 GenericDocument document = in testQueryWithMultiplePackages_noPackageFilters() local 718 document, in testQueryWithMultiplePackages_noPackageFilters() 730 document = new GenericDocument.Builder<>("namespace", "id", "schema2").build(); in testQueryWithMultiplePackages_noPackageFilters() 734 document, in testQueryWithMultiplePackages_noPackageFilters() 742 assertThat(searchResultPage.getResults().get(0).getGenericDocument()).isEqualTo(document); in testQueryWithMultiplePackages_noPackageFilters() 780 GenericDocument document = in testQueryWithMultiplePackages_withPackageFilters() local 785 document, in testQueryWithMultiplePackages_withPackageFilters() 801 document = new GenericDocument.Builder<>("namespace", "id", "schema2").build(); in testQueryWithMultiplePackages_withPackageFilters() [all …]
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/usagereporting/ |
D | SearchActionGenericDocumentTest.java | 51 GenericDocument document = in testBuild_fromGenericDocument() local 59 new SearchActionGenericDocument(document); in testBuild_fromGenericDocument()
|
D | ClickActionGenericDocumentTest.java | 54 GenericDocument document = in testBuild_fromGenericDocument() local 64 new ClickActionGenericDocument.Builder(document).build(); in testBuild_fromGenericDocument()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/ |
D | AppSearchDaoTest.java | 132 GenericDocument document = in testIterateSearchResults() local 139 new SearchResult.Builder(TEST, TEST).setGenericDocument(document).build(); in testIterateSearchResults() 202 GenericDocument document = in testReadConsentData() local 209 new SearchResult.Builder(TEST, TEST).setGenericDocument(document).build(); in testReadConsentData() 275 GenericDocument document = in testReadAppSearchData() local 282 new SearchResult.Builder(TEST, TEST).setGenericDocument(document).build(); in testReadAppSearchData()
|