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

Commit 660095ae authored by Sandeep Bandaru's avatar Sandeep Bandaru
Browse files

Clean up @FlaggedApi(FLAG_ENABLE_ON_DEVICE_INTELLIGENCE)

The feature has been launched and the flag is being retired.

Test: make
Bug: 372658837
Flag: EXEMPT flag cleanup
Change-Id: Idcc14f5da94ea2376811a3faaff433023e71512d
parent 2e92c4e6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -79,8 +79,8 @@ package android {
    field public static final String BIND_MUSIC_RECOGNITION_SERVICE = "android.permission.BIND_MUSIC_RECOGNITION_SERVICE";
    field public static final String BIND_NETWORK_RECOMMENDATION_SERVICE = "android.permission.BIND_NETWORK_RECOMMENDATION_SERVICE";
    field public static final String BIND_NOTIFICATION_ASSISTANT_SERVICE = "android.permission.BIND_NOTIFICATION_ASSISTANT_SERVICE";
    field @FlaggedApi("android.app.ondeviceintelligence.flags.enable_on_device_intelligence") public static final String BIND_ON_DEVICE_INTELLIGENCE_SERVICE = "android.permission.BIND_ON_DEVICE_INTELLIGENCE_SERVICE";
    field @FlaggedApi("android.app.ondeviceintelligence.flags.enable_on_device_intelligence") public static final String BIND_ON_DEVICE_SANDBOXED_INFERENCE_SERVICE = "android.permission.BIND_ON_DEVICE_SANDBOXED_INFERENCE_SERVICE";
    field public static final String BIND_ON_DEVICE_INTELLIGENCE_SERVICE = "android.permission.BIND_ON_DEVICE_INTELLIGENCE_SERVICE";
    field public static final String BIND_ON_DEVICE_SANDBOXED_INFERENCE_SERVICE = "android.permission.BIND_ON_DEVICE_SANDBOXED_INFERENCE_SERVICE";
    field public static final String BIND_PHONE_ACCOUNT_SUGGESTION_SERVICE = "android.permission.BIND_PHONE_ACCOUNT_SUGGESTION_SERVICE";
    field @FlaggedApi("android.location.flags.population_density_provider") public static final String BIND_POPULATION_DENSITY_PROVIDER_SERVICE = "android.permission.BIND_POPULATION_DENSITY_PROVIDER_SERVICE";
    field public static final String BIND_PRINT_RECOMMENDATION_SERVICE = "android.permission.BIND_PRINT_RECOMMENDATION_SERVICE";
@@ -445,7 +445,7 @@ package android {
    field public static final String UPGRADE_RUNTIME_PERMISSIONS = "android.permission.UPGRADE_RUNTIME_PERMISSIONS";
    field public static final String USER_ACTIVITY = "android.permission.USER_ACTIVITY";
    field public static final String USE_COLORIZED_NOTIFICATIONS = "android.permission.USE_COLORIZED_NOTIFICATIONS";
    field @FlaggedApi("android.app.ondeviceintelligence.flags.enable_on_device_intelligence") public static final String USE_ON_DEVICE_INTELLIGENCE = "android.permission.USE_ON_DEVICE_INTELLIGENCE";
    field public static final String USE_ON_DEVICE_INTELLIGENCE = "android.permission.USE_ON_DEVICE_INTELLIGENCE";
    field public static final String USE_RESERVED_DISK = "android.permission.USE_RESERVED_DISK";
    field public static final String UWB_PRIVILEGED = "android.permission.UWB_PRIVILEGED";
    field @FlaggedApi("android.os.vibrator.vendor_vibration_effects") public static final String VIBRATE_VENDOR_EFFECTS = "android.permission.VIBRATE_VENDOR_EFFECTS";
@@ -3983,7 +3983,7 @@ package android.content {
    field public static final String NETD_SERVICE = "netd";
    field @Deprecated public static final String NETWORK_SCORE_SERVICE = "network_score";
    field public static final String OEM_LOCK_SERVICE = "oem_lock";
    field @FlaggedApi("android.app.ondeviceintelligence.flags.enable_on_device_intelligence") public static final String ON_DEVICE_INTELLIGENCE_SERVICE = "on_device_intelligence";
    field public static final String ON_DEVICE_INTELLIGENCE_SERVICE = "on_device_intelligence";
    field public static final String PERMISSION_CONTROLLER_SERVICE = "permission_controller";
    field public static final String PERMISSION_SERVICE = "permission";
    field @FlaggedApi("com.android.ranging.flags.ranging_stack_enabled") public static final String RANGING_SERVICE = "ranging";
+0 −1
Original line number Diff line number Diff line
@@ -6824,7 +6824,6 @@ public abstract class Context {
     * @hide
     */
    @SystemApi
    @FlaggedApi(android.app.ondeviceintelligence.flags.Flags.FLAG_ENABLE_ON_DEVICE_INTELLIGENCE)
    public static final String ON_DEVICE_INTELLIGENCE_SERVICE = "on_device_intelligence";

    /**
+0 −3
Original line number Diff line number Diff line
@@ -8887,7 +8887,6 @@
    <!-- @SystemApi Allows an app to use the on-device intelligence service.
             <p>Protection level: signature|privileged
             @hide
         @FlaggedApi("android.app.ondeviceintelligence.flags.enable_on_device_intelligence")
        -->
    <permission android:name="android.permission.USE_ON_DEVICE_INTELLIGENCE"
        android:protectionLevel="signature|privileged" />
@@ -8896,7 +8895,6 @@
    <!-- @SystemApi Allows an app to bind the on-device intelligence service.
             <p>Protection level: signature|privileged
             @hide
         @FlaggedApi("android.app.ondeviceintelligence.flags.enable_on_device_intelligence")
        -->
    <permission android:name="android.permission.BIND_ON_DEVICE_INTELLIGENCE_SERVICE"
        android:protectionLevel="signature|privileged" />
@@ -8905,7 +8903,6 @@
    <!-- @SystemApi Allows an app to bind the on-device sandboxed service.
             <p>Protection level: signature|privileged
             @hide
         @FlaggedApi("android.app.ondeviceintelligence.flags.enable_on_device_intelligence")
        -->
    <permission android:name="android.permission.BIND_ON_DEVICE_SANDBOXED_INFERENCE_SERVICE"
        android:protectionLevel="signature"/>
+0 −44
Original line number Diff line number Diff line
@@ -9296,50 +9296,6 @@
            column="32"/>
    </issue>
    <issue
        id="FlaggedApi"
        message="Class `OnDeviceIntelligenceManager` is a flagged API and should be inside an `if (Flags.enableOnDeviceIntelligence())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.FLAG_ENABLE_ON_DEVICE_INTELLIGENCE) to transfer requirement to caller`)"
        errorLine1="        registerService(Context.ON_DEVICE_INTELLIGENCE_SERVICE, OnDeviceIntelligenceManager.class,"
        errorLine2="                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="frameworks/base/core/java/android/app/SystemServiceRegistry.java"
            line="1638"
            column="65"/>
    </issue>
    <issue
        id="FlaggedApi"
        message="Field `ON_DEVICE_INTELLIGENCE_SERVICE` is a flagged API and should be inside an `if (Flags.enableOnDeviceIntelligence())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.FLAG_ENABLE_ON_DEVICE_INTELLIGENCE) to transfer requirement to caller`)"
        errorLine1="        registerService(Context.ON_DEVICE_INTELLIGENCE_SERVICE, OnDeviceIntelligenceManager.class,"
        errorLine2="                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="frameworks/base/core/java/android/app/SystemServiceRegistry.java"
            line="1638"
            column="33"/>
    </issue>
    <issue
        id="FlaggedApi"
        message="Field `ON_DEVICE_INTELLIGENCE_SERVICE` is a flagged API and should be inside an `if (Flags.enableOnDeviceIntelligence())` check (or annotate the surrounding method `createService` with `@FlaggedApi(Flags.FLAG_ENABLE_ON_DEVICE_INTELLIGENCE) to transfer requirement to caller`)"
        errorLine1="                                Context.ON_DEVICE_INTELLIGENCE_SERVICE);"
        errorLine2="                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="frameworks/base/core/java/android/app/SystemServiceRegistry.java"
            line="1644"
            column="41"/>
    </issue>
    <issue
        id="FlaggedApi"
        message="Method `OnDeviceIntelligenceManager()` is a flagged API and should be inside an `if (Flags.enableOnDeviceIntelligence())` check (or annotate the surrounding method `createService` with `@FlaggedApi(Flags.FLAG_ENABLE_ON_DEVICE_INTELLIGENCE) to transfer requirement to caller`)"
        errorLine1="                        return new OnDeviceIntelligenceManager(ctx.getOuterContext(), manager);"
        errorLine2="                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="frameworks/base/core/java/android/app/SystemServiceRegistry.java"
            line="1647"
            column="32"/>
    </issue>
    <issue
        id="FlaggedApi"
        message="Class `E2eeContactKeysManager` is a flagged API and should be inside an `if (Flags.userKeys())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.FLAG_USER_KEYS) to transfer requirement to caller`)"
+0 −4
Original line number Diff line number Diff line
@@ -16,9 +16,6 @@

package android.app.ondeviceintelligence;

import static android.app.ondeviceintelligence.flags.Flags.FLAG_ENABLE_ON_DEVICE_INTELLIGENCE;

import android.annotation.FlaggedApi;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SystemApi;
@@ -35,7 +32,6 @@ import java.lang.annotation.RetentionPolicy;
 * @hide
 */
@SystemApi
@FlaggedApi(FLAG_ENABLE_ON_DEVICE_INTELLIGENCE)
public interface DownloadCallback {
    int DOWNLOAD_FAILURE_STATUS_UNKNOWN = 0;

Loading