Merge "API: Clean up redundant and ineffective usages of SystemApi and TestApi"
This commit is contained in:
@@ -4,7 +4,6 @@ package android {
|
||||
field public static final java.lang.String ACCESS_AMBIENT_LIGHT_STATS = "android.permission.ACCESS_AMBIENT_LIGHT_STATS";
|
||||
field public static final java.lang.String ACCESS_BROADCAST_RADIO = "android.permission.ACCESS_BROADCAST_RADIO";
|
||||
field public static final java.lang.String ACCESS_CACHE_FILESYSTEM = "android.permission.ACCESS_CACHE_FILESYSTEM";
|
||||
field public static final java.lang.String ACCESS_CHECKIN_PROPERTIES = "android.permission.ACCESS_CHECKIN_PROPERTIES";
|
||||
field public static final java.lang.String ACCESS_DRM_CERTIFICATES = "android.permission.ACCESS_DRM_CERTIFICATES";
|
||||
field public static final deprecated java.lang.String ACCESS_FM_RADIO = "android.permission.ACCESS_FM_RADIO";
|
||||
field public static final java.lang.String ACCESS_MOCK_LOCATION = "android.permission.ACCESS_MOCK_LOCATION";
|
||||
@@ -13,13 +12,10 @@ package android {
|
||||
field public static final java.lang.String ACCESS_NOTIFICATIONS = "android.permission.ACCESS_NOTIFICATIONS";
|
||||
field public static final java.lang.String ACCESS_SHORTCUTS = "android.permission.ACCESS_SHORTCUTS";
|
||||
field public static final java.lang.String ACCESS_SURFACE_FLINGER = "android.permission.ACCESS_SURFACE_FLINGER";
|
||||
field public static final java.lang.String ACCOUNT_MANAGER = "android.permission.ACCOUNT_MANAGER";
|
||||
field public static final java.lang.String ACTIVITY_EMBEDDING = "android.permission.ACTIVITY_EMBEDDING";
|
||||
field public static final java.lang.String ALLOCATE_AGGRESSIVE = "android.permission.ALLOCATE_AGGRESSIVE";
|
||||
field public static final java.lang.String ALLOW_ANY_CODEC_FOR_PLAYBACK = "android.permission.ALLOW_ANY_CODEC_FOR_PLAYBACK";
|
||||
field public static final java.lang.String BACKUP = "android.permission.BACKUP";
|
||||
field public static final java.lang.String BATTERY_STATS = "android.permission.BATTERY_STATS";
|
||||
field public static final java.lang.String BIND_APPWIDGET = "android.permission.BIND_APPWIDGET";
|
||||
field public static final deprecated java.lang.String BIND_CONNECTION_SERVICE = "android.permission.BIND_CONNECTION_SERVICE";
|
||||
field public static final java.lang.String BIND_DIRECTORY_SEARCH = "android.permission.BIND_DIRECTORY_SEARCH";
|
||||
field public static final java.lang.String BIND_EUICC_SERVICE = "android.permission.BIND_EUICC_SERVICE";
|
||||
@@ -28,7 +24,6 @@ package android {
|
||||
field public static final java.lang.String BIND_NETWORK_RECOMMENDATION_SERVICE = "android.permission.BIND_NETWORK_RECOMMENDATION_SERVICE";
|
||||
field public static final java.lang.String BIND_NOTIFICATION_ASSISTANT_SERVICE = "android.permission.BIND_NOTIFICATION_ASSISTANT_SERVICE";
|
||||
field public static final java.lang.String BIND_PRINT_RECOMMENDATION_SERVICE = "android.permission.BIND_PRINT_RECOMMENDATION_SERVICE";
|
||||
field public static final java.lang.String BIND_REMOTEVIEWS = "android.permission.BIND_REMOTEVIEWS";
|
||||
field public static final java.lang.String BIND_RESOLVER_RANKER_SERVICE = "android.permission.BIND_RESOLVER_RANKER_SERVICE";
|
||||
field public static final java.lang.String BIND_RUNTIME_PERMISSION_PRESENTER_SERVICE = "android.permission.BIND_RUNTIME_PERMISSION_PRESENTER_SERVICE";
|
||||
field public static final java.lang.String BIND_SETTINGS_SUGGESTIONS_SERVICE = "android.permission.BIND_SETTINGS_SUGGESTIONS_SERVICE";
|
||||
@@ -38,20 +33,13 @@ package android {
|
||||
field public static final java.lang.String BIND_TEXTCLASSIFIER_SERVICE = "android.permission.BIND_TEXTCLASSIFIER_SERVICE";
|
||||
field public static final java.lang.String BIND_TRUST_AGENT = "android.permission.BIND_TRUST_AGENT";
|
||||
field public static final java.lang.String BIND_TV_REMOTE_SERVICE = "android.permission.BIND_TV_REMOTE_SERVICE";
|
||||
field public static final java.lang.String BLUETOOTH_PRIVILEGED = "android.permission.BLUETOOTH_PRIVILEGED";
|
||||
field public static final java.lang.String BRICK = "android.permission.BRICK";
|
||||
field public static final java.lang.String BRIGHTNESS_SLIDER_USAGE = "android.permission.BRIGHTNESS_SLIDER_USAGE";
|
||||
field public static final deprecated java.lang.String BROADCAST_NETWORK_PRIVILEGED = "android.permission.BROADCAST_NETWORK_PRIVILEGED";
|
||||
field public static final java.lang.String CALL_PRIVILEGED = "android.permission.CALL_PRIVILEGED";
|
||||
field public static final java.lang.String CAMERA_DISABLE_TRANSMIT_LED = "android.permission.CAMERA_DISABLE_TRANSMIT_LED";
|
||||
field public static final java.lang.String CAPTURE_AUDIO_HOTWORD = "android.permission.CAPTURE_AUDIO_HOTWORD";
|
||||
field public static final java.lang.String CAPTURE_AUDIO_OUTPUT = "android.permission.CAPTURE_AUDIO_OUTPUT";
|
||||
field public static final java.lang.String CAPTURE_SECURE_VIDEO_OUTPUT = "android.permission.CAPTURE_SECURE_VIDEO_OUTPUT";
|
||||
field public static final java.lang.String CAPTURE_TV_INPUT = "android.permission.CAPTURE_TV_INPUT";
|
||||
field public static final java.lang.String CAPTURE_VIDEO_OUTPUT = "android.permission.CAPTURE_VIDEO_OUTPUT";
|
||||
field public static final java.lang.String CHANGE_APP_IDLE_STATE = "android.permission.CHANGE_APP_IDLE_STATE";
|
||||
field public static final java.lang.String CHANGE_COMPONENT_ENABLED_STATE = "android.permission.CHANGE_COMPONENT_ENABLED_STATE";
|
||||
field public static final java.lang.String CHANGE_CONFIGURATION = "android.permission.CHANGE_CONFIGURATION";
|
||||
field public static final java.lang.String CHANGE_DEVICE_IDLE_TEMP_WHITELIST = "android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST";
|
||||
field public static final java.lang.String CLEAR_APP_USER_DATA = "android.permission.CLEAR_APP_USER_DATA";
|
||||
field public static final java.lang.String CONFIGURE_DISPLAY_BRIGHTNESS = "android.permission.CONFIGURE_DISPLAY_BRIGHTNESS";
|
||||
@@ -59,30 +47,21 @@ package android {
|
||||
field public static final java.lang.String CONNECTIVITY_USE_RESTRICTED_NETWORKS = "android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS";
|
||||
field public static final java.lang.String CONTROL_DISPLAY_SATURATION = "android.permission.CONTROL_DISPLAY_SATURATION";
|
||||
field public static final java.lang.String CONTROL_INCALL_EXPERIENCE = "android.permission.CONTROL_INCALL_EXPERIENCE";
|
||||
field public static final java.lang.String CONTROL_LOCATION_UPDATES = "android.permission.CONTROL_LOCATION_UPDATES";
|
||||
field public static final java.lang.String CONTROL_VPN = "android.permission.CONTROL_VPN";
|
||||
field public static final java.lang.String CRYPT_KEEPER = "android.permission.CRYPT_KEEPER";
|
||||
field public static final java.lang.String DELETE_CACHE_FILES = "android.permission.DELETE_CACHE_FILES";
|
||||
field public static final java.lang.String DELETE_PACKAGES = "android.permission.DELETE_PACKAGES";
|
||||
field public static final java.lang.String DEVICE_POWER = "android.permission.DEVICE_POWER";
|
||||
field public static final java.lang.String DIAGNOSTIC = "android.permission.DIAGNOSTIC";
|
||||
field public static final java.lang.String DISPATCH_PROVISIONING_MESSAGE = "android.permission.DISPATCH_PROVISIONING_MESSAGE";
|
||||
field public static final java.lang.String DUMP = "android.permission.DUMP";
|
||||
field public static final java.lang.String FORCE_BACK = "android.permission.FORCE_BACK";
|
||||
field public static final java.lang.String FORCE_STOP_PACKAGES = "android.permission.FORCE_STOP_PACKAGES";
|
||||
field public static final java.lang.String GET_ACCOUNTS_PRIVILEGED = "android.permission.GET_ACCOUNTS_PRIVILEGED";
|
||||
field public static final java.lang.String GET_APP_OPS_STATS = "android.permission.GET_APP_OPS_STATS";
|
||||
field public static final java.lang.String GET_PROCESS_STATE_AND_OOM_SCORE = "android.permission.GET_PROCESS_STATE_AND_OOM_SCORE";
|
||||
field public static final java.lang.String GET_TOP_ACTIVITY_INFO = "android.permission.GET_TOP_ACTIVITY_INFO";
|
||||
field public static final java.lang.String GLOBAL_SEARCH = "android.permission.GLOBAL_SEARCH";
|
||||
field public static final java.lang.String GRANT_RUNTIME_PERMISSIONS = "android.permission.GRANT_RUNTIME_PERMISSIONS";
|
||||
field public static final java.lang.String HARDWARE_TEST = "android.permission.HARDWARE_TEST";
|
||||
field public static final java.lang.String HDMI_CEC = "android.permission.HDMI_CEC";
|
||||
field public static final java.lang.String HIDE_NON_SYSTEM_OVERLAY_WINDOWS = "android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS";
|
||||
field public static final java.lang.String INJECT_EVENTS = "android.permission.INJECT_EVENTS";
|
||||
field public static final java.lang.String INSTALL_GRANT_RUNTIME_PERMISSIONS = "android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS";
|
||||
field public static final java.lang.String INSTALL_LOCATION_PROVIDER = "android.permission.INSTALL_LOCATION_PROVIDER";
|
||||
field public static final java.lang.String INSTALL_PACKAGES = "android.permission.INSTALL_PACKAGES";
|
||||
field public static final java.lang.String INSTALL_PACKAGE_UPDATES = "android.permission.INSTALL_PACKAGE_UPDATES";
|
||||
field public static final java.lang.String INSTALL_SELF_UPDATES = "android.permission.INSTALL_SELF_UPDATES";
|
||||
field public static final java.lang.String INTENT_FILTER_VERIFICATION_AGENT = "android.permission.INTENT_FILTER_VERIFICATION_AGENT";
|
||||
@@ -92,7 +71,6 @@ package android {
|
||||
field public static final java.lang.String INVOKE_CARRIER_SETUP = "android.permission.INVOKE_CARRIER_SETUP";
|
||||
field public static final java.lang.String KILL_UID = "android.permission.KILL_UID";
|
||||
field public static final java.lang.String LOCAL_MAC_ADDRESS = "android.permission.LOCAL_MAC_ADDRESS";
|
||||
field public static final java.lang.String LOCATION_HARDWARE = "android.permission.LOCATION_HARDWARE";
|
||||
field public static final java.lang.String LOOP_RADIO = "android.permission.LOOP_RADIO";
|
||||
field public static final java.lang.String MANAGE_ACTIVITY_STACKS = "android.permission.MANAGE_ACTIVITY_STACKS";
|
||||
field public static final java.lang.String MANAGE_APP_OPS_RESTRICTIONS = "android.permission.MANAGE_APP_OPS_RESTRICTIONS";
|
||||
@@ -107,25 +85,19 @@ package android {
|
||||
field public static final java.lang.String MANAGE_USB = "android.permission.MANAGE_USB";
|
||||
field public static final java.lang.String MANAGE_USERS = "android.permission.MANAGE_USERS";
|
||||
field public static final java.lang.String MANAGE_USER_OEM_UNLOCK_STATE = "android.permission.MANAGE_USER_OEM_UNLOCK_STATE";
|
||||
field public static final java.lang.String MASTER_CLEAR = "android.permission.MASTER_CLEAR";
|
||||
field public static final java.lang.String MEDIA_CONTENT_CONTROL = "android.permission.MEDIA_CONTENT_CONTROL";
|
||||
field public static final java.lang.String MODIFY_APPWIDGET_BIND_PERMISSIONS = "android.permission.MODIFY_APPWIDGET_BIND_PERMISSIONS";
|
||||
field public static final java.lang.String MODIFY_AUDIO_ROUTING = "android.permission.MODIFY_AUDIO_ROUTING";
|
||||
field public static final java.lang.String MODIFY_CELL_BROADCASTS = "android.permission.MODIFY_CELL_BROADCASTS";
|
||||
field public static final java.lang.String MODIFY_DAY_NIGHT_MODE = "android.permission.MODIFY_DAY_NIGHT_MODE";
|
||||
field public static final deprecated java.lang.String MODIFY_NETWORK_ACCOUNTING = "android.permission.MODIFY_NETWORK_ACCOUNTING";
|
||||
field public static final java.lang.String MODIFY_PARENTAL_CONTROLS = "android.permission.MODIFY_PARENTAL_CONTROLS";
|
||||
field public static final java.lang.String MODIFY_PHONE_STATE = "android.permission.MODIFY_PHONE_STATE";
|
||||
field public static final java.lang.String MODIFY_QUIET_MODE = "android.permission.MODIFY_QUIET_MODE";
|
||||
field public static final java.lang.String MOUNT_FORMAT_FILESYSTEMS = "android.permission.MOUNT_FORMAT_FILESYSTEMS";
|
||||
field public static final java.lang.String MOUNT_UNMOUNT_FILESYSTEMS = "android.permission.MOUNT_UNMOUNT_FILESYSTEMS";
|
||||
field public static final java.lang.String MOVE_PACKAGE = "android.permission.MOVE_PACKAGE";
|
||||
field public static final java.lang.String NETWORK_SETUP_WIZARD = "android.permission.NETWORK_SETUP_WIZARD";
|
||||
field public static final java.lang.String NOTIFICATION_DURING_SETUP = "android.permission.NOTIFICATION_DURING_SETUP";
|
||||
field public static final java.lang.String NOTIFY_TV_INPUTS = "android.permission.NOTIFY_TV_INPUTS";
|
||||
field public static final java.lang.String OBSERVE_APP_USAGE = "android.permission.OBSERVE_APP_USAGE";
|
||||
field public static final java.lang.String OVERRIDE_WIFI_CONFIG = "android.permission.OVERRIDE_WIFI_CONFIG";
|
||||
field public static final java.lang.String PACKAGE_USAGE_STATS = "android.permission.PACKAGE_USAGE_STATS";
|
||||
field public static final java.lang.String PACKAGE_VERIFICATION_AGENT = "android.permission.PACKAGE_VERIFICATION_AGENT";
|
||||
field public static final java.lang.String PEERS_MAC_ADDRESS = "android.permission.PEERS_MAC_ADDRESS";
|
||||
field public static final java.lang.String PERFORM_CDMA_PROVISIONING = "android.permission.PERFORM_CDMA_PROVISIONING";
|
||||
@@ -135,9 +107,7 @@ package android {
|
||||
field public static final java.lang.String QUERY_TIME_ZONE_RULES = "android.permission.QUERY_TIME_ZONE_RULES";
|
||||
field public static final java.lang.String READ_CONTENT_RATING_SYSTEMS = "android.permission.READ_CONTENT_RATING_SYSTEMS";
|
||||
field public static final java.lang.String READ_DREAM_STATE = "android.permission.READ_DREAM_STATE";
|
||||
field public static final java.lang.String READ_FRAME_BUFFER = "android.permission.READ_FRAME_BUFFER";
|
||||
field public static final java.lang.String READ_INSTALL_SESSIONS = "android.permission.READ_INSTALL_SESSIONS";
|
||||
field public static final java.lang.String READ_LOGS = "android.permission.READ_LOGS";
|
||||
field public static final java.lang.String READ_NETWORK_USAGE_HISTORY = "android.permission.READ_NETWORK_USAGE_HISTORY";
|
||||
field public static final java.lang.String READ_OEM_UNLOCK_STATE = "android.permission.READ_OEM_UNLOCK_STATE";
|
||||
field public static final java.lang.String READ_PRINT_SERVICES = "android.permission.READ_PRINT_SERVICES";
|
||||
@@ -149,7 +119,6 @@ package android {
|
||||
field public static final java.lang.String READ_WALLPAPER_INTERNAL = "android.permission.READ_WALLPAPER_INTERNAL";
|
||||
field public static final java.lang.String READ_WIFI_CREDENTIAL = "android.permission.READ_WIFI_CREDENTIAL";
|
||||
field public static final java.lang.String REAL_GET_TASKS = "android.permission.REAL_GET_TASKS";
|
||||
field public static final java.lang.String REBOOT = "android.permission.REBOOT";
|
||||
field public static final java.lang.String RECEIVE_DATA_ACTIVITY_CHANGE = "android.permission.RECEIVE_DATA_ACTIVITY_CHANGE";
|
||||
field public static final java.lang.String RECEIVE_EMERGENCY_BROADCAST = "android.permission.RECEIVE_EMERGENCY_BROADCAST";
|
||||
field public static final java.lang.String RECEIVE_WIFI_CREDENTIAL_CHANGE = "android.permission.RECEIVE_WIFI_CREDENTIAL_CHANGE";
|
||||
@@ -163,27 +132,19 @@ package android {
|
||||
field public static final java.lang.String RETRIEVE_WINDOW_CONTENT = "android.permission.RETRIEVE_WINDOW_CONTENT";
|
||||
field public static final java.lang.String REVOKE_RUNTIME_PERMISSIONS = "android.permission.REVOKE_RUNTIME_PERMISSIONS";
|
||||
field public static final java.lang.String SCORE_NETWORKS = "android.permission.SCORE_NETWORKS";
|
||||
field public static final java.lang.String SEND_RESPOND_VIA_MESSAGE = "android.permission.SEND_RESPOND_VIA_MESSAGE";
|
||||
field public static final java.lang.String SEND_SHOW_SUSPENDED_APP_DETAILS = "android.permission.SEND_SHOW_SUSPENDED_APP_DETAILS";
|
||||
field public static final java.lang.String SEND_SMS_NO_CONFIRMATION = "android.permission.SEND_SMS_NO_CONFIRMATION";
|
||||
field public static final java.lang.String SERIAL_PORT = "android.permission.SERIAL_PORT";
|
||||
field public static final java.lang.String SET_ACTIVITY_WATCHER = "android.permission.SET_ACTIVITY_WATCHER";
|
||||
field public static final java.lang.String SET_ALWAYS_FINISH = "android.permission.SET_ALWAYS_FINISH";
|
||||
field public static final java.lang.String SET_ANIMATION_SCALE = "android.permission.SET_ANIMATION_SCALE";
|
||||
field public static final java.lang.String SET_DEBUG_APP = "android.permission.SET_DEBUG_APP";
|
||||
field public static final java.lang.String SET_HARMFUL_APP_WARNINGS = "android.permission.SET_HARMFUL_APP_WARNINGS";
|
||||
field public static final java.lang.String SET_MEDIA_KEY_LISTENER = "android.permission.SET_MEDIA_KEY_LISTENER";
|
||||
field public static final java.lang.String SET_ORIENTATION = "android.permission.SET_ORIENTATION";
|
||||
field public static final java.lang.String SET_POINTER_SPEED = "android.permission.SET_POINTER_SPEED";
|
||||
field public static final java.lang.String SET_PROCESS_LIMIT = "android.permission.SET_PROCESS_LIMIT";
|
||||
field public static final java.lang.String SET_SCREEN_COMPATIBILITY = "android.permission.SET_SCREEN_COMPATIBILITY";
|
||||
field public static final java.lang.String SET_TIME = "android.permission.SET_TIME";
|
||||
field public static final java.lang.String SET_VOLUME_KEY_LONG_PRESS_LISTENER = "android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER";
|
||||
field public static final java.lang.String SET_WALLPAPER_COMPONENT = "android.permission.SET_WALLPAPER_COMPONENT";
|
||||
field public static final java.lang.String SHOW_KEYGUARD_MESSAGE = "android.permission.SHOW_KEYGUARD_MESSAGE";
|
||||
field public static final java.lang.String SHUTDOWN = "android.permission.SHUTDOWN";
|
||||
field public static final java.lang.String SIGNAL_PERSISTENT_PROCESSES = "android.permission.SIGNAL_PERSISTENT_PROCESSES";
|
||||
field public static final java.lang.String STATUS_BAR = "android.permission.STATUS_BAR";
|
||||
field public static final java.lang.String STOP_APP_SWITCHES = "android.permission.STOP_APP_SWITCHES";
|
||||
field public static final java.lang.String SUBSTITUTE_NOTIFICATION_APP_NAME = "android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME";
|
||||
field public static final java.lang.String SUSPEND_APPS = "android.permission.SUSPEND_APPS";
|
||||
@@ -192,17 +153,13 @@ package android {
|
||||
field public static final java.lang.String TV_VIRTUAL_REMOTE_CONTROLLER = "android.permission.TV_VIRTUAL_REMOTE_CONTROLLER";
|
||||
field public static final java.lang.String UNLIMITED_SHORTCUTS_API_CALLS = "android.permission.UNLIMITED_SHORTCUTS_API_CALLS";
|
||||
field public static final java.lang.String UPDATE_APP_OPS_STATS = "android.permission.UPDATE_APP_OPS_STATS";
|
||||
field public static final java.lang.String UPDATE_DEVICE_STATS = "android.permission.UPDATE_DEVICE_STATS";
|
||||
field public static final java.lang.String UPDATE_LOCK = "android.permission.UPDATE_LOCK";
|
||||
field public static final java.lang.String UPDATE_TIME_ZONE_RULES = "android.permission.UPDATE_TIME_ZONE_RULES";
|
||||
field public static final java.lang.String USER_ACTIVITY = "android.permission.USER_ACTIVITY";
|
||||
field public static final java.lang.String USE_RESERVED_DISK = "android.permission.USE_RESERVED_DISK";
|
||||
field public static final java.lang.String WRITE_APN_SETTINGS = "android.permission.WRITE_APN_SETTINGS";
|
||||
field public static final java.lang.String WRITE_DREAM_STATE = "android.permission.WRITE_DREAM_STATE";
|
||||
field public static final java.lang.String WRITE_EMBEDDED_SUBSCRIPTIONS = "android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS";
|
||||
field public static final java.lang.String WRITE_GSERVICES = "android.permission.WRITE_GSERVICES";
|
||||
field public static final java.lang.String WRITE_MEDIA_STORAGE = "android.permission.WRITE_MEDIA_STORAGE";
|
||||
field public static final java.lang.String WRITE_SECURE_SETTINGS = "android.permission.WRITE_SECURE_SETTINGS";
|
||||
}
|
||||
|
||||
public static final class R.array {
|
||||
@@ -425,10 +382,6 @@ package android.app {
|
||||
|
||||
package android.app.admin {
|
||||
|
||||
public class DeviceAdminReceiver extends android.content.BroadcastReceiver {
|
||||
method public deprecated void onReadyForUserInitialization(android.content.Context, android.content.Intent);
|
||||
}
|
||||
|
||||
public class DevicePolicyManager {
|
||||
method public java.lang.String getDeviceOwner();
|
||||
method public android.content.ComponentName getDeviceOwnerComponentOnAnyUser();
|
||||
@@ -466,10 +419,7 @@ package android.app.admin {
|
||||
}
|
||||
|
||||
public final class SystemUpdatePolicy implements android.os.Parcelable {
|
||||
method public int describeContents();
|
||||
method public android.app.admin.SystemUpdatePolicy.InstallationOption getInstallationOptionAt(long);
|
||||
method public void writeToParcel(android.os.Parcel, int);
|
||||
field public static final android.os.Parcelable.Creator<android.app.admin.SystemUpdatePolicy> CREATOR;
|
||||
field public static final int TYPE_PAUSE = 4; // 0x4
|
||||
}
|
||||
|
||||
@@ -2948,7 +2898,6 @@ package android.media.tv {
|
||||
method public void addBlockedRating(android.media.tv.TvContentRating);
|
||||
method public boolean captureFrame(java.lang.String, android.view.Surface, android.media.tv.TvStreamConfig);
|
||||
method public java.util.List<android.media.tv.TvStreamConfig> getAvailableTvStreamConfigList(java.lang.String);
|
||||
method public java.util.List<android.media.tv.TvContentRating> getBlockedRatings();
|
||||
method public java.util.List<android.media.tv.TvInputHardwareInfo> getHardwareList();
|
||||
method public java.util.List<android.media.tv.TvContentRatingSystemInfo> getTvContentRatingSystemList();
|
||||
method public boolean isSingleSessionActive();
|
||||
@@ -3163,11 +3112,9 @@ package android.net {
|
||||
}
|
||||
|
||||
public class TrafficStats {
|
||||
method public static void clearThreadStatsUid();
|
||||
method public static void setThreadStatsTagApp();
|
||||
method public static void setThreadStatsTagBackup();
|
||||
method public static void setThreadStatsTagRestore();
|
||||
method public static void setThreadStatsUid(int);
|
||||
}
|
||||
|
||||
public class VpnService extends android.app.Service {
|
||||
@@ -3189,14 +3136,6 @@ package android.net {
|
||||
|
||||
}
|
||||
|
||||
package android.net.http {
|
||||
|
||||
public class X509TrustManagerExtensions {
|
||||
method public boolean isSameTrustConfiguration(java.lang.String, java.lang.String);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
package android.net.wifi {
|
||||
|
||||
public deprecated class RttManager {
|
||||
@@ -3415,7 +3354,6 @@ package android.net.wifi {
|
||||
method public java.util.List<android.net.wifi.WifiConfiguration> getPrivilegedConfiguredNetworks();
|
||||
method public android.net.wifi.WifiConfiguration getWifiApConfiguration();
|
||||
method public int getWifiApState();
|
||||
method public boolean isDeviceToApRttSupported();
|
||||
method public boolean isDeviceToDeviceRttSupported();
|
||||
method public boolean isPortableHotspotSupported();
|
||||
method public boolean isWifiApEnabled();
|
||||
@@ -4614,28 +4552,6 @@ package android.service.notification {
|
||||
field public static final java.lang.String KEY_USER_SENTIMENT = "key_user_sentiment";
|
||||
}
|
||||
|
||||
public final class Condition implements android.os.Parcelable {
|
||||
ctor public Condition(android.net.Uri, java.lang.String, java.lang.String, java.lang.String, int, int, int);
|
||||
method public android.service.notification.Condition copy();
|
||||
method public static boolean isValidId(android.net.Uri, java.lang.String);
|
||||
method public static android.net.Uri.Builder newId(android.content.Context);
|
||||
method public static java.lang.String relevanceToString(int);
|
||||
method public static java.lang.String stateToString(int);
|
||||
field public static final int FLAG_RELEVANT_ALWAYS = 2; // 0x2
|
||||
field public static final int FLAG_RELEVANT_NOW = 1; // 0x1
|
||||
field public static final java.lang.String SCHEME = "condition";
|
||||
field public static final int STATE_ERROR = 3; // 0x3
|
||||
field public static final int STATE_UNKNOWN = 2; // 0x2
|
||||
field public final int flags;
|
||||
field public final int icon;
|
||||
field public final java.lang.String line1;
|
||||
field public final java.lang.String line2;
|
||||
}
|
||||
|
||||
public abstract class ConditionProviderService extends android.app.Service {
|
||||
method public void onRequestConditions(int);
|
||||
}
|
||||
|
||||
public abstract class NotificationAssistantService extends android.service.notification.NotificationListenerService {
|
||||
ctor public NotificationAssistantService();
|
||||
method public final void adjustNotification(android.service.notification.Adjustment);
|
||||
@@ -5082,7 +4998,6 @@ package android.telecom {
|
||||
method public void clearPhoneAccounts();
|
||||
method public android.telecom.TelecomAnalytics dumpAnalytics();
|
||||
method public void enablePhoneAccount(android.telecom.PhoneAccountHandle, boolean);
|
||||
method public boolean endCall();
|
||||
method public java.util.List<android.telecom.PhoneAccountHandle> getAllPhoneAccountHandles();
|
||||
method public java.util.List<android.telecom.PhoneAccount> getAllPhoneAccounts();
|
||||
method public int getAllPhoneAccountsCount();
|
||||
@@ -5094,7 +5009,6 @@ package android.telecom {
|
||||
method public java.util.List<android.telecom.PhoneAccountHandle> getPhoneAccountsSupportingScheme(java.lang.String);
|
||||
method public boolean isInEmergencyCall();
|
||||
method public boolean isRinging();
|
||||
method public boolean isTtySupported();
|
||||
method public boolean setDefaultDialer(java.lang.String);
|
||||
field public static final java.lang.String EXTRA_CALL_BACK_INTENT = "android.telecom.extra.CALL_BACK_INTENT";
|
||||
field public static final java.lang.String EXTRA_CLEAR_MISSED_CALLS_INTENT = "android.telecom.extra.CLEAR_MISSED_CALLS_INTENT";
|
||||
@@ -5119,7 +5033,6 @@ package android.telephony {
|
||||
method public void overrideConfig(int, android.os.PersistableBundle);
|
||||
method public void updateConfigForPhoneId(int, java.lang.String);
|
||||
field public static final java.lang.String KEY_CARRIER_SETUP_APP_STRING = "carrier_setup_app_string";
|
||||
field public static final java.lang.String KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING = "config_plans_package_override_string";
|
||||
}
|
||||
|
||||
public class MbmsDownloadSession implements java.lang.AutoCloseable {
|
||||
@@ -5234,7 +5147,6 @@ package android.telephony {
|
||||
|
||||
public final class SmsManager {
|
||||
method public void sendMultipartTextMessageWithoutPersisting(java.lang.String, java.lang.String, java.util.List<java.lang.String>, java.util.List<android.app.PendingIntent>, java.util.List<android.app.PendingIntent>);
|
||||
method public void sendTextMessageWithoutPersisting(java.lang.String, java.lang.String, java.lang.String, android.app.PendingIntent, android.app.PendingIntent);
|
||||
field public static final int RESULT_CANCELLED = 23; // 0x17
|
||||
field public static final int RESULT_ENCODING_ERROR = 18; // 0x12
|
||||
field public static final int RESULT_ERROR_FDN_CHECK_FAILURE = 6; // 0x6
|
||||
@@ -5261,13 +5173,7 @@ package android.telephony {
|
||||
|
||||
public class SubscriptionManager {
|
||||
method public java.util.List<android.telephony.SubscriptionInfo> getAvailableSubscriptionInfoList();
|
||||
method public java.util.List<android.telephony.SubscriptionPlan> getSubscriptionPlans(int);
|
||||
method public void requestEmbeddedSubscriptionInfoListRefresh();
|
||||
method public void setSubscriptionOverrideCongested(int, boolean, long);
|
||||
method public void setSubscriptionOverrideUnmetered(int, boolean, long);
|
||||
method public void setSubscriptionPlans(int, java.util.List<android.telephony.SubscriptionPlan>);
|
||||
field public static final java.lang.String ACTION_MANAGE_SUBSCRIPTION_PLANS = "android.telephony.action.MANAGE_SUBSCRIPTION_PLANS";
|
||||
field public static final java.lang.String ACTION_REFRESH_SUBSCRIPTION_PLANS = "android.telephony.action.REFRESH_SUBSCRIPTION_PLANS";
|
||||
field public static final android.net.Uri ADVANCED_CALLING_ENABLED_CONTENT_URI;
|
||||
field public static final android.net.Uri VT_ENABLED_CONTENT_URI;
|
||||
field public static final android.net.Uri WFC_ENABLED_CONTENT_URI;
|
||||
@@ -5276,37 +5182,10 @@ package android.telephony {
|
||||
field public static final android.net.Uri WFC_ROAMING_MODE_CONTENT_URI;
|
||||
}
|
||||
|
||||
public final class SubscriptionPlan implements android.os.Parcelable {
|
||||
method public java.util.Iterator<android.util.Range<java.time.ZonedDateTime>> cycleIterator();
|
||||
method public int describeContents();
|
||||
method public int getDataLimitBehavior();
|
||||
method public long getDataLimitBytes();
|
||||
method public long getDataUsageBytes();
|
||||
method public long getDataUsageTime();
|
||||
method public java.lang.CharSequence getSummary();
|
||||
method public java.lang.CharSequence getTitle();
|
||||
method public void writeToParcel(android.os.Parcel, int);
|
||||
field public static final long BYTES_UNKNOWN = -1L; // 0xffffffffffffffffL
|
||||
field public static final long BYTES_UNLIMITED = 9223372036854775807L; // 0x7fffffffffffffffL
|
||||
field public static final android.os.Parcelable.Creator<android.telephony.SubscriptionPlan> CREATOR;
|
||||
field public static final int LIMIT_BEHAVIOR_BILLED = 1; // 0x1
|
||||
field public static final int LIMIT_BEHAVIOR_DISABLED = 0; // 0x0
|
||||
field public static final int LIMIT_BEHAVIOR_THROTTLED = 2; // 0x2
|
||||
field public static final int LIMIT_BEHAVIOR_UNKNOWN = -1; // 0xffffffff
|
||||
field public static final long TIME_UNKNOWN = -1L; // 0xffffffffffffffffL
|
||||
}
|
||||
|
||||
public static class SubscriptionPlan.Builder {
|
||||
method public android.telephony.SubscriptionPlan build();
|
||||
method public static android.telephony.SubscriptionPlan.Builder createNonrecurring(java.time.ZonedDateTime, java.time.ZonedDateTime);
|
||||
method public static android.telephony.SubscriptionPlan.Builder createRecurring(java.time.ZonedDateTime, java.time.Period);
|
||||
method public static deprecated android.telephony.SubscriptionPlan.Builder createRecurringDaily(java.time.ZonedDateTime);
|
||||
method public static deprecated android.telephony.SubscriptionPlan.Builder createRecurringMonthly(java.time.ZonedDateTime);
|
||||
method public static deprecated android.telephony.SubscriptionPlan.Builder createRecurringWeekly(java.time.ZonedDateTime);
|
||||
method public android.telephony.SubscriptionPlan.Builder setDataLimit(long, int);
|
||||
method public android.telephony.SubscriptionPlan.Builder setDataUsage(long, long);
|
||||
method public android.telephony.SubscriptionPlan.Builder setSummary(java.lang.CharSequence);
|
||||
method public android.telephony.SubscriptionPlan.Builder setTitle(java.lang.CharSequence);
|
||||
}
|
||||
|
||||
public final class TelephonyHistogram implements android.os.Parcelable {
|
||||
|
||||
@@ -23,7 +23,6 @@ import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.SdkConstant;
|
||||
import android.annotation.SdkConstant.SdkConstantType;
|
||||
import android.annotation.SystemApi;
|
||||
import android.app.Service;
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.ComponentName;
|
||||
@@ -755,7 +754,6 @@ public class DeviceAdminReceiver extends BroadcastReceiver {
|
||||
* @deprecated Do not use
|
||||
*/
|
||||
@Deprecated
|
||||
@SystemApi
|
||||
public void onReadyForUserInitialization(Context context, Intent intent) {
|
||||
}
|
||||
|
||||
|
||||
@@ -691,13 +691,11 @@ public final class SystemUpdatePolicy implements Parcelable {
|
||||
mFreezePeriods.stream().map(n -> n.toString()).collect(Collectors.joining(",")));
|
||||
}
|
||||
|
||||
@SystemApi
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@SystemApi
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
dest.writeInt(mPolicyType);
|
||||
@@ -714,7 +712,6 @@ public final class SystemUpdatePolicy implements Parcelable {
|
||||
}
|
||||
}
|
||||
|
||||
@SystemApi
|
||||
public static final Parcelable.Creator<SystemUpdatePolicy> CREATOR =
|
||||
new Parcelable.Creator<SystemUpdatePolicy>() {
|
||||
|
||||
|
||||
@@ -119,7 +119,6 @@ public final class SQLiteDebug {
|
||||
/**
|
||||
* contains statistics about a database
|
||||
*/
|
||||
@TestApi
|
||||
public static class DbStats {
|
||||
/** name of the database */
|
||||
public String dbName;
|
||||
@@ -151,7 +150,6 @@ public final class SQLiteDebug {
|
||||
* return all pager and database stats for the current process.
|
||||
* @return {@link PagerStats}
|
||||
*/
|
||||
@TestApi
|
||||
public static PagerStats getDatabaseInfo() {
|
||||
PagerStats stats = new PagerStats();
|
||||
nativeGetPagerStats(stats);
|
||||
|
||||
@@ -274,7 +274,6 @@ public class TrafficStats {
|
||||
* Changes only take effect during subsequent calls to
|
||||
* {@link #tagSocket(Socket)}.
|
||||
*/
|
||||
@SystemApi
|
||||
@SuppressLint("Doclava125")
|
||||
public static void setThreadStatsUid(int uid) {
|
||||
NetworkManagementSocketTagger.setThreadSocketStatsUid(uid);
|
||||
@@ -313,7 +312,6 @@ public class TrafficStats {
|
||||
*
|
||||
* @see #setThreadStatsUid(int)
|
||||
*/
|
||||
@SystemApi
|
||||
@SuppressLint("Doclava125")
|
||||
public static void clearThreadStatsUid() {
|
||||
NetworkManagementSocketTagger.setThreadSocketStatsUid(-1);
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
package android.net.http;
|
||||
|
||||
import android.annotation.SystemApi;
|
||||
import android.security.net.config.UserCertificateSource;
|
||||
|
||||
import com.android.org.conscrypt.TrustManagerImpl;
|
||||
@@ -133,7 +132,6 @@ public class X509TrustManagerExtensions {
|
||||
* Returns {@code true} if the TrustManager uses the same trust configuration for the provided
|
||||
* hostnames.
|
||||
*/
|
||||
@SystemApi
|
||||
public boolean isSameTrustConfiguration(String hostname1, String hostname2) {
|
||||
if (mIsSameTrustConfiguration == null) {
|
||||
return true;
|
||||
|
||||
@@ -32,10 +32,7 @@ public abstract class HwBinder implements IHwBinder {
|
||||
/**
|
||||
* Create and initialize a HwBinder object and the native objects
|
||||
* used to allow this to participate in hwbinder transactions.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public HwBinder() {
|
||||
native_setup();
|
||||
|
||||
@@ -44,7 +41,6 @@ public abstract class HwBinder implements IHwBinder {
|
||||
mNativeContext);
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@Override
|
||||
public final native void transact(
|
||||
int code, HwParcel request, HwParcel reply, int flags)
|
||||
@@ -57,10 +53,7 @@ public abstract class HwBinder implements IHwBinder {
|
||||
* @param request parceled transaction
|
||||
* @param reply object to parcel reply into
|
||||
* @param flags transaction flags to be chosen by wire protocol
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public abstract void onTransact(
|
||||
int code, HwParcel request, HwParcel reply, int flags)
|
||||
throws RemoteException;
|
||||
@@ -69,9 +62,7 @@ public abstract class HwBinder implements IHwBinder {
|
||||
* Registers this service with the hwservicemanager.
|
||||
*
|
||||
* @param serviceName instance name of the service
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public native final void registerService(String serviceName)
|
||||
throws RemoteException;
|
||||
|
||||
@@ -81,9 +72,7 @@ public abstract class HwBinder implements IHwBinder {
|
||||
* @param iface fully-qualified interface name for example foo.bar@1.3::IBaz
|
||||
* @param serviceName the instance name of the service for example default.
|
||||
* @throws NoSuchElementException when the service is unavailable
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static final IHwBinder getService(
|
||||
String iface,
|
||||
String serviceName)
|
||||
@@ -96,9 +85,7 @@ public abstract class HwBinder implements IHwBinder {
|
||||
* @param serviceName the instance name of the service for example default.
|
||||
* @param retry whether to wait for the service to start if it's not already started
|
||||
* @throws NoSuchElementException when the service is unavailable
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static native final IHwBinder getService(
|
||||
String iface,
|
||||
String serviceName,
|
||||
@@ -112,9 +99,7 @@ public abstract class HwBinder implements IHwBinder {
|
||||
* @param maxThreads total number of threads to create (includes this thread if
|
||||
* callerWillJoin is true)
|
||||
* @param callerWillJoin whether joinRpcThreadpool will be called in advance
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static native final void configureRpcThreadpool(
|
||||
long maxThreads, boolean callerWillJoin);
|
||||
|
||||
@@ -124,10 +109,7 @@ public abstract class HwBinder implements IHwBinder {
|
||||
* a threadpool with callerWillJoin true and then registering
|
||||
* the provided service if this thread doesn't need to do
|
||||
* anything else.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static native final void joinRpcThreadpool();
|
||||
|
||||
// Returns address of the "freeFunction".
|
||||
@@ -155,10 +137,7 @@ public abstract class HwBinder implements IHwBinder {
|
||||
* - tries to enable atracing (if enabled)
|
||||
* - tries to enable coverage dumps (if running in VTS)
|
||||
* - tries to enable record and replay (if running in VTS)
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static void enableInstrumentation() {
|
||||
native_report_sysprop_change();
|
||||
}
|
||||
|
||||
@@ -28,10 +28,7 @@ public interface IHwBinder {
|
||||
* @param request parceled transaction
|
||||
* @param reply object to parcel reply into
|
||||
* @param flags transaction flags to be chosen by wire protocol
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public void transact(
|
||||
int code, HwParcel request, HwParcel reply, int flags)
|
||||
throws RemoteException;
|
||||
@@ -40,23 +37,19 @@ public interface IHwBinder {
|
||||
* Return as IHwInterface instance only if this implements descriptor.
|
||||
*
|
||||
* @param descriptor for example foo.bar@1.0::IBaz
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public IHwInterface queryLocalInterface(String descriptor);
|
||||
|
||||
/**
|
||||
* Interface for receiving a callback when the process hosting a service
|
||||
* has gone away.
|
||||
*/
|
||||
@SystemApi
|
||||
public interface DeathRecipient {
|
||||
/**
|
||||
* Callback for a registered process dying.
|
||||
*
|
||||
* @param cookie cookie this death recipient was registered with.
|
||||
*/
|
||||
@SystemApi
|
||||
public void serviceDied(long cookie);
|
||||
}
|
||||
|
||||
@@ -67,13 +60,11 @@ public interface IHwBinder {
|
||||
* @param recipient callback object to be called on object death.
|
||||
* @param cookie value to be given to callback on object death.
|
||||
*/
|
||||
@SystemApi
|
||||
public boolean linkToDeath(DeathRecipient recipient, long cookie);
|
||||
/**
|
||||
* Unregisters the death recipient from this binder.
|
||||
*
|
||||
* @param recipient callback to no longer recieve death notifications on this binder.
|
||||
*/
|
||||
@SystemApi
|
||||
public boolean unlinkToDeath(DeathRecipient recipient);
|
||||
}
|
||||
|
||||
@@ -23,6 +23,5 @@ public interface IHwInterface {
|
||||
/**
|
||||
* @return the binder object that corresponds to this interface.
|
||||
*/
|
||||
@SystemApi
|
||||
public IHwBinder asBinder();
|
||||
}
|
||||
|
||||
@@ -34,62 +34,51 @@ public class SystemUpdateManager {
|
||||
private static final String TAG = "SystemUpdateManager";
|
||||
|
||||
/** The status key of the system update info, expecting an int value. */
|
||||
@SystemApi
|
||||
public static final String KEY_STATUS = "status";
|
||||
|
||||
/** The title of the current update, expecting a String value. */
|
||||
@SystemApi
|
||||
public static final String KEY_TITLE = "title";
|
||||
|
||||
/** Whether it is a security update, expecting a boolean value. */
|
||||
@SystemApi
|
||||
public static final String KEY_IS_SECURITY_UPDATE = "is_security_update";
|
||||
|
||||
/** The build fingerprint after installing the current update, expecting a String value. */
|
||||
@SystemApi
|
||||
public static final String KEY_TARGET_BUILD_FINGERPRINT = "target_build_fingerprint";
|
||||
|
||||
/** The security patch level after installing the current update, expecting a String value. */
|
||||
@SystemApi
|
||||
public static final String KEY_TARGET_SECURITY_PATCH_LEVEL = "target_security_patch_level";
|
||||
|
||||
/**
|
||||
* The KEY_STATUS value that indicates there's no update status info available.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int STATUS_UNKNOWN = 0;
|
||||
|
||||
/**
|
||||
* The KEY_STATUS value that indicates there's no pending update.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int STATUS_IDLE = 1;
|
||||
|
||||
/**
|
||||
* The KEY_STATUS value that indicates an update is available for download, but pending user
|
||||
* approval to start.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int STATUS_WAITING_DOWNLOAD = 2;
|
||||
|
||||
/**
|
||||
* The KEY_STATUS value that indicates an update is in progress (i.e. downloading or installing
|
||||
* has started).
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int STATUS_IN_PROGRESS = 3;
|
||||
|
||||
/**
|
||||
* The KEY_STATUS value that indicates an update is available for install.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int STATUS_WAITING_INSTALL = 4;
|
||||
|
||||
/**
|
||||
* The KEY_STATUS value that indicates an update will be installed after a reboot. This applies
|
||||
* to both of A/B and non-A/B OTAs.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int STATUS_WAITING_REBOOT = 5;
|
||||
|
||||
private final ISystemUpdateManager mService;
|
||||
@@ -110,7 +99,6 @@ public class SystemUpdateManager {
|
||||
*
|
||||
* @throws SecurityException if the caller is not allowed to read the info.
|
||||
*/
|
||||
@SystemApi
|
||||
@RequiresPermission(anyOf = {
|
||||
android.Manifest.permission.READ_SYSTEM_UPDATE_INFO,
|
||||
android.Manifest.permission.RECOVERY,
|
||||
@@ -137,7 +125,6 @@ public class SystemUpdateManager {
|
||||
* @throws IllegalArgumentException if @link #KEY_STATUS} does not exist.
|
||||
* @throws SecurityException if the caller is not allowed to update the info.
|
||||
*/
|
||||
@SystemApi
|
||||
@RequiresPermission(android.Manifest.permission.RECOVERY)
|
||||
public void updateSystemUpdateInfo(PersistableBundle infoBundle) {
|
||||
if (infoBundle == null || !infoBundle.containsKey(KEY_STATUS)) {
|
||||
|
||||
@@ -54,7 +54,6 @@ public class UpdateEngine {
|
||||
* Error code from the update engine. Values must agree with the ones in
|
||||
* system/update_engine/common/error_code.h.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final class ErrorCodeConstants {
|
||||
public static final int SUCCESS = 0;
|
||||
public static final int ERROR = 1;
|
||||
@@ -74,7 +73,6 @@ public class UpdateEngine {
|
||||
* Update status code from the update engine. Values must agree with the
|
||||
* ones in system/update_engine/client_library/include/update_engine/update_status.h.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final class UpdateStatusConstants {
|
||||
public static final int IDLE = 0;
|
||||
public static final int CHECKING_FOR_UPDATE = 1;
|
||||
@@ -95,7 +93,6 @@ public class UpdateEngine {
|
||||
/**
|
||||
* Creates a new instance.
|
||||
*/
|
||||
@SystemApi
|
||||
public UpdateEngine() {
|
||||
mUpdateEngine = IUpdateEngine.Stub.asInterface(
|
||||
ServiceManager.getService(UPDATE_ENGINE_SERVICE));
|
||||
@@ -106,7 +103,6 @@ public class UpdateEngine {
|
||||
* status change, and when the update completes. A handler can be supplied
|
||||
* to control which thread runs the callback, or null.
|
||||
*/
|
||||
@SystemApi
|
||||
public boolean bind(final UpdateEngineCallback callback, final Handler handler) {
|
||||
synchronized (mUpdateEngineCallbackLock) {
|
||||
mUpdateEngineCallback = new IUpdateEngineCallback.Stub() {
|
||||
@@ -150,7 +146,6 @@ public class UpdateEngine {
|
||||
/**
|
||||
* Equivalent to {@code bind(callback, null)}.
|
||||
*/
|
||||
@SystemApi
|
||||
public boolean bind(final UpdateEngineCallback callback) {
|
||||
return bind(callback, null);
|
||||
}
|
||||
@@ -183,7 +178,6 @@ public class UpdateEngine {
|
||||
* };
|
||||
* </pre>
|
||||
*/
|
||||
@SystemApi
|
||||
public void applyPayload(String url, long offset, long size, String[] headerKeyValuePairs) {
|
||||
try {
|
||||
mUpdateEngine.applyPayload(url, offset, size, headerKeyValuePairs);
|
||||
@@ -201,7 +195,6 @@ public class UpdateEngine {
|
||||
* <p>See {@link #suspend} for a way to temporarily stop an in-progress
|
||||
* update with the ability to resume it later.
|
||||
*/
|
||||
@SystemApi
|
||||
public void cancel() {
|
||||
try {
|
||||
mUpdateEngine.cancel();
|
||||
@@ -214,7 +207,6 @@ public class UpdateEngine {
|
||||
* Suspends an in-progress update. This can be undone by calling
|
||||
* {@link #resume}.
|
||||
*/
|
||||
@SystemApi
|
||||
public void suspend() {
|
||||
try {
|
||||
mUpdateEngine.suspend();
|
||||
@@ -226,7 +218,6 @@ public class UpdateEngine {
|
||||
/**
|
||||
* Resumes a suspended update.
|
||||
*/
|
||||
@SystemApi
|
||||
public void resume() {
|
||||
try {
|
||||
mUpdateEngine.resume();
|
||||
@@ -244,7 +235,6 @@ public class UpdateEngine {
|
||||
* {@code UPDATED_NEED_REBOOT}, so your callback can remove any outstanding
|
||||
* notification that rebooting into the new system is possible.
|
||||
*/
|
||||
@SystemApi
|
||||
public void resetStatus() {
|
||||
try {
|
||||
mUpdateEngine.resetStatus();
|
||||
@@ -256,7 +246,6 @@ public class UpdateEngine {
|
||||
/**
|
||||
* Unbinds the last bound callback function.
|
||||
*/
|
||||
@SystemApi
|
||||
public boolean unbind() {
|
||||
synchronized (mUpdateEngineCallbackLock) {
|
||||
if (mUpdateEngineCallback == null) {
|
||||
@@ -281,7 +270,6 @@ public class UpdateEngine {
|
||||
* @param payloadMetadataFilename the location of the metadata without the
|
||||
* {@code file://} prefix.
|
||||
*/
|
||||
@SystemApi
|
||||
public boolean verifyPayloadMetadata(String payloadMetadataFilename) {
|
||||
try {
|
||||
return mUpdateEngine.verifyPayloadApplicable(payloadMetadataFilename);
|
||||
|
||||
@@ -37,7 +37,6 @@ public abstract class UpdateEngineCallback {
|
||||
* be one of the values from {@link UpdateEngine.UpdateStatusConstants},
|
||||
* and {@code percent} will be valid [TODO: in which cases?].
|
||||
*/
|
||||
@SystemApi
|
||||
public abstract void onStatusUpdate(int status, float percent);
|
||||
|
||||
/**
|
||||
@@ -45,6 +44,5 @@ public abstract class UpdateEngineCallback {
|
||||
* unsuccessfully. The value of {@code errorCode} will be one of the
|
||||
* values from {@link UpdateEngine.ErrorCodeConstants}.
|
||||
*/
|
||||
@SystemApi
|
||||
public abstract void onPayloadApplicationComplete(int errorCode);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
package android.service.notification;
|
||||
|
||||
import android.annotation.IntDef;
|
||||
import android.annotation.SystemApi;
|
||||
import android.content.Context;
|
||||
import android.net.Uri;
|
||||
import android.os.Parcel;
|
||||
@@ -35,7 +34,6 @@ import java.util.Objects;
|
||||
*/
|
||||
public final class Condition implements Parcelable {
|
||||
|
||||
@SystemApi
|
||||
public static final String SCHEME = "condition";
|
||||
|
||||
/** @hide */
|
||||
@@ -59,14 +57,10 @@ public final class Condition implements Parcelable {
|
||||
*/
|
||||
public static final int STATE_TRUE = 1;
|
||||
|
||||
@SystemApi
|
||||
public static final int STATE_UNKNOWN = 2;
|
||||
@SystemApi
|
||||
public static final int STATE_ERROR = 3;
|
||||
|
||||
@SystemApi
|
||||
public static final int FLAG_RELEVANT_NOW = 1 << 0;
|
||||
@SystemApi
|
||||
public static final int FLAG_RELEVANT_ALWAYS = 1 << 1;
|
||||
|
||||
/**
|
||||
@@ -81,9 +75,7 @@ public final class Condition implements Parcelable {
|
||||
*/
|
||||
public final String summary;
|
||||
|
||||
@SystemApi
|
||||
public final String line1;
|
||||
@SystemApi
|
||||
public final String line2;
|
||||
|
||||
/**
|
||||
@@ -94,9 +86,7 @@ public final class Condition implements Parcelable {
|
||||
@State
|
||||
public final int state;
|
||||
|
||||
@SystemApi
|
||||
public final int flags;
|
||||
@SystemApi
|
||||
public final int icon;
|
||||
|
||||
/**
|
||||
@@ -108,7 +98,6 @@ public final class Condition implements Parcelable {
|
||||
this(id, summary, "", "", -1, state, FLAG_RELEVANT_ALWAYS);
|
||||
}
|
||||
|
||||
@SystemApi
|
||||
public Condition(Uri id, String summary, String line1, String line2, int icon,
|
||||
int state, int flags) {
|
||||
if (id == null) throw new IllegalArgumentException("id is required");
|
||||
@@ -177,7 +166,6 @@ public final class Condition implements Parcelable {
|
||||
proto.end(token);
|
||||
}
|
||||
|
||||
@SystemApi
|
||||
public static String stateToString(int state) {
|
||||
if (state == STATE_FALSE) return "STATE_FALSE";
|
||||
if (state == STATE_TRUE) return "STATE_TRUE";
|
||||
@@ -186,7 +174,6 @@ public final class Condition implements Parcelable {
|
||||
throw new IllegalArgumentException("state is invalid: " + state);
|
||||
}
|
||||
|
||||
@SystemApi
|
||||
public static String relevanceToString(int flags) {
|
||||
final boolean now = (flags & FLAG_RELEVANT_NOW) != 0;
|
||||
final boolean always = (flags & FLAG_RELEVANT_ALWAYS) != 0;
|
||||
@@ -219,7 +206,6 @@ public final class Condition implements Parcelable {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@SystemApi
|
||||
public Condition copy() {
|
||||
final Parcel parcel = Parcel.obtain();
|
||||
try {
|
||||
@@ -231,14 +217,12 @@ public final class Condition implements Parcelable {
|
||||
}
|
||||
}
|
||||
|
||||
@SystemApi
|
||||
public static Uri.Builder newId(Context context) {
|
||||
return new Uri.Builder()
|
||||
.scheme(Condition.SCHEME)
|
||||
.authority(context.getPackageName());
|
||||
}
|
||||
|
||||
@SystemApi
|
||||
public static boolean isValidId(Uri id, String pkg) {
|
||||
return id != null && SCHEME.equals(id.getScheme()) && pkg.equals(id.getAuthority());
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
package android.service.notification;
|
||||
|
||||
import android.annotation.SdkConstant;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.TestApi;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.INotificationManager;
|
||||
@@ -107,7 +106,6 @@ public abstract class ConditionProviderService extends Service {
|
||||
*/
|
||||
abstract public void onConnected();
|
||||
|
||||
@SystemApi
|
||||
public void onRequestConditions(int relevance) {}
|
||||
|
||||
/**
|
||||
|
||||
@@ -80,7 +80,6 @@ public abstract class TextClassifierService extends Service {
|
||||
* {@link android.Manifest.permission#BIND_TEXTCLASSIFIER_SERVICE} permission so
|
||||
* that other applications can not abuse it.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final String SERVICE_INTERFACE =
|
||||
"android.service.textclassifier.TextClassifierService";
|
||||
|
||||
@@ -371,9 +370,7 @@ public abstract class TextClassifierService extends Service {
|
||||
* Callbacks for TextClassifierService results.
|
||||
*
|
||||
* @param <T> the type of the result
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public interface Callback<T> {
|
||||
/**
|
||||
* Returns the result.
|
||||
|
||||
@@ -1230,7 +1230,7 @@
|
||||
<!-- ================================== -->
|
||||
<eat-comment />
|
||||
|
||||
<!-- @SystemApi Allows an application (Phone) to send a request to other applications
|
||||
<!-- Allows an application (Phone) to send a request to other applications
|
||||
to handle the respond-via-message action during incoming calls.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.SEND_RESPOND_VIA_MESSAGE"
|
||||
@@ -1314,7 +1314,7 @@
|
||||
android:description="@string/permdesc_accessLocationExtraCommands"
|
||||
android:protectionLevel="normal" />
|
||||
|
||||
<!-- @SystemApi Allows an application to install a location provider into the Location Manager.
|
||||
<!-- Allows an application to install a location provider into the Location Manager.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.INSTALL_LOCATION_PROVIDER"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
@@ -1325,7 +1325,7 @@
|
||||
<permission android:name="android.permission.HDMI_CEC"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- @SystemApi Allows an application to use location features in hardware,
|
||||
<!-- Allows an application to use location features in hardware,
|
||||
such as the geofencing api.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.LOCATION_HARDWARE"
|
||||
@@ -1512,7 +1512,7 @@
|
||||
android:label="@string/permlab_bluetoothAdmin"
|
||||
android:protectionLevel="normal" />
|
||||
|
||||
<!-- @SystemApi Allows applications to pair bluetooth devices without user interaction, and to
|
||||
<!-- Allows applications to pair bluetooth devices without user interaction, and to
|
||||
allow or disallow phonebook access or message access.
|
||||
This is not available to third party applications. -->
|
||||
<permission android:name="android.permission.BLUETOOTH_PRIVILEGED"
|
||||
@@ -1602,7 +1602,7 @@
|
||||
android:label="@string/permlab_getAccounts" />
|
||||
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
|
||||
|
||||
<!-- @SystemApi Allows applications to call into AccountAuthenticators.
|
||||
<!-- Allows applications to call into AccountAuthenticators.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.ACCOUNT_MANAGER"
|
||||
android:protectionLevel="signature" />
|
||||
@@ -1775,7 +1775,7 @@
|
||||
<!-- =========================================== -->
|
||||
<eat-comment />
|
||||
|
||||
<!-- @SystemApi Allows modification of the telephony state - power on, mmi, etc.
|
||||
<!-- Allows modification of the telephony state - power on, mmi, etc.
|
||||
Does not include placing calls.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.MODIFY_PHONE_STATE"
|
||||
@@ -2206,7 +2206,7 @@
|
||||
<!-- ============================================ -->
|
||||
<eat-comment />
|
||||
|
||||
<!-- @SystemApi Allows applications to set the system time.
|
||||
<!-- Allows applications to set the system time.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.SET_TIME"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
@@ -2296,7 +2296,7 @@
|
||||
<permission android:name="android.permission.SET_SCREEN_COMPATIBILITY"
|
||||
android:protectionLevel="signature" />
|
||||
|
||||
<!-- @SystemApi Allows an application to modify the current configuration, such
|
||||
<!-- Allows an application to modify the current configuration, such
|
||||
as locale. -->
|
||||
<permission android:name="android.permission.CHANGE_CONFIGURATION"
|
||||
android:protectionLevel="signature|privileged|development" />
|
||||
@@ -2318,7 +2318,7 @@
|
||||
android:description="@string/permdesc_writeSettings"
|
||||
android:protectionLevel="signature|preinstalled|appop|pre23" />
|
||||
|
||||
<!-- @SystemApi Allows an application to modify the Google service map.
|
||||
<!-- Allows an application to modify the Google service map.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.WRITE_GSERVICES"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
@@ -2334,7 +2334,7 @@
|
||||
<permission android:name="android.permission.RETRIEVE_WINDOW_CONTENT"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- @SystemApi Modify the global animation scaling factor.
|
||||
<!-- Modify the global animation scaling factor.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.SET_ANIMATION_SCALE"
|
||||
android:protectionLevel="signature|privileged|development" />
|
||||
@@ -2389,12 +2389,12 @@
|
||||
android:description="@string/permdesc_broadcastSticky"
|
||||
android:protectionLevel="normal" />
|
||||
|
||||
<!-- @SystemApi Allows mounting and unmounting file systems for removable storage.
|
||||
<!-- Allows mounting and unmounting file systems for removable storage.
|
||||
<p>Not for use by third-party applications.-->
|
||||
<permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- @SystemApi Allows formatting file systems for removable storage.
|
||||
<!-- Allows formatting file systems for removable storage.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.MOUNT_FORMAT_FILESYSTEMS"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
@@ -2428,7 +2428,7 @@
|
||||
<permission android:name="android.permission.ASEC_RENAME"
|
||||
android:protectionLevel="signature" />
|
||||
|
||||
<!-- @SystemApi Allows applications to write the apn settings and read sensitive fields of
|
||||
<!-- Allows applications to write the apn settings and read sensitive fields of
|
||||
an existing apn settings like user and password.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.WRITE_APN_SETTINGS"
|
||||
@@ -2529,40 +2529,40 @@
|
||||
<!-- ========================================= -->
|
||||
<eat-comment />
|
||||
|
||||
<!-- @SystemApi Allows an application to read or write the secure system settings.
|
||||
<!-- Allows an application to read or write the secure system settings.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.WRITE_SECURE_SETTINGS"
|
||||
android:protectionLevel="signature|privileged|development" />
|
||||
|
||||
<!-- @SystemApi Allows an application to retrieve state dump information from system services.
|
||||
<!-- Allows an application to retrieve state dump information from system services.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.DUMP"
|
||||
android:protectionLevel="signature|privileged|development" />
|
||||
|
||||
<!-- @SystemApi Allows an application to read the low-level system log files.
|
||||
<!-- Allows an application to read the low-level system log files.
|
||||
<p>Not for use by third-party applications, because
|
||||
Log entries can contain the user's private information. -->
|
||||
<permission android:name="android.permission.READ_LOGS"
|
||||
android:protectionLevel="signature|privileged|development" />
|
||||
|
||||
<!-- @SystemApi Configure an application for debugging.
|
||||
<!-- Configure an application for debugging.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.SET_DEBUG_APP"
|
||||
android:protectionLevel="signature|privileged|development" />
|
||||
|
||||
<!-- @SystemApi Allows an application to set the maximum number of (not needed)
|
||||
<!-- Allows an application to set the maximum number of (not needed)
|
||||
application processes that can be running.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.SET_PROCESS_LIMIT"
|
||||
android:protectionLevel="signature|privileged|development" />
|
||||
|
||||
<!-- @SystemApi Allows an application to control whether activities are immediately
|
||||
<!-- Allows an application to control whether activities are immediately
|
||||
finished when put in the background.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.SET_ALWAYS_FINISH"
|
||||
android:protectionLevel="signature|privileged|development" />
|
||||
|
||||
<!-- @SystemApi Allow an application to request that a signal be sent to all persistent processes.
|
||||
<!-- Allow an application to request that a signal be sent to all persistent processes.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.SIGNAL_PERSISTENT_PROCESSES"
|
||||
android:protectionLevel="signature|privileged|development" />
|
||||
@@ -2572,7 +2572,7 @@
|
||||
<!-- ==================================== -->
|
||||
<eat-comment />
|
||||
|
||||
<!-- @SystemApi Allows access to the list of accounts in the Accounts Service. -->
|
||||
<!-- Allows access to the list of accounts in the Accounts Service. -->
|
||||
<permission android:name="android.permission.GET_ACCOUNTS_PRIVILEGED"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
@@ -2581,12 +2581,12 @@
|
||||
<permission android:name="android.permission.GET_PASSWORD"
|
||||
android:protectionLevel="signature" />
|
||||
|
||||
<!-- @SystemApi Allows applications to RW to diagnostic resources.
|
||||
<!-- Allows applications to RW to diagnostic resources.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.DIAGNOSTIC"
|
||||
android:protectionLevel="signature" />
|
||||
|
||||
<!-- @SystemApi Allows an application to open, close, or disable the status bar
|
||||
<!-- Allows an application to open, close, or disable the status bar
|
||||
and its icons.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.STATUS_BAR"
|
||||
@@ -2611,7 +2611,7 @@
|
||||
<permission android:name="android.permission.FORCE_BACK"
|
||||
android:protectionLevel="signature" />
|
||||
|
||||
<!-- @SystemApi Allows an application to update device statistics.
|
||||
<!-- Allows an application to update device statistics.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.UPDATE_DEVICE_STATS"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
@@ -3017,7 +3017,7 @@
|
||||
android:description="@string/permdesc_requestDeletePackages"
|
||||
android:protectionLevel="normal" />
|
||||
|
||||
<!-- @SystemApi Allows an application to install packages.
|
||||
<!-- Allows an application to install packages.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.INSTALL_PACKAGES"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
@@ -3090,7 +3090,7 @@
|
||||
<permission android:name="android.permission.FORCE_PERSISTABLE_URI_PERMISSIONS"
|
||||
android:protectionLevel="signature" />
|
||||
|
||||
<!-- @SystemApi Old permission for deleting an app's cache files, no longer used,
|
||||
<!-- Old permission for deleting an app's cache files, no longer used,
|
||||
but signals for us to quietly ignore calls instead of throwing an exception. -->
|
||||
<permission android:name="android.permission.DELETE_CACHE_FILES"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
@@ -3100,7 +3100,7 @@
|
||||
<permission android:name="android.permission.INTERNAL_DELETE_CACHE_FILES"
|
||||
android:protectionLevel="signature" />
|
||||
|
||||
<!-- @SystemApi Allows an application to delete packages.
|
||||
<!-- Allows an application to delete packages.
|
||||
<p>Not for use by third-party applications.
|
||||
<p>Starting in {@link android.os.Build.VERSION_CODES#N}, user confirmation is requested
|
||||
when the application deleting the package is not the same application that installed the
|
||||
@@ -3113,7 +3113,7 @@
|
||||
<permission android:name="android.permission.MOVE_PACKAGE"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- @SystemApi Allows an application to change whether an application component (other than its own) is
|
||||
<!-- Allows an application to change whether an application component (other than its own) is
|
||||
enabled or not.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"
|
||||
@@ -3146,7 +3146,7 @@
|
||||
<permission android:name="android.permission.ACCESS_SURFACE_FLINGER"
|
||||
android:protectionLevel="signature" />
|
||||
|
||||
<!-- @SystemApi Allows an application to take screen shots and more generally
|
||||
<!-- Allows an application to take screen shots and more generally
|
||||
get access to the frame buffer data.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.READ_FRAME_BUFFER"
|
||||
@@ -3222,7 +3222,7 @@
|
||||
android:protectionLevel="signature|privileged" />
|
||||
<uses-permission android:name="android.permission.CONTROL_VPN" />
|
||||
|
||||
<!-- @SystemApi Allows an application to capture audio output.
|
||||
<!-- Allows an application to capture audio output.
|
||||
<p>Not for use by third-party applications.</p> -->
|
||||
<permission android:name="android.permission.CAPTURE_AUDIO_OUTPUT"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
@@ -3239,17 +3239,17 @@
|
||||
<permission android:name="android.permission.MODIFY_AUDIO_ROUTING"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- @SystemApi Allows an application to capture video output.
|
||||
<!-- Allows an application to capture video output.
|
||||
<p>Not for use by third-party applications.</p> -->
|
||||
<permission android:name="android.permission.CAPTURE_VIDEO_OUTPUT"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- @SystemApi Allows an application to capture secure video output.
|
||||
<!-- Allows an application to capture secure video output.
|
||||
<p>Not for use by third-party applications.</p> -->
|
||||
<permission android:name="android.permission.CAPTURE_SECURE_VIDEO_OUTPUT"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- @SystemApi Allows an application to know what content is playing and control its playback.
|
||||
<!-- Allows an application to know what content is playing and control its playback.
|
||||
<p>Not for use by third-party applications due to privacy of media consumption</p> -->
|
||||
<permission android:name="android.permission.MEDIA_CONTENT_CONTROL"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
@@ -3276,7 +3276,7 @@
|
||||
<permission android:name="android.permission.BRICK"
|
||||
android:protectionLevel="signature" />
|
||||
|
||||
<!-- @SystemApi Required to be able to reboot the device.
|
||||
<!-- Required to be able to reboot the device.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.REBOOT"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
@@ -3331,11 +3331,11 @@
|
||||
<permission android:name="android.permission.BROADCAST_NETWORK_PRIVILEGED"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- @SystemApi Not for use by third-party applications. -->
|
||||
<!-- Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.MASTER_CLEAR"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- @SystemApi Allows an application to call any phone number, including emergency
|
||||
<!-- Allows an application to call any phone number, including emergency
|
||||
numbers, without going through the Dialer user interface for the user
|
||||
to confirm the call being placed.
|
||||
<p>Not for use by third-party applications. -->
|
||||
@@ -3350,19 +3350,19 @@
|
||||
<permission android:name="android.permission.PERFORM_SIM_ACTIVATION"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- @SystemApi Allows enabling/disabling location update notifications from
|
||||
<!-- Allows enabling/disabling location update notifications from
|
||||
the radio.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.CONTROL_LOCATION_UPDATES"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- @SystemApi Allows read/write access to the "properties" table in the checkin
|
||||
<!-- Allows read/write access to the "properties" table in the checkin
|
||||
database, to change values that get uploaded.
|
||||
<p>Not for use by third-party applications. -->
|
||||
<permission android:name="android.permission.ACCESS_CHECKIN_PROPERTIES"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- @SystemApi Allows an application to collect component usage
|
||||
<!-- Allows an application to collect component usage
|
||||
statistics
|
||||
<p>Declaring the permission implies intention to use the API and the user of the
|
||||
device can grant permission through the Settings application. -->
|
||||
@@ -3395,7 +3395,7 @@
|
||||
android:description="@string/permdesc_requestIgnoreBatteryOptimizations"
|
||||
android:protectionLevel="normal" />
|
||||
|
||||
<!-- @SystemApi Allows an application to collect battery statistics -->
|
||||
<!-- Allows an application to collect battery statistics -->
|
||||
<permission android:name="android.permission.BATTERY_STATS"
|
||||
android:protectionLevel="signature|privileged|development" />
|
||||
|
||||
@@ -3424,12 +3424,12 @@
|
||||
<permission android:name="android.permission.CONFIRM_FULL_BACKUP"
|
||||
android:protectionLevel="signature" />
|
||||
|
||||
<!-- @SystemApi Must be required by a {@link android.widget.RemoteViewsService},
|
||||
<!-- Must be required by a {@link android.widget.RemoteViewsService},
|
||||
to ensure that only the system can bind to it. -->
|
||||
<permission android:name="android.permission.BIND_REMOTEVIEWS"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- @SystemApi Allows an application to tell the AppWidget service which application
|
||||
<!-- Allows an application to tell the AppWidget service which application
|
||||
can access AppWidget's data. The normal user flow is that a user
|
||||
picks an AppWidget to go into a particular host, thereby giving that
|
||||
host application access to the private data from the AppWidget app.
|
||||
@@ -3460,7 +3460,7 @@
|
||||
<permission android:name="android.permission.CHANGE_BACKGROUND_DATA_SETTING"
|
||||
android:protectionLevel="signature" />
|
||||
|
||||
<!-- @SystemApi This permission can be used on content providers to allow the global
|
||||
<!-- This permission can be used on content providers to allow the global
|
||||
search system to access their data. Typically it used when the
|
||||
provider has some permissions protecting it (which global search
|
||||
would not be expected to hold), and added as a read-only permission
|
||||
|
||||
@@ -80,16 +80,12 @@ public final class AudioFocusInfo implements Parcelable {
|
||||
* The audio attributes for the audio focus request.
|
||||
* @return non-null {@link AudioAttributes}.
|
||||
*/
|
||||
@SystemApi
|
||||
public AudioAttributes getAttributes() { return mAttributes; }
|
||||
|
||||
@SystemApi
|
||||
public int getClientUid() { return mClientUid; }
|
||||
|
||||
@SystemApi
|
||||
public String getClientId() { return mClientId; }
|
||||
|
||||
@SystemApi
|
||||
public String getPackageName() { return mPackageName; }
|
||||
|
||||
/**
|
||||
@@ -99,7 +95,6 @@ public final class AudioFocusInfo implements Parcelable {
|
||||
* {@link AudioManager#AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK},
|
||||
* {@link AudioManager#AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE}.
|
||||
*/
|
||||
@SystemApi
|
||||
public int getGainRequest() { return mGainRequest; }
|
||||
|
||||
/**
|
||||
@@ -109,7 +104,6 @@ public final class AudioFocusInfo implements Parcelable {
|
||||
* {@link AudioManager#AUDIOFOCUS_LOSS_TRANSIENT} or
|
||||
* {@link AudioManager#AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK}.
|
||||
*/
|
||||
@SystemApi
|
||||
public int getLossReceived() { return mLossReceived; }
|
||||
|
||||
/** @hide */
|
||||
@@ -124,7 +118,6 @@ public final class AudioFocusInfo implements Parcelable {
|
||||
* {@link AudioManager#AUDIOFOCUS_FLAG_PAUSES_ON_DUCKABLE_LOSS}, and
|
||||
* {@link AudioManager#AUDIOFOCUS_FLAG_LOCK}.
|
||||
*/
|
||||
@SystemApi
|
||||
public int getFlags() { return mFlags; }
|
||||
|
||||
@Override
|
||||
|
||||
@@ -81,14 +81,12 @@ public class AudioMix {
|
||||
* An audio mix behavior where the output of the mix is sent to the original destination of
|
||||
* the audio signal, i.e. an output device for an output mix, or a recording for an input mix.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int ROUTE_FLAG_RENDER = 0x1;
|
||||
/**
|
||||
* An audio mix behavior where the output of the mix is rerouted back to the framework and
|
||||
* is accessible for injection or capture through the {@link AudioTrack} and {@link AudioRecord}
|
||||
* APIs.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int ROUTE_FLAG_LOOP_BACK = 0x1 << 1;
|
||||
|
||||
private static final int ROUTE_FLAG_SUPPORTED = ROUTE_FLAG_RENDER | ROUTE_FLAG_LOOP_BACK;
|
||||
@@ -113,31 +111,23 @@ public class AudioMix {
|
||||
|
||||
// MIX_STATE_* values to keep in sync with frameworks/av/include/media/AudioPolicy.h
|
||||
/**
|
||||
* @hide
|
||||
* State of a mix before its policy is enabled.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int MIX_STATE_DISABLED = -1;
|
||||
/**
|
||||
* @hide
|
||||
* State of a mix when there is no audio to mix.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int MIX_STATE_IDLE = 0;
|
||||
/**
|
||||
* @hide
|
||||
* State of a mix that is actively mixing audio.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int MIX_STATE_MIXING = 1;
|
||||
|
||||
/**
|
||||
* @hide
|
||||
* The current mixing state.
|
||||
* @return one of {@link #MIX_STATE_DISABLED}, {@link #MIX_STATE_IDLE},
|
||||
* {@link #MIX_STATE_MIXING}.
|
||||
*/
|
||||
@SystemApi
|
||||
public int getMixState() {
|
||||
return mMixState;
|
||||
}
|
||||
@@ -201,9 +191,7 @@ public class AudioMix {
|
||||
|
||||
/**
|
||||
* Builder class for {@link AudioMix} objects
|
||||
*
|
||||
*/
|
||||
@SystemApi
|
||||
public static class Builder {
|
||||
private AudioMixingRule mRule = null;
|
||||
private AudioFormat mFormat = null;
|
||||
@@ -224,7 +212,6 @@ public class AudioMix {
|
||||
* @param rule a non-null {@link AudioMixingRule} instance.
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
@SystemApi
|
||||
public Builder(AudioMixingRule rule)
|
||||
throws IllegalArgumentException {
|
||||
if (rule == null) {
|
||||
@@ -284,7 +271,6 @@ public class AudioMix {
|
||||
* @return the same Builder instance.
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
@SystemApi
|
||||
public Builder setFormat(AudioFormat format)
|
||||
throws IllegalArgumentException {
|
||||
if (format == null) {
|
||||
@@ -302,7 +288,6 @@ public class AudioMix {
|
||||
* @return the same Builder instance.
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
@SystemApi
|
||||
public Builder setRouteFlags(@RouteFlags int routeFlags)
|
||||
throws IllegalArgumentException {
|
||||
if (routeFlags == 0) {
|
||||
@@ -329,7 +314,6 @@ public class AudioMix {
|
||||
* @return the same Builder instance
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
@SystemApi
|
||||
public Builder setDevice(@NonNull AudioDeviceInfo device) throws IllegalArgumentException {
|
||||
if (device == null) {
|
||||
throw new IllegalArgumentException("Illegal null AudioDeviceInfo argument");
|
||||
@@ -347,7 +331,6 @@ public class AudioMix {
|
||||
* @return a new {@link AudioMix} object
|
||||
* @throws IllegalArgumentException if no {@link AudioMixingRule} has been set.
|
||||
*/
|
||||
@SystemApi
|
||||
public AudioMix build() throws IllegalArgumentException {
|
||||
if (mRule == null) {
|
||||
throw new IllegalArgumentException("Illegal null AudioMixingRule");
|
||||
|
||||
@@ -54,7 +54,6 @@ public class AudioMixingRule {
|
||||
* {@link Builder#addMixRule(int, Object)} where the Object parameter is an instance of
|
||||
* {@link AudioAttributes}.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int RULE_MATCH_ATTRIBUTE_USAGE = 0x1;
|
||||
/**
|
||||
* A rule requiring the capture preset information of the {@link AudioAttributes} to match.
|
||||
@@ -62,14 +61,12 @@ public class AudioMixingRule {
|
||||
* {@link Builder#addMixRule(int, Object)} where the Object parameter is an instance of
|
||||
* {@link AudioAttributes}.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int RULE_MATCH_ATTRIBUTE_CAPTURE_PRESET = 0x1 << 1;
|
||||
/**
|
||||
* A rule requiring the UID of the audio stream to match that specified.
|
||||
* This mixing rule can be added with {@link Builder#addMixRule(int, Object)} where the Object
|
||||
* parameter is an instance of {@link java.lang.Integer}.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int RULE_MATCH_UID = 0x1 << 2;
|
||||
|
||||
private final static int RULE_EXCLUSION_MASK = 0x8000;
|
||||
@@ -239,7 +236,6 @@ public class AudioMixingRule {
|
||||
/**
|
||||
* Builder class for {@link AudioMixingRule} objects
|
||||
*/
|
||||
@SystemApi
|
||||
public static class Builder {
|
||||
private ArrayList<AudioMixMatchCriterion> mCriteria;
|
||||
private int mTargetMixType = AudioMix.MIX_TYPE_INVALID;
|
||||
@@ -247,7 +243,6 @@ public class AudioMixingRule {
|
||||
/**
|
||||
* Constructs a new Builder with no rules.
|
||||
*/
|
||||
@SystemApi
|
||||
public Builder() {
|
||||
mCriteria = new ArrayList<AudioMixMatchCriterion>();
|
||||
}
|
||||
@@ -262,7 +257,6 @@ public class AudioMixingRule {
|
||||
* @throws IllegalArgumentException
|
||||
* @see #excludeRule(AudioAttributes, int)
|
||||
*/
|
||||
@SystemApi
|
||||
public Builder addRule(AudioAttributes attrToMatch, int rule)
|
||||
throws IllegalArgumentException {
|
||||
if (!isValidAttributesSystemApiRule(rule)) {
|
||||
@@ -291,7 +285,6 @@ public class AudioMixingRule {
|
||||
* @throws IllegalArgumentException
|
||||
* @see #addRule(AudioAttributes, int)
|
||||
*/
|
||||
@SystemApi
|
||||
public Builder excludeRule(AudioAttributes attrToMatch, int rule)
|
||||
throws IllegalArgumentException {
|
||||
if (!isValidAttributesSystemApiRule(rule)) {
|
||||
@@ -313,7 +306,6 @@ public class AudioMixingRule {
|
||||
* @throws IllegalArgumentException
|
||||
* @see #excludeMixRule(int, Object)
|
||||
*/
|
||||
@SystemApi
|
||||
public Builder addMixRule(int rule, Object property) throws IllegalArgumentException {
|
||||
if (!isValidSystemApiRule(rule)) {
|
||||
throw new IllegalArgumentException("Illegal rule value " + rule);
|
||||
@@ -343,7 +335,6 @@ public class AudioMixingRule {
|
||||
* @return the same Builder instance.
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
@SystemApi
|
||||
public Builder excludeMixRule(int rule, Object property) throws IllegalArgumentException {
|
||||
if (!isValidSystemApiRule(rule)) {
|
||||
throw new IllegalArgumentException("Illegal rule value " + rule);
|
||||
|
||||
@@ -58,12 +58,10 @@ public class AudioPolicy {
|
||||
/**
|
||||
* The status of an audio policy that is valid but cannot be used because it is not registered.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int POLICY_STATUS_UNREGISTERED = 1;
|
||||
/**
|
||||
* The status of an audio policy that is valid, successfully registered and thus active.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int POLICY_STATUS_REGISTERED = 2;
|
||||
|
||||
private int mStatus;
|
||||
@@ -75,7 +73,6 @@ public class AudioPolicy {
|
||||
* The behavior of a policy with regards to audio focus where it relies on the application
|
||||
* to do the ducking, the is the legacy and default behavior.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int FOCUS_POLICY_DUCKING_IN_APP = 0;
|
||||
public static final int FOCUS_POLICY_DUCKING_DEFAULT = FOCUS_POLICY_DUCKING_IN_APP;
|
||||
/**
|
||||
@@ -85,7 +82,6 @@ public class AudioPolicy {
|
||||
* <br>Can only be used after having set a listener with
|
||||
* {@link AudioPolicy#setAudioPolicyFocusListener(AudioPolicyFocusListener)}.
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int FOCUS_POLICY_DUCKING_IN_POLICY = 1;
|
||||
|
||||
private AudioPolicyFocusListener mFocusListener;
|
||||
@@ -133,7 +129,6 @@ public class AudioPolicy {
|
||||
* Builder class for {@link AudioPolicy} objects.
|
||||
* By default the policy to be created doesn't govern audio focus decisions.
|
||||
*/
|
||||
@SystemApi
|
||||
public static class Builder {
|
||||
private ArrayList<AudioMix> mMixes;
|
||||
private Context mContext;
|
||||
@@ -147,7 +142,6 @@ public class AudioPolicy {
|
||||
* Constructs a new Builder with no audio mixes.
|
||||
* @param context the context for the policy
|
||||
*/
|
||||
@SystemApi
|
||||
public Builder(Context context) {
|
||||
mMixes = new ArrayList<AudioMix>();
|
||||
mContext = context;
|
||||
@@ -159,7 +153,6 @@ public class AudioPolicy {
|
||||
* @return the same Builder instance.
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
@SystemApi
|
||||
public Builder addMix(@NonNull AudioMix mix) throws IllegalArgumentException {
|
||||
if (mix == null) {
|
||||
throw new IllegalArgumentException("Illegal null AudioMix argument");
|
||||
@@ -174,7 +167,6 @@ public class AudioPolicy {
|
||||
* @return the same Builder instance.
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
@SystemApi
|
||||
public Builder setLooper(@NonNull Looper looper) throws IllegalArgumentException {
|
||||
if (looper == null) {
|
||||
throw new IllegalArgumentException("Illegal null Looper argument");
|
||||
@@ -187,7 +179,6 @@ public class AudioPolicy {
|
||||
* Sets the audio focus listener for the policy.
|
||||
* @param l a {@link AudioPolicy.AudioPolicyFocusListener}
|
||||
*/
|
||||
@SystemApi
|
||||
public void setAudioPolicyFocusListener(AudioPolicyFocusListener l) {
|
||||
mFocusListener = l;
|
||||
}
|
||||
@@ -201,7 +192,6 @@ public class AudioPolicy {
|
||||
* @param enforce true if the policy will govern audio focus decisions.
|
||||
* @return the same Builder instance.
|
||||
*/
|
||||
@SystemApi
|
||||
public Builder setIsAudioFocusPolicy(boolean isFocusPolicy) {
|
||||
mIsFocusPolicy = isFocusPolicy;
|
||||
return this;
|
||||
@@ -211,12 +201,10 @@ public class AudioPolicy {
|
||||
* Sets the audio policy status listener.
|
||||
* @param l a {@link AudioPolicy.AudioPolicyStatusListener}
|
||||
*/
|
||||
@SystemApi
|
||||
public void setAudioPolicyStatusListener(AudioPolicyStatusListener l) {
|
||||
mStatusListener = l;
|
||||
}
|
||||
|
||||
@SystemApi
|
||||
/**
|
||||
* Sets the callback to receive all volume key-related events.
|
||||
* The callback will only be called if the device is configured to handle volume events
|
||||
@@ -240,7 +228,6 @@ public class AudioPolicy {
|
||||
* {@link AudioPolicy.AudioPolicyStatusListener} but the policy was configured
|
||||
* as an audio focus policy with {@link #setIsAudioFocusPolicy(boolean)}.
|
||||
*/
|
||||
@SystemApi
|
||||
public AudioPolicy build() {
|
||||
if (mStatusListener != null) {
|
||||
// the AudioPolicy status listener includes updates on each mix activity state
|
||||
@@ -258,7 +245,6 @@ public class AudioPolicy {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
* Update the current configuration of the set of audio mixes by adding new ones, while
|
||||
* keeping the policy registered.
|
||||
* This method can only be called on a registered policy.
|
||||
@@ -266,7 +252,6 @@ public class AudioPolicy {
|
||||
* @return {@link AudioManager#SUCCESS} if the change was successful, {@link AudioManager#ERROR}
|
||||
* otherwise.
|
||||
*/
|
||||
@SystemApi
|
||||
public int attachMixes(@NonNull List<AudioMix> mixes) {
|
||||
if (mixes == null) {
|
||||
throw new IllegalArgumentException("Illegal null list of AudioMix");
|
||||
@@ -299,7 +284,6 @@ public class AudioPolicy {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
* Update the current configuration of the set of audio mixes by removing some, while
|
||||
* keeping the policy registered.
|
||||
* This method can only be called on a registered policy.
|
||||
@@ -307,7 +291,6 @@ public class AudioPolicy {
|
||||
* @return {@link AudioManager#SUCCESS} if the change was successful, {@link AudioManager#ERROR}
|
||||
* otherwise.
|
||||
*/
|
||||
@SystemApi
|
||||
public int detachMixes(@NonNull List<AudioMix> mixes) {
|
||||
if (mixes == null) {
|
||||
throw new IllegalArgumentException("Illegal null list of AudioMix");
|
||||
@@ -405,7 +388,6 @@ public class AudioPolicy {
|
||||
* Returns the current behavior for audio focus-related ducking.
|
||||
* @return {@link #FOCUS_POLICY_DUCKING_IN_APP} or {@link #FOCUS_POLICY_DUCKING_IN_POLICY}
|
||||
*/
|
||||
@SystemApi
|
||||
public int getFocusDuckingBehavior() {
|
||||
return mConfig.mDuckingPolicy;
|
||||
}
|
||||
@@ -422,7 +404,6 @@ public class AudioPolicy {
|
||||
* @throws IllegalArgumentException
|
||||
* @throws IllegalStateException
|
||||
*/
|
||||
@SystemApi
|
||||
public int setFocusDuckingBehavior(int behavior)
|
||||
throws IllegalArgumentException, IllegalStateException {
|
||||
if ((behavior != FOCUS_POLICY_DUCKING_IN_APP)
|
||||
@@ -466,7 +447,6 @@ public class AudioPolicy {
|
||||
* with {@link AudioManager#registerAudioPolicy(AudioPolicy)}.
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
@SystemApi
|
||||
public AudioRecord createAudioRecordSink(AudioMix mix) throws IllegalArgumentException {
|
||||
if (!policyReadyToUse()) {
|
||||
Log.e(TAG, "Cannot create AudioRecord sink for AudioMix");
|
||||
@@ -506,7 +486,6 @@ public class AudioPolicy {
|
||||
* with {@link AudioManager#registerAudioPolicy(AudioPolicy)}.
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
@SystemApi
|
||||
public AudioTrack createAudioTrackSource(AudioMix mix) throws IllegalArgumentException {
|
||||
if (!policyReadyToUse()) {
|
||||
Log.e(TAG, "Cannot create AudioTrack source for AudioMix");
|
||||
@@ -528,18 +507,15 @@ public class AudioPolicy {
|
||||
return at;
|
||||
}
|
||||
|
||||
@SystemApi
|
||||
public int getStatus() {
|
||||
return mStatus;
|
||||
}
|
||||
|
||||
@SystemApi
|
||||
public static abstract class AudioPolicyStatusListener {
|
||||
public void onStatusChange() {}
|
||||
public void onMixStateUpdate(AudioMix mix) {}
|
||||
}
|
||||
|
||||
@SystemApi
|
||||
public static abstract class AudioPolicyFocusListener {
|
||||
public void onAudioFocusGrant(AudioFocusInfo afi, int requestResult) {}
|
||||
public void onAudioFocusLoss(AudioFocusInfo afi, boolean wasNotified) {}
|
||||
@@ -563,7 +539,6 @@ public class AudioPolicy {
|
||||
public void onAudioFocusAbandon(AudioFocusInfo afi) {}
|
||||
}
|
||||
|
||||
@SystemApi
|
||||
/**
|
||||
* Callback class to receive volume change-related events.
|
||||
* See {@link #Builder.setAudioPolicyVolumeCallback(AudioPolicyCallback)} to configure the
|
||||
|
||||
@@ -1330,7 +1330,6 @@ public final class TvInputManager {
|
||||
*
|
||||
* @return the list of content ratings blocked by the user.
|
||||
*/
|
||||
@SystemApi
|
||||
public List<TvContentRating> getBlockedRatings() {
|
||||
try {
|
||||
List<TvContentRating> ratings = new ArrayList<>();
|
||||
|
||||
@@ -1462,7 +1462,6 @@ public class TelecomManager {
|
||||
* otherwise.
|
||||
*/
|
||||
@RequiresPermission(Manifest.permission.ANSWER_PHONE_CALLS)
|
||||
@SystemApi
|
||||
public boolean endCall() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
@@ -1539,7 +1538,6 @@ public class TelecomManager {
|
||||
/**
|
||||
* Returns whether TTY is supported on this device.
|
||||
*/
|
||||
@SystemApi
|
||||
@RequiresPermission(anyOf = {
|
||||
android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE,
|
||||
android.Manifest.permission.READ_PHONE_STATE
|
||||
|
||||
@@ -403,7 +403,6 @@ public class CarrierConfigManager {
|
||||
* @see SubscriptionManager#getSubscriptionPlans(int)
|
||||
* @see SubscriptionManager#setSubscriptionPlans(int, java.util.List)
|
||||
*/
|
||||
@SystemApi
|
||||
public static final String KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING =
|
||||
"config_plans_package_override_string";
|
||||
|
||||
|
||||
@@ -365,7 +365,6 @@ public final class SmsManager {
|
||||
*
|
||||
* @see #sendTextMessage(String, String, String, PendingIntent, PendingIntent)
|
||||
*/
|
||||
@SystemApi
|
||||
@SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges
|
||||
@RequiresPermission(allOf = {
|
||||
android.Manifest.permission.MODIFY_PHONE_STATE,
|
||||
|
||||
@@ -635,7 +635,6 @@ public class SubscriptionManager {
|
||||
* the user is interested in.
|
||||
*/
|
||||
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
|
||||
@SystemApi
|
||||
public static final String ACTION_MANAGE_SUBSCRIPTION_PLANS
|
||||
= "android.telephony.action.MANAGE_SUBSCRIPTION_PLANS";
|
||||
|
||||
@@ -655,7 +654,6 @@ public class SubscriptionManager {
|
||||
* {@code android.permission.MANAGE_SUBSCRIPTION_PLANS} permission.
|
||||
*/
|
||||
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
|
||||
@SystemApi
|
||||
public static final String ACTION_REFRESH_SUBSCRIPTION_PLANS
|
||||
= "android.telephony.action.REFRESH_SUBSCRIPTION_PLANS";
|
||||
|
||||
@@ -2043,7 +2041,6 @@ public class SubscriptionManager {
|
||||
* @throws SecurityException if the caller doesn't meet the requirements
|
||||
* outlined above.
|
||||
*/
|
||||
@SystemApi
|
||||
public @NonNull List<SubscriptionPlan> getSubscriptionPlans(int subId) {
|
||||
try {
|
||||
SubscriptionPlan[] subscriptionPlans =
|
||||
@@ -2075,7 +2072,6 @@ public class SubscriptionManager {
|
||||
* @throws SecurityException if the caller doesn't meet the requirements
|
||||
* outlined above.
|
||||
*/
|
||||
@SystemApi
|
||||
public void setSubscriptionPlans(int subId, @NonNull List<SubscriptionPlan> plans) {
|
||||
try {
|
||||
getNetworkPolicy().setSubscriptionPlans(subId,
|
||||
@@ -2117,7 +2113,6 @@ public class SubscriptionManager {
|
||||
* @throws SecurityException if the caller doesn't meet the requirements
|
||||
* outlined above.
|
||||
*/
|
||||
@SystemApi
|
||||
public void setSubscriptionOverrideUnmetered(int subId, boolean overrideUnmetered,
|
||||
@DurationMillisLong long timeoutMillis) {
|
||||
try {
|
||||
@@ -2153,7 +2148,6 @@ public class SubscriptionManager {
|
||||
* @throws SecurityException if the caller doesn't meet the requirements
|
||||
* outlined above.
|
||||
*/
|
||||
@SystemApi
|
||||
public void setSubscriptionOverrideCongested(int subId, boolean overrideCongested,
|
||||
@DurationMillisLong long timeoutMillis) {
|
||||
try {
|
||||
|
||||
@@ -45,7 +45,6 @@ import java.util.Objects;
|
||||
* @see SubscriptionManager#setSubscriptionPlans(int, java.util.List)
|
||||
* @see SubscriptionManager#getSubscriptionPlans(int)
|
||||
*/
|
||||
@SystemApi
|
||||
public final class SubscriptionPlan implements Parcelable {
|
||||
/** {@hide} */
|
||||
@IntDef(prefix = "LIMIT_BEHAVIOR_", value = {
|
||||
|
||||
@@ -125,7 +125,6 @@ public class DataServiceCallback {
|
||||
*
|
||||
* @param result The result code. Must be one of the {@link ResultCode}.
|
||||
*/
|
||||
@SystemApi
|
||||
public void onSetDataProfileComplete(@ResultCode int result) {
|
||||
IDataServiceCallback callback = mCallback.get();
|
||||
if (callback != null) {
|
||||
|
||||
@@ -1550,7 +1550,6 @@ public class WifiManager {
|
||||
/**
|
||||
* @return true if this adapter supports Device-to-AP RTT
|
||||
*/
|
||||
@SystemApi
|
||||
public boolean isDeviceToApRttSupported() {
|
||||
return isFeatureSupported(WIFI_FEATURE_D2AP_RTT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user