Home
last modified time | relevance | path

Searched refs:SetSchemaRequest (Results 1 – 25 of 41) sorted by relevance

12

/packages/modules/AppSearch/service/java/com/android/server/appsearch/visibilitystore/
DVisibilityCheckerImpl.java32 import android.app.appsearch.SetSchemaRequest;
308 allRequiredPermissions.contains(SetSchemaRequest.ENTERPRISE_ACCESS); in doesCallerHoldsAllRequiredPermissions()
315 case SetSchemaRequest.READ_SMS: in doesCallerHoldsAllRequiredPermissions()
316 case SetSchemaRequest.READ_CALENDAR: in doesCallerHoldsAllRequiredPermissions()
317 case SetSchemaRequest.READ_CONTACTS: in doesCallerHoldsAllRequiredPermissions()
318 case SetSchemaRequest.READ_EXTERNAL_STORAGE: in doesCallerHoldsAllRequiredPermissions()
319 case SetSchemaRequest.READ_HOME_APP_SEARCH_DATA: in doesCallerHoldsAllRequiredPermissions()
320 case SetSchemaRequest.READ_ASSISTANT_APP_SEARCH_DATA: in doesCallerHoldsAllRequiredPermissions()
327 case SetSchemaRequest.MANAGED_PROFILE_CONTACTS_ACCESS: in doesCallerHoldsAllRequiredPermissions()
339 case SetSchemaRequest.ENTERPRISE_ACCESS: in doesCallerHoldsAllRequiredPermissions()
[all …]
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DAppSearchHelperTest.java38 import android.app.appsearch.SetSchemaRequest;
118 SetSchemaRequest setSchemaRequest = new SetSchemaRequest.Builder() in tearDown()
140 ImmutableSet.of(Collections.singleton(SetSchemaRequest.READ_CONTACTS), in testAppSearchHelper_permissionIsSetCorrectlyForPerson()
141 ImmutableSet.of(SetSchemaRequest.READ_CONTACTS, ENTERPRISE_ACCESS, in testAppSearchHelper_permissionIsSetCorrectlyForPerson()
157 SetSchemaRequest setSchemaRequest = new SetSchemaRequest.Builder() in testIndexContacts_shouldCompleteNormallyOnError()
172 SetSchemaRequest setSchemaRequest = new SetSchemaRequest.Builder() in testIndexContacts_shouldNotCompleteNormallyOnError()
278 SetSchemaRequest setSchemaRequest = new SetSchemaRequest.Builder() in testCreateAppSearchHelper_compatibleSchemaChange2()
294 SetSchemaRequest setSchemaRequest = new SetSchemaRequest.Builder() in testCreateAppSearchHelper_incompatibleSchemaChange()
343 SetSchemaRequest setSchemaRequest = new SetSchemaRequest.Builder() in testPersonSchema_indexFirstMiddleAndLastNames()
393 SetSchemaRequest setSchemaRequest = new SetSchemaRequest.Builder() in testPersonSchema_indexFullNameOnly()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityStoreMigrationFromV2Test.java29 import android.app.appsearch.SetSchemaRequest;
136 SetSchemaRequest.READ_SMS, SetSchemaRequest.READ_CALENDAR)) in testVisibilityMigration_from2()
138 ImmutableSet.of(SetSchemaRequest.READ_ASSISTANT_APP_SEARCH_DATA)) in testVisibilityMigration_from2()
140 ImmutableSet.of(SetSchemaRequest.READ_HOME_APP_SEARCH_DATA)) in testVisibilityMigration_from2()
194 SetSchemaRequest.READ_SMS, SetSchemaRequest.READ_CALENDAR), in testVisibilityMigration_from2()
195 ImmutableSet.of(SetSchemaRequest.READ_HOME_APP_SEARCH_DATA), in testVisibilityMigration_from2()
196 ImmutableSet.of(SetSchemaRequest.READ_ASSISTANT_APP_SEARCH_DATA))); in testVisibilityMigration_from2()
DVisibilityStoreMigrationHelperFromV1Test.java28 import android.app.appsearch.SetSchemaRequest;
108 SetSchemaRequest.READ_SMS, SetSchemaRequest.READ_CALENDAR)) in testVisibilityMigration_from1()
160 SetSchemaRequest.READ_SMS, SetSchemaRequest.READ_CALENDAR), in testVisibilityMigration_from1()
161 ImmutableSet.of(SetSchemaRequest.READ_HOME_APP_SEARCH_DATA), in testVisibilityMigration_from1()
162 ImmutableSet.of(SetSchemaRequest.READ_ASSISTANT_APP_SEARCH_DATA))); in testVisibilityMigration_from1()
DVisibilityToDocumentConverterTest.java26 import android.app.appsearch.SetSchemaRequest;
62 SetSchemaRequest setSchemaRequest = in testToGenericDocuments()
63 new SetSchemaRequest.Builder() in testToGenericDocuments()
247 SetSchemaRequest.READ_SMS, SetSchemaRequest.READ_CALENDAR)) in testToVisibilityConfig()
313 SetSchemaRequest setSchemaRequest = in testToGenericDocumentAndBack()
314 new SetSchemaRequest.Builder() in testToGenericDocumentAndBack()
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchDaoTest.java40 import androidx.appsearch.app.SetSchemaRequest;
299 verify(mockSession, atMost(1)).setSchemaAsync(any(SetSchemaRequest.class)); in testWriteConsentData_failure()
302 when(mockSession.setSchemaAsync(any(SetSchemaRequest.class))) in testWriteConsentData_failure()
344 verify(mockSession, atMost(1)).setSchemaAsync(any(SetSchemaRequest.class)); in testWriteConsentData()
347 when(mockSession.setSchemaAsync(any(SetSchemaRequest.class))) in testWriteConsentData()
370 verify(mockSession, atMost(1)).setSchemaAsync(any(SetSchemaRequest.class)); in testWriteConsentData_timeout()
373 when(mockSession.setSchemaAsync(any(SetSchemaRequest.class))) in testWriteConsentData_timeout()
401 verify(mockSession, atMost(1)).setSchemaAsync(any(SetSchemaRequest.class)); in testDeleteConsentData_failure()
404 when(mockSession.setSchemaAsync(any(SetSchemaRequest.class))) in testDeleteConsentData_failure()
448 verify(mockSession, atMost(1)).setSchemaAsync(any(SetSchemaRequest.class)); in testDeleteConsentData()
[all …]
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/
DAppSearchDaoWriter.java27 import androidx.appsearch.app.SetSchemaRequest;
88 SetSchemaRequest.Builder setSchemaRequestBuilder = new SetSchemaRequest.Builder(); in writeData()
96 SetSchemaRequest setSchemaRequest = setSchemaRequestBuilder.build(); in writeData()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/
DAppSearchSessionInternalTestBase.java74 mDb1.setSchemaAsync(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in cleanup()
103 SetSchemaRequest request = new SetSchemaRequest.Builder().addSchemas(inSchema).build(); in testGetSchema_joinableValueType()
139 new SetSchemaRequest.Builder() in testQuery_typeFilterWithPolymorphism()
256 new SetSchemaRequest.Builder() in testQuery_projectionWithPolymorphism()
360 new SetSchemaRequest.Builder() in testQuery_projectionWithPolymorphismAndSchemaFilter()
462 new SetSchemaRequest.Builder() in testQuery_indexBasedOnParentTypePolymorphism()
538 new SetSchemaRequest.Builder() in testQuery_parentTypeListIsTopologicalOrder()
636 new SetSchemaRequest.Builder() in testQuery_wildcardProjection_polymorphism()
745 new SetSchemaRequest.Builder() in testQuery_wildcardFilterSchema_polymorphism()
DInternalVisibilityConfigTest.java78 SetSchemaRequest setSchemaRequest = in testToInternalVisibilityConfig()
79 new SetSchemaRequest.Builder() in testToInternalVisibilityConfig()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchDao.java35 import androidx.appsearch.app.SetSchemaRequest;
233 SetSchemaRequest.Builder setSchemaRequestBuilder = new SetSchemaRequest.Builder(); in writeData()
239 SetSchemaRequest setSchemaRequest = setSchemaRequestBuilder.build(); in writeData()
304 SetSchemaRequest setSchemaRequest = in deleteData()
305 new SetSchemaRequest.Builder().addDocumentClasses(cls).build(); in deleteData()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/
DAppSearchHelper.java34 import android.app.appsearch.SetSchemaRequest;
223 SetSchemaRequest.Builder schemaBuilder = in setPersonSchemaAsync()
224 new SetSchemaRequest.Builder() in setPersonSchemaAsync()
228 Collections.singleton(SetSchemaRequest.READ_CONTACTS)) in setPersonSchemaAsync()
238 SetSchemaRequest.ENTERPRISE_ACCESS, in setPersonSchemaAsync()
239 SetSchemaRequest.READ_CONTACTS, in setPersonSchemaAsync()
240 SetSchemaRequest.MANAGED_PROFILE_CONTACTS_ACCESS))) in setPersonSchemaAsync()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/
DAppSearchSessionUnitTest.java57 new SetSchemaRequest.Builder().setForceOverride(true).build(), mExecutor, mExecutor, in setUp()
69 new SetSchemaRequest.Builder() in testGetEmptyNextPage()
122 new SetSchemaRequest.Builder() in testGetEmptyNextPage_multiPages()
193 new SetSchemaRequest.Builder() in testClosedCallbackExecutor()
DAppSearchSessionInternalTest.java91 new SetSchemaRequest.Builder() in testQuery_typeFilterWithPolymorphism()
210 new SetSchemaRequest.Builder() in testQuery_projectionWithPolymorphism()
311 new SetSchemaRequest.Builder() in testQuery_indexBasedOnParentTypePolymorphism()
388 new SetSchemaRequest.Builder() in testQuery_parentTypeListIsTopologicalOrder()
487 new SetSchemaRequest.Builder() in testQuery_wildcardProjection_polymorphism()
597 new SetSchemaRequest.Builder() in testQuery_wildcardFilterSchema_polymorphism()
699 new SetSchemaRequest.Builder() in testQuery_projectionWithPolymorphismAndSchemaFilter()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityStoreMigrationHelperFromV1.java23 import android.app.appsearch.SetSchemaRequest;
106 visibleToPermission.add(SetSchemaRequest.READ_HOME_APP_SEARCH_DATA); in toVisibilityDocumentsV2()
110 SetSchemaRequest.READ_ASSISTANT_APP_SEARCH_DATA); in toVisibilityDocumentsV2()
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DAppSearchHelperTest.java44 import android.app.appsearch.SetSchemaRequest;
122 SetSchemaRequest setSchemaRequest = in testIndexApps_compatibleSchemaChange()
123 new SetSchemaRequest.Builder() in testIndexApps_compatibleSchemaChange()
150 SetSchemaRequest setSchemaRequest = in testIndexApps_incompatibleSchemaChange()
151 new SetSchemaRequest.Builder() in testIndexApps_incompatibleSchemaChange()
DAppsIndexerRealDocumentsTest.java39 import android.app.appsearch.SetSchemaRequest;
69 db.setSchemaAsync(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in tearDown()
170 db.setSchemaAsync(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in testRealIndexing()
DSyncAppSearchImplTest.java33 import android.app.appsearch.SetSchemaRequest;
79 new SetSchemaRequest.Builder().setForceOverride(true).build(), mExecutor, mExecutor, in clean()
93 syncWrapper.setSchema(new SetSchemaRequest.Builder() in testSynchronousMethods()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/visibilitystore/
DVisibilityCheckerImplTest.java39 import android.app.appsearch.SetSchemaRequest;
495 .addVisibleToPermissions(ImmutableSet.of(SetSchemaRequest.READ_SMS)) in testSetSchema_visibleToPermissions()
530 .addVisibleToPermissions(ImmutableSet.of(SetSchemaRequest.READ_SMS)) in testSetSchema_enterpriseNotVisibleToPermissions_withoutEnterpriseAccessPermission()
558 ImmutableSet.of(SetSchemaRequest.READ_SMS, ENTERPRISE_ACCESS)) in testSetSchema_enterpriseVisibleToPermissions_withEnterpriseAccessPermission()
712 ImmutableSet.of(SetSchemaRequest.READ_SMS, SetSchemaRequest.READ_CALENDAR)) in testSetSchema_visibleToPermissions_anyCombinations()
713 .addVisibleToPermissions(ImmutableSet.of(SetSchemaRequest.READ_CONTACTS)) in testSetSchema_visibleToPermissions_anyCombinations()
714 .addVisibleToPermissions(ImmutableSet.of(SetSchemaRequest.READ_EXTERNAL_STORAGE)) in testSetSchema_visibleToPermissions_anyCombinations()
831 ImmutableSet.of(SetSchemaRequest.READ_SMS, SetSchemaRequest.READ_CALENDAR)) in testSetSchema_visibleToPermissions_needAllPermissions()
/packages/modules/AppSearch/framework/api/
Dlint-baseline.txt6 RequiresPermission: android.app.appsearch.SetSchemaRequest#getRequiredPermissionsForSchemaTypeVisib…
8 RequiresPermission: android.app.appsearch.SetSchemaRequest.Builder#addRequiredPermissionsForSchemaT…
Dmodule-lib-lint-baseline.txt6 RequiresPermission: android.app.appsearch.SetSchemaRequest#getRequiredPermissionsForSchemaTypeVisib…
8 RequiresPermission: android.app.appsearch.SetSchemaRequest.Builder#addRequiredPermissionsForSchemaT…
Dsystem-lint-baseline.txt6 RequiresPermission: android.app.appsearch.SetSchemaRequest#getRequiredPermissionsForSchemaTypeVisib…
8 RequiresPermission: android.app.appsearch.SetSchemaRequest.Builder#addRequiredPermissionsForSchemaT…
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/
DSyncAppSearchSession.java25 import android.app.appsearch.SetSchemaRequest;
44 SetSchemaResponse setSchema(@NonNull SetSchemaRequest setSchemaRequest) in setSchema()
DAppSearchHelper.java30 import android.app.appsearch.SetSchemaRequest;
135 SetSchemaRequest.Builder schemaBuilder = in setSchemasForPackages()
136 new SetSchemaRequest.Builder() in setSchemasForPackages()
DSyncAppSearchSessionImpl.java24 import android.app.appsearch.SetSchemaRequest;
62 public SetSchemaResponse setSchema(@NonNull SetSchemaRequest setSchemaRequest) in setSchema()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DSetSchemaRequest.java90 public final class SetSchemaRequest { class
180 SetSchemaRequest( in SetSchemaRequest() method in SetSchemaRequest
744 public SetSchemaRequest build() { in build()
768 return new SetSchemaRequest( in build()

12