Merge "Annotate AppSearchManager APIs with @UserHandleAware" into sc-dev am: e952eaa29d am: 2e4f943008

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14706099

Change-Id: I5008c77132ec4b8f6732d04aa8871d658b78e37f
This commit is contained in:
TreeHugger Robot
2021-05-28 03:05:59 +00:00
committed by Automerger Merge Worker

View File

@@ -18,6 +18,7 @@ package android.app.appsearch;
import android.annotation.CallbackExecutor;
import android.annotation.NonNull;
import android.annotation.SystemService;
import android.annotation.UserHandleAware;
import android.app.appsearch.aidl.IAppSearchManager;
import android.content.Context;
@@ -195,6 +196,7 @@ public class AppSearchManager {
* this operation. Or a {@link AppSearchResult} with failure reason code and error
* information.
*/
@UserHandleAware
public void createSearchSession(
@NonNull SearchContext searchContext,
@NonNull @CallbackExecutor Executor executor,
@@ -222,6 +224,7 @@ public class AppSearchManager {
* this operation. Or a {@link AppSearchResult} with failure reason code and error
* information.
*/
@UserHandleAware
public void createGlobalSearchSession(
@NonNull @CallbackExecutor Executor executor,
@NonNull Consumer<AppSearchResult<GlobalSearchSession>> callback) {