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

Commit a4d22287 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add the missing SdkConstant annotation" into main

parents 08f47a4e 2b7a47a7
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -24,6 +24,7 @@ import android.annotation.FlaggedApi;
import android.annotation.MainThread;
import android.annotation.MainThread;
import android.annotation.NonNull;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.Nullable;
import android.annotation.SdkConstant;
import android.app.Service;
import android.app.Service;
import android.content.Context;
import android.content.Context;
import android.content.Intent;
import android.content.Intent;
@@ -59,6 +60,7 @@ public abstract class AppFunctionService extends Service {
     * service must also require the {@link BIND_APP_FUNCTION_SERVICE} permission so that other
     * service must also require the {@link BIND_APP_FUNCTION_SERVICE} permission so that other
     * applications can not abuse it.
     * applications can not abuse it.
     */
     */
    @SdkConstant(SdkConstant.SdkConstantType.SERVICE_ACTION)
    @NonNull
    @NonNull
    public static final String SERVICE_INTERFACE = "android.app.appfunctions.AppFunctionService";
    public static final String SERVICE_INTERFACE = "android.app.appfunctions.AppFunctionService";


+2 −0
Original line number Original line Diff line number Diff line
@@ -22,6 +22,7 @@ import static com.android.extensions.appfunctions.SidecarConverter.getPlatformEx
import android.annotation.MainThread;
import android.annotation.MainThread;
import android.annotation.NonNull;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.Nullable;
import android.annotation.SdkConstant;
import android.app.Service;
import android.app.Service;
import android.content.Intent;
import android.content.Intent;
import android.os.Binder;
import android.os.Binder;
@@ -64,6 +65,7 @@ public abstract class AppFunctionService extends Service {
     * service must also require the {@link BIND_APP_FUNCTION_SERVICE} permission so that other
     * service must also require the {@link BIND_APP_FUNCTION_SERVICE} permission so that other
     * applications can not abuse it.
     * applications can not abuse it.
     */
     */
    @SdkConstant(SdkConstant.SdkConstantType.SERVICE_ACTION)
    @NonNull
    @NonNull
    public static final String SERVICE_INTERFACE = "android.app.appfunctions.AppFunctionService";
    public static final String SERVICE_INTERFACE = "android.app.appfunctions.AppFunctionService";