HELLO·Android
系统源代码
IT资讯
技术文章
我的收藏
注册
登录
-
我收藏的文章
创建代码块
我的代码块
我的账号
Android 10
|
10.0.0_r6
下载
查看原文件
收藏
根目录
prebuilts
sdk
29
system
api
android.txt
// Signature format: 2.0 package android { public static final class Manifest.permission { field public static final String ACCESS_AMBIENT_LIGHT_STATS = "android.permission.ACCESS_AMBIENT_LIGHT_STATS"; field public static final String ACCESS_BROADCAST_RADIO = "android.permission.ACCESS_BROADCAST_RADIO"; field public static final String ACCESS_CACHE_FILESYSTEM = "android.permission.ACCESS_CACHE_FILESYSTEM"; field public static final String ACCESS_DRM_CERTIFICATES = "android.permission.ACCESS_DRM_CERTIFICATES"; field @Deprecated public static final String ACCESS_FM_RADIO = "android.permission.ACCESS_FM_RADIO"; field public static final String ACCESS_INSTANT_APPS = "android.permission.ACCESS_INSTANT_APPS"; field public static final String ACCESS_MOCK_LOCATION = "android.permission.ACCESS_MOCK_LOCATION"; field public static final String ACCESS_MTP = "android.permission.ACCESS_MTP"; field public static final String ACCESS_NETWORK_CONDITIONS = "android.permission.ACCESS_NETWORK_CONDITIONS"; field public static final String ACCESS_NOTIFICATIONS = "android.permission.ACCESS_NOTIFICATIONS"; field public static final String ACCESS_SHARED_LIBRARIES = "android.permission.ACCESS_SHARED_LIBRARIES"; field public static final String ACCESS_SHORTCUTS = "android.permission.ACCESS_SHORTCUTS"; field public static final String ACCESS_SURFACE_FLINGER = "android.permission.ACCESS_SURFACE_FLINGER"; field public static final String ACTIVITY_EMBEDDING = "android.permission.ACTIVITY_EMBEDDING"; field public static final String ADJUST_RUNTIME_PERMISSIONS_POLICY = "android.permission.ADJUST_RUNTIME_PERMISSIONS_POLICY"; field public static final String ALLOCATE_AGGRESSIVE = "android.permission.ALLOCATE_AGGRESSIVE"; field public static final String ALLOW_ANY_CODEC_FOR_PLAYBACK = "android.permission.ALLOW_ANY_CODEC_FOR_PLAYBACK"; field public static final String AMBIENT_WALLPAPER = "android.permission.AMBIENT_WALLPAPER"; field public static final String APPROVE_INCIDENT_REPORTS = "android.permission.APPROVE_INCIDENT_REPORTS"; field public static final String BACKUP = "android.permission.BACKUP"; field public static final String BIND_ATTENTION_SERVICE = "android.permission.BIND_ATTENTION_SERVICE"; field public static final String BIND_AUGMENTED_AUTOFILL_SERVICE = "android.permission.BIND_AUGMENTED_AUTOFILL_SERVICE"; field @Deprecated public static final String BIND_CONNECTION_SERVICE = "android.permission.BIND_CONNECTION_SERVICE"; field public static final String BIND_CONTENT_CAPTURE_SERVICE = "android.permission.BIND_CONTENT_CAPTURE_SERVICE"; field public static final String BIND_CONTENT_SUGGESTIONS_SERVICE = "android.permission.BIND_CONTENT_SUGGESTIONS_SERVICE"; field public static final String BIND_DIRECTORY_SEARCH = "android.permission.BIND_DIRECTORY_SEARCH"; field public static final String BIND_EUICC_SERVICE = "android.permission.BIND_EUICC_SERVICE"; field public static final String BIND_IMS_SERVICE = "android.permission.BIND_IMS_SERVICE"; field public static final String BIND_KEYGUARD_APPWIDGET = "android.permission.BIND_KEYGUARD_APPWIDGET"; field public static final String BIND_NETWORK_RECOMMENDATION_SERVICE = "android.permission.BIND_NETWORK_RECOMMENDATION_SERVICE"; field public static final String BIND_NOTIFICATION_ASSISTANT_SERVICE = "android.permission.BIND_NOTIFICATION_ASSISTANT_SERVICE"; field public static final String BIND_PHONE_ACCOUNT_SUGGESTION_SERVICE = "android.permission.BIND_PHONE_ACCOUNT_SUGGESTION_SERVICE"; field public static final String BIND_PRINT_RECOMMENDATION_SERVICE = "android.permission.BIND_PRINT_RECOMMENDATION_SERVICE"; field public static final String BIND_RESOLVER_RANKER_SERVICE = "android.permission.BIND_RESOLVER_RANKER_SERVICE"; field public static final String BIND_RUNTIME_PERMISSION_PRESENTER_SERVICE = "android.permission.BIND_RUNTIME_PERMISSION_PRESENTER_SERVICE"; field public static final String BIND_SETTINGS_SUGGESTIONS_SERVICE = "android.permission.BIND_SETTINGS_SUGGESTIONS_SERVICE"; field public static final String BIND_SOUND_TRIGGER_DETECTION_SERVICE = "android.permission.BIND_SOUND_TRIGGER_DETECTION_SERVICE"; field public static final String BIND_TELEPHONY_DATA_SERVICE = "android.permission.BIND_TELEPHONY_DATA_SERVICE"; field public static final String BIND_TELEPHONY_NETWORK_SERVICE = "android.permission.BIND_TELEPHONY_NETWORK_SERVICE"; field public static final String BIND_TEXTCLASSIFIER_SERVICE = "android.permission.BIND_TEXTCLASSIFIER_SERVICE"; field public static final String BIND_TRUST_AGENT = "android.permission.BIND_TRUST_AGENT"; field public static final String BIND_TV_REMOTE_SERVICE = "android.permission.BIND_TV_REMOTE_SERVICE"; field public static final String BRICK = "android.permission.BRICK"; field public static final String BRIGHTNESS_SLIDER_USAGE = "android.permission.BRIGHTNESS_SLIDER_USAGE"; field @Deprecated public static final String BROADCAST_NETWORK_PRIVILEGED = "android.permission.BROADCAST_NETWORK_PRIVILEGED"; field public static final String CAMERA_DISABLE_TRANSMIT_LED = "android.permission.CAMERA_DISABLE_TRANSMIT_LED"; field public static final String CAPTURE_AUDIO_HOTWORD = "android.permission.CAPTURE_AUDIO_HOTWORD"; field public static final String CAPTURE_MEDIA_OUTPUT = "android.permission.CAPTURE_MEDIA_OUTPUT"; field public static final String CAPTURE_TV_INPUT = "android.permission.CAPTURE_TV_INPUT"; field public static final String CHANGE_APP_IDLE_STATE = "android.permission.CHANGE_APP_IDLE_STATE"; field public static final String CHANGE_DEVICE_IDLE_TEMP_WHITELIST = "android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST"; field public static final String CLEAR_APP_USER_DATA = "android.permission.CLEAR_APP_USER_DATA"; field public static final String CONFIGURE_DISPLAY_BRIGHTNESS = "android.permission.CONFIGURE_DISPLAY_BRIGHTNESS"; field public static final String CONNECTIVITY_INTERNAL = "android.permission.CONNECTIVITY_INTERNAL"; field public static final String CONNECTIVITY_USE_RESTRICTED_NETWORKS = "android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS"; field public static final String CONTROL_DISPLAY_COLOR_TRANSFORMS = "android.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS"; field public static final String CONTROL_DISPLAY_SATURATION = "android.permission.CONTROL_DISPLAY_SATURATION"; field public static final String CONTROL_INCALL_EXPERIENCE = "android.permission.CONTROL_INCALL_EXPERIENCE"; field public static final String CONTROL_KEYGUARD_SECURE_NOTIFICATIONS = "android.permission.CONTROL_KEYGUARD_SECURE_NOTIFICATIONS"; field public static final String CONTROL_VPN = "android.permission.CONTROL_VPN"; field public static final String CRYPT_KEEPER = "android.permission.CRYPT_KEEPER"; field public static final String DEVICE_POWER = "android.permission.DEVICE_POWER"; field public static final String DISPATCH_PROVISIONING_MESSAGE = "android.permission.DISPATCH_PROVISIONING_MESSAGE"; field public static final String FORCE_BACK = "android.permission.FORCE_BACK"; field public static final String FORCE_STOP_PACKAGES = "android.permission.FORCE_STOP_PACKAGES"; field public static final String GET_APP_OPS_STATS = "android.permission.GET_APP_OPS_STATS"; field public static final String GET_PROCESS_STATE_AND_OOM_SCORE = "android.permission.GET_PROCESS_STATE_AND_OOM_SCORE"; field public static final String GET_RUNTIME_PERMISSIONS = "android.permission.GET_RUNTIME_PERMISSIONS"; field public static final String GET_TOP_ACTIVITY_INFO = "android.permission.GET_TOP_ACTIVITY_INFO"; field public static final String GRANT_PROFILE_OWNER_DEVICE_IDS_ACCESS = "android.permission.GRANT_PROFILE_OWNER_DEVICE_IDS_ACCESS"; field public static final String GRANT_RUNTIME_PERMISSIONS = "android.permission.GRANT_RUNTIME_PERMISSIONS"; field public static final String HARDWARE_TEST = "android.permission.HARDWARE_TEST"; field public static final String HDMI_CEC = "android.permission.HDMI_CEC"; field public static final String HIDE_NON_SYSTEM_OVERLAY_WINDOWS = "android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS"; field public static final String INJECT_EVENTS = "android.permission.INJECT_EVENTS"; field public static final String INSTALL_DYNAMIC_SYSTEM = "android.permission.INSTALL_DYNAMIC_SYSTEM"; field public static final String INSTALL_GRANT_RUNTIME_PERMISSIONS = "android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS"; field public static final String INSTALL_PACKAGE_UPDATES = "android.permission.INSTALL_PACKAGE_UPDATES"; field public static final String INSTALL_SELF_UPDATES = "android.permission.INSTALL_SELF_UPDATES"; field public static final String INTENT_FILTER_VERIFICATION_AGENT = "android.permission.INTENT_FILTER_VERIFICATION_AGENT"; field public static final String INTERACT_ACROSS_PROFILES = "android.permission.INTERACT_ACROSS_PROFILES"; field public static final String INTERACT_ACROSS_USERS = "android.permission.INTERACT_ACROSS_USERS"; field public static final String INTERACT_ACROSS_USERS_FULL = "android.permission.INTERACT_ACROSS_USERS_FULL"; field public static final String INTERNAL_SYSTEM_WINDOW = "android.permission.INTERNAL_SYSTEM_WINDOW"; field public static final String INVOKE_CARRIER_SETUP = "android.permission.INVOKE_CARRIER_SETUP"; field public static final String KILL_UID = "android.permission.KILL_UID"; field public static final String LOCAL_MAC_ADDRESS = "android.permission.LOCAL_MAC_ADDRESS"; field public static final String LOCK_DEVICE = "android.permission.LOCK_DEVICE"; field public static final String LOOP_RADIO = "android.permission.LOOP_RADIO"; field public static final String MANAGE_ACCESSIBILITY = "android.permission.MANAGE_ACCESSIBILITY"; field public static final String MANAGE_ACTIVITY_STACKS = "android.permission.MANAGE_ACTIVITY_STACKS"; field public static final String MANAGE_APP_OPS_RESTRICTIONS = "android.permission.MANAGE_APP_OPS_RESTRICTIONS"; field public static final String MANAGE_APP_PREDICTIONS = "android.permission.MANAGE_APP_PREDICTIONS"; field public static final String MANAGE_APP_TOKENS = "android.permission.MANAGE_APP_TOKENS"; field public static final String MANAGE_AUTO_FILL = "android.permission.MANAGE_AUTO_FILL"; field public static final String MANAGE_CARRIER_OEM_UNLOCK_STATE = "android.permission.MANAGE_CARRIER_OEM_UNLOCK_STATE"; field public static final String MANAGE_CA_CERTIFICATES = "android.permission.MANAGE_CA_CERTIFICATES"; field public static final String MANAGE_CONTENT_CAPTURE = "android.permission.MANAGE_CONTENT_CAPTURE"; field public static final String MANAGE_CONTENT_SUGGESTIONS = "android.permission.MANAGE_CONTENT_SUGGESTIONS"; field public static final String MANAGE_DEBUGGING = "android.permission.MANAGE_DEBUGGING"; field public static final String MANAGE_IPSEC_TUNNELS = "android.permission.MANAGE_IPSEC_TUNNELS"; field public static final String MANAGE_ROLE_HOLDERS = "android.permission.MANAGE_ROLE_HOLDERS"; field public static final String MANAGE_ROLLBACKS = "android.permission.MANAGE_ROLLBACKS"; field public static final String MANAGE_SENSOR_PRIVACY = "android.permission.MANAGE_SENSOR_PRIVACY"; field public static final String MANAGE_SOUND_TRIGGER = "android.permission.MANAGE_SOUND_TRIGGER"; field public static final String MANAGE_SUBSCRIPTION_PLANS = "android.permission.MANAGE_SUBSCRIPTION_PLANS"; field public static final String MANAGE_USB = "android.permission.MANAGE_USB"; field public static final String MANAGE_USERS = "android.permission.MANAGE_USERS"; field public static final String MANAGE_USER_OEM_UNLOCK_STATE = "android.permission.MANAGE_USER_OEM_UNLOCK_STATE"; field public static final String MODIFY_APPWIDGET_BIND_PERMISSIONS = "android.permission.MODIFY_APPWIDGET_BIND_PERMISSIONS"; field public static final String MODIFY_AUDIO_ROUTING = "android.permission.MODIFY_AUDIO_ROUTING"; field public static final String MODIFY_CELL_BROADCASTS = "android.permission.MODIFY_CELL_BROADCASTS"; field public static final String MODIFY_DAY_NIGHT_MODE = "android.permission.MODIFY_DAY_NIGHT_MODE"; field @Deprecated public static final String MODIFY_NETWORK_ACCOUNTING = "android.permission.MODIFY_NETWORK_ACCOUNTING"; field public static final String MODIFY_PARENTAL_CONTROLS = "android.permission.MODIFY_PARENTAL_CONTROLS"; field public static final String MODIFY_QUIET_MODE = "android.permission.MODIFY_QUIET_MODE"; field public static final String MOVE_PACKAGE = "android.permission.MOVE_PACKAGE"; field public static final String NETWORK_CARRIER_PROVISIONING = "android.permission.NETWORK_CARRIER_PROVISIONING"; field public static final String NETWORK_MANAGED_PROVISIONING = "android.permission.NETWORK_MANAGED_PROVISIONING"; field public static final String NETWORK_SCAN = "android.permission.NETWORK_SCAN"; field public static final String NETWORK_SETUP_WIZARD = "android.permission.NETWORK_SETUP_WIZARD"; field public static final String NETWORK_SIGNAL_STRENGTH_WAKEUP = "android.permission.NETWORK_SIGNAL_STRENGTH_WAKEUP"; field public static final String NOTIFICATION_DURING_SETUP = "android.permission.NOTIFICATION_DURING_SETUP"; field public static final String NOTIFY_TV_INPUTS = "android.permission.NOTIFY_TV_INPUTS"; field public static final String OBSERVE_APP_USAGE = "android.permission.OBSERVE_APP_USAGE"; field public static final String OBSERVE_ROLE_HOLDERS = "android.permission.OBSERVE_ROLE_HOLDERS"; field public static final String OPEN_ACCESSIBILITY_DETAILS_SETTINGS = "android.permission.OPEN_ACCESSIBILITY_DETAILS_SETTINGS"; field public static final String OVERRIDE_WIFI_CONFIG = "android.permission.OVERRIDE_WIFI_CONFIG"; field public static final String PACKAGE_VERIFICATION_AGENT = "android.permission.PACKAGE_VERIFICATION_AGENT"; field public static final String PACKET_KEEPALIVE_OFFLOAD = "android.permission.PACKET_KEEPALIVE_OFFLOAD"; field public static final String PEERS_MAC_ADDRESS = "android.permission.PEERS_MAC_ADDRESS"; field public static final String PERFORM_CDMA_PROVISIONING = "android.permission.PERFORM_CDMA_PROVISIONING"; field public static final String PERFORM_SIM_ACTIVATION = "android.permission.PERFORM_SIM_ACTIVATION"; field public static final String POWER_SAVER = "android.permission.POWER_SAVER"; field public static final String PROVIDE_RESOLVER_RANKER_SERVICE = "android.permission.PROVIDE_RESOLVER_RANKER_SERVICE"; field public static final String PROVIDE_TRUST_AGENT = "android.permission.PROVIDE_TRUST_AGENT"; field public static final String QUERY_TIME_ZONE_RULES = "android.permission.QUERY_TIME_ZONE_RULES"; field public static final String READ_CELL_BROADCASTS = "android.permission.READ_CELL_BROADCASTS"; field public static final String READ_CONTENT_RATING_SYSTEMS = "android.permission.READ_CONTENT_RATING_SYSTEMS"; field public static final String READ_DEVICE_CONFIG = "android.permission.READ_DEVICE_CONFIG"; field public static final String READ_DREAM_STATE = "android.permission.READ_DREAM_STATE"; field public static final String READ_INSTALL_SESSIONS = "android.permission.READ_INSTALL_SESSIONS"; field public static final String READ_NETWORK_USAGE_HISTORY = "android.permission.READ_NETWORK_USAGE_HISTORY"; field public static final String READ_OEM_UNLOCK_STATE = "android.permission.READ_OEM_UNLOCK_STATE"; field public static final String READ_PRINT_SERVICES = "android.permission.READ_PRINT_SERVICES"; field public static final String READ_PRINT_SERVICE_RECOMMENDATIONS = "android.permission.READ_PRINT_SERVICE_RECOMMENDATIONS"; field public static final String READ_PRIVILEGED_PHONE_STATE = "android.permission.READ_PRIVILEGED_PHONE_STATE"; field public static final String READ_RUNTIME_PROFILES = "android.permission.READ_RUNTIME_PROFILES"; field public static final String READ_SEARCH_INDEXABLES = "android.permission.READ_SEARCH_INDEXABLES"; field public static final String READ_SYSTEM_UPDATE_INFO = "android.permission.READ_SYSTEM_UPDATE_INFO"; field public static final String READ_WALLPAPER_INTERNAL = "android.permission.READ_WALLPAPER_INTERNAL"; field public static final String READ_WIFI_CREDENTIAL = "android.permission.READ_WIFI_CREDENTIAL"; field public static final String REAL_GET_TASKS = "android.permission.REAL_GET_TASKS"; field public static final String RECEIVE_DATA_ACTIVITY_CHANGE = "android.permission.RECEIVE_DATA_ACTIVITY_CHANGE"; field public static final String RECEIVE_DEVICE_CUSTOMIZATION_READY = "android.permission.RECEIVE_DEVICE_CUSTOMIZATION_READY"; field public static final String RECEIVE_EMERGENCY_BROADCAST = "android.permission.RECEIVE_EMERGENCY_BROADCAST"; field public static final String RECEIVE_WIFI_CREDENTIAL_CHANGE = "android.permission.RECEIVE_WIFI_CREDENTIAL_CHANGE"; field public static final String RECOVERY = "android.permission.RECOVERY"; field public static final String RECOVER_KEYSTORE = "android.permission.RECOVER_KEYSTORE"; field public static final String REGISTER_CALL_PROVIDER = "android.permission.REGISTER_CALL_PROVIDER"; field public static final String REGISTER_CONNECTION_MANAGER = "android.permission.REGISTER_CONNECTION_MANAGER"; field public static final String REGISTER_SIM_SUBSCRIPTION = "android.permission.REGISTER_SIM_SUBSCRIPTION"; field public static final String REMOTE_DISPLAY_PROVIDER = "android.permission.REMOTE_DISPLAY_PROVIDER"; field public static final String REMOVE_DRM_CERTIFICATES = "android.permission.REMOVE_DRM_CERTIFICATES"; field public static final String REMOVE_TASKS = "android.permission.REMOVE_TASKS"; field public static final String REQUEST_NOTIFICATION_ASSISTANT_SERVICE = "android.permission.REQUEST_NOTIFICATION_ASSISTANT_SERVICE"; field public static final String RESET_PASSWORD = "android.permission.RESET_PASSWORD"; field public static final String RESTRICTED_VR_ACCESS = "android.permission.RESTRICTED_VR_ACCESS"; field public static final String RETRIEVE_WINDOW_CONTENT = "android.permission.RETRIEVE_WINDOW_CONTENT"; field public static final String REVIEW_ACCESSIBILITY_SERVICES = "android.permission.REVIEW_ACCESSIBILITY_SERVICES"; field public static final String REVOKE_RUNTIME_PERMISSIONS = "android.permission.REVOKE_RUNTIME_PERMISSIONS"; field public static final String SCORE_NETWORKS = "android.permission.SCORE_NETWORKS"; field public static final String SEND_DEVICE_CUSTOMIZATION_READY = "android.permission.SEND_DEVICE_CUSTOMIZATION_READY"; field public static final String SEND_SHOW_SUSPENDED_APP_DETAILS = "android.permission.SEND_SHOW_SUSPENDED_APP_DETAILS"; field public static final String SEND_SMS_NO_CONFIRMATION = "android.permission.SEND_SMS_NO_CONFIRMATION"; field public static final String SERIAL_PORT = "android.permission.SERIAL_PORT"; field public static final String SET_ACTIVITY_WATCHER = "android.permission.SET_ACTIVITY_WATCHER"; field public static final String SET_HARMFUL_APP_WARNINGS = "android.permission.SET_HARMFUL_APP_WARNINGS"; field public static final String SET_MEDIA_KEY_LISTENER = "android.permission.SET_MEDIA_KEY_LISTENER"; field public static final String SET_ORIENTATION = "android.permission.SET_ORIENTATION"; field public static final String SET_POINTER_SPEED = "android.permission.SET_POINTER_SPEED"; field public static final String SET_SCREEN_COMPATIBILITY = "android.permission.SET_SCREEN_COMPATIBILITY"; field public static final String SET_VOLUME_KEY_LONG_PRESS_LISTENER = "android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER"; field public static final String SET_WALLPAPER_COMPONENT = "android.permission.SET_WALLPAPER_COMPONENT"; field public static final String SHOW_KEYGUARD_MESSAGE = "android.permission.SHOW_KEYGUARD_MESSAGE"; field public static final String SHUTDOWN = "android.permission.SHUTDOWN"; field public static final String STOP_APP_SWITCHES = "android.permission.STOP_APP_SWITCHES"; field public static final String SUBSTITUTE_NOTIFICATION_APP_NAME = "android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME"; field public static final String SUBSTITUTE_SHARE_TARGET_APP_NAME_AND_ICON = "android.permission.SUBSTITUTE_SHARE_TARGET_APP_NAME_AND_ICON"; field public static final String SUSPEND_APPS = "android.permission.SUSPEND_APPS"; field public static final String TETHER_PRIVILEGED = "android.permission.TETHER_PRIVILEGED"; field public static final String TV_INPUT_HARDWARE = "android.permission.TV_INPUT_HARDWARE"; field public static final String TV_VIRTUAL_REMOTE_CONTROLLER = "android.permission.TV_VIRTUAL_REMOTE_CONTROLLER"; field public static final String UNLIMITED_SHORTCUTS_API_CALLS = "android.permission.UNLIMITED_SHORTCUTS_API_CALLS"; field public static final String UPDATE_APP_OPS_STATS = "android.permission.UPDATE_APP_OPS_STATS"; field public static final String UPDATE_LOCK = "android.permission.UPDATE_LOCK"; field public static final String UPDATE_TIME_ZONE_RULES = "android.permission.UPDATE_TIME_ZONE_RULES"; field public static final String USER_ACTIVITY = "android.permission.USER_ACTIVITY"; field public static final String USE_RESERVED_DISK = "android.permission.USE_RESERVED_DISK"; field public static final String WHITELIST_RESTRICTED_PERMISSIONS = "android.permission.WHITELIST_RESTRICTED_PERMISSIONS"; field public static final String WRITE_DEVICE_CONFIG = "android.permission.WRITE_DEVICE_CONFIG"; field public static final String WRITE_DREAM_STATE = "android.permission.WRITE_DREAM_STATE"; field public static final String WRITE_EMBEDDED_SUBSCRIPTIONS = "android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS"; field public static final String WRITE_MEDIA_STORAGE = "android.permission.WRITE_MEDIA_STORAGE"; field public static final String WRITE_OBB = "android.permission.WRITE_OBB"; } public static final class Manifest.permission_group { field public static final String UNDEFINED = "android.permission-group.UNDEFINED"; } public static final class R.array { field public static final int config_keySystemUuidMapping = 17235973; // 0x1070005 } public static final class R.attr { field public static final int allowClearUserDataOnFailedRestore = 16844288; // 0x1010600 field public static final int isVrOnly = 16844152; // 0x1010578 field public static final int requiredSystemPropertyName = 16844133; // 0x1010565 field public static final int requiredSystemPropertyValue = 16844134; // 0x1010566 field public static final int supportsAmbientMode = 16844173; // 0x101058d field public static final int userRestriction = 16844164; // 0x1010584 } public static final class R.bool { field public static final int config_sendPackageName = 17891328; // 0x1110000 field public static final int config_showDefaultAssistant = 17891329; // 0x1110001 field public static final int config_showDefaultEmergency = 17891330; // 0x1110002 field public static final int config_showDefaultHome = 17891331; // 0x1110003 } public static final class R.color { field public static final int system_notification_accent_color = 17170460; // 0x106001c } public static final class R.dimen { field public static final int config_restrictedIconSize = 17104903; // 0x1050007 } public static final class R.drawable { field public static final int ic_info = 17301684; // 0x10800b4 } public static final class R.raw { field public static final int loaderror = 17825792; // 0x1100000 field public static final int nodomain = 17825793; // 0x1100001 } public static final class R.string { field public static final int config_defaultAssistant = 17039393; // 0x1040021 field public static final int config_defaultBrowser = 17039394; // 0x1040022 field public static final int config_defaultDialer = 17039395; // 0x1040023 field public static final int config_defaultSms = 17039396; // 0x1040024 field public static final int config_feedbackIntentExtraKey = 17039391; // 0x104001f field public static final int config_feedbackIntentNameKey = 17039392; // 0x1040020 field public static final int config_helpIntentExtraKey = 17039389; // 0x104001d field public static final int config_helpIntentNameKey = 17039390; // 0x104001e field public static final int config_helpPackageNameKey = 17039387; // 0x104001b field public static final int config_helpPackageNameValue = 17039388; // 0x104001c } public static final class R.style { field public static final int Theme_DeviceDefault_DocumentsUI = 16974562; // 0x10302e2 field public static final int Theme_Leanback_FormWizard = 16974544; // 0x10302d0 } } package android.accounts { public class AccountManager { method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public android.accounts.AccountManagerFuture
finishSessionAsUser(android.os.Bundle, android.app.Activity, android.os.UserHandle, android.accounts.AccountManagerCallback
, android.os.Handler); } } package android.app { public class Activity extends android.view.ContextThemeWrapper implements android.content.ComponentCallbacks2 android.view.KeyEvent.Callback android.view.LayoutInflater.Factory2 android.view.View.OnCreateContextMenuListener android.view.Window.Callback { method public void convertFromTranslucent(); method public boolean convertToTranslucent(android.app.Activity.TranslucentConversionListener, android.app.ActivityOptions); method @Deprecated public boolean isBackgroundVisibleBehind(); method @Deprecated public void onBackgroundVisibleBehindChanged(boolean); } public static interface Activity.TranslucentConversionListener { method public void onTranslucentConversionComplete(boolean); } public class ActivityManager { method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public void addOnUidImportanceListener(android.app.ActivityManager.OnUidImportanceListener, int); method @RequiresPermission(android.Manifest.permission.FORCE_STOP_PACKAGES) public void forceStopPackage(String); method @RequiresPermission(anyOf={"android.permission.INTERACT_ACROSS_USERS", "android.permission.INTERACT_ACROSS_USERS_FULL"}) public static int getCurrentUser(); method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getPackageImportance(String); method @NonNull public java.util.Collection
getSupportedLocales(); method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getUidImportance(int); method @RequiresPermission(android.Manifest.permission.KILL_UID) public void killUid(int, String); method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public void removeOnUidImportanceListener(android.app.ActivityManager.OnUidImportanceListener); method public void setDeviceLocales(@NonNull android.os.LocaleList); method @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) public static void setPersistentVrThread(int); method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean switchUser(@NonNull android.os.UserHandle); } public static interface ActivityManager.OnUidImportanceListener { method public void onUidImportance(int, int); } public class AlarmManager { method @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public void set(int, long, long, long, android.app.PendingIntent, android.os.WorkSource); method @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public void set(int, long, long, long, android.app.AlarmManager.OnAlarmListener, android.os.Handler, android.os.WorkSource); } public class AppOpsManager { method @RequiresPermission(android.Manifest.permission.GET_APP_OPS_STATS) public void getHistoricalOps(@NonNull android.app.AppOpsManager.HistoricalOpsRequest, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer
); method public static String[] getOpStrs(); method @NonNull @RequiresPermission(android.Manifest.permission.GET_APP_OPS_STATS) public java.util.List
getOpsForPackage(int, @NonNull String, @Nullable java.lang.String...); method @NonNull @RequiresPermission(android.Manifest.permission.GET_APP_OPS_STATS) public java.util.List
getPackagesForOps(@Nullable String[]); method public static int opToDefaultMode(@NonNull String); method @Nullable public static String opToPermission(@NonNull String); method @RequiresPermission("android.permission.MANAGE_APP_OPS_MODES") public void setMode(String, int, String, int); method @RequiresPermission("android.permission.MANAGE_APP_OPS_MODES") public void setUidMode(String, int, int); field public static final String OPSTR_ACCEPT_HANDOVER = "android:accept_handover"; field public static final String OPSTR_ACCESS_ACCESSIBILITY = "android:access_accessibility"; field public static final String OPSTR_ACCESS_NOTIFICATIONS = "android:access_notifications"; field public static final String OPSTR_ACTIVATE_VPN = "android:activate_vpn"; field public static final String OPSTR_ASSIST_SCREENSHOT = "android:assist_screenshot"; field public static final String OPSTR_ASSIST_STRUCTURE = "android:assist_structure"; field public static final String OPSTR_AUDIO_ACCESSIBILITY_VOLUME = "android:audio_accessibility_volume"; field public static final String OPSTR_AUDIO_ALARM_VOLUME = "android:audio_alarm_volume"; field public static final String OPSTR_AUDIO_BLUETOOTH_VOLUME = "android:audio_bluetooth_volume"; field public static final String OPSTR_AUDIO_MASTER_VOLUME = "android:audio_master_volume"; field public static final String OPSTR_AUDIO_MEDIA_VOLUME = "android:audio_media_volume"; field public static final String OPSTR_AUDIO_NOTIFICATION_VOLUME = "android:audio_notification_volume"; field public static final String OPSTR_AUDIO_RING_VOLUME = "android:audio_ring_volume"; field public static final String OPSTR_AUDIO_VOICE_VOLUME = "android:audio_voice_volume"; field public static final String OPSTR_BIND_ACCESSIBILITY_SERVICE = "android:bind_accessibility_service"; field public static final String OPSTR_CHANGE_WIFI_STATE = "android:change_wifi_state"; field public static final String OPSTR_GET_ACCOUNTS = "android:get_accounts"; field public static final String OPSTR_GPS = "android:gps"; field public static final String OPSTR_INSTANT_APP_START_FOREGROUND = "android:instant_app_start_foreground"; field public static final String OPSTR_LEGACY_STORAGE = "android:legacy_storage"; field public static final String OPSTR_MANAGE_IPSEC_TUNNELS = "android:manage_ipsec_tunnels"; field public static final String OPSTR_MUTE_MICROPHONE = "android:mute_microphone"; field public static final String OPSTR_NEIGHBORING_CELLS = "android:neighboring_cells"; field public static final String OPSTR_PLAY_AUDIO = "android:play_audio"; field public static final String OPSTR_POST_NOTIFICATION = "android:post_notification"; field public static final String OPSTR_PROJECT_MEDIA = "android:project_media"; field public static final String OPSTR_READ_CLIPBOARD = "android:read_clipboard"; field public static final String OPSTR_READ_ICC_SMS = "android:read_icc_sms"; field public static final String OPSTR_RECEIVE_EMERGENCY_BROADCAST = "android:receive_emergency_broadcast"; field public static final String OPSTR_REQUEST_DELETE_PACKAGES = "android:request_delete_packages"; field public static final String OPSTR_REQUEST_INSTALL_PACKAGES = "android:request_install_packages"; field public static final String OPSTR_RUN_ANY_IN_BACKGROUND = "android:run_any_in_background"; field public static final String OPSTR_RUN_IN_BACKGROUND = "android:run_in_background"; field public static final String OPSTR_START_FOREGROUND = "android:start_foreground"; field public static final String OPSTR_TAKE_AUDIO_FOCUS = "android:take_audio_focus"; field public static final String OPSTR_TAKE_MEDIA_BUTTONS = "android:take_media_buttons"; field public static final String OPSTR_TOAST_WINDOW = "android:toast_window"; field public static final String OPSTR_TURN_SCREEN_ON = "android:turn_screen_on"; field public static final String OPSTR_VIBRATE = "android:vibrate"; field public static final String OPSTR_WAKE_LOCK = "android:wake_lock"; field public static final String OPSTR_WIFI_SCAN = "android:wifi_scan"; field public static final String OPSTR_WRITE_CLIPBOARD = "android:write_clipboard"; field public static final String OPSTR_WRITE_ICC_SMS = "android:write_icc_sms"; field public static final String OPSTR_WRITE_SMS = "android:write_sms"; field public static final String OPSTR_WRITE_WALLPAPER = "android:write_wallpaper"; field public static final int OP_FLAGS_ALL = 31; // 0x1f field public static final int OP_FLAGS_ALL_TRUSTED = 13; // 0xd field public static final int OP_FLAG_SELF = 1; // 0x1 field public static final int OP_FLAG_TRUSTED_PROXIED = 8; // 0x8 field public static final int OP_FLAG_TRUSTED_PROXY = 2; // 0x2 field public static final int OP_FLAG_UNTRUSTED_PROXIED = 16; // 0x10 field public static final int OP_FLAG_UNTRUSTED_PROXY = 4; // 0x4 field public static final int UID_STATE_BACKGROUND = 600; // 0x258 field public static final int UID_STATE_CACHED = 700; // 0x2bc field public static final int UID_STATE_FOREGROUND = 500; // 0x1f4 field public static final int UID_STATE_FOREGROUND_SERVICE = 400; // 0x190 field public static final int UID_STATE_FOREGROUND_SERVICE_LOCATION = 300; // 0x12c field public static final int UID_STATE_PERSISTENT = 100; // 0x64 field public static final int UID_STATE_TOP = 200; // 0xc8 } public static final class AppOpsManager.HistoricalOp implements android.os.Parcelable { method public int describeContents(); method public long getAccessCount(int, int, int); method public long getAccessDuration(int, int, int); method public long getBackgroundAccessCount(int); method public long getBackgroundAccessDuration(int); method public long getBackgroundRejectCount(int); method public long getForegroundAccessCount(int); method public long getForegroundAccessDuration(int); method public long getForegroundRejectCount(int); method @NonNull public String getOpName(); method public long getRejectCount(int, int, int); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static final class AppOpsManager.HistoricalOps implements android.os.Parcelable { method public int describeContents(); method public long getBeginTimeMillis(); method public long getEndTimeMillis(); method @IntRange(from=0) public int getUidCount(); method @Nullable public android.app.AppOpsManager.HistoricalUidOps getUidOps(int); method @NonNull public android.app.AppOpsManager.HistoricalUidOps getUidOpsAt(@IntRange(from=0) int); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static final class AppOpsManager.HistoricalOpsRequest { } public static final class AppOpsManager.HistoricalOpsRequest.Builder { ctor public AppOpsManager.HistoricalOpsRequest.Builder(long, long); method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest build(); method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest.Builder setFlags(int); method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest.Builder setOpNames(@Nullable java.util.List
); method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest.Builder setPackageName(@Nullable String); method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest.Builder setUid(int); } public static final class AppOpsManager.HistoricalPackageOps implements android.os.Parcelable { method public int describeContents(); method @Nullable public android.app.AppOpsManager.HistoricalOp getOp(@NonNull String); method @NonNull public android.app.AppOpsManager.HistoricalOp getOpAt(@IntRange(from=0) int); method @IntRange(from=0) public int getOpCount(); method @NonNull public String getPackageName(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static final class AppOpsManager.HistoricalUidOps implements android.os.Parcelable { method public int describeContents(); method @IntRange(from=0) public int getPackageCount(); method @Nullable public android.app.AppOpsManager.HistoricalPackageOps getPackageOps(@NonNull String); method @NonNull public android.app.AppOpsManager.HistoricalPackageOps getPackageOpsAt(@IntRange(from=0) int); method public int getUid(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static final class AppOpsManager.OpEntry implements android.os.Parcelable { method public int describeContents(); method public long getDuration(); method public long getLastAccessBackgroundTime(int); method public long getLastAccessForegroundTime(int); method public long getLastAccessTime(int); method public long getLastAccessTime(int, int, int); method public long getLastBackgroundDuration(int); method public long getLastDuration(int, int, int); method public long getLastForegroundDuration(int); method public long getLastRejectBackgroundTime(int); method public long getLastRejectForegroundTime(int); method public long getLastRejectTime(int); method public long getLastRejectTime(int, int, int); method public int getMode(); method @NonNull public String getOpStr(); method @Nullable public String getProxyPackageName(); method @Nullable public String getProxyPackageName(int, int); method public int getProxyUid(); method public int getProxyUid(int, int); method public boolean isRunning(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static final class AppOpsManager.PackageOps implements android.os.Parcelable { method public int describeContents(); method @NonNull public java.util.List
getOps(); method @NonNull public String getPackageName(); method public int getUid(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public class BroadcastOptions { method public static android.app.BroadcastOptions makeBasic(); method @RequiresPermission("android.permission.START_ACTIVITIES_FROM_BACKGROUND") public void setBackgroundActivityStartsAllowed(boolean); method public void setDontSendToRestrictedApps(boolean); method @RequiresPermission(android.Manifest.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST) public void setTemporaryAppWhitelistDuration(long); method public android.os.Bundle toBundle(); } public class DownloadManager { field public static final String ACTION_DOWNLOAD_COMPLETED = "android.intent.action.DOWNLOAD_COMPLETED"; } public abstract class InstantAppResolverService extends android.app.Service { ctor public InstantAppResolverService(); method public final void attachBaseContext(android.content.Context); method public final android.os.IBinder onBind(android.content.Intent); method @Deprecated public void onGetInstantAppIntentFilter(@Nullable int[], @NonNull String, @NonNull android.app.InstantAppResolverService.InstantAppResolutionCallback); method @Deprecated public void onGetInstantAppIntentFilter(@NonNull android.content.Intent, @Nullable int[], @NonNull String, @NonNull android.app.InstantAppResolverService.InstantAppResolutionCallback); method public void onGetInstantAppIntentFilter(@NonNull android.content.Intent, @Nullable int[], @NonNull android.os.UserHandle, @NonNull String, @NonNull android.app.InstantAppResolverService.InstantAppResolutionCallback); method @Deprecated public void onGetInstantAppResolveInfo(@Nullable int[], @NonNull String, @NonNull android.app.InstantAppResolverService.InstantAppResolutionCallback); method @Deprecated public void onGetInstantAppResolveInfo(@NonNull android.content.Intent, @Nullable int[], @NonNull String, @NonNull android.app.InstantAppResolverService.InstantAppResolutionCallback); method public void onGetInstantAppResolveInfo(@NonNull android.content.Intent, @Nullable int[], @NonNull android.os.UserHandle, @NonNull String, @NonNull android.app.InstantAppResolverService.InstantAppResolutionCallback); } public static final class InstantAppResolverService.InstantAppResolutionCallback { method public void onInstantAppResolveInfo(java.util.List
); } public class KeyguardManager { method public android.content.Intent createConfirmFactoryResetCredentialIntent(CharSequence, CharSequence, CharSequence); method @RequiresPermission(android.Manifest.permission.CONTROL_KEYGUARD_SECURE_NOTIFICATIONS) public boolean getPrivateNotificationsAllowed(); method @RequiresPermission(android.Manifest.permission.SHOW_KEYGUARD_MESSAGE) public void requestDismissKeyguard(@NonNull android.app.Activity, @Nullable CharSequence, @Nullable android.app.KeyguardManager.KeyguardDismissCallback); method @RequiresPermission(android.Manifest.permission.CONTROL_KEYGUARD_SECURE_NOTIFICATIONS) public void setPrivateNotificationsAllowed(boolean); } public class Notification implements android.os.Parcelable { field public static final String CATEGORY_CAR_EMERGENCY = "car_emergency"; field public static final String CATEGORY_CAR_INFORMATION = "car_information"; field public static final String CATEGORY_CAR_WARNING = "car_warning"; field @RequiresPermission(android.Manifest.permission.NOTIFICATION_DURING_SETUP) public static final String EXTRA_ALLOW_DURING_SETUP = "android.allowDuringSetup"; field @RequiresPermission(android.Manifest.permission.SUBSTITUTE_NOTIFICATION_APP_NAME) public static final String EXTRA_SUBSTITUTE_APP_NAME = "android.substName"; field public static final int FLAG_AUTOGROUP_SUMMARY = 1024; // 0x400 } public static final class Notification.TvExtender implements android.app.Notification.Extender { ctor public Notification.TvExtender(); ctor public Notification.TvExtender(android.app.Notification); method public android.app.Notification.Builder extend(android.app.Notification.Builder); method public String getChannelId(); method public android.app.PendingIntent getContentIntent(); method public android.app.PendingIntent getDeleteIntent(); method public boolean getSuppressShowOverApps(); method public boolean isAvailableOnTv(); method public android.app.Notification.TvExtender setChannel(String); method public android.app.Notification.TvExtender setChannelId(String); method public android.app.Notification.TvExtender setContentIntent(android.app.PendingIntent); method public android.app.Notification.TvExtender setDeleteIntent(android.app.PendingIntent); method public android.app.Notification.TvExtender setSuppressShowOverApps(boolean); } public final class NotificationChannel implements android.os.Parcelable { method public int getUserLockedFields(); method public boolean isDeleted(); method public void populateFromXml(org.xmlpull.v1.XmlPullParser); method public org.json.JSONObject toJson() throws org.json.JSONException; method public void writeXml(org.xmlpull.v1.XmlSerializer) throws java.io.IOException; } public final class NotificationChannelGroup implements android.os.Parcelable { method public org.json.JSONObject toJson() throws org.json.JSONException; } public class NotificationManager { method @NonNull public java.util.List
getAllowedAssistantAdjustments(); method @Nullable public android.content.ComponentName getAllowedNotificationAssistant(); method public boolean isNotificationAssistantAccessGranted(@NonNull android.content.ComponentName); method public void setNotificationAssistantAccessGranted(@Nullable android.content.ComponentName, boolean); } public final class StatsManager { method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void addConfig(long, byte[]) throws android.app.StatsManager.StatsUnavailableException; method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public boolean addConfiguration(long, byte[]); method @Deprecated @Nullable @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public byte[] getData(long); method @Deprecated @Nullable @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public byte[] getMetadata(); method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public long[] getRegisteredExperimentIds() throws android.app.StatsManager.StatsUnavailableException; method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public byte[] getReports(long) throws android.app.StatsManager.StatsUnavailableException; method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public byte[] getStatsMetadata() throws android.app.StatsManager.StatsUnavailableException; method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void removeConfig(long) throws android.app.StatsManager.StatsUnavailableException; method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public boolean removeConfiguration(long); method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) @NonNull public long[] setActiveConfigsChangedOperation(@Nullable android.app.PendingIntent) throws android.app.StatsManager.StatsUnavailableException; method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void setBroadcastSubscriber(android.app.PendingIntent, long, long) throws android.app.StatsManager.StatsUnavailableException; method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public boolean setBroadcastSubscriber(long, long, android.app.PendingIntent); method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public boolean setDataFetchOperation(long, android.app.PendingIntent); method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void setFetchReportsOperation(android.app.PendingIntent, long) throws android.app.StatsManager.StatsUnavailableException; field public static final String ACTION_STATSD_STARTED = "android.app.action.STATSD_STARTED"; field public static final String EXTRA_STATS_ACTIVE_CONFIG_KEYS = "android.app.extra.STATS_ACTIVE_CONFIG_KEYS"; field public static final String EXTRA_STATS_BROADCAST_SUBSCRIBER_COOKIES = "android.app.extra.STATS_BROADCAST_SUBSCRIBER_COOKIES"; field public static final String EXTRA_STATS_CONFIG_KEY = "android.app.extra.STATS_CONFIG_KEY"; field public static final String EXTRA_STATS_CONFIG_UID = "android.app.extra.STATS_CONFIG_UID"; field public static final String EXTRA_STATS_DIMENSIONS_VALUE = "android.app.extra.STATS_DIMENSIONS_VALUE"; field public static final String EXTRA_STATS_SUBSCRIPTION_ID = "android.app.extra.STATS_SUBSCRIPTION_ID"; field public static final String EXTRA_STATS_SUBSCRIPTION_RULE_ID = "android.app.extra.STATS_SUBSCRIPTION_RULE_ID"; } public static class StatsManager.StatsUnavailableException extends android.util.AndroidException { ctor public StatsManager.StatsUnavailableException(String); ctor public StatsManager.StatsUnavailableException(String, Throwable); } public class StatusBarManager { method @NonNull @RequiresPermission(android.Manifest.permission.STATUS_BAR) public android.app.StatusBarManager.DisableInfo getDisableInfo(); method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void setDisabledForSetup(boolean); } public static final class StatusBarManager.DisableInfo { method public boolean areAllComponentsEnabled(); method public boolean isNavigateToHomeDisabled(); method public boolean isNotificationPeekingDisabled(); method public boolean isRecentsDisabled(); method public boolean isSearchDisabled(); method public boolean isStatusBarExpansionDisabled(); } public final class Vr2dDisplayProperties implements android.os.Parcelable { ctor public Vr2dDisplayProperties(int, int, int); method public int describeContents(); method public void dump(@NonNull java.io.PrintWriter, @NonNull String); method public int getAddedFlags(); method public int getDpi(); method public int getHeight(); method public int getRemovedFlags(); method public int getWidth(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final int FLAG_VIRTUAL_DISPLAY_ENABLED = 1; // 0x1 } public static final class Vr2dDisplayProperties.Builder { ctor public Vr2dDisplayProperties.Builder(); method @NonNull public android.app.Vr2dDisplayProperties.Builder addFlags(int); method @NonNull public android.app.Vr2dDisplayProperties build(); method @NonNull public android.app.Vr2dDisplayProperties.Builder removeFlags(int); method @NonNull public android.app.Vr2dDisplayProperties.Builder setDimensions(int, int, int); method @NonNull public android.app.Vr2dDisplayProperties.Builder setEnabled(boolean); } public class VrManager { method @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) public int getVr2dDisplayId(); method @RequiresPermission(anyOf={android.Manifest.permission.RESTRICTED_VR_ACCESS, "android.permission.ACCESS_VR_STATE"}) public boolean isPersistentVrModeEnabled(); method @RequiresPermission(anyOf={android.Manifest.permission.RESTRICTED_VR_ACCESS, "android.permission.ACCESS_VR_STATE"}) public boolean isVrModeEnabled(); method @RequiresPermission(anyOf={android.Manifest.permission.RESTRICTED_VR_ACCESS, "android.permission.ACCESS_VR_STATE"}) public void registerVrStateCallback(@NonNull java.util.concurrent.Executor, @NonNull android.app.VrStateCallback); method @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) public void setAndBindVrCompositor(android.content.ComponentName); method @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) public void setPersistentVrModeEnabled(boolean); method @RequiresPermission("android.permission.ACCESS_VR_MANAGER") public void setStandbyEnabled(boolean); method @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) public void setVr2dDisplayProperties(@NonNull android.app.Vr2dDisplayProperties); method @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) public void setVrInputMethod(@Nullable android.content.ComponentName); method @RequiresPermission(anyOf={android.Manifest.permission.RESTRICTED_VR_ACCESS, "android.permission.ACCESS_VR_STATE"}) public void unregisterVrStateCallback(@NonNull android.app.VrStateCallback); } public abstract class VrStateCallback { ctor public VrStateCallback(); method public void onPersistentVrStateChanged(boolean); method public void onVrStateChanged(boolean); } public final class WallpaperColors implements android.os.Parcelable { ctor public WallpaperColors(@NonNull android.graphics.Color, @Nullable android.graphics.Color, @Nullable android.graphics.Color, int); method public int getColorHints(); field public static final int HINT_SUPPORTS_DARK_TEXT = 1; // 0x1 field public static final int HINT_SUPPORTS_DARK_THEME = 2; // 0x2 } public final class WallpaperInfo implements android.os.Parcelable { method public boolean supportsAmbientMode(); } public class WallpaperManager { method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public void clearWallpaper(int, int); method public void setDisplayOffset(android.os.IBinder, int, int); method @RequiresPermission(android.Manifest.permission.SET_WALLPAPER_COMPONENT) public boolean setWallpaperComponent(android.content.ComponentName); } } package android.app.admin { public class DevicePolicyManager { method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public String getDeviceOwner(); method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public android.content.ComponentName getDeviceOwnerComponentOnAnyUser(); method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public String getDeviceOwnerNameOnAnyUser(); method @Nullable public CharSequence getDeviceOwnerOrganizationName(); method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public android.os.UserHandle getDeviceOwnerUser(); method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public java.util.List
getPermittedAccessibilityServices(int); method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public java.util.List
getPermittedInputMethodsForCurrentUser(); method @Nullable public android.content.ComponentName getProfileOwner() throws java.lang.IllegalArgumentException; method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public String getProfileOwnerNameAsUser(int) throws java.lang.IllegalArgumentException; method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public int getUserProvisioningState(); method public boolean isDeviceManaged(); method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isDeviceProvisioned(); method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isDeviceProvisioningConfigApplied(); method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isManagedKiosk(); method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isUnattendedManagedKiosk(); method @RequiresPermission("android.permission.NOTIFY_PENDING_SYSTEM_UPDATE") public void notifyPendingSystemUpdate(long); method @RequiresPermission("android.permission.NOTIFY_PENDING_SYSTEM_UPDATE") public void notifyPendingSystemUpdate(long, boolean); method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public boolean packageHasActiveAdmins(String); method @Deprecated @RequiresPermission("android.permission.MANAGE_DEVICE_ADMINS") public boolean setActiveProfileOwner(@NonNull android.content.ComponentName, String) throws java.lang.IllegalArgumentException; method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public void setDeviceProvisioningConfigApplied(); method @RequiresPermission(value=android.Manifest.permission.GRANT_PROFILE_OWNER_DEVICE_IDS_ACCESS, conditional=true) public void setProfileOwnerCanAccessDeviceIds(@NonNull android.content.ComponentName); field public static final String ACCOUNT_FEATURE_DEVICE_OR_PROFILE_OWNER_ALLOWED = "android.account.DEVICE_OR_PROFILE_OWNER_ALLOWED"; field public static final String ACCOUNT_FEATURE_DEVICE_OR_PROFILE_OWNER_DISALLOWED = "android.account.DEVICE_OR_PROFILE_OWNER_DISALLOWED"; field public static final String ACTION_PROVISION_FINALIZATION = "android.app.action.PROVISION_FINALIZATION"; field public static final String ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE = "android.app.action.PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE"; field public static final String ACTION_SET_PROFILE_OWNER = "android.app.action.SET_PROFILE_OWNER"; field public static final String ACTION_STATE_USER_SETUP_COMPLETE = "android.app.action.STATE_USER_SETUP_COMPLETE"; field public static final String EXTRA_PROFILE_OWNER_NAME = "android.app.extra.PROFILE_OWNER_NAME"; field public static final String EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_ICON_URI = "android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_ICON_URI"; field public static final String EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_LABEL = "android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_LABEL"; field public static final String EXTRA_PROVISIONING_ORGANIZATION_NAME = "android.app.extra.PROVISIONING_ORGANIZATION_NAME"; field public static final String EXTRA_PROVISIONING_SUPPORT_URL = "android.app.extra.PROVISIONING_SUPPORT_URL"; field public static final String EXTRA_PROVISIONING_TRIGGER = "android.app.extra.PROVISIONING_TRIGGER"; field public static final String EXTRA_RESTRICTION = "android.app.extra.RESTRICTION"; field public static final int PROVISIONING_TRIGGER_CLOUD_ENROLLMENT = 1; // 0x1 field public static final int PROVISIONING_TRIGGER_PERSISTENT_DEVICE_OWNER = 3; // 0x3 field public static final int PROVISIONING_TRIGGER_QR_CODE = 2; // 0x2 field public static final int PROVISIONING_TRIGGER_UNSPECIFIED = 0; // 0x0 field public static final int STATE_USER_PROFILE_COMPLETE = 4; // 0x4 field public static final int STATE_USER_SETUP_COMPLETE = 2; // 0x2 field public static final int STATE_USER_SETUP_FINALIZED = 3; // 0x3 field public static final int STATE_USER_SETUP_INCOMPLETE = 1; // 0x1 field public static final int STATE_USER_UNMANAGED = 0; // 0x0 } public final class SystemUpdatePolicy implements android.os.Parcelable { method public android.app.admin.SystemUpdatePolicy.InstallationOption getInstallationOptionAt(long); field public static final int TYPE_PAUSE = 4; // 0x4 } public static class SystemUpdatePolicy.InstallationOption { method public long getEffectiveTime(); method public int getType(); } } package android.app.assist { public static class AssistStructure.ViewNode { ctor public AssistStructure.ViewNode(); } } package android.app.backup { public class BackupDataInput { ctor public BackupDataInput(java.io.FileDescriptor); } public class BackupDataOutput { ctor public BackupDataOutput(java.io.FileDescriptor); ctor public BackupDataOutput(java.io.FileDescriptor, long); } public class BackupManager { method @RequiresPermission(android.Manifest.permission.BACKUP) public void backupNow(); method @RequiresPermission(android.Manifest.permission.BACKUP) public android.app.backup.RestoreSession beginRestoreSession(); method @RequiresPermission(android.Manifest.permission.BACKUP) public void cancelBackups(); method @RequiresPermission(android.Manifest.permission.BACKUP) public long getAvailableRestoreToken(String); method @RequiresPermission(android.Manifest.permission.BACKUP) public android.content.Intent getConfigurationIntent(String); method @RequiresPermission(android.Manifest.permission.BACKUP) public String getCurrentTransport(); method @Nullable @RequiresPermission(android.Manifest.permission.BACKUP) public android.content.ComponentName getCurrentTransportComponent(); method @RequiresPermission(android.Manifest.permission.BACKUP) public android.content.Intent getDataManagementIntent(String); method @Nullable @RequiresPermission(android.Manifest.permission.BACKUP) public CharSequence getDataManagementIntentLabel(@NonNull String); method @Deprecated @Nullable @RequiresPermission(android.Manifest.permission.BACKUP) public String getDataManagementLabel(@NonNull String); method @RequiresPermission(android.Manifest.permission.BACKUP) public String getDestinationString(String); method @RequiresPermission(android.Manifest.permission.BACKUP) public boolean isAppEligibleForBackup(String); method @RequiresPermission(android.Manifest.permission.BACKUP) public boolean isBackupEnabled(); method @RequiresPermission(android.Manifest.permission.BACKUP) public boolean isBackupServiceActive(android.os.UserHandle); method @RequiresPermission(android.Manifest.permission.BACKUP) public String[] listAllTransports(); method @RequiresPermission(android.Manifest.permission.BACKUP) public int requestBackup(String[], android.app.backup.BackupObserver); method @RequiresPermission(android.Manifest.permission.BACKUP) public int requestBackup(String[], android.app.backup.BackupObserver, android.app.backup.BackupManagerMonitor, int); method @Deprecated public int requestRestore(android.app.backup.RestoreObserver, android.app.backup.BackupManagerMonitor); method @Deprecated @RequiresPermission(android.Manifest.permission.BACKUP) public String selectBackupTransport(String); method @RequiresPermission(android.Manifest.permission.BACKUP) public void selectBackupTransport(android.content.ComponentName, android.app.backup.SelectBackupTransportCallback); method @RequiresPermission(android.Manifest.permission.BACKUP) public void setAncestralSerialNumber(long); method @RequiresPermission(android.Manifest.permission.BACKUP) public void setAutoRestore(boolean); method @RequiresPermission(android.Manifest.permission.BACKUP) public void setBackupEnabled(boolean); method @Deprecated @RequiresPermission(android.Manifest.permission.BACKUP) public void updateTransportAttributes(@NonNull android.content.ComponentName, @NonNull String, @Nullable android.content.Intent, @NonNull String, @Nullable android.content.Intent, @Nullable String); method @RequiresPermission(android.Manifest.permission.BACKUP) public void updateTransportAttributes(@NonNull android.content.ComponentName, @NonNull String, @Nullable android.content.Intent, @NonNull String, @Nullable android.content.Intent, @Nullable CharSequence); field public static final int ERROR_AGENT_FAILURE = -1003; // 0xfffffc15 field public static final int ERROR_BACKUP_CANCELLED = -2003; // 0xfffff82d field public static final int ERROR_BACKUP_NOT_ALLOWED = -2001; // 0xfffff82f field public static final int ERROR_PACKAGE_NOT_FOUND = -2002; // 0xfffff82e field public static final int ERROR_TRANSPORT_ABORTED = -1000; // 0xfffffc18 field public static final int ERROR_TRANSPORT_INVALID = -2; // 0xfffffffe field public static final int ERROR_TRANSPORT_PACKAGE_REJECTED = -1002; // 0xfffffc16 field public static final int ERROR_TRANSPORT_QUOTA_EXCEEDED = -1005; // 0xfffffc13 field public static final int ERROR_TRANSPORT_UNAVAILABLE = -1; // 0xffffffff field public static final int FLAG_NON_INCREMENTAL_BACKUP = 1; // 0x1 field public static final String PACKAGE_MANAGER_SENTINEL = "@pm@"; field public static final int SUCCESS = 0; // 0x0 } public class BackupManagerMonitor { ctor public BackupManagerMonitor(); method public void onEvent(android.os.Bundle); field public static final String EXTRA_LOG_CANCEL_ALL = "android.app.backup.extra.LOG_CANCEL_ALL"; field public static final String EXTRA_LOG_EVENT_CATEGORY = "android.app.backup.extra.LOG_EVENT_CATEGORY"; field public static final String EXTRA_LOG_EVENT_ID = "android.app.backup.extra.LOG_EVENT_ID"; field public static final String EXTRA_LOG_EVENT_PACKAGE_LONG_VERSION = "android.app.backup.extra.LOG_EVENT_PACKAGE_FULL_VERSION"; field public static final String EXTRA_LOG_EVENT_PACKAGE_NAME = "android.app.backup.extra.LOG_EVENT_PACKAGE_NAME"; field @Deprecated public static final String EXTRA_LOG_EVENT_PACKAGE_VERSION = "android.app.backup.extra.LOG_EVENT_PACKAGE_VERSION"; field public static final String EXTRA_LOG_EXCEPTION_FULL_BACKUP = "android.app.backup.extra.LOG_EXCEPTION_FULL_BACKUP"; field public static final String EXTRA_LOG_ILLEGAL_KEY = "android.app.backup.extra.LOG_ILLEGAL_KEY"; field public static final String EXTRA_LOG_MANIFEST_PACKAGE_NAME = "android.app.backup.extra.LOG_MANIFEST_PACKAGE_NAME"; field public static final String EXTRA_LOG_OLD_VERSION = "android.app.backup.extra.LOG_OLD_VERSION"; field public static final String EXTRA_LOG_POLICY_ALLOW_APKS = "android.app.backup.extra.LOG_POLICY_ALLOW_APKS"; field public static final String EXTRA_LOG_PREFLIGHT_ERROR = "android.app.backup.extra.LOG_PREFLIGHT_ERROR"; field public static final String EXTRA_LOG_RESTORE_ANYWAY = "android.app.backup.extra.LOG_RESTORE_ANYWAY"; field public static final String EXTRA_LOG_RESTORE_VERSION = "android.app.backup.extra.LOG_RESTORE_VERSION"; field public static final String EXTRA_LOG_WIDGET_PACKAGE_NAME = "android.app.backup.extra.LOG_WIDGET_PACKAGE_NAME"; field public static final int LOG_EVENT_CATEGORY_AGENT = 2; // 0x2 field public static final int LOG_EVENT_CATEGORY_BACKUP_MANAGER_POLICY = 3; // 0x3 field public static final int LOG_EVENT_CATEGORY_TRANSPORT = 1; // 0x1 field public static final int LOG_EVENT_ID_APK_NOT_INSTALLED = 40; // 0x28 field public static final int LOG_EVENT_ID_APP_HAS_NO_AGENT = 28; // 0x1c field public static final int LOG_EVENT_ID_BACKUP_DISABLED = 13; // 0xd field public static final int LOG_EVENT_ID_CANNOT_RESTORE_WITHOUT_APK = 41; // 0x29 field public static final int LOG_EVENT_ID_CANT_FIND_AGENT = 30; // 0x1e field public static final int LOG_EVENT_ID_CORRUPT_MANIFEST = 46; // 0x2e field public static final int LOG_EVENT_ID_DEVICE_NOT_PROVISIONED = 14; // 0xe field public static final int LOG_EVENT_ID_ERROR_PREFLIGHT = 16; // 0x10 field public static final int LOG_EVENT_ID_EXCEPTION_FULL_BACKUP = 19; // 0x13 field public static final int LOG_EVENT_ID_EXPECTED_DIFFERENT_PACKAGE = 43; // 0x2b field public static final int LOG_EVENT_ID_FULL_BACKUP_CANCEL = 4; // 0x4 field public static final int LOG_EVENT_ID_FULL_RESTORE_ALLOW_BACKUP_FALSE = 39; // 0x27 field public static final int LOG_EVENT_ID_FULL_RESTORE_SIGNATURE_MISMATCH = 37; // 0x25 field public static final int LOG_EVENT_ID_FULL_RESTORE_TIMEOUT = 45; // 0x2d field public static final int LOG_EVENT_ID_ILLEGAL_KEY = 5; // 0x5 field public static final int LOG_EVENT_ID_KEY_VALUE_BACKUP_CANCEL = 21; // 0x15 field public static final int LOG_EVENT_ID_KEY_VALUE_RESTORE_TIMEOUT = 31; // 0x1f field public static final int LOG_EVENT_ID_LOST_TRANSPORT = 25; // 0x19 field public static final int LOG_EVENT_ID_MISSING_SIGNATURE = 42; // 0x2a field public static final int LOG_EVENT_ID_NO_DATA_TO_SEND = 7; // 0x7 field public static final int LOG_EVENT_ID_NO_PACKAGES = 49; // 0x31 field public static final int LOG_EVENT_ID_NO_PM_METADATA_RECEIVED = 23; // 0x17 field public static final int LOG_EVENT_ID_NO_RESTORE_METADATA_AVAILABLE = 22; // 0x16 field public static final int LOG_EVENT_ID_PACKAGE_INELIGIBLE = 9; // 0x9 field public static final int LOG_EVENT_ID_PACKAGE_KEY_VALUE_PARTICIPANT = 10; // 0xa field public static final int LOG_EVENT_ID_PACKAGE_NOT_FOUND = 12; // 0xc field public static final int LOG_EVENT_ID_PACKAGE_NOT_PRESENT = 26; // 0x1a field public static final int LOG_EVENT_ID_PACKAGE_STOPPED = 11; // 0xb field public static final int LOG_EVENT_ID_PACKAGE_TRANSPORT_NOT_PRESENT = 15; // 0xf field public static final int LOG_EVENT_ID_PM_AGENT_HAS_NO_METADATA = 24; // 0x18 field public static final int LOG_EVENT_ID_QUOTA_HIT_PREFLIGHT = 18; // 0x12 field public static final int LOG_EVENT_ID_RESTORE_ANY_VERSION = 34; // 0x22 field public static final int LOG_EVENT_ID_RESTORE_VERSION_HIGHER = 27; // 0x1b field public static final int LOG_EVENT_ID_SIGNATURE_MISMATCH = 29; // 0x1d field public static final int LOG_EVENT_ID_SYSTEM_APP_NO_AGENT = 38; // 0x26 field public static final int LOG_EVENT_ID_TRANSPORT_IS_NULL = 50; // 0x32 field public static final int LOG_EVENT_ID_TRANSPORT_NON_INCREMENTAL_BACKUP_REQUIRED = 51; // 0x33 field public static final int LOG_EVENT_ID_UNKNOWN_VERSION = 44; // 0x2c field public static final int LOG_EVENT_ID_VERSIONS_MATCH = 35; // 0x23 field public static final int LOG_EVENT_ID_VERSION_OF_BACKUP_OLDER = 36; // 0x24 field public static final int LOG_EVENT_ID_WIDGET_METADATA_MISMATCH = 47; // 0x2f field public static final int LOG_EVENT_ID_WIDGET_UNKNOWN_VERSION = 48; // 0x30 } public abstract class BackupObserver { ctor public BackupObserver(); method public void backupFinished(int); method public void onResult(String, int); method public void onUpdate(String, android.app.backup.BackupProgress); } public class BackupProgress implements android.os.Parcelable { ctor public BackupProgress(long, long); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public final long bytesExpected; field public final long bytesTransferred; } public class BackupTransport { ctor public BackupTransport(); method public int abortFullRestore(); method public void cancelFullBackup(); method public int checkFullBackupSize(long); method public int clearBackupData(android.content.pm.PackageInfo); method public android.content.Intent configurationIntent(); method public String currentDestinationString(); method public android.content.Intent dataManagementIntent(); method @Nullable public CharSequence dataManagementIntentLabel(); method @Deprecated @Nullable public String dataManagementLabel(); method public int finishBackup(); method public void finishRestore(); method public android.app.backup.RestoreSet[] getAvailableRestoreSets(); method public long getBackupQuota(String, boolean); method public android.os.IBinder getBinder(); method public long getCurrentRestoreSet(); method public int getNextFullRestoreDataChunk(android.os.ParcelFileDescriptor); method public int getRestoreData(android.os.ParcelFileDescriptor); method public int getTransportFlags(); method public int initializeDevice(); method public boolean isAppEligibleForBackup(android.content.pm.PackageInfo, boolean); method public String name(); method public android.app.backup.RestoreDescription nextRestorePackage(); method public int performBackup(android.content.pm.PackageInfo, android.os.ParcelFileDescriptor, int); method public int performBackup(android.content.pm.PackageInfo, android.os.ParcelFileDescriptor); method public int performFullBackup(android.content.pm.PackageInfo, android.os.ParcelFileDescriptor, int); method public int performFullBackup(android.content.pm.PackageInfo, android.os.ParcelFileDescriptor); method public long requestBackupTime(); method public long requestFullBackupTime(); method public int sendBackupData(int); method public int startRestore(long, android.content.pm.PackageInfo[]); method public String transportDirName(); field public static final int AGENT_ERROR = -1003; // 0xfffffc15 field public static final int AGENT_UNKNOWN = -1004; // 0xfffffc14 field public static final String EXTRA_TRANSPORT_REGISTRATION = "android.app.backup.extra.TRANSPORT_REGISTRATION"; field public static final int FLAG_INCREMENTAL = 2; // 0x2 field public static final int FLAG_NON_INCREMENTAL = 4; // 0x4 field public static final int FLAG_USER_INITIATED = 1; // 0x1 field public static final int NO_MORE_DATA = -1; // 0xffffffff field public static final int TRANSPORT_ERROR = -1000; // 0xfffffc18 field public static final int TRANSPORT_NON_INCREMENTAL_BACKUP_REQUIRED = -1006; // 0xfffffc12 field public static final int TRANSPORT_NOT_INITIALIZED = -1001; // 0xfffffc17 field public static final int TRANSPORT_OK = 0; // 0x0 field public static final int TRANSPORT_PACKAGE_REJECTED = -1002; // 0xfffffc16 field public static final int TRANSPORT_QUOTA_EXCEEDED = -1005; // 0xfffffc13 } public class RestoreDescription implements android.os.Parcelable { ctor public RestoreDescription(String, int); method public int describeContents(); method public int getDataType(); method public String getPackageName(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final android.app.backup.RestoreDescription NO_MORE_PACKAGES; field public static final int TYPE_FULL_STREAM = 2; // 0x2 field public static final int TYPE_KEY_VALUE = 1; // 0x1 } public abstract class RestoreObserver { method public void restoreSetsAvailable(android.app.backup.RestoreSet[]); } public class RestoreSession { method public void endRestoreSession(); method public int getAvailableRestoreSets(android.app.backup.RestoreObserver, android.app.backup.BackupManagerMonitor); method public int getAvailableRestoreSets(android.app.backup.RestoreObserver); method public int restoreAll(long, android.app.backup.RestoreObserver, android.app.backup.BackupManagerMonitor); method public int restoreAll(long, android.app.backup.RestoreObserver); method public int restorePackage(String, android.app.backup.RestoreObserver, android.app.backup.BackupManagerMonitor); method public int restorePackage(String, android.app.backup.RestoreObserver); method public int restorePackages(long, @Nullable android.app.backup.RestoreObserver, @NonNull java.util.Set
, @Nullable android.app.backup.BackupManagerMonitor); method public int restorePackages(long, @Nullable android.app.backup.RestoreObserver, @NonNull java.util.Set
); } public class RestoreSet implements android.os.Parcelable { ctor public RestoreSet(); ctor public RestoreSet(String, String, long); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public String device; field public String name; field public long token; } public abstract class SelectBackupTransportCallback { ctor public SelectBackupTransportCallback(); method public void onFailure(int); method public void onSuccess(String); } } package android.app.contentsuggestions { public final class ClassificationsRequest implements android.os.Parcelable { method public int describeContents(); method @NonNull public android.os.Bundle getExtras(); method @NonNull public java.util.List
getSelections(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static final class ClassificationsRequest.Builder { ctor public ClassificationsRequest.Builder(@NonNull java.util.List
); method @NonNull public android.app.contentsuggestions.ClassificationsRequest build(); method @NonNull public android.app.contentsuggestions.ClassificationsRequest.Builder setExtras(@NonNull android.os.Bundle); } public final class ContentClassification implements android.os.Parcelable { ctor public ContentClassification(@NonNull String, @NonNull android.os.Bundle); method public int describeContents(); method @NonNull public android.os.Bundle getExtras(); method @NonNull public String getId(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class ContentSelection implements android.os.Parcelable { ctor public ContentSelection(@NonNull String, @NonNull android.os.Bundle); method public int describeContents(); method @NonNull public android.os.Bundle getExtras(); method @NonNull public String getId(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class ContentSuggestionsManager { method public void classifyContentSelections(@NonNull android.app.contentsuggestions.ClassificationsRequest, @NonNull java.util.concurrent.Executor, @NonNull android.app.contentsuggestions.ContentSuggestionsManager.ClassificationsCallback); method public boolean isEnabled(); method public void notifyInteraction(@NonNull String, @NonNull android.os.Bundle); method public void provideContextImage(int, @NonNull android.os.Bundle); method public void suggestContentSelections(@NonNull android.app.contentsuggestions.SelectionsRequest, @NonNull java.util.concurrent.Executor, @NonNull android.app.contentsuggestions.ContentSuggestionsManager.SelectionsCallback); } public static interface ContentSuggestionsManager.ClassificationsCallback { method public void onContentClassificationsAvailable(int, @NonNull java.util.List
); } public static interface ContentSuggestionsManager.SelectionsCallback { method public void onContentSelectionsAvailable(int, @NonNull java.util.List
); } public final class SelectionsRequest implements android.os.Parcelable { method public int describeContents(); method @NonNull public android.os.Bundle getExtras(); method @Nullable public android.graphics.Point getInterestPoint(); method public int getTaskId(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static final class SelectionsRequest.Builder { ctor public SelectionsRequest.Builder(int); method @NonNull public android.app.contentsuggestions.SelectionsRequest build(); method @NonNull public android.app.contentsuggestions.SelectionsRequest.Builder setExtras(@NonNull android.os.Bundle); method @NonNull public android.app.contentsuggestions.SelectionsRequest.Builder setInterestPoint(@NonNull android.graphics.Point); } } package android.app.job { public abstract class JobScheduler { method @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public abstract int scheduleAsPackage(@NonNull android.app.job.JobInfo, @NonNull String, int, String); } } package android.app.prediction { public final class AppPredictionContext implements android.os.Parcelable { method public int describeContents(); method @Nullable public android.os.Bundle getExtras(); method @NonNull public String getPackageName(); method @IntRange(from=0) public int getPredictedTargetCount(); method @NonNull public String getUiSurface(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static final class AppPredictionContext.Builder { ctor public AppPredictionContext.Builder(@NonNull android.content.Context); method @NonNull public android.app.prediction.AppPredictionContext build(); method @NonNull public android.app.prediction.AppPredictionContext.Builder setExtras(@Nullable android.os.Bundle); method @NonNull public android.app.prediction.AppPredictionContext.Builder setPredictedTargetCount(@IntRange(from=0) int); method @NonNull public android.app.prediction.AppPredictionContext.Builder setUiSurface(@NonNull String); } public final class AppPredictionManager { method @NonNull public android.app.prediction.AppPredictor createAppPredictionSession(@NonNull android.app.prediction.AppPredictionContext); } public final class AppPredictionSessionId implements android.os.Parcelable { method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class AppPredictor { method public void destroy(); method public void notifyAppTargetEvent(@NonNull android.app.prediction.AppTargetEvent); method public void notifyLaunchLocationShown(@NonNull String, @NonNull java.util.List
); method public void registerPredictionUpdates(@NonNull java.util.concurrent.Executor, @NonNull android.app.prediction.AppPredictor.Callback); method public void requestPredictionUpdate(); method @Nullable public void sortTargets(@NonNull java.util.List
, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer
>); method public void unregisterPredictionUpdates(@NonNull android.app.prediction.AppPredictor.Callback); } public static interface AppPredictor.Callback { method public void onTargetsAvailable(@NonNull java.util.List
); } public final class AppTarget implements android.os.Parcelable { method public int describeContents(); method @Nullable public String getClassName(); method @NonNull public android.app.prediction.AppTargetId getId(); method @NonNull public String getPackageName(); method @IntRange(from=0) public int getRank(); method @Nullable public android.content.pm.ShortcutInfo getShortcutInfo(); method @NonNull public android.os.UserHandle getUser(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static final class AppTarget.Builder { ctor public AppTarget.Builder(@NonNull android.app.prediction.AppTargetId, @NonNull String, @NonNull android.os.UserHandle); ctor public AppTarget.Builder(@NonNull android.app.prediction.AppTargetId, @NonNull android.content.pm.ShortcutInfo); method @NonNull public android.app.prediction.AppTarget build(); method @NonNull public android.app.prediction.AppTarget.Builder setClassName(@NonNull String); method @NonNull public android.app.prediction.AppTarget.Builder setRank(@IntRange(from=0) int); } public final class AppTargetEvent implements android.os.Parcelable { method public int describeContents(); method public int getAction(); method @Nullable public String getLaunchLocation(); method @Nullable public android.app.prediction.AppTarget getTarget(); method public void writeToParcel(android.os.Parcel, int); field public static final int ACTION_DISMISS = 2; // 0x2 field public static final int ACTION_LAUNCH = 1; // 0x1 field public static final int ACTION_PIN = 3; // 0x3 field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static final class AppTargetEvent.Builder { ctor public AppTargetEvent.Builder(@Nullable android.app.prediction.AppTarget, int); method @NonNull public android.app.prediction.AppTargetEvent build(); method @NonNull public android.app.prediction.AppTargetEvent.Builder setLaunchLocation(@Nullable String); } public final class AppTargetId implements android.os.Parcelable { ctor public AppTargetId(@NonNull String); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } } package android.app.role { public interface OnRoleHoldersChangedListener { method public void onRoleHoldersChanged(@NonNull String, @NonNull android.os.UserHandle); } public abstract class RoleControllerService extends android.app.Service { ctor public RoleControllerService(); method @WorkerThread public abstract boolean onAddRoleHolder(@NonNull String, @NonNull String, int); method @Nullable public final android.os.IBinder onBind(@Nullable android.content.Intent); method @WorkerThread public abstract boolean onClearRoleHolders(@NonNull String, int); method @WorkerThread public abstract boolean onGrantDefaultRoles(); method public abstract boolean onIsApplicationQualifiedForRole(@NonNull String, @NonNull String); method public abstract boolean onIsRoleVisible(@NonNull String); method @WorkerThread public abstract boolean onRemoveRoleHolder(@NonNull String, @NonNull String, int); field public static final String SERVICE_INTERFACE = "android.app.role.RoleControllerService"; } public final class RoleManager { method @RequiresPermission(android.Manifest.permission.OBSERVE_ROLE_HOLDERS) public void addOnRoleHoldersChangedListenerAsUser(@NonNull java.util.concurrent.Executor, @NonNull android.app.role.OnRoleHoldersChangedListener, @NonNull android.os.UserHandle); method @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public void addRoleHolderAsUser(@NonNull String, @NonNull String, int, @NonNull android.os.UserHandle, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer
); method @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public boolean addRoleHolderFromController(@NonNull String, @NonNull String); method @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public void clearRoleHoldersAsUser(@NonNull String, int, @NonNull android.os.UserHandle, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer
); method @NonNull @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public java.util.List
getHeldRolesFromController(@NonNull String); method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public java.util.List
getRoleHolders(@NonNull String); method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public java.util.List
getRoleHoldersAsUser(@NonNull String, @NonNull android.os.UserHandle); method @RequiresPermission(android.Manifest.permission.OBSERVE_ROLE_HOLDERS) public void removeOnRoleHoldersChangedListenerAsUser(@NonNull android.app.role.OnRoleHoldersChangedListener, @NonNull android.os.UserHandle); method @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public void removeRoleHolderAsUser(@NonNull String, @NonNull String, int, @NonNull android.os.UserHandle, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer
); method @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public boolean removeRoleHolderFromController(@NonNull String, @NonNull String); method @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public void setRoleNamesFromController(@NonNull java.util.List
); field public static final int MANAGE_HOLDERS_FLAG_DONT_KILL_APP = 1; // 0x1 } } package android.app.usage { public final class CacheQuotaHint implements android.os.Parcelable { ctor public CacheQuotaHint(android.app.usage.CacheQuotaHint.Builder); method public int describeContents(); method public long getQuota(); method public int getUid(); method public android.app.usage.UsageStats getUsageStats(); method public String getVolumeUuid(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final long QUOTA_NOT_SET = -1L; // 0xffffffffffffffffL } public static final class CacheQuotaHint.Builder { ctor public CacheQuotaHint.Builder(); ctor public CacheQuotaHint.Builder(android.app.usage.CacheQuotaHint); method @NonNull public android.app.usage.CacheQuotaHint build(); method @NonNull public android.app.usage.CacheQuotaHint.Builder setQuota(long); method @NonNull public android.app.usage.CacheQuotaHint.Builder setUid(int); method @NonNull public android.app.usage.CacheQuotaHint.Builder setUsageStats(@Nullable android.app.usage.UsageStats); method @NonNull public android.app.usage.CacheQuotaHint.Builder setVolumeUuid(@Nullable String); } public abstract class CacheQuotaService extends android.app.Service { ctor public CacheQuotaService(); method public android.os.IBinder onBind(android.content.Intent); method public abstract java.util.List
onComputeCacheQuotaHints(java.util.List
); field public static final String SERVICE_INTERFACE = "android.app.usage.CacheQuotaService"; } public static final class UsageEvents.Event { method public int getInstanceId(); method public String getNotificationChannelId(); method @Nullable public String getTaskRootClassName(); method @Nullable public String getTaskRootPackageName(); method public boolean isInstantApp(); field public static final int NOTIFICATION_INTERRUPTION = 12; // 0xc field public static final int NOTIFICATION_SEEN = 10; // 0xa field public static final int SLICE_PINNED = 14; // 0xe field public static final int SLICE_PINNED_PRIV = 13; // 0xd field public static final int SYSTEM_INTERACTION = 6; // 0x6 } public final class UsageStats implements android.os.Parcelable { method public int getAppLaunchCount(); } public final class UsageStatsManager { method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getAppStandbyBucket(String); method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public java.util.Map
getAppStandbyBuckets(); method public int getUsageSource(); method @RequiresPermission(allOf={android.Manifest.permission.SUSPEND_APPS, android.Manifest.permission.OBSERVE_APP_USAGE}) public void registerAppUsageLimitObserver(int, @NonNull String[], @NonNull java.time.Duration, @NonNull java.time.Duration, @Nullable android.app.PendingIntent); method @RequiresPermission(android.Manifest.permission.OBSERVE_APP_USAGE) public void registerAppUsageObserver(int, @NonNull String[], long, @NonNull java.util.concurrent.TimeUnit, @NonNull android.app.PendingIntent); method @RequiresPermission(android.Manifest.permission.OBSERVE_APP_USAGE) public void registerUsageSessionObserver(int, @NonNull String[], @NonNull java.time.Duration, @NonNull java.time.Duration, @NonNull android.app.PendingIntent, @Nullable android.app.PendingIntent); method public void reportUsageStart(@NonNull android.app.Activity, @NonNull String); method public void reportUsageStart(@NonNull android.app.Activity, @NonNull String, long); method public void reportUsageStop(@NonNull android.app.Activity, @NonNull String); method @RequiresPermission(android.Manifest.permission.CHANGE_APP_IDLE_STATE) public void setAppStandbyBucket(String, int); method @RequiresPermission(android.Manifest.permission.CHANGE_APP_IDLE_STATE) public void setAppStandbyBuckets(java.util.Map
); method @RequiresPermission(allOf={android.Manifest.permission.SUSPEND_APPS, android.Manifest.permission.OBSERVE_APP_USAGE}) public void unregisterAppUsageLimitObserver(int); method @RequiresPermission(android.Manifest.permission.OBSERVE_APP_USAGE) public void unregisterAppUsageObserver(int); method @RequiresPermission(android.Manifest.permission.OBSERVE_APP_USAGE) public void unregisterUsageSessionObserver(int); method @RequiresPermission(android.Manifest.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST) public void whitelistAppTemporarily(String, long, android.os.UserHandle); field public static final String EXTRA_OBSERVER_ID = "android.app.usage.extra.OBSERVER_ID"; field public static final String EXTRA_TIME_LIMIT = "android.app.usage.extra.TIME_LIMIT"; field public static final String EXTRA_TIME_USED = "android.app.usage.extra.TIME_USED"; field public static final int STANDBY_BUCKET_EXEMPTED = 5; // 0x5 field public static final int STANDBY_BUCKET_NEVER = 50; // 0x32 field public static final int USAGE_SOURCE_CURRENT_ACTIVITY = 2; // 0x2 field public static final int USAGE_SOURCE_TASK_ROOT_ACTIVITY = 1; // 0x1 } } package android.bluetooth { public final class BluetoothAdapter { method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean addOnMetadataChangedListener(@NonNull android.bluetooth.BluetoothDevice, @NonNull java.util.concurrent.Executor, @NonNull android.bluetooth.BluetoothAdapter.OnMetadataChangedListener); method public boolean disableBLE(); method public boolean enableBLE(); method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean enableNoAutoConnect(); method public boolean isBleScanAlwaysAvailable(); method public boolean isLeEnabled(); method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean removeOnMetadataChangedListener(@NonNull android.bluetooth.BluetoothDevice, @NonNull android.bluetooth.BluetoothAdapter.OnMetadataChangedListener); field public static final String ACTION_BLE_STATE_CHANGED = "android.bluetooth.adapter.action.BLE_STATE_CHANGED"; field public static final String ACTION_REQUEST_BLE_SCAN_ALWAYS_AVAILABLE = "android.bluetooth.adapter.action.REQUEST_BLE_SCAN_ALWAYS_AVAILABLE"; } public static interface BluetoothAdapter.OnMetadataChangedListener { method public void onMetadataChanged(@NonNull android.bluetooth.BluetoothDevice, int, @Nullable byte[]); } public final class BluetoothDevice implements android.os.Parcelable { method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean cancelBondProcess(); method @Nullable @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public byte[] getMetadata(int); method @RequiresPermission(android.Manifest.permission.BLUETOOTH) public boolean isConnected(); method @RequiresPermission(android.Manifest.permission.BLUETOOTH) public boolean isEncrypted(); method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean isInSilenceMode(); method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean removeBond(); method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean setMetadata(int, @NonNull byte[]); method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean setPhonebookAccessPermission(int); method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean setSilenceMode(boolean); field public static final int ACCESS_ALLOWED = 1; // 0x1 field public static final int ACCESS_REJECTED = 2; // 0x2 field public static final int ACCESS_UNKNOWN = 0; // 0x0 field public static final String ACTION_SILENCE_MODE_CHANGED = "android.bluetooth.device.action.SILENCE_MODE_CHANGED"; field public static final int METADATA_COMPANION_APP = 4; // 0x4 field public static final int METADATA_ENHANCED_SETTINGS_UI_URI = 16; // 0x10 field public static final int METADATA_HARDWARE_VERSION = 3; // 0x3 field public static final int METADATA_IS_UNTETHERED_HEADSET = 6; // 0x6 field public static final int METADATA_MAIN_ICON = 5; // 0x5 field public static final int METADATA_MANUFACTURER_NAME = 0; // 0x0 field public static final int METADATA_MAX_LENGTH = 2048; // 0x800 field public static final int METADATA_MODEL_NAME = 1; // 0x1 field public static final int METADATA_SOFTWARE_VERSION = 2; // 0x2 field public static final int METADATA_UNTETHERED_CASE_BATTERY = 12; // 0xc field public static final int METADATA_UNTETHERED_CASE_CHARGING = 15; // 0xf field public static final int METADATA_UNTETHERED_CASE_ICON = 9; // 0x9 field public static final int METADATA_UNTETHERED_LEFT_BATTERY = 10; // 0xa field public static final int METADATA_UNTETHERED_LEFT_CHARGING = 13; // 0xd field public static final int METADATA_UNTETHERED_LEFT_ICON = 7; // 0x7 field public static final int METADATA_UNTETHERED_RIGHT_BATTERY = 11; // 0xb field public static final int METADATA_UNTETHERED_RIGHT_CHARGING = 14; // 0xe field public static final int METADATA_UNTETHERED_RIGHT_ICON = 8; // 0x8 } public final class BluetoothHeadset implements android.bluetooth.BluetoothProfile { method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean connect(android.bluetooth.BluetoothDevice); method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean disconnect(android.bluetooth.BluetoothDevice); method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean setPriority(android.bluetooth.BluetoothDevice, int); } public interface BluetoothProfile { field public static final int PRIORITY_OFF = 0; // 0x0 field public static final int PRIORITY_ON = 100; // 0x64 } } package android.bluetooth.le { public final class BluetoothLeScanner { method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_ADMIN, android.Manifest.permission.UPDATE_DEVICE_STATS}) public void startScanFromSource(android.os.WorkSource, android.bluetooth.le.ScanCallback); method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_ADMIN, android.Manifest.permission.UPDATE_DEVICE_STATS}) public void startScanFromSource(java.util.List
, android.bluetooth.le.ScanSettings, android.os.WorkSource, android.bluetooth.le.ScanCallback); method public void startTruncatedScan(java.util.List
, android.bluetooth.le.ScanSettings, android.bluetooth.le.ScanCallback); } public final class ResultStorageDescriptor implements android.os.Parcelable { ctor public ResultStorageDescriptor(int, int, int); method public int describeContents(); method public int getLength(); method public int getOffset(); method public int getType(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class ScanSettings implements android.os.Parcelable { field public static final int SCAN_RESULT_TYPE_ABBREVIATED = 1; // 0x1 field public static final int SCAN_RESULT_TYPE_FULL = 0; // 0x0 } public static final class ScanSettings.Builder { method public android.bluetooth.le.ScanSettings.Builder setScanResultType(int); } public final class TruncatedFilter { ctor public TruncatedFilter(android.bluetooth.le.ScanFilter, java.util.List
); method public android.bluetooth.le.ScanFilter getFilter(); method public java.util.List
getStorageDescriptors(); } } package android.content { public class ContentProviderClient implements java.lang.AutoCloseable { method @RequiresPermission(android.Manifest.permission.REMOVE_TASKS) public void setDetectNotResponding(long); } public abstract class ContentResolver { method @Nullable @RequiresPermission("android.permission.CACHE_CONTENT") public android.os.Bundle getCache(@NonNull android.net.Uri); method @RequiresPermission("android.permission.CACHE_CONTENT") public void putCache(@NonNull android.net.Uri, @Nullable android.os.Bundle); } public abstract class Context { method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public boolean bindServiceAsUser(@RequiresPermission android.content.Intent, android.content.ServiceConnection, int, android.os.UserHandle); method public abstract android.content.Context createCredentialProtectedStorageContext(); method public android.content.Context createPackageContextAsUser(String, int, android.os.UserHandle) throws android.content.pm.PackageManager.NameNotFoundException; method @Nullable public abstract java.io.File getPreloadsFileCache(); method public abstract boolean isCredentialProtectedStorage(); method public abstract void sendBroadcast(android.content.Intent, @Nullable String, @Nullable android.os.Bundle); method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public abstract void sendBroadcastAsUser(@RequiresPermission android.content.Intent, android.os.UserHandle, @Nullable String, @Nullable android.os.Bundle); method public abstract void sendOrderedBroadcast(@NonNull android.content.Intent, @Nullable String, @Nullable android.os.Bundle, @Nullable android.content.BroadcastReceiver, @Nullable android.os.Handler, int, @Nullable String, @Nullable android.os.Bundle); method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public void startActivityAsUser(@RequiresPermission @NonNull android.content.Intent, @NonNull android.os.UserHandle); field public static final String APP_PREDICTION_SERVICE = "app_prediction"; field public static final String BACKUP_SERVICE = "backup"; field public static final String BUGREPORT_SERVICE = "bugreport"; field public static final String CONTENT_SUGGESTIONS_SERVICE = "content_suggestions"; field public static final String CONTEXTHUB_SERVICE = "contexthub"; field public static final String EUICC_CARD_SERVICE = "euicc_card"; field public static final String HDMI_CONTROL_SERVICE = "hdmi_control"; field public static final String NETD_SERVICE = "netd"; field public static final String NETWORK_SCORE_SERVICE = "network_score"; field public static final String OEM_LOCK_SERVICE = "oem_lock"; field public static final String PERMISSION_SERVICE = "permission"; field public static final String PERSISTENT_DATA_BLOCK_SERVICE = "persistent_data_block"; field public static final String ROLLBACK_SERVICE = "rollback"; field public static final String SECURE_ELEMENT_SERVICE = "secure_element"; field public static final String STATS_MANAGER = "stats"; field public static final String STATUS_BAR_SERVICE = "statusbar"; field public static final String SYSTEM_UPDATE_SERVICE = "system_update"; field public static final String VR_SERVICE = "vrmanager"; field @Deprecated public static final String WIFI_RTT_SERVICE = "rttmanager"; field public static final String WIFI_SCANNING_SERVICE = "wifiscanner"; } public class ContextWrapper extends android.content.Context { method public android.content.Context createCredentialProtectedStorageContext(); method public java.io.File getPreloadsFileCache(); method public boolean isCredentialProtectedStorage(); method public void sendBroadcast(android.content.Intent, String, android.os.Bundle); method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, String, android.os.Bundle); method public void sendOrderedBroadcast(android.content.Intent, String, android.os.Bundle, android.content.BroadcastReceiver, android.os.Handler, int, String, android.os.Bundle); } public class Intent implements java.lang.Cloneable android.os.Parcelable { field public static final String ACTION_BATTERY_LEVEL_CHANGED = "android.intent.action.BATTERY_LEVEL_CHANGED"; field public static final String ACTION_CALL_EMERGENCY = "android.intent.action.CALL_EMERGENCY"; field public static final String ACTION_CALL_PRIVILEGED = "android.intent.action.CALL_PRIVILEGED"; field public static final String ACTION_DEVICE_CUSTOMIZATION_READY = "android.intent.action.DEVICE_CUSTOMIZATION_READY"; field public static final String ACTION_FACTORY_RESET = "android.intent.action.FACTORY_RESET"; field public static final String ACTION_GLOBAL_BUTTON = "android.intent.action.GLOBAL_BUTTON"; field public static final String ACTION_INCIDENT_REPORT_READY = "android.intent.action.INCIDENT_REPORT_READY"; field public static final String ACTION_INSTALL_INSTANT_APP_PACKAGE = "android.intent.action.INSTALL_INSTANT_APP_PACKAGE"; field public static final String ACTION_INSTANT_APP_RESOLVER_SETTINGS = "android.intent.action.INSTANT_APP_RESOLVER_SETTINGS"; field public static final String ACTION_INTENT_FILTER_NEEDS_VERIFICATION = "android.intent.action.INTENT_FILTER_NEEDS_VERIFICATION"; field @RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS) public static final String ACTION_MANAGE_APP_PERMISSION = "android.intent.action.MANAGE_APP_PERMISSION"; field public static final String ACTION_MANAGE_APP_PERMISSIONS = "android.intent.action.MANAGE_APP_PERMISSIONS"; field @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public static final String ACTION_MANAGE_DEFAULT_APP = "android.intent.action.MANAGE_DEFAULT_APP"; field public static final String ACTION_MANAGE_PERMISSIONS = "android.intent.action.MANAGE_PERMISSIONS"; field public static final String ACTION_MANAGE_PERMISSION_APPS = "android.intent.action.MANAGE_PERMISSION_APPS"; field @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public static final String ACTION_MANAGE_SPECIAL_APP_ACCESSES = "android.intent.action.MANAGE_SPECIAL_APP_ACCESSES"; field public static final String ACTION_MASTER_CLEAR_NOTIFICATION = "android.intent.action.MASTER_CLEAR_NOTIFICATION"; field public static final String ACTION_PENDING_INCIDENT_REPORTS_CHANGED = "android.intent.action.PENDING_INCIDENT_REPORTS_CHANGED"; field public static final String ACTION_PRE_BOOT_COMPLETED = "android.intent.action.PRE_BOOT_COMPLETED"; field public static final String ACTION_QUERY_PACKAGE_RESTART = "android.intent.action.QUERY_PACKAGE_RESTART"; field public static final String ACTION_RESOLVE_INSTANT_APP_PACKAGE = "android.intent.action.RESOLVE_INSTANT_APP_PACKAGE"; field @RequiresPermission(android.Manifest.permission.REVIEW_ACCESSIBILITY_SERVICES) public static final String ACTION_REVIEW_ACCESSIBILITY_SERVICES = "android.intent.action.REVIEW_ACCESSIBILITY_SERVICES"; field @RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS) public static final String ACTION_REVIEW_ONGOING_PERMISSION_USAGE = "android.intent.action.REVIEW_ONGOING_PERMISSION_USAGE"; field public static final String ACTION_REVIEW_PERMISSIONS = "android.intent.action.REVIEW_PERMISSIONS"; field @RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS) public static final String ACTION_REVIEW_PERMISSION_USAGE = "android.intent.action.REVIEW_PERMISSION_USAGE"; field public static final String ACTION_ROLLBACK_COMMITTED = "android.intent.action.ROLLBACK_COMMITTED"; field public static final String ACTION_SHOW_SUSPENDED_APP_DETAILS = "android.intent.action.SHOW_SUSPENDED_APP_DETAILS"; field @Deprecated public static final String ACTION_SIM_STATE_CHANGED = "android.intent.action.SIM_STATE_CHANGED"; field public static final String ACTION_SPLIT_CONFIGURATION_CHANGED = "android.intent.action.SPLIT_CONFIGURATION_CHANGED"; field public static final String ACTION_UPGRADE_SETUP = "android.intent.action.UPGRADE_SETUP"; field public static final String ACTION_USER_ADDED = "android.intent.action.USER_ADDED"; field public static final String ACTION_USER_REMOVED = "android.intent.action.USER_REMOVED"; field public static final String ACTION_VOICE_ASSIST = "android.intent.action.VOICE_ASSIST"; field public static final String CATEGORY_LEANBACK_SETTINGS = "android.intent.category.LEANBACK_SETTINGS"; field public static final String EXTRA_CALLING_PACKAGE = "android.intent.extra.CALLING_PACKAGE"; field public static final String EXTRA_FORCE_FACTORY_RESET = "android.intent.extra.FORCE_FACTORY_RESET"; field public static final String EXTRA_INSTANT_APP_ACTION = "android.intent.extra.INSTANT_APP_ACTION"; field public static final String EXTRA_INSTANT_APP_BUNDLES = "android.intent.extra.INSTANT_APP_BUNDLES"; field public static final String EXTRA_INSTANT_APP_EXTRAS = "android.intent.extra.INSTANT_APP_EXTRAS"; field public static final String EXTRA_INSTANT_APP_FAILURE = "android.intent.extra.INSTANT_APP_FAILURE"; field public static final String EXTRA_INSTANT_APP_HOSTNAME = "android.intent.extra.INSTANT_APP_HOSTNAME"; field public static final String EXTRA_INSTANT_APP_SUCCESS = "android.intent.extra.INSTANT_APP_SUCCESS"; field public static final String EXTRA_INSTANT_APP_TOKEN = "android.intent.extra.INSTANT_APP_TOKEN"; field public static final String EXTRA_LONG_VERSION_CODE = "android.intent.extra.LONG_VERSION_CODE"; field public static final String EXTRA_ORIGINATING_UID = "android.intent.extra.ORIGINATING_UID"; field public static final String EXTRA_PACKAGES = "android.intent.extra.PACKAGES"; field public static final String EXTRA_PERMISSION_GROUP_NAME = "android.intent.extra.PERMISSION_GROUP_NAME"; field public static final String EXTRA_PERMISSION_NAME = "android.intent.extra.PERMISSION_NAME"; field public static final String EXTRA_REASON = "android.intent.extra.REASON"; field public static final String EXTRA_REMOTE_CALLBACK = "android.intent.extra.REMOTE_CALLBACK"; field public static final String EXTRA_RESULT_NEEDED = "android.intent.extra.RESULT_NEEDED"; field public static final String EXTRA_ROLE_NAME = "android.intent.extra.ROLE_NAME"; field public static final String EXTRA_UNKNOWN_INSTANT_APP = "android.intent.extra.UNKNOWN_INSTANT_APP"; field public static final String EXTRA_VERIFICATION_BUNDLE = "android.intent.extra.VERIFICATION_BUNDLE"; field public static final String METADATA_SETUP_VERSION = "android.SETUP_VERSION"; } public class IntentFilter implements android.os.Parcelable { method public final int getOrder(); method public final void setOrder(int); } } package android.content.om { public final class OverlayInfo implements android.os.Parcelable { method public int describeContents(); method @Nullable public String getCategory(); method @NonNull public String getPackageName(); method @Nullable public String getTargetOverlayableName(); method @NonNull public String getTargetPackageName(); method public int getUserId(); method public boolean isEnabled(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public class OverlayManager { method @Nullable public android.content.om.OverlayInfo getOverlayInfo(@NonNull String, @NonNull android.os.UserHandle); method @NonNull @RequiresPermission(anyOf={"android.permission.INTERACT_ACROSS_USERS", "android.permission.INTERACT_ACROSS_USERS_FULL"}) public java.util.List
getOverlayInfosForTarget(@NonNull String, @NonNull android.os.UserHandle); method @RequiresPermission(anyOf={"android.permission.INTERACT_ACROSS_USERS", "android.permission.INTERACT_ACROSS_USERS_FULL"}) public void setEnabled(@NonNull String, boolean, @NonNull android.os.UserHandle); method @RequiresPermission(anyOf={"android.permission.INTERACT_ACROSS_USERS", "android.permission.INTERACT_ACROSS_USERS_FULL"}) public void setEnabledExclusiveInCategory(@NonNull String, @NonNull android.os.UserHandle); } } package android.content.pm { public class ApplicationInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable { method public boolean isEncryptionAware(); method public boolean isInstantApp(); field public String credentialProtectedDataDir; field public int targetSandboxVersion; } public class CrossProfileApps { method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_PROFILES) public void startActivity(@NonNull android.content.ComponentName, @NonNull android.os.UserHandle); } public final class InstantAppInfo implements android.os.Parcelable { ctor public InstantAppInfo(android.content.pm.ApplicationInfo, String[], String[]); ctor public InstantAppInfo(String, CharSequence, String[], String[]); method public int describeContents(); method @Nullable public android.content.pm.ApplicationInfo getApplicationInfo(); method @Nullable public String[] getGrantedPermissions(); method @NonNull public String getPackageName(); method @Nullable public String[] getRequestedPermissions(); method @NonNull public android.graphics.drawable.Drawable loadIcon(@NonNull android.content.pm.PackageManager); method @NonNull public CharSequence loadLabel(@NonNull android.content.pm.PackageManager); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class InstantAppIntentFilter implements android.os.Parcelable { ctor public InstantAppIntentFilter(@Nullable String, @NonNull java.util.List
); method public int describeContents(); method public java.util.List
getFilters(); method public String getSplitName(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class InstantAppResolveInfo implements android.os.Parcelable { ctor public InstantAppResolveInfo(@NonNull android.content.pm.InstantAppResolveInfo.InstantAppDigest, @Nullable String, @Nullable java.util.List
, int); ctor public InstantAppResolveInfo(@NonNull android.content.pm.InstantAppResolveInfo.InstantAppDigest, @Nullable String, @Nullable java.util.List
, long, @Nullable android.os.Bundle); ctor public InstantAppResolveInfo(@NonNull String, @Nullable String, @Nullable java.util.List
); ctor public InstantAppResolveInfo(@Nullable android.os.Bundle); method public int describeContents(); method public byte[] getDigestBytes(); method public int getDigestPrefix(); method @Nullable public android.os.Bundle getExtras(); method public java.util.List
getIntentFilters(); method public long getLongVersionCode(); method public String getPackageName(); method @Deprecated public int getVersionCode(); method public boolean shouldLetInstallerDecide(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static final class InstantAppResolveInfo.InstantAppDigest implements android.os.Parcelable { ctor public InstantAppResolveInfo.InstantAppDigest(@NonNull String); method public int describeContents(); method public byte[][] getDigestBytes(); method public int[] getDigestPrefix(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final android.content.pm.InstantAppResolveInfo.InstantAppDigest UNDEFINED; } public final class IntentFilterVerificationInfo implements android.os.Parcelable { method public int describeContents(); method public java.util.Set
getDomains(); method public String getPackageName(); method public int getStatus(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public class LauncherApps { method @Nullable public android.content.pm.LauncherApps.AppUsageLimit getAppUsageLimit(@NonNull String, @NonNull android.os.UserHandle); } public static final class LauncherApps.AppUsageLimit implements android.os.Parcelable { method public int describeContents(); method public long getTotalUsageLimit(); method public long getUsageRemaining(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public class PackageInstaller { method @RequiresPermission(android.Manifest.permission.INSTALL_PACKAGES) public void setPermissionsResult(int, boolean); } public static class PackageInstaller.Session implements java.io.Closeable { method @RequiresPermission(android.Manifest.permission.INSTALL_PACKAGES) public void commitTransferred(@NonNull android.content.IntentSender); } public static class PackageInstaller.SessionInfo implements android.os.Parcelable { method public boolean getAllocateAggressive(); method @Deprecated public boolean getAllowDowngrade(); method public boolean getDontKillApp(); method public boolean getEnableRollback(); method @Nullable public String[] getGrantedRuntimePermissions(); method public boolean getInstallAsFullApp(boolean); method public boolean getInstallAsInstantApp(boolean); method public boolean getInstallAsVirtualPreload(); method public boolean getRequestDowngrade(); method @NonNull public java.util.Set
getWhitelistedRestrictedPermissions(); } public static class PackageInstaller.SessionParams implements android.os.Parcelable { method @RequiresPermission(android.Manifest.permission.ALLOCATE_AGGRESSIVE) public void setAllocateAggressive(boolean); method @Deprecated public void setAllowDowngrade(boolean); method public void setDontKillApp(boolean); method public void setEnableRollback(boolean); method @RequiresPermission(android.Manifest.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS) public void setGrantedRuntimePermissions(String[]); method @RequiresPermission(android.Manifest.permission.INSTALL_PACKAGES) public void setInstallAsApex(); method public void setInstallAsInstantApp(boolean); method public void setInstallAsVirtualPreload(); method public void setRequestDowngrade(boolean); method @RequiresPermission(android.Manifest.permission.INSTALL_PACKAGES) public void setStaged(); } public class PackageItemInfo { method public static void forceSafeLabels(); method @Deprecated @NonNull public CharSequence loadSafeLabel(@NonNull android.content.pm.PackageManager); method @NonNull public CharSequence loadSafeLabel(@NonNull android.content.pm.PackageManager, @FloatRange(from=0) float, int); } public abstract class PackageManager { method @RequiresPermission("android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS") public abstract void addOnPermissionsChangeListener(@NonNull android.content.pm.PackageManager.OnPermissionsChangedListener); method public abstract boolean arePermissionsIndividuallyControlled(); method @NonNull public abstract java.util.List
getAllIntentFilters(@NonNull String); method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public android.content.pm.ApplicationInfo getApplicationInfoAsUser(@NonNull String, int, @NonNull android.os.UserHandle) throws android.content.pm.PackageManager.NameNotFoundException; method @NonNull public android.content.pm.dex.ArtManager getArtManager(); method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_SHARED_LIBRARIES) public java.util.List
getDeclaredSharedLibraries(@NonNull String, int); method @Nullable @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public abstract String getDefaultBrowserPackageNameAsUser(int); method @Nullable @RequiresPermission(android.Manifest.permission.SET_HARMFUL_APP_WARNINGS) public CharSequence getHarmfulAppWarning(@NonNull String); method @Nullable public String getIncidentReportApproverPackageName(); method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public abstract java.util.List
getInstalledPackagesAsUser(int, int); method @Nullable @RequiresPermission(android.Manifest.permission.ACCESS_INSTANT_APPS) public abstract android.graphics.drawable.Drawable getInstantAppIcon(String); method @Nullable public abstract android.content.ComponentName getInstantAppInstallerComponent(); method @Nullable public abstract android.content.ComponentName getInstantAppResolverSettingsComponent(); method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_INSTANT_APPS) public abstract java.util.List
getInstantApps(); method @NonNull public abstract java.util.List
getIntentFilterVerifications(@NonNull String); method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public abstract int getIntentVerificationStatusAsUser(@NonNull String, int); method @android.content.pm.PackageManager.PermissionFlags @RequiresPermission(anyOf={android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS, android.Manifest.permission.REVOKE_RUNTIME_PERMISSIONS, android.Manifest.permission.GET_RUNTIME_PERMISSIONS}) public abstract int getPermissionFlags(@NonNull String, @NonNull String, @NonNull android.os.UserHandle); method @NonNull @RequiresPermission(android.Manifest.permission.SUSPEND_APPS) public String[] getUnsuspendablePackages(@NonNull String[]); method @RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS) public abstract void grantRuntimePermission(@NonNull String, @NonNull String, @NonNull android.os.UserHandle); method @Deprecated public abstract int installExistingPackage(@NonNull String) throws android.content.pm.PackageManager.NameNotFoundException; method @Deprecated public abstract int installExistingPackage(@NonNull String, int) throws android.content.pm.PackageManager.NameNotFoundException; method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public java.util.List
queryBroadcastReceiversAsUser(@NonNull android.content.Intent, int, android.os.UserHandle); method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public java.util.List
queryIntentActivitiesAsUser(@NonNull android.content.Intent, int, @NonNull android.os.UserHandle); method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public java.util.List
queryIntentContentProvidersAsUser(@NonNull android.content.Intent, int, @NonNull android.os.UserHandle); method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public java.util.List
queryIntentServicesAsUser(@NonNull android.content.Intent, int, @NonNull android.os.UserHandle); method public abstract void registerDexModule(@NonNull String, @Nullable android.content.pm.PackageManager.DexModuleRegisterCallback); method @RequiresPermission("android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS") public abstract void removeOnPermissionsChangeListener(@NonNull android.content.pm.PackageManager.OnPermissionsChangedListener); method public void replacePreferredActivity(@NonNull android.content.IntentFilter, int, @NonNull java.util.List
, @NonNull android.content.ComponentName); method @RequiresPermission(android.Manifest.permission.REVOKE_RUNTIME_PERMISSIONS) public abstract void revokeRuntimePermission(@NonNull String, @NonNull String, @NonNull android.os.UserHandle); method public void sendDeviceCustomizationReadyBroadcast(); method @RequiresPermission(allOf={android.Manifest.permission.SET_PREFERRED_APPLICATIONS, android.Manifest.permission.INTERACT_ACROSS_USERS_FULL}) public abstract boolean setDefaultBrowserPackageNameAsUser(@Nullable String, int); method @NonNull @RequiresPermission(android.Manifest.permission.SUSPEND_APPS) public String[] setDistractingPackageRestrictions(@NonNull String[], int); method @RequiresPermission(android.Manifest.permission.SET_HARMFUL_APP_WARNINGS) public void setHarmfulAppWarning(@NonNull String, @Nullable CharSequence); method @Deprecated @Nullable @RequiresPermission(android.Manifest.permission.SUSPEND_APPS) public String[] setPackagesSuspended(@Nullable String[], boolean, @Nullable android.os.PersistableBundle, @Nullable android.os.PersistableBundle, @Nullable String); method @Nullable @RequiresPermission(android.Manifest.permission.SUSPEND_APPS) public String[] setPackagesSuspended(@Nullable String[], boolean, @Nullable android.os.PersistableBundle, @Nullable android.os.PersistableBundle, @Nullable android.content.pm.SuspendDialogInfo); method @RequiresPermission(value=android.Manifest.permission.CHANGE_COMPONENT_ENABLED_STATE, conditional=true) public void setSyntheticAppDetailsActivityEnabled(@NonNull String, boolean); method @RequiresPermission(android.Manifest.permission.INSTALL_PACKAGES) public abstract void setUpdateAvailable(@NonNull String, boolean); method @RequiresPermission(android.Manifest.permission.SET_PREFERRED_APPLICATIONS) public abstract boolean updateIntentVerificationStatusAsUser(@NonNull String, int, int); method @RequiresPermission(anyOf={android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS, android.Manifest.permission.REVOKE_RUNTIME_PERMISSIONS}) public abstract void updatePermissionFlags(@NonNull String, @NonNull String, @android.content.pm.PackageManager.PermissionFlags int, @android.content.pm.PackageManager.PermissionFlags int, @NonNull android.os.UserHandle); method @RequiresPermission(android.Manifest.permission.INTENT_FILTER_VERIFICATION_AGENT) public abstract void verifyIntentFilter(int, int, @NonNull java.util.List
); field public static final String ACTION_REQUEST_PERMISSIONS = "android.content.pm.action.REQUEST_PERMISSIONS"; field public static final String EXTRA_REQUEST_PERMISSIONS_NAMES = "android.content.pm.extra.REQUEST_PERMISSIONS_NAMES"; field public static final String EXTRA_REQUEST_PERMISSIONS_RESULTS = "android.content.pm.extra.REQUEST_PERMISSIONS_RESULTS"; field public static final String FEATURE_BROADCAST_RADIO = "android.hardware.broadcastradio"; field public static final String FEATURE_TELEPHONY_CARRIERLOCK = "android.hardware.telephony.carrierlock"; field public static final int FLAG_PERMISSION_APPLY_RESTRICTION = 16384; // 0x4000 field public static final int FLAG_PERMISSION_GRANTED_BY_DEFAULT = 32; // 0x20 field public static final int FLAG_PERMISSION_GRANTED_BY_ROLE = 32768; // 0x8000 field public static final int FLAG_PERMISSION_POLICY_FIXED = 4; // 0x4 field public static final int FLAG_PERMISSION_RESTRICTION_INSTALLER_EXEMPT = 2048; // 0x800 field public static final int FLAG_PERMISSION_RESTRICTION_SYSTEM_EXEMPT = 4096; // 0x1000 field public static final int FLAG_PERMISSION_RESTRICTION_UPGRADE_EXEMPT = 8192; // 0x2000 field public static final int FLAG_PERMISSION_REVIEW_REQUIRED = 64; // 0x40 field public static final int FLAG_PERMISSION_REVOKE_ON_UPGRADE = 8; // 0x8 field public static final int FLAG_PERMISSION_SYSTEM_FIXED = 16; // 0x10 field public static final int FLAG_PERMISSION_USER_FIXED = 2; // 0x2 field public static final int FLAG_PERMISSION_USER_SENSITIVE_WHEN_DENIED = 512; // 0x200 field public static final int FLAG_PERMISSION_USER_SENSITIVE_WHEN_GRANTED = 256; // 0x100 field public static final int FLAG_PERMISSION_USER_SET = 1; // 0x1 field public static final int INSTALL_FAILED_ALREADY_EXISTS = -1; // 0xffffffff field public static final int INSTALL_FAILED_CONFLICTING_PROVIDER = -13; // 0xfffffff3 field public static final int INSTALL_FAILED_CONTAINER_ERROR = -18; // 0xffffffee field public static final int INSTALL_FAILED_CPU_ABI_INCOMPATIBLE = -16; // 0xfffffff0 field public static final int INSTALL_FAILED_DEXOPT = -11; // 0xfffffff5 field public static final int INSTALL_FAILED_DUPLICATE_PACKAGE = -5; // 0xfffffffb field public static final int INSTALL_FAILED_INSUFFICIENT_STORAGE = -4; // 0xfffffffc field public static final int INSTALL_FAILED_INTERNAL_ERROR = -110; // 0xffffff92 field public static final int INSTALL_FAILED_INVALID_APK = -2; // 0xfffffffe field public static final int INSTALL_FAILED_INVALID_INSTALL_LOCATION = -19; // 0xffffffed field public static final int INSTALL_FAILED_INVALID_URI = -3; // 0xfffffffd field public static final int INSTALL_FAILED_MEDIA_UNAVAILABLE = -20; // 0xffffffec field public static final int INSTALL_FAILED_MISSING_FEATURE = -17; // 0xffffffef field public static final int INSTALL_FAILED_MISSING_SHARED_LIBRARY = -9; // 0xfffffff7 field public static final int INSTALL_FAILED_NEWER_SDK = -14; // 0xfffffff2 field public static final int INSTALL_FAILED_NO_SHARED_USER = -6; // 0xfffffffa field public static final int INSTALL_FAILED_OLDER_SDK = -12; // 0xfffffff4 field public static final int INSTALL_FAILED_PACKAGE_CHANGED = -23; // 0xffffffe9 field public static final int INSTALL_FAILED_PERMISSION_MODEL_DOWNGRADE = -26; // 0xffffffe6 field public static final int INSTALL_FAILED_REPLACE_COULDNT_DELETE = -10; // 0xfffffff6 field public static final int INSTALL_FAILED_SANDBOX_VERSION_DOWNGRADE = -27; // 0xffffffe5 field public static final int INSTALL_FAILED_SHARED_USER_INCOMPATIBLE = -8; // 0xfffffff8 field public static final int INSTALL_FAILED_TEST_ONLY = -15; // 0xfffffff1 field public static final int INSTALL_FAILED_UPDATE_INCOMPATIBLE = -7; // 0xfffffff9 field public static final int INSTALL_FAILED_VERIFICATION_FAILURE = -22; // 0xffffffea field public static final int INSTALL_FAILED_VERIFICATION_TIMEOUT = -21; // 0xffffffeb field public static final int INSTALL_PARSE_FAILED_BAD_MANIFEST = -101; // 0xffffff9b field public static final int INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME = -106; // 0xffffff96 field public static final int INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID = -107; // 0xffffff95 field public static final int INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING = -105; // 0xffffff97 field public static final int INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES = -104; // 0xffffff98 field public static final int INSTALL_PARSE_FAILED_MANIFEST_EMPTY = -109; // 0xffffff93 field public static final int INSTALL_PARSE_FAILED_MANIFEST_MALFORMED = -108; // 0xffffff94 field public static final int INSTALL_PARSE_FAILED_NOT_APK = -100; // 0xffffff9c field public static final int INSTALL_PARSE_FAILED_NO_CERTIFICATES = -103; // 0xffffff99 field public static final int INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION = -102; // 0xffffff9a field public static final int INSTALL_SUCCEEDED = 1; // 0x1 field public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS = 2; // 0x2 field public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS_ASK = 4; // 0x4 field public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ASK = 1; // 0x1 field public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER = 3; // 0x3 field public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_UNDEFINED = 0; // 0x0 field public static final int INTENT_FILTER_VERIFICATION_FAILURE = -1; // 0xffffffff field public static final int INTENT_FILTER_VERIFICATION_SUCCESS = 1; // 0x1 field @Deprecated public static final int MASK_PERMISSION_FLAGS = 255; // 0xff field public static final int MATCH_ANY_USER = 4194304; // 0x400000 field public static final int MATCH_FACTORY_ONLY = 2097152; // 0x200000 field public static final int MATCH_INSTANT = 8388608; // 0x800000 field public static final int RESTRICTION_HIDE_FROM_SUGGESTIONS = 1; // 0x1 field public static final int RESTRICTION_HIDE_NOTIFICATIONS = 2; // 0x2 field public static final int RESTRICTION_NONE = 0; // 0x0 } public abstract static class PackageManager.DexModuleRegisterCallback { ctor public PackageManager.DexModuleRegisterCallback(); method public abstract void onDexModuleRegistered(String, boolean, String); } public static interface PackageManager.OnPermissionsChangedListener { method public void onPermissionsChanged(int); } @IntDef(prefix={"FLAG_PERMISSION_"}, value={android.content.pm.PackageManager.FLAG_PERMISSION_USER_SET, android.content.pm.PackageManager.FLAG_PERMISSION_USER_FIXED, android.content.pm.PackageManager.FLAG_PERMISSION_POLICY_FIXED, android.content.pm.PackageManager.FLAG_PERMISSION_REVOKE_ON_UPGRADE, android.content.pm.PackageManager.FLAG_PERMISSION_SYSTEM_FIXED, android.content.pm.PackageManager.FLAG_PERMISSION_GRANTED_BY_DEFAULT, android.content.pm.PackageManager.FLAG_PERMISSION_USER_SENSITIVE_WHEN_GRANTED, android.content.pm.PackageManager.FLAG_PERMISSION_USER_SENSITIVE_WHEN_DENIED, android.content.pm.PackageManager.FLAG_PERMISSION_RESTRICTION_UPGRADE_EXEMPT, android.content.pm.PackageManager.FLAG_PERMISSION_RESTRICTION_SYSTEM_EXEMPT, android.content.pm.PackageManager.FLAG_PERMISSION_RESTRICTION_INSTALLER_EXEMPT, android.content.pm.PackageManager.FLAG_PERMISSION_APPLY_RESTRICTION, android.content.pm.PackageManager.FLAG_PERMISSION_GRANTED_BY_ROLE}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface PackageManager.PermissionFlags { } public class PermissionGroupInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable { field @StringRes public final int backgroundRequestDetailResourceId; field @StringRes public final int backgroundRequestResourceId; field @StringRes public final int requestDetailResourceId; field @StringRes public int requestRes; } public class PermissionInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable { field public static final int FLAG_REMOVED = 2; // 0x2 field public static final int PROTECTION_FLAG_APP_PREDICTOR = 2097152; // 0x200000 field public static final int PROTECTION_FLAG_CONFIGURATOR = 524288; // 0x80000 field public static final int PROTECTION_FLAG_DOCUMENTER = 262144; // 0x40000 field public static final int PROTECTION_FLAG_INCIDENT_REPORT_APPROVER = 1048576; // 0x100000 field public static final int PROTECTION_FLAG_OEM = 16384; // 0x4000 field public static final int PROTECTION_FLAG_SYSTEM_TEXT_CLASSIFIER = 65536; // 0x10000 field public static final int PROTECTION_FLAG_WELLBEING = 131072; // 0x20000 field @Nullable public final String backgroundPermission; field @StringRes public int requestRes; } public class ResolveInfo implements android.os.Parcelable { field public boolean handleAllWebDataURI; } public final class ShortcutInfo implements android.os.Parcelable { method @Nullable public android.app.Person[] getPersons(); } public class ShortcutManager { method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_APP_PREDICTIONS) public java.util.List
getShareTargets(@NonNull android.content.IntentFilter); method public boolean hasShareTargets(@NonNull String); } public static final class ShortcutManager.ShareShortcutInfo implements android.os.Parcelable { method public int describeContents(); method @NonNull public android.content.pm.ShortcutInfo getShortcutInfo(); method @NonNull public android.content.ComponentName getTargetComponent(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class SuspendDialogInfo implements android.os.Parcelable { method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static final class SuspendDialogInfo.Builder { ctor public SuspendDialogInfo.Builder(); method @NonNull public android.content.pm.SuspendDialogInfo build(); method @NonNull public android.content.pm.SuspendDialogInfo.Builder setIcon(@DrawableRes int); method @NonNull public android.content.pm.SuspendDialogInfo.Builder setMessage(@NonNull String); method @NonNull public android.content.pm.SuspendDialogInfo.Builder setMessage(@StringRes int); method @NonNull public android.content.pm.SuspendDialogInfo.Builder setNeutralButtonText(@StringRes int); method @NonNull public android.content.pm.SuspendDialogInfo.Builder setTitle(@StringRes int); } } package android.content.pm.dex { public class ArtManager { method @RequiresPermission(allOf={android.Manifest.permission.READ_RUNTIME_PROFILES, android.Manifest.permission.PACKAGE_USAGE_STATS}) public boolean isRuntimeProfilingEnabled(int); method @RequiresPermission(allOf={android.Manifest.permission.READ_RUNTIME_PROFILES, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void snapshotRuntimeProfile(int, @Nullable String, @Nullable String, @NonNull java.util.concurrent.Executor, @NonNull android.content.pm.dex.ArtManager.SnapshotRuntimeProfileCallback); field public static final int PROFILE_APPS = 0; // 0x0 field public static final int PROFILE_BOOT_IMAGE = 1; // 0x1 field public static final int SNAPSHOT_FAILED_CODE_PATH_NOT_FOUND = 1; // 0x1 field public static final int SNAPSHOT_FAILED_INTERNAL_ERROR = 2; // 0x2 field public static final int SNAPSHOT_FAILED_PACKAGE_NOT_FOUND = 0; // 0x0 } public abstract static class ArtManager.SnapshotRuntimeProfileCallback { ctor public ArtManager.SnapshotRuntimeProfileCallback(); method public abstract void onError(int); method public abstract void onSuccess(android.os.ParcelFileDescriptor); } } package android.content.pm.permission { @Deprecated public final class RuntimePermissionPresentationInfo implements android.os.Parcelable { ctor @Deprecated public RuntimePermissionPresentationInfo(CharSequence, boolean, boolean); method @Deprecated public int describeContents(); method @Deprecated @NonNull public CharSequence getLabel(); method @Deprecated public boolean isGranted(); method @Deprecated public boolean isStandard(); method @Deprecated public void writeToParcel(android.os.Parcel, int); field @Deprecated @NonNull public static final android.os.Parcelable.Creator
CREATOR; } } package android.content.rollback { public final class PackageRollbackInfo implements android.os.Parcelable { method public int describeContents(); method @NonNull public String getPackageName(); method @NonNull public android.content.pm.VersionedPackage getVersionRolledBackFrom(); method @NonNull public android.content.pm.VersionedPackage getVersionRolledBackTo(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class RollbackInfo implements android.os.Parcelable { method public int describeContents(); method @NonNull public java.util.List
getCausePackages(); method public int getCommittedSessionId(); method @NonNull public java.util.List
getPackages(); method public int getRollbackId(); method public boolean isStaged(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class RollbackManager { method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_ROLLBACKS, "android.permission.TEST_MANAGE_ROLLBACKS"}) public void commitRollback(int, @NonNull java.util.List
, @NonNull android.content.IntentSender); method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_ROLLBACKS, "android.permission.TEST_MANAGE_ROLLBACKS"}) @NonNull public java.util.List
getAvailableRollbacks(); method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_ROLLBACKS, "android.permission.TEST_MANAGE_ROLLBACKS"}) @NonNull public java.util.List
getRecentlyCommittedRollbacks(); field public static final String EXTRA_STATUS = "android.content.rollback.extra.STATUS"; field public static final String EXTRA_STATUS_MESSAGE = "android.content.rollback.extra.STATUS_MESSAGE"; field public static final int STATUS_FAILURE = 1; // 0x1 field public static final int STATUS_FAILURE_INSTALL = 3; // 0x3 field public static final int STATUS_FAILURE_ROLLBACK_UNAVAILABLE = 2; // 0x2 field public static final int STATUS_SUCCESS = 0; // 0x0 } } package android.hardware { public final class Sensor { method public java.util.UUID getUuid(); method public boolean isDataInjectionSupported(); field public static final String STRING_TYPE_DYNAMIC_SENSOR_META = "android.sensor.dynamic_sensor_meta"; field public static final String STRING_TYPE_WRIST_TILT_GESTURE = "android.sensor.wrist_tilt_gesture"; field public static final int TYPE_DYNAMIC_SENSOR_META = 32; // 0x20 field public static final int TYPE_WRIST_TILT_GESTURE = 26; // 0x1a } public abstract class SensorManager { method public boolean initDataInjection(boolean); method public boolean injectSensorData(android.hardware.Sensor, float[], int, long); } } package android.hardware.camera2 { public abstract class CameraDevice implements java.lang.AutoCloseable { method public abstract void createCustomCaptureSession(android.hardware.camera2.params.InputConfiguration, @NonNull java.util.List
, int, @NonNull android.hardware.camera2.CameraCaptureSession.StateCallback, @Nullable android.os.Handler) throws android.hardware.camera2.CameraAccessException; field public static final int SESSION_OPERATION_MODE_CONSTRAINED_HIGH_SPEED = 1; // 0x1 field public static final int SESSION_OPERATION_MODE_NORMAL = 0; // 0x0 field public static final int SESSION_OPERATION_MODE_VENDOR_START = 32768; // 0x8000 } } package android.hardware.camera2.params { public final class OutputConfiguration implements android.os.Parcelable { ctor public OutputConfiguration(@NonNull android.view.Surface, int); ctor public OutputConfiguration(int, @NonNull android.view.Surface, int); method public int getRotation(); field public static final int ROTATION_0 = 0; // 0x0 field public static final int ROTATION_180 = 2; // 0x2 field public static final int ROTATION_270 = 3; // 0x3 field public static final int ROTATION_90 = 1; // 0x1 } } package android.hardware.display { public final class AmbientBrightnessDayStats implements android.os.Parcelable { method public int describeContents(); method public float[] getBucketBoundaries(); method public java.time.LocalDate getLocalDate(); method public float[] getStats(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class BrightnessChangeEvent implements android.os.Parcelable { method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public final float batteryLevel; field public final float brightness; field public final long colorSampleDuration; field public final int colorTemperature; field @Nullable public final long[] colorValueBuckets; field public final boolean isDefaultBrightnessConfig; field public final boolean isUserSetBrightness; field public final float lastBrightness; field public final long[] luxTimestamps; field public final float[] luxValues; field public final boolean nightMode; field public final String packageName; field public final float powerBrightnessFactor; field public final long timeStamp; } public final class BrightnessConfiguration implements android.os.Parcelable { method public int describeContents(); method @Nullable public android.hardware.display.BrightnessCorrection getCorrectionByCategory(int); method @Nullable public android.hardware.display.BrightnessCorrection getCorrectionByPackageName(@NonNull String); method public android.util.Pair
getCurve(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static class BrightnessConfiguration.Builder { ctor public BrightnessConfiguration.Builder(float[], float[]); method @NonNull public android.hardware.display.BrightnessConfiguration.Builder addCorrectionByCategory(int, @NonNull android.hardware.display.BrightnessCorrection); method @NonNull public android.hardware.display.BrightnessConfiguration.Builder addCorrectionByPackageName(@NonNull String, @NonNull android.hardware.display.BrightnessCorrection); method @NonNull public android.hardware.display.BrightnessConfiguration build(); method public int getMaxCorrectionsByCategory(); method public int getMaxCorrectionsByPackageName(); method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setDescription(@Nullable String); } public final class BrightnessCorrection implements android.os.Parcelable { method @FloatRange(from=0.0) public float apply(@FloatRange(from=0.0) float); method @NonNull public static android.hardware.display.BrightnessCorrection createScaleAndTranslateLog(float, float); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class ColorDisplayManager { method @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public int getNightDisplayAutoMode(); method @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public int getTransformCapabilities(); method @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public boolean setAppSaturationLevel(@NonNull String, @IntRange(from=0, to=100) int); method @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public boolean setNightDisplayAutoMode(int); method @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public boolean setNightDisplayCustomEndTime(@NonNull java.time.LocalTime); method @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public boolean setNightDisplayCustomStartTime(@NonNull java.time.LocalTime); method @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public boolean setSaturationLevel(@IntRange(from=0, to=100) int); field public static final int AUTO_MODE_CUSTOM_TIME = 1; // 0x1 field public static final int AUTO_MODE_DISABLED = 0; // 0x0 field public static final int AUTO_MODE_TWILIGHT = 2; // 0x2 field public static final int CAPABILITY_HARDWARE_ACCELERATION_GLOBAL = 2; // 0x2 field public static final int CAPABILITY_HARDWARE_ACCELERATION_PER_APP = 4; // 0x4 field public static final int CAPABILITY_NONE = 0; // 0x0 field public static final int CAPABILITY_PROTECTED_CONTENT = 1; // 0x1 } public final class DisplayManager { method @RequiresPermission(android.Manifest.permission.ACCESS_AMBIENT_LIGHT_STATS) public java.util.List
getAmbientBrightnessStats(); method @RequiresPermission(android.Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS) public android.hardware.display.BrightnessConfiguration getBrightnessConfiguration(); method @RequiresPermission(android.Manifest.permission.BRIGHTNESS_SLIDER_USAGE) public java.util.List
getBrightnessEvents(); method @Nullable @RequiresPermission(android.Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS) public android.hardware.display.BrightnessConfiguration getDefaultBrightnessConfiguration(); method public android.util.Pair
getMinimumBrightnessCurve(); method public android.graphics.Point getStableDisplaySize(); method @RequiresPermission(android.Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS) public void setBrightnessConfiguration(android.hardware.display.BrightnessConfiguration); method @Deprecated @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_SATURATION) public void setSaturationLevel(float); } } package android.hardware.hdmi { public abstract class HdmiClient { method public android.hardware.hdmi.HdmiDeviceInfo getActiveSource(); method public void sendKeyEvent(int, boolean); method public void sendVendorCommand(int, byte[], boolean); method public void setVendorCommandListener(@NonNull android.hardware.hdmi.HdmiControlManager.VendorCommandListener); } public final class HdmiControlManager { method @RequiresPermission(android.Manifest.permission.HDMI_CEC) public void addHotplugEventListener(android.hardware.hdmi.HdmiControlManager.HotplugEventListener); method @Nullable public android.hardware.hdmi.HdmiClient getClient(int); method @NonNull public java.util.List
getConnectedDevices(); method public int getPhysicalAddress(); method @Nullable public android.hardware.hdmi.HdmiPlaybackClient getPlaybackClient(); method @Nullable public android.hardware.hdmi.HdmiSwitchClient getSwitchClient(); method @Nullable public android.hardware.hdmi.HdmiTvClient getTvClient(); method public boolean isDeviceConnected(@NonNull android.hardware.hdmi.HdmiDeviceInfo); method public void powerOffDevice(@NonNull android.hardware.hdmi.HdmiDeviceInfo); method @RequiresPermission(android.Manifest.permission.HDMI_CEC) public void removeHotplugEventListener(android.hardware.hdmi.HdmiControlManager.HotplugEventListener); method public void setActiveSource(@NonNull android.hardware.hdmi.HdmiDeviceInfo); method @RequiresPermission(android.Manifest.permission.HDMI_CEC) public void setStandbyMode(boolean); field public static final String ACTION_OSD_MESSAGE = "android.hardware.hdmi.action.OSD_MESSAGE"; field public static final int AVR_VOLUME_MUTED = 101; // 0x65 field public static final int CLEAR_TIMER_STATUS_CEC_DISABLE = 162; // 0xa2 field public static final int CLEAR_TIMER_STATUS_CHECK_RECORDER_CONNECTION = 160; // 0xa0 field public static final int CLEAR_TIMER_STATUS_FAIL_TO_CLEAR_SELECTED_SOURCE = 161; // 0xa1 field public static final int CLEAR_TIMER_STATUS_TIMER_CLEARED = 128; // 0x80 field public static final int CLEAR_TIMER_STATUS_TIMER_NOT_CLEARED_NO_INFO_AVAILABLE = 2; // 0x2 field public static final int CLEAR_TIMER_STATUS_TIMER_NOT_CLEARED_NO_MATCHING = 1; // 0x1 field public static final int CLEAR_TIMER_STATUS_TIMER_NOT_CLEARED_RECORDING = 0; // 0x0 field public static final int CONTROL_STATE_CHANGED_REASON_SETTING = 1; // 0x1 field public static final int CONTROL_STATE_CHANGED_REASON_STANDBY = 3; // 0x3 field public static final int CONTROL_STATE_CHANGED_REASON_START = 0; // 0x0 field public static final int CONTROL_STATE_CHANGED_REASON_WAKEUP = 2; // 0x2 field public static final int DEVICE_EVENT_ADD_DEVICE = 1; // 0x1 field public static final int DEVICE_EVENT_REMOVE_DEVICE = 2; // 0x2 field public static final int DEVICE_EVENT_UPDATE_DEVICE = 3; // 0x3 field public static final String EXTRA_MESSAGE_EXTRA_PARAM1 = "android.hardware.hdmi.extra.MESSAGE_EXTRA_PARAM1"; field public static final String EXTRA_MESSAGE_ID = "android.hardware.hdmi.extra.MESSAGE_ID"; field public static final int ONE_TOUCH_RECORD_ALREADY_RECORDING = 18; // 0x12 field public static final int ONE_TOUCH_RECORD_CEC_DISABLED = 51; // 0x33 field public static final int ONE_TOUCH_RECORD_CHECK_RECORDER_CONNECTION = 49; // 0x31 field public static final int ONE_TOUCH_RECORD_DISALLOW_TO_COPY = 13; // 0xd field public static final int ONE_TOUCH_RECORD_DISALLOW_TO_FUTHER_COPIES = 14; // 0xe field public static final int ONE_TOUCH_RECORD_FAIL_TO_RECORD_DISPLAYED_SCREEN = 50; // 0x32 field public static final int ONE_TOUCH_RECORD_INVALID_EXTERNAL_PHYSICAL_ADDRESS = 10; // 0xa field public static final int ONE_TOUCH_RECORD_INVALID_EXTERNAL_PLUG_NUMBER = 9; // 0x9 field public static final int ONE_TOUCH_RECORD_MEDIA_PROBLEM = 21; // 0x15 field public static final int ONE_TOUCH_RECORD_MEDIA_PROTECTED = 19; // 0x13 field public static final int ONE_TOUCH_RECORD_NOT_ENOUGH_SPACE = 22; // 0x16 field public static final int ONE_TOUCH_RECORD_NO_MEDIA = 16; // 0x10 field public static final int ONE_TOUCH_RECORD_NO_OR_INSUFFICIENT_CA_ENTITLEMENTS = 12; // 0xc field public static final int ONE_TOUCH_RECORD_NO_SOURCE_SIGNAL = 20; // 0x14 field public static final int ONE_TOUCH_RECORD_OTHER_REASON = 31; // 0x1f field public static final int ONE_TOUCH_RECORD_PARENT_LOCK_ON = 23; // 0x17 field public static final int ONE_TOUCH_RECORD_PLAYING = 17; // 0x11 field public static final int ONE_TOUCH_RECORD_PREVIOUS_RECORDING_IN_PROGRESS = 48; // 0x30 field public static final int ONE_TOUCH_RECORD_RECORDING_ALREADY_TERMINATED = 27; // 0x1b field public static final int ONE_TOUCH_RECORD_RECORDING_ANALOGUE_SERVICE = 3; // 0x3 field public static final int ONE_TOUCH_RECORD_RECORDING_CURRENTLY_SELECTED_SOURCE = 1; // 0x1 field public static final int ONE_TOUCH_RECORD_RECORDING_DIGITAL_SERVICE = 2; // 0x2 field public static final int ONE_TOUCH_RECORD_RECORDING_EXTERNAL_INPUT = 4; // 0x4 field public static final int ONE_TOUCH_RECORD_RECORDING_TERMINATED_NORMALLY = 26; // 0x1a field public static final int ONE_TOUCH_RECORD_UNABLE_ANALOGUE_SERVICE = 6; // 0x6 field public static final int ONE_TOUCH_RECORD_UNABLE_DIGITAL_SERVICE = 5; // 0x5 field public static final int ONE_TOUCH_RECORD_UNABLE_SELECTED_SERVICE = 7; // 0x7 field public static final int ONE_TOUCH_RECORD_UNSUPPORTED_CA = 11; // 0xb field public static final int OSD_MESSAGE_ARC_CONNECTED_INVALID_PORT = 1; // 0x1 field public static final int OSD_MESSAGE_AVR_VOLUME_CHANGED = 2; // 0x2 field public static final int POWER_STATUS_ON = 0; // 0x0 field public static final int POWER_STATUS_STANDBY = 1; // 0x1 field public static final int POWER_STATUS_TRANSIENT_TO_ON = 2; // 0x2 field public static final int POWER_STATUS_TRANSIENT_TO_STANDBY = 3; // 0x3 field public static final int POWER_STATUS_UNKNOWN = -1; // 0xffffffff field @Deprecated public static final int RESULT_ALREADY_IN_PROGRESS = 4; // 0x4 field public static final int RESULT_COMMUNICATION_FAILED = 7; // 0x7 field public static final int RESULT_EXCEPTION = 5; // 0x5 field public static final int RESULT_INCORRECT_MODE = 6; // 0x6 field public static final int RESULT_SOURCE_NOT_AVAILABLE = 2; // 0x2 field public static final int RESULT_SUCCESS = 0; // 0x0 field public static final int RESULT_TARGET_NOT_AVAILABLE = 3; // 0x3 field public static final int RESULT_TIMEOUT = 1; // 0x1 field public static final int TIMER_RECORDING_RESULT_EXTRA_CEC_DISABLED = 3; // 0x3 field public static final int TIMER_RECORDING_RESULT_EXTRA_CHECK_RECORDER_CONNECTION = 1; // 0x1 field public static final int TIMER_RECORDING_RESULT_EXTRA_FAIL_TO_RECORD_SELECTED_SOURCE = 2; // 0x2 field public static final int TIMER_RECORDING_RESULT_EXTRA_NO_ERROR = 0; // 0x0 field public static final int TIMER_RECORDING_TYPE_ANALOGUE = 2; // 0x2 field public static final int TIMER_RECORDING_TYPE_DIGITAL = 1; // 0x1 field public static final int TIMER_RECORDING_TYPE_EXTERNAL = 3; // 0x3 field public static final int TIMER_STATUS_MEDIA_INFO_NOT_PRESENT = 2; // 0x2 field public static final int TIMER_STATUS_MEDIA_INFO_PRESENT_NOT_PROTECTED = 0; // 0x0 field public static final int TIMER_STATUS_MEDIA_INFO_PRESENT_PROTECTED = 1; // 0x1 field public static final int TIMER_STATUS_NOT_PROGRAMMED_CA_NOT_SUPPORTED = 6; // 0x6 field public static final int TIMER_STATUS_NOT_PROGRAMMED_CLOCK_FAILURE = 10; // 0xa field public static final int TIMER_STATUS_NOT_PROGRAMMED_DATE_OUT_OF_RANGE = 2; // 0x2 field public static final int TIMER_STATUS_NOT_PROGRAMMED_DUPLICATED = 14; // 0xe field public static final int TIMER_STATUS_NOT_PROGRAMMED_INVALID_EXTERNAL_PHYSICAL_NUMBER = 5; // 0x5 field public static final int TIMER_STATUS_NOT_PROGRAMMED_INVALID_EXTERNAL_PLUG_NUMBER = 4; // 0x4 field public static final int TIMER_STATUS_NOT_PROGRAMMED_INVALID_SEQUENCE = 3; // 0x3 field public static final int TIMER_STATUS_NOT_PROGRAMMED_NO_CA_ENTITLEMENTS = 7; // 0x7 field public static final int TIMER_STATUS_NOT_PROGRAMMED_NO_FREE_TIME = 1; // 0x1 field public static final int TIMER_STATUS_NOT_PROGRAMMED_PARENTAL_LOCK_ON = 9; // 0x9 field public static final int TIMER_STATUS_NOT_PROGRAMMED_UNSUPPORTED_RESOLUTION = 8; // 0x8 field public static final int TIMER_STATUS_PROGRAMMED_INFO_ENOUGH_SPACE = 8; // 0x8 field public static final int TIMER_STATUS_PROGRAMMED_INFO_MIGHT_NOT_ENOUGH_SPACE = 11; // 0xb field public static final int TIMER_STATUS_PROGRAMMED_INFO_NOT_ENOUGH_SPACE = 9; // 0x9 field public static final int TIMER_STATUS_PROGRAMMED_INFO_NO_MEDIA_INFO = 10; // 0xa } @IntDef({android.hardware.hdmi.HdmiControlManager.RESULT_SUCCESS, android.hardware.hdmi.HdmiControlManager.RESULT_TIMEOUT, android.hardware.hdmi.HdmiControlManager.RESULT_SOURCE_NOT_AVAILABLE, android.hardware.hdmi.HdmiControlManager.RESULT_TARGET_NOT_AVAILABLE, android.hardware.hdmi.HdmiControlManager.RESULT_ALREADY_IN_PROGRESS, android.hardware.hdmi.HdmiControlManager.RESULT_EXCEPTION, android.hardware.hdmi.HdmiControlManager.RESULT_INCORRECT_MODE, android.hardware.hdmi.HdmiControlManager.RESULT_COMMUNICATION_FAILED}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.CLASS) public static @interface HdmiControlManager.ControlCallbackResult { } public static interface HdmiControlManager.HotplugEventListener { method public void onReceived(android.hardware.hdmi.HdmiHotplugEvent); } public static interface HdmiControlManager.VendorCommandListener { method public void onControlStateChanged(boolean, int); method public void onReceived(int, int, byte[], boolean); } public class HdmiDeviceInfo implements android.os.Parcelable { ctor public HdmiDeviceInfo(); method public int describeContents(); method public int getAdopterId(); method public int getDeviceId(); method public int getDevicePowerStatus(); method public int getDeviceType(); method public String getDisplayName(); method public int getId(); method public int getLogicalAddress(); method public int getPhysicalAddress(); method public int getPortId(); method public int getVendorId(); method public static int idForCecDevice(int); method public static int idForHardware(int); method public static int idForMhlDevice(int); method public boolean isCecDevice(); method public boolean isInactivated(); method public boolean isMhlDevice(); method public boolean isSourceType(); method public void writeToParcel(android.os.Parcel, int); field public static final int ADDR_INTERNAL = 0; // 0x0 field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final int DEVICE_AUDIO_SYSTEM = 5; // 0x5 field public static final int DEVICE_INACTIVE = -1; // 0xffffffff field public static final int DEVICE_PLAYBACK = 4; // 0x4 field public static final int DEVICE_RECORDER = 1; // 0x1 field public static final int DEVICE_RESERVED = 2; // 0x2 field public static final int DEVICE_TUNER = 3; // 0x3 field public static final int DEVICE_TV = 0; // 0x0 field public static final int ID_INVALID = 65535; // 0xffff field public static final android.hardware.hdmi.HdmiDeviceInfo INACTIVE_DEVICE; field public static final int PATH_INTERNAL = 0; // 0x0 field public static final int PATH_INVALID = 65535; // 0xffff field public static final int PORT_INVALID = -1; // 0xffffffff } public final class HdmiHotplugEvent implements android.os.Parcelable { method public int describeContents(); method public int getPort(); method public boolean isConnected(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class HdmiPlaybackClient extends android.hardware.hdmi.HdmiClient { method public int getDeviceType(); method public void oneTouchPlay(android.hardware.hdmi.HdmiPlaybackClient.OneTouchPlayCallback); method public void queryDisplayStatus(android.hardware.hdmi.HdmiPlaybackClient.DisplayStatusCallback); method public void sendStandby(); } public static interface HdmiPlaybackClient.DisplayStatusCallback { method public void onComplete(int); } public static interface HdmiPlaybackClient.OneTouchPlayCallback { method public void onComplete(int); } public final class HdmiPortInfo implements android.os.Parcelable { ctor public HdmiPortInfo(int, int, int, boolean, boolean, boolean); method public int describeContents(); method public int getAddress(); method public int getId(); method public int getType(); method public boolean isArcSupported(); method public boolean isCecSupported(); method public boolean isMhlSupported(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final int PORT_INPUT = 0; // 0x0 field public static final int PORT_OUTPUT = 1; // 0x1 } public abstract class HdmiRecordListener { ctor public HdmiRecordListener(); method public void onClearTimerRecordingResult(int, int); method public void onOneTouchRecordResult(int, int); method public abstract android.hardware.hdmi.HdmiRecordSources.RecordSource onOneTouchRecordSourceRequested(int); method public void onTimerRecordingResult(int, android.hardware.hdmi.HdmiRecordListener.TimerStatusData); } public static class HdmiRecordListener.TimerStatusData { method public int getDurationHour(); method public int getDurationMinute(); method public int getExtraError(); method public int getMediaInfo(); method public int getNotProgammedError(); method public int getProgrammedInfo(); method public boolean isOverlapped(); method public boolean isProgrammed(); } public final class HdmiRecordSources { method public static boolean checkRecordSource(byte[]); method public static android.hardware.hdmi.HdmiRecordSources.OwnSource ofOwnSource(); } public static final class HdmiRecordSources.AnalogueServiceSource extends android.hardware.hdmi.HdmiRecordSources.RecordSource { } public static final class HdmiRecordSources.DigitalServiceSource extends android.hardware.hdmi.HdmiRecordSources.RecordSource { } public static final class HdmiRecordSources.ExternalPhysicalAddress extends android.hardware.hdmi.HdmiRecordSources.RecordSource { } public static final class HdmiRecordSources.ExternalPlugData extends android.hardware.hdmi.HdmiRecordSources.RecordSource { } public static final class HdmiRecordSources.OwnSource extends android.hardware.hdmi.HdmiRecordSources.RecordSource { } public abstract static class HdmiRecordSources.RecordSource { } public class HdmiSwitchClient extends android.hardware.hdmi.HdmiClient { method public int getDeviceType(); method public void selectPort(int, @NonNull android.hardware.hdmi.HdmiSwitchClient.OnSelectListener); method public void selectPort(int, @NonNull java.util.concurrent.Executor, @NonNull android.hardware.hdmi.HdmiSwitchClient.OnSelectListener); } public static interface HdmiSwitchClient.OnSelectListener { method public void onSelect(@android.hardware.hdmi.HdmiControlManager.ControlCallbackResult int); } public class HdmiTimerRecordSources { method public static boolean checkTimerRecordSource(int, byte[]); method public static android.hardware.hdmi.HdmiTimerRecordSources.Duration durationOf(int, int); method public static android.hardware.hdmi.HdmiTimerRecordSources.TimerRecordSource ofAnalogueSource(android.hardware.hdmi.HdmiTimerRecordSources.TimerInfo, android.hardware.hdmi.HdmiRecordSources.AnalogueServiceSource); method public static android.hardware.hdmi.HdmiTimerRecordSources.TimerRecordSource ofDigitalSource(android.hardware.hdmi.HdmiTimerRecordSources.TimerInfo, android.hardware.hdmi.HdmiRecordSources.DigitalServiceSource); method public static android.hardware.hdmi.HdmiTimerRecordSources.TimerRecordSource ofExternalPhysicalAddress(android.hardware.hdmi.HdmiTimerRecordSources.TimerInfo, android.hardware.hdmi.HdmiRecordSources.ExternalPhysicalAddress); method public static android.hardware.hdmi.HdmiTimerRecordSources.TimerRecordSource ofExternalPlug(android.hardware.hdmi.HdmiTimerRecordSources.TimerInfo, android.hardware.hdmi.HdmiRecordSources.ExternalPlugData); method public static android.hardware.hdmi.HdmiTimerRecordSources.Time timeOf(int, int); method public static android.hardware.hdmi.HdmiTimerRecordSources.TimerInfo timerInfoOf(int, int, android.hardware.hdmi.HdmiTimerRecordSources.Time, android.hardware.hdmi.HdmiTimerRecordSources.Duration, int); field public static final int RECORDING_SEQUENCE_REPEAT_FRIDAY = 32; // 0x20 field public static final int RECORDING_SEQUENCE_REPEAT_MONDAY = 2; // 0x2 field public static final int RECORDING_SEQUENCE_REPEAT_ONCE_ONLY = 0; // 0x0 field public static final int RECORDING_SEQUENCE_REPEAT_SATUREDAY = 64; // 0x40 field public static final int RECORDING_SEQUENCE_REPEAT_SUNDAY = 1; // 0x1 field public static final int RECORDING_SEQUENCE_REPEAT_THURSDAY = 16; // 0x10 field public static final int RECORDING_SEQUENCE_REPEAT_TUESDAY = 4; // 0x4 field public static final int RECORDING_SEQUENCE_REPEAT_WEDNESDAY = 8; // 0x8 } public static final class HdmiTimerRecordSources.Duration { } public static final class HdmiTimerRecordSources.Time { } public static final class HdmiTimerRecordSources.TimerInfo { } public static final class HdmiTimerRecordSources.TimerRecordSource { } public final class HdmiTvClient extends android.hardware.hdmi.HdmiClient { method public void clearTimerRecording(int, int, android.hardware.hdmi.HdmiTimerRecordSources.TimerRecordSource); method public void deviceSelect(int, @NonNull android.hardware.hdmi.HdmiTvClient.SelectCallback); method public java.util.List
getDeviceList(); method public int getDeviceType(); method public void portSelect(int, @NonNull android.hardware.hdmi.HdmiTvClient.SelectCallback); method public void sendMhlVendorCommand(int, int, int, byte[]); method public void sendStandby(int); method public void setHdmiMhlVendorCommandListener(android.hardware.hdmi.HdmiTvClient.HdmiMhlVendorCommandListener); method public void setInputChangeListener(android.hardware.hdmi.HdmiTvClient.InputChangeListener); method public void setRecordListener(@NonNull android.hardware.hdmi.HdmiRecordListener); method public void setSystemAudioMode(boolean, android.hardware.hdmi.HdmiTvClient.SelectCallback); method public void setSystemAudioMute(boolean); method public void setSystemAudioVolume(int, int, int); method public void startOneTouchRecord(int, @NonNull android.hardware.hdmi.HdmiRecordSources.RecordSource); method public void startTimerRecording(int, int, android.hardware.hdmi.HdmiTimerRecordSources.TimerRecordSource); method public void stopOneTouchRecord(int); field public static final int VENDOR_DATA_SIZE = 16; // 0x10 } public static interface HdmiTvClient.HdmiMhlVendorCommandListener { method public void onReceived(int, int, int, byte[]); } public static interface HdmiTvClient.InputChangeListener { method public void onChanged(android.hardware.hdmi.HdmiDeviceInfo); } public static interface HdmiTvClient.SelectCallback { method public void onComplete(int); } } package android.hardware.location { public class ContextHubClient implements java.io.Closeable { method public void close(); method @NonNull public android.hardware.location.ContextHubInfo getAttachedHub(); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int sendMessageToNanoApp(@NonNull android.hardware.location.NanoAppMessage); } public class ContextHubClientCallback { ctor public ContextHubClientCallback(); method public void onHubReset(android.hardware.location.ContextHubClient); method public void onMessageFromNanoApp(android.hardware.location.ContextHubClient, android.hardware.location.NanoAppMessage); method public void onNanoAppAborted(android.hardware.location.ContextHubClient, long, int); method public void onNanoAppDisabled(android.hardware.location.ContextHubClient, long); method public void onNanoAppEnabled(android.hardware.location.ContextHubClient, long); method public void onNanoAppLoaded(android.hardware.location.ContextHubClient, long); method public void onNanoAppUnloaded(android.hardware.location.ContextHubClient, long); } public class ContextHubInfo implements android.os.Parcelable { ctor public ContextHubInfo(); method public int describeContents(); method public byte getChreApiMajorVersion(); method public byte getChreApiMinorVersion(); method public short getChrePatchVersion(); method public long getChrePlatformId(); method public int getId(); method public int getMaxPacketLengthBytes(); method public android.hardware.location.MemoryRegion[] getMemoryRegions(); method public String getName(); method public float getPeakMips(); method public float getPeakPowerDrawMw(); method public int getPlatformVersion(); method public float getSleepPowerDrawMw(); method public int getStaticSwVersion(); method public float getStoppedPowerDrawMw(); method public int[] getSupportedSensors(); method public String getToolchain(); method public int getToolchainVersion(); method public String getVendor(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public class ContextHubIntentEvent { method @NonNull public static android.hardware.location.ContextHubIntentEvent fromIntent(@NonNull android.content.Intent); method @NonNull public android.hardware.location.ContextHubInfo getContextHubInfo(); method public int getEventType(); method public int getNanoAppAbortCode(); method public long getNanoAppId(); method @NonNull public android.hardware.location.NanoAppMessage getNanoAppMessage(); } public final class ContextHubManager { method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubClient createClient(@NonNull android.hardware.location.ContextHubInfo, @NonNull android.hardware.location.ContextHubClientCallback, @NonNull java.util.concurrent.Executor); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubClient createClient(@NonNull android.hardware.location.ContextHubInfo, @NonNull android.hardware.location.ContextHubClientCallback); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubClient createClient(@NonNull android.hardware.location.ContextHubInfo, @NonNull android.app.PendingIntent, long); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubTransaction
disableNanoApp(@NonNull android.hardware.location.ContextHubInfo, long); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubTransaction
enableNanoApp(@NonNull android.hardware.location.ContextHubInfo, long); method @Deprecated @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int[] findNanoAppOnHub(int, @NonNull android.hardware.location.NanoAppFilter); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int[] getContextHubHandles(); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public android.hardware.location.ContextHubInfo getContextHubInfo(int); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public java.util.List
getContextHubs(); method @Deprecated @Nullable @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public android.hardware.location.NanoAppInstanceInfo getNanoAppInstanceInfo(int); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int loadNanoApp(int, @NonNull android.hardware.location.NanoApp); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubTransaction
loadNanoApp(@NonNull android.hardware.location.ContextHubInfo, @NonNull android.hardware.location.NanoAppBinary); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubTransaction
> queryNanoApps(@NonNull android.hardware.location.ContextHubInfo); method @Deprecated public int registerCallback(@NonNull android.hardware.location.ContextHubManager.Callback); method @Deprecated public int registerCallback(android.hardware.location.ContextHubManager.Callback, android.os.Handler); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int sendMessage(int, int, @NonNull android.hardware.location.ContextHubMessage); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int unloadNanoApp(int); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubTransaction
unloadNanoApp(@NonNull android.hardware.location.ContextHubInfo, long); method @Deprecated public int unregisterCallback(@NonNull android.hardware.location.ContextHubManager.Callback); field public static final int EVENT_HUB_RESET = 6; // 0x6 field public static final int EVENT_NANOAPP_ABORTED = 4; // 0x4 field public static final int EVENT_NANOAPP_DISABLED = 3; // 0x3 field public static final int EVENT_NANOAPP_ENABLED = 2; // 0x2 field public static final int EVENT_NANOAPP_LOADED = 0; // 0x0 field public static final int EVENT_NANOAPP_MESSAGE = 5; // 0x5 field public static final int EVENT_NANOAPP_UNLOADED = 1; // 0x1 field public static final String EXTRA_CONTEXT_HUB_INFO = "android.hardware.location.extra.CONTEXT_HUB_INFO"; field public static final String EXTRA_EVENT_TYPE = "android.hardware.location.extra.EVENT_TYPE"; field public static final String EXTRA_MESSAGE = "android.hardware.location.extra.MESSAGE"; field public static final String EXTRA_NANOAPP_ABORT_CODE = "android.hardware.location.extra.NANOAPP_ABORT_CODE"; field public static final String EXTRA_NANOAPP_ID = "android.hardware.location.extra.NANOAPP_ID"; } @Deprecated public abstract static class ContextHubManager.Callback { ctor @Deprecated protected ContextHubManager.Callback(); method @Deprecated public abstract void onMessageReceipt(int, int, @NonNull android.hardware.location.ContextHubMessage); } @Deprecated public class ContextHubMessage implements android.os.Parcelable { ctor @Deprecated public ContextHubMessage(int, int, byte[]); method @Deprecated public int describeContents(); method @Deprecated public byte[] getData(); method @Deprecated public int getMsgType(); method @Deprecated public int getVersion(); method @Deprecated public void setMsgData(byte[]); method @Deprecated public void setMsgType(int); method @Deprecated public void setVersion(int); method @Deprecated public void writeToParcel(android.os.Parcel, int); field @Deprecated @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public class ContextHubTransaction
{ method public int getType(); method public void setOnCompleteListener(@NonNull android.hardware.location.ContextHubTransaction.OnCompleteListener
, @NonNull java.util.concurrent.Executor); method public void setOnCompleteListener(@NonNull android.hardware.location.ContextHubTransaction.OnCompleteListener
); method public static String typeToString(int, boolean); method public android.hardware.location.ContextHubTransaction.Response
waitForResponse(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException; field public static final int RESULT_FAILED_AT_HUB = 5; // 0x5 field public static final int RESULT_FAILED_BAD_PARAMS = 2; // 0x2 field public static final int RESULT_FAILED_BUSY = 4; // 0x4 field public static final int RESULT_FAILED_HAL_UNAVAILABLE = 8; // 0x8 field public static final int RESULT_FAILED_SERVICE_INTERNAL_FAILURE = 7; // 0x7 field public static final int RESULT_FAILED_TIMEOUT = 6; // 0x6 field public static final int RESULT_FAILED_UNINITIALIZED = 3; // 0x3 field public static final int RESULT_FAILED_UNKNOWN = 1; // 0x1 field public static final int RESULT_SUCCESS = 0; // 0x0 field public static final int TYPE_DISABLE_NANOAPP = 3; // 0x3 field public static final int TYPE_ENABLE_NANOAPP = 2; // 0x2 field public static final int TYPE_LOAD_NANOAPP = 0; // 0x0 field public static final int TYPE_QUERY_NANOAPPS = 4; // 0x4 field public static final int TYPE_UNLOAD_NANOAPP = 1; // 0x1 } @java.lang.FunctionalInterface public static interface ContextHubTransaction.OnCompleteListener
{ method public void onComplete(android.hardware.location.ContextHubTransaction
, android.hardware.location.ContextHubTransaction.Response
); } public static class ContextHubTransaction.Response
{ method public R getContents(); method public int getResult(); } public final class GeofenceHardware { method public boolean addGeofence(int, int, android.hardware.location.GeofenceHardwareRequest, android.hardware.location.GeofenceHardwareCallback); method public int[] getMonitoringTypes(); method public int getStatusOfMonitoringType(int); method public boolean pauseGeofence(int, int); method public boolean registerForMonitorStateChangeCallback(int, android.hardware.location.GeofenceHardwareMonitorCallback); method public boolean removeGeofence(int, int); method public boolean resumeGeofence(int, int, int); method public boolean unregisterForMonitorStateChangeCallback(int, android.hardware.location.GeofenceHardwareMonitorCallback); field public static final int GEOFENCE_ENTERED = 1; // 0x1 field public static final int GEOFENCE_ERROR_ID_EXISTS = 2; // 0x2 field public static final int GEOFENCE_ERROR_ID_UNKNOWN = 3; // 0x3 field public static final int GEOFENCE_ERROR_INSUFFICIENT_MEMORY = 6; // 0x6 field public static final int GEOFENCE_ERROR_INVALID_TRANSITION = 4; // 0x4 field public static final int GEOFENCE_ERROR_TOO_MANY_GEOFENCES = 1; // 0x1 field public static final int GEOFENCE_EXITED = 2; // 0x2 field public static final int GEOFENCE_FAILURE = 5; // 0x5 field public static final int GEOFENCE_SUCCESS = 0; // 0x0 field public static final int GEOFENCE_UNCERTAIN = 4; // 0x4 field public static final int MONITORING_TYPE_FUSED_HARDWARE = 1; // 0x1 field public static final int MONITORING_TYPE_GPS_HARDWARE = 0; // 0x0 field public static final int MONITOR_CURRENTLY_AVAILABLE = 0; // 0x0 field public static final int MONITOR_CURRENTLY_UNAVAILABLE = 1; // 0x1 field public static final int MONITOR_UNSUPPORTED = 2; // 0x2 field public static final int SOURCE_TECHNOLOGY_BLUETOOTH = 16; // 0x10 field public static final int SOURCE_TECHNOLOGY_CELL = 8; // 0x8 field public static final int SOURCE_TECHNOLOGY_GNSS = 1; // 0x1 field public static final int SOURCE_TECHNOLOGY_SENSORS = 4; // 0x4 field public static final int SOURCE_TECHNOLOGY_WIFI = 2; // 0x2 } public abstract class GeofenceHardwareCallback { ctor public GeofenceHardwareCallback(); method public void onGeofenceAdd(int, int); method public void onGeofencePause(int, int); method public void onGeofenceRemove(int, int); method public void onGeofenceResume(int, int); method public void onGeofenceTransition(int, int, android.location.Location, long, int); } public abstract class GeofenceHardwareMonitorCallback { ctor public GeofenceHardwareMonitorCallback(); method @Deprecated public void onMonitoringSystemChange(int, boolean, android.location.Location); method public void onMonitoringSystemChange(android.hardware.location.GeofenceHardwareMonitorEvent); } public class GeofenceHardwareMonitorEvent implements android.os.Parcelable { ctor public GeofenceHardwareMonitorEvent(int, int, int, android.location.Location); method public int describeContents(); method public android.location.Location getLocation(); method public int getMonitoringStatus(); method public int getMonitoringType(); method public int getSourceTechnologies(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class GeofenceHardwareRequest { ctor public GeofenceHardwareRequest(); method public static android.hardware.location.GeofenceHardwareRequest createCircularGeofence(double, double, double); method public int getLastTransition(); method public double getLatitude(); method public double getLongitude(); method public int getMonitorTransitions(); method public int getNotificationResponsiveness(); method public double getRadius(); method public int getSourceTechnologies(); method public int getUnknownTimer(); method public void setLastTransition(int); method public void setMonitorTransitions(int); method public void setNotificationResponsiveness(int); method public void setSourceTechnologies(int); method public void setUnknownTimer(int); } public class MemoryRegion implements android.os.Parcelable { ctor public MemoryRegion(android.os.Parcel); method public int describeContents(); method public int getCapacityBytes(); method public int getFreeCapacityBytes(); method public boolean isExecutable(); method public boolean isReadable(); method public boolean isWritable(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } @Deprecated public class NanoApp implements android.os.Parcelable { ctor @Deprecated public NanoApp(); ctor @Deprecated public NanoApp(int, byte[]); ctor @Deprecated public NanoApp(long, byte[]); method @Deprecated public int describeContents(); method @Deprecated public byte[] getAppBinary(); method @Deprecated public long getAppId(); method @Deprecated public int getAppVersion(); method @Deprecated public String getName(); method @Deprecated public int getNeededExecMemBytes(); method @Deprecated public int getNeededReadMemBytes(); method @Deprecated public int[] getNeededSensors(); method @Deprecated public int getNeededWriteMemBytes(); method @Deprecated public int[] getOutputEvents(); method @Deprecated public String getPublisher(); method @Deprecated public void setAppBinary(byte[]); method @Deprecated public void setAppId(long); method @Deprecated public void setAppVersion(int); method @Deprecated public void setName(String); method @Deprecated public void setNeededExecMemBytes(int); method @Deprecated public void setNeededReadMemBytes(int); method @Deprecated public void setNeededSensors(int[]); method @Deprecated public void setNeededWriteMemBytes(int); method @Deprecated public void setOutputEvents(int[]); method @Deprecated public void setPublisher(String); method @Deprecated public void writeToParcel(android.os.Parcel, int); field @Deprecated @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class NanoAppBinary implements android.os.Parcelable { ctor public NanoAppBinary(byte[]); method public int describeContents(); method public byte[] getBinary(); method public byte[] getBinaryNoHeader(); method public int getFlags(); method public int getHeaderVersion(); method public long getHwHubType(); method public long getNanoAppId(); method public int getNanoAppVersion(); method public byte getTargetChreApiMajorVersion(); method public byte getTargetChreApiMinorVersion(); method public boolean hasValidHeader(); method public boolean isEncrypted(); method public boolean isSigned(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } @Deprecated public class NanoAppFilter implements android.os.Parcelable { ctor @Deprecated public NanoAppFilter(long, int, int, long); method @Deprecated public int describeContents(); method @Deprecated public boolean testMatch(android.hardware.location.NanoAppInstanceInfo); method @Deprecated public void writeToParcel(android.os.Parcel, int); field @Deprecated public static final int APP_ANY = -1; // 0xffffffff field @Deprecated @NonNull public static final android.os.Parcelable.Creator
CREATOR; field @Deprecated public static final int FLAGS_VERSION_ANY = -1; // 0xffffffff field @Deprecated public static final int FLAGS_VERSION_GREAT_THAN = 2; // 0x2 field @Deprecated public static final int FLAGS_VERSION_LESS_THAN = 4; // 0x4 field @Deprecated public static final int FLAGS_VERSION_STRICTLY_EQUAL = 8; // 0x8 field @Deprecated public static final int HUB_ANY = -1; // 0xffffffff field @Deprecated public static final int VENDOR_ANY = -1; // 0xffffffff } @Deprecated public class NanoAppInstanceInfo implements android.os.Parcelable { ctor @Deprecated public NanoAppInstanceInfo(); method @Deprecated public int describeContents(); method @Deprecated public long getAppId(); method @Deprecated public int getAppVersion(); method @Deprecated public int getContexthubId(); method @Deprecated public int getHandle(); method @Deprecated public String getName(); method @Deprecated public int getNeededExecMemBytes(); method @Deprecated public int getNeededReadMemBytes(); method @Deprecated @NonNull public int[] getNeededSensors(); method @Deprecated public int getNeededWriteMemBytes(); method @Deprecated @NonNull public int[] getOutputEvents(); method @Deprecated public String getPublisher(); method @Deprecated public void writeToParcel(android.os.Parcel, int); field @Deprecated @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class NanoAppMessage implements android.os.Parcelable { method public static android.hardware.location.NanoAppMessage createMessageFromNanoApp(long, int, byte[], boolean); method public static android.hardware.location.NanoAppMessage createMessageToNanoApp(long, int, byte[]); method public int describeContents(); method public byte[] getMessageBody(); method public int getMessageType(); method public long getNanoAppId(); method public boolean isBroadcastMessage(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class NanoAppState implements android.os.Parcelable { ctor public NanoAppState(long, int, boolean); method public int describeContents(); method public long getNanoAppId(); method public long getNanoAppVersion(); method public boolean isEnabled(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } } package android.hardware.radio { public final class Announcement implements android.os.Parcelable { method public int describeContents(); method @NonNull public android.hardware.radio.ProgramSelector getSelector(); method public int getType(); method @NonNull public java.util.Map
getVendorInfo(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final int TYPE_EMERGENCY = 1; // 0x1 field public static final int TYPE_EVENT = 6; // 0x6 field public static final int TYPE_MISC = 8; // 0x8 field public static final int TYPE_NEWS = 5; // 0x5 field public static final int TYPE_SPORT = 7; // 0x7 field public static final int TYPE_TRAFFIC = 3; // 0x3 field public static final int TYPE_WARNING = 2; // 0x2 field public static final int TYPE_WEATHER = 4; // 0x4 } public static interface Announcement.OnListUpdatedListener { method public void onListUpdated(java.util.Collection
); } public final class ProgramList implements java.lang.AutoCloseable { method public void addOnCompleteListener(@NonNull java.util.concurrent.Executor, @NonNull android.hardware.radio.ProgramList.OnCompleteListener); method public void addOnCompleteListener(@NonNull android.hardware.radio.ProgramList.OnCompleteListener); method public void close(); method @Nullable public android.hardware.radio.RadioManager.ProgramInfo get(@NonNull android.hardware.radio.ProgramSelector.Identifier); method public void registerListCallback(@NonNull java.util.concurrent.Executor, @NonNull android.hardware.radio.ProgramList.ListCallback); method public void registerListCallback(@NonNull android.hardware.radio.ProgramList.ListCallback); method public void removeOnCompleteListener(@NonNull android.hardware.radio.ProgramList.OnCompleteListener); method @NonNull public java.util.List
toList(); method public void unregisterListCallback(@NonNull android.hardware.radio.ProgramList.ListCallback); } public static final class ProgramList.Filter implements android.os.Parcelable { ctor public ProgramList.Filter(@NonNull java.util.Set
, @NonNull java.util.Set
, boolean, boolean); method public boolean areCategoriesIncluded(); method public boolean areModificationsExcluded(); method public int describeContents(); method @NonNull public java.util.Set
getIdentifierTypes(); method @NonNull public java.util.Set
getIdentifiers(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public abstract static class ProgramList.ListCallback { ctor public ProgramList.ListCallback(); method public void onItemChanged(@NonNull android.hardware.radio.ProgramSelector.Identifier); method public void onItemRemoved(@NonNull android.hardware.radio.ProgramSelector.Identifier); } public static interface ProgramList.OnCompleteListener { method public void onComplete(); } public final class ProgramSelector implements android.os.Parcelable { ctor public ProgramSelector(@android.hardware.radio.ProgramSelector.ProgramType int, @NonNull android.hardware.radio.ProgramSelector.Identifier, @Nullable android.hardware.radio.ProgramSelector.Identifier[], @Nullable long[]); method @NonNull public static android.hardware.radio.ProgramSelector createAmFmSelector(@android.hardware.radio.RadioManager.Band int, int); method @NonNull public static android.hardware.radio.ProgramSelector createAmFmSelector(@android.hardware.radio.RadioManager.Band int, int, int); method public int describeContents(); method @NonNull public android.hardware.radio.ProgramSelector.Identifier[] getAllIds(@android.hardware.radio.ProgramSelector.IdentifierType int); method public long getFirstId(@android.hardware.radio.ProgramSelector.IdentifierType int); method @NonNull public android.hardware.radio.ProgramSelector.Identifier getPrimaryId(); method @Deprecated @android.hardware.radio.ProgramSelector.ProgramType public int getProgramType(); method @NonNull public android.hardware.radio.ProgramSelector.Identifier[] getSecondaryIds(); method @Deprecated @NonNull public long[] getVendorIds(); method @NonNull public android.hardware.radio.ProgramSelector withSecondaryPreferred(@NonNull android.hardware.radio.ProgramSelector.Identifier); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final int IDENTIFIER_TYPE_AMFM_FREQUENCY = 1; // 0x1 field public static final int IDENTIFIER_TYPE_DAB_ENSEMBLE = 6; // 0x6 field public static final int IDENTIFIER_TYPE_DAB_FREQUENCY = 8; // 0x8 field public static final int IDENTIFIER_TYPE_DAB_SCID = 7; // 0x7 field public static final int IDENTIFIER_TYPE_DAB_SIDECC = 5; // 0x5 field public static final int IDENTIFIER_TYPE_DAB_SID_EXT = 5; // 0x5 field public static final int IDENTIFIER_TYPE_DRMO_FREQUENCY = 10; // 0xa field @Deprecated public static final int IDENTIFIER_TYPE_DRMO_MODULATION = 11; // 0xb field public static final int IDENTIFIER_TYPE_DRMO_SERVICE_ID = 9; // 0x9 field public static final int IDENTIFIER_TYPE_HD_STATION_ID_EXT = 3; // 0x3 field public static final int IDENTIFIER_TYPE_HD_STATION_NAME = 10004; // 0x2714 field @Deprecated public static final int IDENTIFIER_TYPE_HD_SUBCHANNEL = 4; // 0x4 field public static final int IDENTIFIER_TYPE_INVALID = 0; // 0x0 field public static final int IDENTIFIER_TYPE_RDS_PI = 2; // 0x2 field public static final int IDENTIFIER_TYPE_SXM_CHANNEL = 13; // 0xd field public static final int IDENTIFIER_TYPE_SXM_SERVICE_ID = 12; // 0xc field public static final int IDENTIFIER_TYPE_VENDOR_END = 1999; // 0x7cf field @Deprecated public static final int IDENTIFIER_TYPE_VENDOR_PRIMARY_END = 1999; // 0x7cf field @Deprecated public static final int IDENTIFIER_TYPE_VENDOR_PRIMARY_START = 1000; // 0x3e8 field public static final int IDENTIFIER_TYPE_VENDOR_START = 1000; // 0x3e8 field @Deprecated public static final int PROGRAM_TYPE_AM = 1; // 0x1 field @Deprecated public static final int PROGRAM_TYPE_AM_HD = 3; // 0x3 field @Deprecated public static final int PROGRAM_TYPE_DAB = 5; // 0x5 field @Deprecated public static final int PROGRAM_TYPE_DRMO = 6; // 0x6 field @Deprecated public static final int PROGRAM_TYPE_FM = 2; // 0x2 field @Deprecated public static final int PROGRAM_TYPE_FM_HD = 4; // 0x4 field @Deprecated public static final int PROGRAM_TYPE_INVALID = 0; // 0x0 field @Deprecated public static final int PROGRAM_TYPE_SXM = 7; // 0x7 field @Deprecated public static final int PROGRAM_TYPE_VENDOR_END = 1999; // 0x7cf field @Deprecated public static final int PROGRAM_TYPE_VENDOR_START = 1000; // 0x3e8 } public static final class ProgramSelector.Identifier implements android.os.Parcelable { ctor public ProgramSelector.Identifier(@android.hardware.radio.ProgramSelector.IdentifierType int, long); method public int describeContents(); method @android.hardware.radio.ProgramSelector.IdentifierType public int getType(); method public long getValue(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } @IntDef(prefix={"IDENTIFIER_TYPE_"}, value={android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_INVALID, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_RDS_PI, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_HD_SUBCHANNEL, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_HD_STATION_NAME, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DAB_SID_EXT, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DAB_SIDECC, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DAB_ENSEMBLE, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DAB_SCID, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DRMO_SERVICE_ID, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DRMO_FREQUENCY, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DRMO_MODULATION, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_SXM_SERVICE_ID, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_SXM_CHANNEL}) @IntRange(from=android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_VENDOR_START, to=android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_VENDOR_END) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface ProgramSelector.IdentifierType { } @Deprecated @IntDef(prefix={"PROGRAM_TYPE_"}, value={android.hardware.radio.ProgramSelector.PROGRAM_TYPE_INVALID, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_AM, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_FM, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_AM_HD, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_FM_HD, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_DAB, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_DRMO, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_SXM}) @IntRange(from=android.hardware.radio.ProgramSelector.PROGRAM_TYPE_VENDOR_START, to=android.hardware.radio.ProgramSelector.PROGRAM_TYPE_VENDOR_END) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface ProgramSelector.ProgramType { } public class RadioManager { method @RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RADIO) public void addAnnouncementListener(@NonNull java.util.Set
, @NonNull android.hardware.radio.Announcement.OnListUpdatedListener); method @RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RADIO) public void addAnnouncementListener(@NonNull java.util.concurrent.Executor, @NonNull java.util.Set
, @NonNull android.hardware.radio.Announcement.OnListUpdatedListener); method @RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RADIO) public int listModules(java.util.List
); method @RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RADIO) public android.hardware.radio.RadioTuner openTuner(int, android.hardware.radio.RadioManager.BandConfig, boolean, android.hardware.radio.RadioTuner.Callback, android.os.Handler); method @RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RADIO) public void removeAnnouncementListener(@NonNull android.hardware.radio.Announcement.OnListUpdatedListener); field public static final int BAND_AM = 0; // 0x0 field public static final int BAND_AM_HD = 3; // 0x3 field public static final int BAND_FM = 1; // 0x1 field public static final int BAND_FM_HD = 2; // 0x2 field public static final int BAND_INVALID = -1; // 0xffffffff field public static final int CLASS_AM_FM = 0; // 0x0 field public static final int CLASS_DT = 2; // 0x2 field public static final int CLASS_SAT = 1; // 0x1 field public static final int CONFIG_DAB_DAB_LINKING = 6; // 0x6 field public static final int CONFIG_DAB_DAB_SOFT_LINKING = 8; // 0x8 field public static final int CONFIG_DAB_FM_LINKING = 7; // 0x7 field public static final int CONFIG_DAB_FM_SOFT_LINKING = 9; // 0x9 field public static final int CONFIG_FORCE_ANALOG = 2; // 0x2 field public static final int CONFIG_FORCE_DIGITAL = 3; // 0x3 field public static final int CONFIG_FORCE_MONO = 1; // 0x1 field public static final int CONFIG_RDS_AF = 4; // 0x4 field public static final int CONFIG_RDS_REG = 5; // 0x5 field public static final int REGION_ITU_1 = 0; // 0x0 field public static final int REGION_ITU_2 = 1; // 0x1 field public static final int REGION_JAPAN = 3; // 0x3 field public static final int REGION_KOREA = 4; // 0x4 field public static final int REGION_OIRT = 2; // 0x2 field public static final int STATUS_BAD_VALUE = -22; // 0xffffffea field public static final int STATUS_DEAD_OBJECT = -32; // 0xffffffe0 field public static final int STATUS_ERROR = -2147483648; // 0x80000000 field public static final int STATUS_INVALID_OPERATION = -38; // 0xffffffda field public static final int STATUS_NO_INIT = -19; // 0xffffffed field public static final int STATUS_OK = 0; // 0x0 field public static final int STATUS_PERMISSION_DENIED = -1; // 0xffffffff field public static final int STATUS_TIMED_OUT = -110; // 0xffffff92 } public static class RadioManager.AmBandConfig extends android.hardware.radio.RadioManager.BandConfig { method public boolean getStereo(); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static class RadioManager.AmBandConfig.Builder { ctor public RadioManager.AmBandConfig.Builder(android.hardware.radio.RadioManager.AmBandDescriptor); ctor public RadioManager.AmBandConfig.Builder(android.hardware.radio.RadioManager.AmBandConfig); method public android.hardware.radio.RadioManager.AmBandConfig build(); method public android.hardware.radio.RadioManager.AmBandConfig.Builder setStereo(boolean); } public static class RadioManager.AmBandDescriptor extends android.hardware.radio.RadioManager.BandDescriptor { method public boolean isStereoSupported(); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } @IntDef(prefix={"BAND_"}, value={android.hardware.radio.RadioManager.BAND_INVALID, android.hardware.radio.RadioManager.BAND_AM, android.hardware.radio.RadioManager.BAND_FM, android.hardware.radio.RadioManager.BAND_AM_HD, android.hardware.radio.RadioManager.BAND_FM_HD}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface RadioManager.Band { } public static class RadioManager.BandConfig implements android.os.Parcelable { method public int describeContents(); method public int getLowerLimit(); method public int getRegion(); method public int getSpacing(); method public int getType(); method public int getUpperLimit(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static class RadioManager.BandDescriptor implements android.os.Parcelable { method public int describeContents(); method public int getLowerLimit(); method public int getRegion(); method public int getSpacing(); method public int getType(); method public int getUpperLimit(); method public boolean isAmBand(); method public boolean isFmBand(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static class RadioManager.FmBandConfig extends android.hardware.radio.RadioManager.BandConfig { method public boolean getAf(); method public boolean getEa(); method public boolean getRds(); method public boolean getStereo(); method public boolean getTa(); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static class RadioManager.FmBandConfig.Builder { ctor public RadioManager.FmBandConfig.Builder(android.hardware.radio.RadioManager.FmBandDescriptor); ctor public RadioManager.FmBandConfig.Builder(android.hardware.radio.RadioManager.FmBandConfig); method public android.hardware.radio.RadioManager.FmBandConfig build(); method public android.hardware.radio.RadioManager.FmBandConfig.Builder setAf(boolean); method public android.hardware.radio.RadioManager.FmBandConfig.Builder setEa(boolean); method public android.hardware.radio.RadioManager.FmBandConfig.Builder setRds(boolean); method public android.hardware.radio.RadioManager.FmBandConfig.Builder setStereo(boolean); method public android.hardware.radio.RadioManager.FmBandConfig.Builder setTa(boolean); } public static class RadioManager.FmBandDescriptor extends android.hardware.radio.RadioManager.BandDescriptor { method public boolean isAfSupported(); method public boolean isEaSupported(); method public boolean isRdsSupported(); method public boolean isStereoSupported(); method public boolean isTaSupported(); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static class RadioManager.ModuleProperties implements android.os.Parcelable { method public int describeContents(); method public android.hardware.radio.RadioManager.BandDescriptor[] getBands(); method public int getClassId(); method @Nullable public java.util.Map
getDabFrequencyTable(); method public int getId(); method public String getImplementor(); method public int getNumAudioSources(); method public int getNumTuners(); method public String getProduct(); method public String getSerial(); method @NonNull public String getServiceName(); method @NonNull public java.util.Map
getVendorInfo(); method public String getVersion(); method public boolean isBackgroundScanningSupported(); method public boolean isCaptureSupported(); method public boolean isInitializationRequired(); method public boolean isProgramIdentifierSupported(@android.hardware.radio.ProgramSelector.IdentifierType int); method public boolean isProgramTypeSupported(@android.hardware.radio.ProgramSelector.ProgramType int); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static class RadioManager.ProgramInfo implements android.os.Parcelable { method public int describeContents(); method @Deprecated public int getChannel(); method @Nullable public android.hardware.radio.ProgramSelector.Identifier getLogicallyTunedTo(); method public android.hardware.radio.RadioMetadata getMetadata(); method @Nullable public android.hardware.radio.ProgramSelector.Identifier getPhysicallyTunedTo(); method @Nullable public java.util.Collection
getRelatedContent(); method @NonNull public android.hardware.radio.ProgramSelector getSelector(); method public int getSignalStrength(); method @Deprecated public int getSubChannel(); method @NonNull public java.util.Map
getVendorInfo(); method @Deprecated public boolean isDigital(); method public boolean isLive(); method public boolean isMuted(); method public boolean isStereo(); method public boolean isTrafficAnnouncementActive(); method public boolean isTrafficProgram(); method public boolean isTuned(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class RadioMetadata implements android.os.Parcelable { method public boolean containsKey(String); method public int describeContents(); method @Deprecated public android.graphics.Bitmap getBitmap(String); method public android.hardware.radio.RadioMetadata.Clock getClock(String); method public int getInt(String); method public String getString(String); method public java.util.Set
keySet(); method public int size(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final String METADATA_KEY_ALBUM = "android.hardware.radio.metadata.ALBUM"; field public static final String METADATA_KEY_ART = "android.hardware.radio.metadata.ART"; field public static final String METADATA_KEY_ARTIST = "android.hardware.radio.metadata.ARTIST"; field public static final String METADATA_KEY_CLOCK = "android.hardware.radio.metadata.CLOCK"; field public static final String METADATA_KEY_DAB_COMPONENT_NAME = "android.hardware.radio.metadata.DAB_COMPONENT_NAME"; field public static final String METADATA_KEY_DAB_COMPONENT_NAME_SHORT = "android.hardware.radio.metadata.DAB_COMPONENT_NAME_SHORT"; field public static final String METADATA_KEY_DAB_ENSEMBLE_NAME = "android.hardware.radio.metadata.DAB_ENSEMBLE_NAME"; field public static final String METADATA_KEY_DAB_ENSEMBLE_NAME_SHORT = "android.hardware.radio.metadata.DAB_ENSEMBLE_NAME_SHORT"; field public static final String METADATA_KEY_DAB_SERVICE_NAME = "android.hardware.radio.metadata.DAB_SERVICE_NAME"; field public static final String METADATA_KEY_DAB_SERVICE_NAME_SHORT = "android.hardware.radio.metadata.DAB_SERVICE_NAME_SHORT"; field public static final String METADATA_KEY_GENRE = "android.hardware.radio.metadata.GENRE"; field public static final String METADATA_KEY_ICON = "android.hardware.radio.metadata.ICON"; field public static final String METADATA_KEY_PROGRAM_NAME = "android.hardware.radio.metadata.PROGRAM_NAME"; field public static final String METADATA_KEY_RBDS_PTY = "android.hardware.radio.metadata.RBDS_PTY"; field public static final String METADATA_KEY_RDS_PI = "android.hardware.radio.metadata.RDS_PI"; field public static final String METADATA_KEY_RDS_PS = "android.hardware.radio.metadata.RDS_PS"; field public static final String METADATA_KEY_RDS_PTY = "android.hardware.radio.metadata.RDS_PTY"; field public static final String METADATA_KEY_RDS_RT = "android.hardware.radio.metadata.RDS_RT"; field public static final String METADATA_KEY_TITLE = "android.hardware.radio.metadata.TITLE"; } public static final class RadioMetadata.Builder { ctor public RadioMetadata.Builder(); ctor public RadioMetadata.Builder(android.hardware.radio.RadioMetadata); method public android.hardware.radio.RadioMetadata build(); method public android.hardware.radio.RadioMetadata.Builder putBitmap(String, android.graphics.Bitmap); method public android.hardware.radio.RadioMetadata.Builder putClock(String, long, int); method public android.hardware.radio.RadioMetadata.Builder putInt(String, int); method public android.hardware.radio.RadioMetadata.Builder putString(String, String); } public static final class RadioMetadata.Clock implements android.os.Parcelable { ctor public RadioMetadata.Clock(long, int); method public int describeContents(); method public int getTimezoneOffsetMinutes(); method public long getUtcEpochSeconds(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public abstract class RadioTuner { ctor public RadioTuner(); method public abstract int cancel(); method public abstract void cancelAnnouncement(); method public abstract void close(); method @Deprecated public abstract int getConfiguration(android.hardware.radio.RadioManager.BandConfig[]); method @Nullable public android.hardware.radio.ProgramList getDynamicProgramList(@Nullable android.hardware.radio.ProgramList.Filter); method public abstract boolean getMute(); method @NonNull public java.util.Map
getParameters(@NonNull java.util.List
); method @Deprecated public abstract int getProgramInformation(android.hardware.radio.RadioManager.ProgramInfo[]); method @Deprecated @NonNull public abstract java.util.List
getProgramList(@Nullable java.util.Map
); method public abstract boolean hasControl(); method @Deprecated public abstract boolean isAnalogForced(); method @Deprecated public abstract boolean isAntennaConnected(); method public boolean isConfigFlagSet(int); method public boolean isConfigFlagSupported(int); method public abstract int scan(int, boolean); method @Deprecated public abstract void setAnalogForced(boolean); method public void setConfigFlag(int, boolean); method @Deprecated public abstract int setConfiguration(android.hardware.radio.RadioManager.BandConfig); method public abstract int setMute(boolean); method @NonNull public java.util.Map
setParameters(@NonNull java.util.Map
); method public abstract boolean startBackgroundScan(); method public abstract int step(int, boolean); method @Deprecated public abstract int tune(int, int); method public abstract void tune(@NonNull android.hardware.radio.ProgramSelector); field public static final int DIRECTION_DOWN = 1; // 0x1 field public static final int DIRECTION_UP = 0; // 0x0 field @Deprecated public static final int ERROR_BACKGROUND_SCAN_FAILED = 6; // 0x6 field @Deprecated public static final int ERROR_BACKGROUND_SCAN_UNAVAILABLE = 5; // 0x5 field @Deprecated public static final int ERROR_CANCELLED = 2; // 0x2 field @Deprecated public static final int ERROR_CONFIG = 4; // 0x4 field @Deprecated public static final int ERROR_HARDWARE_FAILURE = 0; // 0x0 field @Deprecated public static final int ERROR_SCAN_TIMEOUT = 3; // 0x3 field @Deprecated public static final int ERROR_SERVER_DIED = 1; // 0x1 } public abstract static class RadioTuner.Callback { ctor public RadioTuner.Callback(); method public void onAntennaState(boolean); method public void onBackgroundScanAvailabilityChange(boolean); method public void onBackgroundScanComplete(); method @Deprecated public void onConfigurationChanged(android.hardware.radio.RadioManager.BandConfig); method public void onControlChanged(boolean); method public void onEmergencyAnnouncement(boolean); method @Deprecated public void onError(int); method @Deprecated public void onMetadataChanged(android.hardware.radio.RadioMetadata); method public void onParametersUpdated(@NonNull java.util.Map
); method public void onProgramInfoChanged(android.hardware.radio.RadioManager.ProgramInfo); method public void onProgramListChanged(); method public void onTrafficAnnouncement(boolean); method public void onTuneFailed(int, @Nullable android.hardware.radio.ProgramSelector); } } package android.hardware.soundtrigger { public class SoundTrigger { field public static final int STATUS_OK = 0; // 0x0 } public static class SoundTrigger.RecognitionEvent { method @Nullable public android.media.AudioFormat getCaptureFormat(); method public int getCaptureSession(); method public byte[] getData(); method public boolean isCaptureAvailable(); } } package android.hardware.usb { public class UsbDeviceConnection { method public boolean resetDevice(); } public class UsbManager { method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_USB) public java.util.List
getPorts(); method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public void grantPermission(android.hardware.usb.UsbDevice, String); field @RequiresPermission(android.Manifest.permission.MANAGE_USB) public static final String ACTION_USB_PORT_CHANGED = "android.hardware.usb.action.USB_PORT_CHANGED"; } public final class UsbPort { method @RequiresPermission(android.Manifest.permission.MANAGE_USB) @Nullable public android.hardware.usb.UsbPortStatus getStatus(); method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public void setRoles(int, int); } public final class UsbPortStatus implements android.os.Parcelable { method public int describeContents(); method public int getCurrentDataRole(); method public int getCurrentMode(); method public int getCurrentPowerRole(); method public int getSupportedRoleCombinations(); method public boolean isConnected(); method public boolean isRoleCombinationSupported(int, int); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final int DATA_ROLE_DEVICE = 2; // 0x2 field public static final int DATA_ROLE_HOST = 1; // 0x1 field public static final int DATA_ROLE_NONE = 0; // 0x0 field public static final int MODE_AUDIO_ACCESSORY = 4; // 0x4 field public static final int MODE_DEBUG_ACCESSORY = 8; // 0x8 field public static final int MODE_DFP = 2; // 0x2 field public static final int MODE_NONE = 0; // 0x0 field public static final int MODE_UFP = 1; // 0x1 field public static final int POWER_ROLE_NONE = 0; // 0x0 field public static final int POWER_ROLE_SINK = 2; // 0x2 field public static final int POWER_ROLE_SOURCE = 1; // 0x1 } } package android.location { public abstract class BatchedLocationCallback { ctor public BatchedLocationCallback(); method public void onLocationBatch(java.util.List
); } public final class GnssCapabilities { method public boolean hasGeofencing(); method public boolean hasLowPowerMode(); method public boolean hasMeasurementCorrections(); method public boolean hasMeasurementCorrectionsExcessPathLength(); method public boolean hasMeasurementCorrectionsLosSats(); method public boolean hasMeasurementCorrectionsReflectingPane(); method public boolean hasMeasurements(); method public boolean hasNavMessages(); method public boolean hasSatelliteBlacklist(); } public final class GnssMeasurementCorrections implements android.os.Parcelable { method public int describeContents(); method @FloatRange(from=-1000.0F, to=10000.0f) public double getAltitudeMeters(); method @FloatRange(from=0.0f) public double getHorizontalPositionUncertaintyMeters(); method @FloatRange(from=-90.0F, to=90.0f) public double getLatitudeDegrees(); method @FloatRange(from=-180.0F, to=180.0f) public double getLongitudeDegrees(); method @NonNull public java.util.List
getSingleSatelliteCorrectionList(); method @IntRange(from=0) public long getToaGpsNanosecondsOfWeek(); method @FloatRange(from=0.0f) public double getVerticalPositionUncertaintyMeters(); method public void writeToParcel(@NonNull android.os.Parcel, int); field public static final android.os.Parcelable.Creator
CREATOR; } public static final class GnssMeasurementCorrections.Builder { ctor public GnssMeasurementCorrections.Builder(); method @NonNull public android.location.GnssMeasurementCorrections build(); method @NonNull public android.location.GnssMeasurementCorrections.Builder setAltitudeMeters(@FloatRange(from=-1000.0F, to=10000.0f) double); method @NonNull public android.location.GnssMeasurementCorrections.Builder setHorizontalPositionUncertaintyMeters(@FloatRange(from=0.0f) double); method @NonNull public android.location.GnssMeasurementCorrections.Builder setLatitudeDegrees(@FloatRange(from=-90.0F, to=90.0f) double); method @NonNull public android.location.GnssMeasurementCorrections.Builder setLongitudeDegrees(@FloatRange(from=-180.0F, to=180.0f) double); method @NonNull public android.location.GnssMeasurementCorrections.Builder setSingleSatelliteCorrectionList(@NonNull java.util.List
); method @NonNull public android.location.GnssMeasurementCorrections.Builder setToaGpsNanosecondsOfWeek(@IntRange(from=0) long); method @NonNull public android.location.GnssMeasurementCorrections.Builder setVerticalPositionUncertaintyMeters(@FloatRange(from=0.0f) double); } public final class GnssReflectingPlane implements android.os.Parcelable { method public int describeContents(); method @FloatRange(from=-1000.0F, to=10000.0f) public double getAltitudeMeters(); method @FloatRange(from=0.0f, to=360.0f) public double getAzimuthDegrees(); method @FloatRange(from=-90.0F, to=90.0f) public double getLatitudeDegrees(); method @FloatRange(from=-180.0F, to=180.0f) public double getLongitudeDegrees(); method public void writeToParcel(@NonNull android.os.Parcel, int); field public static final android.os.Parcelable.Creator
CREATOR; } public static final class GnssReflectingPlane.Builder { ctor public GnssReflectingPlane.Builder(); method @NonNull public android.location.GnssReflectingPlane build(); method @NonNull public android.location.GnssReflectingPlane.Builder setAltitudeMeters(@FloatRange(from=-1000.0F, to=10000.0f) double); method @NonNull public android.location.GnssReflectingPlane.Builder setAzimuthDegrees(@FloatRange(from=0.0f, to=360.0f) double); method @NonNull public android.location.GnssReflectingPlane.Builder setLatitudeDegrees(@FloatRange(from=-90.0F, to=90.0f) double); method @NonNull public android.location.GnssReflectingPlane.Builder setLongitudeDegrees(@FloatRange(from=-180.0F, to=180.0f) double); } public final class GnssSingleSatCorrection implements android.os.Parcelable { method public int describeContents(); method @FloatRange(from=0.0f, fromInclusive=false) public float getCarrierFrequencyHz(); method public int getConstellationType(); method @FloatRange(from=0.0f) public float getExcessPathLengthMeters(); method @FloatRange(from=0.0f) public float getExcessPathLengthUncertaintyMeters(); method @FloatRange(from=0.0f, to=1.0f) public float getProbabilityLineOfSight(); method @Nullable public android.location.GnssReflectingPlane getReflectingPlane(); method @IntRange(from=0) public int getSatelliteId(); method public boolean hasExcessPathLength(); method public boolean hasExcessPathLengthUncertainty(); method public boolean hasReflectingPlane(); method public boolean hasValidSatelliteLineOfSight(); method public void writeToParcel(@NonNull android.os.Parcel, int); field public static final android.os.Parcelable.Creator
CREATOR; } public static final class GnssSingleSatCorrection.Builder { ctor public GnssSingleSatCorrection.Builder(); method @NonNull public android.location.GnssSingleSatCorrection build(); method @NonNull public android.location.GnssSingleSatCorrection.Builder setCarrierFrequencyHz(@FloatRange(from=0.0f, fromInclusive=false) float); method @NonNull public android.location.GnssSingleSatCorrection.Builder setConstellationType(int); method @NonNull public android.location.GnssSingleSatCorrection.Builder setExcessPathLengthMeters(@FloatRange(from=0.0f) float); method @NonNull public android.location.GnssSingleSatCorrection.Builder setExcessPathLengthUncertaintyMeters(@FloatRange(from=0.0f) float); method @NonNull public android.location.GnssSingleSatCorrection.Builder setProbabilityLineOfSight(@FloatRange(from=0.0f, to=1.0f) float); method @NonNull public android.location.GnssSingleSatCorrection.Builder setReflectingPlane(@Nullable android.location.GnssReflectingPlane); method @NonNull public android.location.GnssSingleSatCorrection.Builder setSatelliteId(@IntRange(from=0) int); } public class GpsClock implements android.os.Parcelable { method public int describeContents(); method public double getBiasInNs(); method public double getBiasUncertaintyInNs(); method public double getDriftInNsPerSec(); method public double getDriftUncertaintyInNsPerSec(); method public long getFullBiasInNs(); method public short getLeapSecond(); method public long getTimeInNs(); method public double getTimeUncertaintyInNs(); method public byte getType(); method public boolean hasBiasInNs(); method public boolean hasBiasUncertaintyInNs(); method public boolean hasDriftInNsPerSec(); method public boolean hasDriftUncertaintyInNsPerSec(); method public boolean hasFullBiasInNs(); method public boolean hasLeapSecond(); method public boolean hasTimeUncertaintyInNs(); method public void reset(); method public void resetBiasInNs(); method public void resetBiasUncertaintyInNs(); method public void resetDriftInNsPerSec(); method public void resetDriftUncertaintyInNsPerSec(); method public void resetFullBiasInNs(); method public void resetLeapSecond(); method public void resetTimeUncertaintyInNs(); method public void set(android.location.GpsClock); method public void setBiasInNs(double); method public void setBiasUncertaintyInNs(double); method public void setDriftInNsPerSec(double); method public void setDriftUncertaintyInNsPerSec(double); method public void setFullBiasInNs(long); method public void setLeapSecond(short); method public void setTimeInNs(long); method public void setTimeUncertaintyInNs(double); method public void setType(byte); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final byte TYPE_GPS_TIME = 2; // 0x2 field public static final byte TYPE_LOCAL_HW_TIME = 1; // 0x1 field public static final byte TYPE_UNKNOWN = 0; // 0x0 } public class GpsMeasurement implements android.os.Parcelable { method public int describeContents(); method public double getAccumulatedDeltaRangeInMeters(); method public short getAccumulatedDeltaRangeState(); method public double getAccumulatedDeltaRangeUncertaintyInMeters(); method public double getAzimuthInDeg(); method public double getAzimuthUncertaintyInDeg(); method public int getBitNumber(); method public long getCarrierCycles(); method public float getCarrierFrequencyInHz(); method public double getCarrierPhase(); method public double getCarrierPhaseUncertainty(); method public double getCn0InDbHz(); method public double getCodePhaseInChips(); method public double getCodePhaseUncertaintyInChips(); method public double getDopplerShiftInHz(); method public double getDopplerShiftUncertaintyInHz(); method public double getElevationInDeg(); method public double getElevationUncertaintyInDeg(); method public byte getLossOfLock(); method public byte getMultipathIndicator(); method public byte getPrn(); method public double getPseudorangeInMeters(); method public double getPseudorangeRateInMetersPerSec(); method public double getPseudorangeRateUncertaintyInMetersPerSec(); method public double getPseudorangeUncertaintyInMeters(); method public long getReceivedGpsTowInNs(); method public long getReceivedGpsTowUncertaintyInNs(); method public double getSnrInDb(); method public short getState(); method public short getTimeFromLastBitInMs(); method public double getTimeOffsetInNs(); method public boolean hasAzimuthInDeg(); method public boolean hasAzimuthUncertaintyInDeg(); method public boolean hasBitNumber(); method public boolean hasCarrierCycles(); method public boolean hasCarrierFrequencyInHz(); method public boolean hasCarrierPhase(); method public boolean hasCarrierPhaseUncertainty(); method public boolean hasCodePhaseInChips(); method public boolean hasCodePhaseUncertaintyInChips(); method public boolean hasDopplerShiftInHz(); method public boolean hasDopplerShiftUncertaintyInHz(); method public boolean hasElevationInDeg(); method public boolean hasElevationUncertaintyInDeg(); method public boolean hasPseudorangeInMeters(); method public boolean hasPseudorangeUncertaintyInMeters(); method public boolean hasSnrInDb(); method public boolean hasTimeFromLastBitInMs(); method public boolean isPseudorangeRateCorrected(); method public boolean isUsedInFix(); method public void reset(); method public void resetAzimuthInDeg(); method public void resetAzimuthUncertaintyInDeg(); method public void resetBitNumber(); method public void resetCarrierCycles(); method public void resetCarrierFrequencyInHz(); method public void resetCarrierPhase(); method public void resetCarrierPhaseUncertainty(); method public void resetCodePhaseInChips(); method public void resetCodePhaseUncertaintyInChips(); method public void resetDopplerShiftInHz(); method public void resetDopplerShiftUncertaintyInHz(); method public void resetElevationInDeg(); method public void resetElevationUncertaintyInDeg(); method public void resetPseudorangeInMeters(); method public void resetPseudorangeUncertaintyInMeters(); method public void resetSnrInDb(); method public void resetTimeFromLastBitInMs(); method public void set(android.location.GpsMeasurement); method public void setAccumulatedDeltaRangeInMeters(double); method public void setAccumulatedDeltaRangeState(short); method public void setAccumulatedDeltaRangeUncertaintyInMeters(double); method public void setAzimuthInDeg(double); method public void setAzimuthUncertaintyInDeg(double); method public void setBitNumber(int); method public void setCarrierCycles(long); method public void setCarrierFrequencyInHz(float); method public void setCarrierPhase(double); method public void setCarrierPhaseUncertainty(double); method public void setCn0InDbHz(double); method public void setCodePhaseInChips(double); method public void setCodePhaseUncertaintyInChips(double); method public void setDopplerShiftInHz(double); method public void setDopplerShiftUncertaintyInHz(double); method public void setElevationInDeg(double); method public void setElevationUncertaintyInDeg(double); method public void setLossOfLock(byte); method public void setMultipathIndicator(byte); method public void setPrn(byte); method public void setPseudorangeInMeters(double); method public void setPseudorangeRateInMetersPerSec(double); method public void setPseudorangeRateUncertaintyInMetersPerSec(double); method public void setPseudorangeUncertaintyInMeters(double); method public void setReceivedGpsTowInNs(long); method public void setReceivedGpsTowUncertaintyInNs(long); method public void setSnrInDb(double); method public void setState(short); method public void setTimeFromLastBitInMs(short); method public void setTimeOffsetInNs(double); method public void setUsedInFix(boolean); method public void writeToParcel(android.os.Parcel, int); field public static final short ADR_STATE_CYCLE_SLIP = 4; // 0x4 field public static final short ADR_STATE_RESET = 2; // 0x2 field public static final short ADR_STATE_UNKNOWN = 0; // 0x0 field public static final short ADR_STATE_VALID = 1; // 0x1 field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final byte LOSS_OF_LOCK_CYCLE_SLIP = 2; // 0x2 field public static final byte LOSS_OF_LOCK_OK = 1; // 0x1 field public static final byte LOSS_OF_LOCK_UNKNOWN = 0; // 0x0 field public static final byte MULTIPATH_INDICATOR_DETECTED = 1; // 0x1 field public static final byte MULTIPATH_INDICATOR_NOT_USED = 2; // 0x2 field public static final byte MULTIPATH_INDICATOR_UNKNOWN = 0; // 0x0 field public static final short STATE_BIT_SYNC = 2; // 0x2 field public static final short STATE_CODE_LOCK = 1; // 0x1 field public static final short STATE_MSEC_AMBIGUOUS = 16; // 0x10 field public static final short STATE_SUBFRAME_SYNC = 4; // 0x4 field public static final short STATE_TOW_DECODED = 8; // 0x8 field public static final short STATE_UNKNOWN = 0; // 0x0 } public class GpsMeasurementsEvent implements android.os.Parcelable { ctor public GpsMeasurementsEvent(android.location.GpsClock, android.location.GpsMeasurement[]); method public int describeContents(); method @NonNull public android.location.GpsClock getClock(); method @NonNull public java.util.Collection
getMeasurements(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final int STATUS_GPS_LOCATION_DISABLED = 2; // 0x2 field public static final int STATUS_NOT_SUPPORTED = 0; // 0x0 field public static final int STATUS_READY = 1; // 0x1 } public static interface GpsMeasurementsEvent.Listener { method public void onGpsMeasurementsReceived(android.location.GpsMeasurementsEvent); method public void onStatusChanged(int); } public class GpsNavigationMessage implements android.os.Parcelable { method public int describeContents(); method @NonNull public byte[] getData(); method public short getMessageId(); method public byte getPrn(); method public short getStatus(); method public short getSubmessageId(); method public byte getType(); method public void reset(); method public void set(android.location.GpsNavigationMessage); method public void setData(byte[]); method public void setMessageId(short); method public void setPrn(byte); method public void setStatus(short); method public void setSubmessageId(short); method public void setType(byte); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final short STATUS_PARITY_PASSED = 1; // 0x1 field public static final short STATUS_PARITY_REBUILT = 2; // 0x2 field public static final short STATUS_UNKNOWN = 0; // 0x0 field public static final byte TYPE_CNAV2 = 4; // 0x4 field public static final byte TYPE_L1CA = 1; // 0x1 field public static final byte TYPE_L2CNAV = 2; // 0x2 field public static final byte TYPE_L5CNAV = 3; // 0x3 field public static final byte TYPE_UNKNOWN = 0; // 0x0 } public class GpsNavigationMessageEvent implements android.os.Parcelable { ctor public GpsNavigationMessageEvent(android.location.GpsNavigationMessage); method public int describeContents(); method @NonNull public android.location.GpsNavigationMessage getNavigationMessage(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static int STATUS_GPS_LOCATION_DISABLED; field public static int STATUS_NOT_SUPPORTED; field public static int STATUS_READY; } public static interface GpsNavigationMessageEvent.Listener { method public void onGpsNavigationMessageReceived(android.location.GpsNavigationMessageEvent); method public void onStatusChanged(int); } public class Location implements android.os.Parcelable { method public boolean isComplete(); method public void makeComplete(); method public void setIsFromMockProvider(boolean); } public class LocationManager { method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void flushGnssBatch(); method @Nullable public String getExtraLocationControllerPackage(); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int getGnssBatchSize(); method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public android.location.GnssCapabilities getGnssCapabilities(); method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public void injectGnssMeasurementCorrections(@NonNull android.location.GnssMeasurementCorrections); method public boolean isExtraLocationControllerPackageEnabled(); method public boolean isLocationEnabledForUser(@NonNull android.os.UserHandle); method public boolean isProviderEnabledForUser(@NonNull String, @NonNull android.os.UserHandle); method public boolean isProviderPackage(@NonNull String); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean registerGnssBatchedLocationCallback(long, boolean, @NonNull android.location.BatchedLocationCallback, @Nullable android.os.Handler); method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull android.location.LocationRequest, @NonNull android.location.LocationListener, @Nullable android.os.Looper); method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull android.location.LocationRequest, @NonNull android.app.PendingIntent); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void setExtraLocationControllerPackage(@Nullable String); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void setExtraLocationControllerPackageEnabled(boolean); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setLocationEnabledForUser(boolean, @NonNull android.os.UserHandle); method @Deprecated @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean setProviderEnabledForUser(@NonNull String, boolean, @NonNull android.os.UserHandle); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean unregisterGnssBatchedLocationCallback(@NonNull android.location.BatchedLocationCallback); } public final class LocationRequest implements android.os.Parcelable { method @NonNull public static android.location.LocationRequest create(); method @NonNull public static android.location.LocationRequest createFromDeprecatedCriteria(@NonNull android.location.Criteria, long, float, boolean); method @NonNull public static android.location.LocationRequest createFromDeprecatedProvider(@NonNull String, long, float, boolean); method public int describeContents(); method public long getExpireAt(); method public long getFastestInterval(); method public boolean getHideFromAppOps(); method public long getInterval(); method public int getNumUpdates(); method @NonNull public String getProvider(); method public int getQuality(); method public float getSmallestDisplacement(); method @Nullable public android.os.WorkSource getWorkSource(); method public boolean isLocationSettingsIgnored(); method public boolean isLowPowerMode(); method @NonNull public android.location.LocationRequest setExpireAt(long); method @NonNull public android.location.LocationRequest setExpireIn(long); method @NonNull public android.location.LocationRequest setFastestInterval(long); method public void setHideFromAppOps(boolean); method @NonNull public android.location.LocationRequest setInterval(long); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) @NonNull public android.location.LocationRequest setLocationSettingsIgnored(boolean); method @NonNull public android.location.LocationRequest setLowPowerMode(boolean); method @NonNull public android.location.LocationRequest setNumUpdates(int); method @NonNull public android.location.LocationRequest setProvider(@NonNull String); method @NonNull public android.location.LocationRequest setQuality(int); method @NonNull public android.location.LocationRequest setSmallestDisplacement(float); method public void setWorkSource(@Nullable android.os.WorkSource); method public void writeToParcel(android.os.Parcel, int); field public static final int ACCURACY_BLOCK = 102; // 0x66 field public static final int ACCURACY_CITY = 104; // 0x68 field public static final int ACCURACY_FINE = 100; // 0x64 field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final int POWER_HIGH = 203; // 0xcb field public static final int POWER_LOW = 201; // 0xc9 field public static final int POWER_NONE = 200; // 0xc8 } } package android.media { public final class AudioAttributes implements android.os.Parcelable { method public int getAllFlags(); method public android.os.Bundle getBundle(); method public int getCapturePreset(); field public static final int FLAG_BEACON = 8; // 0x8 field public static final int FLAG_BYPASS_INTERRUPTION_POLICY = 64; // 0x40 field public static final int FLAG_BYPASS_MUTE = 128; // 0x80 field public static final int FLAG_HW_HOTWORD = 32; // 0x20 } public static class AudioAttributes.Builder { method public android.media.AudioAttributes.Builder addBundle(@NonNull android.os.Bundle); method public android.media.AudioAttributes.Builder setCapturePreset(int); method public android.media.AudioAttributes.Builder setInternalCapturePreset(int); } public final class AudioFocusInfo implements android.os.Parcelable { method public int describeContents(); method @NonNull public android.media.AudioAttributes getAttributes(); method @NonNull public String getClientId(); method public int getClientUid(); method public int getFlags(); method public int getGainRequest(); method public int getLossReceived(); method @NonNull public String getPackageName(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class AudioFocusRequest { method public boolean locksFocus(); } public static final class AudioFocusRequest.Builder { method @NonNull public android.media.AudioFocusRequest.Builder setLocksFocus(boolean); } public class AudioManager { method @Deprecated public int abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes); method public void clearAudioServerStateCallback(); method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public int dispatchAudioFocusChange(@NonNull android.media.AudioFocusInfo, int, @NonNull android.media.audiopolicy.AudioPolicy); method @NonNull @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public static java.util.List
getAudioProductStrategies(); method @NonNull @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public static java.util.List
getAudioVolumeGroups(); method @IntRange(from=0) @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public int getMaxVolumeIndexForAttributes(@NonNull android.media.AudioAttributes); method @IntRange(from=0) @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public int getMinVolumeIndexForAttributes(@NonNull android.media.AudioAttributes); method @IntRange(from=0) @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public int getVolumeIndexForAttributes(@NonNull android.media.AudioAttributes); method public boolean isAudioServerRunning(); method public boolean isHdmiSystemAudioSupported(); method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public int registerAudioPolicy(@NonNull android.media.audiopolicy.AudioPolicy); method public void registerVolumeGroupCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.AudioManager.VolumeGroupCallback); method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, @NonNull android.media.AudioAttributes, int, int) throws java.lang.IllegalArgumentException; method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.MODIFY_PHONE_STATE, android.Manifest.permission.MODIFY_AUDIO_ROUTING}) public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, @NonNull android.media.AudioAttributes, int, int, android.media.audiopolicy.AudioPolicy) throws java.lang.IllegalArgumentException; method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public int requestAudioFocus(@NonNull android.media.AudioFocusRequest, @Nullable android.media.audiopolicy.AudioPolicy); method public void setAudioServerStateCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.AudioManager.AudioServerStateCallback); method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public void setFocusRequestResult(@NonNull android.media.AudioFocusInfo, int, @NonNull android.media.audiopolicy.AudioPolicy); method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public void setVolumeIndexForAttributes(@NonNull android.media.AudioAttributes, int, int); method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public void unregisterAudioPolicy(@NonNull android.media.audiopolicy.AudioPolicy); method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public void unregisterAudioPolicyAsync(@NonNull android.media.audiopolicy.AudioPolicy); method public void unregisterVolumeGroupCallback(@NonNull android.media.AudioManager.VolumeGroupCallback); field public static final int AUDIOFOCUS_FLAG_DELAY_OK = 1; // 0x1 field public static final int AUDIOFOCUS_FLAG_LOCK = 4; // 0x4 field public static final int AUDIOFOCUS_FLAG_PAUSES_ON_DUCKABLE_LOSS = 2; // 0x2 field public static final int SUCCESS = 0; // 0x0 } public abstract static class AudioManager.AudioServerStateCallback { ctor public AudioManager.AudioServerStateCallback(); method public void onAudioServerDown(); method public void onAudioServerUp(); } public abstract static class AudioManager.VolumeGroupCallback { ctor public AudioManager.VolumeGroupCallback(); method public void onAudioVolumeGroupChanged(int, int); } public final class AudioPlaybackConfiguration implements android.os.Parcelable { method public int getClientPid(); method public int getClientUid(); method public int getPlayerInterfaceId(); method public android.media.PlayerProxy getPlayerProxy(); method public int getPlayerState(); method public int getPlayerType(); field public static final int PLAYER_STATE_IDLE = 1; // 0x1 field public static final int PLAYER_STATE_PAUSED = 3; // 0x3 field public static final int PLAYER_STATE_RELEASED = 0; // 0x0 field public static final int PLAYER_STATE_STARTED = 2; // 0x2 field public static final int PLAYER_STATE_STOPPED = 4; // 0x4 field public static final int PLAYER_STATE_UNKNOWN = -1; // 0xffffffff field public static final int PLAYER_TYPE_JAM_AUDIOTRACK = 1; // 0x1 field public static final int PLAYER_TYPE_JAM_MEDIAPLAYER = 2; // 0x2 field public static final int PLAYER_TYPE_JAM_SOUNDPOOL = 3; // 0x3 field public static final int PLAYER_TYPE_SLES_AUDIOPLAYER_BUFFERQUEUE = 11; // 0xb field public static final int PLAYER_TYPE_SLES_AUDIOPLAYER_URI_FD = 12; // 0xc field public static final int PLAYER_TYPE_UNKNOWN = -1; // 0xffffffff } public class AudioRecord implements android.media.AudioRecordingMonitor android.media.AudioRouting android.media.MicrophoneDirection { ctor public AudioRecord(android.media.AudioAttributes, android.media.AudioFormat, int, int) throws java.lang.IllegalArgumentException; } public static class AudioRecord.Builder { method public android.media.AudioRecord.Builder setAudioAttributes(@NonNull android.media.AudioAttributes) throws java.lang.IllegalArgumentException; method public android.media.AudioRecord.Builder setSessionId(int) throws java.lang.IllegalArgumentException; } public class HwAudioSource { method public boolean isPlaying(); method public void start(); method public void stop(); } public static final class HwAudioSource.Builder { ctor public HwAudioSource.Builder(); method @NonNull public android.media.HwAudioSource build(); method @NonNull public android.media.HwAudioSource.Builder setAudioAttributes(@NonNull android.media.AudioAttributes); method @NonNull public android.media.HwAudioSource.Builder setAudioDeviceInfo(@NonNull android.media.AudioDeviceInfo); } public final class MediaRecorder.AudioSource { field @RequiresPermission(android.Manifest.permission.CAPTURE_AUDIO_OUTPUT) public static final int ECHO_REFERENCE = 1997; // 0x7cd field @RequiresPermission(android.Manifest.permission.CAPTURE_AUDIO_HOTWORD) public static final int HOTWORD = 1999; // 0x7cf field public static final int RADIO_TUNER = 1998; // 0x7ce } public class PlayerProxy { method public void pause(); method public void setPan(float); method public void setStartDelayMs(int); method public void setVolume(float); method public void start(); method public void stop(); } } package android.media.audiopolicy { public class AudioMix { method public int getMixState(); field public static final int MIX_STATE_DISABLED = -1; // 0xffffffff field public static final int MIX_STATE_IDLE = 0; // 0x0 field public static final int MIX_STATE_MIXING = 1; // 0x1 field public static final int ROUTE_FLAG_LOOP_BACK = 2; // 0x2 field public static final int ROUTE_FLAG_RENDER = 1; // 0x1 } public static class AudioMix.Builder { ctor public AudioMix.Builder(android.media.audiopolicy.AudioMixingRule) throws java.lang.IllegalArgumentException; method public android.media.audiopolicy.AudioMix build() throws java.lang.IllegalArgumentException; method public android.media.audiopolicy.AudioMix.Builder setDevice(@NonNull android.media.AudioDeviceInfo) throws java.lang.IllegalArgumentException; method public android.media.audiopolicy.AudioMix.Builder setFormat(android.media.AudioFormat) throws java.lang.IllegalArgumentException; method public android.media.audiopolicy.AudioMix.Builder setRouteFlags(int) throws java.lang.IllegalArgumentException; } public class AudioMixingRule { field public static final int RULE_MATCH_ATTRIBUTE_CAPTURE_PRESET = 2; // 0x2 field public static final int RULE_MATCH_ATTRIBUTE_USAGE = 1; // 0x1 field public static final int RULE_MATCH_UID = 4; // 0x4 } public static class AudioMixingRule.Builder { ctor public AudioMixingRule.Builder(); method public android.media.audiopolicy.AudioMixingRule.Builder addMixRule(int, Object) throws java.lang.IllegalArgumentException; method public android.media.audiopolicy.AudioMixingRule.Builder addRule(android.media.AudioAttributes, int) throws java.lang.IllegalArgumentException; method @NonNull public android.media.audiopolicy.AudioMixingRule.Builder allowPrivilegedPlaybackCapture(boolean); method public android.media.audiopolicy.AudioMixingRule build(); method public android.media.audiopolicy.AudioMixingRule.Builder excludeMixRule(int, Object) throws java.lang.IllegalArgumentException; method public android.media.audiopolicy.AudioMixingRule.Builder excludeRule(android.media.AudioAttributes, int) throws java.lang.IllegalArgumentException; } public class AudioPolicy { method public int attachMixes(@NonNull java.util.List
); method public android.media.AudioRecord createAudioRecordSink(android.media.audiopolicy.AudioMix) throws java.lang.IllegalArgumentException; method public android.media.AudioTrack createAudioTrackSource(android.media.audiopolicy.AudioMix) throws java.lang.IllegalArgumentException; method public int detachMixes(@NonNull java.util.List
); method public int getFocusDuckingBehavior(); method public int getStatus(); method public boolean removeUidDeviceAffinity(int); method public int setFocusDuckingBehavior(int) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException; method public void setRegistration(String); method public boolean setUidDeviceAffinity(int, @NonNull java.util.List
); method public String toLogFriendlyString(); field public static final int FOCUS_POLICY_DUCKING_DEFAULT = 0; // 0x0 field public static final int FOCUS_POLICY_DUCKING_IN_APP = 0; // 0x0 field public static final int FOCUS_POLICY_DUCKING_IN_POLICY = 1; // 0x1 field public static final int POLICY_STATUS_REGISTERED = 2; // 0x2 field public static final int POLICY_STATUS_UNREGISTERED = 1; // 0x1 } public abstract static class AudioPolicy.AudioPolicyFocusListener { ctor public AudioPolicy.AudioPolicyFocusListener(); method public void onAudioFocusAbandon(android.media.AudioFocusInfo); method public void onAudioFocusGrant(android.media.AudioFocusInfo, int); method public void onAudioFocusLoss(android.media.AudioFocusInfo, boolean); method public void onAudioFocusRequest(android.media.AudioFocusInfo, int); } public abstract static class AudioPolicy.AudioPolicyStatusListener { ctor public AudioPolicy.AudioPolicyStatusListener(); method public void onMixStateUpdate(android.media.audiopolicy.AudioMix); method public void onStatusChange(); } public abstract static class AudioPolicy.AudioPolicyVolumeCallback { ctor public AudioPolicy.AudioPolicyVolumeCallback(); method public void onVolumeAdjustment(int); } public static class AudioPolicy.Builder { ctor public AudioPolicy.Builder(android.content.Context); method @NonNull public android.media.audiopolicy.AudioPolicy.Builder addMix(@NonNull android.media.audiopolicy.AudioMix) throws java.lang.IllegalArgumentException; method @NonNull public android.media.audiopolicy.AudioPolicy build(); method public void setAudioPolicyFocusListener(android.media.audiopolicy.AudioPolicy.AudioPolicyFocusListener); method public void setAudioPolicyStatusListener(android.media.audiopolicy.AudioPolicy.AudioPolicyStatusListener); method @NonNull public android.media.audiopolicy.AudioPolicy.Builder setAudioPolicyVolumeCallback(@NonNull android.media.audiopolicy.AudioPolicy.AudioPolicyVolumeCallback); method @NonNull public android.media.audiopolicy.AudioPolicy.Builder setIsAudioFocusPolicy(boolean); method @NonNull public android.media.audiopolicy.AudioPolicy.Builder setLooper(@NonNull android.os.Looper) throws java.lang.IllegalArgumentException; } public final class AudioProductStrategy implements android.os.Parcelable { method public int describeContents(); method @NonNull public android.media.AudioAttributes getAudioAttributes(); method public int getId(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class AudioVolumeGroup implements android.os.Parcelable { method public int describeContents(); method @NonNull public java.util.List
getAudioAttributes(); method public int getId(); method @NonNull public int[] getLegacyStreamTypes(); method @NonNull public String name(); method public void writeToParcel(@NonNull android.os.Parcel, int); field public static final android.os.Parcelable.Creator
CREATOR; field public static final int DEFAULT_VOLUME_GROUP = -1; // 0xffffffff } } package android.media.session { public final class MediaSessionManager { method @RequiresPermission(android.Manifest.permission.SET_MEDIA_KEY_LISTENER) public void setOnMediaKeyListener(android.media.session.MediaSessionManager.OnMediaKeyListener, @Nullable android.os.Handler); method @RequiresPermission(android.Manifest.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER) public void setOnVolumeKeyLongPressListener(android.media.session.MediaSessionManager.OnVolumeKeyLongPressListener, @Nullable android.os.Handler); } public static interface MediaSessionManager.OnMediaKeyListener { method public boolean onMediaKey(android.view.KeyEvent); } public static interface MediaSessionManager.OnVolumeKeyLongPressListener { method public void onVolumeKeyLongPress(android.view.KeyEvent); } } package android.media.soundtrigger { public abstract class SoundTriggerDetectionService extends android.app.Service { ctor public SoundTriggerDetectionService(); method @MainThread public void onConnected(@NonNull java.util.UUID, @Nullable android.os.Bundle); method @MainThread public void onDisconnected(@NonNull java.util.UUID, @Nullable android.os.Bundle); method @MainThread public void onError(@NonNull java.util.UUID, @Nullable android.os.Bundle, int, int); method @MainThread public void onGenericRecognitionEvent(@NonNull java.util.UUID, @Nullable android.os.Bundle, int, @NonNull android.hardware.soundtrigger.SoundTrigger.RecognitionEvent); method @MainThread public abstract void onStopOperation(@NonNull java.util.UUID, @Nullable android.os.Bundle, int); method public final void operationFinished(@Nullable java.util.UUID, int); } public final class SoundTriggerDetector { method @RequiresPermission(android.Manifest.permission.MANAGE_SOUND_TRIGGER) public boolean startRecognition(int); method @RequiresPermission(android.Manifest.permission.MANAGE_SOUND_TRIGGER) public boolean stopRecognition(); field public static final int RECOGNITION_FLAG_ALLOW_MULTIPLE_TRIGGERS = 2; // 0x2 field public static final int RECOGNITION_FLAG_CAPTURE_TRIGGER_AUDIO = 1; // 0x1 } public abstract static class SoundTriggerDetector.Callback { ctor public SoundTriggerDetector.Callback(); method public abstract void onAvailabilityChanged(int); method public abstract void onDetected(@NonNull android.media.soundtrigger.SoundTriggerDetector.EventPayload); method public abstract void onError(); method public abstract void onRecognitionPaused(); method public abstract void onRecognitionResumed(); } public static class SoundTriggerDetector.EventPayload { method @Nullable public android.media.AudioFormat getCaptureAudioFormat(); method @Nullable public byte[] getTriggerAudio(); } public final class SoundTriggerManager { method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_SOUND_TRIGGER) public android.media.soundtrigger.SoundTriggerDetector createSoundTriggerDetector(java.util.UUID, @NonNull android.media.soundtrigger.SoundTriggerDetector.Callback, @Nullable android.os.Handler); method @RequiresPermission(android.Manifest.permission.MANAGE_SOUND_TRIGGER) public void deleteModel(java.util.UUID); method public int getDetectionServiceOperationsTimeout(); method @RequiresPermission(android.Manifest.permission.MANAGE_SOUND_TRIGGER) public android.media.soundtrigger.SoundTriggerManager.Model getModel(java.util.UUID); method @RequiresPermission(android.Manifest.permission.MANAGE_SOUND_TRIGGER) public void updateModel(android.media.soundtrigger.SoundTriggerManager.Model); } public static class SoundTriggerManager.Model { method public static android.media.soundtrigger.SoundTriggerManager.Model create(java.util.UUID, java.util.UUID, byte[]); method public byte[] getModelData(); method public java.util.UUID getModelUuid(); method public java.util.UUID getVendorUuid(); } } package android.media.tv { public final class TvContentRatingSystemInfo implements android.os.Parcelable { method public static android.media.tv.TvContentRatingSystemInfo createTvContentRatingSystemInfo(int, android.content.pm.ApplicationInfo); method public int describeContents(); method public android.net.Uri getXmlUri(); method public boolean isSystemDefined(); method public void writeToParcel(android.os.Parcel, int); } public final class TvContract { method public static android.net.Uri buildChannelsUriForInput(@Nullable String, boolean); method public static android.net.Uri buildChannelsUriForInput(@Nullable String, @Nullable String, boolean); field public static final String ACTION_CHANNEL_BROWSABLE_REQUESTED = "android.media.tv.action.CHANNEL_BROWSABLE_REQUESTED"; field public static final String EXTRA_BLOCKED_PACKAGES = "android.media.tv.extra.BLOCKED_PACKAGES"; field public static final String EXTRA_COLUMN_NAME = "android.media.tv.extra.COLUMN_NAME"; field public static final String EXTRA_DATA_TYPE = "android.media.tv.extra.DATA_TYPE"; field public static final String EXTRA_DEFAULT_VALUE = "android.media.tv.extra.DEFAULT_VALUE"; field public static final String EXTRA_EXISTING_COLUMN_NAMES = "android.media.tv.extra.EXISTING_COLUMN_NAMES"; field public static final String EXTRA_PACKAGE_NAME = "android.media.tv.extra.PACKAGE_NAME"; field public static final String EXTRA_RESULT_CODE = "android.media.tv.extra.RESULT_CODE"; field public static final String METHOD_ADD_COLUMN = "add_column"; field public static final String METHOD_BLOCK_PACKAGE = "block_package"; field public static final String METHOD_GET_BLOCKED_PACKAGES = "get_blocked_packages"; field public static final String METHOD_GET_COLUMNS = "get_columns"; field public static final String METHOD_UNBLOCK_PACKAGE = "unblock_package"; field public static final int RESULT_ERROR_INVALID_ARGUMENT = 2; // 0x2 field public static final int RESULT_ERROR_IO = 1; // 0x1 field public static final int RESULT_OK = 0; // 0x0 } public static final class TvContract.WatchedPrograms implements android.media.tv.TvContract.BaseTvColumns { field public static final String COLUMN_CHANNEL_ID = "channel_id"; field public static final String COLUMN_DESCRIPTION = "description"; field public static final String COLUMN_END_TIME_UTC_MILLIS = "end_time_utc_millis"; field public static final String COLUMN_INTERNAL_SESSION_TOKEN = "session_token"; field public static final String COLUMN_INTERNAL_TUNE_PARAMS = "tune_params"; field public static final String COLUMN_START_TIME_UTC_MILLIS = "start_time_utc_millis"; field public static final String COLUMN_TITLE = "title"; field public static final String COLUMN_WATCH_END_TIME_UTC_MILLIS = "watch_end_time_utc_millis"; field public static final String COLUMN_WATCH_START_TIME_UTC_MILLIS = "watch_start_time_utc_millis"; field public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/watched_program"; field public static final String CONTENT_TYPE = "vnd.android.cursor.dir/watched_program"; field public static final android.net.Uri CONTENT_URI; } public final class TvInputHardwareInfo implements android.os.Parcelable { method public int describeContents(); method public String getAudioAddress(); method public int getAudioType(); method public int getCableConnectionStatus(); method public int getDeviceId(); method public int getHdmiPortId(); method public int getType(); method public void readFromParcel(android.os.Parcel); method public void writeToParcel(android.os.Parcel, int); field public static final int CABLE_CONNECTION_STATUS_CONNECTED = 1; // 0x1 field public static final int CABLE_CONNECTION_STATUS_DISCONNECTED = 2; // 0x2 field public static final int CABLE_CONNECTION_STATUS_UNKNOWN = 0; // 0x0 field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final int TV_INPUT_TYPE_COMPONENT = 6; // 0x6 field public static final int TV_INPUT_TYPE_COMPOSITE = 3; // 0x3 field public static final int TV_INPUT_TYPE_DISPLAY_PORT = 10; // 0xa field public static final int TV_INPUT_TYPE_DVI = 8; // 0x8 field public static final int TV_INPUT_TYPE_HDMI = 9; // 0x9 field public static final int TV_INPUT_TYPE_OTHER_HARDWARE = 1; // 0x1 field public static final int TV_INPUT_TYPE_SCART = 5; // 0x5 field public static final int TV_INPUT_TYPE_SVIDEO = 4; // 0x4 field public static final int TV_INPUT_TYPE_TUNER = 2; // 0x2 field public static final int TV_INPUT_TYPE_VGA = 7; // 0x7 } public static final class TvInputHardwareInfo.Builder { ctor public TvInputHardwareInfo.Builder(); method public android.media.tv.TvInputHardwareInfo.Builder audioAddress(String); method public android.media.tv.TvInputHardwareInfo.Builder audioType(int); method public android.media.tv.TvInputHardwareInfo build(); method public android.media.tv.TvInputHardwareInfo.Builder cableConnectionStatus(int); method public android.media.tv.TvInputHardwareInfo.Builder deviceId(int); method public android.media.tv.TvInputHardwareInfo.Builder hdmiPortId(int); method public android.media.tv.TvInputHardwareInfo.Builder type(int); } public final class TvInputInfo implements android.os.Parcelable { method @Deprecated public static android.media.tv.TvInputInfo createTvInputInfo(android.content.Context, android.content.pm.ResolveInfo, android.hardware.hdmi.HdmiDeviceInfo, String, String, android.net.Uri) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException; method @Deprecated public static android.media.tv.TvInputInfo createTvInputInfo(android.content.Context, android.content.pm.ResolveInfo, android.hardware.hdmi.HdmiDeviceInfo, String, int, android.graphics.drawable.Icon) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException; method @Deprecated public static android.media.tv.TvInputInfo createTvInputInfo(android.content.Context, android.content.pm.ResolveInfo, android.media.tv.TvInputHardwareInfo, String, android.net.Uri) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException; method @Deprecated public static android.media.tv.TvInputInfo createTvInputInfo(android.content.Context, android.content.pm.ResolveInfo, android.media.tv.TvInputHardwareInfo, int, android.graphics.drawable.Icon) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException; method public android.hardware.hdmi.HdmiDeviceInfo getHdmiDeviceInfo(); method public boolean isConnectedToHdmiSwitch(); method public boolean isHardwareInput(); method public android.graphics.drawable.Drawable loadIcon(@NonNull android.content.Context, int); } public static final class TvInputInfo.Builder { method public android.media.tv.TvInputInfo.Builder setHdmiDeviceInfo(android.hardware.hdmi.HdmiDeviceInfo); method public android.media.tv.TvInputInfo.Builder setIcon(android.graphics.drawable.Icon); method public android.media.tv.TvInputInfo.Builder setIcon(android.graphics.drawable.Icon, int); method public android.media.tv.TvInputInfo.Builder setLabel(CharSequence); method public android.media.tv.TvInputInfo.Builder setLabel(@StringRes int); method public android.media.tv.TvInputInfo.Builder setParentId(String); method public android.media.tv.TvInputInfo.Builder setTvInputHardwareInfo(android.media.tv.TvInputHardwareInfo); } public static final class TvInputInfo.TvInputSettings { method public static java.util.Map
getCustomLabels(android.content.Context, int); method public static java.util.Set
getHiddenTvInputIds(android.content.Context, int); method public static void putCustomLabels(android.content.Context, java.util.Map
, int); method public static void putHiddenTvInputs(android.content.Context, java.util.Set
, int); } public final class TvInputManager { method @RequiresPermission(android.Manifest.permission.TV_INPUT_HARDWARE) public android.media.tv.TvInputManager.Hardware acquireTvInputHardware(int, android.media.tv.TvInputInfo, android.media.tv.TvInputManager.HardwareCallback); method @RequiresPermission(android.Manifest.permission.MODIFY_PARENTAL_CONTROLS) public void addBlockedRating(@NonNull android.media.tv.TvContentRating); method @RequiresPermission(android.Manifest.permission.CAPTURE_TV_INPUT) public boolean captureFrame(String, android.view.Surface, android.media.tv.TvStreamConfig); method @RequiresPermission(android.Manifest.permission.CAPTURE_TV_INPUT) public java.util.List
getAvailableTvStreamConfigList(String); method @RequiresPermission(android.Manifest.permission.TV_INPUT_HARDWARE) public java.util.List
getHardwareList(); method @RequiresPermission(android.Manifest.permission.READ_CONTENT_RATING_SYSTEMS) public java.util.List
getTvContentRatingSystemList(); method @RequiresPermission(android.Manifest.permission.CAPTURE_TV_INPUT) public boolean isSingleSessionActive(); method @RequiresPermission(android.Manifest.permission.NOTIFY_TV_INPUTS) public void notifyPreviewProgramAddedToWatchNext(String, long, long); method @RequiresPermission(android.Manifest.permission.NOTIFY_TV_INPUTS) public void notifyPreviewProgramBrowsableDisabled(String, long); method @RequiresPermission(android.Manifest.permission.NOTIFY_TV_INPUTS) public void notifyWatchNextProgramBrowsableDisabled(String, long); method @RequiresPermission(android.Manifest.permission.TV_INPUT_HARDWARE) public void releaseTvInputHardware(int, android.media.tv.TvInputManager.Hardware); method @RequiresPermission(android.Manifest.permission.MODIFY_PARENTAL_CONTROLS) public void removeBlockedRating(@NonNull android.media.tv.TvContentRating); method @RequiresPermission(android.Manifest.permission.MODIFY_PARENTAL_CONTROLS) public void setParentalControlsEnabled(boolean); } public static final class TvInputManager.Hardware { method public void overrideAudioSink(int, String, int, int, int); method public void setStreamVolume(float); method public boolean setSurface(android.view.Surface, android.media.tv.TvStreamConfig); } public abstract static class TvInputManager.HardwareCallback { ctor public TvInputManager.HardwareCallback(); method public abstract void onReleased(); method public abstract void onStreamConfigChanged(android.media.tv.TvStreamConfig[]); } public abstract class TvInputService extends android.app.Service { method @Nullable public android.media.tv.TvInputInfo onHardwareAdded(android.media.tv.TvInputHardwareInfo); method @Nullable public String onHardwareRemoved(android.media.tv.TvInputHardwareInfo); method @Nullable public android.media.tv.TvInputInfo onHdmiDeviceAdded(android.hardware.hdmi.HdmiDeviceInfo); method @Nullable public String onHdmiDeviceRemoved(android.hardware.hdmi.HdmiDeviceInfo); } public abstract static class TvInputService.RecordingSession { method public void notifySessionEvent(@NonNull String, android.os.Bundle); } public abstract static class TvInputService.Session implements android.view.KeyEvent.Callback { method public void notifySessionEvent(@NonNull String, android.os.Bundle); method public void onSetMain(boolean); } public abstract static class TvRecordingClient.RecordingCallback { method public void onEvent(String, String, android.os.Bundle); } public class TvStreamConfig implements android.os.Parcelable { method public int describeContents(); method public int getGeneration(); method public int getMaxHeight(); method public int getMaxWidth(); method public int getStreamId(); method public int getType(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final int STREAM_TYPE_BUFFER_PRODUCER = 2; // 0x2 field public static final int STREAM_TYPE_INDEPENDENT_VIDEO_SOURCE = 1; // 0x1 } public static final class TvStreamConfig.Builder { ctor public TvStreamConfig.Builder(); method public android.media.tv.TvStreamConfig build(); method public android.media.tv.TvStreamConfig.Builder generation(int); method public android.media.tv.TvStreamConfig.Builder maxHeight(int); method public android.media.tv.TvStreamConfig.Builder maxWidth(int); method public android.media.tv.TvStreamConfig.Builder streamId(int); method public android.media.tv.TvStreamConfig.Builder type(int); } public class TvView extends android.view.ViewGroup { method @RequiresPermission("android.permission.CHANGE_HDMI_CEC_ACTIVE_SOURCE") public void setMain(); method @RequiresPermission(android.Manifest.permission.MODIFY_PARENTAL_CONTROLS) public void unblockContent(android.media.tv.TvContentRating); } public abstract static class TvView.TvInputCallback { method public void onEvent(String, String, android.os.Bundle); } } package android.metrics { public class LogMaker { ctor public LogMaker(int); ctor public LogMaker(Object[]); method public android.metrics.LogMaker addTaggedData(int, Object); method public android.metrics.LogMaker clearCategory(); method public android.metrics.LogMaker clearPackageName(); method public android.metrics.LogMaker clearSubtype(); method public android.metrics.LogMaker clearTaggedData(int); method public android.metrics.LogMaker clearType(); method public void deserialize(Object[]); method public int getCategory(); method public long getCounterBucket(); method public String getCounterName(); method public int getCounterValue(); method public String getPackageName(); method public int getProcessId(); method public int getSubtype(); method public Object getTaggedData(int); method public long getTimestamp(); method public int getType(); method public int getUid(); method public boolean isLongCounterBucket(); method public boolean isSubsetOf(android.metrics.LogMaker); method public boolean isValidValue(Object); method public Object[] serialize(); method public android.metrics.LogMaker setCategory(int); method public android.metrics.LogMaker setPackageName(String); method public android.metrics.LogMaker setSubtype(int); method public android.metrics.LogMaker setType(int); } public class MetricsReader { ctor public MetricsReader(); method public void checkpoint(); method public boolean hasNext(); method public android.metrics.LogMaker next(); method public void read(long); method public void reset(); } } package android.net { public class CaptivePortal implements android.os.Parcelable { method public void logEvent(int, @NonNull String); method public void useNetwork(); field public static final int APP_RETURN_DISMISSED = 0; // 0x0 field public static final int APP_RETURN_UNWANTED = 1; // 0x1 field public static final int APP_RETURN_WANTED_AS_IS = 2; // 0x2 } public class ConnectivityManager { method @NonNull @RequiresPermission(android.Manifest.permission.PACKET_KEEPALIVE_OFFLOAD) public android.net.SocketKeepalive createNattKeepalive(@NonNull android.net.Network, @NonNull android.os.ParcelFileDescriptor, @NonNull java.net.InetAddress, @NonNull java.net.InetAddress, @NonNull java.util.concurrent.Executor, @NonNull android.net.SocketKeepalive.Callback); method @NonNull @RequiresPermission(android.Manifest.permission.PACKET_KEEPALIVE_OFFLOAD) public android.net.SocketKeepalive createSocketKeepalive(@NonNull android.net.Network, @NonNull java.net.Socket, @NonNull java.util.concurrent.Executor, @NonNull android.net.SocketKeepalive.Callback); method @RequiresPermission(android.Manifest.permission.LOCAL_MAC_ADDRESS) public String getCaptivePortalServerUrl(); method @RequiresPermission(android.Manifest.permission.TETHER_PRIVILEGED) public void getLatestTetheringEntitlementResult(int, boolean, @NonNull java.util.concurrent.Executor, @NonNull android.net.ConnectivityManager.OnTetheringEntitlementResultListener); method @RequiresPermission(anyOf={android.Manifest.permission.TETHER_PRIVILEGED, android.Manifest.permission.WRITE_SETTINGS}) public boolean isTetheringSupported(); method @RequiresPermission(android.Manifest.permission.TETHER_PRIVILEGED) public void registerTetheringEventCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.ConnectivityManager.OnTetheringEventCallback); method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD, "android.permission.NETWORK_STACK"}) public void setAirplaneMode(boolean); method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, "android.permission.NETWORK_STACK"}) public boolean shouldAvoidBadWifi(); method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public void startCaptivePortalApp(@NonNull android.net.Network, @NonNull android.os.Bundle); method @RequiresPermission(android.Manifest.permission.TETHER_PRIVILEGED) public void startTethering(int, boolean, android.net.ConnectivityManager.OnStartTetheringCallback); method @RequiresPermission(android.Manifest.permission.TETHER_PRIVILEGED) public void startTethering(int, boolean, android.net.ConnectivityManager.OnStartTetheringCallback, android.os.Handler); method @RequiresPermission(android.Manifest.permission.TETHER_PRIVILEGED) public void stopTethering(int); method @RequiresPermission(android.Manifest.permission.TETHER_PRIVILEGED) public void unregisterTetheringEventCallback(@NonNull android.net.ConnectivityManager.OnTetheringEventCallback); field public static final String EXTRA_CAPTIVE_PORTAL_PROBE_SPEC = "android.net.extra.CAPTIVE_PORTAL_PROBE_SPEC"; field public static final String EXTRA_CAPTIVE_PORTAL_USER_AGENT = "android.net.extra.CAPTIVE_PORTAL_USER_AGENT"; field public static final int TETHERING_BLUETOOTH = 2; // 0x2 field public static final int TETHERING_USB = 1; // 0x1 field public static final int TETHERING_WIFI = 0; // 0x0 field public static final int TETHER_ERROR_ENTITLEMENT_UNKONWN = 13; // 0xd field public static final int TETHER_ERROR_NO_ERROR = 0; // 0x0 field public static final int TETHER_ERROR_PROVISION_FAILED = 11; // 0xb } public abstract static class ConnectivityManager.OnStartTetheringCallback { ctor public ConnectivityManager.OnStartTetheringCallback(); method public void onTetheringFailed(); method public void onTetheringStarted(); } public static interface ConnectivityManager.OnTetheringEntitlementResultListener { method public void onTetheringEntitlementResult(int); } public abstract static class ConnectivityManager.OnTetheringEventCallback { ctor public ConnectivityManager.OnTetheringEventCallback(); method public void onUpstreamChanged(@Nullable android.net.Network); } public final class IpPrefix implements android.os.Parcelable { ctor public IpPrefix(@NonNull java.net.InetAddress, @IntRange(from=0, to=128) int); ctor public IpPrefix(@NonNull String); } public final class IpSecManager { method @RequiresPermission(android.Manifest.permission.MANAGE_IPSEC_TUNNELS) public void applyTunnelModeTransform(@NonNull android.net.IpSecManager.IpSecTunnelInterface, int, @NonNull android.net.IpSecTransform) throws java.io.IOException; method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_IPSEC_TUNNELS) public android.net.IpSecManager.IpSecTunnelInterface createIpSecTunnelInterface(@NonNull java.net.InetAddress, @NonNull java.net.InetAddress, @NonNull android.net.Network) throws java.io.IOException, android.net.IpSecManager.ResourceUnavailableException; } public static final class IpSecManager.IpSecTunnelInterface implements java.lang.AutoCloseable { method @RequiresPermission(android.Manifest.permission.MANAGE_IPSEC_TUNNELS) public void addAddress(@NonNull java.net.InetAddress, int) throws java.io.IOException; method public void close(); method @NonNull public String getInterfaceName(); method @RequiresPermission(android.Manifest.permission.MANAGE_IPSEC_TUNNELS) public void removeAddress(@NonNull java.net.InetAddress, int) throws java.io.IOException; } public static class IpSecTransform.Builder { method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_IPSEC_TUNNELS) public android.net.IpSecTransform buildTunnelModeTransform(@NonNull java.net.InetAddress, @NonNull android.net.IpSecManager.SecurityParameterIndex) throws java.io.IOException, android.net.IpSecManager.ResourceUnavailableException, android.net.IpSecManager.SpiUnavailableException; } public class LinkAddress implements android.os.Parcelable { ctor public LinkAddress(@NonNull java.net.InetAddress, @IntRange(from=0, to=128) int, int, int); ctor public LinkAddress(@NonNull java.net.InetAddress, @IntRange(from=0, to=128) int); ctor public LinkAddress(@NonNull String); ctor public LinkAddress(@NonNull String, int, int); method public boolean isGlobalPreferred(); method public boolean isIpv4(); method public boolean isIpv6(); method public boolean isSameAddressAs(@Nullable android.net.LinkAddress); } public final class LinkProperties implements android.os.Parcelable { ctor public LinkProperties(@Nullable android.net.LinkProperties); method public boolean addDnsServer(@NonNull java.net.InetAddress); method public boolean addLinkAddress(@NonNull android.net.LinkAddress); method @Nullable public android.net.IpPrefix getNat64Prefix(); method @NonNull public java.util.List
getPcscfServers(); method @Nullable public String getTcpBufferSizes(); method @NonNull public java.util.List
getValidatedPrivateDnsServers(); method public boolean hasGlobalIpv6Address(); method public boolean hasIpv4Address(); method public boolean hasIpv6DefaultRoute(); method public boolean isIpv4Provisioned(); method public boolean isIpv6Provisioned(); method public boolean isProvisioned(); method public boolean isReachable(@NonNull java.net.InetAddress); method public boolean removeDnsServer(@NonNull java.net.InetAddress); method public boolean removeLinkAddress(@NonNull android.net.LinkAddress); method public boolean removeRoute(@NonNull android.net.RouteInfo); method public void setNat64Prefix(@Nullable android.net.IpPrefix); method public void setPcscfServers(@NonNull java.util.Collection
); method public void setPrivateDnsServerName(@Nullable String); method public void setTcpBufferSizes(@Nullable String); method public void setUsePrivateDns(boolean); method public void setValidatedPrivateDnsServers(@NonNull java.util.Collection
); } public class Network implements android.os.Parcelable { ctor public Network(@NonNull android.net.Network); method @NonNull public android.net.Network getPrivateDnsBypassingCopy(); } public final class NetworkCapabilities implements android.os.Parcelable { method @NonNull public int[] getTransportTypes(); method public boolean satisfiedByNetworkCapabilities(@Nullable android.net.NetworkCapabilities); field public static final int NET_CAPABILITY_OEM_PAID = 22; // 0x16 field public static final int NET_CAPABILITY_PARTIAL_CONNECTIVITY = 24; // 0x18 } public class NetworkKey implements android.os.Parcelable { ctor public NetworkKey(android.net.WifiKey); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final int TYPE_WIFI = 1; // 0x1 field public final int type; field public final android.net.WifiKey wifiKey; } public abstract class NetworkRecommendationProvider { ctor public NetworkRecommendationProvider(android.content.Context, java.util.concurrent.Executor); method public final android.os.IBinder getBinder(); method public abstract void onRequestScores(android.net.NetworkKey[]); } public static class NetworkRequest.Builder { method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_SIGNAL_STRENGTH_WAKEUP) public android.net.NetworkRequest.Builder setSignalStrength(int); } public class NetworkScoreManager { method @RequiresPermission(anyOf={android.Manifest.permission.SCORE_NETWORKS, "android.permission.REQUEST_NETWORK_SCORES"}) public boolean clearScores() throws java.lang.SecurityException; method @RequiresPermission(anyOf={android.Manifest.permission.SCORE_NETWORKS, "android.permission.REQUEST_NETWORK_SCORES"}) public void disableScoring() throws java.lang.SecurityException; method @RequiresPermission(anyOf={android.Manifest.permission.SCORE_NETWORKS, "android.permission.REQUEST_NETWORK_SCORES"}) public String getActiveScorerPackage(); method @RequiresPermission(anyOf={android.Manifest.permission.SCORE_NETWORKS, "android.permission.REQUEST_NETWORK_SCORES"}) public boolean setActiveScorer(String) throws java.lang.SecurityException; method @RequiresPermission(android.Manifest.permission.SCORE_NETWORKS) public boolean updateScores(android.net.ScoredNetwork[]) throws java.lang.SecurityException; field public static final String ACTION_CHANGE_ACTIVE = "android.net.scoring.CHANGE_ACTIVE"; field public static final String ACTION_CUSTOM_ENABLE = "android.net.scoring.CUSTOM_ENABLE"; field public static final String ACTION_RECOMMEND_NETWORKS = "android.net.action.RECOMMEND_NETWORKS"; field public static final String ACTION_SCORER_CHANGED = "android.net.scoring.SCORER_CHANGED"; field public static final String ACTION_SCORE_NETWORKS = "android.net.scoring.SCORE_NETWORKS"; field public static final String EXTRA_NETWORKS_TO_SCORE = "networksToScore"; field public static final String EXTRA_NEW_SCORER = "newScorer"; field public static final String EXTRA_PACKAGE_NAME = "packageName"; } public class NetworkStack { field public static final String PERMISSION_MAINLINE_NETWORK_STACK = "android.permission.MAINLINE_NETWORK_STACK"; } public final class RouteInfo implements android.os.Parcelable { ctor public RouteInfo(@Nullable android.net.IpPrefix, @Nullable java.net.InetAddress, @Nullable String, int); method public int getType(); field public static final int RTN_THROW = 9; // 0x9 field public static final int RTN_UNICAST = 1; // 0x1 field public static final int RTN_UNREACHABLE = 7; // 0x7 } public class RssiCurve implements android.os.Parcelable { ctor public RssiCurve(int, int, byte[]); ctor public RssiCurve(int, int, byte[], int); method public int describeContents(); method public byte lookupScore(int); method public byte lookupScore(int, boolean); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public final int activeNetworkRssiBoost; field public final int bucketWidth; field public final byte[] rssiBuckets; field public final int start; } public class ScoredNetwork implements android.os.Parcelable { ctor public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve); ctor public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve, boolean); ctor public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve, boolean, @Nullable android.os.Bundle); method public int calculateBadge(int); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field public static final String ATTRIBUTES_KEY_BADGING_CURVE = "android.net.attributes.key.BADGING_CURVE"; field public static final String ATTRIBUTES_KEY_HAS_CAPTIVE_PORTAL = "android.net.attributes.key.HAS_CAPTIVE_PORTAL"; field public static final String ATTRIBUTES_KEY_RANKING_SCORE_OFFSET = "android.net.attributes.key.RANKING_SCORE_OFFSET"; field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field @Nullable public final android.os.Bundle attributes; field public final boolean meteredHint; field public final android.net.NetworkKey networkKey; field public final android.net.RssiCurve rssiCurve; } public final class StaticIpConfiguration implements android.os.Parcelable { ctor public StaticIpConfiguration(); ctor public StaticIpConfiguration(@Nullable android.net.StaticIpConfiguration); method public void addDnsServer(@NonNull java.net.InetAddress); method public void clear(); method public int describeContents(); method @NonNull public java.util.List
getDnsServers(); method @Nullable public String getDomains(); method @Nullable public java.net.InetAddress getGateway(); method @Nullable public android.net.LinkAddress getIpAddress(); method @NonNull public java.util.List
getRoutes(@Nullable String); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static final class StaticIpConfiguration.Builder { ctor public StaticIpConfiguration.Builder(); method @NonNull public android.net.StaticIpConfiguration build(); method @NonNull public android.net.StaticIpConfiguration.Builder setDnsServers(@NonNull Iterable
); method @NonNull public android.net.StaticIpConfiguration.Builder setDomains(@Nullable String); method @NonNull public android.net.StaticIpConfiguration.Builder setGateway(@Nullable java.net.InetAddress); method @NonNull public android.net.StaticIpConfiguration.Builder setIpAddress(@Nullable android.net.LinkAddress); } public class TrafficStats { method public static void setThreadStatsTagApp(); method public static void setThreadStatsTagBackup(); method public static void setThreadStatsTagRestore(); field public static final int TAG_NETWORK_STACK_IMPERSONATION_RANGE_END = -113; // 0xffffff8f field public static final int TAG_NETWORK_STACK_IMPERSONATION_RANGE_START = -128; // 0xffffff80 field public static final int TAG_NETWORK_STACK_RANGE_END = -257; // 0xfffffeff field public static final int TAG_NETWORK_STACK_RANGE_START = -768; // 0xfffffd00 field public static final int TAG_SYSTEM_IMPERSONATION_RANGE_END = -241; // 0xffffff0f field public static final int TAG_SYSTEM_IMPERSONATION_RANGE_START = -256; // 0xffffff00 } public abstract class Uri implements java.lang.Comparable
android.os.Parcelable { method @NonNull public String toSafeString(); } public class VpnService extends android.app.Service { method @RequiresPermission(android.Manifest.permission.CONTROL_VPN) public static void prepareAndAuthorize(android.content.Context); } public class WebAddress { ctor public WebAddress(String) throws android.net.ParseException; } public class WifiKey implements android.os.Parcelable { ctor public WifiKey(String, String); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public final String bssid; field public final String ssid; } } package android.net.apf { public final class ApfCapabilities implements android.os.Parcelable { ctor public ApfCapabilities(int, int, int); method public int describeContents(); method public static boolean getApfDrop8023Frames(); method @NonNull public static int[] getApfEtherTypeBlackList(); method public boolean hasDataAccess(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator
CREATOR; field public final int apfPacketFormat; field public final int apfVersionSupported; field public final int maximumApfProgramSize; } } package android.net.metrics { public final class ApfProgramEvent implements android.net.metrics.IpConnectivityLog.Event { } public static final class ApfProgramEvent.Builder { ctor public ApfProgramEvent.Builder(); method @NonNull public android.net.metrics.ApfProgramEvent build(); method @NonNull public android.net.metrics.ApfProgramEvent.Builder setActualLifetime(long); method @NonNull public android.net.metrics.ApfProgramEvent.Builder setCurrentRas(int); method @NonNull public android.net.metrics.ApfProgramEvent.Builder setFilteredRas(int); method @NonNull public android.net.metrics.ApfProgramEvent.Builder setFlags(boolean, boolean); method @NonNull public android.net.metrics.ApfProgramEvent.Builder setLifetime(long); method @NonNull public android.net.metrics.ApfProgramEvent.Builder setProgramLength(int); } public final class ApfStats implements android.net.metrics.IpConnectivityLog.Event { } public static final class ApfStats.Builder { ctor public ApfStats.Builder(); method @NonNull public android.net.metrics.ApfStats build(); method @NonNull public android.net.metrics.ApfStats.Builder setDroppedRas(int); method @NonNull public android.net.metrics.ApfStats.Builder setDurationMs(long); method @NonNull public android.net.metrics.ApfStats.Builder setMatchingRas(int); method @NonNull public android.net.metrics.ApfStats.Builder setMaxProgramSize(int); method @NonNull public android.net.metrics.ApfStats.Builder setParseErrors(int); method @NonNull public android.net.metrics.ApfStats.Builder setProgramUpdates(int); method @NonNull public android.net.metrics.ApfStats.Builder setProgramUpdatesAll(int); method @NonNull public android.net.metrics.ApfStats.Builder setProgramUpdatesAllowingMulticast(int); method @NonNull public android.net.metrics.ApfStats.Builder setReceivedRas(int); method @NonNull public android.net.metrics.ApfStats.Builder setZeroLifetimeRas(int); } public final class DhcpClientEvent implements android.net.metrics.IpConnectivityLog.Event { } public static final class DhcpClientEvent.Builder { ctor public DhcpClientEvent.Builder(); method @NonNull public android.net.metrics.DhcpClientEvent build(); method @NonNull public android.net.metrics.DhcpClientEvent.Builder setDurationMs(int); method @NonNull public android.net.metrics.DhcpClientEvent.Builder setMsg(String); } public final class DhcpErrorEvent implements android.net.metrics.IpConnectivityLog.Event { ctor public DhcpErrorEvent(int); method public static int errorCodeWithOption(int, int); field public static final int BOOTP_TOO_SHORT = 67174400; // 0x4010000 field public static final int BUFFER_UNDERFLOW = 83951616; // 0x5010000 field public static final int DHCP_BAD_MAGIC_COOKIE = 67239936; // 0x4020000 field public static final int DHCP_ERROR = 4; // 0x4 field public static final int DHCP_INVALID_OPTION_LENGTH = 67305472; // 0x4030000 field public static final int DHCP_NO_COOKIE = 67502080; // 0x4060000 field public static final int DHCP_NO_MSG_TYPE = 67371008; // 0x4040000 field public static final int DHCP_UNKNOWN_MSG_TYPE = 67436544; // 0x4050000 field public static final int L2_ERROR = 1; // 0x1 field public static final int L2_TOO_SHORT = 16842752; // 0x1010000 field public static final int L2_WRONG_ETH_TYPE = 16908288; // 0x1020000 field public static final int L3_ERROR = 2; // 0x2 field public static final int L3_INVALID_IP = 33751040; // 0x2030000 field public static final int L3_NOT_IPV4 = 33685504; // 0x2020000 field public static final int L3_TOO_SHORT = 33619968; // 0x2010000 field public static final int L4_ERROR = 3; // 0x3 field public static final int L4_NOT_UDP = 50397184; // 0x3010000 field public static final int L4_WRONG_PORT = 50462720; // 0x3020000 field public static final int MISC_ERROR = 5; // 0x5 field public static final int PARSING_ERROR = 84082688; // 0x5030000 field public static final int RECEIVE_ERROR = 84017152; // 0x5020000 } public class IpConnectivityLog { ctor public IpConnectivityLog(); method public boolean log(long, @NonNull android.net.metrics.IpConnectivityLog.Event); method public boolean log(@NonNull String, @NonNull android.net.metrics.IpConnectivityLog.Event); method public boolean log(@NonNull android.net.Network, @NonNull int[], @NonNull android.net.metrics.IpConnectivityLog.Event); method public boolean log(int, @NonNull int[], @NonNull android.net.metrics.IpConnectivityLog.Event); method public boolean log(@NonNull android.net.metrics.IpConnectivityLog.Event); } public static interface IpConnectivityLog.Event extends android.os.Parcelable { } public final class IpManagerEvent implements android.net.metrics.IpConnectivityLog.Event { ctor public IpManagerEvent(int, long); field public static final int COMPLETE_LIFECYCLE = 3; // 0x3 field public static final int ERROR_INTERFACE_NOT_FOUND = 8; // 0x8 field public static final int ERROR_INVALID_PROVISIONING = 7; // 0x7 field public static final int ERROR_STARTING_IPREACHABILITYMONITOR = 6; // 0x6 field public static final int ERROR_STARTING_IPV4 = 4; // 0x4 field public static final int ERROR_STARTING_IPV6 = 5; // 0x5 field public static final int PROVISIONING_FAIL = 2; // 0x2 field public static final int PROVISIONING_OK = 1; // 0x1 } public final class IpReachabilityEvent implements android.net.metrics.IpConnectivityLog.Event { ctor public IpReachabilityEvent(int); field public static final int NUD_FAILED = 512; // 0x200 field public static final int NUD_FAILED_ORGANIC = 1024; // 0x400 field public static final int PROBE = 256; // 0x100 field public static final int PROVISIONING_LOST = 768; // 0x300 field public static final int PROVISIONING_LOST_ORGANIC = 1280; // 0x500 } public final class NetworkEvent implements android.net.metrics.IpConnectivityLog.Event { ctor public NetworkEvent(int, long); ctor public NetworkEvent(int); field public static final int NETWORK_CAPTIVE_PORTAL_FOUND = 4; // 0x4 field public static final int NETWORK_CONNECTED = 1; // 0x1 field public static final int NETWORK_CONSECUTIVE_DNS_TIMEOUT_FOUND = 12; // 0xc field public static final int NETWORK_DISCONNECTED = 7; // 0x7 field public static final int NETWORK_FIRST_VALIDATION_PORTAL_FOUND = 10; // 0xa field public static final int NETWORK_FIRST_VALIDATION_SUCCESS = 8; // 0x8 field public static final int NETWORK_LINGER = 5; // 0x5 field public static final int NETWORK_PARTIAL_CONNECTIVITY = 13; // 0xd field public static final int NETWORK_REVALIDATION_PORTAL_FOUND = 11; // 0xb field public static final int NETWORK_REVALIDATION_SUCCESS = 9; // 0x9 field public static final int NETWORK_UNLINGER = 6; // 0x6 field public static final int NETWORK_VALIDATED = 2; // 0x2 field public static final int NETWORK_VALIDATION_FAILED = 3; // 0x3 } public final class RaEvent implements android.net.metrics.IpConnectivityLog.Event { } public static final class RaEvent.Builder { ctor public RaEvent.Builder(); method @NonNull public android.net.metrics.RaEvent build(); method @NonNull public android.net.metrics.RaEvent.Builder updateDnsslLifetime(long); method @NonNull public android.net.metrics.RaEvent.Builder updatePrefixPreferredLifetime(long); method @NonNull public android.net.metrics.RaEvent.Builder updatePrefixValidLifetime(long); method @NonNull public android.net.metrics.RaEvent.Builder updateRdnssLifetime(long); method @NonNull public android.net.metrics.RaEvent.Builder updateRouteInfoLifetime(long); method @NonNull public android.net.metrics.RaEvent.Builder updateRouterLifetime(long); } public final class ValidationProbeEvent implements android.net.metrics.IpConnectivityLog.Event { method @NonNull public static String getProbeName(int); field public static final int DNS_FAILURE = 0; // 0x0 field public static final int DNS_SUCCESS = 1; // 0x1 field public static final int PROBE_DNS = 0; // 0x0 field public static final int PROBE_FALLBACK = 4; // 0x4 field public static final int PROBE_HTTP = 1; // 0x1 field public static final int PROBE_HTTPS = 2; // 0x2 field public static final int PROBE_PAC = 3; // 0x3 field public static final int PROBE_PRIVDNS = 5; // 0x5 } public static final class ValidationProbeEvent.Builder { ctor public ValidationProbeEvent.Builder(); method @NonNull public android.net.metrics.ValidationProbeEvent build(); method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setDurationMs(long); method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setProbeType(int, boolean); method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setReturnCode(int); } } package android.net.util { public final class SocketUtils { method public static void bindSocketToInterface(@NonNull java.io.FileDescriptor, @NonNull String) throws android.system.ErrnoException; method public static void closeSocket(@Nullable java.io.FileDescriptor) throws java.io.IOException; method @NonNull public static java.net.SocketAddress makeNetlinkSocketAddress(int, int); method @NonNull public static java.net.SocketAddress makePacketSocketAddress(int, int); method @NonNull public static java.net.SocketAddress makePacketSocketAddress(int, @NonNull byte[]); } } package android.net.wifi { public abstract class EasyConnectStatusCallback { ctor public EasyConnectStatusCallback(); method public abstract void onConfiguratorSuccess(int); method public abstract void onEnrolleeSuccess(int); method public abstract void onFailure(int); method public abstract void onProgress(int); field public static final int EASY_CONNECT_EVENT_FAILURE_AUTHENTICATION = -2; // 0xfffffffe field public static final int EASY_CONNECT_EVENT_FAILURE_BUSY = -5; // 0xfffffffb field public static final int EASY_CONNECT_EVENT_FAILURE_CONFIGURATION = -4; // 0xfffffffc field public static final int EASY_CONNECT_EVENT_FAILURE_GENERIC = -7; // 0xfffffff9 field public static final int EASY_CONNECT_EVENT_FAILURE_INVALID_NETWORK = -9; // 0xfffffff7 field public static final int EASY_CONNECT_EVENT_FAILURE_INVALID_URI = -1; // 0xffffffff field public static final int EASY_CONNECT_EVENT_FAILURE_NOT_COMPATIBLE = -3; // 0xfffffffd field public static final int EASY_CONNECT_EVENT_FAILURE_NOT_SUPPORTED = -8; // 0xfffffff8 field public static final int EASY_CONNECT_EVENT_FAILURE_TIMEOUT = -6; // 0xfffffffa field public static final int EASY_CONNECT_EVENT_PROGRESS_AUTHENTICATION_SUCCESS = 0; // 0x0 field public static final int EASY_CONNECT_EVENT_PROGRESS_RESPONSE_PENDING = 1; // 0x1 field public static final int EASY_CONNECT_EVENT_SUCCESS_CONFIGURATION_SENT = 0; // 0x0 } @Deprecated public class RttManager { method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void disableResponder(android.net.wifi.RttManager.ResponderCallback); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void enableResponder(android.net.wifi.RttManager.ResponderCallback); method @Deprecated public android.net.wifi.RttManager.Capabilities getCapabilities(); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public android.net.wifi.RttManager.RttCapabilities getRttCapabilities(); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startRanging(android.net.wifi.RttManager.RttParams[], android.net.wifi.RttManager.RttListener); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void stopRanging(android.net.wifi.RttManager.RttListener); field @Deprecated public static final int BASE = 160256; // 0x27200 field @Deprecated public static final int CMD_OP_ABORTED = 160260; // 0x27204 field @Deprecated public static final int CMD_OP_DISABLE_RESPONDER = 160262; // 0x27206 field @Deprecated public static final int CMD_OP_ENABLE_RESPONDER = 160261; // 0x27205 field @Deprecated public static final int CMD_OP_ENALBE_RESPONDER_FAILED = 160264; // 0x27208 field @Deprecated public static final int CMD_OP_ENALBE_RESPONDER_SUCCEEDED = 160263; // 0x27207 field @Deprecated public static final int CMD_OP_FAILED = 160258; // 0x27202 field @Deprecated public static final int CMD_OP_START_RANGING = 160256; // 0x27200 field @Deprecated public static final int CMD_OP_STOP_RANGING = 160257; // 0x27201 field @Deprecated public static final int CMD_OP_SUCCEEDED = 160259; // 0x27203 field @Deprecated public static final String DESCRIPTION_KEY = "android.net.wifi.RttManager.Description"; field @Deprecated public static final int PREAMBLE_HT = 2; // 0x2 field @Deprecated public static final int PREAMBLE_LEGACY = 1; // 0x1 field @Deprecated public static final int PREAMBLE_VHT = 4; // 0x4 field @Deprecated public static final int REASON_INITIATOR_NOT_ALLOWED_WHEN_RESPONDER_ON = -6; // 0xfffffffa field @Deprecated public static final int REASON_INVALID_LISTENER = -3; // 0xfffffffd field @Deprecated public static final int REASON_INVALID_REQUEST = -4; // 0xfffffffc field @Deprecated public static final int REASON_NOT_AVAILABLE = -2; // 0xfffffffe field @Deprecated public static final int REASON_PERMISSION_DENIED = -5; // 0xfffffffb field @Deprecated public static final int REASON_UNSPECIFIED = -1; // 0xffffffff field @Deprecated public static final int RTT_BW_10_SUPPORT = 2; // 0x2 field @Deprecated public static final int RTT_BW_160_SUPPORT = 32; // 0x20 field @Deprecated public static final int RTT_BW_20_SUPPORT = 4; // 0x4 field @Deprecated public static final int RTT_BW_40_SUPPORT = 8; // 0x8 field @Deprecated public static final int RTT_BW_5_SUPPORT = 1; // 0x1 field @Deprecated public static final int RTT_BW_80_SUPPORT = 16; // 0x10 field @Deprecated public static final int RTT_CHANNEL_WIDTH_10 = 6; // 0x6 field @Deprecated public static final int RTT_CHANNEL_WIDTH_160 = 3; // 0x3 field @Deprecated public static final int RTT_CHANNEL_WIDTH_20 = 0; // 0x0 field @Deprecated public static final int RTT_CHANNEL_WIDTH_40 = 1; // 0x1 field @Deprecated public static final int RTT_CHANNEL_WIDTH_5 = 5; // 0x5 field @Deprecated public static final int RTT_CHANNEL_WIDTH_80 = 2; // 0x2 field @Deprecated public static final int RTT_CHANNEL_WIDTH_80P80 = 4; // 0x4 field @Deprecated public static final int RTT_CHANNEL_WIDTH_UNSPECIFIED = -1; // 0xffffffff field @Deprecated public static final int RTT_PEER_NAN = 5; // 0x5 field @Deprecated public static final int RTT_PEER_P2P_CLIENT = 4; // 0x4 field @Deprecated public static final int RTT_PEER_P2P_GO = 3; // 0x3 field @Deprecated public static final int RTT_PEER_TYPE_AP = 1; // 0x1 field @Deprecated public static final int RTT_PEER_TYPE_STA = 2; // 0x2 field @Deprecated public static final int RTT_PEER_TYPE_UNSPECIFIED = 0; // 0x0 field @Deprecated public static final int RTT_STATUS_ABORTED = 8; // 0x8 field @Deprecated public static final int RTT_STATUS_FAILURE = 1; // 0x1 field @Deprecated public static final int RTT_STATUS_FAIL_AP_ON_DIFF_CHANNEL = 6; // 0x6 field @Deprecated public static final int RTT_STATUS_FAIL_BUSY_TRY_LATER = 12; // 0xc field @Deprecated public static final int RTT_STATUS_FAIL_FTM_PARAM_OVERRIDE = 15; // 0xf field @Deprecated public static final int RTT_STATUS_FAIL_INVALID_TS = 9; // 0x9 field @Deprecated public static final int RTT_STATUS_FAIL_NOT_SCHEDULED_YET = 4; // 0x4 field @Deprecated public static final int RTT_STATUS_FAIL_NO_CAPABILITY = 7; // 0x7 field @Deprecated public static final int RTT_STATUS_FAIL_NO_RSP = 2; // 0x2 field @Deprecated public static final int RTT_STATUS_FAIL_PROTOCOL = 10; // 0xa field @Deprecated public static final int RTT_STATUS_FAIL_REJECTED = 3; // 0x3 field @Deprecated public static final int RTT_STATUS_FAIL_SCHEDULE = 11; // 0xb field @Deprecated public static final int RTT_STATUS_FAIL_TM_TIMEOUT = 5; // 0x5 field @Deprecated public static final int RTT_STATUS_INVALID_REQ = 13; // 0xd field @Deprecated public static final int RTT_STATUS_NO_WIFI = 14; // 0xe field @Deprecated public static final int RTT_STATUS_SUCCESS = 0; // 0x0 field @Deprecated public static final int RTT_TYPE_11_MC = 4; // 0x4 field @Deprecated public static final int RTT_TYPE_11_V = 2; // 0x2 field @Deprecated public static final int RTT_TYPE_ONE_SIDED = 1; // 0x1 field @Deprecated public static final int RTT_TYPE_TWO_SIDED = 2; // 0x2 field @Deprecated public static final int RTT_TYPE_UNSPECIFIED = 0; // 0x0 } @Deprecated public class RttManager.Capabilities { ctor @Deprecated public RttManager.Capabilities(); field @Deprecated public int supportedPeerType; field @Deprecated public int supportedType; } @Deprecated public static class RttManager.ParcelableRttParams implements android.os.Parcelable { field @Deprecated @NonNull public android.net.wifi.RttManager.RttParams[] mParams; } @Deprecated public static class RttManager.ParcelableRttResults implements android.os.Parcelable { ctor @Deprecated public RttManager.ParcelableRttResults(android.net.wifi.RttManager.RttResult[]); field @Deprecated public android.net.wifi.RttManager.RttResult[] mResults; } @Deprecated public abstract static class RttManager.ResponderCallback { ctor @Deprecated public RttManager.ResponderCallback(); method @Deprecated public abstract void onResponderEnableFailure(int); method @Deprecated public abstract void onResponderEnabled(android.net.wifi.RttManager.ResponderConfig); } @Deprecated public static class RttManager.ResponderConfig implements android.os.Parcelable { ctor @Deprecated public RttManager.ResponderConfig(); method @Deprecated public int describeContents(); method @Deprecated public void writeToParcel(android.os.Parcel, int); field @Deprecated @NonNull public static final android.os.Parcelable.Creator
CREATOR; field @Deprecated public int centerFreq0; field @Deprecated public int centerFreq1; field @Deprecated public int channelWidth; field @Deprecated public int frequency; field @Deprecated public String macAddress; field @Deprecated public int preamble; } @Deprecated public static class RttManager.RttCapabilities implements android.os.Parcelable { ctor @Deprecated public RttManager.RttCapabilities(); field @Deprecated public int bwSupported; field @Deprecated public boolean lciSupported; field @Deprecated public boolean lcrSupported; field @Deprecated public int mcVersion; field @Deprecated public boolean oneSidedRttSupported; field @Deprecated public int preambleSupported; field @Deprecated public boolean responderSupported; field @Deprecated public boolean secureRttSupported; field @Deprecated public boolean supportedPeerType; field @Deprecated public boolean supportedType; field @Deprecated public boolean twoSided11McRttSupported; } @Deprecated public static interface RttManager.RttListener { method @Deprecated public void onAborted(); method @Deprecated public void onFailure(int, String); method @Deprecated public void onSuccess(android.net.wifi.RttManager.RttResult[]); } @Deprecated public static class RttManager.RttParams { ctor @Deprecated public RttManager.RttParams(); field @Deprecated public boolean LCIRequest; field @Deprecated public boolean LCRRequest; field @Deprecated public int bandwidth; field @Deprecated public String bssid; field @Deprecated public int burstTimeout; field @Deprecated public int centerFreq0; field @Deprecated public int centerFreq1; field @Deprecated public int channelWidth; field @Deprecated public int deviceType; field @Deprecated public int frequency; field @Deprecated public int interval; field @Deprecated public int numRetriesPerFTMR; field @Deprecated public int numRetriesPerMeasurementFrame; field @Deprecated public int numSamplesPerBurst; field @Deprecated public int num_retries; field @Deprecated public int num_samples; field @Deprecated public int numberBurst; field @Deprecated public int preamble; field @Deprecated public int requestType; field @Deprecated public boolean secure; } @Deprecated public static class RttManager.RttResult { ctor @Deprecated public RttManager.RttResult(); field @Deprecated public android.net.wifi.RttManager.WifiInformationElement LCI; field @Deprecated public android.net.wifi.RttManager.WifiInformationElement LCR; field @Deprecated public String bssid; field @Deprecated public int burstDuration; field @Deprecated public int burstNumber; field @Deprecated public int distance; field @Deprecated public int distanceSpread; field @Deprecated public int distanceStandardDeviation; field @Deprecated public int distance_cm; field @Deprecated public int distance_sd_cm; field @Deprecated public int distance_spread_cm; field @Deprecated public int frameNumberPerBurstPeer; field @Deprecated public int measurementFrameNumber; field @Deprecated public int measurementType; field @Deprecated public int negotiatedBurstNum; field @Deprecated public int requestType; field @Deprecated public int retryAfterDuration; field @Deprecated public int rssi; field @Deprecated public int rssiSpread; field @Deprecated public int rssi_spread; field @Deprecated public long rtt; field @Deprecated public long rttSpread; field @Deprecated public long rttStandardDeviation; field @Deprecated public long rtt_ns; field @Deprecated public long rtt_sd_ns; field @Deprecated public long rtt_spread_ns; field @Deprecated public int rxRate; field @Deprecated public boolean secure; field @Deprecated public int status; field @Deprecated public int successMeasurementFrameNumber; field @Deprecated public long ts; field @Deprecated public int txRate; field @Deprecated public int tx_rate; } @Deprecated public static class RttManager.WifiInformationElement { ctor @Deprecated public RttManager.WifiInformationElement(); field @Deprecated public byte[] data; field @Deprecated public byte id; } @Deprecated public class WifiConfiguration implements android.os.Parcelable { method @Deprecated public boolean hasNoInternetAccess(); method @Deprecated public boolean isEphemeral(); method @Deprecated public boolean isNoInternetAccessExpected(); field @Deprecated public String creatorName; field @Deprecated public int creatorUid; field @Deprecated public String lastUpdateName; field @Deprecated public int lastUpdateUid; field @Deprecated public boolean meteredHint; field @Deprecated public int numAssociation; field @Deprecated public int numScorerOverride; field @Deprecated public int numScorerOverrideAndSwitchedNetwork; field @Deprecated public boolean useExternalScores; } @Deprecated public static class WifiConfiguration.KeyMgmt { field @Deprecated public static final int WPA2_PSK = 4; // 0x4 } public class WifiInfo implements android.os.Parcelable { method public boolean isOsuAp(); method public boolean isPasspointAp(); } public class WifiManager { method @RequiresPermission("android.permission.WIFI_UPDATE_USABILITY_STATS_SCORE") public void addOnWifiUsabilityStatsListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.OnWifiUsabilityStatsListener); method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD, "android.permission.NETWORK_STACK"}) public void connect(@NonNull android.net.wifi.WifiConfiguration, @Nullable android.net.wifi.WifiManager.ActionListener); method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD, "android.permission.NETWORK_STACK"}) public void connect(int, @Nullable android.net.wifi.WifiManager.ActionListener); method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD, "android.permission.NETWORK_STACK"}) public void disable(int, @Nullable android.net.wifi.WifiManager.ActionListener); method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD, "android.permission.NETWORK_STACK"}) public void forget(int, @Nullable android.net.wifi.WifiManager.ActionListener); method @NonNull @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD}) public java.util.List
>>> getAllMatchingWifiConfigs(@NonNull java.util.List
); method @NonNull @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD}) public java.util.Map
> getMatchingOsuProviders(@Nullable java.util.List
); method @NonNull @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD}) public java.util.Map
getMatchingPasspointConfigsForOsuProviders(@NonNull java.util.Set
); method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.READ_WIFI_CREDENTIAL}) public java.util.List
getPrivilegedConfiguredNetworks(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public android.net.wifi.WifiConfiguration getWifiApConfiguration(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public int getWifiApState(); method @Deprecated public boolean isDeviceToDeviceRttSupported(); method public boolean isPortableHotspotSupported(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isWifiApEnabled(); method public boolean isWifiScannerSupported(); method @RequiresPermission("android.permission.WIFI_UPDATE_USABILITY_STATS_SCORE") public void removeOnWifiUsabilityStatsListener(@NonNull android.net.wifi.WifiManager.OnWifiUsabilityStatsListener); method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD, "android.permission.NETWORK_STACK"}) public void save(@NonNull android.net.wifi.WifiConfiguration, @Nullable android.net.wifi.WifiManager.ActionListener); method @RequiresPermission("android.permission.WIFI_SET_DEVICE_MOBILITY_STATE") public void setDeviceMobilityState(int); method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public boolean setWifiApConfiguration(android.net.wifi.WifiConfiguration); method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startEasyConnectAsConfiguratorInitiator(@NonNull String, int, int, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.EasyConnectStatusCallback); method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startEasyConnectAsEnrolleeInitiator(@NonNull String, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.EasyConnectStatusCallback); method @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public boolean startScan(android.os.WorkSource); method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startSubscriptionProvisioning(@NonNull android.net.wifi.hotspot2.OsuProvider, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.hotspot2.ProvisioningCallback); method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void stopEasyConnectSession(); method @RequiresPermission("android.permission.WIFI_UPDATE_USABILITY_STATS_SCORE") public void updateWifiUsabilityScore(int, int, int); field public static final int CHANGE_REASON_ADDED = 0; // 0x0 field public static final int CHANGE_REASON_CONFIG_CHANGE = 2; // 0x2 field public static final int CHANGE_REASON_REMOVED = 1; // 0x1 field public static final String CONFIGURED_NETWORKS_CHANGED_ACTION = "android.net.wifi.CONFIGURED_NETWORKS_CHANGE"; field public static final int DEVICE_MOBILITY_STATE_HIGH_MVMT = 1; // 0x1 field public static final int DEVICE_MOBILITY_STATE_LOW_MVMT = 2; // 0x2 field public static final int DEVICE_MOBILITY_STATE_STATIONARY = 3; // 0x3 field public static final int DEVICE_MOBILITY_STATE_UNKNOWN = 0; // 0x0 field public static final int EASY_CONNECT_NETWORK_ROLE_AP = 1; // 0x1 field public static final int EASY_CONNECT_NETWORK_ROLE_STA = 0; // 0x0 field public static final String EXTRA_CHANGE_REASON = "changeReason"; field public static final String EXTRA_MULTIPLE_NETWORKS_CHANGED = "multipleChanges"; field public static final String EXTRA_PREVIOUS_WIFI_AP_STATE = "previous_wifi_state"; field public static final String EXTRA_WIFI_AP_STATE = "wifi_state"; field public static final String EXTRA_WIFI_CONFIGURATION = "wifiConfiguration"; field public static final String EXTRA_WIFI_CREDENTIAL_EVENT_TYPE = "et"; field public static final String EXTRA_WIFI_CREDENTIAL_SSID = "ssid"; field public static final int PASSPOINT_HOME_NETWORK = 0; // 0x0 field public static final int PASSPOINT_ROAMING_NETWORK = 1; // 0x1 field public static final String WIFI_AP_STATE_CHANGED_ACTION = "android.net.wifi.WIFI_AP_STATE_CHANGED"; field public static final int WIFI_AP_STATE_DISABLED = 11; // 0xb field public static final int WIFI_AP_STATE_DISABLING = 10; // 0xa field public static final int WIFI_AP_STATE_ENABLED = 13; // 0xd field public static final int WIFI_AP_STATE_ENABLING = 12; // 0xc field public static final int WIFI_AP_STATE_FAILED = 14; // 0xe field public static final String WIFI_CREDENTIAL_CHANGED_ACTION = "android.net.wifi.WIFI_CREDENTIAL_CHANGED"; field public static final int WIFI_CREDENTIAL_FORGOT = 1; // 0x1 field public static final int WIFI_CREDENTIAL_SAVED = 0; // 0x0 } public static interface WifiManager.ActionListener { method public void onFailure(int); method public void onSuccess(); } public static interface WifiManager.OnWifiUsabilityStatsListener { method public void onWifiUsabilityStats(int, boolean, @NonNull android.net.wifi.WifiUsabilityStatsEntry); } public class WifiNetworkConnectionStatistics implements android.os.Parcelable { ctor public WifiNetworkConnectionStatistics(int, int); ctor public WifiNetworkConnectionStatistics(); ctor public WifiNetworkConnectionStatistics(android.net.wifi.WifiNetworkConnectionStatistics); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public int numConnection; field public int numUsage; } public class WifiScanner { method @Deprecated public void configureWifiChange(int, int, int, int, int, android.net.wifi.WifiScanner.BssidInfo[]); method @Deprecated public void configureWifiChange(android.net.wifi.WifiScanner.WifiChangeSettings); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean getScanResults(); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startBackgroundScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startBackgroundScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener, android.os.WorkSource); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener, android.os.WorkSource); method @Deprecated public void startTrackingBssids(android.net.wifi.WifiScanner.BssidInfo[], int, android.net.wifi.WifiScanner.BssidListener); method @Deprecated public void startTrackingWifiChange(android.net.wifi.WifiScanner.WifiChangeListener); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void stopBackgroundScan(android.net.wifi.WifiScanner.ScanListener); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void stopScan(android.net.wifi.WifiScanner.ScanListener); method @Deprecated public void stopTrackingBssids(android.net.wifi.WifiScanner.BssidListener); method @Deprecated public void stopTrackingWifiChange(android.net.wifi.WifiScanner.WifiChangeListener); field public static final int MAX_SCAN_PERIOD_MS = 1024000; // 0xfa000 field public static final int MIN_SCAN_PERIOD_MS = 1000; // 0x3e8 field public static final int REASON_DUPLICATE_REQEUST = -5; // 0xfffffffb field public static final int REASON_INVALID_LISTENER = -2; // 0xfffffffe field public static final int REASON_INVALID_REQUEST = -3; // 0xfffffffd field public static final int REASON_NOT_AUTHORIZED = -4; // 0xfffffffc field public static final int REASON_SUCCEEDED = 0; // 0x0 field public static final int REASON_UNSPECIFIED = -1; // 0xffffffff field @Deprecated public static final int REPORT_EVENT_AFTER_BUFFER_FULL = 0; // 0x0 field public static final int REPORT_EVENT_AFTER_EACH_SCAN = 1; // 0x1 field public static final int REPORT_EVENT_FULL_SCAN_RESULT = 2; // 0x2 field public static final int REPORT_EVENT_NO_BATCH = 4; // 0x4 field public static final int WIFI_BAND_24_GHZ = 1; // 0x1 field public static final int WIFI_BAND_5_GHZ = 2; // 0x2 field public static final int WIFI_BAND_5_GHZ_DFS_ONLY = 4; // 0x4 field public static final int WIFI_BAND_5_GHZ_WITH_DFS = 6; // 0x6 field public static final int WIFI_BAND_BOTH = 3; // 0x3 field public static final int WIFI_BAND_BOTH_WITH_DFS = 7; // 0x7 field public static final int WIFI_BAND_UNSPECIFIED = 0; // 0x0 } public static interface WifiScanner.ActionListener { method public void onFailure(int, String); method public void onSuccess(); } @Deprecated public static class WifiScanner.BssidInfo { ctor @Deprecated public WifiScanner.BssidInfo(); field @Deprecated public String bssid; field @Deprecated public int frequencyHint; field @Deprecated public int high; field @Deprecated public int low; } @Deprecated public static interface WifiScanner.BssidListener extends android.net.wifi.WifiScanner.ActionListener { method @Deprecated public void onFound(android.net.wifi.ScanResult[]); method @Deprecated public void onLost(android.net.wifi.ScanResult[]); } public static class WifiScanner.ChannelSpec { ctor public WifiScanner.ChannelSpec(int); field public int frequency; } @Deprecated public static class WifiScanner.HotlistSettings implements android.os.Parcelable { ctor @Deprecated public WifiScanner.HotlistSettings(); field @Deprecated public int apLostThreshold; field @Deprecated public android.net.wifi.WifiScanner.BssidInfo[] bssidInfos; } public static class WifiScanner.ParcelableScanData implements android.os.Parcelable { ctor public WifiScanner.ParcelableScanData(android.net.wifi.WifiScanner.ScanData[]); method public android.net.wifi.WifiScanner.ScanData[] getResults(); field public android.net.wifi.WifiScanner.ScanData[] mResults; } public static class WifiScanner.ParcelableScanResults implements android.os.Parcelable { ctor public WifiScanner.ParcelableScanResults(android.net.wifi.ScanResult[]); method public android.net.wifi.ScanResult[] getResults(); field public android.net.wifi.ScanResult[] mResults; } public static class WifiScanner.ScanData implements android.os.Parcelable { ctor public WifiScanner.ScanData(int, int, android.net.wifi.ScanResult[]); ctor public WifiScanner.ScanData(android.net.wifi.WifiScanner.ScanData); method public int getFlags(); method public int getId(); method public android.net.wifi.ScanResult[] getResults(); } public static interface WifiScanner.ScanListener extends android.net.wifi.WifiScanner.ActionListener { method public void onFullResult(android.net.wifi.ScanResult); method public void onPeriodChanged(int); method public void onResults(android.net.wifi.WifiScanner.ScanData[]); } public static class WifiScanner.ScanSettings implements android.os.Parcelable { ctor public WifiScanner.ScanSettings(); field public int band; field public android.net.wifi.WifiScanner.ChannelSpec[] channels; field public boolean hideFromAppOps; field public boolean ignoreLocationSettings; field public int maxPeriodInMs; field public int maxScansToCache; field public int numBssidsPerScan; field public int periodInMs; field public int reportEvents; field public int stepCount; } @Deprecated public static interface WifiScanner.WifiChangeListener extends android.net.wifi.WifiScanner.ActionListener { method @Deprecated public void onChanging(android.net.wifi.ScanResult[]); method @Deprecated public void onQuiescence(android.net.wifi.ScanResult[]); } @Deprecated public static class WifiScanner.WifiChangeSettings implements android.os.Parcelable { ctor @Deprecated public WifiScanner.WifiChangeSettings(); field @Deprecated public android.net.wifi.WifiScanner.BssidInfo[] bssidInfos; field @Deprecated public int lostApSampleSize; field @Deprecated public int minApsBreachingThreshold; field @Deprecated public int periodInMs; field @Deprecated public int rssiSampleSize; field @Deprecated public int unchangedSampleSize; } public final class WifiUsabilityStatsEntry implements android.os.Parcelable { method public int describeContents(); method public int getCellularDataNetworkType(); method public int getCellularSignalStrengthDb(); method public int getCellularSignalStrengthDbm(); method public int getLinkSpeedMbps(); method public int getProbeElapsedTimeSinceLastUpdateMillis(); method public int getProbeMcsRateSinceLastUpdate(); method public int getProbeStatusSinceLastUpdate(); method public int getRssi(); method public int getRxLinkSpeedMbps(); method public long getTimeStampMillis(); method public long getTotalBackgroundScanTimeMillis(); method public long getTotalBeaconRx(); method public long getTotalCcaBusyFreqTimeMillis(); method public long getTotalHotspot2ScanTimeMillis(); method public long getTotalNanScanTimeMillis(); method public long getTotalPnoScanTimeMillis(); method public long getTotalRadioOnFreqTimeMillis(); method public long getTotalRadioOnTimeMillis(); method public long getTotalRadioRxTimeMillis(); method public long getTotalRadioTxTimeMillis(); method public long getTotalRoamScanTimeMillis(); method public long getTotalRxSuccess(); method public long getTotalScanTimeMillis(); method public long getTotalTxBad(); method public long getTotalTxRetries(); method public long getTotalTxSuccess(); method public boolean isSameRegisteredCell(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final int PROBE_STATUS_FAILURE = 3; // 0x3 field public static final int PROBE_STATUS_NO_PROBE = 1; // 0x1 field public static final int PROBE_STATUS_SUCCESS = 2; // 0x2 field public static final int PROBE_STATUS_UNKNOWN = 0; // 0x0 } } package android.net.wifi.aware { public class DiscoverySession implements java.lang.AutoCloseable { method @Deprecated public android.net.NetworkSpecifier createNetworkSpecifierPmk(@NonNull android.net.wifi.aware.PeerHandle, @NonNull byte[]); } public static final class WifiAwareNetworkSpecifier.Builder { method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder setPmk(@NonNull byte[]); } public class WifiAwareSession implements java.lang.AutoCloseable { method public android.net.NetworkSpecifier createNetworkSpecifierPmk(int, @NonNull byte[], @NonNull byte[]); } } package android.net.wifi.hotspot2 { public final class OsuProvider implements android.os.Parcelable { method public int describeContents(); method @Nullable public String getFriendlyName(); method @Nullable public android.net.Uri getServerUri(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public abstract class ProvisioningCallback { ctor public ProvisioningCallback(); method public abstract void onProvisioningComplete(); method public abstract void onProvisioningFailure(int); method public abstract void onProvisioningStatus(int); field public static final int OSU_FAILURE_ADD_PASSPOINT_CONFIGURATION = 22; // 0x16 field public static final int OSU_FAILURE_AP_CONNECTION = 1; // 0x1 field public static final int OSU_FAILURE_INVALID_URL_FORMAT_FOR_OSU = 8; // 0x8 field public static final int OSU_FAILURE_NO_AAA_SERVER_TRUST_ROOT_NODE = 17; // 0x11 field public static final int OSU_FAILURE_NO_AAA_TRUST_ROOT_CERTIFICATE = 21; // 0x15 field public static final int OSU_FAILURE_NO_OSU_ACTIVITY_FOUND = 14; // 0xe field public static final int OSU_FAILURE_NO_POLICY_SERVER_TRUST_ROOT_NODE = 19; // 0x13 field public static final int OSU_FAILURE_NO_PPS_MO = 16; // 0x10 field public static final int OSU_FAILURE_NO_REMEDIATION_SERVER_TRUST_ROOT_NODE = 18; // 0x12 field public static final int OSU_FAILURE_OSU_PROVIDER_NOT_FOUND = 23; // 0x17 field public static final int OSU_FAILURE_PROVISIONING_ABORTED = 6; // 0x6 field public static final int OSU_FAILURE_PROVISIONING_NOT_AVAILABLE = 7; // 0x7 field public static final int OSU_FAILURE_RETRIEVE_TRUST_ROOT_CERTIFICATES = 20; // 0x14 field public static final int OSU_FAILURE_SERVER_CONNECTION = 3; // 0x3 field public static final int OSU_FAILURE_SERVER_URL_INVALID = 2; // 0x2 field public static final int OSU_FAILURE_SERVER_VALIDATION = 4; // 0x4 field public static final int OSU_FAILURE_SERVICE_PROVIDER_VERIFICATION = 5; // 0x5 field public static final int OSU_FAILURE_SOAP_MESSAGE_EXCHANGE = 11; // 0xb field public static final int OSU_FAILURE_START_REDIRECT_LISTENER = 12; // 0xc field public static final int OSU_FAILURE_TIMED_OUT_REDIRECT_LISTENER = 13; // 0xd field public static final int OSU_FAILURE_UNEXPECTED_COMMAND_TYPE = 9; // 0x9 field public static final int OSU_FAILURE_UNEXPECTED_SOAP_MESSAGE_STATUS = 15; // 0xf field public static final int OSU_FAILURE_UNEXPECTED_SOAP_MESSAGE_TYPE = 10; // 0xa field public static final int OSU_STATUS_AP_CONNECTED = 2; // 0x2 field public static final int OSU_STATUS_AP_CONNECTING = 1; // 0x1 field public static final int OSU_STATUS_INIT_SOAP_EXCHANGE = 6; // 0x6 field public static final int OSU_STATUS_REDIRECT_RESPONSE_RECEIVED = 8; // 0x8 field public static final int OSU_STATUS_RETRIEVING_TRUST_ROOT_CERTS = 11; // 0xb field public static final int OSU_STATUS_SECOND_SOAP_EXCHANGE = 9; // 0x9 field public static final int OSU_STATUS_SERVER_CONNECTED = 5; // 0x5 field public static final int OSU_STATUS_SERVER_CONNECTING = 3; // 0x3 field public static final int OSU_STATUS_SERVER_VALIDATED = 4; // 0x4 field public static final int OSU_STATUS_THIRD_SOAP_EXCHANGE = 10; // 0xa field public static final int OSU_STATUS_WAITING_FOR_REDIRECT_RESPONSE = 7; // 0x7 } } package android.net.wifi.rtt { public static final class RangingRequest.Builder { method public android.net.wifi.rtt.RangingRequest.Builder addResponder(@NonNull android.net.wifi.rtt.ResponderConfig); } public final class RangingResult implements android.os.Parcelable { method @NonNull public byte[] getLci(); method @NonNull public byte[] getLcr(); } public final class ResponderConfig implements android.os.Parcelable { ctor public ResponderConfig(@NonNull android.net.MacAddress, int, boolean, int, int, int, int, int); ctor public ResponderConfig(@NonNull android.net.wifi.aware.PeerHandle, int, boolean, int, int, int, int, int); method public int describeContents(); method public static android.net.wifi.rtt.ResponderConfig fromScanResult(android.net.wifi.ScanResult); method public static android.net.wifi.rtt.ResponderConfig fromWifiAwarePeerHandleWithDefaults(android.net.wifi.aware.PeerHandle); method public static android.net.wifi.rtt.ResponderConfig fromWifiAwarePeerMacAddressWithDefaults(android.net.MacAddress); method public void writeToParcel(android.os.Parcel, int); field public static final int CHANNEL_WIDTH_160MHZ = 3; // 0x3 field public static final int CHANNEL_WIDTH_20MHZ = 0; // 0x0 field public static final int CHANNEL_WIDTH_40MHZ = 1; // 0x1 field public static final int CHANNEL_WIDTH_80MHZ = 2; // 0x2 field public static final int CHANNEL_WIDTH_80MHZ_PLUS_MHZ = 4; // 0x4 field @NonNull public static final android.os.Parcelable.Creator
CREATOR; field public static final int PREAMBLE_HT = 1; // 0x1 field public static final int PREAMBLE_LEGACY = 0; // 0x0 field public static final int PREAMBLE_VHT = 2; // 0x2 field public static final int RESPONDER_AP = 0; // 0x0 field public static final int RESPONDER_AWARE = 4; // 0x4 field public static final int RESPONDER_P2P_CLIENT = 3; // 0x3 field public static final int RESPONDER_P2P_GO = 2; // 0x2 field public static final int RESPONDER_STA = 1; // 0x1 field public final int centerFreq0; field public final int centerFreq1; field public final int channelWidth; field public final int frequency; field public final android.net.MacAddress macAddress; field public final android.net.wifi.aware.PeerHandle peerHandle; field public final int preamble; field public final int responderType; field public final boolean supports80211mc; } public final class ResponderLocation implements android.os.Parcelable { method public boolean getExtraInfoOnAssociationIndication(); } public class WifiRttManager { method @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE}) public void cancelRanging(@Nullable android.os.WorkSource); method @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE, android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.CHANGE_WIFI_STATE, android.Manifest.permission.ACCESS_WIFI_STATE}) public void startRanging(@Nullable android.os.WorkSource, @NonNull android.net.wifi.rtt.RangingRequest, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.rtt.RangingResultCallback); } } package android.nfc { public final class NfcAdapter { method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean addNfcUnlockHandler(android.nfc.NfcAdapter.NfcUnlockHandler, String[]); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean disable(); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean disable(boolean); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean disableNdefPush(); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean enable(); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean enableNdefPush(); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean enableSecureNfc(boolean); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean removeNfcUnlockHandler(android.nfc.NfcAdapter.NfcUnlockHandler); method public void setNdefPushMessage(android.nfc.NdefMessage, android.app.Activity, int); field public static final int FLAG_NDEF_PUSH_NO_CONFIRM = 1; // 0x1 } public static interface NfcAdapter.NfcUnlockHandler { method public boolean onUnlockAttempted(android.nfc.Tag); } } package android.os { public class BatteryManager { method @RequiresPermission(android.Manifest.permission.POWER_SAVER) public boolean setChargingStateUpdateDelayMillis(int); field public static final String EXTRA_EVENTS = "android.os.extra.EVENTS"; field public static final String EXTRA_EVENT_TIMESTAMP = "android.os.extra.EVENT_TIMESTAMP"; } public final class BatterySaverPolicyConfig implements android.os.Parcelable { method public int describeContents(); method public float getAdjustBrightnessFactor(); method public boolean getAdvertiseIsEnabled(); method public boolean getDeferFullBackup(); method public boolean getDeferKeyValueBackup(); method @NonNull public java.util.Map
getDeviceSpecificSettings(); method public boolean getDisableAnimation(); method public boolean getDisableAod(); method public boolean getDisableLaunchBoost(); method public boolean getDisableOptionalSensors(); method public boolean getDisableSoundTrigger(); method public boolean getDisableVibration(); method public boolean getEnableAdjustBrightness(); method public boolean getEnableDataSaver(); method public boolean getEnableFirewall(); method public boolean getEnableNightMode(); method public boolean getEnableQuickDoze(); method public boolean getForceAllAppsStandby(); method public boolean getForceBackgroundCheck(); method public int getLocationMode(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static final class BatterySaverPolicyConfig.Builder { ctor public BatterySaverPolicyConfig.Builder(); method @NonNull public android.os.BatterySaverPolicyConfig.Builder addDeviceSpecificSetting(@NonNull String, @NonNull String); method @NonNull public android.os.BatterySaverPolicyConfig build(); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setAdjustBrightnessFactor(float); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setAdvertiseIsEnabled(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDeferFullBackup(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDeferKeyValueBackup(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDisableAnimation(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDisableAod(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDisableLaunchBoost(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDisableOptionalSensors(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDisableSoundTrigger(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDisableVibration(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setEnableAdjustBrightness(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setEnableDataSaver(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setEnableFirewall(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setEnableNightMode(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setEnableQuickDoze(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setForceAllAppsStandby(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setForceBackgroundCheck(boolean); method @NonNull public android.os.BatterySaverPolicyConfig.Builder setLocationMode(int); } public class Binder implements android.os.IBinder { method public static void setProxyTransactListener(@Nullable android.os.Binder.ProxyTransactListener); } public static interface Binder.ProxyTransactListener { method public void onTransactEnded(@Nullable Object); method @Nullable public Object onTransactStarted(@NonNull android.os.IBinder, int); } public final class BugreportManager { method @RequiresPermission(android.Manifest.permission.DUMP) public void cancelBugreport(); method @RequiresPermission(android.Manifest.permission.DUMP) public void startBugreport(@NonNull android.os.ParcelFileDescriptor, @Nullable android.os.ParcelFileDescriptor, @NonNull android.os.BugreportParams, @NonNull java.util.concurrent.Executor, @NonNull android.os.BugreportManager.BugreportCallback); } public abstract static class BugreportManager.BugreportCallback { ctor public BugreportManager.BugreportCallback(); method public void onError(int); method public void onFinished(); method public void onProgress(@FloatRange(from=0.0f, to=100.0f) float); field public static final int BUGREPORT_ERROR_ANOTHER_REPORT_IN_PROGRESS = 5; // 0x5 field public static final int BUGREPORT_ERROR_INVALID_INPUT = 1; // 0x1 field public static final int BUGREPORT_ERROR_RUNTIME = 2; // 0x2 field public static final int BUGREPORT_ERROR_USER_CONSENT_TIMED_OUT = 4; // 0x4 field public static final int BUGREPORT_ERROR_USER_DENIED_CONSENT = 3; // 0x3 } public final class BugreportParams { ctor public BugreportParams(int); method public int getMode(); field public static final int BUGREPORT_MODE_FULL = 0; // 0x0 field public static final int BUGREPORT_MODE_INTERACTIVE = 1; // 0x1 field public static final int BUGREPORT_MODE_REMOTE = 2; // 0x2 field public static final int BUGREPORT_MODE_TELEPHONY = 4; // 0x4 field public static final int BUGREPORT_MODE_WEAR = 3; // 0x3 field public static final int BUGREPORT_MODE_WIFI = 5; // 0x5 } public static class Build.VERSION { field @NonNull public static final String PREVIEW_SDK_FINGERPRINT; } public final class ConfigUpdate { field public static final String ACTION_UPDATE_CARRIER_ID_DB = "android.os.action.UPDATE_CARRIER_ID_DB"; field public static final String ACTION_UPDATE_CARRIER_PROVISIONING_URLS = "android.intent.action.UPDATE_CARRIER_PROVISIONING_URLS"; field public static final String ACTION_UPDATE_CONVERSATION_ACTIONS = "android.intent.action.UPDATE_CONVERSATION_ACTIONS"; field public static final String ACTION_UPDATE_CT_LOGS = "android.intent.action.UPDATE_CT_LOGS"; field public static final String ACTION_UPDATE_INTENT_FIREWALL = "android.intent.action.UPDATE_INTENT_FIREWALL"; field public static final String ACTION_UPDATE_LANG_ID = "android.intent.action.UPDATE_LANG_ID"; field public static final String ACTION_UPDATE_NETWORK_WATCHLIST = "android.intent.action.UPDATE_NETWORK_WATCHLIST"; field public static final String ACTION_UPDATE_PINS = "android.intent.action.UPDATE_PINS"; field public static final String ACTION_UPDATE_SMART_SELECTION = "android.intent.action.UPDATE_SMART_SELECTION"; field public static final String ACTION_UPDATE_SMS_SHORT_CODES = "android.intent.action.UPDATE_SMS_SHORT_CODES"; } public class Environment { method @NonNull public static java.io.File getOdmDirectory(); method @NonNull public static java.io.File getOemDirectory(); method @NonNull public static java.io.File getProductDirectory(); method @NonNull public static java.io.File getProductServicesDirectory(); method @NonNull public static java.io.File getVendorDirectory(); } public class HidlSupport { method public static boolean deepEquals(Object, Object); method public static int deepHashCode(Object); method public static int getPidIfSharable(); method public static boolean interfacesEqual(android.os.IHwInterface, Object); } public abstract class HwBinder implements android.os.IHwBinder { ctor public HwBinder(); method public static final void configureRpcThreadpool(long, boolean); method public static void enableInstrumentation(); method public static final android.os.IHwBinder getService(String, String) throws java.util.NoSuchElementException, android.os.RemoteException; method public static final android.os.IHwBinder getService(String, String, boolean) throws java.util.NoSuchElementException, android.os.RemoteException; method public static final void joinRpcThreadpool(); method public abstract void onTransact(int, android.os.HwParcel, android.os.HwParcel, int) throws android.os.RemoteException; method public final void registerService(String) throws android.os.RemoteException; method public final void transact(int, android.os.HwParcel, android.os.HwParcel, int) throws android.os.RemoteException; } public class HwBlob { ctor public HwBlob(int); method public final void copyToBoolArray(long, boolean[], int); method public final void copyToDoubleArray(long, double[], int); method public final void copyToFloatArray(long, float[], int); method public final void copyToInt16Array(long, short[], int); method public final void copyToInt32Array(long, int[], int); method public final void copyToInt64Array(long, long[], int); method public final void copyToInt8Array(long, byte[], int); method public final boolean getBool(long); method public final double getDouble(long); method public final float getFloat(long); method public final short getInt16(long); method public final int getInt32(long); method public final long getInt64(long); method public final byte getInt8(long); method public final String getString(long); method public final long handle(); method public final void putBlob(long, android.os.HwBlob); method public final void putBool(long, boolean); method public final void putBoolArray(long, boolean[]); method public final void putDouble(long, double); method public final void putDoubleArray(long, double[]); method public final void putFloat(long, float); method public final void putFloatArray(long, float[]); method public final void putInt16(long, short); method public final void putInt16Array(long, short[]); method public final void putInt32(long, int); method public final void putInt32Array(long, int[]); method public final void putInt64(long, long); method public final void putInt64Array(long, long[]); method public final void putInt8(long, byte); method public final void putInt8Array(long, byte[]); method public final void putNativeHandle(long, @Nullable android.os.NativeHandle); method public final void putString(long, String); method public static Boolean[] wrapArray(@NonNull boolean[]); method public static Long[] wrapArray(@NonNull long[]); method public static Byte[] wrapArray(@NonNull byte[]); method public static Short[] wrapArray(@NonNull short[]); method public static Integer[] wrapArray(@NonNull int[]); method public static Float[] wrapArray(@NonNull float[]); method public static Double[] wrapArray(@NonNull double[]); } public class HwParcel { ctor public HwParcel(); method public final void enforceInterface(String); method public final boolean readBool(); method public final java.util.ArrayList
readBoolVector(); method public final android.os.HwBlob readBuffer(long); method public final double readDouble(); method public final java.util.ArrayList
readDoubleVector(); method public final android.os.HwBlob readEmbeddedBuffer(long, long, long, boolean); method @Nullable public final android.os.NativeHandle readEmbeddedNativeHandle(long, long); method public final float readFloat(); method public final java.util.ArrayList
readFloatVector(); method public final short readInt16(); method public final java.util.ArrayList
readInt16Vector(); method public final int readInt32(); method public final java.util.ArrayList
readInt32Vector(); method public final long readInt64(); method public final java.util.ArrayList
readInt64Vector(); method public final byte readInt8(); method public final java.util.ArrayList
readInt8Vector(); method @Nullable public final android.os.NativeHandle readNativeHandle(); method @NonNull public final java.util.ArrayList
readNativeHandleVector(); method public final String readString(); method public final java.util.ArrayList
readStringVector(); method public final android.os.IHwBinder readStrongBinder(); method public final void release(); method public final void releaseTemporaryStorage(); method public final void send(); method public final void verifySuccess(); method public final void writeBool(boolean); method public final void writeBoolVector(java.util.ArrayList
); method public final void writeBuffer(android.os.HwBlob); method public final void writeDouble(double); method public final void writeDoubleVector(java.util.ArrayList
); method public final void writeFloat(float); method public final void writeFloatVector(java.util.ArrayList
); method public final void writeInt16(short); method public final void writeInt16Vector(java.util.ArrayList
); method public final void writeInt32(int); method public final void writeInt32Vector(java.util.ArrayList
); method public final void writeInt64(long); method public final void writeInt64Vector(java.util.ArrayList
); method public final void writeInt8(byte); method public final void writeInt8Vector(java.util.ArrayList
); method public final void writeInterfaceToken(String); method public final void writeNativeHandle(@Nullable android.os.NativeHandle); method public final void writeNativeHandleVector(@NonNull java.util.ArrayList
); method public final void writeStatus(int); method public final void writeString(String); method public final void writeStringVector(java.util.ArrayList
); method public final void writeStrongBinder(android.os.IHwBinder); field public static final int STATUS_SUCCESS = 0; // 0x0 } @IntDef(prefix={"STATUS_"}, value={android.os.HwParcel.STATUS_SUCCESS}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface HwParcel.Status { } public interface IHwBinder { method public boolean linkToDeath(android.os.IHwBinder.DeathRecipient, long); method public android.os.IHwInterface queryLocalInterface(String); method public void transact(int, android.os.HwParcel, android.os.HwParcel, int) throws android.os.RemoteException; method public boolean unlinkToDeath(android.os.IHwBinder.DeathRecipient); } public static interface IHwBinder.DeathRecipient { method public void serviceDied(long); } public interface IHwInterface { method public android.os.IHwBinder asBinder(); } public class IncidentManager { method @RequiresPermission(android.Manifest.permission.APPROVE_INCIDENT_REPORTS) public void approveReport(android.net.Uri); method @RequiresPermission("android.permission.REQUEST_INCIDENT_REPORT_APPROVAL") public void cancelAuthorization(android.os.IncidentManager.AuthListener); method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void deleteIncidentReports(android.net.Uri); method @RequiresPermission(android.Manifest.permission.APPROVE_INCIDENT_REPORTS) public void denyReport(android.net.Uri); method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) @Nullable public android.os.IncidentManager.IncidentReport getIncidentReport(android.net.Uri); method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) @NonNull public java.util.List
getIncidentReportList(String); method @RequiresPermission(android.Manifest.permission.APPROVE_INCIDENT_REPORTS) public java.util.List
getPendingReports(); method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void reportIncident(android.os.IncidentReportArgs); method @RequiresPermission("android.permission.REQUEST_INCIDENT_REPORT_APPROVAL") public void requestAuthorization(int, String, int, android.os.IncidentManager.AuthListener); field public static final int FLAG_CONFIRMATION_DIALOG = 1; // 0x1 field public static final int PRIVACY_POLICY_AUTO = 200; // 0xc8 field public static final int PRIVACY_POLICY_EXPLICIT = 100; // 0x64 field public static final int PRIVACY_POLICY_LOCAL = 0; // 0x0 } public static class IncidentManager.AuthListener { ctor public IncidentManager.AuthListener(); method public void onReportApproved(); method public void onReportDenied(); } public static class IncidentManager.IncidentReport implements java.io.Closeable android.os.Parcelable { ctor public IncidentManager.IncidentReport(android.os.Parcel); method public void close(); method public int describeContents(); method public java.io.InputStream getInputStream() throws java.io.IOException; method public long getPrivacyPolicy(); method public long getTimestamp(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public static class IncidentManager.PendingReport { ctor public IncidentManager.PendingReport(@NonNull android.net.Uri); method public int getFlags(); method @NonNull public String getRequestingPackage(); method public long getTimestamp(); method @NonNull public android.net.Uri getUri(); } public final class IncidentReportArgs implements android.os.Parcelable { ctor public IncidentReportArgs(); ctor public IncidentReportArgs(android.os.Parcel); method public void addHeader(byte[]); method public void addSection(int); method public boolean containsSection(int); method public int describeContents(); method public boolean isAll(); method public void readFromParcel(android.os.Parcel); method public int sectionCount(); method public void setAll(boolean); method public void setPrivacyPolicy(int); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator
CREATOR; } public final class NativeHandle implements java.io.Closeable { ctor public NativeHandle(); ctor public NativeHandle(@NonNull java.io.FileDescriptor, boolean); ctor public NativeHandle(@NonNull java.io.FileDescriptor[], @NonNull int[], boolean); method public void close() throws java.io.IOException; method @NonNull public android.os.NativeHandle dup() throws java.io.IOException; method @NonNull public java.io.FileDescriptor getFileDescriptor(); method @NonNull public java.io.FileDescriptor[] getFileDescriptors(); method @NonNull public int[] getInts(); method public boolean hasSingleFileDescriptor(); } public final class PowerManager { method @RequiresPermission(allOf={android.Manifest.permission.READ_DREAM_STATE, android.Manifest.permission.WRITE_DREAM_STATE}) public void dream(long); method @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public boolean forceSuspend(); method @RequiresPermission(android.Manifest.permission.POWER_SAVER) public int getPowerSaveModeTrigger(); method @RequiresPermission(anyOf={android.Manifest.permission.DEVICE_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setAdaptivePowerSaveEnabled(boolean); method @RequiresPermission(anyOf={android.Manifest.permission.DEVICE_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setAdaptivePowerSavePolicy(@NonNull android.os.BatterySaverPolicyConfig); method @RequiresPermission(android.Manifest.permission.POWER_SAVER) public boolean setDynamicPowerSaveHint(boolean, int); method @RequiresPermission(anyOf={android.Manifest.permission.DEVICE_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setPowerSaveModeEnabled(boolean); method @RequiresPermission(anyOf={android.Manifest.permission.DEVICE_POWER, android.Manifest.permission.USER_ACTIVITY}) public void userActivity(long, int, int); field public static final int POWER_SAVE_MODE_TRIGGER_DYNAMIC = 1; // 0x1 field public static final int POWER_SAVE_MODE_TRIGGER_PERCENTAGE = 0; // 0x0 field public static final int USER_ACTIVITY_EVENT_ACCESSIBILITY = 3; // 0x3 field public static final int USER_ACTIVITY_EVENT_BUTTON = 1; // 0x1 field public static final int USER_ACTIVITY_EVENT_OTHER = 0; // 0x0 field public static final int USER_ACTIVITY_EVENT_TOUCH = 2; // 0x2 field public static final int USER_ACTIVITY_FLAG_INDIRECT = 2; // 0x2 field public static final int USER_ACTIVITY_FLAG_NO_CHANGE_LIGHTS = 1; // 0x1 } public class RecoverySystem { method @RequiresPermission(android.Manifest.permission.RECOVERY) public static void cancelScheduledUpdate(android.content.Context) throws java.io.IOException; method @RequiresPermission(android.Manifest.permission.RECOVERY) public static void installPackage(android.content.Context, java.io.File, boolean) throws java.io.IOException; method @RequiresPermission(android.Manifest.permission.RECOVERY) public static void processPackage(android.content.Context, java.io.File, android.os.RecoverySystem.ProgressListener, android.os.Handler) throws java.io.IOException; method @RequiresPermission(android.Manifest.permission.RECOVERY) public static void processPackage(android.content.Context, java.io.File, android.os.RecoverySystem.ProgressListener) throws java.io.IOException; method @RequiresPermission(allOf={android.Manifest.permission.RECOVERY, android.Manifest.permission.REBOOT}) public static void rebootWipeAb(android.content.Context, java.io.File, String) throws java.io.IOException; method @RequiresPermission(android.Manifest.permission.RECOVERY) public static void scheduleUpdateOnBoot(android.content.Context, java.io.File) throws java.io.IOException; method public static boolean verifyPackageCompatibility(java.io.File) throws java.io.IOException; } public final class RemoteCallback implements android.os.Parcelable { ctor public RemoteCallback(android.os.RemoteCallback.OnResultListener); ctor public RemoteCallback(@NonNull android.os.RemoteCallback.OnResultListener, @Nullable android.os.Handler); method public int describeContents(); method public void sendResult(@Nullable android.os.Bundle); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator