Home
last modified time | relevance | path

Searched refs:setSchemaResponse (Results 1 – 8 of 8) sorted by relevance

/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DInternalSetSchemaResponse.java62 @Param(id = 2) @NonNull SetSchemaResponse setSchemaResponse, in InternalSetSchemaResponse()
64 Objects.requireNonNull(setSchemaResponse); in InternalSetSchemaResponse()
66 mSetSchemaResponse = setSchemaResponse; in InternalSetSchemaResponse()
77 @NonNull SetSchemaResponse setSchemaResponse) { in newSuccessfulSetSchemaResponse()
79 /* isSuccess= */ true, setSchemaResponse, /* errorMessage= */ null); in newSuccessfulSetSchemaResponse()
90 @NonNull SetSchemaResponse setSchemaResponse, @NonNull String errorMessage) { in newFailedSetSchemaResponse()
92 /* isSuccess= */ false, setSchemaResponse, errorMessage); in newFailedSetSchemaResponse()
DSetSchemaResponse.java195 public Builder(@NonNull SetSchemaResponse setSchemaResponse) { in Builder() argument
196 Objects.requireNonNull(setSchemaResponse); in Builder()
197 mDeletedTypes.addAll(setSchemaResponse.getDeletedTypes()); in Builder()
198 mIncompatibleTypes.addAll(setSchemaResponse.getIncompatibleTypes()); in Builder()
199 mMigratedTypes.addAll(setSchemaResponse.getMigratedTypes()); in Builder()
200 mMigrationFailures.addAll(setSchemaResponse.getMigrationFailures()); in Builder()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/util/
DSchemaMigrationUtil.java85 SetSchemaResponse setSchemaResponse = internalSetSchemaResponse.getSetSchemaResponse(); in checkDeletedAndIncompatibleAfterMigration() local
87 new ArraySet<>(setSchemaResponse.getIncompatibleTypes()); in checkDeletedAndIncompatibleAfterMigration()
90 Set<String> unmigratedDeletedTypes = new ArraySet<>(setSchemaResponse.getDeletedTypes()); in checkDeletedAndIncompatibleAfterMigration()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchDao.java247 setSchemaResponse -> { in writeData()
250 if (!setSchemaResponse.getMigrationFailures().isEmpty()) { in writeData()
252 setSchemaResponse.getMigrationFailures().get(0); in writeData()
313 setSchemaResponse -> { in deleteData()
316 if (!setSchemaResponse.getMigrationFailures().isEmpty()) { in deleteData()
318 setSchemaResponse.getMigrationFailures().get(0); in deleteData()
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/
DAppSearchDaoWriter.java104 setSchemaResponse -> { in writeData()
107 if (!setSchemaResponse.getMigrationFailures().isEmpty()) { in writeData()
111 + setSchemaResponse in writeData()
/packages/modules/ExtServices/java/src/android/ext/services/common/
DAdServicesAppsearchDeleteJob.java288 SetSchemaResponse setSchemaResponse = getDeleteSchemaResponse(context, in deleteAppsearchDb() local
291 if (!setSchemaResponse.getMigrationFailures().isEmpty()) { in deleteAppsearchDb()
295 + setSchemaResponse in deleteAppsearchDb()
300 Log.d(TAG, "Delete types size " + setSchemaResponse.getDeletedTypes().size()); in deleteAppsearchDb()
301 for (String deletedType : setSchemaResponse.getDeletedTypes()) { in deleteAppsearchDb()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DAppSearchImpl.java787 SetSchemaResponse setSchemaResponse = in doSetSchemaNoChangeNotificationLocked()
793 + setSchemaResponse.getDeletedTypes() in doSetSchemaNoChangeNotificationLocked()
795 + setSchemaResponse.getIncompatibleTypes(); in doSetSchemaNoChangeNotificationLocked()
796 return newFailedSetSchemaResponse(setSchemaResponse, errorMessage); in doSetSchemaNoChangeNotificationLocked()
859 InternalSetSchemaResponse setSchemaResponse = in doSetSchemaNoChangeNotificationLocked() local
868 return setSchemaResponse; in doSetSchemaNoChangeNotificationLocked()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchImplTest.java2320 SetSchemaResponse setSchemaResponse = internalSetSchemaResponse.getSetSchemaResponse(); in testSetSchema_incompatible() local
2322 assertThat(setSchemaResponse.getDeletedTypes()).containsExactly("Text"); in testSetSchema_incompatible()
2323 assertThat(setSchemaResponse.getIncompatibleTypes()).containsExactly("Email"); in testSetSchema_incompatible()
2382 SetSchemaResponse setSchemaResponse = internalSetSchemaResponse.getSetSchemaResponse(); in testRemoveSchema() local
2384 assertThat(setSchemaResponse.getDeletedTypes()).containsExactly("Document"); in testRemoveSchema()
6940 SetSchemaResponse setSchemaResponse = internalSetSchemaResponse.getSetSchemaResponse(); in testAddObserver_schemaChange_noChangeIfIncompatible() local
6941 assertThat(setSchemaResponse.getDeletedTypes()).isEmpty(); in testAddObserver_schemaChange_noChangeIfIncompatible()
6942 assertThat(setSchemaResponse.getIncompatibleTypes()).containsExactly("Type1"); in testAddObserver_schemaChange_noChangeIfIncompatible()