Home
last modified time | relevance | path

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

/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DInternalSetSchemaResponse.java61 @Param(id = 2) @NonNull SetSchemaResponse setSchemaResponse, in InternalSetSchemaResponse()
63 Objects.requireNonNull(setSchemaResponse); in InternalSetSchemaResponse()
65 mSetSchemaResponse = setSchemaResponse; in InternalSetSchemaResponse()
75 @NonNull SetSchemaResponse setSchemaResponse) { in newSuccessfulSetSchemaResponse()
77 /* isSuccess= */ true, setSchemaResponse, /* errorMessage= */ null); in newSuccessfulSetSchemaResponse()
87 @NonNull SetSchemaResponse setSchemaResponse, @NonNull String errorMessage) { in newFailedSetSchemaResponse()
89 /* isSuccess= */ false, setSchemaResponse, errorMessage); in newFailedSetSchemaResponse()
DSetSchemaResponse.java191 public Builder(@NonNull SetSchemaResponse setSchemaResponse) { in Builder() argument
192 Objects.requireNonNull(setSchemaResponse); in Builder()
193 mDeletedTypes.addAll(setSchemaResponse.getDeletedTypes()); in Builder()
194 mIncompatibleTypes.addAll(setSchemaResponse.getIncompatibleTypes()); in Builder()
195 mMigratedTypes.addAll(setSchemaResponse.getMigratedTypes()); in Builder()
196 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/ExtServices/java/tests/src/android/ext/services/common/
DAdServicesAppsearchDeleteJobTest.java141 SetSchemaResponse setSchemaResponse = in deleteAppsearchDb_onMigrationfailure_shouldBeFalse() local
148 doReturn(setSchemaResponse).when(mAdServicesAppsearchDeleteJob).getDeleteSchemaResponse( in deleteAppsearchDb_onMigrationfailure_shouldBeFalse()
168 SetSchemaResponse setSchemaResponse = in deleteAppsearchDb_onSuccess_shouldBeTrue() local
171 doReturn(setSchemaResponse).when(mAdServicesAppsearchDeleteJob).getDeleteSchemaResponse( in deleteAppsearchDb_onSuccess_shouldBeTrue()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DAppSearchImpl.java863 SetSchemaResponse setSchemaResponse = in doSetSchemaNoChangeNotificationLocked()
869 + setSchemaResponse.getDeletedTypes() in doSetSchemaNoChangeNotificationLocked()
871 + setSchemaResponse.getIncompatibleTypes(); in doSetSchemaNoChangeNotificationLocked()
872 return newFailedSetSchemaResponse(setSchemaResponse, errorMessage); in doSetSchemaNoChangeNotificationLocked()
918 InternalSetSchemaResponse setSchemaResponse = in doSetSchemaNoChangeNotificationLocked() local
927 return setSchemaResponse; in doSetSchemaNoChangeNotificationLocked()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchImplTest.java2507 SetSchemaResponse setSchemaResponse = internalSetSchemaResponse.getSetSchemaResponse(); in testSetSchema_incompatible() local
2509 assertThat(setSchemaResponse.getDeletedTypes()).containsExactly("Text"); in testSetSchema_incompatible()
2510 assertThat(setSchemaResponse.getIncompatibleTypes()).containsExactly("Email"); in testSetSchema_incompatible()
2569 SetSchemaResponse setSchemaResponse = internalSetSchemaResponse.getSetSchemaResponse(); in testRemoveSchema() local
2571 assertThat(setSchemaResponse.getDeletedTypes()).containsExactly("Document"); in testRemoveSchema()
10051 SetSchemaResponse setSchemaResponse = internalSetSchemaResponse.getSetSchemaResponse(); in testAddObserver_schemaChange_noChangeIfIncompatible() local
10052 assertThat(setSchemaResponse.getDeletedTypes()).isEmpty(); in testAddObserver_schemaChange_noChangeIfIncompatible()
10053 assertThat(setSchemaResponse.getIncompatibleTypes()).containsExactly("Type1"); in testAddObserver_schemaChange_noChangeIfIncompatible()