1// Signature format: 2.0 2package android { 3 4 public static final class Manifest.permission { 5 field @FlaggedApi("com.android.server.accessibility.motion_event_observing") public static final String ACCESSIBILITY_MOTION_EVENT_OBSERVING = "android.permission.ACCESSIBILITY_MOTION_EVENT_OBSERVING"; 6 field public static final String ACCESS_NOTIFICATIONS = "android.permission.ACCESS_NOTIFICATIONS"; 7 field public static final String ACTIVITY_EMBEDDING = "android.permission.ACTIVITY_EMBEDDING"; 8 field public static final String ADJUST_RUNTIME_PERMISSIONS_POLICY = "android.permission.ADJUST_RUNTIME_PERMISSIONS_POLICY"; 9 field public static final String APPROVE_INCIDENT_REPORTS = "android.permission.APPROVE_INCIDENT_REPORTS"; 10 field public static final String BACKGROUND_CAMERA = "android.permission.BACKGROUND_CAMERA"; 11 field public static final String BIND_CELL_BROADCAST_SERVICE = "android.permission.BIND_CELL_BROADCAST_SERVICE"; 12 field public static final String BRIGHTNESS_SLIDER_USAGE = "android.permission.BRIGHTNESS_SLIDER_USAGE"; 13 field public static final String BROADCAST_CLOSE_SYSTEM_DIALOGS = "android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS"; 14 field public static final String CHANGE_APP_IDLE_STATE = "android.permission.CHANGE_APP_IDLE_STATE"; 15 field public static final String CLEAR_APP_USER_DATA = "android.permission.CLEAR_APP_USER_DATA"; 16 field public static final String CLEAR_FREEZE_PERIOD = "android.permission.CLEAR_FREEZE_PERIOD"; 17 field public static final String CONFIGURE_DISPLAY_BRIGHTNESS = "android.permission.CONFIGURE_DISPLAY_BRIGHTNESS"; 18 field public static final String CONTROL_DEVICE_LIGHTS = "android.permission.CONTROL_DEVICE_LIGHTS"; 19 field public static final String CONTROL_DEVICE_STATE = "android.permission.CONTROL_DEVICE_STATE"; 20 field public static final String DELETE_STAGED_HEALTH_CONNECT_REMOTE_DATA = "android.permission.DELETE_STAGED_HEALTH_CONNECT_REMOTE_DATA"; 21 field public static final String FORCE_DEVICE_POLICY_MANAGER_LOGS = "android.permission.FORCE_DEVICE_POLICY_MANAGER_LOGS"; 22 field public static final String FORCE_STOP_PACKAGES = "android.permission.FORCE_STOP_PACKAGES"; 23 field public static final String GRANT_RUNTIME_PERMISSIONS = "android.permission.GRANT_RUNTIME_PERMISSIONS"; 24 field public static final String INSTALL_TEST_ONLY_PACKAGE = "android.permission.INSTALL_TEST_ONLY_PACKAGE"; 25 field public static final String KEEP_UNINSTALLED_PACKAGES = "android.permission.KEEP_UNINSTALLED_PACKAGES"; 26 field public static final String MAKE_UID_VISIBLE = "android.permission.MAKE_UID_VISIBLE"; 27 field @Deprecated public static final String MANAGE_ACTIVITY_STACKS = "android.permission.MANAGE_ACTIVITY_STACKS"; 28 field public static final String MANAGE_ACTIVITY_TASKS = "android.permission.MANAGE_ACTIVITY_TASKS"; 29 field public static final String MANAGE_APP_OPS_MODES = "android.permission.MANAGE_APP_OPS_MODES"; 30 field public static final String MANAGE_CRATES = "android.permission.MANAGE_CRATES"; 31 field public static final String MANAGE_NOTIFICATION_LISTENERS = "android.permission.MANAGE_NOTIFICATION_LISTENERS"; 32 field public static final String MANAGE_ROLLBACKS = "android.permission.MANAGE_ROLLBACKS"; 33 field public static final String MANAGE_TOAST_RATE_LIMITING = "android.permission.MANAGE_TOAST_RATE_LIMITING"; 34 field public static final String MODIFY_HDR_CONVERSION_MODE = "android.permission.MODIFY_HDR_CONVERSION_MODE"; 35 field public static final String MODIFY_REFRESH_RATE_SWITCHING_TYPE = "android.permission.MODIFY_REFRESH_RATE_SWITCHING_TYPE"; 36 field public static final String MODIFY_USER_PREFERRED_DISPLAY_MODE = "android.permission.MODIFY_USER_PREFERRED_DISPLAY_MODE"; 37 field public static final String NETWORK_SETTINGS = "android.permission.NETWORK_SETTINGS"; 38 field public static final String NETWORK_STACK = "android.permission.NETWORK_STACK"; 39 field public static final String OVERRIDE_DISPLAY_MODE_REQUESTS = "android.permission.OVERRIDE_DISPLAY_MODE_REQUESTS"; 40 field public static final String QUERY_AUDIO_STATE = "android.permission.QUERY_AUDIO_STATE"; 41 field public static final String READ_CELL_BROADCASTS = "android.permission.READ_CELL_BROADCASTS"; 42 field public static final String READ_PRIVILEGED_PHONE_STATE = "android.permission.READ_PRIVILEGED_PHONE_STATE"; 43 field public static final String READ_WRITE_SYNC_DISABLED_MODE_CONFIG = "android.permission.READ_WRITE_SYNC_DISABLED_MODE_CONFIG"; 44 field public static final String RECORD_BACKGROUND_AUDIO = "android.permission.RECORD_BACKGROUND_AUDIO"; 45 field @FlaggedApi("android.permission.flags.sensitive_notification_app_protection") public static final String RECORD_SENSITIVE_CONTENT = "android.permission.RECORD_SENSITIVE_CONTENT"; 46 field public static final String REMAP_MODIFIER_KEYS = "android.permission.REMAP_MODIFIER_KEYS"; 47 field public static final String REMOVE_TASKS = "android.permission.REMOVE_TASKS"; 48 field public static final String REQUEST_UNIQUE_ID_ATTESTATION = "android.permission.REQUEST_UNIQUE_ID_ATTESTATION"; 49 field public static final String RESET_APP_ERRORS = "android.permission.RESET_APP_ERRORS"; 50 field public static final String REVOKE_POST_NOTIFICATIONS_WITHOUT_KILL = "android.permission.REVOKE_POST_NOTIFICATIONS_WITHOUT_KILL"; 51 field public static final String SET_AND_VERIFY_LOCKSCREEN_CREDENTIALS = "android.permission.SET_AND_VERIFY_LOCKSCREEN_CREDENTIALS"; 52 field public static final String SET_GAME_SERVICE = "android.permission.SET_GAME_SERVICE"; 53 field public static final String SET_KEYBOARD_LAYOUT = "android.permission.SET_KEYBOARD_LAYOUT"; 54 field public static final String START_ACTIVITIES_FROM_SDK_SANDBOX = "android.permission.START_ACTIVITIES_FROM_SDK_SANDBOX"; 55 field public static final String SUSPEND_APPS = "android.permission.SUSPEND_APPS"; 56 field public static final String TEST_BIOMETRIC = "android.permission.TEST_BIOMETRIC"; 57 field public static final String TEST_INPUT_METHOD = "android.permission.TEST_INPUT_METHOD"; 58 field public static final String TEST_MANAGE_ROLLBACKS = "android.permission.TEST_MANAGE_ROLLBACKS"; 59 field public static final String UPGRADE_RUNTIME_PERMISSIONS = "android.permission.UPGRADE_RUNTIME_PERMISSIONS"; 60 field public static final String WRITE_ALLOWLISTED_DEVICE_CONFIG = "android.permission.WRITE_ALLOWLISTED_DEVICE_CONFIG"; 61 field public static final String WRITE_DEVICE_CONFIG = "android.permission.WRITE_DEVICE_CONFIG"; 62 field @Deprecated public static final String WRITE_MEDIA_STORAGE = "android.permission.WRITE_MEDIA_STORAGE"; 63 field public static final String WRITE_OBB = "android.permission.WRITE_OBB"; 64 } 65 66 public static final class Manifest.permission_group { 67 field public static final String UNDEFINED = "android.permission-group.UNDEFINED"; 68 } 69 70 public static final class R.attr { 71 field public static final int requestForegroundServiceExemption = 16844362; // 0x101064a 72 } 73 74 public static final class R.bool { 75 field public static final int config_assistantOnTopOfDream = 17891333; // 0x1110005 76 field public static final int config_perDisplayFocusEnabled = 17891332; // 0x1110004 77 field public static final int config_preventImeStartupUnlessTextEditor = 17891335; // 0x1110007 78 field public static final int config_remoteInsetsControllerControlsSystemBars = 17891334; // 0x1110006 79 } 80 81 public static final class R.string { 82 field public static final int config_defaultAssistant = 17039393; // 0x1040021 83 field public static final int config_defaultDialer = 17039395; // 0x1040023 84 field public static final int config_systemAutomotiveCalendarSyncManager = 17039423; // 0x104003f 85 field public static final int config_systemAutomotiveCluster = 17039400; // 0x1040028 86 field public static final int config_systemAutomotiveProjection = 17039401; // 0x1040029 87 field public static final int config_systemGallery = 17039399; // 0x1040027 88 } 89 90} 91 92package android.accessibilityservice { 93 94 public final class AccessibilityGestureEvent implements android.os.Parcelable { 95 ctor public AccessibilityGestureEvent(int, int); 96 } 97 98 public abstract class AccessibilityService extends android.app.Service { 99 field public static final int ACCESSIBILITY_TAKE_SCREENSHOT_REQUEST_INTERVAL_TIMES_MS = 333; // 0x14d 100 } 101 102 public class AccessibilityServiceInfo implements android.os.Parcelable { 103 method @NonNull public android.content.ComponentName getComponentName(); 104 method @FlaggedApi("android.view.accessibility.motion_event_observing") public int getObservedMotionEventSources(); 105 method @FlaggedApi("android.view.accessibility.motion_event_observing") public void setObservedMotionEventSources(int); 106 } 107 108 @FlaggedApi("android.view.accessibility.braille_display_hid") public interface BrailleDisplayController { 109 method @FlaggedApi("android.view.accessibility.braille_display_hid") @RequiresPermission(android.Manifest.permission.MANAGE_ACCESSIBILITY) public static void setTestBrailleDisplayData(@NonNull android.accessibilityservice.AccessibilityService, @NonNull java.util.List<android.os.Bundle>); 110 field @FlaggedApi("android.view.accessibility.braille_display_hid") public static final String TEST_BRAILLE_DISPLAY_BUS_BLUETOOTH = "BUS_BLUETOOTH"; 111 field @FlaggedApi("android.view.accessibility.braille_display_hid") public static final String TEST_BRAILLE_DISPLAY_DESCRIPTOR = "DESCRIPTOR"; 112 field @FlaggedApi("android.view.accessibility.braille_display_hid") public static final String TEST_BRAILLE_DISPLAY_HIDRAW_PATH = "HIDRAW_PATH"; 113 field @FlaggedApi("android.view.accessibility.braille_display_hid") public static final String TEST_BRAILLE_DISPLAY_UNIQUE_ID = "UNIQUE_ID"; 114 } 115 116} 117 118package android.animation { 119 120 public abstract class Animator implements java.lang.Cloneable { 121 method public static long getBackgroundPauseDelay(); 122 method public static void setAnimatorPausingEnabled(boolean); 123 method public static void setBackgroundPauseDelay(long); 124 } 125 126 public class ValueAnimator extends android.animation.Animator { 127 method @MainThread public static void setDurationScale(@FloatRange(from=0) float); 128 } 129 130} 131 132package android.app { 133 134 @UiContext 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 { 135 method public final boolean addDumpable(@NonNull android.util.Dumpable); 136 method public void dumpInternal(@NonNull String, @Nullable java.io.FileDescriptor, @NonNull java.io.PrintWriter, @Nullable String[]); 137 method public void onMovedToDisplay(int, android.content.res.Configuration); 138 field public static final String DUMP_ARG_DUMP_DUMPABLE = "--dump-dumpable"; 139 field public static final String DUMP_ARG_LIST_DUMPABLES = "--list-dumpables"; 140 } 141 142 public class ActivityManager { 143 method @RequiresPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER) public void addHomeVisibilityListener(@NonNull java.util.concurrent.Executor, @NonNull android.app.HomeVisibilityListener); 144 method public void alwaysShowUnsupportedCompileSdkWarning(android.content.ComponentName); 145 method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public int[] getDisplayIdsForStartingVisibleBackgroundUsers(); 146 method public long getTotalRam(); 147 method @NonNull @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int[] getUidFrozenState(@NonNull int[]); 148 method @RequiresPermission(allOf={android.Manifest.permission.PACKAGE_USAGE_STATS, android.Manifest.permission.INTERACT_ACROSS_USERS_FULL}, conditional=true) public int getUidProcessCapabilities(int); 149 method @RequiresPermission(allOf={android.Manifest.permission.PACKAGE_USAGE_STATS, android.Manifest.permission.INTERACT_ACROSS_USERS_FULL}, conditional=true) public int getUidProcessState(int); 150 method public void holdLock(android.os.IBinder, int); 151 method public static boolean isHighEndGfx(); 152 method public void notifySystemPropertiesChanged(); 153 method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public void registerUidFrozenStateChangedCallback(@NonNull java.util.concurrent.Executor, @NonNull android.app.ActivityManager.UidFrozenStateChangedCallback); 154 method @RequiresPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER) public void removeHomeVisibilityListener(@NonNull android.app.HomeVisibilityListener); 155 method @RequiresPermission(android.Manifest.permission.RESET_APP_ERRORS) public void resetAppErrors(); 156 method public static void resumeAppSwitches() throws android.os.RemoteException; 157 method @RequiresPermission(android.Manifest.permission.CHANGE_CONFIGURATION) public void scheduleApplicationInfoChanged(java.util.List<java.lang.String>, int); 158 method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public void setStopUserOnSwitch(int); 159 method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public boolean startUserInBackgroundVisibleOnDisplay(int, int); 160 method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public boolean stopUser(int, boolean); 161 method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public void unregisterUidFrozenStateChangedCallback(@NonNull android.app.ActivityManager.UidFrozenStateChangedCallback); 162 method @RequiresPermission(android.Manifest.permission.CHANGE_CONFIGURATION) public boolean updateMccMncConfiguration(@NonNull String, @NonNull String); 163 method @RequiresPermission(android.Manifest.permission.DUMP) public void waitForBroadcastIdle(); 164 field public static final long LOCK_DOWN_CLOSE_SYSTEM_DIALOGS = 174664365L; // 0xa692aadL 165 field public static final int PROCESS_CAPABILITY_ALL_IMPLICIT = 6; // 0x6 166 field public static final int PROCESS_CAPABILITY_POWER_RESTRICTED_NETWORK = 8; // 0x8 167 field public static final int PROCESS_CAPABILITY_USER_RESTRICTED_NETWORK = 32; // 0x20 168 field public static final int PROCESS_STATE_BOUND_FOREGROUND_SERVICE = 5; // 0x5 169 field public static final int PROCESS_STATE_FOREGROUND_SERVICE = 4; // 0x4 170 field public static final int PROCESS_STATE_TOP = 2; // 0x2 171 field public static final int STOP_USER_ON_SWITCH_DEFAULT = -1; // 0xffffffff 172 field public static final int STOP_USER_ON_SWITCH_FALSE = 0; // 0x0 173 field public static final int STOP_USER_ON_SWITCH_TRUE = 1; // 0x1 174 } 175 176 public static class ActivityManager.RunningAppProcessInfo implements android.os.Parcelable { 177 field public static final int IMPORTANCE_CANT_SAVE_STATE_PRE_26 = 170; // 0xaa 178 } 179 180 public static class ActivityManager.TaskDescription implements android.os.Parcelable { 181 method public String getIconFilename(); 182 method public int getIconResource(); 183 method @Nullable public String getIconResourcePackage(); 184 } 185 186 public static interface ActivityManager.UidFrozenStateChangedCallback { 187 method public void onUidFrozenStateChanged(@NonNull int[], @NonNull int[]); 188 field public static final int UID_FROZEN_STATE_FROZEN = 1; // 0x1 189 field public static final int UID_FROZEN_STATE_UNFROZEN = 2; // 0x2 190 } 191 192 public class ActivityOptions extends android.app.ComponentOptions { 193 method public boolean isEligibleForLegacyPermissionPrompt(); 194 method @NonNull public static android.app.ActivityOptions makeCustomAnimation(@NonNull android.content.Context, int, int, int, @Nullable android.os.Handler, @Nullable android.app.ActivityOptions.OnAnimationStartedListener, @Nullable android.app.ActivityOptions.OnAnimationFinishedListener); 195 method @NonNull @RequiresPermission(android.Manifest.permission.START_TASKS_FROM_RECENTS) public static android.app.ActivityOptions makeCustomTaskAnimation(@NonNull android.content.Context, int, int, @Nullable android.os.Handler, @Nullable android.app.ActivityOptions.OnAnimationStartedListener, @Nullable android.app.ActivityOptions.OnAnimationFinishedListener); 196 method public void setEligibleForLegacyPermissionPrompt(boolean); 197 method public static void setExitTransitionTimeout(long); 198 method public void setLaunchActivityType(int); 199 method public void setLaunchCookie(@NonNull android.app.ActivityOptions.LaunchCookie); 200 method public void setLaunchTaskDisplayAreaFeatureId(int); 201 method public void setLaunchWindowingMode(int); 202 method public void setLaunchedFromBubble(boolean); 203 method public void setTaskAlwaysOnTop(boolean); 204 method public void setTaskOverlay(boolean, boolean); 205 } 206 207 public static final class ActivityOptions.LaunchCookie implements android.os.Parcelable { 208 ctor public ActivityOptions.LaunchCookie(); 209 method public int describeContents(); 210 method public void writeToParcel(@NonNull android.os.Parcel, int); 211 field @NonNull public static final android.os.Parcelable.Creator<android.app.ActivityOptions.LaunchCookie> CREATOR; 212 } 213 214 public static interface ActivityOptions.OnAnimationFinishedListener { 215 method public void onAnimationFinished(long); 216 } 217 218 public static interface ActivityOptions.OnAnimationStartedListener { 219 method public void onAnimationStarted(long); 220 } 221 222 public class ActivityTaskManager { 223 method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public void clearLaunchParamsForPackages(java.util.List<java.lang.String>); 224 method public static boolean currentUiModeSupportsErrorDialogs(@NonNull android.content.Context); 225 method public static int getMaxNumPictureInPictureActions(@NonNull android.content.Context); 226 method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public void moveTaskToRootTask(int, int, boolean); 227 method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public void removeRootTasksInWindowingModes(@NonNull int[]); 228 method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public void removeRootTasksWithActivityTypes(@NonNull int[]); 229 method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public boolean removeTask(int); 230 method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public void resizeTask(int, android.graphics.Rect); 231 method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public void startSystemLockTaskMode(int); 232 method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public void stopSystemLockTaskMode(); 233 method public static boolean supportsMultiWindow(android.content.Context); 234 method public static boolean supportsSplitScreenMultiWindow(android.content.Context); 235 method @RequiresPermission("android.permission.UPDATE_LOCK_TASK_PACKAGES") public void updateLockTaskPackages(@NonNull android.content.Context, @NonNull String[]); 236 field public static final int DEFAULT_MINIMAL_SPLIT_SCREEN_DISPLAY_SIZE_DP = 440; // 0x1b8 237 field public static final int INVALID_STACK_ID = -1; // 0xffffffff 238 } 239 240 public class AlarmManager { 241 method public boolean hasScheduleExactAlarm(@NonNull String, int); 242 } 243 244 public class AppDetailsActivity extends android.app.Activity { 245 ctor public AppDetailsActivity(); 246 } 247 248 public class AppOpsManager { 249 method @RequiresPermission("android.permission.MANAGE_APPOPS") public void addHistoricalOps(@NonNull android.app.AppOpsManager.HistoricalOps); 250 method @RequiresPermission("android.permission.MANAGE_APPOPS") public void clearHistory(); 251 method public static void collectNotedOpSync(@NonNull android.app.SyncNotedAppOp); 252 method @RequiresPermission("android.permission.MANAGE_APPOPS") public void getHistoricalOpsFromDiskRaw(@NonNull android.app.AppOpsManager.HistoricalOpsRequest, @Nullable java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.app.AppOpsManager.HistoricalOps>); 253 method public static int getNumOps(); 254 method public boolean isOperationActive(int, int, String); 255 method public int noteOpNoThrow(int, @NonNull android.content.AttributionSource, @Nullable String); 256 method @RequiresPermission("android.permission.MANAGE_APPOPS") public void offsetHistory(long); 257 method public static String opToPermission(int); 258 method public static int permissionToOpCode(String); 259 method @RequiresPermission("android.permission.MANAGE_APPOPS") public void rebootHistory(long); 260 method @RequiresPermission("android.permission.MANAGE_APPOPS") public void reloadNonHistoricalState(); 261 method @RequiresPermission("android.permission.MANAGE_APPOPS") public void resetHistoryParameters(); 262 method @RequiresPermission("android.permission.MANAGE_APPOPS") public void resetPackageOpsNoHistory(@NonNull String); 263 method @RequiresPermission("android.permission.MANAGE_APPOPS") public void setHistoryParameters(int, long, int); 264 method @RequiresPermission(android.Manifest.permission.MANAGE_APP_OPS_MODES) public void setMode(int, int, String, int); 265 method public static int strOpToOp(@NonNull String); 266 field public static final int ATTRIBUTION_CHAIN_ID_NONE = -1; // 0xffffffff 267 field public static final int ATTRIBUTION_FLAGS_NONE = 0; // 0x0 268 field public static final int ATTRIBUTION_FLAG_ACCESSOR = 1; // 0x1 269 field public static final int ATTRIBUTION_FLAG_INTERMEDIARY = 2; // 0x2 270 field public static final int ATTRIBUTION_FLAG_RECEIVER = 4; // 0x4 271 field public static final int HISTORICAL_MODE_DISABLED = 0; // 0x0 272 field public static final int HISTORICAL_MODE_ENABLED_ACTIVE = 1; // 0x1 273 field public static final int HISTORICAL_MODE_ENABLED_PASSIVE = 2; // 0x2 274 field public static final int HISTORY_FLAGS_ALL = 3; // 0x3 275 field public static final int HISTORY_FLAG_AGGREGATE = 1; // 0x1 276 field public static final int HISTORY_FLAG_DISCRETE = 2; // 0x2 277 field public static final String KEY_BG_STATE_SETTLE_TIME = "bg_state_settle_time"; 278 field public static final String KEY_FG_SERVICE_STATE_SETTLE_TIME = "fg_service_state_settle_time"; 279 field public static final String KEY_TOP_STATE_SETTLE_TIME = "top_state_settle_time"; 280 field public static final String OPSTR_ACTIVITY_RECOGNITION = "android:activity_recognition"; 281 field public static final String OPSTR_ACTIVITY_RECOGNITION_SOURCE = "android:activity_recognition_source"; 282 field public static final String OPSTR_MANAGE_ONGOING_CALLS = "android:manage_ongoing_calls"; 283 field public static final String OPSTR_RECORD_AUDIO_HOTWORD = "android:record_audio_hotword"; 284 field public static final String OPSTR_RESERVED_FOR_TESTING = "android:reserved_for_testing"; 285 field public static final String OPSTR_USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER = "android:use_icc_auth_with_device_identifier"; 286 field public static final int OP_COARSE_LOCATION = 0; // 0x0 287 field public static final int OP_RECORD_AUDIO = 27; // 0x1b 288 field public static final int OP_START_FOREGROUND = 76; // 0x4c 289 field public static final int OP_SYSTEM_ALERT_WINDOW = 24; // 0x18 290 field public static final long SECURITY_EXCEPTION_ON_INVALID_ATTRIBUTION_TAG_CHANGE = 151105954L; // 0x901b1a2L 291 } 292 293 public static final class AppOpsManager.HistoricalOps implements android.os.Parcelable { 294 ctor public AppOpsManager.HistoricalOps(long, long); 295 method public void addDiscreteAccess(int, int, @NonNull String, @Nullable String, int, int, long, long); 296 method public void increaseAccessCount(int, int, @NonNull String, @Nullable String, int, int, long); 297 method public void increaseAccessDuration(int, int, @NonNull String, @Nullable String, int, int, long); 298 method public void increaseRejectCount(int, int, @NonNull String, @Nullable String, int, int, long); 299 method public void offsetBeginAndEndTime(long); 300 } 301 302 public static interface AppOpsManager.OnOpActiveChangedListener { 303 method public default void onOpActiveChanged(@NonNull String, int, @NonNull String, @Nullable String, boolean, int, int); 304 } 305 306 public class BroadcastOptions extends android.app.ComponentOptions { 307 ctor public BroadcastOptions(); 308 ctor public BroadcastOptions(@NonNull android.os.Bundle); 309 method @Deprecated public int getMaxManifestReceiverApiLevel(); 310 method public long getTemporaryAppAllowlistDuration(); 311 method @Nullable public String getTemporaryAppAllowlistReason(); 312 method public int getTemporaryAppAllowlistReasonCode(); 313 method public int getTemporaryAppAllowlistType(); 314 method @Deprecated public void setMaxManifestReceiverApiLevel(int); 315 method public boolean testRequireCompatChange(int); 316 field public static final long CHANGE_ALWAYS_DISABLED = 210856463L; // 0xc916a0fL 317 field public static final long CHANGE_ALWAYS_ENABLED = 209888056L; // 0xc82a338L 318 } 319 320 public class ComponentOptions { 321 } 322 323 public class DownloadManager { 324 field public static final String COLUMN_MEDIASTORE_URI = "mediastore_uri"; 325 } 326 327 public class DreamManager { 328 method public boolean areDreamsSupported(); 329 method @RequiresPermission(android.Manifest.permission.READ_DREAM_STATE) public boolean isDreaming(); 330 method public boolean isScreensaverEnabled(); 331 method @RequiresPermission(android.Manifest.permission.WRITE_DREAM_STATE) public void setActiveDream(@Nullable android.content.ComponentName); 332 method @RequiresPermission(android.Manifest.permission.WRITE_DREAM_STATE) public void setDreamOverlay(@Nullable android.content.ComponentName); 333 method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setScreensaverEnabled(boolean); 334 method @RequiresPermission(android.Manifest.permission.WRITE_DREAM_STATE) public void setSystemDreamComponent(@Nullable android.content.ComponentName); 335 method @RequiresPermission(android.Manifest.permission.WRITE_DREAM_STATE) public void startDream(); 336 method @RequiresPermission(android.Manifest.permission.WRITE_DREAM_STATE) public void stopDream(); 337 } 338 339 public final class GameManager { 340 method @RequiresPermission(android.Manifest.permission.MANAGE_GAME_MODE) public int getGameMode(@NonNull String); 341 method @RequiresPermission(android.Manifest.permission.MANAGE_GAME_MODE) public boolean isAngleEnabled(@NonNull String); 342 method public void setGameServiceProvider(@Nullable String); 343 } 344 345 public abstract class HomeVisibilityListener { 346 ctor public HomeVisibilityListener(); 347 method public abstract void onHomeVisibilityChanged(boolean); 348 } 349 350 public class KeyguardManager { 351 method @RequiresPermission(anyOf={android.Manifest.permission.SET_AND_VERIFY_LOCKSCREEN_CREDENTIALS, "android.permission.ACCESS_KEYGUARD_SECURE_STORAGE"}) public boolean checkLock(int, @Nullable byte[]); 352 method @RequiresPermission(anyOf={android.Manifest.permission.SET_AND_VERIFY_LOCKSCREEN_CREDENTIALS, "android.permission.ACCESS_KEYGUARD_SECURE_STORAGE"}) public boolean setLock(int, @Nullable byte[], int, @Nullable byte[]); 353 } 354 355 public class LocaleManager { 356 method public void setSystemLocales(@NonNull android.os.LocaleList); 357 } 358 359 public class Notification implements android.os.Parcelable { 360 method public boolean isUserInitiatedJob(); 361 method public boolean shouldShowForegroundImmediately(); 362 field public static final String EXTRA_MEDIA_REMOTE_DEVICE = "android.mediaRemoteDevice"; 363 field public static final String EXTRA_MEDIA_REMOTE_ICON = "android.mediaRemoteIcon"; 364 field public static final String EXTRA_MEDIA_REMOTE_INTENT = "android.mediaRemoteIntent"; 365 field public static final int FLAG_USER_INITIATED_JOB = 32768; // 0x8000 366 } 367 368 public final class NotificationChannel implements android.os.Parcelable { 369 method public int getOriginalImportance(); 370 method public boolean isImportanceLockedByCriticalDeviceFunction(); 371 method public void lockFields(int); 372 method public void setDeleted(boolean); 373 method public void setDeletedTimeMs(long); 374 method public void setDemoted(boolean); 375 method public void setImportanceLockedByCriticalDeviceFunction(boolean); 376 method public void setImportantConversation(boolean); 377 method public void setOriginalImportance(int); 378 method public void setUserVisibleTaskShown(boolean); 379 } 380 381 public final class NotificationChannelGroup implements android.os.Parcelable { 382 method public int getUserLockedFields(); 383 method public void lockFields(int); 384 method public void setBlocked(boolean); 385 } 386 387 public class NotificationManager { 388 method @FlaggedApi("android.app.modes_api") @NonNull public String addAutomaticZenRule(@NonNull android.app.AutomaticZenRule, boolean); 389 method public void cleanUpCallersAfter(long); 390 method @FlaggedApi("android.app.modes_api") @NonNull public android.service.notification.ZenPolicy getDefaultZenPolicy(); 391 method public android.content.ComponentName getEffectsSuppressor(); 392 method public boolean isNotificationPolicyAccessGrantedForPackage(@NonNull String); 393 method @FlaggedApi("android.app.modes_api") public boolean removeAutomaticZenRule(@NonNull String, boolean); 394 method @RequiresPermission(android.Manifest.permission.MANAGE_NOTIFICATION_LISTENERS) public void setNotificationListenerAccessGranted(@NonNull android.content.ComponentName, boolean, boolean); 395 method @RequiresPermission(android.Manifest.permission.MANAGE_TOAST_RATE_LIMITING) public void setToastRateLimitingEnabled(boolean); 396 method @FlaggedApi("android.app.modes_api") public boolean updateAutomaticZenRule(@NonNull String, @NonNull android.app.AutomaticZenRule, boolean); 397 method public void updateNotificationChannel(@NonNull String, int, @NonNull android.app.NotificationChannel); 398 } 399 400 public static class NotificationManager.Policy implements android.os.Parcelable { 401 method @FlaggedApi("android.app.modes_api") public boolean allowPriorityChannels(); 402 } 403 404 public final class PendingIntent implements android.os.Parcelable { 405 method public boolean addCancelListener(@NonNull java.util.concurrent.Executor, @NonNull android.app.PendingIntent.CancelListener); 406 method @RequiresPermission("android.permission.GET_INTENT_SENDER_INTENT") public boolean intentFilterEquals(@Nullable android.app.PendingIntent); 407 method @NonNull @RequiresPermission("android.permission.GET_INTENT_SENDER_INTENT") public java.util.List<android.content.pm.ResolveInfo> queryIntentComponents(int); 408 method public void removeCancelListener(@NonNull android.app.PendingIntent.CancelListener); 409 field @Deprecated public static final int FLAG_MUTABLE_UNAUDITED = 33554432; // 0x2000000 410 } 411 412 public static interface PendingIntent.CancelListener { 413 method public void onCanceled(@NonNull android.app.PendingIntent); 414 } 415 416 public final class PictureInPictureParams implements android.os.Parcelable { 417 method public float getAspectRatioFloat(); 418 method public float getExpandedAspectRatioFloat(); 419 } 420 421 public final class PictureInPictureUiState implements android.os.Parcelable { 422 ctor public PictureInPictureUiState(boolean); 423 } 424 425 public class PropertyInvalidatedCache<Query, Result> { 426 ctor public PropertyInvalidatedCache(int, @NonNull String, @NonNull String, @NonNull String, @NonNull android.app.PropertyInvalidatedCache.QueryHandler<Query,Result>); 427 method @NonNull public static String createPropertyName(@NonNull String, @NonNull String); 428 method public void disableForCurrentProcess(); 429 method public static void disableForCurrentProcess(@NonNull String); 430 method public static void disableForTestMode(); 431 method public final void disableInstance(); 432 method public final void disableSystemWide(); 433 method public final void forgetDisableLocal(); 434 method public boolean getDisabledState(); 435 method public void invalidateCache(); 436 method public static void invalidateCache(@NonNull String, @NonNull String); 437 method public final boolean isDisabled(); 438 method @Nullable public Result query(@NonNull Query); 439 method public static void setTestMode(boolean); 440 method public void testPropertyName(); 441 field public static final String MODULE_BLUETOOTH = "bluetooth"; 442 field public static final String MODULE_SYSTEM = "system_server"; 443 field public static final String MODULE_TELEPHONY = "telephony"; 444 field public static final String MODULE_TEST = "test"; 445 } 446 447 public abstract static class PropertyInvalidatedCache.QueryHandler<Q, R> { 448 ctor public PropertyInvalidatedCache.QueryHandler(); 449 method @Nullable public abstract R apply(@NonNull Q); 450 method public boolean shouldBypassCache(@NonNull Q); 451 } 452 453 public class StatusBarManager { 454 method public void cancelRequestAddTile(@NonNull String); 455 method public void clickNotification(@Nullable String, int, int, boolean); 456 method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void collapsePanels(); 457 method public void expandNotificationsPanel(); 458 method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public int getLastSystemKey(); 459 method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void handleSystemKey(@NonNull android.view.KeyEvent); 460 method public void sendNotificationFeedback(@Nullable String, @Nullable android.os.Bundle); 461 method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void setExpansionDisabledForSimNetworkLock(boolean); 462 method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void togglePanel(); 463 } 464 465 public static final class StatusBarManager.DisableInfo implements android.os.Parcelable { 466 method public boolean isRotationSuggestionDisabled(); 467 } 468 469 public final class SyncNotedAppOp implements android.os.Parcelable { 470 ctor public SyncNotedAppOp(int, @IntRange(from=0L) int, @Nullable String, @Nullable String); 471 } 472 473 public class TaskInfo { 474 method public boolean containsLaunchCookie(@NonNull android.os.IBinder); 475 method @NonNull public android.content.res.Configuration getConfiguration(); 476 method public int getDisplayId(); 477 method public int getParentTaskId(); 478 method @Nullable public android.app.PictureInPictureParams getPictureInPictureParams(); 479 method @NonNull public android.window.WindowContainerToken getToken(); 480 method public boolean hasParentTask(); 481 method public boolean shouldDockBigOverlays(); 482 } 483 484 public class TimePickerDialog extends android.app.AlertDialog implements android.content.DialogInterface.OnClickListener android.widget.TimePicker.OnTimeChangedListener { 485 method public android.widget.TimePicker getTimePicker(); 486 } 487 488 public final class UiAutomation { 489 method public void addOverridePermissionState(int, @NonNull String, int); 490 method public void clearAllOverridePermissionStates(); 491 method public void clearOverridePermissionStates(int); 492 method public void destroy(); 493 method @NonNull public java.util.Set<java.lang.String> getAdoptedShellPermissions(); 494 method @Deprecated public boolean grantRuntimePermission(String, String, android.os.UserHandle); 495 method public boolean injectInputEvent(@NonNull android.view.InputEvent, boolean, boolean); 496 method public void injectInputEventToInputFilter(@NonNull android.view.InputEvent); 497 method public boolean isNodeInCache(@NonNull android.view.accessibility.AccessibilityNodeInfo); 498 method public void removeOverridePermissionState(int, @NonNull String); 499 method @Deprecated public boolean revokeRuntimePermission(String, String, android.os.UserHandle); 500 method public void syncInputTransactions(); 501 method public void syncInputTransactions(boolean); 502 field @NonNull public static final java.util.Set<java.lang.String> ALL_PERMISSIONS; 503 field public static final int FLAG_NOT_ACCESSIBILITY_TOOL = 4; // 0x4 504 } 505 506 public class UiModeManager { 507 method @FlaggedApi("android.app.modes_api") @RequiresPermission(android.Manifest.permission.MODIFY_DAY_NIGHT_MODE) public int getAttentionModeThemeOverlay(); 508 method public boolean isNightModeLocked(); 509 method public boolean isUiModeLocked(); 510 method @RequiresPermission(value=android.Manifest.permission.TOGGLE_AUTOMOTIVE_PROJECTION, conditional=true) public boolean releaseProjection(int); 511 method @RequiresPermission(value=android.Manifest.permission.TOGGLE_AUTOMOTIVE_PROJECTION, conditional=true) public boolean requestProjection(int); 512 field @FlaggedApi("android.app.modes_api") public static final int MODE_ATTENTION_THEME_OVERLAY_DAY = 1002; // 0x3ea 513 field @FlaggedApi("android.app.modes_api") public static final int MODE_ATTENTION_THEME_OVERLAY_NIGHT = 1001; // 0x3e9 514 field @FlaggedApi("android.app.modes_api") public static final int MODE_ATTENTION_THEME_OVERLAY_OFF = 1000; // 0x3e8 515 field @FlaggedApi("android.app.modes_api") public static final int MODE_ATTENTION_THEME_OVERLAY_UNKNOWN = -1; // 0xffffffff 516 field public static final int PROJECTION_TYPE_ALL = -1; // 0xffffffff 517 field public static final int PROJECTION_TYPE_AUTOMOTIVE = 1; // 0x1 518 field public static final int PROJECTION_TYPE_NONE = 0; // 0x0 519 } 520 521 public class WallpaperManager { 522 method @Nullable public android.graphics.Bitmap getBitmap(); 523 method @Nullable public android.graphics.Bitmap getBitmapAsUser(int, boolean, int); 524 method public boolean isLockscreenLiveWallpaperEnabled(); 525 method @Nullable public android.graphics.Rect peekBitmapDimensions(); 526 method @Nullable public android.graphics.Rect peekBitmapDimensions(int); 527 method public void setWallpaperZoomOut(@NonNull android.os.IBinder, float); 528 method public boolean shouldEnableWideColorGamut(); 529 method public boolean wallpaperSupportsWcg(int); 530 } 531 532 public class WindowConfiguration implements java.lang.Comparable<android.app.WindowConfiguration> android.os.Parcelable { 533 ctor public WindowConfiguration(); 534 method public int compareTo(android.app.WindowConfiguration); 535 method public int describeContents(); 536 method public int getActivityType(); 537 method @Nullable public android.graphics.Rect getAppBounds(); 538 method @NonNull public android.graphics.Rect getBounds(); 539 method public int getDisplayRotation(); 540 method @NonNull public android.graphics.Rect getMaxBounds(); 541 method public int getRotation(); 542 method public int getWindowingMode(); 543 method public static boolean isFloating(int); 544 method public void setActivityType(int); 545 method public void setAppBounds(@Nullable android.graphics.Rect); 546 method public void setBounds(@Nullable android.graphics.Rect); 547 method public void setMaxBounds(@Nullable android.graphics.Rect); 548 method public void setRotation(int); 549 method public void setTo(android.app.WindowConfiguration); 550 method public void setWindowingMode(int); 551 method public void writeToParcel(android.os.Parcel, int); 552 field public static final int ACTIVITY_TYPE_ASSISTANT = 4; // 0x4 553 field public static final int ACTIVITY_TYPE_DREAM = 5; // 0x5 554 field public static final int ACTIVITY_TYPE_HOME = 2; // 0x2 555 field public static final int ACTIVITY_TYPE_RECENTS = 3; // 0x3 556 field public static final int ACTIVITY_TYPE_STANDARD = 1; // 0x1 557 field public static final int ACTIVITY_TYPE_UNDEFINED = 0; // 0x0 558 field public static final int ROTATION_UNDEFINED = -1; // 0xffffffff 559 field public static final int WINDOWING_MODE_FREEFORM = 5; // 0x5 560 field public static final int WINDOWING_MODE_FULLSCREEN = 1; // 0x1 561 field public static final int WINDOWING_MODE_MULTI_WINDOW = 6; // 0x6 562 field public static final int WINDOWING_MODE_PINNED = 2; // 0x2 563 field public static final int WINDOWING_MODE_UNDEFINED = 0; // 0x0 564 } 565 566} 567 568package android.app.admin { 569 570 public final class AccountTypePolicyKey extends android.app.admin.PolicyKey { 571 ctor public AccountTypePolicyKey(@NonNull String, @NonNull String); 572 } 573 574 public final class DeviceAdminAuthority extends android.app.admin.Authority { 575 field @NonNull public static final android.app.admin.DeviceAdminAuthority DEVICE_ADMIN_AUTHORITY; 576 } 577 578 public final class DevicePolicyIdentifiers { 579 field public static final String PERMITTED_INPUT_METHODS_POLICY = "permittedInputMethods"; 580 field public static final String PERSONAL_APPS_SUSPENDED_POLICY = "personalAppsSuspended"; 581 field public static final String SCREEN_CAPTURE_DISABLED_POLICY = "screenCaptureDisabled"; 582 } 583 584 public class DevicePolicyManager { 585 method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public void acknowledgeNewUserDisclaimer(); 586 method @RequiresPermission(android.Manifest.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS) public void calculateHasIncompatibleAccounts(); 587 method @RequiresPermission(android.Manifest.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS) public void clearOrganizationId(); 588 method @RequiresPermission(android.Manifest.permission.CLEAR_FREEZE_PERIOD) public void clearSystemUpdatePolicyFreezePeriodRecord(); 589 method @RequiresPermission(android.Manifest.permission.FORCE_DEVICE_POLICY_MANAGER_LOGS) public long forceNetworkLogs(); 590 method @RequiresPermission(android.Manifest.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS) public void forceRemoveActiveAdmin(@NonNull android.content.ComponentName, int); 591 method @RequiresPermission(android.Manifest.permission.FORCE_DEVICE_POLICY_MANAGER_LOGS) public long forceSecurityLogs(); 592 method public void forceUpdateUserSetupComplete(int); 593 method @NonNull public java.util.Set<java.lang.String> getDefaultCrossProfilePackages(); 594 method @Deprecated public int getDeviceOwnerType(@NonNull android.content.ComponentName); 595 method @Nullable public String getDevicePolicyManagementRoleHolderUpdaterPackage(); 596 method @NonNull public java.util.Set<java.lang.String> getDisallowedSystemApps(@NonNull android.content.ComponentName, int, @NonNull String); 597 method public long getLastBugReportRequestTime(); 598 method public long getLastNetworkLogRetrievalTime(); 599 method public long getLastSecurityLogRetrievalTime(); 600 method public java.util.List<java.lang.String> getOwnerInstalledCaCerts(@NonNull android.os.UserHandle); 601 method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_DEVICE_ADMINS) public java.util.Set<java.lang.String> getPolicyExemptApps(); 602 method public boolean isCurrentInputMethodSetByOwner(); 603 method public boolean isFactoryResetProtectionPolicySupported(); 604 method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public boolean isNewUserDisclaimerAcknowledged(); 605 method public boolean isRemovingAdmin(@NonNull android.content.ComponentName, int); 606 method @NonNull public static String operationSafetyReasonToString(int); 607 method @NonNull public static String operationToString(int); 608 method @RequiresPermission(android.Manifest.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS) public void resetDefaultCrossProfileIntentFilters(int); 609 method @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public void resetShouldAllowBypassingDevicePolicyManagementRoleQualificationState(); 610 method @RequiresPermission(allOf={android.Manifest.permission.MANAGE_DEVICE_ADMINS, android.Manifest.permission.INTERACT_ACROSS_USERS_FULL}) public void setActiveAdmin(@NonNull android.content.ComponentName, boolean, int); 611 method @RequiresPermission(android.Manifest.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS) public boolean setDeviceOwner(@NonNull android.content.ComponentName, int); 612 method @RequiresPermission(android.Manifest.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS) public boolean setDeviceOwnerOnly(@NonNull android.content.ComponentName, int); 613 method public void setDeviceOwnerType(@NonNull android.content.ComponentName, int); 614 method @RequiresPermission(android.Manifest.permission.MANAGE_DEVICE_ADMINS) public void setNextOperationSafety(int, int); 615 method @RequiresPermission(anyOf={android.Manifest.permission.MARK_DEVICE_ORGANIZATION_OWNED, android.Manifest.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS}, conditional=true) public void setProfileOwnerOnOrganizationOwnedDevice(@NonNull android.content.ComponentName, boolean); 616 method @RequiresPermission(android.Manifest.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS) public boolean triggerDevicePolicyEngineMigration(boolean); 617 field public static final String ACTION_DATA_SHARING_RESTRICTION_APPLIED = "android.app.action.DATA_SHARING_RESTRICTION_APPLIED"; 618 field public static final String ACTION_DEVICE_POLICY_CONSTANTS_CHANGED = "android.app.action.DEVICE_POLICY_CONSTANTS_CHANGED"; 619 field public static final int DEVICE_OWNER_TYPE_DEFAULT = 0; // 0x0 620 field public static final int DEVICE_OWNER_TYPE_FINANCED = 1; // 0x1 621 field public static final int OPERATION_CLEAR_APPLICATION_USER_DATA = 23; // 0x17 622 field public static final int OPERATION_CREATE_AND_MANAGE_USER = 5; // 0x5 623 field public static final int OPERATION_INSTALL_CA_CERT = 24; // 0x18 624 field public static final int OPERATION_INSTALL_KEY_PAIR = 25; // 0x19 625 field public static final int OPERATION_INSTALL_SYSTEM_UPDATE = 26; // 0x1a 626 field public static final int OPERATION_LOCK_NOW = 1; // 0x1 627 field public static final int OPERATION_LOGOUT_USER = 9; // 0x9 628 field public static final int OPERATION_REBOOT = 7; // 0x7 629 field public static final int OPERATION_REMOVE_ACTIVE_ADMIN = 27; // 0x1b 630 field public static final int OPERATION_REMOVE_KEY_PAIR = 28; // 0x1c 631 field public static final int OPERATION_REMOVE_USER = 6; // 0x6 632 field public static final int OPERATION_REQUEST_BUGREPORT = 29; // 0x1d 633 field public static final int OPERATION_SAFETY_REASON_NONE = -1; // 0xffffffff 634 field public static final int OPERATION_SET_ALWAYS_ON_VPN_PACKAGE = 30; // 0x1e 635 field public static final int OPERATION_SET_APPLICATION_HIDDEN = 15; // 0xf 636 field public static final int OPERATION_SET_APPLICATION_RESTRICTIONS = 16; // 0x10 637 field public static final int OPERATION_SET_CAMERA_DISABLED = 31; // 0x1f 638 field @FlaggedApi("android.view.contentprotection.flags.manage_device_policy_enabled") public static final int OPERATION_SET_CONTENT_PROTECTION_POLICY = 41; // 0x29 639 field public static final int OPERATION_SET_FACTORY_RESET_PROTECTION_POLICY = 32; // 0x20 640 field public static final int OPERATION_SET_GLOBAL_PRIVATE_DNS = 33; // 0x21 641 field public static final int OPERATION_SET_KEEP_UNINSTALLED_PACKAGES = 17; // 0x11 642 field public static final int OPERATION_SET_KEYGUARD_DISABLED = 12; // 0xc 643 field public static final int OPERATION_SET_LOCK_TASK_FEATURES = 18; // 0x12 644 field public static final int OPERATION_SET_LOCK_TASK_PACKAGES = 19; // 0x13 645 field public static final int OPERATION_SET_LOGOUT_ENABLED = 34; // 0x22 646 field public static final int OPERATION_SET_MASTER_VOLUME_MUTED = 35; // 0x23 647 field public static final int OPERATION_SET_OVERRIDE_APNS_ENABLED = 36; // 0x24 648 field public static final int OPERATION_SET_PACKAGES_SUSPENDED = 20; // 0x14 649 field public static final int OPERATION_SET_PERMISSION_GRANT_STATE = 37; // 0x25 650 field public static final int OPERATION_SET_PERMISSION_POLICY = 38; // 0x26 651 field public static final int OPERATION_SET_RESTRICTIONS_PROVIDER = 39; // 0x27 652 field public static final int OPERATION_SET_STATUS_BAR_DISABLED = 13; // 0xd 653 field public static final int OPERATION_SET_SYSTEM_SETTING = 11; // 0xb 654 field public static final int OPERATION_SET_SYSTEM_UPDATE_POLICY = 14; // 0xe 655 field public static final int OPERATION_SET_TRUST_AGENT_CONFIGURATION = 21; // 0x15 656 field public static final int OPERATION_SET_USER_CONTROL_DISABLED_PACKAGES = 22; // 0x16 657 field public static final int OPERATION_SET_USER_RESTRICTION = 10; // 0xa 658 field public static final int OPERATION_START_USER_IN_BACKGROUND = 3; // 0x3 659 field public static final int OPERATION_STOP_USER = 4; // 0x4 660 field public static final int OPERATION_SWITCH_USER = 2; // 0x2 661 field public static final int OPERATION_UNINSTALL_CA_CERT = 40; // 0x28 662 field public static final int OPERATION_WIPE_DATA = 8; // 0x8 663 field @Deprecated public static final int STATUS_SPLIT_SYSTEM_USER_DEVICE_SYSTEM_USER = 14; // 0xe 664 } 665 666 public final class DpcAuthority extends android.app.admin.Authority { 667 field @NonNull public static final android.app.admin.DpcAuthority DPC_AUTHORITY; 668 } 669 670 public final class FlagUnion extends android.app.admin.ResolutionMechanism<java.lang.Integer> { 671 method public int describeContents(); 672 method public void writeToParcel(@NonNull android.os.Parcel, int); 673 field @NonNull public static final android.os.Parcelable.Creator<android.app.admin.FlagUnion> CREATOR; 674 field @NonNull public static final android.app.admin.FlagUnion FLAG_UNION; 675 } 676 677 public final class IntentFilterPolicyKey extends android.app.admin.PolicyKey { 678 ctor public IntentFilterPolicyKey(@NonNull String, @NonNull android.content.IntentFilter); 679 } 680 681 public final class MostRecent<V> extends android.app.admin.ResolutionMechanism<V> { 682 ctor public MostRecent(); 683 method public int describeContents(); 684 method public void writeToParcel(@NonNull android.os.Parcel, int); 685 field @NonNull public static final android.os.Parcelable.Creator<android.app.admin.MostRecent<?>> CREATOR; 686 field @NonNull public static final android.app.admin.MostRecent<?> MOST_RECENT; 687 } 688 689 public final class MostRestrictive<V> extends android.app.admin.ResolutionMechanism<V> { 690 method public int describeContents(); 691 method @NonNull public java.util.List<V> getMostToLeastRestrictiveValues(); 692 method public void writeToParcel(@NonNull android.os.Parcel, int); 693 field @NonNull public static final android.os.Parcelable.Creator<android.app.admin.MostRestrictive<?>> CREATOR; 694 } 695 696 public final class PackagePermissionPolicyKey extends android.app.admin.PolicyKey { 697 ctor public PackagePermissionPolicyKey(@NonNull String, @NonNull String, @NonNull String); 698 } 699 700 public final class PackagePolicyKey extends android.app.admin.PolicyKey { 701 ctor public PackagePolicyKey(@NonNull String, @NonNull String); 702 } 703 704 public final class PolicyState<V> implements android.os.Parcelable { 705 method @NonNull public android.app.admin.ResolutionMechanism<V> getResolutionMechanism(); 706 } 707 708 public abstract class PolicyUpdateReceiver extends android.content.BroadcastReceiver { 709 field public static final String EXTRA_POLICY_BUNDLE_KEY = "android.app.admin.extra.POLICY_BUNDLE_KEY"; 710 field public static final String EXTRA_POLICY_KEY = "android.app.admin.extra.POLICY_KEY"; 711 field public static final String EXTRA_POLICY_TARGET_USER_ID = "android.app.admin.extra.POLICY_TARGET_USER_ID"; 712 field public static final String EXTRA_POLICY_UPDATE_RESULT_KEY = "android.app.admin.extra.POLICY_UPDATE_RESULT_KEY"; 713 } 714 715 public abstract class ResolutionMechanism<V> implements android.os.Parcelable { 716 } 717 718 public static final class SecurityLog.SecurityEvent implements android.os.Parcelable { 719 ctor public SecurityLog.SecurityEvent(long, byte[]); 720 } 721 722 public final class StringSetUnion extends android.app.admin.ResolutionMechanism<java.util.Set<java.lang.String>> { 723 ctor public StringSetUnion(); 724 method public int describeContents(); 725 method public void writeToParcel(@NonNull android.os.Parcel, int); 726 field @NonNull public static final android.os.Parcelable.Creator<android.app.admin.StringSetUnion> CREATOR; 727 field @NonNull public static final android.app.admin.StringSetUnion STRING_SET_UNION; 728 } 729 730 public final class TargetUser { 731 field public static final int GLOBAL_USER_ID = -3; // 0xfffffffd 732 field public static final int LOCAL_USER_ID = -1; // 0xffffffff 733 field public static final int PARENT_USER_ID = -2; // 0xfffffffe 734 field public static final int UNKNOWN_USER_ID = -3; // 0xfffffffd 735 } 736 737 public final class TopPriority<V> extends android.app.admin.ResolutionMechanism<V> { 738 method public int describeContents(); 739 method @NonNull public java.util.List<android.app.admin.Authority> getHighestToLowestPriorityAuthorities(); 740 method public void writeToParcel(@NonNull android.os.Parcel, int); 741 field @NonNull public static final android.os.Parcelable.Creator<android.app.admin.TopPriority<?>> CREATOR; 742 } 743 744 public final class UnknownAuthority extends android.app.admin.Authority { 745 field @NonNull public static final android.app.admin.UnknownAuthority UNKNOWN_AUTHORITY; 746 } 747 748 public final class UnsafeStateException extends java.lang.IllegalStateException implements android.os.Parcelable { 749 ctor public UnsafeStateException(int, int); 750 method public int getOperation(); 751 } 752 753 public final class UserRestrictionPolicyKey extends android.app.admin.PolicyKey { 754 ctor public UserRestrictionPolicyKey(@NonNull String, @NonNull String); 755 } 756 757} 758 759package android.app.assist { 760 761 public final class ActivityId implements android.os.Parcelable { 762 ctor public ActivityId(int, @Nullable android.os.IBinder); 763 method public int describeContents(); 764 method public int getTaskId(); 765 method @Nullable public android.os.IBinder getToken(); 766 method public void writeToParcel(@NonNull android.os.Parcel, int); 767 field @NonNull public static final android.os.Parcelable.Creator<android.app.assist.ActivityId> CREATOR; 768 } 769 770} 771 772package android.app.blob { 773 774 public class BlobStoreManager { 775 method @Nullable public android.app.blob.LeaseInfo getLeaseInfo(@NonNull android.app.blob.BlobHandle) throws java.io.IOException; 776 method public void waitForIdle(long) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException; 777 } 778 779 public final class LeaseInfo implements android.os.Parcelable { 780 ctor public LeaseInfo(@NonNull String, long, @IdRes int, @Nullable CharSequence); 781 method public int describeContents(); 782 method @Nullable public CharSequence getDescription(); 783 method @IdRes public int getDescriptionResId(); 784 method public long getExpiryTimeMillis(); 785 method @NonNull public String getPackageName(); 786 method public void writeToParcel(@NonNull android.os.Parcel, int); 787 field @NonNull public static final android.os.Parcelable.Creator<android.app.blob.LeaseInfo> CREATOR; 788 } 789 790} 791 792package android.app.cloudsearch { 793 794 public static final class SearchRequest.Builder { 795 method @NonNull public android.app.cloudsearch.SearchRequest.Builder setCallerPackageName(@NonNull String); 796 } 797 798} 799 800package android.app.contentsuggestions { 801 802 public final class ContentSuggestionsManager { 803 method @RequiresPermission(android.Manifest.permission.MANAGE_CONTENT_SUGGESTIONS) public void resetTemporaryService(int); 804 method @RequiresPermission(android.Manifest.permission.MANAGE_CONTENT_SUGGESTIONS) public void setDefaultServiceEnabled(int, boolean); 805 method @RequiresPermission(android.Manifest.permission.MANAGE_CONTENT_SUGGESTIONS) public void setTemporaryService(int, @NonNull String, int); 806 } 807 808} 809 810package android.app.contextualsearch { 811 812 @FlaggedApi("android.app.contextualsearch.flags.enable_service") public final class CallbackToken implements android.os.Parcelable { 813 method @NonNull public android.os.IBinder getToken(); 814 } 815 816} 817 818package android.app.job { 819 820 public class JobParameters implements android.os.Parcelable { 821 field public static final int INTERNAL_STOP_REASON_USER_UI_STOP = 11; // 0xb 822 } 823 824} 825 826package android.app.pinner { 827 828 @FlaggedApi("android.app.pinner_service_client_api") public final class PinnedFileStat implements android.os.Parcelable { 829 ctor @FlaggedApi("android.app.pinner_service_client_api") public PinnedFileStat(@NonNull String, long, @NonNull String); 830 method @FlaggedApi("android.app.pinner_service_client_api") public int describeContents(); 831 method @FlaggedApi("android.app.pinner_service_client_api") public long getBytesPinned(); 832 method @FlaggedApi("android.app.pinner_service_client_api") @NonNull public String getFilename(); 833 method @FlaggedApi("android.app.pinner_service_client_api") @NonNull public String getGroupName(); 834 method @FlaggedApi("android.app.pinner_service_client_api") public void writeToParcel(@NonNull android.os.Parcel, int); 835 field @FlaggedApi("android.app.pinner_service_client_api") @NonNull public static final android.os.Parcelable.Creator<android.app.pinner.PinnedFileStat> CREATOR; 836 } 837 838 @FlaggedApi("android.app.pinner_service_client_api") public class PinnerServiceClient { 839 ctor @FlaggedApi("android.app.pinner_service_client_api") public PinnerServiceClient(); 840 method @FlaggedApi("android.app.pinner_service_client_api") @NonNull public java.util.List<android.app.pinner.PinnedFileStat> getPinnerStats(); 841 } 842 843} 844 845package android.app.prediction { 846 847 public final class AppPredictor { 848 method public android.app.prediction.AppPredictionSessionId getSessionId(); 849 } 850 851} 852 853package android.app.usage { 854 855 public class StorageStatsManager { 856 method public boolean isQuotaSupported(@NonNull java.util.UUID); 857 method public boolean isReservedSupported(@NonNull java.util.UUID); 858 method @NonNull @WorkerThread public java.util.Collection<android.os.storage.CrateInfo> queryCratesForPackage(@NonNull java.util.UUID, @NonNull String, @NonNull android.os.UserHandle) throws java.io.IOException, android.content.pm.PackageManager.NameNotFoundException; 859 method @NonNull @WorkerThread public java.util.Collection<android.os.storage.CrateInfo> queryCratesForUid(@NonNull java.util.UUID, int) throws java.io.IOException, android.content.pm.PackageManager.NameNotFoundException; 860 method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_CRATES) @WorkerThread public java.util.Collection<android.os.storage.CrateInfo> queryCratesForUser(@NonNull java.util.UUID, @NonNull android.os.UserHandle) throws java.io.IOException, android.content.pm.PackageManager.NameNotFoundException; 861 } 862 863 public final class UsageStats implements android.os.Parcelable { 864 ctor public UsageStats(); 865 } 866 867 public static final class UsageStats.Builder { 868 ctor public UsageStats.Builder(); 869 method @NonNull public android.app.usage.UsageStats build(); 870 method @NonNull public android.app.usage.UsageStats.Builder setFirstTimeStamp(long); 871 method @NonNull public android.app.usage.UsageStats.Builder setLastTimeStamp(long); 872 method @NonNull public android.app.usage.UsageStats.Builder setLastTimeUsed(long); 873 method @NonNull public android.app.usage.UsageStats.Builder setPackageName(@Nullable String); 874 method @NonNull public android.app.usage.UsageStats.Builder setTotalTimeInForeground(long); 875 } 876 877 public final class UsageStatsManager { 878 method public void forceUsageSourceSettingRead(); 879 method public boolean isAppStandbyEnabled(); 880 } 881 882} 883 884package android.appwidget { 885 886 public class AppWidgetManager { 887 method public void setBindAppWidgetPermission(@NonNull String, int, boolean); 888 } 889 890} 891 892package android.companion { 893 894 @FlaggedApi("android.companion.new_association_builder") public static final class AssociationInfo.Builder { 895 ctor public AssociationInfo.Builder(int, int, @NonNull String); 896 ctor public AssociationInfo.Builder(@NonNull android.companion.AssociationInfo); 897 method @NonNull public android.companion.AssociationInfo build(); 898 method @NonNull public android.companion.AssociationInfo.Builder setAssociatedDevice(@Nullable android.companion.AssociatedDevice); 899 method @NonNull public android.companion.AssociationInfo.Builder setDeviceMacAddress(@Nullable android.net.MacAddress); 900 method @NonNull public android.companion.AssociationInfo.Builder setDeviceProfile(@Nullable String); 901 method @NonNull public android.companion.AssociationInfo.Builder setDisplayName(@Nullable CharSequence); 902 method @NonNull public android.companion.AssociationInfo.Builder setLastTimeConnected(long); 903 method @NonNull public android.companion.AssociationInfo.Builder setNotifyOnDeviceNearby(boolean); 904 method @NonNull public android.companion.AssociationInfo.Builder setRevoked(boolean); 905 method @NonNull public android.companion.AssociationInfo.Builder setSelfManaged(boolean); 906 method @NonNull public android.companion.AssociationInfo.Builder setSystemDataSyncFlags(int); 907 method @FlaggedApi("android.companion.association_tag") @NonNull public android.companion.AssociationInfo.Builder setTag(@Nullable String); 908 method @NonNull public android.companion.AssociationInfo.Builder setTimeApproved(long); 909 } 910 911 public final class CompanionDeviceManager { 912 method @RequiresPermission("android.permission.MANAGE_COMPANION_DEVICES") public void enableSecureTransport(boolean); 913 } 914 915 public abstract class CompanionDeviceService extends android.app.Service { 916 method public void onBindCompanionDeviceService(@NonNull android.content.Intent); 917 } 918 919} 920 921package android.companion.virtual { 922 923 public final class VirtualDeviceManager { 924 method public int getAudioPlaybackSessionId(int); 925 method public int getAudioRecordingSessionId(int); 926 method public int getDeviceIdForDisplayId(int); 927 method public int getDevicePolicy(int, int); 928 method @FlaggedApi("android.companion.virtual.flags.interactive_screen_mirror") public boolean isVirtualDeviceOwnedMirrorDisplay(int); 929 method public void playSoundEffect(int, int); 930 } 931 932} 933 934package android.companion.virtual.camera { 935 936 @FlaggedApi("android.companion.virtual.flags.virtual_camera") public final class VirtualCamera implements java.io.Closeable { 937 method @NonNull public String getId(); 938 } 939 940} 941 942package android.companion.virtual.sensor { 943 944 public final class VirtualSensor implements android.os.Parcelable { 945 ctor public VirtualSensor(int, int, @NonNull String); 946 method public int getHandle(); 947 } 948 949 public final class VirtualSensorConfig implements android.os.Parcelable { 950 method public int getFlags(); 951 } 952 953} 954 955package android.content { 956 957 public final class AttributionSource implements android.os.Parcelable { 958 ctor public AttributionSource(int, @Nullable String, @Nullable String); 959 ctor public AttributionSource(int, @Nullable String, @Nullable String, @NonNull android.os.IBinder); 960 ctor public AttributionSource(int, @Nullable String, @Nullable String, @Nullable java.util.Set<java.lang.String>, @Nullable android.content.AttributionSource); 961 ctor @FlaggedApi("android.permission.flags.attribution_source_constructor") public AttributionSource(int, int, @Nullable String, @Nullable String, @NonNull android.os.IBinder, @Nullable String[], @Nullable android.content.AttributionSource); 962 ctor @FlaggedApi("android.permission.flags.device_aware_permission_apis_enabled") public AttributionSource(int, int, @Nullable String, @Nullable String, @NonNull android.os.IBinder, @Nullable String[], int, @Nullable android.content.AttributionSource); 963 method public void enforceCallingPid(); 964 } 965 966 public final class AutofillOptions implements android.os.Parcelable { 967 ctor public AutofillOptions(int, boolean); 968 method public int describeContents(); 969 method public static android.content.AutofillOptions forWhitelistingItself(); 970 method public boolean isAugmentedAutofillEnabled(@NonNull android.content.Context); 971 method public void writeToParcel(android.os.Parcel, int); 972 field @NonNull public static final android.os.Parcelable.Creator<android.content.AutofillOptions> CREATOR; 973 field public long appDisabledExpiration; 974 field public boolean augmentedAutofillEnabled; 975 field public final boolean compatModeEnabled; 976 field @Nullable public android.util.ArrayMap<java.lang.String,java.lang.Long> disabledActivities; 977 field public final int loggingLevel; 978 field @Nullable public android.util.ArraySet<android.content.ComponentName> whitelistedActivitiesForAugmentedAutofill; 979 } 980 981 public class ClipboardManager extends android.text.ClipboardManager { 982 method @Nullable @RequiresPermission(android.Manifest.permission.SET_CLIP_SOURCE) public String getPrimaryClipSource(); 983 } 984 985 public final class ContentCaptureOptions implements android.os.Parcelable { 986 ctor public ContentCaptureOptions(int); 987 ctor public ContentCaptureOptions(int, int, int, int, int, @Nullable android.util.ArraySet<android.content.ComponentName>); 988 method public int describeContents(); 989 method public static android.content.ContentCaptureOptions forWhitelistingItself(); 990 method public void writeToParcel(android.os.Parcel, int); 991 field @NonNull public static final android.os.Parcelable.Creator<android.content.ContentCaptureOptions> CREATOR; 992 field public final int idleFlushingFrequencyMs; 993 field public final boolean lite; 994 field public final int logHistorySize; 995 field public final int loggingLevel; 996 field public final int maxBufferSize; 997 field public final int textChangeFlushingFrequencyMs; 998 field @Nullable public final android.util.ArraySet<android.content.ComponentName> whitelistedComponents; 999 } 1000 1001 public abstract class ContentProvider implements android.content.ComponentCallbacks2 { 1002 method @NonNull public static android.os.UserHandle getUserHandleFromUri(@NonNull android.net.Uri); 1003 } 1004 1005 public abstract class ContentResolver { 1006 method public static String[] getSyncAdapterPackagesForAuthorityAsUser(String, int); 1007 } 1008 1009 public abstract class Context { 1010 method @NonNull public java.io.File getCrateDir(@NonNull String); 1011 method public abstract int getDisplayId(); 1012 method @NonNull public android.os.UserHandle getUser(); 1013 method public int getUserId(); 1014 method public void setAutofillOptions(@Nullable android.content.AutofillOptions); 1015 method public void setContentCaptureOptions(@Nullable android.content.ContentCaptureOptions); 1016 method public void updateDeviceId(int); 1017 method public abstract void updateDisplay(int); 1018 field public static final String ATTENTION_SERVICE = "attention"; 1019 field public static final String CONTENT_CAPTURE_MANAGER_SERVICE = "content_capture"; 1020 field public static final String DEVICE_IDLE_CONTROLLER = "deviceidle"; 1021 field public static final String DREAM_SERVICE = "dream"; 1022 field public static final String FONT_SERVICE = "font"; 1023 field public static final String POWER_EXEMPTION_SERVICE = "power_exemption"; 1024 field @Deprecated public static final String POWER_WHITELIST_MANAGER = "power_whitelist"; 1025 field @Deprecated public static final int RECEIVER_EXPORTED_UNAUDITED = 2; // 0x2 1026 field public static final String TEST_NETWORK_SERVICE = "test_network"; 1027 } 1028 1029 public class ContextWrapper extends android.content.Context { 1030 method public int getDisplayId(); 1031 method public void updateDisplay(int); 1032 } 1033 1034 public class Intent implements java.lang.Cloneable android.os.Parcelable { 1035 method @NonNull public android.content.Intent addExtendedFlags(int); 1036 method public int getExtendedFlags(); 1037 field public static final String ACTION_USER_STOPPED = "android.intent.action.USER_STOPPED"; 1038 field public static final int EXTENDED_FLAG_FILTER_MISMATCH = 1; // 0x1 1039 } 1040 1041 public class SyncAdapterType implements android.os.Parcelable { 1042 method @Nullable public String getPackageName(); 1043 } 1044 1045} 1046 1047package android.content.integrity { 1048 1049 public class AppIntegrityManager { 1050 method @NonNull public android.content.integrity.RuleSet getCurrentRuleSet(); 1051 method @NonNull public java.util.List<java.lang.String> getWhitelistedRuleProviders(); 1052 } 1053 1054} 1055 1056package android.content.pm { 1057 1058 public class ActivityInfo extends android.content.pm.ComponentInfo implements android.os.Parcelable { 1059 method public static boolean isTranslucentOrFloating(android.content.res.TypedArray); 1060 field public static final long ALWAYS_SANDBOX_DISPLAY_APIS = 185004937L; // 0xb06f389L 1061 field public static final long FORCE_NON_RESIZE_APP = 181136395L; // 0xacbec0bL 1062 field public static final long FORCE_RESIZE_APP = 174042936L; // 0xa5faf38L 1063 field public static final long NEVER_SANDBOX_DISPLAY_APIS = 184838306L; // 0xb0468a2L 1064 field public static final long OVERRIDE_CAMERA_COMPAT_DISABLE_FORCE_ROTATION = 263959004L; // 0xfbbb1dcL 1065 field public static final long OVERRIDE_CAMERA_COMPAT_DISABLE_REFRESH = 264304459L; // 0xfc0f74bL 1066 field public static final long OVERRIDE_CAMERA_COMPAT_ENABLE_REFRESH_VIA_PAUSE = 264301586L; // 0xfc0ec12L 1067 field public static final long OVERRIDE_ENABLE_COMPAT_FAKE_FOCUS = 263259275L; // 0xfb1048bL 1068 field @FlaggedApi("com.android.window.flags.app_compat_properties_api") public static final long OVERRIDE_ENABLE_COMPAT_IGNORE_ORIENTATION_REQUEST_WHEN_LOOP_DETECTED = 273509367L; // 0x104d6bf7L 1069 field public static final long OVERRIDE_ENABLE_COMPAT_IGNORE_REQUESTED_ORIENTATION = 254631730L; // 0xf2d5f32L 1070 field public static final long OVERRIDE_LANDSCAPE_ORIENTATION_TO_REVERSE_LANDSCAPE = 266124927L; // 0xfdcbe7fL 1071 field public static final long OVERRIDE_MIN_ASPECT_RATIO = 174042980L; // 0xa5faf64L 1072 field public static final long OVERRIDE_MIN_ASPECT_RATIO_EXCLUDE_PORTRAIT_FULLSCREEN = 218959984L; // 0xd0d1070L 1073 field public static final long OVERRIDE_MIN_ASPECT_RATIO_LARGE = 180326787L; // 0xabf9183L 1074 field public static final float OVERRIDE_MIN_ASPECT_RATIO_LARGE_VALUE = 1.7777778f; 1075 field public static final long OVERRIDE_MIN_ASPECT_RATIO_MEDIUM = 180326845L; // 0xabf91bdL 1076 field public static final float OVERRIDE_MIN_ASPECT_RATIO_MEDIUM_VALUE = 1.5f; 1077 field public static final long OVERRIDE_MIN_ASPECT_RATIO_PORTRAIT_ONLY = 203647190L; // 0xc2368d6L 1078 field public static final long OVERRIDE_MIN_ASPECT_RATIO_TO_ALIGN_WITH_SPLIT_SCREEN = 208648326L; // 0xc6fb886L 1079 field public static final long OVERRIDE_SANDBOX_VIEW_BOUNDS_APIS = 237531167L; // 0xe28701fL 1080 field public static final long OVERRIDE_UNDEFINED_ORIENTATION_TO_NOSENSOR = 265451093L; // 0xfd27655L 1081 field public static final long OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT = 265452344L; // 0xfd27b38L 1082 field public static final long OVERRIDE_USE_DISPLAY_LANDSCAPE_NATURAL_ORIENTATION = 255940284L; // 0xf4156bcL 1083 field public static final int RESIZE_MODE_RESIZEABLE = 2; // 0x2 1084 } 1085 1086 public class ApplicationInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable { 1087 method public boolean hasRequestForegroundServiceExemption(); 1088 method public boolean isOnBackInvokedCallbackEnabled(); 1089 method @RequiresPermission(android.Manifest.permission.INSTALL_PACKAGES) public boolean isPrivilegedApp(); 1090 method public boolean isSystemApp(); 1091 method public void setEnableOnBackInvokedCallback(boolean); 1092 field public static final int PRIVATE_FLAG_PRIVILEGED = 8; // 0x8 1093 field public int privateFlags; 1094 } 1095 1096 public class CrossProfileApps { 1097 method public boolean canConfigureInteractAcrossProfiles(@NonNull String); 1098 } 1099 1100 public class LauncherApps { 1101 ctor public LauncherApps(android.content.Context); 1102 } 1103 1104 public static class PackageInstaller.SessionParams implements android.os.Parcelable { 1105 method public void setInstallFlagAllowTest(); 1106 } 1107 1108 public abstract class PackageManager { 1109 method public abstract void addCrossProfileIntentFilter(@NonNull android.content.IntentFilter, int, int, int); 1110 method public abstract void clearCrossProfileIntentFilters(int); 1111 method @Deprecated @Nullable public final String getContentCaptureServicePackageName(); 1112 method @Nullable public String getDefaultTextClassifierPackageName(); 1113 method @RequiresPermission(android.Manifest.permission.INJECT_EVENTS) public android.os.IBinder getHoldLockToken(); 1114 method public abstract int getInstallReason(@NonNull String, @NonNull android.os.UserHandle); 1115 method @NonNull public abstract java.util.List<android.content.pm.ApplicationInfo> getInstalledApplicationsAsUser(int, int); 1116 method @NonNull public java.util.List<android.content.pm.ApplicationInfo> getInstalledApplicationsAsUser(@NonNull android.content.pm.PackageManager.ApplicationInfoFlags, int); 1117 method @Nullable public abstract String[] getNamesForUids(int[]); 1118 method @NonNull public String getPermissionControllerPackageName(); 1119 method @NonNull public String getSdkSandboxPackageName(); 1120 method @NonNull public abstract String getServicesSystemSharedLibraryPackageName(); 1121 method @NonNull public abstract String getSharedSystemSharedLibraryPackageName(); 1122 method @Nullable public String getSystemTextClassifierPackageName(); 1123 method @Nullable public String getWellbeingPackageName(); 1124 method public void holdLock(android.os.IBinder, int); 1125 method @RequiresPermission(android.Manifest.permission.MAKE_UID_VISIBLE) public void makeUidVisible(int, int); 1126 method @RequiresPermission(android.Manifest.permission.KEEP_UNINSTALLED_PACKAGES) public void setKeepUninstalledPackages(@NonNull java.util.List<java.lang.String>); 1127 field public static final String FEATURE_ADOPTABLE_STORAGE = "android.software.adoptable_storage"; 1128 field public static final String FEATURE_COMMUNAL_MODE = "android.software.communal_mode"; 1129 field public static final String FEATURE_FILE_BASED_ENCRYPTION = "android.software.file_based_encryption"; 1130 field public static final String FEATURE_HDMI_CEC = "android.hardware.hdmi.cec"; 1131 field public static final int FLAG_PERMISSION_REVOKE_WHEN_REQUESTED = 128; // 0x80 1132 field public static final int MATCH_KNOWN_PACKAGES = 4202496; // 0x402000 1133 field public static final String SYSTEM_SHARED_LIBRARY_SERVICES = "android.ext.services"; 1134 field public static final String SYSTEM_SHARED_LIBRARY_SHARED = "android.ext.shared"; 1135 } 1136 1137 public final class ProviderInfoList implements android.os.Parcelable { 1138 method public int describeContents(); 1139 method @NonNull public static android.content.pm.ProviderInfoList fromList(@NonNull java.util.List<android.content.pm.ProviderInfo>); 1140 method @NonNull public java.util.List<android.content.pm.ProviderInfo> getList(); 1141 method public void writeToParcel(@NonNull android.os.Parcel, int); 1142 field @NonNull public static final android.os.Parcelable.Creator<android.content.pm.ProviderInfoList> CREATOR; 1143 } 1144 1145 public final class SharedLibraryInfo implements android.os.Parcelable { 1146 method @NonNull public java.util.List<java.lang.String> getAllCodePaths(); 1147 method public boolean isNative(); 1148 } 1149 1150 public final class ShortcutInfo implements android.os.Parcelable { 1151 method public boolean isVisibleToPublisher(); 1152 } 1153 1154 public class ShortcutManager { 1155 ctor public ShortcutManager(android.content.Context); 1156 } 1157 1158 public class UserInfo implements android.os.Parcelable { 1159 ctor public UserInfo(int, String, int); 1160 ctor public UserInfo(int, String, String, int); 1161 ctor public UserInfo(int, String, String, int, String); 1162 ctor @Deprecated public UserInfo(); 1163 ctor public UserInfo(android.content.pm.UserInfo); 1164 method public boolean canHaveProfile(); 1165 method public int describeContents(); 1166 method public android.os.UserHandle getUserHandle(); 1167 method public boolean isAdmin(); 1168 method public boolean isCloneProfile(); 1169 method @FlaggedApi("android.multiuser.support_communal_profile") public boolean isCommunalProfile(); 1170 method public boolean isDemo(); 1171 method public boolean isEnabled(); 1172 method public boolean isEphemeral(); 1173 method public boolean isForTesting(); 1174 method public boolean isFull(); 1175 method public boolean isGuest(); 1176 method public boolean isInitialized(); 1177 method public boolean isMain(); 1178 method public boolean isManagedProfile(); 1179 method @Deprecated public boolean isPrimary(); 1180 method @FlaggedApi("android.os.allow_private_profile") public boolean isPrivateProfile(); 1181 method public boolean isProfile(); 1182 method public boolean isQuietModeEnabled(); 1183 method public boolean isRestricted(); 1184 method public boolean supportsSwitchTo(); 1185 method @Deprecated public boolean supportsSwitchToByUser(); 1186 method public void writeToParcel(android.os.Parcel, int); 1187 field @NonNull public static final android.os.Parcelable.Creator<android.content.pm.UserInfo> CREATOR; 1188 field public static final int FLAG_ADMIN = 2; // 0x2 1189 field @Deprecated public static final int FLAG_DEMO = 512; // 0x200 1190 field public static final int FLAG_DISABLED = 64; // 0x40 1191 field public static final int FLAG_EPHEMERAL = 256; // 0x100 1192 field public static final int FLAG_FULL = 1024; // 0x400 1193 field @Deprecated public static final int FLAG_GUEST = 4; // 0x4 1194 field public static final int FLAG_INITIALIZED = 16; // 0x10 1195 field public static final int FLAG_MAIN = 16384; // 0x4000 1196 field @Deprecated public static final int FLAG_MANAGED_PROFILE = 32; // 0x20 1197 field @Deprecated public static final int FLAG_PRIMARY = 1; // 0x1 1198 field public static final int FLAG_PROFILE = 4096; // 0x1000 1199 field public static final int FLAG_QUIET_MODE = 128; // 0x80 1200 field @Deprecated public static final int FLAG_RESTRICTED = 8; // 0x8 1201 field public static final int FLAG_SYSTEM = 2048; // 0x800 1202 field public static final int NO_PROFILE_GROUP_ID = -10000; // 0xffffd8f0 1203 field public boolean convertedFromPreCreated; 1204 field public long creationTime; 1205 field public int flags; 1206 field public boolean guestToRemove; 1207 field public String iconPath; 1208 field public int id; 1209 field public String lastLoggedInFingerprint; 1210 field public long lastLoggedInTime; 1211 field @Nullable public String name; 1212 field public boolean partial; 1213 field public boolean preCreated; 1214 field public int profileBadge; 1215 field public int profileGroupId; 1216 field public int restrictedProfileParentId; 1217 field public int serialNumber; 1218 field public String userType; 1219 } 1220 1221 public final class UserProperties implements android.os.Parcelable { 1222 method public int getShowInLauncher(); 1223 field public static final int SHOW_IN_LAUNCHER_NO = 2; // 0x2 1224 field public static final int SHOW_IN_LAUNCHER_SEPARATE = 1; // 0x1 1225 field public static final int SHOW_IN_LAUNCHER_UNKNOWN = -1; // 0xffffffff 1226 field public static final int SHOW_IN_LAUNCHER_WITH_PARENT = 0; // 0x0 1227 } 1228 1229 public static final class UserProperties.Builder { 1230 ctor public UserProperties.Builder(); 1231 method @NonNull public android.content.pm.UserProperties build(); 1232 method @NonNull public android.content.pm.UserProperties.Builder setCrossProfileContentSharingStrategy(int); 1233 method @NonNull public android.content.pm.UserProperties.Builder setShowInQuietMode(int); 1234 method @NonNull public android.content.pm.UserProperties.Builder setShowInSharingSurfaces(int); 1235 } 1236 1237} 1238 1239package android.content.res { 1240 1241 public final class AssetManager implements java.lang.AutoCloseable { 1242 method @NonNull public String[] getApkPaths(); 1243 method @Nullable public String getLastResourceResolution(); 1244 method @Nullable public String getOverlayablesToString(String); 1245 method public void setResourceResolutionLoggingEnabled(boolean); 1246 } 1247 1248 public final class Configuration implements java.lang.Comparable<android.content.res.Configuration> android.os.Parcelable { 1249 field public int assetsSeq; 1250 field public final android.app.WindowConfiguration windowConfiguration; 1251 } 1252 1253} 1254 1255package android.content.rollback { 1256 1257 public final class RollbackInfo implements android.os.Parcelable { 1258 method @FlaggedApi("android.content.pm.recoverability_detection") public int getRollbackImpactLevel(); 1259 } 1260 1261 public final class RollbackManager { 1262 method @RequiresPermission(android.Manifest.permission.TEST_MANAGE_ROLLBACKS) public void blockRollbackManager(long); 1263 method @RequiresPermission(android.Manifest.permission.TEST_MANAGE_ROLLBACKS) public void expireRollbackForPackage(@NonNull String); 1264 method @RequiresPermission(android.Manifest.permission.TEST_MANAGE_ROLLBACKS) public void reloadPersistedData(); 1265 field public static final String PROPERTY_ROLLBACK_LIFETIME_MILLIS = "rollback_lifetime_in_millis"; 1266 } 1267 1268} 1269 1270package android.credentials { 1271 1272 public final class CredentialManager { 1273 method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.QUERY_ALL_PACKAGES, "android.permission.LIST_ENABLED_CREDENTIAL_PROVIDERS"}) public java.util.List<android.credentials.CredentialProviderInfo> getCredentialProviderServicesForTesting(int); 1274 method public static boolean isServiceEnabled(@NonNull android.content.Context); 1275 field public static final int PROVIDER_FILTER_ALL_PROVIDERS = 0; // 0x0 1276 field public static final int PROVIDER_FILTER_SYSTEM_PROVIDERS_ONLY = 1; // 0x1 1277 field public static final int PROVIDER_FILTER_USER_PROVIDERS_ONLY = 2; // 0x2 1278 } 1279 1280 public final class CredentialProviderInfo implements android.os.Parcelable { 1281 method public int describeContents(); 1282 method @NonNull public java.util.List<java.lang.String> getCapabilities(); 1283 method @NonNull public android.content.ComponentName getComponentName(); 1284 method @Nullable public CharSequence getLabel(@NonNull android.content.Context); 1285 method @Nullable public android.graphics.drawable.Drawable getServiceIcon(@NonNull android.content.Context); 1286 method @NonNull public android.content.pm.ServiceInfo getServiceInfo(); 1287 method @FlaggedApi("android.credentials.flags.settings_activity_enabled") @Nullable public CharSequence getSettingsActivity(); 1288 method @Nullable public CharSequence getSettingsSubtitle(); 1289 method @NonNull public boolean hasCapability(@NonNull String); 1290 method public boolean isEnabled(); 1291 method public boolean isPrimary(); 1292 method public boolean isSystemProvider(); 1293 method public void writeToParcel(@NonNull android.os.Parcel, int); 1294 field @NonNull public static final android.os.Parcelable.Creator<android.credentials.CredentialProviderInfo> CREATOR; 1295 } 1296 1297 public static final class CredentialProviderInfo.Builder { 1298 ctor public CredentialProviderInfo.Builder(@NonNull android.content.pm.ServiceInfo); 1299 method @NonNull public android.credentials.CredentialProviderInfo.Builder addCapabilities(@NonNull java.util.List<java.lang.String>); 1300 method @NonNull public android.credentials.CredentialProviderInfo build(); 1301 method @NonNull public android.credentials.CredentialProviderInfo.Builder setEnabled(boolean); 1302 method @NonNull public android.credentials.CredentialProviderInfo.Builder setSettingsSubtitle(@Nullable CharSequence); 1303 method @NonNull public android.credentials.CredentialProviderInfo.Builder setSystemProvider(boolean); 1304 } 1305 1306} 1307 1308package android.credentials.selection { 1309 1310 @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") public class BaseDialogResult implements android.os.Parcelable { 1311 ctor public BaseDialogResult(@Nullable android.os.IBinder); 1312 ctor protected BaseDialogResult(@NonNull android.os.Parcel); 1313 method public static void addToBundle(@NonNull android.credentials.selection.BaseDialogResult, @NonNull android.os.Bundle); 1314 method public int describeContents(); 1315 method @Nullable public static android.credentials.selection.BaseDialogResult fromResultData(@NonNull android.os.Bundle); 1316 method @Deprecated @Nullable public android.os.IBinder getRequestToken(); 1317 method public void writeToParcel(@NonNull android.os.Parcel, int); 1318 field @NonNull public static final android.os.Parcelable.Creator<android.credentials.selection.BaseDialogResult> CREATOR; 1319 field public static final int RESULT_CODE_CANCELED_AND_LAUNCHED_SETTINGS = 1; // 0x1 1320 field public static final int RESULT_CODE_DATA_PARSING_FAILURE = 3; // 0x3 1321 field public static final int RESULT_CODE_DIALOG_COMPLETE_WITH_SELECTION = 2; // 0x2 1322 field public static final int RESULT_CODE_DIALOG_USER_CANCELED = 0; // 0x0 1323 } 1324 1325 @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") public final class CreateCredentialProviderData extends android.credentials.selection.ProviderData implements android.os.Parcelable { 1326 ctor public CreateCredentialProviderData(@NonNull String, @NonNull java.util.List<android.credentials.selection.Entry>, @Nullable android.credentials.selection.Entry); 1327 method @Nullable public android.credentials.selection.Entry getRemoteEntry(); 1328 method @NonNull public java.util.List<android.credentials.selection.Entry> getSaveEntries(); 1329 field @NonNull public static final android.os.Parcelable.Creator<android.credentials.selection.CreateCredentialProviderData> CREATOR; 1330 } 1331 1332 @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") public static final class CreateCredentialProviderData.Builder { 1333 ctor public CreateCredentialProviderData.Builder(@NonNull String); 1334 method @NonNull public android.credentials.selection.CreateCredentialProviderData build(); 1335 method @NonNull public android.credentials.selection.CreateCredentialProviderData.Builder setRemoteEntry(@Nullable android.credentials.selection.Entry); 1336 method @NonNull public android.credentials.selection.CreateCredentialProviderData.Builder setSaveEntries(@NonNull java.util.List<android.credentials.selection.Entry>); 1337 } 1338 1339 @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") public final class DisabledProviderData extends android.credentials.selection.ProviderData implements android.os.Parcelable { 1340 ctor public DisabledProviderData(@NonNull String); 1341 field @NonNull public static final android.os.Parcelable.Creator<android.credentials.selection.DisabledProviderData> CREATOR; 1342 } 1343 1344 @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") public final class FailureDialogResult extends android.credentials.selection.BaseDialogResult implements android.os.Parcelable { 1345 ctor public FailureDialogResult(@Nullable android.os.IBinder, @Nullable String); 1346 method public static void addToBundle(@NonNull android.credentials.selection.FailureDialogResult, @NonNull android.os.Bundle); 1347 method @Nullable public static android.credentials.selection.FailureDialogResult fromResultData(@NonNull android.os.Bundle); 1348 method @Nullable public String getErrorMessage(); 1349 field @NonNull public static final android.os.Parcelable.Creator<android.credentials.selection.FailureDialogResult> CREATOR; 1350 } 1351 1352 @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") public final class GetCredentialProviderData extends android.credentials.selection.ProviderData implements android.os.Parcelable { 1353 ctor public GetCredentialProviderData(@NonNull String, @NonNull java.util.List<android.credentials.selection.Entry>, @NonNull java.util.List<android.credentials.selection.Entry>, @NonNull java.util.List<android.credentials.selection.AuthenticationEntry>, @Nullable android.credentials.selection.Entry); 1354 method @NonNull public java.util.List<android.credentials.selection.Entry> getActionChips(); 1355 method @NonNull public java.util.List<android.credentials.selection.AuthenticationEntry> getAuthenticationEntries(); 1356 method @NonNull public java.util.List<android.credentials.selection.Entry> getCredentialEntries(); 1357 method @Nullable public android.credentials.selection.Entry getRemoteEntry(); 1358 field @NonNull public static final android.os.Parcelable.Creator<android.credentials.selection.GetCredentialProviderData> CREATOR; 1359 } 1360 1361 @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") public static final class GetCredentialProviderData.Builder { 1362 ctor public GetCredentialProviderData.Builder(@NonNull String); 1363 method @NonNull public android.credentials.selection.GetCredentialProviderData build(); 1364 method @NonNull public android.credentials.selection.GetCredentialProviderData.Builder setActionChips(@NonNull java.util.List<android.credentials.selection.Entry>); 1365 method @NonNull public android.credentials.selection.GetCredentialProviderData.Builder setAuthenticationEntries(@NonNull java.util.List<android.credentials.selection.AuthenticationEntry>); 1366 method @NonNull public android.credentials.selection.GetCredentialProviderData.Builder setCredentialEntries(@NonNull java.util.List<android.credentials.selection.Entry>); 1367 method @NonNull public android.credentials.selection.GetCredentialProviderData.Builder setRemoteEntry(@Nullable android.credentials.selection.Entry); 1368 } 1369 1370 @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") public class IntentFactory { 1371 method @NonNull public static android.content.Intent createCancelUiIntent(@NonNull android.content.Context, @NonNull android.os.IBinder, boolean, @NonNull String); 1372 method @NonNull public static android.content.Intent createCredentialSelectorIntent(@NonNull android.content.Context, @NonNull android.credentials.selection.RequestInfo, @NonNull java.util.ArrayList<android.credentials.selection.ProviderData>, @NonNull java.util.ArrayList<android.credentials.selection.DisabledProviderData>, @NonNull android.os.ResultReceiver); 1373 } 1374 1375 @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") public abstract class ProviderData implements android.os.Parcelable { 1376 ctor public ProviderData(@NonNull String); 1377 ctor protected ProviderData(@NonNull android.os.Parcel); 1378 method public int describeContents(); 1379 method @NonNull public String getProviderFlattenedComponentName(); 1380 method public void writeToParcel(@NonNull android.os.Parcel, int); 1381 field public static final String EXTRA_DISABLED_PROVIDER_DATA_LIST = "android.credentials.selection.extra.DISABLED_PROVIDER_DATA_LIST"; 1382 field public static final String EXTRA_ENABLED_PROVIDER_DATA_LIST = "android.credentials.selection.extra.ENABLED_PROVIDER_DATA_LIST"; 1383 } 1384 1385 @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") public final class RequestInfo implements android.os.Parcelable { 1386 method @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") @NonNull public static android.credentials.selection.RequestInfo newCreateRequestInfo(@NonNull android.os.IBinder, @NonNull android.credentials.CreateCredentialRequest, @NonNull String, boolean, @NonNull java.util.List<java.lang.String>, boolean); 1387 method @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") @NonNull public static android.credentials.selection.RequestInfo newGetRequestInfo(@NonNull android.os.IBinder, @NonNull android.credentials.GetCredentialRequest, @NonNull String, boolean, boolean); 1388 } 1389 1390 @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") public final class RequestToken { 1391 ctor @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") public RequestToken(@NonNull android.os.IBinder); 1392 } 1393 1394 @FlaggedApi("android.credentials.flags.configurable_selector_ui_enabled") public final class UserSelectionDialogResult extends android.credentials.selection.BaseDialogResult implements android.os.Parcelable { 1395 ctor public UserSelectionDialogResult(@Nullable android.os.IBinder, @NonNull String, @NonNull String, @NonNull String); 1396 ctor public UserSelectionDialogResult(@Nullable android.os.IBinder, @NonNull String, @NonNull String, @NonNull String, @Nullable android.credentials.selection.ProviderPendingIntentResponse); 1397 method public static void addToBundle(@NonNull android.credentials.selection.UserSelectionDialogResult, @NonNull android.os.Bundle); 1398 method @Nullable public static android.credentials.selection.UserSelectionDialogResult fromResultData(@NonNull android.os.Bundle); 1399 method @NonNull public String getEntryKey(); 1400 method @NonNull public String getEntrySubkey(); 1401 method @Nullable public android.credentials.selection.ProviderPendingIntentResponse getPendingIntentProviderResponse(); 1402 method @NonNull public String getProviderId(); 1403 field @NonNull public static final android.os.Parcelable.Creator<android.credentials.selection.UserSelectionDialogResult> CREATOR; 1404 } 1405 1406} 1407 1408package android.database.sqlite { 1409 1410 public class SQLiteCompatibilityWalFlags { 1411 method public static void reset(); 1412 } 1413 1414 public final class SQLiteDebug { 1415 method public static void dump(android.util.Printer, String[]); 1416 method public static android.database.sqlite.SQLiteDebug.PagerStats getDatabaseInfo(); 1417 } 1418 1419 public static class SQLiteDebug.DbStats { 1420 ctor public SQLiteDebug.DbStats(@NonNull String, long, long, int, int, int, int, boolean); 1421 field public final boolean arePoolStats; 1422 field public String dbName; 1423 field public long dbSize; 1424 field public int lookaside; 1425 field public long pageSize; 1426 } 1427 1428 public static class SQLiteDebug.PagerStats { 1429 ctor public SQLiteDebug.PagerStats(); 1430 field public java.util.ArrayList<android.database.sqlite.SQLiteDebug.DbStats> dbStats; 1431 field public int largestMemAlloc; 1432 field public int memoryUsed; 1433 field public int pageCacheOverflow; 1434 } 1435 1436 public final class SQLiteDirectCursorDriver implements android.database.sqlite.SQLiteCursorDriver { 1437 ctor public SQLiteDirectCursorDriver(android.database.sqlite.SQLiteDatabase, String, String, android.os.CancellationSignal); 1438 method public void cursorClosed(); 1439 method public void cursorDeactivated(); 1440 method public void cursorRequeried(android.database.Cursor); 1441 method public android.database.Cursor query(android.database.sqlite.SQLiteDatabase.CursorFactory, String[]); 1442 method public void setBindArguments(String[]); 1443 } 1444 1445 public final class SQLiteGlobal { 1446 method public static String getDefaultJournalMode(); 1447 method public static int getDefaultPageSize(); 1448 method public static String getDefaultSyncMode(); 1449 method public static int getIdleConnectionTimeout(); 1450 method public static int getJournalSizeLimit(); 1451 method public static int getWALAutoCheckpoint(); 1452 method public static int getWALConnectionPoolSize(); 1453 method public static String getWALSyncMode(); 1454 method public static int releaseMemory(); 1455 } 1456 1457} 1458 1459package android.graphics { 1460 1461 public final class ImageDecoder implements java.lang.AutoCloseable { 1462 method @AnyThread @NonNull public static android.graphics.ImageDecoder.Source createSource(android.content.res.Resources, @NonNull java.io.InputStream, int); 1463 } 1464 1465 public final class Rect implements android.os.Parcelable { 1466 method public void splitHorizontally(@NonNull android.graphics.Rect...); 1467 method public void splitVertically(@NonNull android.graphics.Rect...); 1468 } 1469 1470 public class Typeface { 1471 method @NonNull public static android.util.Pair<java.util.List<android.graphics.Typeface>,java.util.List<android.graphics.Typeface>> changeDefaultFontForTest(@NonNull java.util.List<android.graphics.Typeface>, @NonNull java.util.List<android.graphics.Typeface>); 1472 method @NonNull public static long[] deserializeFontMap(@NonNull java.nio.ByteBuffer, @NonNull java.util.Map<java.lang.String,android.graphics.Typeface>) throws java.io.IOException; 1473 method @Nullable public static android.os.SharedMemory getSystemFontMapSharedMemory(); 1474 method public void releaseNativeObjectForTest(); 1475 method @NonNull public static android.os.SharedMemory serializeFontMap(@NonNull java.util.Map<java.lang.String,android.graphics.Typeface>) throws android.system.ErrnoException, java.io.IOException; 1476 } 1477 1478} 1479 1480package android.graphics.drawable { 1481 1482 public class AdaptiveIconDrawable extends android.graphics.drawable.Drawable implements android.graphics.drawable.Drawable.Callback { 1483 method public android.graphics.Region getSafeZone(); 1484 field public static final float MASK_SIZE = 100.0f; 1485 } 1486 1487 public class ColorDrawable extends android.graphics.drawable.Drawable { 1488 method public android.graphics.Xfermode getXfermode(); 1489 } 1490 1491 public class RippleDrawable extends android.graphics.drawable.LayerDrawable { 1492 method public float getTargetBackgroundOpacity(); 1493 method public void setBackgroundActive(boolean, boolean, boolean, boolean); 1494 } 1495 1496 public class ShapeDrawable extends android.graphics.drawable.Drawable { 1497 method public void setXfermode(@Nullable android.graphics.Xfermode); 1498 } 1499 1500} 1501 1502package android.graphics.fonts { 1503 1504 public class FontManager { 1505 method @NonNull @RequiresPermission(android.Manifest.permission.UPDATE_FONTS) public android.text.FontConfig getFontConfig(); 1506 method @RequiresPermission(android.Manifest.permission.UPDATE_FONTS) public int updateFontFamily(@NonNull android.graphics.fonts.FontFamilyUpdateRequest, @IntRange(from=0) int); 1507 field public static final int RESULT_ERROR_DOWNGRADING = -5; // 0xfffffffb 1508 field public static final int RESULT_ERROR_FAILED_TO_WRITE_FONT_FILE = -1; // 0xffffffff 1509 field public static final int RESULT_ERROR_FAILED_UPDATE_CONFIG = -6; // 0xfffffffa 1510 field public static final int RESULT_ERROR_FONT_NOT_FOUND = -9; // 0xfffffff7 1511 field public static final int RESULT_ERROR_FONT_UPDATER_DISABLED = -7; // 0xfffffff9 1512 field public static final int RESULT_ERROR_INVALID_FONT_FILE = -3; // 0xfffffffd 1513 field public static final int RESULT_ERROR_INVALID_FONT_NAME = -4; // 0xfffffffc 1514 field public static final int RESULT_ERROR_VERIFICATION_FAILURE = -2; // 0xfffffffe 1515 field public static final int RESULT_ERROR_VERSION_MISMATCH = -8; // 0xfffffff8 1516 field public static final int RESULT_SUCCESS = 0; // 0x0 1517 } 1518 1519} 1520 1521package android.hardware { 1522 1523 @Deprecated public class Camera { 1524 method @Deprecated public static void getCameraInfo(int, @NonNull android.content.Context, boolean, android.hardware.Camera.CameraInfo); 1525 method @Deprecated public static int getNumberOfCameras(@NonNull android.content.Context); 1526 method @Deprecated public static android.hardware.Camera open(int, @NonNull android.content.Context, boolean); 1527 method @Deprecated public final void setPreviewSurface(android.view.Surface) throws java.io.IOException; 1528 } 1529 1530 public final class SensorPrivacyManager { 1531 method @FlaggedApi("com.android.internal.camera.flags.camera_privacy_allowlist") @RequiresPermission(android.Manifest.permission.MANAGE_SENSOR_PRIVACY) public void setCameraPrivacyAllowlist(@NonNull java.util.List<java.lang.String>); 1532 method @RequiresPermission(android.Manifest.permission.MANAGE_SENSOR_PRIVACY) public void setSensorPrivacy(int, int, boolean); 1533 method @FlaggedApi("com.android.internal.camera.flags.camera_privacy_allowlist") @RequiresPermission(android.Manifest.permission.MANAGE_SENSOR_PRIVACY) public void setSensorPrivacyState(int, int, int); 1534 } 1535 1536 public static class SensorPrivacyManager.Sources { 1537 field public static final int DIALOG = 3; // 0x3 1538 field public static final int OTHER = 5; // 0x5 1539 field public static final int QS_TILE = 1; // 0x1 1540 field public static final int SAFETY_CENTER = 6; // 0x6 1541 field public static final int SETTINGS = 2; // 0x2 1542 field public static final int SHELL = 4; // 0x4 1543 } 1544 1545} 1546 1547package android.hardware.biometrics { 1548 1549 public class BiometricManager { 1550 method @NonNull @RequiresPermission(android.Manifest.permission.TEST_BIOMETRIC) public android.hardware.biometrics.BiometricTestSession createTestSession(int); 1551 method @NonNull @RequiresPermission(android.Manifest.permission.TEST_BIOMETRIC) public java.util.List<android.hardware.biometrics.SensorProperties> getSensorProperties(); 1552 method @NonNull @RequiresPermission(android.Manifest.permission.TEST_BIOMETRIC) public String getUiPackage(); 1553 } 1554 1555 public class BiometricPrompt { 1556 method @NonNull public java.util.List<java.lang.Integer> getAllowedSensorIds(); 1557 method public boolean isAllowBackgroundAuthentication(); 1558 } 1559 1560 public static class BiometricPrompt.Builder { 1561 method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.TEST_BIOMETRIC, "android.permission.USE_BIOMETRIC_INTERNAL"}) public android.hardware.biometrics.BiometricPrompt.Builder setAllowBackgroundAuthentication(boolean); 1562 method @FlaggedApi("android.os.allow_private_profile") @NonNull @RequiresPermission(anyOf={android.Manifest.permission.TEST_BIOMETRIC, "android.permission.USE_BIOMETRIC_INTERNAL"}) public android.hardware.biometrics.BiometricPrompt.Builder setAllowBackgroundAuthentication(boolean, boolean); 1563 method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.TEST_BIOMETRIC, "android.permission.USE_BIOMETRIC_INTERNAL"}) public android.hardware.biometrics.BiometricPrompt.Builder setAllowedSensorIds(@NonNull java.util.List<java.lang.Integer>); 1564 } 1565 1566 public class BiometricTestSession implements java.lang.AutoCloseable { 1567 method @RequiresPermission(android.Manifest.permission.TEST_BIOMETRIC) public void acceptAuthentication(int); 1568 method @RequiresPermission(android.Manifest.permission.TEST_BIOMETRIC) public void cleanupInternalState(int); 1569 method @RequiresPermission(android.Manifest.permission.TEST_BIOMETRIC) public void close(); 1570 method @RequiresPermission(android.Manifest.permission.TEST_BIOMETRIC) public void finishEnroll(int); 1571 method @RequiresPermission(android.Manifest.permission.TEST_BIOMETRIC) public void notifyAcquired(int, int); 1572 method @RequiresPermission(android.Manifest.permission.TEST_BIOMETRIC) public void notifyError(int, int); 1573 method @RequiresPermission(android.Manifest.permission.TEST_BIOMETRIC) public void rejectAuthentication(int); 1574 method @RequiresPermission(android.Manifest.permission.TEST_BIOMETRIC) public void startEnroll(int); 1575 } 1576 1577 public class SensorProperties { 1578 method @NonNull public java.util.List<android.hardware.biometrics.SensorProperties.ComponentInfo> getComponentInfo(); 1579 method public int getSensorId(); 1580 method public int getSensorStrength(); 1581 field public static final int STRENGTH_CONVENIENCE = 0; // 0x0 1582 field public static final int STRENGTH_STRONG = 2; // 0x2 1583 field public static final int STRENGTH_WEAK = 1; // 0x1 1584 } 1585 1586 public static final class SensorProperties.ComponentInfo { 1587 method @NonNull public String getComponentId(); 1588 method @NonNull public String getFirmwareVersion(); 1589 method @NonNull public String getHardwareVersion(); 1590 method @NonNull public String getSerialNumber(); 1591 method @NonNull public String getSoftwareVersion(); 1592 } 1593 1594} 1595 1596package android.hardware.camera2 { 1597 1598 public final class CameraManager { 1599 method @NonNull public android.hardware.camera2.CameraCharacteristics getCameraCharacteristics(@NonNull String, boolean) throws android.hardware.camera2.CameraAccessException; 1600 method public String[] getCameraIdListNoLazy() throws android.hardware.camera2.CameraAccessException; 1601 method @RequiresPermission(android.Manifest.permission.CAMERA) public void openCamera(@NonNull String, boolean, @Nullable android.os.Handler, @NonNull android.hardware.camera2.CameraDevice.StateCallback) throws android.hardware.camera2.CameraAccessException; 1602 method @RequiresPermission(allOf={android.Manifest.permission.SYSTEM_CAMERA, android.Manifest.permission.CAMERA}) public void openCamera(@NonNull String, int, @NonNull java.util.concurrent.Executor, @NonNull android.hardware.camera2.CameraDevice.StateCallback) throws android.hardware.camera2.CameraAccessException; 1603 method public static boolean shouldOverrideToPortrait(@Nullable android.content.pm.PackageManager, @Nullable String); 1604 field public static final String LANDSCAPE_TO_PORTRAIT_PROP = "camera.enable_landscape_to_portrait"; 1605 field public static final long OVERRIDE_CAMERA_LANDSCAPE_TO_PORTRAIT = 250678880L; // 0xef10e60L 1606 } 1607 1608 public abstract static class CameraManager.AvailabilityCallback { 1609 method @RequiresPermission(android.Manifest.permission.CAMERA_OPEN_CLOSE_LISTENER) public void onCameraClosed(@NonNull String); 1610 method @RequiresPermission(android.Manifest.permission.CAMERA_OPEN_CLOSE_LISTENER) public void onCameraOpened(@NonNull String, @NonNull String); 1611 } 1612 1613 public abstract class CameraMetadata<TKey> { 1614 field public static final int SENSOR_TEST_PATTERN_MODE_BLACK = 5; // 0x5 1615 } 1616 1617} 1618 1619package android.hardware.camera2.params { 1620 1621 public final class ColorSpaceProfiles { 1622 method @NonNull public java.util.Map<android.graphics.ColorSpace.Named,java.util.Map<java.lang.Integer,java.util.Set<java.lang.Long>>> getProfileMap(); 1623 } 1624 1625 public final class OutputConfiguration implements android.os.Parcelable { 1626 method public void clearColorSpace(); 1627 method @Nullable public android.graphics.ColorSpace getColorSpace(); 1628 method public void setColorSpace(@NonNull android.graphics.ColorSpace.Named); 1629 } 1630 1631} 1632 1633package android.hardware.devicestate { 1634 1635 @FlaggedApi("android.hardware.devicestate.feature.flags.device_state_property_api") public final class DeviceState { 1636 ctor public DeviceState(@NonNull android.hardware.devicestate.DeviceState.Configuration); 1637 field public static final int PROPERTY_POLICY_AVAILABLE_FOR_APP_REQUEST = 8; // 0x8 1638 } 1639 1640 public static final class DeviceState.Configuration implements android.os.Parcelable { 1641 method public int describeContents(); 1642 method public int getIdentifier(); 1643 method @NonNull public String getName(); 1644 method @NonNull public java.util.Set<java.lang.Integer> getPhysicalProperties(); 1645 method @NonNull public java.util.Set<java.lang.Integer> getSystemProperties(); 1646 method public void writeToParcel(@NonNull android.os.Parcel, int); 1647 field @NonNull public static final android.os.Parcelable.Creator<android.hardware.devicestate.DeviceState.Configuration> CREATOR; 1648 } 1649 1650 public static final class DeviceState.Configuration.Builder { 1651 ctor public DeviceState.Configuration.Builder(int, @NonNull String); 1652 method @NonNull public android.hardware.devicestate.DeviceState.Configuration build(); 1653 method @NonNull public android.hardware.devicestate.DeviceState.Configuration.Builder setPhysicalProperties(@NonNull java.util.Set<java.lang.Integer>); 1654 method @NonNull public android.hardware.devicestate.DeviceState.Configuration.Builder setSystemProperties(@NonNull java.util.Set<java.lang.Integer>); 1655 } 1656 1657 @FlaggedApi("android.hardware.devicestate.feature.flags.device_state_property_api") public final class DeviceStateManager { 1658 method @RequiresPermission(android.Manifest.permission.CONTROL_DEVICE_STATE) public void cancelBaseStateOverride(); 1659 method @RequiresPermission(value=android.Manifest.permission.CONTROL_DEVICE_STATE, conditional=true) public void cancelStateRequest(); 1660 method @RequiresPermission(android.Manifest.permission.CONTROL_DEVICE_STATE) public void requestBaseStateOverride(@NonNull android.hardware.devicestate.DeviceStateRequest, @Nullable java.util.concurrent.Executor, @Nullable android.hardware.devicestate.DeviceStateRequest.Callback); 1661 method @RequiresPermission(value=android.Manifest.permission.CONTROL_DEVICE_STATE, conditional=true) public void requestState(@NonNull android.hardware.devicestate.DeviceStateRequest, @Nullable java.util.concurrent.Executor, @Nullable android.hardware.devicestate.DeviceStateRequest.Callback); 1662 field public static final int INVALID_DEVICE_STATE_IDENTIFIER = -1; // 0xffffffff 1663 field public static final int MAXIMUM_DEVICE_STATE_IDENTIFIER = 10000; // 0x2710 1664 field public static final int MINIMUM_DEVICE_STATE_IDENTIFIER = 0; // 0x0 1665 } 1666 1667 public final class DeviceStateRequest { 1668 method public int getFlags(); 1669 method public int getState(); 1670 method @NonNull public static android.hardware.devicestate.DeviceStateRequest.Builder newBuilder(int); 1671 field public static final int FLAG_CANCEL_WHEN_BASE_CHANGES = 1; // 0x1 1672 } 1673 1674 public static final class DeviceStateRequest.Builder { 1675 method @NonNull public android.hardware.devicestate.DeviceStateRequest build(); 1676 method @NonNull public android.hardware.devicestate.DeviceStateRequest.Builder setFlags(int); 1677 } 1678 1679 public static interface DeviceStateRequest.Callback { 1680 method public default void onRequestActivated(@NonNull android.hardware.devicestate.DeviceStateRequest); 1681 method public default void onRequestCanceled(@NonNull android.hardware.devicestate.DeviceStateRequest); 1682 method public default void onRequestSuspended(@NonNull android.hardware.devicestate.DeviceStateRequest); 1683 } 1684 1685} 1686 1687package android.hardware.display { 1688 1689 public class AmbientDisplayConfiguration { 1690 ctor public AmbientDisplayConfiguration(android.content.Context); 1691 method public boolean alwaysOnAvailable(); 1692 method public boolean alwaysOnAvailableForUser(int); 1693 method public boolean alwaysOnEnabled(int); 1694 method public void disableDozeSettings(int); 1695 method public void disableDozeSettings(boolean, int); 1696 method public void restoreDozeSettings(int); 1697 } 1698 1699 public final class ColorDisplayManager { 1700 method @FlaggedApi("android.app.modes_api") @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public boolean isSaturationActivated(); 1701 } 1702 1703 public final class DisplayManager { 1704 method public boolean areUserDisabledHdrTypesAllowed(); 1705 method @RequiresPermission(android.Manifest.permission.MODIFY_USER_PREFERRED_DISPLAY_MODE) public void clearGlobalUserPreferredDisplayMode(); 1706 method @Nullable public android.view.Display.Mode getGlobalUserPreferredDisplayMode(); 1707 method @NonNull public android.hardware.display.HdrConversionMode getHdrConversionModeSetting(); 1708 method @NonNull public int[] getSupportedHdrOutputTypes(); 1709 method @NonNull public int[] getUserDisabledHdrTypes(); 1710 method public boolean isMinimalPostProcessingRequested(int); 1711 method @RequiresPermission(android.Manifest.permission.ACCESS_SURFACE_FLINGER) public void overrideHdrTypes(int, @NonNull int[]); 1712 method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setAreUserDisabledHdrTypesAllowed(boolean); 1713 method @RequiresPermission(android.Manifest.permission.MODIFY_USER_PREFERRED_DISPLAY_MODE) public void setGlobalUserPreferredDisplayMode(@NonNull android.view.Display.Mode); 1714 method @RequiresPermission(android.Manifest.permission.MODIFY_HDR_CONVERSION_MODE) public void setHdrConversionMode(@NonNull android.hardware.display.HdrConversionMode); 1715 method @RequiresPermission(android.Manifest.permission.MODIFY_REFRESH_RATE_SWITCHING_TYPE) public void setRefreshRateSwitchingType(int); 1716 method @RequiresPermission(android.Manifest.permission.OVERRIDE_DISPLAY_MODE_REQUESTS) public void setShouldAlwaysRespectAppRequestedMode(boolean); 1717 method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setUserDisabledHdrTypes(@NonNull int[]); 1718 method @RequiresPermission(android.Manifest.permission.OVERRIDE_DISPLAY_MODE_REQUESTS) public boolean shouldAlwaysRespectAppRequestedMode(); 1719 field public static final String DISPLAY_CATEGORY_REAR = "android.hardware.display.category.REAR"; 1720 field public static final String HDR_OUTPUT_CONTROL_FLAG = "enable_hdr_output_control"; 1721 field public static final int SWITCHING_TYPE_ACROSS_AND_WITHIN_GROUPS = 2; // 0x2 1722 field public static final int SWITCHING_TYPE_NONE = 0; // 0x0 1723 field public static final int SWITCHING_TYPE_RENDER_FRAME_RATE_ONLY = 3; // 0x3 1724 field public static final int SWITCHING_TYPE_WITHIN_GROUPS = 1; // 0x1 1725 field public static final int VIRTUAL_DISPLAY_FLAG_OWN_FOCUS = 16384; // 0x4000 1726 field public static final int VIRTUAL_DISPLAY_FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS = 512; // 0x200 1727 field public static final int VIRTUAL_DISPLAY_FLAG_SUPPORTS_TOUCH = 64; // 0x40 1728 } 1729 1730} 1731 1732package android.hardware.fingerprint { 1733 1734 @Deprecated public class FingerprintManager { 1735 method @Deprecated @NonNull @RequiresPermission(android.Manifest.permission.TEST_BIOMETRIC) public android.hardware.biometrics.BiometricTestSession createTestSession(int); 1736 method @Deprecated @NonNull @RequiresPermission(android.Manifest.permission.TEST_BIOMETRIC) public java.util.List<android.hardware.biometrics.SensorProperties> getSensorProperties(); 1737 } 1738 1739} 1740 1741package android.hardware.hdmi { 1742 1743 public final class HdmiControlServiceWrapper { 1744 ctor public HdmiControlServiceWrapper(); 1745 method @NonNull public android.hardware.hdmi.HdmiControlManager createHdmiControlManager(); 1746 method @BinderThread public void setDeviceTypes(@NonNull int[]); 1747 method @BinderThread public void setPortInfo(@NonNull java.util.List<android.hardware.hdmi.HdmiPortInfo>); 1748 field public static final int DEVICE_PURE_CEC_SWITCH = 6; // 0x6 1749 } 1750 1751} 1752 1753package android.hardware.input { 1754 1755 public final class InputDeviceIdentifier implements android.os.Parcelable { 1756 ctor public InputDeviceIdentifier(@NonNull String, int, int); 1757 method public int describeContents(); 1758 method @NonNull public String getDescriptor(); 1759 method public int getProductId(); 1760 method public int getVendorId(); 1761 method public void writeToParcel(@NonNull android.os.Parcel, int); 1762 field @NonNull public static final android.os.Parcelable.Creator<android.hardware.input.InputDeviceIdentifier> CREATOR; 1763 } 1764 1765 public final class InputManager { 1766 method public void addUniqueIdAssociation(@NonNull String, @NonNull String); 1767 method @RequiresPermission(android.Manifest.permission.REMAP_MODIFIER_KEYS) public void clearAllModifierKeyRemappings(); 1768 method @Nullable public String getCurrentKeyboardLayoutForInputDevice(@NonNull android.hardware.input.InputDeviceIdentifier); 1769 method @NonNull public java.util.List<java.lang.String> getKeyboardLayoutDescriptorsForInputDevice(@NonNull android.view.InputDevice); 1770 method @NonNull public String getKeyboardLayoutTypeForLayoutDescriptor(@NonNull String); 1771 method @NonNull @RequiresPermission(android.Manifest.permission.REMAP_MODIFIER_KEYS) public java.util.Map<java.lang.Integer,java.lang.Integer> getModifierKeyRemapping(); 1772 method public int getMousePointerSpeed(); 1773 method @RequiresPermission(android.Manifest.permission.REMAP_MODIFIER_KEYS) public void remapModifierKey(int, int); 1774 method @RequiresPermission(android.Manifest.permission.SET_KEYBOARD_LAYOUT) public void removeKeyboardLayoutForInputDevice(@NonNull android.hardware.input.InputDeviceIdentifier, @NonNull String); 1775 method public void removeUniqueIdAssociation(@NonNull String); 1776 method @RequiresPermission(android.Manifest.permission.SET_KEYBOARD_LAYOUT) public void setCurrentKeyboardLayoutForInputDevice(@NonNull android.hardware.input.InputDeviceIdentifier, @NonNull String); 1777 field public static final long BLOCK_UNTRUSTED_TOUCHES = 158002302L; // 0x96aec7eL 1778 } 1779 1780 public class InputSettings { 1781 method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public static void setMaximumObscuringOpacityForTouch(@NonNull android.content.Context, @FloatRange(from=0, to=1) float); 1782 field public static final int DEFAULT_POINTER_SPEED = 0; // 0x0 1783 } 1784 1785 public class VirtualKeyboard implements java.io.Closeable { 1786 method public int getInputDeviceId(); 1787 } 1788 1789} 1790 1791package android.hardware.lights { 1792 1793 public final class Light implements android.os.Parcelable { 1794 method public int getCapabilities(); 1795 } 1796 1797 public abstract class LightsManager { 1798 method @NonNull public abstract android.hardware.lights.LightsManager.LightsSession openSession(int); 1799 } 1800 1801} 1802 1803package android.hardware.location { 1804 1805 public final class ContextHubManager { 1806 method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_CONTEXT_HUB) public boolean disableTestMode(); 1807 method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_CONTEXT_HUB) public boolean enableTestMode(); 1808 method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_CONTEXT_HUB) public long[] getPreloadedNanoAppIds(@NonNull android.hardware.location.ContextHubInfo); 1809 } 1810 1811} 1812 1813package android.hardware.soundtrigger { 1814 1815 public class KeyphraseEnrollmentInfo { 1816 ctor public KeyphraseEnrollmentInfo(@NonNull android.content.pm.PackageManager); 1817 method @Nullable public android.hardware.soundtrigger.KeyphraseMetadata getKeyphraseMetadata(@NonNull String, @NonNull java.util.Locale); 1818 method @Nullable public android.content.Intent getManageKeyphraseIntent(int, @NonNull String, @NonNull java.util.Locale); 1819 method @NonNull public String getParseError(); 1820 method @NonNull public java.util.Collection<android.hardware.soundtrigger.KeyphraseMetadata> listKeyphraseMetadata(); 1821 field public static final int MANAGE_ACTION_ENROLL = 0; // 0x0 1822 field public static final int MANAGE_ACTION_RE_ENROLL = 1; // 0x1 1823 field public static final int MANAGE_ACTION_UN_ENROLL = 2; // 0x2 1824 } 1825 1826 public final class KeyphraseMetadata implements android.os.Parcelable { 1827 ctor public KeyphraseMetadata(int, @NonNull String, @NonNull java.util.Set<java.util.Locale>, int); 1828 method public int describeContents(); 1829 method public int getId(); 1830 method @NonNull public String getKeyphrase(); 1831 method public int getRecognitionModeFlags(); 1832 method @NonNull public java.util.Set<java.util.Locale> getSupportedLocales(); 1833 method public boolean supportsLocale(@Nullable java.util.Locale); 1834 method public boolean supportsPhrase(@Nullable String); 1835 method public void writeToParcel(@NonNull android.os.Parcel, int); 1836 field @NonNull public static final android.os.Parcelable.Creator<android.hardware.soundtrigger.KeyphraseMetadata> CREATOR; 1837 } 1838 1839 public class SoundTrigger { 1840 field public static final int MODEL_PARAM_INVALID = -1; // 0xffffffff 1841 field public static final int MODEL_PARAM_THRESHOLD_FACTOR = 0; // 0x0 1842 } 1843 1844 public static final class SoundTrigger.KeyphraseRecognitionExtra implements android.os.Parcelable { 1845 ctor public SoundTrigger.KeyphraseRecognitionExtra(int, int, int); 1846 } 1847 1848 public static final class SoundTrigger.ModelParamRange implements android.os.Parcelable { 1849 ctor public SoundTrigger.ModelParamRange(int, int); 1850 } 1851 1852 public static final class SoundTrigger.ModuleProperties implements android.os.Parcelable { 1853 ctor public SoundTrigger.ModuleProperties(int, @NonNull String, @NonNull String, @NonNull String, int, @NonNull String, int, int, int, int, boolean, int, boolean, int, boolean, int); 1854 } 1855 1856 public static final class SoundTrigger.RecognitionConfig implements android.os.Parcelable { 1857 ctor public SoundTrigger.RecognitionConfig(boolean, boolean, @Nullable android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra[], @Nullable byte[], int); 1858 ctor public SoundTrigger.RecognitionConfig(boolean, boolean, @Nullable android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra[], @Nullable byte[]); 1859 method public int describeContents(); 1860 method public void writeToParcel(@NonNull android.os.Parcel, int); 1861 field @NonNull public static final android.os.Parcelable.Creator<android.hardware.soundtrigger.SoundTrigger.RecognitionConfig> CREATOR; 1862 field public final boolean allowMultipleTriggers; 1863 field public final int audioCapabilities; 1864 field public final boolean captureRequested; 1865 field @NonNull public final byte[] data; 1866 field @NonNull public final android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra[] keyphrases; 1867 } 1868 1869 public static class SoundTrigger.RecognitionEvent { 1870 ctor public SoundTrigger.RecognitionEvent(int, int, boolean, int, int, int, boolean, @NonNull android.media.AudioFormat, @Nullable byte[], long); 1871 } 1872 1873} 1874 1875package android.hardware.usb { 1876 1877 public final class UsbPort { 1878 method @FlaggedApi("android.hardware.usb.flags.enable_is_mode_change_supported_api") @RequiresPermission(android.Manifest.permission.MANAGE_USB) public boolean isModeChangeSupported(); 1879 } 1880 1881} 1882 1883package android.inputmethodservice { 1884 1885 public abstract class AbstractInputMethodService extends android.window.WindowProviderService implements android.view.KeyEvent.Callback { 1886 method public final int getInitialDisplayId(); 1887 method @Nullable public final android.os.Bundle getWindowContextOptions(); 1888 method public final int getWindowType(); 1889 } 1890 1891 @UiContext public class InputMethodService extends android.inputmethodservice.AbstractInputMethodService { 1892 field public static final long DISALLOW_INPUT_METHOD_INTERFACE_OVERRIDE = 148086656L; // 0x8d39f80L 1893 field public static final long FINISH_INPUT_NO_FALLBACK_CONNECTION = 156215187L; // 0x94fa793L 1894 } 1895 1896} 1897 1898package android.media { 1899 1900 public final class AudioAttributes implements android.os.Parcelable { 1901 method public static int[] getSdkUsages(); 1902 method @NonNull public static String usageToXsdString(int); 1903 method public static int xsdStringToUsage(@NonNull String); 1904 } 1905 1906 public final class AudioDeviceInfo { 1907 method public static void enforceValidAudioDeviceTypeIn(int); 1908 method public static void enforceValidAudioDeviceTypeOut(int); 1909 } 1910 1911 public final class AudioFocusRequest { 1912 method @Nullable public android.media.AudioManager.OnAudioFocusChangeListener getOnAudioFocusChangeListener(); 1913 } 1914 1915 public final class AudioFormat implements android.os.Parcelable { 1916 method public static int channelCountFromInChannelMask(int); 1917 method public static int channelCountFromOutChannelMask(int); 1918 method public static int getBytesPerSample(int); 1919 method public static boolean isEncodingLinearPcm(int); 1920 } 1921 1922 public final class AudioHalVersionInfo implements java.lang.Comparable<android.media.AudioHalVersionInfo> android.os.Parcelable { 1923 method public int compareTo(@NonNull android.media.AudioHalVersionInfo); 1924 method public int describeContents(); 1925 method public int getHalType(); 1926 method public int getMajorVersion(); 1927 method public int getMinorVersion(); 1928 method public void writeToParcel(@NonNull android.os.Parcel, int); 1929 field @NonNull public static final android.media.AudioHalVersionInfo AIDL_1_0; 1930 field public static final int AUDIO_HAL_TYPE_AIDL = 1; // 0x1 1931 field public static final int AUDIO_HAL_TYPE_HIDL = 0; // 0x0 1932 field @NonNull public static final android.os.Parcelable.Creator<android.media.AudioHalVersionInfo> CREATOR; 1933 field @NonNull public static final android.media.AudioHalVersionInfo HIDL_2_0; 1934 field @NonNull public static final android.media.AudioHalVersionInfo HIDL_4_0; 1935 field @NonNull public static final android.media.AudioHalVersionInfo HIDL_5_0; 1936 field @NonNull public static final android.media.AudioHalVersionInfo HIDL_6_0; 1937 field @NonNull public static final android.media.AudioHalVersionInfo HIDL_7_0; 1938 field @NonNull public static final android.media.AudioHalVersionInfo HIDL_7_1; 1939 field @NonNull public static final java.util.List<android.media.AudioHalVersionInfo> VERSIONS; 1940 } 1941 1942 public class AudioManager { 1943 method @RequiresPermission("android.permission.QUERY_AUDIO_STATE") public int abandonAudioFocusForTest(@NonNull android.media.AudioFocusRequest, @NonNull String); 1944 method @FlaggedApi("android.media.audio.focus_freeze_test_api") @RequiresPermission("Manifest.permission.MODIFY_AUDIO_SETTINGS_PRIVILEGED") public boolean enterAudioFocusFreezeForTest(@NonNull java.util.List<java.lang.Integer>); 1945 method @FlaggedApi("android.media.audio.focus_freeze_test_api") @RequiresPermission("Manifest.permission.MODIFY_AUDIO_SETTINGS_PRIVILEGED") public boolean exitAudioFocusFreezeForTest(); 1946 method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_SETTINGS_PRIVILEGED) public void forceComputeCsdOnAllDevices(boolean); 1947 method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_SETTINGS_PRIVILEGED) public void forceUseFrameworkMel(boolean); 1948 method @NonNull @RequiresPermission(android.Manifest.permission.CALL_AUDIO_INTERCEPTION) public android.media.AudioRecord getCallDownlinkExtractionAudioRecord(@NonNull android.media.AudioFormat); 1949 method @NonNull @RequiresPermission(android.Manifest.permission.CALL_AUDIO_INTERCEPTION) public android.media.AudioTrack getCallUplinkInjectionAudioTrack(@NonNull android.media.AudioFormat); 1950 method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_SETTINGS_PRIVILEGED) public float getCsd(); 1951 method @Nullable public static android.media.AudioDeviceInfo getDeviceInfoFromType(int); 1952 method @IntRange(from=0) @RequiresPermission("android.permission.QUERY_AUDIO_STATE") public long getFadeOutDurationOnFocusLossMillis(@NonNull android.media.AudioAttributes); 1953 method @FlaggedApi("android.media.audio.focus_freeze_test_api") @NonNull @RequiresPermission("android.permission.QUERY_AUDIO_STATE") public java.util.List<java.lang.Integer> getFocusDuckedUidsForTest(); 1954 method @FlaggedApi("android.media.audio.focus_freeze_test_api") @RequiresPermission("android.permission.QUERY_AUDIO_STATE") public long getFocusFadeOutDurationForTest(); 1955 method @FlaggedApi("android.media.audio.focus_freeze_test_api") @RequiresPermission("android.permission.QUERY_AUDIO_STATE") public long getFocusUnmuteDelayAfterFadeOutForTest(); 1956 method @Nullable public static android.media.AudioHalVersionInfo getHalVersion(); 1957 method public static final int[] getPublicStreamTypes(); 1958 method @FlaggedApi("android.media.audiopolicy.audio_mix_test_api") @NonNull public java.util.List<android.media.audiopolicy.AudioMix> getRegisteredPolicyMixes(); 1959 method @NonNull public java.util.List<java.lang.Integer> getReportedSurroundFormats(); 1960 method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_SETTINGS_PRIVILEGED) public float getRs2Value(); 1961 method public int getStreamMinVolumeInt(int); 1962 method @NonNull public java.util.Map<java.lang.Integer,java.lang.Boolean> getSurroundFormats(); 1963 method public boolean hasRegisteredDynamicPolicy(); 1964 method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_SETTINGS_PRIVILEGED) public boolean isCsdEnabled(); 1965 method @RequiresPermission(anyOf={android.Manifest.permission.MODIFY_AUDIO_ROUTING, android.Manifest.permission.QUERY_AUDIO_STATE, android.Manifest.permission.MODIFY_AUDIO_SETTINGS_PRIVILEGED}) public boolean isFullVolumeDevice(); 1966 method @RequiresPermission(android.Manifest.permission.CALL_AUDIO_INTERCEPTION) public boolean isPstnCallAudioInterceptable(); 1967 method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_SETTINGS_PRIVILEGED) public boolean isVolumeControlUsingVolumeGroups(); 1968 method @RequiresPermission("android.permission.QUERY_AUDIO_STATE") public int requestAudioFocusForTest(@NonNull android.media.AudioFocusRequest, @NonNull String, int, int); 1969 method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_SETTINGS_PRIVILEGED) public void setCsd(float); 1970 method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_SETTINGS_PRIVILEGED) public void setNotifAliasRingForTest(boolean); 1971 method public void setRampingRingerEnabled(boolean); 1972 method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_SETTINGS_PRIVILEGED) public void setRs2Value(float); 1973 method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public void setTestDeviceConnectionState(@NonNull android.media.AudioDeviceAttributes, boolean); 1974 method @FlaggedApi("android.media.audio.focus_exclusive_with_recording") @RequiresPermission(android.Manifest.permission.QUERY_AUDIO_STATE) public boolean shouldNotificationSoundPlay(@NonNull android.media.AudioAttributes); 1975 } 1976 1977 public static final class AudioRecord.MetricsConstants { 1978 field public static final String ATTRIBUTES = "android.media.audiorecord.attributes"; 1979 field public static final String CHANNEL_MASK = "android.media.audiorecord.channelMask"; 1980 field public static final String DURATION_MS = "android.media.audiorecord.durationMs"; 1981 field public static final String FRAME_COUNT = "android.media.audiorecord.frameCount"; 1982 field public static final String PORT_ID = "android.media.audiorecord.portId"; 1983 field public static final String START_COUNT = "android.media.audiorecord.startCount"; 1984 } 1985 1986 public final class AudioRecordingConfiguration implements android.os.Parcelable { 1987 ctor public AudioRecordingConfiguration(int, int, int, android.media.AudioFormat, android.media.AudioFormat, int, String, int, boolean, int, android.media.audiofx.AudioEffect.Descriptor[], android.media.audiofx.AudioEffect.Descriptor[]); 1988 ctor public AudioRecordingConfiguration(int, int, int, android.media.AudioFormat, android.media.AudioFormat, int, String); 1989 } 1990 1991 public class AudioSystem { 1992 method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_SETTINGS) public static float getMasterBalance(); 1993 method public static final int getNumStreamTypes(); 1994 method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_SETTINGS) public static int setMasterBalance(float); 1995 method @NonNull public static String streamToString(int); 1996 field public static final int DEVICE_ROLE_DISABLED = 2; // 0x2 1997 field public static final int DEVICE_ROLE_NONE = 0; // 0x0 1998 field public static final int DEVICE_ROLE_PREFERRED = 1; // 0x1 1999 field public static final int DIRECT_BITSTREAM_SUPPORTED = 4; // 0x4 2000 field public static final int DIRECT_OFFLOAD_GAPLESS_SUPPORTED = 3; // 0x3 2001 field public static final int DIRECT_OFFLOAD_SUPPORTED = 1; // 0x1 2002 field public static final int OFFLOAD_GAPLESS_SUPPORTED = 2; // 0x2 2003 field public static final int OFFLOAD_SUPPORTED = 1; // 0x1 2004 field public static final int STREAM_DEFAULT = -1; // 0xffffffff 2005 } 2006 2007 public static final class AudioTrack.MetricsConstants { 2008 field public static final String ATTRIBUTES = "android.media.audiotrack.attributes"; 2009 field public static final String CHANNEL_MASK = "android.media.audiotrack.channelMask"; 2010 field public static final String ENCODING = "android.media.audiotrack.encoding"; 2011 field public static final String FRAME_COUNT = "android.media.audiotrack.frameCount"; 2012 field public static final String PORT_ID = "android.media.audiotrack.portId"; 2013 field public static final String SAMPLE_RATE = "android.media.audiotrack.sampleRate"; 2014 } 2015 2016 public abstract class Image implements java.lang.AutoCloseable { 2017 ctor protected Image(); 2018 } 2019 2020 public abstract static class Image.Plane { 2021 ctor protected Image.Plane(); 2022 } 2023 2024 public final class MediaCas implements java.lang.AutoCloseable { 2025 method public void forceResourceLost(); 2026 method public boolean isAidlHal(); 2027 } 2028 2029 public static final class MediaCodecInfo.VideoCapabilities.PerformancePoint { 2030 ctor public MediaCodecInfo.VideoCapabilities.PerformancePoint(int, int, int, int, @NonNull android.util.Size); 2031 ctor public MediaCodecInfo.VideoCapabilities.PerformancePoint(@NonNull android.media.MediaCodecInfo.VideoCapabilities.PerformancePoint, @NonNull android.util.Size); 2032 method public int getMaxFrameRate(); 2033 method public long getMaxMacroBlockRate(); 2034 method public int getMaxMacroBlocks(); 2035 } 2036 2037 public final class MediaDescrambler implements java.lang.AutoCloseable { 2038 method public boolean isAidlHal(); 2039 } 2040 2041 public final class MediaRoute2Info implements android.os.Parcelable { 2042 method @NonNull public String getOriginalId(); 2043 } 2044 2045 public class MediaRouter2.RoutingController { 2046 method @NonNull public String getOriginalId(); 2047 } 2048 2049 public final class PlaybackParams implements android.os.Parcelable { 2050 method public int getAudioStretchMode(); 2051 method public android.media.PlaybackParams setAudioStretchMode(int); 2052 } 2053 2054 public static final class VolumeShaper.Configuration.Builder { 2055 method @NonNull public android.media.VolumeShaper.Configuration.Builder setOptionFlags(int); 2056 } 2057 2058} 2059 2060package android.media.audiofx { 2061 2062 public class AudioEffect { 2063 method public static int byteArrayToInt(byte[]); 2064 method public static short byteArrayToShort(byte[]); 2065 method public int getParameter(byte[], byte[]) throws java.lang.IllegalStateException; 2066 method public int getParameter(int, byte[]) throws java.lang.IllegalStateException; 2067 method public int getParameter(int, int[]) throws java.lang.IllegalStateException; 2068 method public int getParameter(int, short[]) throws java.lang.IllegalStateException; 2069 method public int getParameter(int[], short[]) throws java.lang.IllegalStateException; 2070 method public static byte[] intToByteArray(int); 2071 method public static boolean isEffectTypeAvailable(java.util.UUID); 2072 method public static boolean isError(int); 2073 method public int setParameter(byte[], byte[]) throws java.lang.IllegalStateException; 2074 method public int setParameter(int, int) throws java.lang.IllegalStateException; 2075 method public int setParameter(int, short) throws java.lang.IllegalStateException; 2076 method public int setParameter(int, byte[]) throws java.lang.IllegalStateException; 2077 method public int setParameter(int[], int[]) throws java.lang.IllegalStateException; 2078 method public int setParameter(int[], byte[]) throws java.lang.IllegalStateException; 2079 method public void setParameterListener(android.media.audiofx.AudioEffect.OnParameterChangeListener); 2080 method public static byte[] shortToByteArray(short); 2081 field public static final java.util.UUID EFFECT_TYPE_NULL; 2082 } 2083 2084 public static class AudioEffect.Descriptor { 2085 ctor public AudioEffect.Descriptor(android.os.Parcel); 2086 method public void writeToParcel(android.os.Parcel); 2087 } 2088 2089 public static interface AudioEffect.OnParameterChangeListener { 2090 method public void onParameterChange(android.media.audiofx.AudioEffect, int, byte[], byte[]); 2091 } 2092 2093} 2094 2095package android.media.audiopolicy { 2096 2097 public class AudioPolicy { 2098 method @FlaggedApi("android.media.audiopolicy.audio_mix_test_api") @NonNull public java.util.List<android.media.audiopolicy.AudioMix> getMixes(); 2099 } 2100 2101 public static class AudioPolicy.Builder { 2102 method @NonNull public android.media.audiopolicy.AudioPolicy.Builder setIsTestFocusPolicy(boolean); 2103 } 2104 2105 public final class AudioProductStrategy implements android.os.Parcelable { 2106 method @NonNull public static android.media.AudioAttributes getDefaultAttributes(); 2107 method public int getLegacyStreamTypeForAudioAttributes(@NonNull android.media.AudioAttributes); 2108 method public int getVolumeGroupIdForAudioAttributes(@NonNull android.media.AudioAttributes); 2109 method public int getVolumeGroupIdForLegacyStreamType(int); 2110 } 2111 2112} 2113 2114package android.media.metrics { 2115 2116 public final class LogSessionId { 2117 ctor public LogSessionId(@NonNull String); 2118 } 2119 2120} 2121 2122package android.media.projection { 2123 2124 public final class MediaProjectionManager { 2125 method @NonNull public android.content.Intent createScreenCaptureIntent(@NonNull android.app.ActivityOptions.LaunchCookie); 2126 } 2127 2128} 2129 2130package android.media.soundtrigger { 2131 2132 public final class SoundTriggerInstrumentation { 2133 method public void setInPhoneCallState(boolean); 2134 method public void setResourceContention(boolean); 2135 method public void triggerOnResourcesAvailable(); 2136 method public void triggerRestart(); 2137 } 2138 2139 public static interface SoundTriggerInstrumentation.GlobalCallback { 2140 method public default void onClientAttached(); 2141 method public default void onClientDetached(); 2142 method public default void onFrameworkDetached(); 2143 method public void onModelLoaded(@NonNull android.media.soundtrigger.SoundTriggerInstrumentation.ModelSession); 2144 method public default void onPreempted(); 2145 method public default void onRestarted(); 2146 } 2147 2148 public static interface SoundTriggerInstrumentation.ModelCallback { 2149 method public default void onModelUnloaded(); 2150 method public default void onParamSet(int, int); 2151 method public void onRecognitionStarted(@NonNull android.media.soundtrigger.SoundTriggerInstrumentation.RecognitionSession); 2152 } 2153 2154 public class SoundTriggerInstrumentation.ModelSession { 2155 method public void clearModelCallback(); 2156 method @NonNull public java.util.List<android.hardware.soundtrigger.SoundTrigger.Keyphrase> getPhrases(); 2157 method @NonNull public android.media.soundtrigger.SoundTriggerManager.Model getSoundModel(); 2158 method public boolean isKeyphrase(); 2159 method public void setModelCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.soundtrigger.SoundTriggerInstrumentation.ModelCallback); 2160 method public void triggerUnloadModel(); 2161 } 2162 2163 public static interface SoundTriggerInstrumentation.RecognitionCallback { 2164 method public void onRecognitionStopped(); 2165 } 2166 2167 public class SoundTriggerInstrumentation.RecognitionSession { 2168 method public void clearRecognitionCallback(); 2169 method public int getAudioSession(); 2170 method @NonNull public android.hardware.soundtrigger.SoundTrigger.RecognitionConfig getRecognitionConfig(); 2171 method public void setRecognitionCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.soundtrigger.SoundTriggerInstrumentation.RecognitionCallback); 2172 method public void triggerAbortRecognition(); 2173 method public void triggerRecognitionEvent(@NonNull byte[], @Nullable java.util.List<android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra>); 2174 } 2175 2176 public final class SoundTriggerManager { 2177 method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_SOUND_TRIGGER) public static android.media.soundtrigger.SoundTriggerInstrumentation attachInstrumentation(@NonNull java.util.concurrent.Executor, @NonNull android.media.soundtrigger.SoundTriggerInstrumentation.GlobalCallback); 2178 method @NonNull public android.media.soundtrigger.SoundTriggerManager createManagerForModule(@NonNull android.hardware.soundtrigger.SoundTrigger.ModuleProperties); 2179 method @NonNull public android.media.soundtrigger.SoundTriggerManager createManagerForTestModule(); 2180 method @NonNull public static java.util.List<android.hardware.soundtrigger.SoundTrigger.ModuleProperties> listModuleProperties(); 2181 method @RequiresPermission(android.Manifest.permission.MANAGE_SOUND_TRIGGER) public int loadSoundModel(@NonNull android.hardware.soundtrigger.SoundTrigger.SoundModel); 2182 } 2183 2184 public static class SoundTriggerManager.Model { 2185 method @NonNull public android.hardware.soundtrigger.SoundTrigger.SoundModel getSoundModel(); 2186 } 2187 2188} 2189 2190package android.media.tv { 2191 2192 public final class TvInputManager { 2193 method public void addHardwareDevice(int); 2194 method public void removeHardwareDevice(int); 2195 } 2196 2197 public class TvView extends android.view.ViewGroup { 2198 method public void notifyTvMessage(int, @NonNull android.os.Bundle); 2199 } 2200 2201} 2202 2203package android.media.tv.tuner { 2204 2205 public final class TunerVersionChecker { 2206 method public static int getMajorVersion(int); 2207 method public static int getMinorVersion(int); 2208 method public static boolean isHigherOrEqualVersionTo(int); 2209 method public static boolean supportTunerVersion(int); 2210 } 2211 2212} 2213 2214package android.media.voice { 2215 2216 public final class KeyphraseModelManager { 2217 method @RequiresPermission(android.Manifest.permission.MANAGE_VOICE_KEYPHRASES) public void setModelDatabaseForTestEnabled(boolean); 2218 } 2219 2220} 2221 2222package android.net { 2223 2224 public class NetworkPolicyManager { 2225 method public boolean getRestrictBackground(); 2226 method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidNetworkingBlocked(int, boolean); 2227 method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidRestrictedOnMeteredNetworks(int); 2228 method @NonNull public static String resolveNetworkId(@NonNull android.net.wifi.WifiConfiguration); 2229 method public void setRestrictBackground(boolean); 2230 } 2231 2232 public class NetworkStack { 2233 method public static void setServiceForTest(@Nullable android.os.IBinder); 2234 } 2235 2236 public class NetworkWatchlistManager { 2237 method @Nullable public byte[] getWatchlistConfigHash(); 2238 } 2239 2240} 2241 2242package android.net.wifi.sharedconnectivity.app { 2243 2244 public class SharedConnectivityManager { 2245 method @Nullable public static android.net.wifi.sharedconnectivity.app.SharedConnectivityManager create(@NonNull android.content.Context, @NonNull String, @NonNull String); 2246 method @FlaggedApi("com.android.wifi.flags.shared_connectivity_broadcast_receiver_test_api") @NonNull public android.content.BroadcastReceiver getBroadcastReceiver(); 2247 method @Nullable public android.content.ServiceConnection getServiceConnection(); 2248 method public void setService(@Nullable android.os.IInterface); 2249 } 2250 2251} 2252 2253package android.net.wifi.sharedconnectivity.service { 2254 2255 public abstract class SharedConnectivityService extends android.app.Service { 2256 method public void onBind(); 2257 method public final void setCountdownLatch(@Nullable java.util.concurrent.CountDownLatch); 2258 } 2259 2260} 2261 2262package android.os { 2263 2264 public class BatteryManager { 2265 field public static final int BATTERY_PLUGGED_ANY = 15; // 0xf 2266 } 2267 2268 public final class BatteryStatsManager { 2269 method @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public void resetBattery(boolean); 2270 method @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public void setBatteryLevel(int, boolean); 2271 method @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public void setChargerAcOnline(boolean, boolean); 2272 method @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public void suspendBatteryInput(); 2273 method @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public void unplugBattery(boolean); 2274 } 2275 2276 public final class BugreportParams { 2277 field @FlaggedApi("android.os.bugreport_mode_max_value") public static final int BUGREPORT_MODE_MAX_VALUE = 7; // 0x7 2278 } 2279 2280 public class Build { 2281 method public static boolean is64BitAbi(String); 2282 method public static boolean isDebuggable(); 2283 field @Nullable public static final String BRAND_FOR_ATTESTATION; 2284 field @Nullable public static final String DEVICE_FOR_ATTESTATION; 2285 field public static final boolean IS_EMULATOR; 2286 field @Nullable public static final String MANUFACTURER_FOR_ATTESTATION; 2287 field @Nullable public static final String MODEL_FOR_ATTESTATION; 2288 field @Nullable public static final String PRODUCT_FOR_ATTESTATION; 2289 } 2290 2291 public static class Build.VERSION { 2292 field public static final String[] ACTIVE_CODENAMES; 2293 field public static final int DEVICE_INITIAL_SDK_INT; 2294 field public static final int RESOURCES_SDK_INT; 2295 } 2296 2297 public abstract class CombinedVibration implements android.os.Parcelable { 2298 method public abstract long getDuration(); 2299 method @NonNull public static android.os.CombinedVibration.SequentialCombination startSequential(); 2300 } 2301 2302 public static final class CombinedVibration.Mono extends android.os.CombinedVibration { 2303 method public long getDuration(); 2304 method @NonNull public android.os.VibrationEffect getEffect(); 2305 method public void writeToParcel(@NonNull android.os.Parcel, int); 2306 field @NonNull public static final android.os.Parcelable.Creator<android.os.CombinedVibration.Mono> CREATOR; 2307 } 2308 2309 public static final class CombinedVibration.Sequential extends android.os.CombinedVibration { 2310 method @NonNull public java.util.List<java.lang.Integer> getDelays(); 2311 method public long getDuration(); 2312 method @NonNull public java.util.List<android.os.CombinedVibration> getEffects(); 2313 method public void writeToParcel(@NonNull android.os.Parcel, int); 2314 field @NonNull public static final android.os.Parcelable.Creator<android.os.CombinedVibration.Sequential> CREATOR; 2315 } 2316 2317 public static final class CombinedVibration.SequentialCombination { 2318 method @NonNull public android.os.CombinedVibration.SequentialCombination addNext(int, @NonNull android.os.VibrationEffect); 2319 method @NonNull public android.os.CombinedVibration.SequentialCombination addNext(int, @NonNull android.os.VibrationEffect, int); 2320 method @NonNull public android.os.CombinedVibration.SequentialCombination addNext(@NonNull android.os.CombinedVibration); 2321 method @NonNull public android.os.CombinedVibration.SequentialCombination addNext(@NonNull android.os.CombinedVibration, int); 2322 method @NonNull public android.os.CombinedVibration combine(); 2323 } 2324 2325 public static final class CombinedVibration.Stereo extends android.os.CombinedVibration { 2326 method public long getDuration(); 2327 method @NonNull public android.util.SparseArray<android.os.VibrationEffect> getEffects(); 2328 method public void writeToParcel(@NonNull android.os.Parcel, int); 2329 field @NonNull public static final android.os.Parcelable.Creator<android.os.CombinedVibration.Stereo> CREATOR; 2330 } 2331 2332 public class DeviceIdleManager { 2333 method @NonNull public String[] getSystemPowerWhitelist(); 2334 method @NonNull public String[] getSystemPowerWhitelistExceptIdle(); 2335 } 2336 2337 public class Environment { 2338 method public static java.io.File buildPath(java.io.File, java.lang.String...); 2339 } 2340 2341 public final class FileUtils { 2342 method public static boolean contains(java.io.File, java.io.File); 2343 method @NonNull public static byte[] digest(@NonNull java.io.File, @NonNull String) throws java.io.IOException, java.security.NoSuchAlgorithmException; 2344 method @NonNull public static byte[] digest(@NonNull java.io.InputStream, @NonNull String) throws java.io.IOException, java.security.NoSuchAlgorithmException; 2345 } 2346 2347 public class IpcDataCache<Query, Result> extends android.app.PropertyInvalidatedCache<Query,Result> { 2348 ctor public IpcDataCache(int, @NonNull String, @NonNull String, @NonNull String, @NonNull android.os.IpcDataCache.QueryHandler<Query,Result>); 2349 method public static void disableForCurrentProcess(@NonNull String); 2350 method public static void invalidateCache(@NonNull String, @NonNull String); 2351 field public static final String MODULE_BLUETOOTH = "bluetooth"; 2352 field public static final String MODULE_SYSTEM = "system_server"; 2353 field public static final String MODULE_TEST = "test"; 2354 } 2355 2356 public abstract static class IpcDataCache.QueryHandler<Q, R> extends android.app.PropertyInvalidatedCache.QueryHandler<Q,R> { 2357 ctor public IpcDataCache.QueryHandler(); 2358 } 2359 2360 public final class MessageQueue { 2361 method public int postSyncBarrier(); 2362 method public void removeSyncBarrier(int); 2363 } 2364 2365 public final class NewUserResponse { 2366 ctor public NewUserResponse(@Nullable android.os.UserHandle, int); 2367 } 2368 2369 public final class PackageTagsList implements android.os.Parcelable { 2370 method public boolean contains(@NonNull String, @Nullable String); 2371 method public boolean contains(@NonNull android.os.PackageTagsList); 2372 method public boolean containsAll(@NonNull String); 2373 method public int describeContents(); 2374 method public boolean includes(@NonNull String); 2375 method public boolean isEmpty(); 2376 method public void writeToParcel(@NonNull android.os.Parcel, int); 2377 field @NonNull public static final android.os.Parcelable.Creator<android.os.PackageTagsList> CREATOR; 2378 } 2379 2380 public static final class PackageTagsList.Builder { 2381 ctor public PackageTagsList.Builder(); 2382 ctor public PackageTagsList.Builder(int); 2383 method @NonNull public android.os.PackageTagsList.Builder add(@NonNull String); 2384 method @NonNull public android.os.PackageTagsList.Builder add(@NonNull String, @Nullable String); 2385 method @NonNull public android.os.PackageTagsList.Builder add(@NonNull android.os.PackageTagsList); 2386 method @NonNull public android.os.PackageTagsList.Builder add(@NonNull java.util.Map<java.lang.String,? extends java.util.Set<java.lang.String>>); 2387 method @NonNull public android.os.PackageTagsList build(); 2388 method @NonNull public android.os.PackageTagsList.Builder clear(); 2389 } 2390 2391 public final class Parcel { 2392 method public boolean allowSquashing(); 2393 method public int getFlags(); 2394 method public int readExceptionCode(); 2395 method public void restoreAllowSquashing(boolean); 2396 field public static final int FLAG_IS_REPLY_FROM_BLOCKING_ALLOWED_OBJECT = 1; // 0x1 2397 field public static final int FLAG_PROPAGATE_ALLOW_BLOCKING = 2; // 0x2 2398 } 2399 2400 public class ParcelFileDescriptor implements java.io.Closeable android.os.Parcelable { 2401 method public static java.io.File getFile(java.io.FileDescriptor) throws java.io.IOException; 2402 } 2403 2404 public static class PerformanceHintManager.Session implements java.io.Closeable { 2405 method @Nullable public int[] getThreadIds(); 2406 method public void sendHint(int); 2407 field public static final int CPU_LOAD_DOWN = 1; // 0x1 2408 field public static final int CPU_LOAD_RESET = 2; // 0x2 2409 field public static final int CPU_LOAD_RESUME = 3; // 0x3 2410 field public static final int CPU_LOAD_UP = 0; // 0x0 2411 field @FlaggedApi("android.os.adpf_gpu_report_actual_work_duration") public static final int GPU_LOAD_DOWN = 6; // 0x6 2412 field @FlaggedApi("android.os.adpf_gpu_report_actual_work_duration") public static final int GPU_LOAD_RESET = 7; // 0x7 2413 field @FlaggedApi("android.os.adpf_gpu_report_actual_work_duration") public static final int GPU_LOAD_UP = 5; // 0x5 2414 } 2415 2416 public final class PowerManager { 2417 method public boolean areAutoPowerSaveModesEnabled(); 2418 method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_LOW_POWER_STANDBY, android.Manifest.permission.DEVICE_POWER}) public void forceLowPowerStandbyActive(boolean); 2419 method @FlaggedApi("android.os.battery_saver_supported_check_api") public boolean isBatterySaverSupported(); 2420 field public static final String ACTION_ENHANCED_DISCHARGE_PREDICTION_CHANGED = "android.os.action.ENHANCED_DISCHARGE_PREDICTION_CHANGED"; 2421 field @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public static final int SYSTEM_WAKELOCK = -2147483648; // 0x80000000 2422 } 2423 2424 public class Process { 2425 method public static final int getThreadScheduler(int) throws java.lang.IllegalArgumentException; 2426 method public static final int toSdkSandboxUid(int); 2427 field public static final int FIRST_APP_ZYGOTE_ISOLATED_UID = 90000; // 0x15f90 2428 field public static final int FIRST_ISOLATED_UID = 99000; // 0x182b8 2429 field public static final int LAST_APP_ZYGOTE_ISOLATED_UID = 98999; // 0x182b7 2430 field public static final int LAST_ISOLATED_UID = 99999; // 0x1869f 2431 field public static final int NFC_UID = 1027; // 0x403 2432 field public static final int NUM_UIDS_PER_APP_ZYGOTE = 100; // 0x64 2433 field public static final int SDK_SANDBOX_VIRTUAL_UID = 1090; // 0x442 2434 } 2435 2436 public final class StrictMode { 2437 method public static void conditionallyCheckInstanceCounts(); 2438 method public static void setViolationLogger(android.os.StrictMode.ViolationLogger); 2439 } 2440 2441 public static final class StrictMode.ViolationInfo implements android.os.Parcelable { 2442 ctor public StrictMode.ViolationInfo(android.os.Parcel); 2443 ctor public StrictMode.ViolationInfo(android.os.Parcel, boolean); 2444 method public int describeContents(); 2445 method public void dump(android.util.Printer, String); 2446 method public String getStackTrace(); 2447 method public Class<? extends android.os.strictmode.Violation> getViolationClass(); 2448 method public String getViolationDetails(); 2449 method public void writeToParcel(android.os.Parcel, int); 2450 field @NonNull public static final android.os.Parcelable.Creator<android.os.StrictMode.ViolationInfo> CREATOR; 2451 field public String broadcastIntentAction; 2452 field public int durationMillis; 2453 field public int numAnimationsRunning; 2454 field public long numInstances; 2455 field public String[] tags; 2456 field public int violationNumThisLoop; 2457 field public long violationUptimeMillis; 2458 } 2459 2460 public static interface StrictMode.ViolationLogger { 2461 method public void log(android.os.StrictMode.ViolationInfo); 2462 } 2463 2464 public static final class StrictMode.VmPolicy.Builder { 2465 method @NonNull public android.os.StrictMode.VmPolicy.Builder permitIncorrectContextUse(); 2466 } 2467 2468 public final class UserHandle implements android.os.Parcelable { 2469 method public static int getUid(int, int); 2470 method public static int getUserId(int); 2471 method public static boolean isApp(int); 2472 field public static final int MIN_SECONDARY_USER_ID = 10; // 0xa 2473 field public static final int USER_ALL = -1; // 0xffffffff 2474 field public static final int USER_CURRENT = -2; // 0xfffffffe 2475 field public static final int USER_NULL = -10000; // 0xffffd8f0 2476 field public static final int USER_SYSTEM = 0; // 0x0 2477 } 2478 2479 public class UserManager { 2480 method @FlaggedApi("android.os.allow_private_profile") @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS}, conditional=true) public boolean canAddPrivateProfile(); 2481 method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS}) public android.content.pm.UserInfo createProfileForUser(@Nullable String, @NonNull String, int, int, @Nullable String[]); 2482 method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS}) public android.content.pm.UserInfo createRestrictedProfile(@Nullable String); 2483 method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS}) public android.content.pm.UserInfo createUser(@Nullable String, @NonNull String, int); 2484 method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS}) public java.util.List<android.content.pm.UserInfo> getAliveUsers(); 2485 method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS}) public android.os.UserHandle getBootUser(); 2486 method @FlaggedApi("android.multiuser.support_communal_profile") @Nullable @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS, android.Manifest.permission.QUERY_USERS}) public android.os.UserHandle getCommunalProfile(); 2487 method public int getMainDisplayIdAssignedToUser(); 2488 method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS}) public java.util.Set<java.lang.String> getPreInstallableSystemPackages(@NonNull String); 2489 method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS, android.Manifest.permission.QUERY_USERS}) public String getUserType(); 2490 method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS}) public java.util.List<android.content.pm.UserInfo> getUsers(); 2491 method @Deprecated @NonNull @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS}) public java.util.List<android.content.pm.UserInfo> getUsers(boolean, boolean, boolean); 2492 method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS}) public boolean hasBaseUserRestriction(@NonNull String, @NonNull android.os.UserHandle); 2493 method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS}) public boolean isUserTypeEnabled(@NonNull String); 2494 method public boolean isVisibleBackgroundUsersOnDefaultDisplaySupported(); 2495 method public boolean isVisibleBackgroundUsersSupported(); 2496 method @Deprecated @NonNull @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS}) public android.content.pm.UserInfo preCreateUser(@NonNull String) throws android.os.UserManager.UserOperationException; 2497 } 2498 2499 public final class VibrationAttributes implements android.os.Parcelable { 2500 method public int getAudioUsage(); 2501 } 2502 2503 public abstract class VibrationEffect implements android.os.Parcelable { 2504 method @Nullable public abstract long[] computeCreateWaveformOffOnTimingsOrNull(); 2505 method public static android.os.VibrationEffect get(int); 2506 method public static android.os.VibrationEffect get(int, boolean); 2507 method @Nullable public static android.os.VibrationEffect get(android.net.Uri, android.content.Context); 2508 method public abstract long getDuration(); 2509 method @NonNull public static android.os.VibrationEffect.WaveformBuilder startWaveform(); 2510 method @NonNull public static android.os.VibrationEffect.WaveformBuilder startWaveform(@NonNull android.os.VibrationEffect.VibrationParameter); 2511 method @NonNull public static android.os.VibrationEffect.WaveformBuilder startWaveform(@NonNull android.os.VibrationEffect.VibrationParameter, @NonNull android.os.VibrationEffect.VibrationParameter); 2512 field public static final int EFFECT_POP = 4; // 0x4 2513 field public static final int EFFECT_STRENGTH_LIGHT = 0; // 0x0 2514 field public static final int EFFECT_STRENGTH_MEDIUM = 1; // 0x1 2515 field public static final int EFFECT_STRENGTH_STRONG = 2; // 0x2 2516 field public static final int EFFECT_TEXTURE_TICK = 21; // 0x15 2517 field public static final int EFFECT_THUD = 3; // 0x3 2518 field public static final int[] RINGTONES; 2519 } 2520 2521 public static final class VibrationEffect.Composed extends android.os.VibrationEffect { 2522 method @Nullable public long[] computeCreateWaveformOffOnTimingsOrNull(); 2523 method public long getDuration(); 2524 method public int getRepeatIndex(); 2525 method @NonNull public java.util.List<android.os.vibrator.VibrationEffectSegment> getSegments(); 2526 method public void writeToParcel(@NonNull android.os.Parcel, int); 2527 field @NonNull public static final android.os.Parcelable.Creator<android.os.VibrationEffect.Composed> CREATOR; 2528 } 2529 2530 public static final class VibrationEffect.Composition { 2531 method @NonNull public android.os.VibrationEffect.Composition addEffect(@NonNull android.os.VibrationEffect); 2532 method @NonNull public android.os.VibrationEffect.Composition addOffDuration(@NonNull java.time.Duration); 2533 method @NonNull public android.os.VibrationEffect.Composition repeatEffectIndefinitely(@NonNull android.os.VibrationEffect); 2534 } 2535 2536 public static final class VibrationEffect.Composition.UnreachableAfterRepeatingIndefinitelyException extends java.lang.IllegalStateException { 2537 } 2538 2539 public static class VibrationEffect.VibrationParameter { 2540 method @NonNull public static android.os.VibrationEffect.VibrationParameter targetAmplitude(@FloatRange(from=0, to=1) float); 2541 method @NonNull public static android.os.VibrationEffect.VibrationParameter targetFrequency(@FloatRange(from=1) float); 2542 } 2543 2544 public static final class VibrationEffect.WaveformBuilder { 2545 method @NonNull public android.os.VibrationEffect.WaveformBuilder addSustain(@NonNull java.time.Duration); 2546 method @NonNull public android.os.VibrationEffect.WaveformBuilder addTransition(@NonNull java.time.Duration, @NonNull android.os.VibrationEffect.VibrationParameter); 2547 method @NonNull public android.os.VibrationEffect.WaveformBuilder addTransition(@NonNull java.time.Duration, @NonNull android.os.VibrationEffect.VibrationParameter, @NonNull android.os.VibrationEffect.VibrationParameter); 2548 method @NonNull public android.os.VibrationEffect build(); 2549 } 2550 2551 public abstract class Vibrator { 2552 method public int getDefaultVibrationIntensity(int); 2553 method @Nullable public android.os.vibrator.VibratorFrequencyProfile getFrequencyProfile(); 2554 method public boolean hasFrequencyControl(); 2555 field public static final int VIBRATION_INTENSITY_HIGH = 3; // 0x3 2556 field public static final int VIBRATION_INTENSITY_LOW = 1; // 0x1 2557 field public static final int VIBRATION_INTENSITY_MEDIUM = 2; // 0x2 2558 field public static final int VIBRATION_INTENSITY_OFF = 0; // 0x0 2559 } 2560 2561 public class VintfObject { 2562 method public static String[] getHalNamesAndVersions(); 2563 method @NonNull public static String getPlatformSepolicyVersion(); 2564 method public static String getSepolicyVersion(); 2565 method public static Long getTargetFrameworkCompatibilityMatrixVersion(); 2566 method public static java.util.Map<java.lang.String,java.lang.String[]> getVndkSnapshots(); 2567 method public static String[] report(); 2568 } 2569 2570 public class VintfRuntimeInfo { 2571 method public static String getCpuInfo(); 2572 method public static String getHardwareId(); 2573 method public static String getKernelVersion(); 2574 method public static String getNodeName(); 2575 method public static String getOsName(); 2576 method public static String getOsRelease(); 2577 method public static String getOsVersion(); 2578 } 2579 2580 public class WorkSource implements android.os.Parcelable { 2581 method public boolean add(int); 2582 method public boolean add(int, String); 2583 method @Deprecated public android.os.WorkSource addReturningNewbs(android.os.WorkSource); 2584 method @Deprecated public android.os.WorkSource[] setReturningDiffs(android.os.WorkSource); 2585 } 2586 2587} 2588 2589package android.os.health { 2590 2591 public class HealthKeys { 2592 ctor public HealthKeys(); 2593 field public static final int BASE_PACKAGE = 40000; // 0x9c40 2594 field public static final int BASE_PID = 20000; // 0x4e20 2595 field public static final int BASE_PROCESS = 30000; // 0x7530 2596 field public static final int BASE_SERVICE = 50000; // 0xc350 2597 field public static final int BASE_UID = 10000; // 0x2710 2598 field public static final int TYPE_COUNT = 5; // 0x5 2599 field public static final int TYPE_MEASUREMENT = 1; // 0x1 2600 field public static final int TYPE_MEASUREMENTS = 4; // 0x4 2601 field public static final int TYPE_STATS = 2; // 0x2 2602 field public static final int TYPE_TIMER = 0; // 0x0 2603 field public static final int TYPE_TIMERS = 3; // 0x3 2604 field public static final int UNKNOWN_KEY = 0; // 0x0 2605 } 2606 2607 @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.FIELD}) public static @interface HealthKeys.Constant { 2608 method public abstract int type(); 2609 } 2610 2611 public static class HealthKeys.Constants { 2612 ctor public HealthKeys.Constants(Class); 2613 method public String getDataType(); 2614 method public int getIndex(int, int); 2615 method public int[] getKeys(int); 2616 method public int getSize(int); 2617 } 2618 2619 public class HealthStats { 2620 ctor public HealthStats(android.os.Parcel); 2621 } 2622 2623 public class HealthStatsParceler implements android.os.Parcelable { 2624 ctor public HealthStatsParceler(android.os.health.HealthStatsWriter); 2625 ctor public HealthStatsParceler(android.os.Parcel); 2626 method public int describeContents(); 2627 method public android.os.health.HealthStats getHealthStats(); 2628 method public void writeToParcel(android.os.Parcel, int); 2629 field @NonNull public static final android.os.Parcelable.Creator<android.os.health.HealthStatsParceler> CREATOR; 2630 } 2631 2632 public class HealthStatsWriter { 2633 ctor public HealthStatsWriter(android.os.health.HealthKeys.Constants); 2634 method public void addMeasurement(int, long); 2635 method public void addMeasurements(int, String, long); 2636 method public void addStats(int, String, android.os.health.HealthStatsWriter); 2637 method public void addTimer(int, int, long); 2638 method public void addTimers(int, String, android.os.health.TimerStat); 2639 method public void flattenToParcel(android.os.Parcel); 2640 } 2641 2642} 2643 2644package android.os.storage { 2645 2646 public final class CrateInfo implements android.os.Parcelable { 2647 ctor public CrateInfo(@NonNull CharSequence, long); 2648 ctor public CrateInfo(@NonNull CharSequence); 2649 method @Nullable public static android.os.storage.CrateInfo copyFrom(int, @Nullable String, @Nullable String); 2650 method public int describeContents(); 2651 method public long getExpirationMillis(); 2652 method @NonNull public CharSequence getLabel(); 2653 method public void writeToParcel(@Nullable android.os.Parcel, int); 2654 field @NonNull public static final android.os.Parcelable.Creator<android.os.storage.CrateInfo> CREATOR; 2655 } 2656 2657 public class StorageManager { 2658 method public long computeStorageCacheBytes(@NonNull java.io.File); 2659 method @NonNull public static java.util.UUID convert(@Nullable String); 2660 method @NonNull public static String convert(@NonNull java.util.UUID); 2661 method @Nullable public String getCloudMediaProvider(); 2662 method public boolean isAppIoBlocked(@NonNull java.util.UUID, int, int, int); 2663 field public static final String CACHE_RESERVE_PERCENT_HIGH_KEY = "cache_reserve_percent_high"; 2664 field public static final String CACHE_RESERVE_PERCENT_LOW_KEY = "cache_reserve_percent_low"; 2665 field public static final String STORAGE_THRESHOLD_PERCENT_HIGH_KEY = "storage_threshold_percent_high"; 2666 } 2667 2668 public final class StorageVolume implements android.os.Parcelable { 2669 method public String getPath(); 2670 } 2671 2672 public static final class StorageVolume.Builder { 2673 ctor public StorageVolume.Builder(@NonNull String, @NonNull java.io.File, @NonNull String, @NonNull android.os.UserHandle, @NonNull String); 2674 method @NonNull public android.os.storage.StorageVolume build(); 2675 method @NonNull public android.os.storage.StorageVolume.Builder setEmulated(boolean); 2676 method @NonNull public android.os.storage.StorageVolume.Builder setPrimary(boolean); 2677 method @NonNull public android.os.storage.StorageVolume.Builder setRemovable(boolean); 2678 method @NonNull public android.os.storage.StorageVolume.Builder setStorageUuid(@Nullable java.util.UUID); 2679 method @NonNull public android.os.storage.StorageVolume.Builder setUuid(@Nullable String); 2680 } 2681 2682} 2683 2684package android.os.vibrator { 2685 2686 public final class PrebakedSegment extends android.os.vibrator.VibrationEffectSegment { 2687 method public int describeContents(); 2688 method public long getDuration(); 2689 method public int getEffectId(); 2690 method public int getEffectStrength(); 2691 method public boolean shouldFallback(); 2692 method public void writeToParcel(@NonNull android.os.Parcel, int); 2693 field @NonNull public static final android.os.Parcelable.Creator<android.os.vibrator.PrebakedSegment> CREATOR; 2694 } 2695 2696 public final class PrimitiveSegment extends android.os.vibrator.VibrationEffectSegment { 2697 method public int describeContents(); 2698 method public int getDelay(); 2699 method public long getDuration(); 2700 method public int getPrimitiveId(); 2701 method public float getScale(); 2702 method public void writeToParcel(@NonNull android.os.Parcel, int); 2703 field @NonNull public static final android.os.Parcelable.Creator<android.os.vibrator.PrimitiveSegment> CREATOR; 2704 } 2705 2706 public final class RampSegment extends android.os.vibrator.VibrationEffectSegment { 2707 method public int describeContents(); 2708 method public long getDuration(); 2709 method public float getEndAmplitude(); 2710 method public float getEndFrequencyHz(); 2711 method public float getStartAmplitude(); 2712 method public float getStartFrequencyHz(); 2713 method public void writeToParcel(@NonNull android.os.Parcel, int); 2714 field @NonNull public static final android.os.Parcelable.Creator<android.os.vibrator.RampSegment> CREATOR; 2715 } 2716 2717 public final class StepSegment extends android.os.vibrator.VibrationEffectSegment { 2718 method public int describeContents(); 2719 method public float getAmplitude(); 2720 method public long getDuration(); 2721 method public float getFrequencyHz(); 2722 method public void writeToParcel(@NonNull android.os.Parcel, int); 2723 field @NonNull public static final android.os.Parcelable.Creator<android.os.vibrator.StepSegment> CREATOR; 2724 } 2725 2726 public abstract class VibrationEffectSegment implements android.os.Parcelable { 2727 method public abstract long getDuration(); 2728 field @NonNull public static final android.os.Parcelable.Creator<android.os.vibrator.VibrationEffectSegment> CREATOR; 2729 } 2730 2731 public final class VibratorFrequencyProfile { 2732 method public float getMaxAmplitudeMeasurementInterval(); 2733 method @FloatRange(from=0, to=1) @NonNull public float[] getMaxAmplitudeMeasurements(); 2734 method public float getMaxFrequency(); 2735 method public float getMinFrequency(); 2736 } 2737 2738} 2739 2740package android.os.vibrator.persistence { 2741 2742 public class ParsedVibration { 2743 method @NonNull public java.util.List<android.os.VibrationEffect> getVibrationEffects(); 2744 method @Nullable public android.os.VibrationEffect resolve(@NonNull android.os.Vibrator); 2745 } 2746 2747 public final class VibrationXmlParser { 2748 method @Nullable public static android.os.vibrator.persistence.ParsedVibration parseDocument(@NonNull java.io.Reader) throws java.io.IOException; 2749 method @Nullable public static android.os.VibrationEffect parseVibrationEffect(@NonNull java.io.Reader) throws java.io.IOException; 2750 } 2751 2752 public final class VibrationXmlSerializer { 2753 method public static void serialize(@NonNull android.os.VibrationEffect, @NonNull java.io.Writer) throws java.io.IOException, android.os.vibrator.persistence.VibrationXmlSerializer.SerializationFailedException; 2754 } 2755 2756 public static final class VibrationXmlSerializer.SerializationFailedException extends java.lang.RuntimeException { 2757 } 2758 2759} 2760 2761package android.permission { 2762 2763 public final class PermissionControllerManager { 2764 method @RequiresPermission(android.Manifest.permission.GET_RUNTIME_PERMISSIONS) public void countPermissionApps(@NonNull java.util.List<java.lang.String>, int, @NonNull android.permission.PermissionControllerManager.OnCountPermissionAppsResultCallback, @Nullable android.os.Handler); 2765 method @RequiresPermission(android.Manifest.permission.GET_RUNTIME_PERMISSIONS) public void getAppPermissions(@NonNull String, @NonNull android.permission.PermissionControllerManager.OnGetAppPermissionResultCallback, @Nullable android.os.Handler); 2766 method @RequiresPermission(android.Manifest.permission.REVOKE_RUNTIME_PERMISSIONS) public void revokeRuntimePermission(@NonNull String, @NonNull String); 2767 } 2768 2769 public static interface PermissionControllerManager.OnCountPermissionAppsResultCallback { 2770 method public void onCountPermissionApps(int); 2771 } 2772 2773 public static interface PermissionControllerManager.OnGetAppPermissionResultCallback { 2774 method public void onGetAppPermissions(@NonNull java.util.List<android.permission.RuntimePermissionPresentationInfo>); 2775 } 2776 2777 public final class PermissionManager { 2778 method @NonNull @RequiresPermission(android.Manifest.permission.GET_APP_OPS_STATS) public java.util.List<android.permission.PermissionGroupUsage> getIndicatorAppOpUsageData(); 2779 method @NonNull @RequiresPermission(android.Manifest.permission.GET_APP_OPS_STATS) public java.util.List<android.permission.PermissionGroupUsage> getIndicatorAppOpUsageData(boolean); 2780 method @FlaggedApi("android.permission.flags.should_register_attribution_source") public boolean isRegisteredAttributionSource(@NonNull android.content.AttributionSource); 2781 method @NonNull public android.content.AttributionSource registerAttributionSource(@NonNull android.content.AttributionSource); 2782 method @RequiresPermission(android.Manifest.permission.REVOKE_POST_NOTIFICATIONS_WITHOUT_KILL) public void revokePostNotificationPermissionWithoutKillForTest(@NonNull String, int); 2783 } 2784 2785} 2786 2787package android.print { 2788 2789 public final class PrintJobInfo implements android.os.Parcelable { 2790 method public float getProgress(); 2791 method @Nullable public CharSequence getStatus(@NonNull android.content.pm.PackageManager); 2792 } 2793 2794 public final class PrinterInfo implements android.os.Parcelable { 2795 method @Nullable public android.graphics.drawable.Drawable loadIcon(@NonNull android.content.Context); 2796 } 2797 2798} 2799 2800package android.provider { 2801 2802 public interface AndroidDeviceConfig { 2803 field public static final String KEY_SYSTEM_GESTURES_EXCLUDED_BY_PRE_Q_STICKY_IMMERSIVE = "system_gestures_excluded_by_pre_q_sticky_immersive"; 2804 field public static final String KEY_SYSTEM_GESTURE_EXCLUSION_LIMIT_DP = "system_gesture_exclusion_limit_dp"; 2805 } 2806 2807 public static final class CalendarContract.Calendars implements android.provider.BaseColumns android.provider.CalendarContract.CalendarColumns android.provider.CalendarContract.SyncColumns { 2808 field public static final String[] SYNC_WRITABLE_COLUMNS; 2809 } 2810 2811 public static final class CalendarContract.Events implements android.provider.BaseColumns android.provider.CalendarContract.CalendarColumns android.provider.CalendarContract.EventsColumns android.provider.CalendarContract.SyncColumns { 2812 field public static final String[] SYNC_WRITABLE_COLUMNS; 2813 } 2814 2815 public final class ContactsContract { 2816 field public static final String HIDDEN_COLUMN_PREFIX = "x_"; 2817 } 2818 2819 public static final class ContactsContract.PinnedPositions { 2820 field public static final String UNDEMOTE_METHOD = "undemote"; 2821 } 2822 2823 public static final class ContactsContract.RawContactsEntity implements android.provider.BaseColumns android.provider.ContactsContract.DataColumns android.provider.ContactsContract.RawContactsColumns { 2824 field public static final android.net.Uri CORP_CONTENT_URI; 2825 } 2826 2827 public interface InputMethodManagerDeviceConfig { 2828 field public static final String KEY_HIDE_IME_WHEN_NO_EDITOR_FOCUS = "hide_ime_when_no_editor_focus"; 2829 } 2830 2831 public final class Settings { 2832 field public static final int RESET_MODE_PACKAGE_DEFAULTS = 1; // 0x1 2833 } 2834 2835 public static final class Settings.Global extends android.provider.Settings.NameValueTable { 2836 field public static final String APP_OPS_CONSTANTS = "app_ops_constants"; 2837 field public static final String ARE_USER_DISABLED_HDR_FORMATS_ALLOWED = "are_user_disabled_hdr_formats_allowed"; 2838 field public static final String AUTOMATIC_POWER_SAVE_MODE = "automatic_power_save_mode"; 2839 field public static final String BATTERY_SAVER_CONSTANTS = "battery_saver_constants"; 2840 field public static final String DEVELOPMENT_ENABLE_NON_RESIZABLE_MULTI_WINDOW = "enable_non_resizable_multi_window"; 2841 field public static final String DISABLE_WINDOW_BLURS = "disable_window_blurs"; 2842 field public static final String DYNAMIC_POWER_SAVINGS_DISABLE_THRESHOLD = "dynamic_power_savings_disable_threshold"; 2843 field public static final String DYNAMIC_POWER_SAVINGS_ENABLED = "dynamic_power_savings_enabled"; 2844 field public static final String HDR_CONVERSION_MODE = "hdr_conversion_mode"; 2845 field public static final String HDR_FORCE_CONVERSION_TYPE = "hdr_force_conversion_type"; 2846 field public static final String HIDDEN_API_BLACKLIST_EXEMPTIONS = "hidden_api_blacklist_exemptions"; 2847 field public static final String HIDDEN_API_POLICY = "hidden_api_policy"; 2848 field public static final String HIDE_ERROR_DIALOGS = "hide_error_dialogs"; 2849 field @Deprecated public static final String LOCATION_IGNORE_SETTINGS_PACKAGE_WHITELIST = "location_ignore_settings_package_whitelist"; 2850 field public static final String LOW_POWER_MODE = "low_power"; 2851 field public static final String LOW_POWER_MODE_STICKY = "low_power_sticky"; 2852 field @Deprecated public static final String NOTIFICATION_BUBBLES = "notification_bubbles"; 2853 field public static final String OVERLAY_DISPLAY_DEVICES = "overlay_display_devices"; 2854 field public static final String SHOW_FIRST_CRASH_DIALOG = "show_first_crash_dialog"; 2855 field public static final String USER_DISABLED_HDR_FORMATS = "user_disabled_hdr_formats"; 2856 field public static final String USER_PREFERRED_REFRESH_RATE = "user_preferred_refresh_rate"; 2857 field public static final String USER_PREFERRED_RESOLUTION_HEIGHT = "user_preferred_resolution_height"; 2858 field public static final String USER_PREFERRED_RESOLUTION_WIDTH = "user_preferred_resolution_width"; 2859 field @Deprecated public static final String USE_OPEN_WIFI_PACKAGE = "use_open_wifi_package"; 2860 } 2861 2862 public static final class Settings.Secure extends android.provider.Settings.NameValueTable { 2863 field public static final String ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED = "accessibility_display_magnification_enabled"; 2864 field public static final String ACCESSIBILITY_MAGNIFICATION_CAPABILITY = "accessibility_magnification_capability"; 2865 field public static final String ACCESSIBILITY_MAGNIFICATION_MODE = "accessibility_magnification_mode"; 2866 field public static final int ACCESSIBILITY_MAGNIFICATION_MODE_ALL = 3; // 0x3 2867 field public static final int ACCESSIBILITY_MAGNIFICATION_MODE_FULLSCREEN = 1; // 0x1 2868 field public static final int ACCESSIBILITY_MAGNIFICATION_MODE_WINDOW = 2; // 0x2 2869 field public static final String ACCESSIBILITY_SHORTCUT_TARGET_SERVICE = "accessibility_shortcut_target_service"; 2870 field public static final String ANR_SHOW_BACKGROUND = "anr_show_background"; 2871 field public static final String AUTOFILL_SERVICE = "autofill_service"; 2872 field public static final String BIOMETRIC_VIRTUAL_ENABLED = "biometric_virtual_enabled"; 2873 field public static final String CONTENT_CAPTURE_ENABLED = "content_capture_enabled"; 2874 field public static final String DISABLED_PRINT_SERVICES = "disabled_print_services"; 2875 field @Deprecated public static final String ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES = "enabled_notification_policy_access_packages"; 2876 field public static final String ENABLED_VR_LISTENERS = "enabled_vr_listeners"; 2877 field public static final String IMMERSIVE_MODE_CONFIRMATIONS = "immersive_mode_confirmations"; 2878 field public static final String NOTIFICATION_BADGING = "notification_badging"; 2879 field public static final String NOTIFICATION_BUBBLES = "notification_bubbles"; 2880 field public static final String POWER_MENU_LOCKED_SHOW_CONTENT = "power_menu_locked_show_content"; 2881 field public static final String SELECTED_SPELL_CHECKER = "selected_spell_checker"; 2882 field public static final String SELECTED_SPELL_CHECKER_SUBTYPE = "selected_spell_checker_subtype"; 2883 field public static final String SHOW_FIRST_CRASH_DIALOG_DEV_OPTION = "show_first_crash_dialog_dev_option"; 2884 field public static final String SHOW_IME_WITH_HARD_KEYBOARD = "show_ime_with_hard_keyboard"; 2885 field public static final String STYLUS_BUTTONS_ENABLED = "stylus_buttons_enabled"; 2886 field public static final int STYLUS_HANDWRITING_DEFAULT_VALUE = 1; // 0x1 2887 field public static final String STYLUS_HANDWRITING_ENABLED = "stylus_handwriting_enabled"; 2888 field @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public static final String SYNC_PARENT_SOUNDS = "sync_parent_sounds"; 2889 field public static final String VOICE_INTERACTION_SERVICE = "voice_interaction_service"; 2890 } 2891 2892 public static final class Settings.System extends android.provider.Settings.NameValueTable { 2893 field public static final String POINTER_SPEED = "pointer_speed"; 2894 } 2895 2896 public static final class Telephony.Sms.Intents { 2897 field public static final String SMS_CARRIER_PROVISION_ACTION = "android.provider.Telephony.SMS_CARRIER_PROVISION"; 2898 } 2899 2900 public static final class VoicemailContract.Voicemails implements android.provider.BaseColumns android.provider.OpenableColumns { 2901 field public static final String _DATA = "_data"; 2902 } 2903 2904} 2905 2906package android.security { 2907 2908 public final class KeyChain { 2909 method @RequiresPermission("android.permission.MANAGE_CREDENTIAL_MANAGEMENT_APP") @WorkerThread public static boolean setCredentialManagementApp(@NonNull android.content.Context, @NonNull String, @NonNull android.security.AppUriAuthenticationPolicy); 2910 } 2911 2912 public class KeyStoreException extends java.lang.Exception { 2913 method public int getErrorCode(); 2914 method public static boolean hasFailureInfoForError(int); 2915 } 2916 2917} 2918 2919package android.security.keystore { 2920 2921 public static final class KeyGenParameterSpec.Builder { 2922 method @NonNull public android.security.keystore.KeyGenParameterSpec.Builder setUniqueIdIncluded(boolean); 2923 } 2924 2925 public final class KeyProtection implements java.security.KeyStore.ProtectionParameter { 2926 method public long getBoundToSpecificSecureUserId(); 2927 } 2928 2929 public static final class KeyProtection.Builder { 2930 method public android.security.keystore.KeyProtection.Builder setBoundToSpecificSecureUserId(long); 2931 } 2932 2933} 2934 2935package android.service.autofill { 2936 2937 public final class CharSequenceTransformation extends android.service.autofill.InternalTransformation implements android.os.Parcelable android.service.autofill.Transformation { 2938 method public void apply(@NonNull android.service.autofill.ValueFinder, @NonNull android.widget.RemoteViews, int) throws java.lang.Exception; 2939 } 2940 2941 public final class CompositeUserData implements android.os.Parcelable { 2942 ctor public CompositeUserData(@Nullable android.service.autofill.UserData, @NonNull android.service.autofill.UserData); 2943 method public int describeContents(); 2944 method public String[] getCategoryIds(); 2945 method public android.os.Bundle getDefaultFieldClassificationArgs(); 2946 method @Nullable public String getFieldClassificationAlgorithm(); 2947 method @Nullable public String getFieldClassificationAlgorithmForCategory(@NonNull String); 2948 method public android.util.ArrayMap<java.lang.String,java.lang.String> getFieldClassificationAlgorithms(); 2949 method public android.util.ArrayMap<java.lang.String,android.os.Bundle> getFieldClassificationArgs(); 2950 method public String[] getValues(); 2951 method public void writeToParcel(android.os.Parcel, int); 2952 field @NonNull public static final android.os.Parcelable.Creator<android.service.autofill.CompositeUserData> CREATOR; 2953 } 2954 2955 public final class CustomDescription implements android.os.Parcelable { 2956 method @Nullable public android.util.SparseArray<android.service.autofill.InternalOnClickAction> getActions(); 2957 } 2958 2959 public final class Dataset implements android.os.Parcelable { 2960 method @Nullable public android.content.IntentSender getAuthentication(); 2961 method @Nullable public java.util.ArrayList<java.lang.String> getAutofillDatatypes(); 2962 method @Nullable public android.content.ClipData getFieldContent(); 2963 method @Nullable public android.widget.RemoteViews getFieldDialogPresentation(int); 2964 method @Nullable public java.util.ArrayList<android.view.autofill.AutofillId> getFieldIds(); 2965 method @Nullable public android.service.autofill.InlinePresentation getFieldInlinePresentation(int); 2966 method @Nullable public android.service.autofill.InlinePresentation getFieldInlineTooltipPresentation(int); 2967 method @Nullable public android.widget.RemoteViews getFieldPresentation(int); 2968 method @Nullable public java.util.ArrayList<android.view.autofill.AutofillValue> getFieldValues(); 2969 method @Nullable public android.service.autofill.Dataset.DatasetFieldFilter getFilter(int); 2970 method @Nullable public String getId(); 2971 method public boolean isEmpty(); 2972 } 2973 2974 public static final class Dataset.Builder { 2975 method @NonNull public android.service.autofill.Dataset.Builder setContent(@NonNull android.view.autofill.AutofillId, @Nullable android.content.ClipData); 2976 } 2977 2978 public static final class Dataset.DatasetFieldFilter implements android.os.Parcelable { 2979 method public int describeContents(); 2980 method @Nullable public java.util.regex.Pattern getPattern(); 2981 method public void writeToParcel(@NonNull android.os.Parcel, int); 2982 field @NonNull public static final android.os.Parcelable.Creator<android.service.autofill.Dataset.DatasetFieldFilter> CREATOR; 2983 } 2984 2985 public final class DateTransformation extends android.service.autofill.InternalTransformation implements android.os.Parcelable android.service.autofill.Transformation { 2986 method public void apply(@NonNull android.service.autofill.ValueFinder, @NonNull android.widget.RemoteViews, int) throws java.lang.Exception; 2987 } 2988 2989 public final class DateValueSanitizer extends android.service.autofill.InternalSanitizer implements android.os.Parcelable android.service.autofill.Sanitizer { 2990 method @Nullable public android.view.autofill.AutofillValue sanitize(@NonNull android.view.autofill.AutofillValue); 2991 } 2992 2993 public final class FillResponse implements android.os.Parcelable { 2994 method @NonNull public java.util.Set<android.service.assist.classification.FieldClassification> getDetectedFieldClassifications(); 2995 method public int getFlags(); 2996 } 2997 2998 public final class ImageTransformation extends android.service.autofill.InternalTransformation implements android.os.Parcelable android.service.autofill.Transformation { 2999 method public void apply(@NonNull android.service.autofill.ValueFinder, @NonNull android.widget.RemoteViews, int) throws java.lang.Exception; 3000 } 3001 3002 public abstract class InternalOnClickAction implements android.service.autofill.OnClickAction android.os.Parcelable { 3003 ctor public InternalOnClickAction(); 3004 method public abstract void onClick(@NonNull android.view.ViewGroup); 3005 } 3006 3007 public abstract class InternalSanitizer implements android.os.Parcelable android.service.autofill.Sanitizer { 3008 ctor public InternalSanitizer(); 3009 method @Nullable public abstract android.view.autofill.AutofillValue sanitize(@NonNull android.view.autofill.AutofillValue); 3010 } 3011 3012 public abstract class InternalTransformation implements android.os.Parcelable android.service.autofill.Transformation { 3013 ctor public InternalTransformation(); 3014 method public static boolean batchApply(@NonNull android.service.autofill.ValueFinder, @NonNull android.widget.RemoteViews, @NonNull java.util.ArrayList<android.util.Pair<java.lang.Integer,android.service.autofill.InternalTransformation>>); 3015 } 3016 3017 public abstract class InternalValidator implements android.os.Parcelable android.service.autofill.Validator { 3018 ctor public InternalValidator(); 3019 method public abstract boolean isValid(@NonNull android.service.autofill.ValueFinder); 3020 } 3021 3022 public final class LuhnChecksumValidator extends android.service.autofill.InternalValidator implements android.os.Parcelable android.service.autofill.Validator { 3023 method public boolean isValid(@NonNull android.service.autofill.ValueFinder); 3024 } 3025 3026 public final class RegexValidator extends android.service.autofill.InternalValidator implements android.os.Parcelable android.service.autofill.Validator { 3027 method public boolean isValid(@NonNull android.service.autofill.ValueFinder); 3028 } 3029 3030 public final class TextValueSanitizer extends android.service.autofill.InternalSanitizer implements android.os.Parcelable android.service.autofill.Sanitizer { 3031 method @Nullable public android.view.autofill.AutofillValue sanitize(@NonNull android.view.autofill.AutofillValue); 3032 } 3033 3034 public final class UserData implements android.os.Parcelable { 3035 method public android.util.ArrayMap<java.lang.String,java.lang.String> getFieldClassificationAlgorithms(); 3036 } 3037 3038 public interface ValueFinder { 3039 method @Nullable public default String findByAutofillId(@NonNull android.view.autofill.AutofillId); 3040 method @Nullable public android.view.autofill.AutofillValue findRawValueByAutofillId(@NonNull android.view.autofill.AutofillId); 3041 } 3042 3043 public final class VisibilitySetterAction extends android.service.autofill.InternalOnClickAction implements android.service.autofill.OnClickAction android.os.Parcelable { 3044 method public void onClick(@NonNull android.view.ViewGroup); 3045 } 3046 3047} 3048 3049package android.service.autofill.augmented { 3050 3051 public final class FillRequest { 3052 method @NonNull public android.content.ComponentName getActivityComponent(); 3053 method @NonNull public android.view.autofill.AutofillId getFocusedId(); 3054 method @NonNull public android.view.autofill.AutofillValue getFocusedValue(); 3055 method @Nullable public android.app.assist.AssistStructure.ViewNode getFocusedViewNode(); 3056 method @Nullable public android.view.inputmethod.InlineSuggestionsRequest getInlineSuggestionsRequest(); 3057 method @Nullable public android.service.autofill.augmented.PresentationParams getPresentationParams(); 3058 method public int getTaskId(); 3059 } 3060 3061} 3062 3063package android.service.chooser { 3064 3065 @FlaggedApi("android.service.chooser.enable_chooser_result") public final class ChooserResult implements android.os.Parcelable { 3066 ctor public ChooserResult(int, @Nullable android.content.ComponentName, boolean); 3067 } 3068 3069} 3070 3071package android.service.dreams { 3072 3073 public abstract class DreamOverlayService extends android.app.Service { 3074 ctor public DreamOverlayService(); 3075 method @Nullable public final android.os.IBinder onBind(@NonNull android.content.Intent); 3076 method public void onEndDream(); 3077 method public abstract void onStartDream(@NonNull android.view.WindowManager.LayoutParams); 3078 method public final void requestExit(); 3079 method public final boolean shouldShowComplications(); 3080 } 3081 3082 public class DreamService extends android.app.Service implements android.view.Window.Callback { 3083 method @Nullable public static android.service.dreams.DreamService.DreamMetadata getDreamMetadata(@NonNull android.content.Context, @Nullable android.content.pm.ServiceInfo); 3084 } 3085 3086 public static final class DreamService.DreamMetadata { 3087 field @FlaggedApi("android.service.controls.flags.home_panel_dream") @NonNull public final int dreamCategory; 3088 field @Nullable public final android.graphics.drawable.Drawable previewImage; 3089 field @Nullable public final android.content.ComponentName settingsActivity; 3090 field @NonNull public final boolean showComplications; 3091 } 3092 3093} 3094 3095package android.service.notification { 3096 3097 @Deprecated public abstract class ConditionProviderService extends android.app.Service { 3098 method @Deprecated public boolean isBound(); 3099 } 3100 3101 @FlaggedApi("android.app.modes_api") public final class ZenDeviceEffects implements android.os.Parcelable { 3102 method @NonNull public java.util.Set<java.lang.String> getExtraEffects(); 3103 } 3104 3105 @FlaggedApi("android.app.modes_api") public static final class ZenDeviceEffects.Builder { 3106 method @NonNull public android.service.notification.ZenDeviceEffects.Builder setExtraEffects(@NonNull java.util.Set<java.lang.String>); 3107 } 3108 3109 public final class ZenPolicy implements android.os.Parcelable { 3110 method @FlaggedApi("android.app.modes_api") @NonNull public android.service.notification.ZenPolicy overwrittenWith(@Nullable android.service.notification.ZenPolicy); 3111 } 3112 3113 public static final class ZenPolicy.Builder { 3114 ctor public ZenPolicy.Builder(@Nullable android.service.notification.ZenPolicy); 3115 } 3116 3117} 3118 3119package android.service.ondeviceintelligence { 3120 3121 @FlaggedApi("android.app.ondeviceintelligence.flags.enable_on_device_intelligence") public abstract class OnDeviceIntelligenceService extends android.app.Service { 3122 method public void onReady(); 3123 } 3124 3125} 3126 3127package android.service.quickaccesswallet { 3128 3129 public interface QuickAccessWalletClient extends java.io.Closeable { 3130 method public void addWalletServiceEventListener(@NonNull android.service.quickaccesswallet.QuickAccessWalletClient.WalletServiceEventListener); 3131 method public void addWalletServiceEventListener(@NonNull java.util.concurrent.Executor, @NonNull android.service.quickaccesswallet.QuickAccessWalletClient.WalletServiceEventListener); 3132 method @NonNull public static android.service.quickaccesswallet.QuickAccessWalletClient create(@NonNull android.content.Context); 3133 method @Nullable public android.content.Intent createWalletIntent(); 3134 method @Nullable public android.content.Intent createWalletSettingsIntent(); 3135 method public void disconnect(); 3136 method public void getWalletCards(@NonNull android.service.quickaccesswallet.GetWalletCardsRequest, @NonNull android.service.quickaccesswallet.QuickAccessWalletClient.OnWalletCardsRetrievedCallback); 3137 method public void getWalletCards(@NonNull java.util.concurrent.Executor, @NonNull android.service.quickaccesswallet.GetWalletCardsRequest, @NonNull android.service.quickaccesswallet.QuickAccessWalletClient.OnWalletCardsRetrievedCallback); 3138 method public void getWalletPendingIntent(@NonNull java.util.concurrent.Executor, @NonNull android.service.quickaccesswallet.QuickAccessWalletClient.WalletPendingIntentCallback); 3139 method public boolean isWalletFeatureAvailable(); 3140 method public boolean isWalletFeatureAvailableWhenDeviceLocked(); 3141 method public boolean isWalletServiceAvailable(); 3142 method public void notifyWalletDismissed(); 3143 method public void removeWalletServiceEventListener(@NonNull android.service.quickaccesswallet.QuickAccessWalletClient.WalletServiceEventListener); 3144 method public void selectWalletCard(@NonNull android.service.quickaccesswallet.SelectWalletCardRequest); 3145 } 3146 3147 public static interface QuickAccessWalletClient.OnWalletCardsRetrievedCallback { 3148 method public void onWalletCardRetrievalError(@NonNull android.service.quickaccesswallet.GetWalletCardsError); 3149 method public void onWalletCardsRetrieved(@NonNull android.service.quickaccesswallet.GetWalletCardsResponse); 3150 } 3151 3152 public static interface QuickAccessWalletClient.WalletPendingIntentCallback { 3153 method public void onWalletPendingIntentRetrieved(@Nullable android.app.PendingIntent); 3154 } 3155 3156 public static interface QuickAccessWalletClient.WalletServiceEventListener { 3157 method public void onWalletServiceEvent(@NonNull android.service.quickaccesswallet.WalletServiceEvent); 3158 } 3159 3160} 3161 3162package android.service.quicksettings { 3163 3164 public class TileService extends android.app.Service { 3165 method public static boolean isQuickSettingsSupported(); 3166 } 3167 3168} 3169 3170package android.service.voice { 3171 3172 public class AlwaysOnHotwordDetector implements android.service.voice.HotwordDetector { 3173 method public void overrideAvailability(int); 3174 method public void resetAvailability(); 3175 method @RequiresPermission(allOf={android.Manifest.permission.RECORD_AUDIO, android.Manifest.permission.CAPTURE_AUDIO_HOTWORD}) public void triggerHardwareRecognitionEventForTest(int, int, long, boolean, int, int, int, boolean, @NonNull android.media.AudioFormat, @Nullable byte[], @NonNull java.util.List<android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra>); 3176 } 3177 3178 public static final class AlwaysOnHotwordDetector.EventPayload.Builder { 3179 ctor public AlwaysOnHotwordDetector.EventPayload.Builder(); 3180 method @NonNull public android.service.voice.AlwaysOnHotwordDetector.EventPayload build(); 3181 method @NonNull public android.service.voice.AlwaysOnHotwordDetector.EventPayload.Builder setAudioStream(@NonNull android.os.ParcelFileDescriptor); 3182 method @NonNull public android.service.voice.AlwaysOnHotwordDetector.EventPayload.Builder setCaptureAudioFormat(@NonNull android.media.AudioFormat); 3183 method @NonNull public android.service.voice.AlwaysOnHotwordDetector.EventPayload.Builder setCaptureAvailable(boolean); 3184 method @NonNull public android.service.voice.AlwaysOnHotwordDetector.EventPayload.Builder setCaptureSession(int); 3185 method @NonNull public android.service.voice.AlwaysOnHotwordDetector.EventPayload.Builder setData(@NonNull byte[]); 3186 method @NonNull public android.service.voice.AlwaysOnHotwordDetector.EventPayload.Builder setDataFormat(int); 3187 method @NonNull public android.service.voice.AlwaysOnHotwordDetector.EventPayload.Builder setHalEventReceivedMillis(long); 3188 method @NonNull public android.service.voice.AlwaysOnHotwordDetector.EventPayload.Builder setHotwordDetectedResult(@NonNull android.service.voice.HotwordDetectedResult); 3189 method @FlaggedApi("android.app.wearable.enable_hotword_wearable_sensing_api") @NonNull public android.service.voice.AlwaysOnHotwordDetector.EventPayload.Builder setIsRecognitionStopped(boolean); 3190 method @NonNull public android.service.voice.AlwaysOnHotwordDetector.EventPayload.Builder setKeyphraseRecognitionExtras(@NonNull java.util.List<android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra>); 3191 } 3192 3193 public abstract class HotwordDetectionService extends android.app.Service implements android.service.voice.SandboxedDetectionInitializer { 3194 field public static final boolean ENABLE_PROXIMITY_RESULT = true; 3195 } 3196 3197 public final class HotwordDetectionServiceFailure implements android.os.Parcelable { 3198 ctor public HotwordDetectionServiceFailure(int, @NonNull String); 3199 } 3200 3201 public final class SoundTriggerFailure implements android.os.Parcelable { 3202 ctor public SoundTriggerFailure(int, @NonNull String); 3203 } 3204 3205 public final class VisibleActivityInfo implements android.os.Parcelable { 3206 ctor public VisibleActivityInfo(int, @NonNull android.os.IBinder); 3207 } 3208 3209 public final class VisualQueryDetectionServiceFailure implements android.os.Parcelable { 3210 ctor public VisualQueryDetectionServiceFailure(int, @NonNull String); 3211 } 3212 3213 public class VoiceInteractionService extends android.app.Service { 3214 method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_HOTWORD_DETECTION) public final android.service.voice.AlwaysOnHotwordDetector createAlwaysOnHotwordDetectorForTest(@NonNull String, @NonNull java.util.Locale, @NonNull android.hardware.soundtrigger.SoundTrigger.ModuleProperties, @NonNull java.util.concurrent.Executor, @NonNull android.service.voice.AlwaysOnHotwordDetector.Callback); 3215 method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_HOTWORD_DETECTION) public final android.service.voice.AlwaysOnHotwordDetector createAlwaysOnHotwordDetectorForTest(@NonNull String, @NonNull java.util.Locale, @Nullable android.os.PersistableBundle, @Nullable android.os.SharedMemory, @NonNull android.hardware.soundtrigger.SoundTrigger.ModuleProperties, @NonNull java.util.concurrent.Executor, @NonNull android.service.voice.AlwaysOnHotwordDetector.Callback); 3216 method @NonNull public final java.util.List<android.hardware.soundtrigger.SoundTrigger.ModuleProperties> listModuleProperties(); 3217 method public final void setTestModuleForAlwaysOnHotwordDetectorEnabled(boolean); 3218 } 3219 3220 public static class VoiceInteractionSession.ActivityId { 3221 method @NonNull public android.os.IBinder getAssistToken(); 3222 method public int getTaskId(); 3223 } 3224 3225} 3226 3227package android.service.watchdog { 3228 3229 public abstract class ExplicitHealthCheckService extends android.app.Service { 3230 method public void setCallback(@Nullable android.os.RemoteCallback); 3231 } 3232 3233} 3234 3235package android.speech { 3236 3237 public abstract class RecognitionService extends android.app.Service { 3238 method public void onBindInternal(); 3239 } 3240 3241 public class SpeechRecognizer { 3242 method @MainThread @NonNull public static android.speech.SpeechRecognizer createOnDeviceTestingSpeechRecognizer(@NonNull android.content.Context); 3243 method @RequiresPermission(android.Manifest.permission.MANAGE_SPEECH_RECOGNITION) public void setTemporaryOnDeviceRecognizer(@Nullable android.content.ComponentName); 3244 } 3245 3246} 3247 3248package android.telecom { 3249 3250 public static class Call.Details { 3251 method public String getTelecomCallId(); 3252 } 3253 3254 public final class CallAudioState implements android.os.Parcelable { 3255 ctor public CallAudioState(boolean, int, int, @Nullable android.bluetooth.BluetoothDevice, @NonNull java.util.Collection<android.bluetooth.BluetoothDevice>); 3256 } 3257 3258 public static final class ConnectionRequest.Builder { 3259 ctor public ConnectionRequest.Builder(); 3260 method @NonNull public android.telecom.ConnectionRequest build(); 3261 method @NonNull public android.telecom.ConnectionRequest.Builder setAccountHandle(@NonNull android.telecom.PhoneAccountHandle); 3262 method @NonNull public android.telecom.ConnectionRequest.Builder setAddress(@NonNull android.net.Uri); 3263 method @NonNull public android.telecom.ConnectionRequest.Builder setExtras(@NonNull android.os.Bundle); 3264 method @NonNull public android.telecom.ConnectionRequest.Builder setIsAdhocConferenceCall(boolean); 3265 method @NonNull public android.telecom.ConnectionRequest.Builder setParticipants(@Nullable java.util.List<android.net.Uri>); 3266 method @NonNull public android.telecom.ConnectionRequest.Builder setRttPipeFromInCall(@NonNull android.os.ParcelFileDescriptor); 3267 method @NonNull public android.telecom.ConnectionRequest.Builder setRttPipeToInCall(@NonNull android.os.ParcelFileDescriptor); 3268 method @NonNull public android.telecom.ConnectionRequest.Builder setShouldShowIncomingCallUi(boolean); 3269 method @NonNull public android.telecom.ConnectionRequest.Builder setTelecomCallId(@NonNull String); 3270 method @NonNull public android.telecom.ConnectionRequest.Builder setVideoState(int); 3271 } 3272 3273 public abstract class ConnectionService extends android.app.Service { 3274 method public void onBindClient(@Nullable android.content.Intent); 3275 } 3276 3277} 3278 3279package android.telephony { 3280 3281 public final class BarringInfo implements android.os.Parcelable { 3282 ctor public BarringInfo(@Nullable android.telephony.CellIdentity, @NonNull android.util.SparseArray<android.telephony.BarringInfo.BarringServiceInfo>); 3283 } 3284 3285 public static final class BarringInfo.BarringServiceInfo implements android.os.Parcelable { 3286 ctor public BarringInfo.BarringServiceInfo(int, boolean, int, int); 3287 } 3288 3289 public class MbmsDownloadSession implements java.lang.AutoCloseable { 3290 field public static final String MBMS_DOWNLOAD_SERVICE_OVERRIDE_METADATA = "mbms-download-service-override"; 3291 } 3292 3293 public class MbmsGroupCallSession implements java.lang.AutoCloseable { 3294 field public static final String MBMS_GROUP_CALL_SERVICE_OVERRIDE_METADATA = "mbms-group-call-service-override"; 3295 } 3296 3297 public class MbmsStreamingSession implements java.lang.AutoCloseable { 3298 field public static final String MBMS_STREAMING_SERVICE_OVERRIDE_METADATA = "mbms-streaming-service-override"; 3299 } 3300 3301 public final class ModemActivityInfo implements android.os.Parcelable { 3302 ctor public ModemActivityInfo(long, int, int, @NonNull int[], int); 3303 method public boolean isEmpty(); 3304 method public boolean isValid(); 3305 } 3306 3307 public class PhoneNumberUtils { 3308 method public static int getMinMatchForTest(); 3309 method public static void setMinMatchForTest(int); 3310 } 3311 3312 public final class PreciseDataConnectionState implements android.os.Parcelable { 3313 ctor @Deprecated public PreciseDataConnectionState(int, int, int, @NonNull String, @Nullable android.net.LinkProperties, int); 3314 } 3315 3316 public class ServiceState implements android.os.Parcelable { 3317 method public void addNetworkRegistrationInfo(android.telephony.NetworkRegistrationInfo); 3318 method public int getDataNetworkType(); 3319 method public int getDataRegState(); 3320 method public void setCdmaSystemAndNetworkId(int, int); 3321 method public void setCellBandwidths(int[]); 3322 method public void setChannelNumber(int); 3323 method public void setDataRoamingType(int); 3324 method public void setRilDataRadioTechnology(int); 3325 method public void setRilVoiceRadioTechnology(int); 3326 method public void setVoiceRoamingType(int); 3327 } 3328 3329 public final class SmsManager { 3330 method @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public int checkSmsShortCodeDestination(String, String); 3331 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void clearStorageMonitorMemoryStatusOverride(); 3332 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setStorageMonitorMemoryStatusOverride(boolean); 3333 field public static final int SMS_CATEGORY_FREE_SHORT_CODE = 1; // 0x1 3334 field public static final int SMS_CATEGORY_NOT_SHORT_CODE = 0; // 0x0 3335 field public static final int SMS_CATEGORY_POSSIBLE_PREMIUM_SHORT_CODE = 3; // 0x3 3336 field public static final int SMS_CATEGORY_PREMIUM_SHORT_CODE = 4; // 0x4 3337 field public static final int SMS_CATEGORY_STANDARD_SHORT_CODE = 2; // 0x2 3338 } 3339 3340 public class TelephonyManager { 3341 method public int addDevicePolicyOverrideApn(@NonNull android.content.Context, @NonNull android.telephony.data.ApnSetting); 3342 method public int getCarrierIdListVersion(); 3343 method @NonNull @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public java.util.List<java.lang.String> getCertsFromCarrierPrivilegeAccessRules(); 3344 method @NonNull public java.util.List<android.telephony.data.ApnSetting> getDevicePolicyOverrideApns(@NonNull android.content.Context); 3345 method @NonNull public android.util.Pair<java.lang.Integer,java.lang.Integer> getHalVersion(int); 3346 method @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public String getLine1AlphaTag(); 3347 method @Deprecated public android.util.Pair<java.lang.Integer,java.lang.Integer> getRadioHalVersion(); 3348 method public boolean modifyDevicePolicyOverrideApn(@NonNull android.content.Context, int, @NonNull android.telephony.data.ApnSetting); 3349 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void refreshUiccProfile(); 3350 method @Deprecated public void setCarrierTestOverride(String, String, String, String, String, String, String); 3351 method public void setCarrierTestOverride(String, String, String, String, String, String, String, String, String); 3352 method @FlaggedApi("com.android.server.telecom.flags.telecom_resolve_hidden_dependencies") @RequiresPermission(android.Manifest.permission.BIND_TELECOM_CONNECTION_SERVICE) public void setVoiceServiceStateOverride(boolean); 3353 field public static final int HAL_SERVICE_DATA = 1; // 0x1 3354 field public static final int HAL_SERVICE_IMS = 7; // 0x7 3355 field public static final int HAL_SERVICE_MESSAGING = 2; // 0x2 3356 field public static final int HAL_SERVICE_MODEM = 3; // 0x3 3357 field public static final int HAL_SERVICE_NETWORK = 4; // 0x4 3358 field public static final int HAL_SERVICE_SIM = 5; // 0x5 3359 field public static final int HAL_SERVICE_VOICE = 6; // 0x6 3360 field public static final android.util.Pair HAL_VERSION_UNKNOWN; 3361 field public static final android.util.Pair HAL_VERSION_UNSUPPORTED; 3362 field public static final int UNKNOWN_CARRIER_ID_LIST_VERSION = -1; // 0xffffffff 3363 } 3364 3365} 3366 3367package android.telephony.emergency { 3368 3369 public final class EmergencyNumber implements java.lang.Comparable<android.telephony.emergency.EmergencyNumber> android.os.Parcelable { 3370 field public static final int EMERGENCY_NUMBER_SOURCE_TEST = 32; // 0x20 3371 } 3372 3373} 3374 3375package android.telephony.ims { 3376 3377 public final class ImsCallProfile implements android.os.Parcelable { 3378 field public static final String EXTRA_OEM_EXTRAS = "android.telephony.ims.extra.OEM_EXTRAS"; 3379 } 3380 3381} 3382 3383package android.telephony.ims.feature { 3384 3385 @Deprecated public static class ImsFeature.Capabilities { 3386 field @Deprecated protected int mCapabilities; 3387 } 3388 3389 public static class MmTelFeature.MmTelCapabilities extends android.telephony.ims.feature.ImsFeature.Capabilities { 3390 } 3391 3392} 3393 3394package android.text { 3395 3396 public final class FontConfig implements android.os.Parcelable { 3397 method public int describeContents(); 3398 method @NonNull public java.util.List<android.text.FontConfig.Alias> getAliases(); 3399 method @IntRange(from=0) public int getConfigVersion(); 3400 method @NonNull public java.util.List<android.text.FontConfig.FontFamily> getFontFamilies(); 3401 method public long getLastModifiedTimeMillis(); 3402 method @NonNull public java.util.List<android.text.FontConfig.NamedFamilyList> getNamedFamilyLists(); 3403 method public void writeToParcel(@NonNull android.os.Parcel, int); 3404 field @NonNull public static final android.os.Parcelable.Creator<android.text.FontConfig> CREATOR; 3405 } 3406 3407 public static final class FontConfig.Alias implements android.os.Parcelable { 3408 method public int describeContents(); 3409 method @NonNull public String getName(); 3410 method @NonNull public String getOriginal(); 3411 method @IntRange(from=0, to=1000) public int getWeight(); 3412 method public void writeToParcel(@NonNull android.os.Parcel, int); 3413 field @NonNull public static final android.os.Parcelable.Creator<android.text.FontConfig.Alias> CREATOR; 3414 } 3415 3416 public static final class FontConfig.Font implements android.os.Parcelable { 3417 method public int describeContents(); 3418 method @NonNull public java.io.File getFile(); 3419 method @Nullable public String getFontFamilyName(); 3420 method @NonNull public String getFontVariationSettings(); 3421 method @NonNull public String getPostScriptName(); 3422 method @NonNull public android.graphics.fonts.FontStyle getStyle(); 3423 method public int getTtcIndex(); 3424 method public void writeToParcel(@NonNull android.os.Parcel, int); 3425 field @NonNull public static final android.os.Parcelable.Creator<android.text.FontConfig.Font> CREATOR; 3426 } 3427 3428 public static final class FontConfig.FontFamily implements android.os.Parcelable { 3429 method public int describeContents(); 3430 method @NonNull public java.util.List<android.text.FontConfig.Font> getFontList(); 3431 method @NonNull public android.os.LocaleList getLocaleList(); 3432 method @Deprecated @Nullable public String getName(); 3433 method public int getVariant(); 3434 method public void writeToParcel(@NonNull android.os.Parcel, int); 3435 field @NonNull public static final android.os.Parcelable.Creator<android.text.FontConfig.FontFamily> CREATOR; 3436 field public static final int VARIANT_COMPACT = 1; // 0x1 3437 field public static final int VARIANT_DEFAULT = 0; // 0x0 3438 field public static final int VARIANT_ELEGANT = 2; // 0x2 3439 } 3440 3441 public static final class FontConfig.NamedFamilyList implements android.os.Parcelable { 3442 method public int describeContents(); 3443 method @NonNull public java.util.List<android.text.FontConfig.FontFamily> getFamilies(); 3444 method @NonNull public String getName(); 3445 method public void writeToParcel(@NonNull android.os.Parcel, int); 3446 field @NonNull public static final android.os.Parcelable.Creator<android.text.FontConfig.NamedFamilyList> CREATOR; 3447 } 3448 3449 public class MeasuredParagraph { 3450 method @FlaggedApi("com.android.text.flags.no_break_no_hyphenation_span") @NonNull public static android.text.MeasuredParagraph buildForStaticLayoutTest(@NonNull android.text.TextPaint, @Nullable android.graphics.text.LineBreakConfig, @NonNull CharSequence, @IntRange(from=0) int, @IntRange(from=0) int, @NonNull android.text.TextDirectionHeuristic, int, boolean, @Nullable android.text.MeasuredParagraph.StyleRunCallback); 3451 } 3452 3453 @FlaggedApi("com.android.text.flags.no_break_no_hyphenation_span") public static interface MeasuredParagraph.StyleRunCallback { 3454 method @FlaggedApi("com.android.text.flags.no_break_no_hyphenation_span") public void onAppendReplacementRun(@NonNull android.graphics.Paint, @IntRange(from=0) int, @FloatRange(from=0) @Px float); 3455 method @FlaggedApi("com.android.text.flags.no_break_no_hyphenation_span") public void onAppendStyleRun(@NonNull android.graphics.Paint, @Nullable android.graphics.text.LineBreakConfig, @IntRange(from=0) int, boolean); 3456 } 3457 3458 public static final class Selection.MemoryTextWatcher implements android.text.TextWatcher { 3459 ctor public Selection.MemoryTextWatcher(); 3460 method public void afterTextChanged(android.text.Editable); 3461 method public void beforeTextChanged(CharSequence, int, int, int); 3462 method public void onTextChanged(CharSequence, int, int, int); 3463 } 3464 3465} 3466 3467package android.transition { 3468 3469 public class TransitionManager { 3470 method public android.transition.Transition getTransition(android.transition.Scene); 3471 } 3472 3473} 3474 3475package android.util { 3476 3477 public final class ArraySet<E> implements java.util.Collection<E> java.util.Set<E> { 3478 method public E valueAtUnchecked(int); 3479 } 3480 3481 public class FeatureFlagUtils { 3482 ctor public FeatureFlagUtils(); 3483 method public static java.util.Map<java.lang.String,java.lang.String> getAllFeatureFlags(); 3484 method public static boolean isEnabled(android.content.Context, String); 3485 method public static void setEnabled(android.content.Context, String, boolean); 3486 field public static final String FFLAG_OVERRIDE_PREFIX = "sys.fflag.override."; 3487 field public static final String FFLAG_PREFIX = "sys.fflag."; 3488 field public static final String HEARING_AID_SETTINGS = "settings_bluetooth_hearing_aid"; 3489 field public static final String PERSIST_PREFIX = "persist.sys.fflag.override."; 3490 field public static final String SETTINGS_WIFITRACKER2 = "settings_wifitracker2"; 3491 } 3492 3493 public class SparseArrayMap<K, V> { 3494 ctor public SparseArrayMap(); 3495 method public V add(int, @NonNull K, @Nullable V); 3496 method public void clear(); 3497 method public boolean contains(int, @NonNull K); 3498 method public void delete(int); 3499 method @Nullable public V delete(int, @NonNull K); 3500 method public void forEach(@NonNull java.util.function.Consumer<V>); 3501 method @Nullable public V get(int, @NonNull K); 3502 method @Nullable public V getOrDefault(int, @NonNull K, V); 3503 method public int indexOfKey(int); 3504 method public int indexOfKey(int, @NonNull K); 3505 method public int keyAt(int); 3506 method @NonNull public K keyAt(int, int); 3507 method public int numElementsForKey(int); 3508 method public int numMaps(); 3509 method @Nullable public V valueAt(int, int); 3510 } 3511 3512 public class TimeUtils { 3513 method public static String formatDuration(long); 3514 } 3515 3516} 3517 3518package android.util.proto { 3519 3520 public final class EncodedBuffer { 3521 ctor public EncodedBuffer(); 3522 ctor public EncodedBuffer(int); 3523 method public void dumpBuffers(String); 3524 method public static void dumpByteString(String, String, byte[]); 3525 method public void editRawFixed32(int, int); 3526 method public byte[] getBytes(int); 3527 method public int getChunkCount(); 3528 method public String getDebugString(); 3529 method public int getRawFixed32At(int); 3530 method public static int getRawVarint32Size(int); 3531 method public static int getRawVarint64Size(long); 3532 method public static int getRawZigZag32Size(int); 3533 method public static int getRawZigZag64Size(long); 3534 method public int getReadPos(); 3535 method public int getReadableSize(); 3536 method public int getSize(); 3537 method public int getWriteBufIndex(); 3538 method public int getWriteIndex(); 3539 method public int getWritePos(); 3540 method public byte readRawByte(); 3541 method public int readRawFixed32(); 3542 method public long readRawUnsigned(); 3543 method public void rewindRead(); 3544 method public void rewindWriteTo(int); 3545 method public void skipRead(int); 3546 method public void startEditing(); 3547 method public void writeFromThisBuffer(int, int); 3548 method public void writeRawBuffer(byte[]); 3549 method public void writeRawBuffer(byte[], int, int); 3550 method public void writeRawByte(byte); 3551 method public void writeRawFixed32(int); 3552 method public void writeRawFixed64(long); 3553 method public void writeRawVarint32(int); 3554 method public void writeRawVarint64(long); 3555 method public void writeRawZigZag32(int); 3556 method public void writeRawZigZag64(long); 3557 } 3558 3559 public class ProtoParseException extends java.lang.RuntimeException { 3560 ctor public ProtoParseException(String); 3561 } 3562 3563 public class WireTypeMismatchException extends android.util.proto.ProtoParseException { 3564 ctor public WireTypeMismatchException(String); 3565 } 3566 3567} 3568 3569package android.view { 3570 3571 public abstract class ActionMode { 3572 method public boolean isUiFocusable(); 3573 } 3574 3575 public final class Choreographer { 3576 method public static long getFrameDelay(); 3577 method @FlaggedApi("android.view.flags.expected_presentation_time_api") public long getFrameTimeNanos(); 3578 method public void postCallback(int, Runnable, Object); 3579 method public void postCallbackDelayed(int, Runnable, Object, long); 3580 method public void removeCallbacks(int, Runnable, Object); 3581 method public static void setFrameDelay(long); 3582 field public static final int CALLBACK_ANIMATION = 1; // 0x1 3583 } 3584 3585 public final class ContentInfo implements android.os.Parcelable { 3586 method @NonNull public android.util.Pair<android.view.ContentInfo,android.view.ContentInfo> partition(@NonNull java.util.function.Predicate<android.content.ClipData.Item>); 3587 method public void releasePermissions(); 3588 } 3589 3590 public static final class ContentInfo.Builder { 3591 method @NonNull public android.view.ContentInfo.Builder setDragAndDropPermissions(@Nullable android.view.DragAndDropPermissions); 3592 method @NonNull public android.view.ContentInfo.Builder setInputContentInfo(@Nullable android.view.inputmethod.InputContentInfo); 3593 } 3594 3595 public final class Display { 3596 method @RequiresPermission(android.Manifest.permission.MODIFY_USER_PREFERRED_DISPLAY_MODE) public void clearUserPreferredDisplayMode(); 3597 method @NonNull public android.view.Display.Mode getDefaultMode(); 3598 method public int getRemoveMode(); 3599 method @NonNull public int[] getReportedHdrTypes(); 3600 method @NonNull public android.graphics.ColorSpace[] getSupportedWideColorGamut(); 3601 method @Nullable public android.view.Display.Mode getSystemPreferredDisplayMode(); 3602 method public int getType(); 3603 method @Nullable public String getUniqueId(); 3604 method @Nullable public android.view.Display.Mode getUserPreferredDisplayMode(); 3605 method public boolean hasAccess(int); 3606 method @RequiresPermission(android.Manifest.permission.MODIFY_USER_PREFERRED_DISPLAY_MODE) public void setUserPreferredDisplayMode(@NonNull android.view.Display.Mode); 3607 field public static final int FLAG_TRUSTED = 128; // 0x80 3608 field public static final int TYPE_EXTERNAL = 2; // 0x2 3609 field public static final int TYPE_INTERNAL = 1; // 0x1 3610 field public static final int TYPE_OVERLAY = 4; // 0x4 3611 field public static final int TYPE_UNKNOWN = 0; // 0x0 3612 field public static final int TYPE_VIRTUAL = 5; // 0x5 3613 field public static final int TYPE_WIFI = 3; // 0x3 3614 } 3615 3616 public static final class Display.Mode implements android.os.Parcelable { 3617 ctor public Display.Mode(int, int, float); 3618 method public boolean matches(int, int, float); 3619 } 3620 3621 public static final class Display.Mode.Builder { 3622 ctor public Display.Mode.Builder(); 3623 method @NonNull public android.view.Display.Mode build(); 3624 method @NonNull public android.view.Display.Mode.Builder setRefreshRate(float); 3625 method @NonNull public android.view.Display.Mode.Builder setResolution(int, int); 3626 } 3627 3628 public final class DisplayShape implements android.os.Parcelable { 3629 method @NonNull public static android.view.DisplayShape fromSpecString(@NonNull String, float, int, int); 3630 } 3631 3632 public class FocusFinder { 3633 method public static void sort(android.view.View[], int, int, android.view.ViewGroup, boolean); 3634 } 3635 3636 public final class InputDevice implements android.os.Parcelable { 3637 method @RequiresPermission("android.permission.DISABLE_INPUT_DEVICE") public void disable(); 3638 method @RequiresPermission("android.permission.DISABLE_INPUT_DEVICE") public void enable(); 3639 method public int getAssociatedDisplayId(); 3640 method @NonNull public android.hardware.input.InputDeviceIdentifier getIdentifier(); 3641 method @Nullable public String getKeyboardLanguageTag(); 3642 method @Nullable public String getKeyboardLayoutType(); 3643 } 3644 3645 public abstract class InputEvent implements android.os.Parcelable { 3646 method public abstract int getDisplayId(); 3647 method public abstract void setDisplayId(int); 3648 } 3649 3650 public class KeyEvent extends android.view.InputEvent implements android.os.Parcelable { 3651 method public static String actionToString(int); 3652 method public final int getDisplayId(); 3653 method public final void setDisplayId(int); 3654 field public static final int FLAG_IS_ACCESSIBILITY_EVENT = 2048; // 0x800 3655 field public static final int LAST_KEYCODE = 318; // 0x13e 3656 } 3657 3658 public final class KeyboardShortcutGroup implements android.os.Parcelable { 3659 ctor public KeyboardShortcutGroup(@Nullable CharSequence, @NonNull java.util.List<android.view.KeyboardShortcutInfo>, boolean); 3660 ctor public KeyboardShortcutGroup(@Nullable CharSequence, boolean); 3661 method public boolean isSystemGroup(); 3662 } 3663 3664 public final class MotionEvent extends android.view.InputEvent implements android.os.Parcelable { 3665 method public int getDisplayId(); 3666 method public void setActionButton(int); 3667 method public void setButtonState(int); 3668 method public void setDisplayId(int); 3669 field public static final int FLAG_IS_ACCESSIBILITY_EVENT = 2048; // 0x800 3670 } 3671 3672 public final class PointerIcon implements android.os.Parcelable { 3673 method @FlaggedApi("android.view.flags.enable_vector_cursors") public void setDrawNativeDropShadow(boolean); 3674 } 3675 3676 @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD}) public @interface RemotableViewMethod { 3677 method public abstract String asyncImpl() default ""; 3678 } 3679 3680 public final class SurfaceControl implements android.os.Parcelable { 3681 ctor public SurfaceControl(@NonNull android.view.SurfaceControl, @NonNull String); 3682 method @NonNull public android.view.Choreographer getChoreographer(); 3683 method @NonNull public android.view.Choreographer getChoreographer(@NonNull android.os.Looper); 3684 method public boolean hasChoreographer(); 3685 method public boolean isSameSurface(@NonNull android.view.SurfaceControl); 3686 } 3687 3688 public class SurfaceControlViewHost { 3689 method public void relayout(android.view.WindowManager.LayoutParams); 3690 method public void setView(@NonNull android.view.View, @NonNull android.view.WindowManager.LayoutParams); 3691 } 3692 3693 @UiThread public class View implements android.view.accessibility.AccessibilityEventSource android.graphics.drawable.Drawable.Callback android.view.KeyEvent.Callback { 3694 method public void getBoundsOnScreen(@NonNull android.graphics.Rect, boolean); 3695 method public android.view.View getTooltipView(); 3696 method public void getWindowDisplayFrame(@NonNull android.graphics.Rect); 3697 method public boolean isAutofilled(); 3698 method public static boolean isDefaultFocusHighlightEnabled(); 3699 method public boolean isDefaultFocusHighlightNeeded(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable); 3700 method protected void resetResolvedDrawables(); 3701 method public void resetResolvedLayoutDirection(); 3702 method public void resetResolvedPadding(); 3703 method public void resetResolvedTextAlignment(); 3704 method public void resetResolvedTextDirection(); 3705 method public void resetRtlProperties(); 3706 method public boolean restoreFocusInCluster(int); 3707 method public boolean restoreFocusNotInCluster(); 3708 method public void setAutofilled(boolean, boolean); 3709 method public final void setFocusedInCluster(); 3710 method public void setIsRootNamespace(boolean); 3711 method public final void setShowingLayoutBounds(boolean); 3712 } 3713 3714 public class ViewConfiguration { 3715 method public long getDeviceGlobalActionKeyTimeout(); 3716 method public static int getHoverTooltipHideShortTimeout(); 3717 method public static int getHoverTooltipHideTimeout(); 3718 method public static int getHoverTooltipShowTimeout(); 3719 method public static int getLongPressTooltipHideTimeout(); 3720 method public boolean isPreferKeepClearForFocusEnabled(); 3721 } 3722 3723 public class ViewDebug { 3724 method @Deprecated @Nullable public static AutoCloseable startRenderingCommandsCapture(android.view.View, java.util.concurrent.Executor, java.util.function.Function<android.graphics.Picture,java.lang.Boolean>); 3725 method @Nullable public static AutoCloseable startRenderingCommandsCapture(android.view.View, java.util.concurrent.Executor, java.util.concurrent.Callable<java.io.OutputStream>); 3726 } 3727 3728 public abstract class Window { 3729 method @Nullable public android.view.View getNavigationBarBackgroundView(); 3730 method @Nullable public android.view.View getStatusBarBackgroundView(); 3731 } 3732 3733 public static final class WindowInsets.Type { 3734 method @NonNull public static String toString(int); 3735 } 3736 3737 public interface WindowManager extends android.view.ViewManager { 3738 method public default int getDisplayImePolicy(int); 3739 method @FlaggedApi("com.android.window.flags.surface_control_input_receiver") @Nullable public default android.os.IBinder getSurfaceControlInputClientToken(@NonNull android.view.SurfaceControl); 3740 method public static boolean hasWindowExtensionsEnabled(); 3741 method public default void holdLock(android.os.IBinder, int); 3742 method public default boolean isGlobalKey(int); 3743 method public default boolean isTaskSnapshotSupported(); 3744 method @RequiresPermission(android.Manifest.permission.ACCESS_SURFACE_FLINGER) public default boolean replaceContentOnDisplayWithMirror(int, @NonNull android.view.Window); 3745 method @RequiresPermission(android.Manifest.permission.ACCESS_SURFACE_FLINGER) public default boolean replaceContentOnDisplayWithSc(int, @NonNull android.view.SurfaceControl); 3746 method public default void setDisplayImePolicy(int, int); 3747 method public default void setShouldShowSystemDecors(int, boolean); 3748 method public default void setShouldShowWithInsecureKeyguard(int, boolean); 3749 method public default boolean shouldShowSystemDecors(int); 3750 method @Nullable public default android.graphics.Bitmap snapshotTaskForRecents(@IntRange(from=0) int); 3751 field public static final int LARGE_SCREEN_SMALLEST_SCREEN_WIDTH_DP = 600; // 0x258 3752 } 3753 3754 public static class WindowManager.LayoutParams extends android.view.ViewGroup.LayoutParams implements android.os.Parcelable { 3755 method @Nullable public final android.os.IBinder getWindowContextToken(); 3756 method public final void setWindowContextToken(@NonNull android.os.IBinder); 3757 field public static final int ACCESSIBILITY_TITLE_CHANGED = 33554432; // 0x2000000 3758 field public static final int FLAG_SLIPPERY = 536870912; // 0x20000000 3759 field public CharSequence accessibilityTitle; 3760 field public float preferredMaxDisplayRefreshRate; 3761 field public float preferredMinDisplayRefreshRate; 3762 field public int privateFlags; 3763 } 3764 3765} 3766 3767package android.view.accessibility { 3768 3769 public final class AccessibilityManager { 3770 method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_ACCESSIBILITY) public java.util.List<java.lang.String> getAccessibilityShortcutTargets(int); 3771 method public boolean hasAnyDirectConnection(); 3772 method @FlaggedApi("android.view.accessibility.flash_notification_system_api") public boolean startFlashNotificationSequence(@NonNull android.content.Context, int); 3773 method @FlaggedApi("android.view.accessibility.flash_notification_system_api") public boolean stopFlashNotificationSequence(@NonNull android.content.Context); 3774 } 3775 3776 public class AccessibilityNodeInfo implements android.os.Parcelable { 3777 method public void addChild(@NonNull android.os.IBinder); 3778 method public long getSourceNodeId(); 3779 method public void setLeashedParent(@Nullable android.os.IBinder, int); 3780 method public void writeToParcelNoRecycle(android.os.Parcel, int); 3781 } 3782 3783 public static final class AccessibilityNodeInfo.TouchDelegateInfo implements android.os.Parcelable { 3784 method public long getAccessibilityIdForRegion(@NonNull android.graphics.Region); 3785 } 3786 3787 public class AccessibilityRecord { 3788 method public void setDisplayId(int); 3789 } 3790 3791 public final class AccessibilityWindowInfo implements android.os.Parcelable { 3792 method public static void setNumInstancesInUseCounter(java.util.concurrent.atomic.AtomicInteger); 3793 } 3794 3795} 3796 3797package android.view.animation { 3798 3799 public class AnimationUtils { 3800 method @FlaggedApi("android.view.flags.expected_presentation_time_read_only") public static void lockAnimationClock(long, long); 3801 method public static void lockAnimationClock(long); 3802 method public static void unlockAnimationClock(); 3803 } 3804 3805} 3806 3807package android.view.autofill { 3808 3809 public class AutofillFeatureFlags { 3810 field public static final String DEVICE_CONFIG_AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES = "compat_mode_allowed_packages"; 3811 field public static final String DEVICE_CONFIG_AUTOFILL_CREDENTIAL_MANAGER_ENABLED = "autofill_credential_manager_enabled"; 3812 field public static final String DEVICE_CONFIG_AUTOFILL_CREDENTIAL_MANAGER_IGNORE_VIEWS = "autofill_credential_manager_ignore_views"; 3813 field public static final String DEVICE_CONFIG_AUTOFILL_DIALOG_ENABLED = "autofill_dialog_enabled"; 3814 field public static final String DEVICE_CONFIG_AUTOFILL_PCC_CLASSIFICATION_ENABLED = "pcc_classification_enabled"; 3815 field public static final String DEVICE_CONFIG_AUTOFILL_PCC_FEATURE_PROVIDER_HINTS = "pcc_classification_hints"; 3816 field public static final String DEVICE_CONFIG_AUTOFILL_SMART_SUGGESTION_SUPPORTED_MODES = "smart_suggestion_supported_modes"; 3817 field public static final String DEVICE_CONFIG_NON_AUTOFILLABLE_IME_ACTION_IDS = "non_autofillable_ime_action_ids"; 3818 field public static final String DEVICE_CONFIG_PACKAGE_DENYLIST_FOR_UNIMPORTANT_VIEW = "package_deny_list_for_unimportant_view"; 3819 field public static final String DEVICE_CONFIG_TRIGGER_FILL_REQUEST_ON_UNIMPORTANT_VIEW = "trigger_fill_request_on_unimportant_view"; 3820 } 3821 3822 public final class AutofillId implements android.os.Parcelable { 3823 ctor public AutofillId(int); 3824 ctor public AutofillId(@NonNull android.view.autofill.AutofillId, int); 3825 ctor public AutofillId(int, int); 3826 ctor public AutofillId(@NonNull android.view.autofill.AutofillId, long, int); 3827 method public boolean equalsIgnoreSession(@Nullable android.view.autofill.AutofillId); 3828 method public boolean isNonVirtual(); 3829 method @NonNull public static android.view.autofill.AutofillId withoutSession(@NonNull android.view.autofill.AutofillId); 3830 } 3831 3832 public final class AutofillManager { 3833 field public static final String ANY_HINT = "any"; 3834 field public static final int FLAG_SMART_SUGGESTION_OFF = 0; // 0x0 3835 field public static final int FLAG_SMART_SUGGESTION_SYSTEM = 1; // 0x1 3836 field public static final int MAX_TEMP_AUGMENTED_SERVICE_DURATION_MS = 120000; // 0x1d4c0 3837 } 3838 3839} 3840 3841package android.view.contentcapture { 3842 3843 public final class ContentCaptureManager { 3844 method @RequiresPermission(android.Manifest.permission.MANAGE_CONTENT_CAPTURE) public static void resetTemporaryService(int); 3845 method @RequiresPermission(android.Manifest.permission.MANAGE_CONTENT_CAPTURE) public static void setDefaultServiceEnabled(int, boolean); 3846 method @RequiresPermission(android.Manifest.permission.MANAGE_CONTENT_CAPTURE) public static void setTemporaryService(int, @NonNull String, int); 3847 field public static final String DEVICE_CONFIG_PROPERTY_IDLE_FLUSH_FREQUENCY = "idle_flush_frequency"; 3848 field public static final String DEVICE_CONFIG_PROPERTY_LOGGING_LEVEL = "logging_level"; 3849 field public static final String DEVICE_CONFIG_PROPERTY_LOG_HISTORY_SIZE = "log_history_size"; 3850 field public static final String DEVICE_CONFIG_PROPERTY_MAX_BUFFER_SIZE = "max_buffer_size"; 3851 field public static final String DEVICE_CONFIG_PROPERTY_SERVICE_EXPLICITLY_ENABLED = "service_explicitly_enabled"; 3852 field public static final String DEVICE_CONFIG_PROPERTY_TEXT_CHANGE_FLUSH_FREQUENCY = "text_change_flush_frequency"; 3853 field public static final String DUMPABLE_NAME = "ContentCaptureManager"; 3854 field public static final int LOGGING_LEVEL_DEBUG = 1; // 0x1 3855 field public static final int LOGGING_LEVEL_OFF = 0; // 0x0 3856 field public static final int LOGGING_LEVEL_VERBOSE = 2; // 0x2 3857 } 3858 3859 public final class ViewNode extends android.app.assist.AssistStructure.ViewNode { 3860 method @Nullable public static android.view.contentcapture.ViewNode readFromParcel(@NonNull android.os.Parcel); 3861 method public static void writeToParcel(@NonNull android.os.Parcel, @Nullable android.view.contentcapture.ViewNode, int); 3862 } 3863 3864 public static final class ViewNode.ViewStructureImpl extends android.view.ViewStructure { 3865 ctor public ViewNode.ViewStructureImpl(@NonNull android.view.View); 3866 ctor public ViewNode.ViewStructureImpl(@NonNull android.view.autofill.AutofillId, long, int); 3867 method public int addChildCount(int); 3868 method public void asyncCommit(); 3869 method public android.view.ViewStructure asyncNewChild(int); 3870 method public android.view.autofill.AutofillId getAutofillId(); 3871 method public int getChildCount(); 3872 method public android.os.Bundle getExtras(); 3873 method public CharSequence getHint(); 3874 method public android.view.contentcapture.ViewNode getNode(); 3875 method public android.graphics.Rect getTempRect(); 3876 method public CharSequence getText(); 3877 method public int getTextSelectionEnd(); 3878 method public int getTextSelectionStart(); 3879 method public boolean hasExtras(); 3880 method public android.view.ViewStructure newChild(int); 3881 method public android.view.ViewStructure.HtmlInfo.Builder newHtmlInfoBuilder(String); 3882 method public void setAccessibilityFocused(boolean); 3883 method public void setActivated(boolean); 3884 method public void setAlpha(float); 3885 method public void setAssistBlocked(boolean); 3886 method public void setAutofillHints(String[]); 3887 method public void setAutofillId(android.view.autofill.AutofillId); 3888 method public void setAutofillId(android.view.autofill.AutofillId, int); 3889 method public void setAutofillOptions(CharSequence[]); 3890 method public void setAutofillType(int); 3891 method public void setAutofillValue(android.view.autofill.AutofillValue); 3892 method public void setCheckable(boolean); 3893 method public void setChecked(boolean); 3894 method public void setChildCount(int); 3895 method public void setClassName(String); 3896 method public void setClickable(boolean); 3897 method public void setContentDescription(CharSequence); 3898 method public void setContextClickable(boolean); 3899 method public void setDataIsSensitive(boolean); 3900 method public void setDimens(int, int, int, int, int, int); 3901 method public void setElevation(float); 3902 method public void setEnabled(boolean); 3903 method public void setFocusable(boolean); 3904 method public void setFocused(boolean); 3905 method public void setHint(CharSequence); 3906 method public void setHtmlInfo(android.view.ViewStructure.HtmlInfo); 3907 method public void setId(int, String, String, String); 3908 method public void setInputType(int); 3909 method public void setLocaleList(android.os.LocaleList); 3910 method public void setLongClickable(boolean); 3911 method public void setOpaque(boolean); 3912 method public void setSelected(boolean); 3913 method public void setText(CharSequence); 3914 method public void setText(CharSequence, int, int); 3915 method public void setTextLines(int[], int[]); 3916 method public void setTextStyle(float, int, int, int); 3917 method public void setTransformation(android.graphics.Matrix); 3918 method public void setVisibility(int); 3919 method public void setWebDomain(String); 3920 } 3921 3922} 3923 3924package android.view.displayhash { 3925 3926 public final class DisplayHashManager { 3927 method @RequiresPermission("android.permission.READ_FRAME_BUFFER") public void setDisplayHashThrottlingEnabled(boolean); 3928 } 3929 3930} 3931 3932package android.view.inputmethod { 3933 3934 public abstract class CancellableHandwritingGesture extends android.view.inputmethod.HandwritingGesture { 3935 ctor public CancellableHandwritingGesture(); 3936 method public void setCancellationSignal(@NonNull android.os.CancellationSignal); 3937 } 3938 3939 public abstract class HandwritingGesture { 3940 method @NonNull public static android.view.inputmethod.HandwritingGesture fromByteArray(@NonNull byte[]); 3941 method public final int getGestureType(); 3942 method @NonNull public final byte[] toByteArray(); 3943 field public static final int GESTURE_TYPE_DELETE = 4; // 0x4 3944 field public static final int GESTURE_TYPE_DELETE_RANGE = 64; // 0x40 3945 field public static final int GESTURE_TYPE_INSERT = 2; // 0x2 3946 field public static final int GESTURE_TYPE_INSERT_MODE = 128; // 0x80 3947 field public static final int GESTURE_TYPE_JOIN_OR_SPLIT = 16; // 0x10 3948 field public static final int GESTURE_TYPE_NONE = 0; // 0x0 3949 field public static final int GESTURE_TYPE_REMOVE_SPACE = 8; // 0x8 3950 field public static final int GESTURE_TYPE_SELECT = 1; // 0x1 3951 field public static final int GESTURE_TYPE_SELECT_RANGE = 32; // 0x20 3952 } 3953 3954 public final class InlineSuggestion implements android.os.Parcelable { 3955 method @NonNull public static android.view.inputmethod.InlineSuggestion newInlineSuggestion(@NonNull android.view.inputmethod.InlineSuggestionInfo); 3956 } 3957 3958 public final class InlineSuggestionInfo implements android.os.Parcelable { 3959 method @NonNull public static android.view.inputmethod.InlineSuggestionInfo newInlineSuggestionInfo(@NonNull android.widget.inline.InlinePresentationSpec, @NonNull String, @Nullable String[], @NonNull String, boolean); 3960 } 3961 3962 public final class InlineSuggestionsResponse implements android.os.Parcelable { 3963 method @NonNull public static android.view.inputmethod.InlineSuggestionsResponse newInlineSuggestionsResponse(@NonNull java.util.List<android.view.inputmethod.InlineSuggestion>); 3964 } 3965 3966 public final class InputMethodInfo implements android.os.Parcelable { 3967 ctor public InputMethodInfo(@NonNull String, @NonNull String, @NonNull CharSequence, @NonNull String, boolean, @NonNull String); 3968 ctor public InputMethodInfo(@NonNull String, @NonNull String, @NonNull CharSequence, @NonNull String, @NonNull String, boolean, @NonNull String); 3969 ctor @FlaggedApi("android.view.inputmethod.connectionless_handwriting") public InputMethodInfo(@NonNull String, @NonNull String, @NonNull CharSequence, @NonNull String, @NonNull String, boolean, boolean, @NonNull String); 3970 ctor public InputMethodInfo(@NonNull String, @NonNull String, @NonNull CharSequence, @NonNull String, int); 3971 field public static final int COMPONENT_NAME_MAX_LENGTH = 1000; // 0x3e8 3972 field public static final int MAX_IMES_PER_PACKAGE = 20; // 0x14 3973 } 3974 3975 public final class InputMethodManager { 3976 method @RequiresPermission(android.Manifest.permission.TEST_INPUT_METHOD) public void addVirtualStylusIdForTestSession(); 3977 method @RequiresPermission(android.Manifest.permission.TEST_INPUT_METHOD) public void finishTrackingPendingImeVisibilityRequests(); 3978 method public int getDisplayId(); 3979 method @FlaggedApi("android.view.inputmethod.imm_userhandle_hostsidetests") @NonNull @RequiresPermission(value=android.Manifest.permission.INTERACT_ACROSS_USERS_FULL, conditional=true) public java.util.List<android.view.inputmethod.InputMethodInfo> getEnabledInputMethodListAsUser(@NonNull android.os.UserHandle); 3980 method @FlaggedApi("android.view.inputmethod.imm_userhandle_hostsidetests") @NonNull @RequiresPermission(value=android.Manifest.permission.INTERACT_ACROSS_USERS_FULL, conditional=true) public java.util.List<android.view.inputmethod.InputMethodSubtype> getEnabledInputMethodSubtypeListAsUser(@NonNull String, boolean, @NonNull android.os.UserHandle); 3981 method @NonNull @RequiresPermission(value=android.Manifest.permission.INTERACT_ACROSS_USERS_FULL, conditional=true) public java.util.List<android.view.inputmethod.InputMethodInfo> getInputMethodListAsUser(int); 3982 method public boolean hasActiveInputConnection(@Nullable android.view.View); 3983 method @RequiresPermission(android.Manifest.permission.TEST_INPUT_METHOD) public boolean hasPendingImeVisibilityRequests(); 3984 method @RequiresPermission(android.Manifest.permission.TEST_INPUT_METHOD) public void hideSoftInputFromServerForTest(); 3985 method @RequiresPermission(android.Manifest.permission.TEST_INPUT_METHOD) public boolean isCurrentRootView(@NonNull android.view.View); 3986 method @RequiresPermission(android.Manifest.permission.TEST_INPUT_METHOD) public boolean isInputMethodPickerShown(); 3987 method @FlaggedApi("android.view.inputmethod.imm_userhandle_hostsidetests") @NonNull @RequiresPermission(value=android.Manifest.permission.INTERACT_ACROSS_USERS_FULL, conditional=true) public boolean isStylusHandwritingAvailableAsUser(@NonNull android.os.UserHandle); 3988 method @RequiresPermission(android.Manifest.permission.TEST_INPUT_METHOD) public void setStylusWindowIdleTimeoutForTest(long); 3989 field public static final long CLEAR_SHOW_FORCED_FLAG_WHEN_LEAVING = 214016041L; // 0xcc1a029L 3990 } 3991 3992 public final class InsertModeGesture extends android.view.inputmethod.CancellableHandwritingGesture implements android.os.Parcelable { 3993 } 3994 3995} 3996 3997package android.view.inspector { 3998 3999 @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.FIELD}) public @interface InspectableProperty { 4000 method public abstract int attributeId() default android.content.res.Resources.ID_NULL; 4001 method public abstract android.view.inspector.InspectableProperty.EnumEntry[] enumMapping() default {}; 4002 method public abstract android.view.inspector.InspectableProperty.FlagEntry[] flagMapping() default {}; 4003 method public abstract boolean hasAttributeId() default true; 4004 method public abstract String name() default ""; 4005 method public abstract android.view.inspector.InspectableProperty.ValueType valueType() default android.view.inspector.InspectableProperty.ValueType.INFERRED; 4006 } 4007 4008 @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE}) public static @interface InspectableProperty.EnumEntry { 4009 method public abstract String name(); 4010 method public abstract int value(); 4011 } 4012 4013 @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE}) public static @interface InspectableProperty.FlagEntry { 4014 method public abstract int mask() default 0; 4015 method public abstract String name(); 4016 method public abstract int target(); 4017 } 4018 4019 public enum InspectableProperty.ValueType { 4020 enum_constant public static final android.view.inspector.InspectableProperty.ValueType COLOR; 4021 enum_constant public static final android.view.inspector.InspectableProperty.ValueType GRAVITY; 4022 enum_constant public static final android.view.inspector.InspectableProperty.ValueType INFERRED; 4023 enum_constant public static final android.view.inspector.InspectableProperty.ValueType INT_ENUM; 4024 enum_constant public static final android.view.inspector.InspectableProperty.ValueType INT_FLAG; 4025 enum_constant public static final android.view.inspector.InspectableProperty.ValueType NONE; 4026 enum_constant public static final android.view.inspector.InspectableProperty.ValueType RESOURCE_ID; 4027 } 4028 4029} 4030 4031package android.view.textservice { 4032 4033 public final class SpellCheckerSubtype implements android.os.Parcelable { 4034 field public static final int SUBTYPE_ID_NONE = 0; // 0x0 4035 } 4036 4037} 4038 4039package android.widget { 4040 4041 public abstract class AbsListView extends android.widget.AdapterView<android.widget.ListAdapter> implements android.widget.Filter.FilterListener android.text.TextWatcher android.view.ViewTreeObserver.OnGlobalLayoutListener android.view.ViewTreeObserver.OnTouchModeChangeListener { 4042 method public final boolean shouldDrawSelector(); 4043 } 4044 4045 public class CalendarView extends android.widget.FrameLayout { 4046 method public boolean getBoundsForDate(long, android.graphics.Rect); 4047 } 4048 4049 public class DatePicker extends android.widget.FrameLayout { 4050 method @android.view.inspector.InspectableProperty(name="datePickerMode", enumMapping={@android.view.inspector.InspectableProperty.EnumEntry(value=android.widget.DatePicker.MODE_SPINNER, name="spinner"), @android.view.inspector.InspectableProperty.EnumEntry(value=android.widget.DatePicker.MODE_CALENDAR, name="calendar")}) public int getMode(); 4051 field public static final int MODE_CALENDAR = 2; // 0x2 4052 field public static final int MODE_SPINNER = 1; // 0x1 4053 } 4054 4055 @UiThread public final class Magnifier { 4056 method @Nullable public android.graphics.Bitmap getContent(); 4057 method public static android.graphics.PointF getMagnifierDefaultSize(); 4058 method @Nullable public android.graphics.Bitmap getOriginalContent(); 4059 method public void setOnOperationCompleteCallback(android.widget.Magnifier.Callback); 4060 } 4061 4062 public static interface Magnifier.Callback { 4063 method public void onOperationComplete(); 4064 } 4065 4066 public class NumberPicker extends android.widget.LinearLayout { 4067 method public CharSequence getDisplayedValueForCurrentSelection(); 4068 } 4069 4070 public class PopupMenu { 4071 method public android.widget.ListView getMenuListView(); 4072 } 4073 4074 public class RatingBar extends android.widget.AbsSeekBar { 4075 field public static final String PLURALS_MAX = "max"; 4076 field public static final String PLURALS_RATING = "rating"; 4077 } 4078 4079 public class Spinner extends android.widget.AbsSpinner implements android.content.DialogInterface.OnClickListener { 4080 method public boolean isPopupShowing(); 4081 method public void onClick(int); 4082 } 4083 4084 @android.widget.RemoteViews.RemoteView public class TextClock extends android.widget.TextView { 4085 method public void disableClockTick(); 4086 } 4087 4088 @android.widget.RemoteViews.RemoteView public class TextView extends android.view.View implements android.view.ViewTreeObserver.OnPreDrawListener { 4089 method public void onActivityResult(int, int, @Nullable android.content.Intent); 4090 field public static final int PROCESS_TEXT_REQUEST_CODE = 100; // 0x64 4091 } 4092 4093 public class TimePicker extends android.widget.FrameLayout { 4094 method public android.view.View getAmView(); 4095 method public android.view.View getHourView(); 4096 method public android.view.View getMinuteView(); 4097 method @android.view.inspector.InspectableProperty(name="timePickerMode", enumMapping={@android.view.inspector.InspectableProperty.EnumEntry(name="clock", value=android.widget.TimePicker.MODE_CLOCK), @android.view.inspector.InspectableProperty.EnumEntry(name="spinner", value=android.widget.TimePicker.MODE_SPINNER)}) public int getMode(); 4098 method public android.view.View getPmView(); 4099 field public static final int MODE_CLOCK = 2; // 0x2 4100 field public static final int MODE_SPINNER = 1; // 0x1 4101 } 4102 4103 public class Toolbar extends android.view.ViewGroup { 4104 method @Nullable public android.view.View getNavigationView(); 4105 } 4106 4107} 4108 4109package android.widget.inline { 4110 4111 public class InlineContentView extends android.view.ViewGroup { 4112 method public void setChildSurfacePackageUpdater(@Nullable android.widget.inline.InlineContentView.SurfacePackageUpdater); 4113 } 4114 4115 public static interface InlineContentView.SurfacePackageUpdater { 4116 method public void getSurfacePackage(@NonNull java.util.function.Consumer<android.view.SurfaceControlViewHost.SurfacePackage>); 4117 method public void onSurfacePackageReleased(); 4118 } 4119 4120} 4121 4122package android.window { 4123 4124 public final class BackNavigationInfo implements android.os.Parcelable { 4125 method public int describeContents(); 4126 method @NonNull public static String typeToString(int); 4127 method public void writeToParcel(@NonNull android.os.Parcel, int); 4128 field @NonNull public static final android.os.Parcelable.Creator<android.window.BackNavigationInfo> CREATOR; 4129 field public static final String KEY_TRIGGER_BACK = "TriggerBack"; 4130 field public static final int TYPE_CALLBACK = 4; // 0x4 4131 field public static final int TYPE_CROSS_ACTIVITY = 2; // 0x2 4132 field public static final int TYPE_CROSS_TASK = 3; // 0x3 4133 field public static final int TYPE_DIALOG_CLOSE = 0; // 0x0 4134 field public static final int TYPE_RETURN_TO_HOME = 1; // 0x1 4135 field public static final int TYPE_UNDEFINED = -1; // 0xffffffff 4136 } 4137 4138 public final class DisplayAreaAppearedInfo implements android.os.Parcelable { 4139 ctor public DisplayAreaAppearedInfo(@NonNull android.window.DisplayAreaInfo, @NonNull android.view.SurfaceControl); 4140 method public int describeContents(); 4141 method @NonNull public android.window.DisplayAreaInfo getDisplayAreaInfo(); 4142 method @NonNull public android.view.SurfaceControl getLeash(); 4143 method public void writeToParcel(@NonNull android.os.Parcel, int); 4144 field @NonNull public static final android.os.Parcelable.Creator<android.window.DisplayAreaAppearedInfo> CREATOR; 4145 } 4146 4147 public final class DisplayAreaInfo implements android.os.Parcelable { 4148 ctor public DisplayAreaInfo(@NonNull android.window.WindowContainerToken, int, int); 4149 method public int describeContents(); 4150 method public void writeToParcel(@NonNull android.os.Parcel, int); 4151 field @NonNull public static final android.os.Parcelable.Creator<android.window.DisplayAreaInfo> CREATOR; 4152 field @NonNull public final android.content.res.Configuration configuration; 4153 field public final int displayId; 4154 field public final int featureId; 4155 field @NonNull public final android.window.WindowContainerToken token; 4156 } 4157 4158 public class DisplayAreaOrganizer extends android.window.WindowOrganizer { 4159 method public void onDisplayAreaAppeared(@NonNull android.window.DisplayAreaInfo, @NonNull android.view.SurfaceControl); 4160 method public void onDisplayAreaVanished(@NonNull android.window.DisplayAreaInfo); 4161 method @CallSuper @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public java.util.List<android.window.DisplayAreaAppearedInfo> registerOrganizer(int); 4162 field public static final int FEATURE_DEFAULT_TASK_CONTAINER = 1; // 0x1 4163 field public static final int FEATURE_IME = 8; // 0x8 4164 field public static final int FEATURE_ONE_HANDED = 3; // 0x3 4165 field public static final int FEATURE_ROOT = 0; // 0x0 4166 field public static final int FEATURE_SYSTEM_FIRST = 0; // 0x0 4167 field public static final int FEATURE_SYSTEM_LAST = 10000; // 0x2710 4168 field public static final int FEATURE_UNDEFINED = -1; // 0xffffffff 4169 field public static final int FEATURE_VENDOR_FIRST = 10001; // 0x2711 4170 field public static final int FEATURE_WINDOWED_MAGNIFICATION = 4; // 0x4 4171 field public static final int FEATURE_WINDOW_TOKENS = 2; // 0x2 4172 } 4173 4174 public final class SplashScreenView extends android.widget.FrameLayout { 4175 method @Nullable public android.view.View getBrandingView(); 4176 } 4177 4178 public final class TaskAppearedInfo implements android.os.Parcelable { 4179 ctor public TaskAppearedInfo(@NonNull android.app.ActivityManager.RunningTaskInfo, @NonNull android.view.SurfaceControl); 4180 method public int describeContents(); 4181 method @NonNull public android.view.SurfaceControl getLeash(); 4182 method @NonNull public android.app.ActivityManager.RunningTaskInfo getTaskInfo(); 4183 method public void writeToParcel(@NonNull android.os.Parcel, int); 4184 field @NonNull public static final android.os.Parcelable.Creator<android.window.TaskAppearedInfo> CREATOR; 4185 } 4186 4187 public final class TaskFragmentCreationParams implements android.os.Parcelable { 4188 method public int describeContents(); 4189 method @NonNull public android.os.IBinder getFragmentToken(); 4190 method @NonNull public android.graphics.Rect getInitialRelativeBounds(); 4191 method @NonNull public android.window.TaskFragmentOrganizerToken getOrganizer(); 4192 method @NonNull public android.os.IBinder getOwnerToken(); 4193 method public int getWindowingMode(); 4194 method public void writeToParcel(@NonNull android.os.Parcel, int); 4195 field @NonNull public static final android.os.Parcelable.Creator<android.window.TaskFragmentCreationParams> CREATOR; 4196 } 4197 4198 public static final class TaskFragmentCreationParams.Builder { 4199 ctor public TaskFragmentCreationParams.Builder(@NonNull android.window.TaskFragmentOrganizerToken, @NonNull android.os.IBinder, @NonNull android.os.IBinder); 4200 method @NonNull public android.window.TaskFragmentCreationParams build(); 4201 method @NonNull public android.window.TaskFragmentCreationParams.Builder setInitialRelativeBounds(@NonNull android.graphics.Rect); 4202 method @NonNull public android.window.TaskFragmentCreationParams.Builder setWindowingMode(int); 4203 } 4204 4205 public final class TaskFragmentInfo implements android.os.Parcelable { 4206 method public int describeContents(); 4207 method public boolean equalsForTaskFragmentOrganizer(@Nullable android.window.TaskFragmentInfo); 4208 method @NonNull public java.util.List<android.os.IBinder> getActivities(); 4209 method @NonNull public java.util.List<android.os.IBinder> getActivitiesRequestedInTaskFragment(); 4210 method @NonNull public android.content.res.Configuration getConfiguration(); 4211 method @NonNull public android.os.IBinder getFragmentToken(); 4212 method @NonNull public android.graphics.Point getPositionInParent(); 4213 method public int getRunningActivityCount(); 4214 method @NonNull public android.window.WindowContainerToken getToken(); 4215 method public int getWindowingMode(); 4216 method public boolean hasRunningActivity(); 4217 method public boolean isEmpty(); 4218 method public boolean isTaskClearedForReuse(); 4219 method public boolean isVisible(); 4220 method public void writeToParcel(@NonNull android.os.Parcel, int); 4221 field @NonNull public static final android.os.Parcelable.Creator<android.window.TaskFragmentInfo> CREATOR; 4222 } 4223 4224 public class TaskFragmentOrganizer extends android.window.WindowOrganizer { 4225 ctor public TaskFragmentOrganizer(@NonNull java.util.concurrent.Executor); 4226 method public void applyTransaction(@NonNull android.window.WindowContainerTransaction, int, boolean); 4227 method @NonNull public java.util.concurrent.Executor getExecutor(); 4228 method @NonNull public android.window.TaskFragmentOrganizerToken getOrganizerToken(); 4229 method public void onTransactionHandled(@NonNull android.os.IBinder, @NonNull android.window.WindowContainerTransaction, int, boolean); 4230 method public void onTransactionReady(@NonNull android.window.TaskFragmentTransaction); 4231 method @CallSuper public void registerOrganizer(); 4232 method @CallSuper public void unregisterOrganizer(); 4233 field public static final String KEY_ERROR_CALLBACK_OP_TYPE = "operation_type"; 4234 field public static final String KEY_ERROR_CALLBACK_TASK_FRAGMENT_INFO = "task_fragment_info"; 4235 field public static final String KEY_ERROR_CALLBACK_THROWABLE = "fragment_throwable"; 4236 field public static final int TASK_FRAGMENT_TRANSIT_CHANGE = 6; // 0x6 4237 field public static final int TASK_FRAGMENT_TRANSIT_CLOSE = 2; // 0x2 4238 field public static final int TASK_FRAGMENT_TRANSIT_NONE = 0; // 0x0 4239 field public static final int TASK_FRAGMENT_TRANSIT_OPEN = 1; // 0x1 4240 } 4241 4242 public final class TaskFragmentOrganizerToken implements android.os.Parcelable { 4243 method public int describeContents(); 4244 method public void writeToParcel(android.os.Parcel, int); 4245 field @NonNull public static final android.os.Parcelable.Creator<android.window.TaskFragmentOrganizerToken> CREATOR; 4246 } 4247 4248 public final class TaskFragmentTransaction implements android.os.Parcelable { 4249 ctor public TaskFragmentTransaction(); 4250 method public void addChange(@Nullable android.window.TaskFragmentTransaction.Change); 4251 method public int describeContents(); 4252 method @NonNull public java.util.List<android.window.TaskFragmentTransaction.Change> getChanges(); 4253 method @NonNull public android.os.IBinder getTransactionToken(); 4254 method public boolean isEmpty(); 4255 method public void writeToParcel(@NonNull android.os.Parcel, int); 4256 field @NonNull public static final android.os.Parcelable.Creator<android.window.TaskFragmentTransaction> CREATOR; 4257 field public static final int TYPE_ACTIVITY_REPARENTED_TO_TASK = 6; // 0x6 4258 field public static final int TYPE_TASK_FRAGMENT_APPEARED = 1; // 0x1 4259 field public static final int TYPE_TASK_FRAGMENT_ERROR = 5; // 0x5 4260 field public static final int TYPE_TASK_FRAGMENT_INFO_CHANGED = 2; // 0x2 4261 field public static final int TYPE_TASK_FRAGMENT_PARENT_INFO_CHANGED = 4; // 0x4 4262 field public static final int TYPE_TASK_FRAGMENT_VANISHED = 3; // 0x3 4263 } 4264 4265 public static final class TaskFragmentTransaction.Change implements android.os.Parcelable { 4266 ctor public TaskFragmentTransaction.Change(int); 4267 method public int describeContents(); 4268 method @Nullable public android.content.Intent getActivityIntent(); 4269 method @Nullable public android.os.IBinder getActivityToken(); 4270 method @NonNull public android.os.Bundle getErrorBundle(); 4271 method @Nullable public android.os.IBinder getErrorCallbackToken(); 4272 method @Nullable public android.content.res.Configuration getTaskConfiguration(); 4273 method @Nullable public android.window.TaskFragmentInfo getTaskFragmentInfo(); 4274 method @Nullable public android.os.IBinder getTaskFragmentToken(); 4275 method public int getTaskId(); 4276 method public int getType(); 4277 method @NonNull public android.window.TaskFragmentTransaction.Change setActivityIntent(@NonNull android.content.Intent); 4278 method @NonNull public android.window.TaskFragmentTransaction.Change setActivityToken(@NonNull android.os.IBinder); 4279 method @NonNull public android.window.TaskFragmentTransaction.Change setErrorBundle(@NonNull android.os.Bundle); 4280 method @NonNull public android.window.TaskFragmentTransaction.Change setErrorCallbackToken(@Nullable android.os.IBinder); 4281 method @NonNull public android.window.TaskFragmentTransaction.Change setTaskConfiguration(@NonNull android.content.res.Configuration); 4282 method @NonNull public android.window.TaskFragmentTransaction.Change setTaskFragmentInfo(@NonNull android.window.TaskFragmentInfo); 4283 method @NonNull public android.window.TaskFragmentTransaction.Change setTaskFragmentToken(@NonNull android.os.IBinder); 4284 method @NonNull public android.window.TaskFragmentTransaction.Change setTaskId(int); 4285 method public void writeToParcel(@NonNull android.os.Parcel, int); 4286 field @NonNull public static final android.os.Parcelable.Creator<android.window.TaskFragmentTransaction.Change> CREATOR; 4287 } 4288 4289 public class TaskOrganizer extends android.window.WindowOrganizer { 4290 ctor public TaskOrganizer(); 4291 method @BinderThread public void copySplashScreenView(int); 4292 method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public void createRootTask(int, int, @Nullable android.os.IBinder); 4293 method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public boolean deleteRootTask(@NonNull android.window.WindowContainerToken); 4294 method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public java.util.List<android.app.ActivityManager.RunningTaskInfo> getChildTasks(@NonNull android.window.WindowContainerToken, @NonNull int[]); 4295 method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public android.window.WindowContainerToken getImeTarget(int); 4296 method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public java.util.List<android.app.ActivityManager.RunningTaskInfo> getRootTasks(int, @NonNull int[]); 4297 method @BinderThread public void onAppSplashScreenViewRemoved(int); 4298 method @BinderThread public void onBackPressedOnTaskRoot(@NonNull android.app.ActivityManager.RunningTaskInfo); 4299 method @BinderThread public void onTaskAppeared(@NonNull android.app.ActivityManager.RunningTaskInfo, @NonNull android.view.SurfaceControl); 4300 method @BinderThread public void onTaskInfoChanged(@NonNull android.app.ActivityManager.RunningTaskInfo); 4301 method @BinderThread public void onTaskVanished(@NonNull android.app.ActivityManager.RunningTaskInfo); 4302 method @CallSuper @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public java.util.List<android.window.TaskAppearedInfo> registerOrganizer(); 4303 method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public void setInterceptBackPressedOnTaskRoot(@NonNull android.window.WindowContainerToken, boolean); 4304 method @CallSuper @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public void unregisterOrganizer(); 4305 } 4306 4307 public final class WindowContainerToken implements android.os.Parcelable { 4308 method public int describeContents(); 4309 method public void writeToParcel(@NonNull android.os.Parcel, int); 4310 field @NonNull public static final android.os.Parcelable.Creator<android.window.WindowContainerToken> CREATOR; 4311 } 4312 4313 public final class WindowContainerTransaction implements android.os.Parcelable { 4314 ctor public WindowContainerTransaction(); 4315 method @NonNull public android.window.WindowContainerTransaction clearAdjacentTaskFragments(@NonNull android.os.IBinder); 4316 method @NonNull public android.window.WindowContainerTransaction clearLaunchAdjacentFlagRoot(@NonNull android.window.WindowContainerToken); 4317 method @NonNull public android.window.WindowContainerTransaction createTaskFragment(@NonNull android.window.TaskFragmentCreationParams); 4318 method @NonNull public android.window.WindowContainerTransaction deleteTaskFragment(@NonNull android.os.IBinder); 4319 method public int describeContents(); 4320 method @NonNull public android.window.WindowContainerTransaction finishActivity(@NonNull android.os.IBinder); 4321 method @NonNull public android.window.WindowContainerTransaction removeTask(@NonNull android.window.WindowContainerToken); 4322 method @NonNull public android.window.WindowContainerTransaction reorder(@NonNull android.window.WindowContainerToken, boolean); 4323 method @NonNull public android.window.WindowContainerTransaction reparent(@NonNull android.window.WindowContainerToken, @Nullable android.window.WindowContainerToken, boolean); 4324 method @NonNull public android.window.WindowContainerTransaction reparentActivityToTaskFragment(@NonNull android.os.IBinder, @NonNull android.os.IBinder); 4325 method @NonNull public android.window.WindowContainerTransaction reparentTasks(@Nullable android.window.WindowContainerToken, @Nullable android.window.WindowContainerToken, @Nullable int[], @Nullable int[], boolean); 4326 method @NonNull public android.window.WindowContainerTransaction requestFocusOnTaskFragment(@NonNull android.os.IBinder); 4327 method @NonNull public android.window.WindowContainerTransaction scheduleFinishEnterPip(@NonNull android.window.WindowContainerToken, @NonNull android.graphics.Rect); 4328 method @NonNull public android.window.WindowContainerTransaction setActivityWindowingMode(@NonNull android.window.WindowContainerToken, int); 4329 method @NonNull public android.window.WindowContainerTransaction setAdjacentRoots(@NonNull android.window.WindowContainerToken, @NonNull android.window.WindowContainerToken); 4330 method @NonNull public android.window.WindowContainerTransaction setAdjacentTaskFragments(@NonNull android.os.IBinder, @NonNull android.os.IBinder, @Nullable android.window.WindowContainerTransaction.TaskFragmentAdjacentParams); 4331 method @NonNull public android.window.WindowContainerTransaction setAppBounds(@NonNull android.window.WindowContainerToken, @NonNull android.graphics.Rect); 4332 method @NonNull public android.window.WindowContainerTransaction setBounds(@NonNull android.window.WindowContainerToken, @NonNull android.graphics.Rect); 4333 method @NonNull public android.window.WindowContainerTransaction setBoundsChangeTransaction(@NonNull android.window.WindowContainerToken, @NonNull android.view.SurfaceControl.Transaction); 4334 method @NonNull public android.window.WindowContainerTransaction setErrorCallbackToken(@NonNull android.os.IBinder); 4335 method @NonNull public android.window.WindowContainerTransaction setFocusable(@NonNull android.window.WindowContainerToken, boolean); 4336 method @NonNull public android.window.WindowContainerTransaction setHidden(@NonNull android.window.WindowContainerToken, boolean); 4337 method @NonNull public android.window.WindowContainerTransaction setLaunchAdjacentFlagRoot(@NonNull android.window.WindowContainerToken); 4338 method @NonNull public android.window.WindowContainerTransaction setLaunchRoot(@NonNull android.window.WindowContainerToken, @Nullable int[], @Nullable int[]); 4339 method @NonNull public android.window.WindowContainerTransaction setRelativeBounds(@NonNull android.window.WindowContainerToken, @NonNull android.graphics.Rect); 4340 method @NonNull public android.window.WindowContainerTransaction setScreenSizeDp(@NonNull android.window.WindowContainerToken, int, int); 4341 method @NonNull public android.window.WindowContainerTransaction setSmallestScreenWidthDp(@NonNull android.window.WindowContainerToken, int); 4342 method @NonNull public android.window.WindowContainerTransaction setWindowingMode(@NonNull android.window.WindowContainerToken, int); 4343 method @NonNull public android.window.WindowContainerTransaction startActivityInTaskFragment(@NonNull android.os.IBinder, @NonNull android.os.IBinder, @NonNull android.content.Intent, @Nullable android.os.Bundle); 4344 method public void writeToParcel(@NonNull android.os.Parcel, int); 4345 field @NonNull public static final android.os.Parcelable.Creator<android.window.WindowContainerTransaction> CREATOR; 4346 } 4347 4348 public static class WindowContainerTransaction.TaskFragmentAdjacentParams { 4349 ctor public WindowContainerTransaction.TaskFragmentAdjacentParams(); 4350 ctor public WindowContainerTransaction.TaskFragmentAdjacentParams(@NonNull android.os.Bundle); 4351 method public void setShouldDelayPrimaryLastActivityRemoval(boolean); 4352 method public void setShouldDelaySecondaryLastActivityRemoval(boolean); 4353 method public boolean shouldDelayPrimaryLastActivityRemoval(); 4354 method public boolean shouldDelaySecondaryLastActivityRemoval(); 4355 } 4356 4357 public abstract class WindowContainerTransactionCallback { 4358 ctor public WindowContainerTransactionCallback(); 4359 method public abstract void onTransactionReady(int, @NonNull android.view.SurfaceControl.Transaction); 4360 } 4361 4362 public class WindowInfosListenerForTest { 4363 ctor public WindowInfosListenerForTest(); 4364 method @RequiresPermission(android.Manifest.permission.ACCESS_SURFACE_FLINGER) public void addWindowInfosListener(@NonNull java.util.function.Consumer<java.util.List<android.window.WindowInfosListenerForTest.WindowInfo>>); 4365 method public void removeWindowInfosListener(@NonNull java.util.function.Consumer<java.util.List<android.window.WindowInfosListenerForTest.WindowInfo>>); 4366 } 4367 4368 public static class WindowInfosListenerForTest.WindowInfo { 4369 field @NonNull public final android.graphics.Rect bounds; 4370 field public final int displayId; 4371 field public final boolean isDuplicateTouchToWallpaper; 4372 field public final boolean isFocusable; 4373 field public final boolean isPreventSplitting; 4374 field public final boolean isTouchable; 4375 field public final boolean isTrustedOverlay; 4376 field public final boolean isVisible; 4377 field public final boolean isWatchOutsideTouch; 4378 field @NonNull public final String name; 4379 field @NonNull public final android.graphics.Matrix transform; 4380 field @NonNull public final android.os.IBinder windowToken; 4381 } 4382 4383 public class WindowOrganizer { 4384 ctor public WindowOrganizer(); 4385 method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public int applySyncTransaction(@NonNull android.window.WindowContainerTransaction, @NonNull android.window.WindowContainerTransactionCallback); 4386 method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS) public void applyTransaction(@NonNull android.window.WindowContainerTransaction); 4387 } 4388 4389 @UiContext public abstract class WindowProviderService extends android.app.Service { 4390 ctor public WindowProviderService(); 4391 method public final void attachToWindowToken(@NonNull android.os.IBinder); 4392 method @NonNull public int getInitialDisplayId(); 4393 method @CallSuper @Nullable public android.os.Bundle getWindowContextOptions(); 4394 method public abstract int getWindowType(); 4395 } 4396 4397} 4398 4399