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

Commit a589c049 authored by Richard MacGregor's avatar Richard MacGregor
Browse files

Create intent action for AppFunction access UI

Intent for AppFunction access request dialogs

Bug: 414806028
Flag: android.permission.flags.app_function_access_ui_enabled
Test: build
Change-Id: I68dd2ed66ecaeeda697699ce8b74ec68f2118c42
parent 7f30beb6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1761,6 +1761,14 @@ package android.app.ambientcontext {
}
package android.app.appfunctions {
  @FlaggedApi("android.app.appfunctions.flags.enable_app_function_manager") public final class AppFunctionManager {
    field @FlaggedApi("android.permission.flags.app_function_access_ui_enabled") public static final String ACTION_REQUEST_APP_FUNCTION_ACCESS = "android.app.appfunctions.action.REQUEST_APP_FUNCTION_ACCESS";
  }
}
package android.app.assist {
  public final class ActivityId implements android.os.Parcelable {
+21 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.RequiresPermission;
import android.annotation.SdkConstant;
import android.annotation.SystemApi;
import android.annotation.SystemService;
import android.annotation.UserHandleAware;
import android.app.appfunctions.AppFunctionManagerHelper.AppFunctionNotFoundException;
@@ -140,6 +141,26 @@ public final class AppFunctionManager {
    public static final String ACTION_MANAGE_TARGET_APP_FUNCTION_ACCESS =
            "android.app.appfunctions.action.MANAGE_TARGET_APP_FUNCTION_ACCESS";

    /**
     * Activity action: Launch UI to request App Function access of a specified app.
     * <p>
     * Input: {@link android.content.Intent#EXTRA_PACKAGE_NAME} specifies the package for which the
     * calling agent is requesting access of.
     * </p>
     * <p>
     * Output: Nothing.
     * </p>
     *
     * @see android.content.Intent#EXTRA_PACKAGE_NAME
     *
     * @hide
     */
    @FlaggedApi(FLAG_APP_FUNCTION_ACCESS_UI_ENABLED)
    @SystemApi
    @SdkConstant(SdkConstant.SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_REQUEST_APP_FUNCTION_ACCESS =
            "android.app.appfunctions.action.REQUEST_APP_FUNCTION_ACCESS";

    /**
     * The default state of the app function. Call {@link #setAppFunctionEnabled} with this to reset
     * enabled state to the default value.