Home
last modified time | relevance | path

Searched refs:AppSearchException (Results 1 – 25 of 49) sorted by relevance

12

/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityStore.java32 import android.app.appsearch.exceptions.AppSearchException;
84 public VisibilityStore(@NonNull AppSearchImpl appSearchImpl) throws AppSearchException { in VisibilityStore()
125 throw new AppSearchException( in VisibilityStore()
140 throws AppSearchException { in setVisibility()
180 } catch (AppSearchException e) { in setVisibility()
201 throws AppSearchException { in removeVisibility()
213 } catch (AppSearchException e) { in removeVisibility()
234 } catch (AppSearchException e) { in removeVisibility()
264 throws AppSearchException { in loadVisibilityConfigMap()
285 } catch (AppSearchException e) { in loadVisibilityConfigMap()
[all …]
DVisibilityStoreMigrationHelperFromV1.java24 import android.app.appsearch.exceptions.AppSearchException;
53 @NonNull AppSearchImpl appSearchImpl) throws AppSearchException { in getVisibilityDocumentsInVersion1()
72 } catch (AppSearchException e) { in getVisibilityDocumentsInVersion1()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/util/
DPrefixUtilTest.java23 import android.app.appsearch.exceptions.AppSearchException;
84 public void testRemovePrefix() throws AppSearchException { in testRemovePrefix()
91 AppSearchException e = in testRemovePrefix_missingDelimiter()
92 assertThrows(AppSearchException.class, () -> PrefixUtil.removePrefix("foo$bar")); in testRemovePrefix_missingDelimiter()
97 e = assertThrows(AppSearchException.class, () -> PrefixUtil.removePrefix("foo")); in testRemovePrefix_missingDelimiter()
104 public void testGetPrefix() throws AppSearchException { in testGetPrefix()
111 AppSearchException e = in testGetPrefix_missingDelimiter()
112 assertThrows(AppSearchException.class, () -> PrefixUtil.getPrefix("foo$bar")); in testGetPrefix_missingDelimiter()
117 e = assertThrows(AppSearchException.class, () -> PrefixUtil.getPrefix("foo")); in testGetPrefix_missingDelimiter()
157 public void testRemovePrefixesFromDocument() throws AppSearchException { in testRemovePrefixesFromDocument()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/
DSyncAppSearchBase.java23 import android.app.appsearch.exceptions.AppSearchException;
40 Consumer<Consumer<AppSearchResult<T>>> operation) throws AppSearchException { in executeAppSearchResultOperation()
53 throw new AppSearchException(result.getResultCode(), result.getErrorMessage()); in executeAppSearchResultOperation()
59 throw new AppSearchException( in executeAppSearchResultOperation()
62 throw new AppSearchException( in executeAppSearchResultOperation()
70 Consumer<BatchResultCallback<T, V>> operation) throws AppSearchException { in executeAppSearchBatchResultOperation()
95 throw new AppSearchException( in executeAppSearchBatchResultOperation()
98 throw new AppSearchException( in executeAppSearchBatchResultOperation()
DAppSearchHelper.java31 import android.app.appsearch.exceptions.AppSearchException;
82 throws AppSearchException { in createAppSearchHelper()
110 private void initializeAppSearchSessions() throws AppSearchException { in initializeAppSearchSessions()
133 throws AppSearchException { in setSchemasForPackages()
169 public void indexApps(@NonNull List<MobileApplication> apps) throws AppSearchException { in indexApps()
183 throw new AppSearchException( in indexApps()
234 } catch (AppSearchException e) { in collectUpdatedTimestampFromAllPages()
DSyncAppSearchSessionImpl.java26 import android.app.appsearch.exceptions.AppSearchException;
39 throws AppSearchException { in SyncAppSearchSessionImpl()
63 throws AppSearchException { in setSchema()
75 throws AppSearchException { in put()
DAppsIndexerImpl.java21 import android.app.appsearch.exceptions.AppSearchException;
52 public AppsIndexerImpl(@NonNull Context context) throws AppSearchException { in AppsIndexerImpl()
67 public void doUpdate(@NonNull AppsIndexerSettings settings) throws AppSearchException { in doUpdate()
131 } catch (AppSearchException e) { in doUpdate()
DSyncAppSearchSession.java27 import android.app.appsearch.exceptions.AppSearchException;
45 throws AppSearchException; in setSchema()
54 throws AppSearchException; in put()
DAppsIndexerUserInstance.java23 import android.app.appsearch.exceptions.AppSearchException;
93 throws AppSearchException { in createInstance()
110 throws AppSearchException { in createInstance()
217 } catch (AppSearchException e) { in doUpdate()
DSyncSearchResults.java21 import android.app.appsearch.exceptions.AppSearchException;
38 List<SearchResult> getNextPage() throws AppSearchException; in getNextPage()
DSyncSearchResultsImpl.java21 import android.app.appsearch.exceptions.AppSearchException;
37 public List<SearchResult> getNextPage() throws AppSearchException { in getNextPage()
DSyncGlobalSearchSessionImpl.java22 import android.app.appsearch.exceptions.AppSearchException;
34 throws AppSearchException { in SyncGlobalSearchSessionImpl()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/util/
DPrefixUtil.java21 import android.app.appsearch.exceptions.AppSearchException;
108 public static String removePrefix(@NonNull String prefixedString) throws AppSearchException { in removePrefix()
113 throw new AppSearchException( in removePrefix()
132 public static String getPrefix(@NonNull String prefixedString) throws AppSearchException { in getPrefix()
135 throw new AppSearchException( in getPrefix()
190 throws AppSearchException { in removePrefixesFromDocument()
196 throw new AppSearchException( in removePrefixesFromDocument()
221 throw new AppSearchException( in removePrefixesFromDocument()
246 @NonNull SchemaTypeConfigProto.Builder typeConfigBuilder) throws AppSearchException { in removePrefixesFromSchemaType()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DAppSearchImpl.java49 import android.app.appsearch.exceptions.AppSearchException;
271 throws AppSearchException { in create()
285 throws AppSearchException { in AppSearchImpl()
409 } catch (AppSearchException e) { in AppSearchImpl()
457 } catch (AppSearchException e) { in close()
498 throws AppSearchException { in setSchema()
549 throws AppSearchException { in doSetSchemaWithChangeNotificationLocked()
734 throws AppSearchException { in doSetSchemaNoChangeNotificationLocked()
780 } catch (AppSearchException e) { in doSetSchemaNoChangeNotificationLocked()
886 throws AppSearchException { in getSchema()
[all …]
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/exceptions/
DAppSearchException.java29 public class AppSearchException extends Exception { class
37 public AppSearchException(@AppSearchResult.ResultCode int resultCode) { in AppSearchException() method in AppSearchException
48 public AppSearchException( in AppSearchException() method in AppSearchException
63 public AppSearchException( in AppSearchException() method in AppSearchException
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DAppSearchResult.java22 import android.app.appsearch.exceptions.AppSearchException;
249 if (t instanceof AppSearchException in throwableToFailedResult()
250 && ((AppSearchException) t).getResultCode() == RESULT_NOT_FOUND) { in throwableToFailedResult()
258 if (t instanceof AppSearchException) { in throwableToFailedResult()
259 return ((AppSearchException) t).toAppSearchResult(); in throwableToFailedResult()
DPutDocumentsRequest.java23 import android.app.appsearch.exceptions.AppSearchException;
176 @NonNull GenericDocument... takenActionGenericDocuments) throws AppSearchException { in addTakenActionGenericDocuments()
195 throws AppSearchException { in addTakenActionGenericDocuments()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityStoreTest.java31 import android.app.appsearch.exceptions.AppSearchException;
180 AppSearchException e = in testRemoveVisibility()
182 AppSearchException.class, in testRemoveVisibility()
263 AppSearchException e = in testSetGetAndRemoveOverlayVisibility()
265 AppSearchException.class, in testSetGetAndRemoveOverlayVisibility()
351 AppSearchException e = in testSetVisibility_removeOverlay_publicAcl()
353 AppSearchException.class, in testSetVisibility_removeOverlay_publicAcl()
391 AppSearchException e = in testSetVisibility_removeOverlay_visibleToConfig()
393 AppSearchException.class, in testSetVisibility_removeOverlay_visibleToConfig()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchImplTest.java49 import android.app.appsearch.exceptions.AppSearchException;
447 AppSearchException e = in testRemoveDatabasesFromDocumentThrowsException()
449 AppSearchException.class, () -> removePrefixesFromDocument(actualDocument)); in testRemoveDatabasesFromDocumentThrowsException()
472 AppSearchException e = in testNestedRemoveDatabasesFromDocumentThrowsException()
474 AppSearchException.class, () -> removePrefixesFromDocument(actualDocument)); in testNestedRemoveDatabasesFromDocumentThrowsException()
578 AppSearchException e = in testReset()
580 AppSearchException.class, in testReset()
1624 AppSearchException e = in testSearchSuggestion_emptyPrefix()
1626 AppSearchException.class, in testSearchSuggestion_emptyPrefix()
1745 AppSearchException e = in testGetNextPageWithDifferentPackage_query()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/
DSearchResultToProtoConverter.java28 import android.app.appsearch.exceptions.AppSearchException;
63 throws AppSearchException { in toSearchResultPage()
86 throws AppSearchException { in toUnprefixedSearchResult()
116 throw new AppSearchException( in toUnprefixedSearchResult()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/util/
DSchemaMigrationUtil.java26 import android.app.appsearch.exceptions.AppSearchException;
81 throws AppSearchException { in checkDeletedAndIncompatibleAfterMigration()
99 throw new AppSearchException( in checkDeletedAndIncompatibleAfterMigration()
/packages/modules/AppSearch/framework/java/android/app/appsearch/
DAppSearchMigrationHelper.java33 import android.app.appsearch.exceptions.AppSearchException;
137 throws IOException, AppSearchException, InterruptedException, ExecutionException { in queryAndTransform()
169 throw new AppSearchException(result.getResultCode(), result.getErrorMessage()); in queryAndTransform()
255 throws IOException, AppSearchException { in readAndTransform()
283 throw new AppSearchException( in readAndTransform()
DGlobalSearchSession.java32 import android.app.appsearch.exceptions.AppSearchException;
269 throws AppSearchException { in registerObserverCallback()
362 throw new AppSearchException(result.getResultCode(), result.getErrorMessage()); in registerObserverCallback()
395 throws AppSearchException { in unregisterObserverCallback()
429 throw new AppSearchException(result.getResultCode(), result.getErrorMessage()); in unregisterObserverCallback()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/
DAppSearchManagerService.java82 import android.app.appsearch.exceptions.AppSearchException;
338 } catch (AppSearchException | RuntimeException e) { in handlePackageRemoved()
374 } catch (AppSearchException | RuntimeException e) { in onUserUnlocking()
420 public void doFullyPersistForUser(@UserIdInt int userId) throws AppSearchException { in doFullyPersistForUser()
508 } catch (AppSearchException | RuntimeException e) { in setSchema()
607 } catch (AppSearchException | RuntimeException e) { in getSchema()
678 } catch (AppSearchException | RuntimeException e) { in getNamespaces()
764 } catch (AppSearchException | RuntimeException e) { in putDocuments()
794 } catch (AppSearchException | RuntimeException e) { in putDocuments()
822 } catch (AppSearchException | RuntimeException e) { in putDocuments()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/
DAppSearchHelper.java35 import android.app.appsearch.exceptions.AppSearchException;
200 new AppSearchException( in createAppSearchSessionAsync()
257 new AppSearchException( in setPersonSchemaAsync()
372 new AppSearchException( in indexContactsAsync()
472 new AppSearchException( in removeContactsByIdAsync()
632 new AppSearchException(

12