/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/visibilitystore/ |
D | VisibilityCheckerImplTest.java | 37 import android.app.appsearch.InternalVisibilityConfig; 138 InternalVisibilityConfig in testSetVisibility_displayedBySystem() 139 visibilityConfig1 = new InternalVisibilityConfig.Builder(/*id=*/"prefix/Schema1") in testSetVisibility_displayedBySystem() 141 InternalVisibilityConfig in testSetVisibility_displayedBySystem() 142 visibilityConfig2 = new InternalVisibilityConfig.Builder(/*id=*/"prefix/Schema2") in testSetVisibility_displayedBySystem() 163 visibilityConfig1 = new InternalVisibilityConfig.Builder(/*id=*/"prefix/Schema1").build(); in testSetVisibility_displayedBySystem() 200 InternalVisibilityConfig in testSetVisibility_visibleToPackages() 201 visibilityConfig1 = new InternalVisibilityConfig.Builder(/*id=*/"prefix/SchemaFoo") in testSetVisibility_visibleToPackages() 203 InternalVisibilityConfig in testSetVisibility_visibleToPackages() 204 visibilityConfig2 = new InternalVisibilityConfig.Builder(/*id=*/"prefix/SchemaBar") in testSetVisibility_visibleToPackages() [all …]
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/ |
D | GetSchemaResponse.java | 63 final List<InternalVisibilityConfig> mVisibilityConfigs; 114 @Param(id = 3) @Nullable List<InternalVisibilityConfig> visibilityConfigs) { in GetSchemaResponse() 147 List<InternalVisibilityConfig> visibilityConfigs = getVisibilityConfigsOrThrow(); in getSchemaTypesNotDisplayedBySystem() 166 List<InternalVisibilityConfig> visibilityConfigs = getVisibilityConfigsOrThrow(); in getSchemaTypesVisibleToPackages() 170 InternalVisibilityConfig visibilityConfig = visibilityConfigs.get(i); in getSchemaTypesVisibleToPackages() 214 List<InternalVisibilityConfig> visibilityConfigs = getVisibilityConfigsOrThrow(); in getRequiredPermissionsForSchemaTypeVisibility() 218 InternalVisibilityConfig visibilityConfig = visibilityConfigs.get(i); in getRequiredPermissionsForSchemaTypeVisibility() 241 List<InternalVisibilityConfig> visibilityConfigs = getVisibilityConfigsOrThrow(); in getPubliclyVisibleSchemas() 245 InternalVisibilityConfig visibilityConfig = visibilityConfigs.get(i); in getPubliclyVisibleSchemas() 266 List<InternalVisibilityConfig> visibilityConfigs = getVisibilityConfigsOrThrow(); in getSchemaTypesVisibleToConfigs() [all …]
|
D | InternalVisibilityConfig.java | 44 public final class InternalVisibilityConfig extends AbstractSafeParcelable { class 46 public static final Parcelable.Creator<InternalVisibilityConfig> CREATOR = 51 public static List<InternalVisibilityConfig> toInternalVisibilityConfigs( in toInternalVisibilityConfigs() 64 List<InternalVisibilityConfig> result = new ArrayList<>(searchSchemas.size()); in toInternalVisibilityConfigs() 67 InternalVisibilityConfig.Builder builder = in toInternalVisibilityConfigs() 68 new InternalVisibilityConfig.Builder(schemaType) in toInternalVisibilityConfigs() 121 InternalVisibilityConfig( in InternalVisibilityConfig() method in InternalVisibilityConfig 178 if (!(o instanceof InternalVisibilityConfig)) { in equals() 181 InternalVisibilityConfig that = (InternalVisibilityConfig) o; in equals() 218 public Builder(@NonNull InternalVisibilityConfig internalVisibilityConfig) { in Builder() [all …]
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/visibilitystore/ |
D | VisibilityStoreTest.java | 27 import android.app.appsearch.InternalVisibilityConfig; 130 InternalVisibilityConfig visibilityConfig = in testSetAndGetVisibility() 131 new InternalVisibilityConfig.Builder(prefix + "Email") in testSetAndGetVisibility() 157 InternalVisibilityConfig visibilityConfig = in testRemoveVisibility() 158 new InternalVisibilityConfig.Builder("Email") in testRemoveVisibility() 166 InternalVisibilityConfig actualConfig = in testRemoveVisibility() 218 InternalVisibilityConfig visibilityConfig = in testRecoverBrokenVisibilitySchema() 219 new InternalVisibilityConfig.Builder(prefix + "Email") in testRecoverBrokenVisibilitySchema() 237 InternalVisibilityConfig visibilityConfig = in testSetGetAndRemoveOverlayVisibility() 238 new InternalVisibilityConfig.Builder(prefix + "Email") in testSetGetAndRemoveOverlayVisibility() [all …]
|
D | VisibilityToDocumentConverterTest.java | 23 import android.app.appsearch.InternalVisibilityConfig; 136 List<InternalVisibilityConfig> visibilityConfigs = in testToGenericDocuments() 137 InternalVisibilityConfig.toInternalVisibilityConfigs(setSchemaRequest); in testToGenericDocuments() 141 InternalVisibilityConfig visibilityConfig = visibilityConfigs.get(0); in testToGenericDocuments() 220 InternalVisibilityConfig visibilityConfig = in testToVisibilityConfig() 237 InternalVisibilityConfig.Builder builder = in testToVisibilityConfig() 238 new InternalVisibilityConfig.Builder(visibilityConfig); in testToVisibilityConfig() 239 InternalVisibilityConfig rebuild = builder.build(); in testToVisibilityConfig() 242 InternalVisibilityConfig modifiedConfig = in testToVisibilityConfig() 331 List<InternalVisibilityConfig> visibilityConfigs = in testToGenericDocumentAndBack() [all …]
|
D | VisibilityStoreMigrationFromV2Test.java | 27 import android.app.appsearch.InternalVisibilityConfig; 129 InternalVisibilityConfig visibilityConfigV2 = in testVisibilityMigration_from2() 130 new InternalVisibilityConfig.Builder(prefix + "Schema") in testVisibilityMigration_from2() 177 InternalVisibilityConfig actualConfig = in testVisibilityMigration_from2()
|
D | VisibilityStoreMigrationHelperFromV0Test.java | 32 import android.app.appsearch.InternalVisibilityConfig; 171 new InternalVisibilityConfig.Builder(prefix + "Schema1") in testVisibilityMigration_from0() 178 new InternalVisibilityConfig.Builder(prefix + "Schema2") in testVisibilityMigration_from0()
|
D | VisibilityStoreMigrationHelperFromV1Test.java | 26 import android.app.appsearch.InternalVisibilityConfig; 143 InternalVisibilityConfig actualConfig = in testVisibilityMigration_from1()
|
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/ |
D | InternalVisibilityConfigTest.java | 31 InternalVisibilityConfig visibilityConfig = in testVisibilityConfig_setNotDisplayBySystem() 32 new InternalVisibilityConfig.Builder("schema") in testVisibilityConfig_setNotDisplayBySystem() 59 InternalVisibilityConfig visibilityConfig = in testVisibilityConfig_setVisibilityConfig() 60 new InternalVisibilityConfig.Builder("schema") in testVisibilityConfig_setVisibilityConfig() 92 List<InternalVisibilityConfig> visibilityConfigs = in testToInternalVisibilityConfig() 93 InternalVisibilityConfig.toInternalVisibilityConfigs(setSchemaRequest); in testToInternalVisibilityConfig() 97 InternalVisibilityConfig visibilityConfig = visibilityConfigs.get(0); in testToInternalVisibilityConfig()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/ |
D | VisibilityStore.java | 27 import android.app.appsearch.InternalVisibilityConfig; 80 private final Map<String, InternalVisibilityConfig> mVisibilityConfigMap = new ArrayMap<>(); 139 public void setVisibility(@NonNull List<InternalVisibilityConfig> prefixedVisibilityConfigs) in setVisibility() 147 InternalVisibilityConfig prefixedVisibilityConfig = prefixedVisibilityConfigs.get(i); in setVisibility() 148 InternalVisibilityConfig oldVisibilityConfig = in setVisibility() 254 public InternalVisibilityConfig getVisibility(@NonNull String prefixedSchemaType) { in getVisibility() 323 @NonNull List<InternalVisibilityConfig> migratedDocuments) in setLatestSchemaAndDocuments() 364 InternalVisibilityConfig migratedConfig = migratedDocuments.get(i); in setLatestSchemaAndDocuments() 535 @Nullable InternalVisibilityConfig config) { in isConfigContainsAndroidVOverlay()
|
D | VisibilityStoreMigrationHelperFromV1.java | 21 import android.app.appsearch.InternalVisibilityConfig; 93 static List<InternalVisibilityConfig> toVisibilityDocumentsV2( in toVisibilityDocumentsV2() 95 List<InternalVisibilityConfig> latestVisibilityDocuments = in toVisibilityDocumentsV2() 122 InternalVisibilityConfig.Builder latestVisibilityDocumentBuilder = in toVisibilityDocumentsV2() 123 new InternalVisibilityConfig.Builder(visibilityDocumentV1.getId()) in toVisibilityDocumentsV2()
|
D | VisibilityToDocumentConverter.java | 23 import android.app.appsearch.InternalVisibilityConfig; 186 public static InternalVisibilityConfig createInternalVisibilityConfig( in createInternalVisibilityConfig() 213 InternalVisibilityConfig.Builder builder = in createInternalVisibilityConfig() 214 new InternalVisibilityConfig.Builder(schemaType) in createInternalVisibilityConfig() 360 @NonNull InternalVisibilityConfig config) { in createVisibilityDocument() 408 @NonNull InternalVisibilityConfig internalVisibilityConfig) { in createAndroidVOverlay()
|
/packages/modules/AppSearch/framework/java/android/app/appsearch/aidl/ |
D | SetSchemaAidlRequest.java | 23 import android.app.appsearch.InternalVisibilityConfig; 59 private final List<InternalVisibilityConfig> mVisibilityConfigs; 99 @Param(id = 4) @NonNull List<InternalVisibilityConfig> visibilityConfigs, in SetSchemaAidlRequest() 132 public List<InternalVisibilityConfig> getVisibilityConfigs() { in getVisibilityConfigs()
|
D | IAppSearchManager.aidl | 50 import android.app.appsearch.InternalVisibilityConfig;
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/ |
D | AppSearchImplTest.java | 39 import android.app.appsearch.InternalVisibilityConfig; 2597 InternalVisibilityConfig visibilityConfig = in testPrunePackageData() 2598 new InternalVisibilityConfig.Builder("schema") in testPrunePackageData() 2648 InternalVisibilityConfig expectedVisibilityConfigA = in testPrunePackageData() 2649 new InternalVisibilityConfig.Builder("packageA$database/schema") in testPrunePackageData() 2653 InternalVisibilityConfig expectedVisibilityConfigB = in testPrunePackageData() 2654 new InternalVisibilityConfig.Builder("packageB$database/schema") in testPrunePackageData() 4906 InternalVisibilityConfig visibilityConfig = in testSetVisibility() 4907 new InternalVisibilityConfig.Builder("Email") in testSetVisibility() 4928 InternalVisibilityConfig expectedDocument = in testSetVisibility() [all …]
|
/packages/modules/AppSearch/framework/java/android/app/appsearch/ |
D | InternalVisibilityConfig.aidl | 19 parcelable InternalVisibilityConfig;
|
D | AppSearchSession.java | 215 List<InternalVisibilityConfig> visibilityConfigs = in setSchema() 216 InternalVisibilityConfig.toInternalVisibilityConfigs(request); in setSchema() 915 @NonNull List<InternalVisibilityConfig> visibilityConfigs, in setSchemaNoMigrations() 1012 @NonNull List<InternalVisibilityConfig> visibilityConfigs, in setSchemaWithMigrations()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/visibilitystore/ |
D | VisibilityCheckerImpl.java | 29 import android.app.appsearch.InternalVisibilityConfig; 86 InternalVisibilityConfig internalVisibilityConfig = in isSchemaSearchableByCaller()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/ |
D | AppSearchImpl.java | 39 import android.app.appsearch.InternalVisibilityConfig; 494 @NonNull List<InternalVisibilityConfig> visibilityConfigs, in setSchema() 545 @NonNull List<InternalVisibilityConfig> visibilityConfigs, in doSetSchemaWithChangeNotificationLocked() 730 @NonNull List<InternalVisibilityConfig> visibilityConfigs, in doSetSchemaNoChangeNotificationLocked() 823 List<InternalVisibilityConfig> prefixedVisibilityConfigs = in doSetSchemaNoChangeNotificationLocked() 826 InternalVisibilityConfig visibilityConfig = visibilityConfigs.get(i); in doSetSchemaNoChangeNotificationLocked() 837 new InternalVisibilityConfig.Builder(visibilityConfig) in doSetSchemaNoChangeNotificationLocked() 927 InternalVisibilityConfig visibilityConfig = in getSchema()
|