Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08c51052 authored by Terry Wang's avatar Terry Wang
Browse files

Annotate AppSearchManager APIs with @UserHandleAware

This helps readers understand that the AppSearch APIs can operate
across users.

Bug: 179822197
Test: presubmit
Change-Id: I0be942f16d0211ea1ea68d72ac82c254b9dd6d02
parent fb45d8ed
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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) {