1// Signature format: 2.0 2package android.telephony { 3 4 public final class AccessNetworkConstants { 5 field public static final int TRANSPORT_TYPE_INVALID = -1; // 0xffffffff 6 } 7 8 public static final class AccessNetworkConstants.NgranBands { 9 method public static int getFrequencyRangeGroup(int); 10 field public static final int FREQUENCY_RANGE_GROUP_1 = 1; // 0x1 11 field public static final int FREQUENCY_RANGE_GROUP_2 = 2; // 0x2 12 field public static final int FREQUENCY_RANGE_GROUP_UNKNOWN = 0; // 0x0 13 } 14 15 public final class BarringInfo implements android.os.Parcelable { 16 ctor public BarringInfo(); 17 method @NonNull public android.telephony.BarringInfo createLocationInfoSanitizedCopy(); 18 } 19 20 public final class CallAttributes implements android.os.Parcelable { 21 ctor public CallAttributes(@NonNull android.telephony.PreciseCallState, int, @NonNull android.telephony.CallQuality); 22 method public int describeContents(); 23 method @NonNull public android.telephony.CallQuality getCallQuality(); 24 method public int getNetworkType(); 25 method @NonNull public android.telephony.PreciseCallState getPreciseCallState(); 26 method public void writeToParcel(android.os.Parcel, int); 27 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.CallAttributes> CREATOR; 28 } 29 30 public final class CallQuality implements android.os.Parcelable { 31 ctor public CallQuality(int, int, int, int, int, int, int, int, int, int, int); 32 ctor public CallQuality(int, int, int, int, int, int, int, int, int, int, int, boolean, boolean, boolean); 33 method public int describeContents(); 34 method public int getAverageRelativeJitter(); 35 method public int getAverageRoundTripTime(); 36 method public int getCallDuration(); 37 method public int getCodecType(); 38 method public int getDownlinkCallQualityLevel(); 39 method public int getMaxRelativeJitter(); 40 method public int getNumRtpPacketsNotReceived(); 41 method public int getNumRtpPacketsReceived(); 42 method public int getNumRtpPacketsTransmitted(); 43 method public int getNumRtpPacketsTransmittedLost(); 44 method public int getUplinkCallQualityLevel(); 45 method public boolean isIncomingSilenceDetectedAtCallSetup(); 46 method public boolean isOutgoingSilenceDetectedAtCallSetup(); 47 method public boolean isRtpInactivityDetected(); 48 method public void writeToParcel(android.os.Parcel, int); 49 field public static final int CALL_QUALITY_BAD = 4; // 0x4 50 field public static final int CALL_QUALITY_EXCELLENT = 0; // 0x0 51 field public static final int CALL_QUALITY_FAIR = 2; // 0x2 52 field public static final int CALL_QUALITY_GOOD = 1; // 0x1 53 field public static final int CALL_QUALITY_NOT_AVAILABLE = 5; // 0x5 54 field public static final int CALL_QUALITY_POOR = 3; // 0x3 55 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.CallQuality> CREATOR; 56 } 57 58 public class CarrierConfigManager { 59 method @NonNull @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String getDefaultCarrierServicePackageName(); 60 method @NonNull public static android.os.PersistableBundle getDefaultConfig(); 61 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void overrideConfig(int, @Nullable android.os.PersistableBundle); 62 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void updateConfigForPhoneId(int, String); 63 field public static final String KEY_CARRIER_SETUP_APP_STRING = "carrier_setup_app_string"; 64 field public static final String KEY_SUPPORT_CDMA_1X_VOICE_CALLS_BOOL = "support_cdma_1x_voice_calls_bool"; 65 } 66 67 public static final class CarrierConfigManager.Wifi { 68 field public static final String KEY_HOTSPOT_MAX_CLIENT_COUNT = "wifi.hotspot_maximum_client_count"; 69 field public static final String KEY_PREFIX = "wifi."; 70 } 71 72 public final class CarrierRestrictionRules implements android.os.Parcelable { 73 method @NonNull public java.util.List<java.lang.Boolean> areCarrierIdentifiersAllowed(@NonNull java.util.List<android.service.carrier.CarrierIdentifier>); 74 method public int describeContents(); 75 method @NonNull public java.util.List<android.service.carrier.CarrierIdentifier> getAllowedCarriers(); 76 method public int getDefaultCarrierRestriction(); 77 method @NonNull public java.util.List<android.service.carrier.CarrierIdentifier> getExcludedCarriers(); 78 method public int getMultiSimPolicy(); 79 method public boolean isAllCarriersAllowed(); 80 method public void writeToParcel(android.os.Parcel, int); 81 field public static final int CARRIER_RESTRICTION_DEFAULT_ALLOWED = 1; // 0x1 82 field public static final int CARRIER_RESTRICTION_DEFAULT_NOT_ALLOWED = 0; // 0x0 83 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.CarrierRestrictionRules> CREATOR; 84 field public static final int MULTISIM_POLICY_NONE = 0; // 0x0 85 field public static final int MULTISIM_POLICY_ONE_VALID_SIM_MUST_BE_PRESENT = 1; // 0x1 86 } 87 88 public static final class CarrierRestrictionRules.Builder { 89 ctor public CarrierRestrictionRules.Builder(); 90 method @NonNull public android.telephony.CarrierRestrictionRules build(); 91 method @NonNull public android.telephony.CarrierRestrictionRules.Builder setAllCarriersAllowed(); 92 method @NonNull public android.telephony.CarrierRestrictionRules.Builder setAllowedCarriers(@NonNull java.util.List<android.service.carrier.CarrierIdentifier>); 93 method @NonNull public android.telephony.CarrierRestrictionRules.Builder setDefaultCarrierRestriction(int); 94 method @NonNull public android.telephony.CarrierRestrictionRules.Builder setExcludedCarriers(@NonNull java.util.List<android.service.carrier.CarrierIdentifier>); 95 method @NonNull public android.telephony.CarrierRestrictionRules.Builder setMultiSimPolicy(int); 96 } 97 98 public class CbGeoUtils { 99 } 100 101 public static class CbGeoUtils.Circle implements android.telephony.CbGeoUtils.Geometry { 102 ctor public CbGeoUtils.Circle(@NonNull android.telephony.CbGeoUtils.LatLng, double); 103 method public boolean contains(@NonNull android.telephony.CbGeoUtils.LatLng); 104 method @NonNull public android.telephony.CbGeoUtils.LatLng getCenter(); 105 method public double getRadius(); 106 } 107 108 public static interface CbGeoUtils.Geometry { 109 method public boolean contains(@NonNull android.telephony.CbGeoUtils.LatLng); 110 } 111 112 public static class CbGeoUtils.LatLng { 113 ctor public CbGeoUtils.LatLng(double, double); 114 method public double distance(@NonNull android.telephony.CbGeoUtils.LatLng); 115 method @NonNull public android.telephony.CbGeoUtils.LatLng subtract(@NonNull android.telephony.CbGeoUtils.LatLng); 116 field public final double lat; 117 field public final double lng; 118 } 119 120 public static class CbGeoUtils.Polygon implements android.telephony.CbGeoUtils.Geometry { 121 ctor public CbGeoUtils.Polygon(@NonNull java.util.List<android.telephony.CbGeoUtils.LatLng>); 122 method public boolean contains(@NonNull android.telephony.CbGeoUtils.LatLng); 123 method @NonNull public java.util.List<android.telephony.CbGeoUtils.LatLng> getVertices(); 124 } 125 126 public abstract class CellBroadcastService extends android.app.Service { 127 ctor public CellBroadcastService(); 128 method @NonNull @WorkerThread public abstract CharSequence getCellBroadcastAreaInfo(int); 129 method public android.os.IBinder onBind(@Nullable android.content.Intent); 130 method public abstract void onCdmaCellBroadcastSms(int, @NonNull byte[], int); 131 method public abstract void onCdmaScpMessage(int, @NonNull java.util.List<android.telephony.cdma.CdmaSmsCbProgramData>, @NonNull String, @NonNull java.util.function.Consumer<android.os.Bundle>); 132 method public abstract void onGsmCellBroadcastSms(int, @NonNull byte[]); 133 field public static final String CELL_BROADCAST_SERVICE_INTERFACE = "android.telephony.CellBroadcastService"; 134 } 135 136 public abstract class CellIdentity implements android.os.Parcelable { 137 method @NonNull public abstract android.telephony.CellLocation asCellLocation(); 138 method @NonNull public abstract android.telephony.CellIdentity sanitizeLocationInfo(); 139 } 140 141 public final class CellIdentityCdma extends android.telephony.CellIdentity { 142 method @NonNull public android.telephony.cdma.CdmaCellLocation asCellLocation(); 143 method @NonNull public android.telephony.CellIdentityCdma sanitizeLocationInfo(); 144 } 145 146 public final class CellIdentityGsm extends android.telephony.CellIdentity { 147 method @NonNull public android.telephony.gsm.GsmCellLocation asCellLocation(); 148 method @NonNull public android.telephony.CellIdentityGsm sanitizeLocationInfo(); 149 } 150 151 public final class CellIdentityLte extends android.telephony.CellIdentity { 152 method @NonNull public android.telephony.gsm.GsmCellLocation asCellLocation(); 153 method @NonNull public android.telephony.CellIdentityLte sanitizeLocationInfo(); 154 } 155 156 public final class CellIdentityNr extends android.telephony.CellIdentity { 157 method @NonNull public android.telephony.CellLocation asCellLocation(); 158 method @NonNull public android.telephony.CellIdentityNr sanitizeLocationInfo(); 159 } 160 161 public final class CellIdentityTdscdma extends android.telephony.CellIdentity { 162 method @NonNull public android.telephony.gsm.GsmCellLocation asCellLocation(); 163 method @NonNull public android.telephony.CellIdentityTdscdma sanitizeLocationInfo(); 164 } 165 166 public final class CellIdentityWcdma extends android.telephony.CellIdentity { 167 method @NonNull public android.telephony.gsm.GsmCellLocation asCellLocation(); 168 method @NonNull public android.telephony.CellIdentityWcdma sanitizeLocationInfo(); 169 } 170 171 public final class DataFailCause { 172 field @Deprecated public static final int VSNCP_APN_UNATHORIZED = 2238; // 0x8be 173 } 174 175 public final class DataSpecificRegistrationInfo implements android.os.Parcelable { 176 method public int describeContents(); 177 method @NonNull public android.telephony.LteVopsSupportInfo getLteVopsSupportInfo(); 178 method public void writeToParcel(android.os.Parcel, int); 179 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.DataSpecificRegistrationInfo> CREATOR; 180 } 181 182 public final class DisconnectCause { 183 field public static final int ALREADY_DIALING = 72; // 0x48 184 field public static final int ANSWERED_ELSEWHERE = 52; // 0x34 185 field public static final int BUSY = 4; // 0x4 186 field public static final int CALLING_DISABLED = 74; // 0x4a 187 field public static final int CALL_BARRED = 20; // 0x14 188 field public static final int CALL_PULLED = 51; // 0x33 189 field public static final int CANT_CALL_WHILE_RINGING = 73; // 0x49 190 field public static final int CDMA_ACCESS_BLOCKED = 35; // 0x23 191 field public static final int CDMA_ACCESS_FAILURE = 32; // 0x20 192 field public static final int CDMA_ALREADY_ACTIVATED = 49; // 0x31 193 field public static final int CDMA_DROP = 27; // 0x1b 194 field public static final int CDMA_INTERCEPT = 28; // 0x1c 195 field public static final int CDMA_LOCKED_UNTIL_POWER_CYCLE = 26; // 0x1a 196 field public static final int CDMA_NOT_EMERGENCY = 34; // 0x22 197 field public static final int CDMA_PREEMPTED = 33; // 0x21 198 field public static final int CDMA_REORDER = 29; // 0x1d 199 field public static final int CDMA_RETRY_ORDER = 31; // 0x1f 200 field public static final int CDMA_SO_REJECT = 30; // 0x1e 201 field public static final int CONGESTION = 5; // 0x5 202 field public static final int CS_RESTRICTED = 22; // 0x16 203 field public static final int CS_RESTRICTED_EMERGENCY = 24; // 0x18 204 field public static final int CS_RESTRICTED_NORMAL = 23; // 0x17 205 field public static final int DATA_DISABLED = 54; // 0x36 206 field public static final int DATA_LIMIT_REACHED = 55; // 0x37 207 field public static final int DIALED_CALL_FORWARDING_WHILE_ROAMING = 57; // 0x39 208 field public static final int DIALED_MMI = 39; // 0x27 209 field public static final int DIAL_LOW_BATTERY = 62; // 0x3e 210 field public static final int DIAL_MODIFIED_TO_DIAL = 48; // 0x30 211 field public static final int DIAL_MODIFIED_TO_DIAL_VIDEO = 66; // 0x42 212 field public static final int DIAL_MODIFIED_TO_SS = 47; // 0x2f 213 field public static final int DIAL_MODIFIED_TO_USSD = 46; // 0x2e 214 field public static final int DIAL_VIDEO_MODIFIED_TO_DIAL = 69; // 0x45 215 field public static final int DIAL_VIDEO_MODIFIED_TO_DIAL_VIDEO = 70; // 0x46 216 field public static final int DIAL_VIDEO_MODIFIED_TO_SS = 67; // 0x43 217 field public static final int DIAL_VIDEO_MODIFIED_TO_USSD = 68; // 0x44 218 field public static final int EMERGENCY_PERM_FAILURE = 64; // 0x40 219 field public static final int EMERGENCY_TEMP_FAILURE = 63; // 0x3f 220 field public static final int ERROR_UNSPECIFIED = 36; // 0x24 221 field public static final int FDN_BLOCKED = 21; // 0x15 222 field public static final int ICC_ERROR = 19; // 0x13 223 field public static final int IMEI_NOT_ACCEPTED = 58; // 0x3a 224 field public static final int IMS_ACCESS_BLOCKED = 60; // 0x3c 225 field public static final int IMS_MERGED_SUCCESSFULLY = 45; // 0x2d 226 field public static final int IMS_SIP_ALTERNATE_EMERGENCY_CALL = 71; // 0x47 227 field public static final int INCOMING_AUTO_REJECTED = 81; // 0x51 228 field public static final int INCOMING_MISSED = 1; // 0x1 229 field public static final int INCOMING_REJECTED = 16; // 0x10 230 field public static final int INVALID_CREDENTIALS = 10; // 0xa 231 field public static final int INVALID_NUMBER = 7; // 0x7 232 field public static final int LIMIT_EXCEEDED = 15; // 0xf 233 field public static final int LOCAL = 3; // 0x3 234 field public static final int LOST_SIGNAL = 14; // 0xe 235 field public static final int LOW_BATTERY = 61; // 0x3d 236 field public static final int MAXIMUM_NUMBER_OF_CALLS_REACHED = 53; // 0x35 237 field public static final int MMI = 6; // 0x6 238 field public static final int NORMAL = 2; // 0x2 239 field public static final int NORMAL_UNSPECIFIED = 65; // 0x41 240 field public static final int NOT_DISCONNECTED = 0; // 0x0 241 field public static final int NOT_VALID = -1; // 0xffffffff 242 field public static final int NO_PHONE_NUMBER_SUPPLIED = 38; // 0x26 243 field public static final int NUMBER_UNREACHABLE = 8; // 0x8 244 field public static final int OTASP_PROVISIONING_IN_PROCESS = 76; // 0x4c 245 field public static final int OUTGOING_CANCELED = 44; // 0x2c 246 field public static final int OUTGOING_EMERGENCY_CALL_PLACED = 80; // 0x50 247 field public static final int OUTGOING_FAILURE = 43; // 0x2b 248 field public static final int OUT_OF_NETWORK = 11; // 0xb 249 field public static final int OUT_OF_SERVICE = 18; // 0x12 250 field public static final int POWER_OFF = 17; // 0x11 251 field public static final int SERVER_ERROR = 12; // 0xc 252 field public static final int SERVER_UNREACHABLE = 9; // 0x9 253 field public static final int TIMED_OUT = 13; // 0xd 254 field public static final int TOO_MANY_ONGOING_CALLS = 75; // 0x4b 255 field public static final int UNOBTAINABLE_NUMBER = 25; // 0x19 256 field public static final int VIDEO_CALL_NOT_ALLOWED_WHILE_TTY_ENABLED = 50; // 0x32 257 field public static final int VOICEMAIL_NUMBER_MISSING = 40; // 0x28 258 field public static final int WIFI_LOST = 59; // 0x3b 259 } 260 261 public final class ImsiEncryptionInfo implements android.os.Parcelable { 262 method public int describeContents(); 263 method @Nullable public String getKeyIdentifier(); 264 method @Nullable public java.security.PublicKey getPublicKey(); 265 method public void writeToParcel(@NonNull android.os.Parcel, int); 266 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ImsiEncryptionInfo> CREATOR; 267 } 268 269 public final class LteVopsSupportInfo implements android.os.Parcelable { 270 ctor public LteVopsSupportInfo(int, int); 271 method public int describeContents(); 272 method public int getEmcBearerSupport(); 273 method public int getVopsSupport(); 274 method public void writeToParcel(android.os.Parcel, int); 275 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.LteVopsSupportInfo> CREATOR; 276 field public static final int LTE_STATUS_NOT_AVAILABLE = 1; // 0x1 277 field public static final int LTE_STATUS_NOT_SUPPORTED = 3; // 0x3 278 field public static final int LTE_STATUS_SUPPORTED = 2; // 0x2 279 } 280 281 public class MbmsDownloadSession implements java.lang.AutoCloseable { 282 field public static final String MBMS_DOWNLOAD_SERVICE_ACTION = "android.telephony.action.EmbmsDownload"; 283 } 284 285 public class MbmsGroupCallSession implements java.lang.AutoCloseable { 286 field public static final String MBMS_GROUP_CALL_SERVICE_ACTION = "android.telephony.action.EmbmsGroupCall"; 287 } 288 289 public class MbmsStreamingSession implements java.lang.AutoCloseable { 290 field public static final String MBMS_STREAMING_SERVICE_ACTION = "android.telephony.action.EmbmsStreaming"; 291 } 292 293 public final class NetworkRegistrationInfo implements android.os.Parcelable { 294 method @Nullable public android.telephony.DataSpecificRegistrationInfo getDataSpecificInfo(); 295 method public int getRegistrationState(); 296 method public int getRejectCause(); 297 method public int getRoamingType(); 298 method public boolean isEmergencyEnabled(); 299 method public void writeToParcel(android.os.Parcel, int); 300 field public static final int REGISTRATION_STATE_DENIED = 3; // 0x3 301 field public static final int REGISTRATION_STATE_HOME = 1; // 0x1 302 field public static final int REGISTRATION_STATE_NOT_REGISTERED_OR_SEARCHING = 0; // 0x0 303 field public static final int REGISTRATION_STATE_NOT_REGISTERED_SEARCHING = 2; // 0x2 304 field public static final int REGISTRATION_STATE_ROAMING = 5; // 0x5 305 field public static final int REGISTRATION_STATE_UNKNOWN = 4; // 0x4 306 } 307 308 public static final class NetworkRegistrationInfo.Builder { 309 ctor public NetworkRegistrationInfo.Builder(); 310 method @NonNull public android.telephony.NetworkRegistrationInfo build(); 311 method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setAccessNetworkTechnology(int); 312 method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setAvailableServices(@NonNull java.util.List<java.lang.Integer>); 313 method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setCellIdentity(@Nullable android.telephony.CellIdentity); 314 method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setDomain(int); 315 method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setEmergencyOnly(boolean); 316 method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setRegisteredPlmn(@Nullable String); 317 method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setRegistrationState(int); 318 method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setRejectCause(int); 319 method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setTransportType(int); 320 } 321 322 public abstract class NetworkService extends android.app.Service { 323 ctor public NetworkService(); 324 method public android.os.IBinder onBind(android.content.Intent); 325 method @Nullable public abstract android.telephony.NetworkService.NetworkServiceProvider onCreateNetworkServiceProvider(int); 326 field public static final String SERVICE_INTERFACE = "android.telephony.NetworkService"; 327 } 328 329 public abstract class NetworkService.NetworkServiceProvider implements java.lang.AutoCloseable { 330 ctor public NetworkService.NetworkServiceProvider(int); 331 method public abstract void close(); 332 method public final int getSlotIndex(); 333 method public final void notifyNetworkRegistrationInfoChanged(); 334 method public void requestNetworkRegistrationInfo(int, @NonNull android.telephony.NetworkServiceCallback); 335 } 336 337 public class NetworkServiceCallback { 338 method public void onRequestNetworkRegistrationInfoComplete(int, @Nullable android.telephony.NetworkRegistrationInfo); 339 field public static final int RESULT_ERROR_BUSY = 3; // 0x3 340 field public static final int RESULT_ERROR_FAILED = 5; // 0x5 341 field public static final int RESULT_ERROR_ILLEGAL_STATE = 4; // 0x4 342 field public static final int RESULT_ERROR_INVALID_ARG = 2; // 0x2 343 field public static final int RESULT_ERROR_UNSUPPORTED = 1; // 0x1 344 field public static final int RESULT_SUCCESS = 0; // 0x0 345 } 346 347 public interface NumberVerificationCallback { 348 method public default void onCallReceived(@NonNull String); 349 method public default void onVerificationFailed(int); 350 field public static final int REASON_CONCURRENT_REQUESTS = 4; // 0x4 351 field public static final int REASON_IN_ECBM = 5; // 0x5 352 field public static final int REASON_IN_EMERGENCY_CALL = 6; // 0x6 353 field public static final int REASON_NETWORK_NOT_AVAILABLE = 2; // 0x2 354 field public static final int REASON_TIMED_OUT = 1; // 0x1 355 field public static final int REASON_TOO_MANY_CALLS = 3; // 0x3 356 field public static final int REASON_UNSPECIFIED = 0; // 0x0 357 } 358 359 public final class PhoneNumberRange implements android.os.Parcelable { 360 ctor public PhoneNumberRange(@NonNull String, @NonNull String, @NonNull String, @NonNull String); 361 method public int describeContents(); 362 method public boolean matches(@NonNull String); 363 method public void writeToParcel(android.os.Parcel, int); 364 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.PhoneNumberRange> CREATOR; 365 } 366 367 public class PhoneNumberUtils { 368 method @NonNull public static String getUsernameFromUriNumber(@NonNull String); 369 method public static boolean isUriNumber(@Nullable String); 370 method public static boolean isVoiceMailNumber(@NonNull android.content.Context, int, @Nullable String); 371 } 372 373 public final class PreciseCallState implements android.os.Parcelable { 374 ctor public PreciseCallState(int, int, int, int, int); 375 method public int describeContents(); 376 method public int getBackgroundCallState(); 377 method public int getForegroundCallState(); 378 method public int getRingingCallState(); 379 method public void writeToParcel(android.os.Parcel, int); 380 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.PreciseCallState> CREATOR; 381 field public static final int PRECISE_CALL_STATE_ACTIVE = 1; // 0x1 382 field public static final int PRECISE_CALL_STATE_ALERTING = 4; // 0x4 383 field public static final int PRECISE_CALL_STATE_DIALING = 3; // 0x3 384 field public static final int PRECISE_CALL_STATE_DISCONNECTED = 7; // 0x7 385 field public static final int PRECISE_CALL_STATE_DISCONNECTING = 8; // 0x8 386 field public static final int PRECISE_CALL_STATE_HOLDING = 2; // 0x2 387 field public static final int PRECISE_CALL_STATE_IDLE = 0; // 0x0 388 field public static final int PRECISE_CALL_STATE_INCOMING = 5; // 0x5 389 field public static final int PRECISE_CALL_STATE_NOT_VALID = -1; // 0xffffffff 390 field public static final int PRECISE_CALL_STATE_WAITING = 6; // 0x6 391 } 392 393 public final class PreciseDataConnectionState implements android.os.Parcelable { 394 method @Deprecated @NonNull public String getDataConnectionApn(); 395 method @Deprecated public int getDataConnectionApnTypeBitMask(); 396 method @Deprecated public int getDataConnectionFailCause(); 397 method @Deprecated public int getDataConnectionState(); 398 } 399 400 public final class PreciseDisconnectCause { 401 field public static final int ACCESS_CLASS_BLOCKED = 260; // 0x104 402 field public static final int ACCESS_INFORMATION_DISCARDED = 43; // 0x2b 403 field public static final int ACM_LIMIT_EXCEEDED = 68; // 0x44 404 field public static final int BEARER_CAPABILITY_NOT_AUTHORIZED = 57; // 0x39 405 field public static final int BEARER_NOT_AVAIL = 58; // 0x3a 406 field public static final int BEARER_SERVICE_NOT_IMPLEMENTED = 65; // 0x41 407 field public static final int BUSY = 17; // 0x11 408 field public static final int CALL_BARRED = 240; // 0xf0 409 field public static final int CALL_REJECTED = 21; // 0x15 410 field public static final int CDMA_ACCESS_BLOCKED = 1009; // 0x3f1 411 field public static final int CDMA_ACCESS_FAILURE = 1006; // 0x3ee 412 field public static final int CDMA_DROP = 1001; // 0x3e9 413 field public static final int CDMA_INTERCEPT = 1002; // 0x3ea 414 field public static final int CDMA_LOCKED_UNTIL_POWER_CYCLE = 1000; // 0x3e8 415 field public static final int CDMA_NOT_EMERGENCY = 1008; // 0x3f0 416 field public static final int CDMA_PREEMPTED = 1007; // 0x3ef 417 field public static final int CDMA_REORDER = 1003; // 0x3eb 418 field public static final int CDMA_RETRY_ORDER = 1005; // 0x3ed 419 field public static final int CDMA_SO_REJECT = 1004; // 0x3ec 420 field public static final int CHANNEL_NOT_AVAIL = 44; // 0x2c 421 field public static final int CHANNEL_UNACCEPTABLE = 6; // 0x6 422 field public static final int CONDITIONAL_IE_ERROR = 100; // 0x64 423 field public static final int DESTINATION_OUT_OF_ORDER = 27; // 0x1b 424 field public static final int ERROR_UNSPECIFIED = 65535; // 0xffff 425 field public static final int FACILITY_REJECTED = 29; // 0x1d 426 field public static final int FDN_BLOCKED = 241; // 0xf1 427 field public static final int IMEI_NOT_ACCEPTED = 243; // 0xf3 428 field public static final int IMSI_UNKNOWN_IN_VLR = 242; // 0xf2 429 field public static final int INCOMING_CALLS_BARRED_WITHIN_CUG = 55; // 0x37 430 field public static final int INCOMPATIBLE_DESTINATION = 88; // 0x58 431 field public static final int INFORMATION_ELEMENT_NON_EXISTENT = 99; // 0x63 432 field public static final int INTERWORKING_UNSPECIFIED = 127; // 0x7f 433 field public static final int INVALID_MANDATORY_INFORMATION = 96; // 0x60 434 field public static final int INVALID_NUMBER_FORMAT = 28; // 0x1c 435 field public static final int INVALID_TRANSACTION_IDENTIFIER = 81; // 0x51 436 field public static final int MESSAGE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 101; // 0x65 437 field public static final int MESSAGE_TYPE_NON_IMPLEMENTED = 97; // 0x61 438 field public static final int MESSAGE_TYPE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 98; // 0x62 439 field public static final int NETWORK_DETACH = 261; // 0x105 440 field public static final int NETWORK_OUT_OF_ORDER = 38; // 0x26 441 field public static final int NETWORK_REJECT = 252; // 0xfc 442 field public static final int NETWORK_RESP_TIMEOUT = 251; // 0xfb 443 field public static final int NORMAL = 16; // 0x10 444 field public static final int NORMAL_UNSPECIFIED = 31; // 0x1f 445 field public static final int NOT_VALID = -1; // 0xffffffff 446 field public static final int NO_ANSWER_FROM_USER = 19; // 0x13 447 field public static final int NO_CIRCUIT_AVAIL = 34; // 0x22 448 field public static final int NO_DISCONNECT_CAUSE_AVAILABLE = 0; // 0x0 449 field public static final int NO_ROUTE_TO_DESTINATION = 3; // 0x3 450 field public static final int NO_USER_RESPONDING = 18; // 0x12 451 field public static final int NO_VALID_SIM = 249; // 0xf9 452 field public static final int NUMBER_CHANGED = 22; // 0x16 453 field public static final int OEM_CAUSE_1 = 61441; // 0xf001 454 field public static final int OEM_CAUSE_10 = 61450; // 0xf00a 455 field public static final int OEM_CAUSE_11 = 61451; // 0xf00b 456 field public static final int OEM_CAUSE_12 = 61452; // 0xf00c 457 field public static final int OEM_CAUSE_13 = 61453; // 0xf00d 458 field public static final int OEM_CAUSE_14 = 61454; // 0xf00e 459 field public static final int OEM_CAUSE_15 = 61455; // 0xf00f 460 field public static final int OEM_CAUSE_2 = 61442; // 0xf002 461 field public static final int OEM_CAUSE_3 = 61443; // 0xf003 462 field public static final int OEM_CAUSE_4 = 61444; // 0xf004 463 field public static final int OEM_CAUSE_5 = 61445; // 0xf005 464 field public static final int OEM_CAUSE_6 = 61446; // 0xf006 465 field public static final int OEM_CAUSE_7 = 61447; // 0xf007 466 field public static final int OEM_CAUSE_8 = 61448; // 0xf008 467 field public static final int OEM_CAUSE_9 = 61449; // 0xf009 468 field public static final int ONLY_DIGITAL_INFORMATION_BEARER_AVAILABLE = 70; // 0x46 469 field public static final int OPERATOR_DETERMINED_BARRING = 8; // 0x8 470 field public static final int OUT_OF_SRV = 248; // 0xf8 471 field public static final int PREEMPTION = 25; // 0x19 472 field public static final int PROTOCOL_ERROR_UNSPECIFIED = 111; // 0x6f 473 field public static final int QOS_NOT_AVAIL = 49; // 0x31 474 field public static final int RADIO_ACCESS_FAILURE = 253; // 0xfd 475 field public static final int RADIO_INTERNAL_ERROR = 250; // 0xfa 476 field public static final int RADIO_LINK_FAILURE = 254; // 0xfe 477 field public static final int RADIO_LINK_LOST = 255; // 0xff 478 field public static final int RADIO_OFF = 247; // 0xf7 479 field public static final int RADIO_RELEASE_ABNORMAL = 259; // 0x103 480 field public static final int RADIO_RELEASE_NORMAL = 258; // 0x102 481 field public static final int RADIO_SETUP_FAILURE = 257; // 0x101 482 field public static final int RADIO_UPLINK_FAILURE = 256; // 0x100 483 field public static final int RECOVERY_ON_TIMER_EXPIRED = 102; // 0x66 484 field public static final int REQUESTED_FACILITY_NOT_IMPLEMENTED = 69; // 0x45 485 field public static final int REQUESTED_FACILITY_NOT_SUBSCRIBED = 50; // 0x32 486 field public static final int RESOURCES_UNAVAILABLE_OR_UNSPECIFIED = 47; // 0x2f 487 field public static final int SEMANTICALLY_INCORRECT_MESSAGE = 95; // 0x5f 488 field public static final int SERVICE_OPTION_NOT_AVAILABLE = 63; // 0x3f 489 field public static final int SERVICE_OR_OPTION_NOT_IMPLEMENTED = 79; // 0x4f 490 field public static final int STATUS_ENQUIRY = 30; // 0x1e 491 field public static final int SWITCHING_CONGESTION = 42; // 0x2a 492 field public static final int TEMPORARY_FAILURE = 41; // 0x29 493 field public static final int UNOBTAINABLE_NUMBER = 1; // 0x1 494 field public static final int USER_NOT_MEMBER_OF_CUG = 87; // 0x57 495 } 496 497 public class ServiceState implements android.os.Parcelable { 498 method @Nullable public android.telephony.NetworkRegistrationInfo getNetworkRegistrationInfo(int, int); 499 method @NonNull public java.util.List<android.telephony.NetworkRegistrationInfo> getNetworkRegistrationInfoListForDomain(int); 500 method @NonNull public java.util.List<android.telephony.NetworkRegistrationInfo> getNetworkRegistrationInfoListForTransportType(int); 501 field public static final int ROAMING_TYPE_DOMESTIC = 2; // 0x2 502 field public static final int ROAMING_TYPE_INTERNATIONAL = 3; // 0x3 503 field public static final int ROAMING_TYPE_NOT_ROAMING = 0; // 0x0 504 field public static final int ROAMING_TYPE_UNKNOWN = 1; // 0x1 505 } 506 507 public final class SmsCbCmasInfo implements android.os.Parcelable { 508 ctor public SmsCbCmasInfo(int, int, int, int, int, int); 509 method public int describeContents(); 510 method public int getCategory(); 511 method public int getCertainty(); 512 method public int getMessageClass(); 513 method public int getResponseType(); 514 method public int getSeverity(); 515 method public int getUrgency(); 516 method public void writeToParcel(android.os.Parcel, int); 517 field public static final int CMAS_CATEGORY_CBRNE = 10; // 0xa 518 field public static final int CMAS_CATEGORY_ENV = 7; // 0x7 519 field public static final int CMAS_CATEGORY_FIRE = 5; // 0x5 520 field public static final int CMAS_CATEGORY_GEO = 0; // 0x0 521 field public static final int CMAS_CATEGORY_HEALTH = 6; // 0x6 522 field public static final int CMAS_CATEGORY_INFRA = 9; // 0x9 523 field public static final int CMAS_CATEGORY_MET = 1; // 0x1 524 field public static final int CMAS_CATEGORY_OTHER = 11; // 0xb 525 field public static final int CMAS_CATEGORY_RESCUE = 4; // 0x4 526 field public static final int CMAS_CATEGORY_SAFETY = 2; // 0x2 527 field public static final int CMAS_CATEGORY_SECURITY = 3; // 0x3 528 field public static final int CMAS_CATEGORY_TRANSPORT = 8; // 0x8 529 field public static final int CMAS_CATEGORY_UNKNOWN = -1; // 0xffffffff 530 field public static final int CMAS_CERTAINTY_LIKELY = 1; // 0x1 531 field public static final int CMAS_CERTAINTY_OBSERVED = 0; // 0x0 532 field public static final int CMAS_CERTAINTY_UNKNOWN = -1; // 0xffffffff 533 field public static final int CMAS_CLASS_CHILD_ABDUCTION_EMERGENCY = 3; // 0x3 534 field public static final int CMAS_CLASS_CMAS_EXERCISE = 5; // 0x5 535 field public static final int CMAS_CLASS_EXTREME_THREAT = 1; // 0x1 536 field public static final int CMAS_CLASS_OPERATOR_DEFINED_USE = 6; // 0x6 537 field public static final int CMAS_CLASS_PRESIDENTIAL_LEVEL_ALERT = 0; // 0x0 538 field public static final int CMAS_CLASS_REQUIRED_MONTHLY_TEST = 4; // 0x4 539 field public static final int CMAS_CLASS_SEVERE_THREAT = 2; // 0x2 540 field public static final int CMAS_CLASS_UNKNOWN = -1; // 0xffffffff 541 field public static final int CMAS_RESPONSE_TYPE_ASSESS = 6; // 0x6 542 field public static final int CMAS_RESPONSE_TYPE_AVOID = 5; // 0x5 543 field public static final int CMAS_RESPONSE_TYPE_EVACUATE = 1; // 0x1 544 field public static final int CMAS_RESPONSE_TYPE_EXECUTE = 3; // 0x3 545 field public static final int CMAS_RESPONSE_TYPE_MONITOR = 4; // 0x4 546 field public static final int CMAS_RESPONSE_TYPE_NONE = 7; // 0x7 547 field public static final int CMAS_RESPONSE_TYPE_PREPARE = 2; // 0x2 548 field public static final int CMAS_RESPONSE_TYPE_SHELTER = 0; // 0x0 549 field public static final int CMAS_RESPONSE_TYPE_UNKNOWN = -1; // 0xffffffff 550 field public static final int CMAS_SEVERITY_EXTREME = 0; // 0x0 551 field public static final int CMAS_SEVERITY_SEVERE = 1; // 0x1 552 field public static final int CMAS_SEVERITY_UNKNOWN = -1; // 0xffffffff 553 field public static final int CMAS_URGENCY_EXPECTED = 1; // 0x1 554 field public static final int CMAS_URGENCY_IMMEDIATE = 0; // 0x0 555 field public static final int CMAS_URGENCY_UNKNOWN = -1; // 0xffffffff 556 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.SmsCbCmasInfo> CREATOR; 557 } 558 559 public final class SmsCbEtwsInfo implements android.os.Parcelable { 560 ctor public SmsCbEtwsInfo(int, boolean, boolean, boolean, @Nullable byte[]); 561 method public int describeContents(); 562 method @Nullable public byte[] getPrimaryNotificationSignature(); 563 method public long getPrimaryNotificationTimestamp(); 564 method public int getWarningType(); 565 method public boolean isEmergencyUserAlert(); 566 method public boolean isPopupAlert(); 567 method public boolean isPrimary(); 568 method public void writeToParcel(android.os.Parcel, int); 569 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.SmsCbEtwsInfo> CREATOR; 570 field public static final int ETWS_WARNING_TYPE_EARTHQUAKE = 0; // 0x0 571 field public static final int ETWS_WARNING_TYPE_EARTHQUAKE_AND_TSUNAMI = 2; // 0x2 572 field public static final int ETWS_WARNING_TYPE_OTHER_EMERGENCY = 4; // 0x4 573 field public static final int ETWS_WARNING_TYPE_TEST_MESSAGE = 3; // 0x3 574 field public static final int ETWS_WARNING_TYPE_TSUNAMI = 1; // 0x1 575 field public static final int ETWS_WARNING_TYPE_UNKNOWN = -1; // 0xffffffff 576 } 577 578 public final class SmsCbLocation implements android.os.Parcelable { 579 ctor public SmsCbLocation(@NonNull String, int, int); 580 method public int describeContents(); 581 method public int getCid(); 582 method public int getLac(); 583 method @NonNull public String getPlmn(); 584 method public boolean isInLocationArea(@NonNull android.telephony.SmsCbLocation); 585 method public boolean isInLocationArea(@Nullable String, int, int); 586 method public void writeToParcel(android.os.Parcel, int); 587 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.SmsCbLocation> CREATOR; 588 } 589 590 public final class SmsCbMessage implements android.os.Parcelable { 591 ctor public SmsCbMessage(int, int, int, @NonNull android.telephony.SmsCbLocation, int, @Nullable String, int, @Nullable String, int, @Nullable android.telephony.SmsCbEtwsInfo, @Nullable android.telephony.SmsCbCmasInfo, int, @Nullable java.util.List<android.telephony.CbGeoUtils.Geometry>, long, int, int); 592 method @NonNull public static android.telephony.SmsCbMessage createFromCursor(@NonNull android.database.Cursor); 593 method public int describeContents(); 594 method @Nullable public android.telephony.SmsCbCmasInfo getCmasWarningInfo(); 595 method @NonNull public android.content.ContentValues getContentValues(); 596 method public int getDataCodingScheme(); 597 method @Nullable public android.telephony.SmsCbEtwsInfo getEtwsWarningInfo(); 598 method public int getGeographicalScope(); 599 method @NonNull public java.util.List<android.telephony.CbGeoUtils.Geometry> getGeometries(); 600 method @Nullable public String getLanguageCode(); 601 method @NonNull public android.telephony.SmsCbLocation getLocation(); 602 method public int getMaximumWaitingDuration(); 603 method @Nullable public String getMessageBody(); 604 method public int getMessageFormat(); 605 method public int getMessagePriority(); 606 method public long getReceivedTime(); 607 method public int getSerialNumber(); 608 method public int getServiceCategory(); 609 method public int getSlotIndex(); 610 method public int getSubscriptionId(); 611 method public boolean isCmasMessage(); 612 method public boolean isEmergencyMessage(); 613 method public boolean isEtwsMessage(); 614 method public boolean needGeoFencingCheck(); 615 method public void writeToParcel(android.os.Parcel, int); 616 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.SmsCbMessage> CREATOR; 617 field public static final int GEOGRAPHICAL_SCOPE_CELL_WIDE = 3; // 0x3 618 field public static final int GEOGRAPHICAL_SCOPE_CELL_WIDE_IMMEDIATE = 0; // 0x0 619 field public static final int GEOGRAPHICAL_SCOPE_LOCATION_AREA_WIDE = 2; // 0x2 620 field public static final int GEOGRAPHICAL_SCOPE_PLMN_WIDE = 1; // 0x1 621 field public static final int MAXIMUM_WAIT_TIME_NOT_SET = 255; // 0xff 622 field public static final int MESSAGE_FORMAT_3GPP = 1; // 0x1 623 field public static final int MESSAGE_FORMAT_3GPP2 = 2; // 0x2 624 field public static final int MESSAGE_PRIORITY_EMERGENCY = 3; // 0x3 625 field public static final int MESSAGE_PRIORITY_INTERACTIVE = 1; // 0x1 626 field public static final int MESSAGE_PRIORITY_NORMAL = 0; // 0x0 627 field public static final int MESSAGE_PRIORITY_URGENT = 2; // 0x2 628 } 629 630 public final class SmsManager { 631 method public boolean disableCellBroadcastRange(int, int, int); 632 method public boolean enableCellBroadcastRange(int, int, int); 633 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getPremiumSmsConsent(@NonNull String); 634 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getSmsCapacityOnIcc(); 635 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void sendMultipartTextMessageWithoutPersisting(String, String, java.util.List<java.lang.String>, java.util.List<android.app.PendingIntent>, java.util.List<android.app.PendingIntent>); 636 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setPremiumSmsConsent(@NonNull String, int); 637 field public static final int PREMIUM_SMS_CONSENT_ALWAYS_ALLOW = 3; // 0x3 638 field public static final int PREMIUM_SMS_CONSENT_ASK_USER = 1; // 0x1 639 field public static final int PREMIUM_SMS_CONSENT_NEVER_ALLOW = 2; // 0x2 640 field public static final int PREMIUM_SMS_CONSENT_UNKNOWN = 0; // 0x0 641 } 642 643 public class SmsMessage { 644 method @Nullable public static android.telephony.SmsMessage createFromNativeSmsSubmitPdu(@NonNull byte[], boolean); 645 method @Nullable public static android.telephony.SmsMessage.SubmitPdu getSmsPdu(int, int, @Nullable String, @NonNull String, @NonNull String, long); 646 method @NonNull @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public static byte[] getSubmitPduEncodedMessage(boolean, @NonNull String, @NonNull String, int, @IntRange(from=0) int, @IntRange(from=0) int, @IntRange(from=0, to=255) int, @IntRange(from=1, to=255) int, @IntRange(from=1, to=255) int); 647 } 648 649 public class SubscriptionInfo implements android.os.Parcelable { 650 method public boolean areUiccApplicationsEnabled(); 651 method @Nullable public java.util.List<android.telephony.UiccAccessRule> getAccessRules(); 652 method public int getProfileClass(); 653 method public boolean isGroupDisabled(); 654 } 655 656 public class SubscriptionManager { 657 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean canDisablePhysicalSubscription(); 658 method public boolean canManageSubscription(@NonNull android.telephony.SubscriptionInfo, @NonNull String); 659 method @NonNull @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int[] getActiveSubscriptionIdList(); 660 method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public android.telephony.SubscriptionInfo getActiveSubscriptionInfoForIcc(@NonNull String); 661 method public java.util.List<android.telephony.SubscriptionInfo> getAvailableSubscriptionInfoList(); 662 method @NonNull @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int[] getCompleteActiveSubscriptionIdList(); 663 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getEnabledSubscriptionId(int); 664 method @NonNull public static android.content.res.Resources getResourcesForSubId(@NonNull android.content.Context, int); 665 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isSubscriptionEnabled(int); 666 method public void requestEmbeddedSubscriptionInfoListRefresh(); 667 method public void requestEmbeddedSubscriptionInfoListRefresh(int); 668 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setDefaultDataSubId(int); 669 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setDefaultSmsSubId(int); 670 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setDefaultVoiceSubscriptionId(int); 671 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setPreferredDataSubscriptionId(int, boolean, @Nullable java.util.concurrent.Executor, @Nullable java.util.function.Consumer<java.lang.Integer>); 672 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean setSubscriptionEnabled(int, boolean); 673 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setUiccApplicationsEnabled(int, boolean); 674 field @RequiresPermission(android.Manifest.permission.MANAGE_SUBSCRIPTION_PLANS) public static final String ACTION_SUBSCRIPTION_PLANS_CHANGED = "android.telephony.action.SUBSCRIPTION_PLANS_CHANGED"; 675 field @NonNull public static final android.net.Uri ADVANCED_CALLING_ENABLED_CONTENT_URI; 676 field @Deprecated public static final int PROFILE_CLASS_DEFAULT; 677 field public static final int PROFILE_CLASS_OPERATIONAL; 678 field public static final int PROFILE_CLASS_PROVISIONING; 679 field public static final int PROFILE_CLASS_TESTING; 680 field public static final int PROFILE_CLASS_UNSET; 681 field @NonNull public static final android.net.Uri VT_ENABLED_CONTENT_URI; 682 field @NonNull public static final android.net.Uri WFC_ENABLED_CONTENT_URI; 683 field @NonNull public static final android.net.Uri WFC_MODE_CONTENT_URI; 684 field @NonNull public static final android.net.Uri WFC_ROAMING_ENABLED_CONTENT_URI; 685 field @NonNull public static final android.net.Uri WFC_ROAMING_MODE_CONTENT_URI; 686 } 687 688 public final class TelephonyHistogram implements android.os.Parcelable { 689 ctor public TelephonyHistogram(int, int, int); 690 ctor public TelephonyHistogram(android.telephony.TelephonyHistogram); 691 ctor public TelephonyHistogram(android.os.Parcel); 692 method public void addTimeTaken(int); 693 method public int describeContents(); 694 method public int getAverageTime(); 695 method public int getBucketCount(); 696 method public int[] getBucketCounters(); 697 method public int[] getBucketEndPoints(); 698 method public int getCategory(); 699 method public int getId(); 700 method public int getMaxTime(); 701 method public int getMinTime(); 702 method public int getSampleCount(); 703 method public void writeToParcel(android.os.Parcel, int); 704 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.TelephonyHistogram> CREATOR; 705 field public static final int TELEPHONY_CATEGORY_RIL = 1; // 0x1 706 } 707 708 public class TelephonyManager { 709 method @Deprecated @RequiresPermission(android.Manifest.permission.CALL_PHONE) public void call(String, String); 710 method public int checkCarrierPrivilegesForPackage(String); 711 method public int checkCarrierPrivilegesForPackageAnyPhone(String); 712 method public void dial(String); 713 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean disableDataConnectivity(); 714 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean enableDataConnectivity(); 715 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean enableModemForSlot(int, boolean); 716 method @Deprecated @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void enableVideoCalling(boolean); 717 method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String getAidForAppType(int); 718 method @Deprecated @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public java.util.List<android.service.carrier.CarrierIdentifier> getAllowedCarriers(int); 719 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public long getAllowedNetworkTypes(); 720 method @Nullable @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public android.content.ComponentName getAndUpdateDefaultRespondViaMessageApplication(); 721 method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public android.telephony.ImsiEncryptionInfo getCarrierInfoForImsiEncryption(int); 722 method public java.util.List<java.lang.String> getCarrierPackageNamesForIntent(android.content.Intent); 723 method public java.util.List<java.lang.String> getCarrierPackageNamesForIntentAndPhone(android.content.Intent, int); 724 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getCarrierPrivilegeStatus(int); 725 method @NonNull @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public java.util.List<java.lang.String> getCarrierPrivilegedPackagesForAllActiveSubscriptions(); 726 method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public android.telephony.CarrierRestrictionRules getCarrierRestrictionRules(); 727 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public String getCdmaMdn(); 728 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public String getCdmaMdn(int); 729 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public String getCdmaMin(); 730 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public String getCdmaMin(int); 731 method public String getCdmaPrlVersion(); 732 method public int getCurrentPhoneType(); 733 method public int getCurrentPhoneType(int); 734 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getDataActivationState(); 735 method @Deprecated public boolean getDataEnabled(); 736 method @Deprecated public boolean getDataEnabled(int); 737 method @Nullable @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public android.content.ComponentName getDefaultRespondViaMessageApplication(); 738 method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String getDeviceSoftwareVersion(int); 739 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean getEmergencyCallbackMode(); 740 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getEmergencyNumberDbVersion(); 741 method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String getIsimDomain(); 742 method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String getIsimIst(); 743 method @NonNull @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public java.util.Map<java.lang.Integer,java.lang.Integer> getLogicalToPhysicalSlotMapping(); 744 method public int getMaxNumberOfSimultaneouslyActiveSims(); 745 method public static long getMaxNumberVerificationTimeoutMillis(); 746 method @NonNull @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String[] getMergedImsisFromGroup(); 747 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public long getPreferredNetworkTypeBitmask(); 748 method @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public int getRadioPowerState(); 749 method public int getSimApplicationState(); 750 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getSimApplicationState(int); 751 method public int getSimCardState(); 752 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getSimCardState(int); 753 method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public java.util.Locale getSimLocale(); 754 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public long getSupportedRadioAccessFamily(); 755 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public java.util.List<android.telephony.TelephonyHistogram> getTelephonyHistograms(); 756 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public android.telephony.UiccSlotInfo[] getUiccSlotsInfo(); 757 method @Nullable public android.os.Bundle getVisualVoicemailSettings(); 758 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getVoiceActivationState(); 759 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean handlePinMmi(String); 760 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean handlePinMmiForSubscriber(int, String); 761 method @Deprecated @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean iccCloseLogicalChannelBySlot(int, int); 762 method @Nullable @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannelBySlot(int, @Nullable String, int); 763 method @Deprecated @NonNull @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public String iccTransmitApduBasicChannelBySlot(int, int, int, int, int, int, @Nullable String); 764 method @Deprecated @Nullable @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public String iccTransmitApduLogicalChannelBySlot(int, int, int, int, int, int, int, @Nullable String); 765 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isAnyRadioPoweredOn(); 766 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isApnMetered(int); 767 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isApplicationOnUicc(int); 768 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isDataConnectionAllowed(); 769 method public boolean isDataConnectivityPossible(); 770 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isDataEnabledForApn(int); 771 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isEmergencyAssistanceEnabled(); 772 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) @WorkerThread public boolean isIccLockEnabled(); 773 method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isIdle(); 774 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isLteCdmaEvdoGsmWcdmaEnabled(); 775 method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isOffhook(); 776 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isOpportunisticNetworkEnabled(); 777 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isPotentialEmergencyNumber(@NonNull String); 778 method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isRadioOn(); 779 method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isRinging(); 780 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean isTetheringApnRequired(); 781 method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isVideoCallingEnabled(); 782 method @Deprecated @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public boolean isVisualVoicemailEnabled(android.telecom.PhoneAccountHandle); 783 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean matchesCurrentSimOperator(@NonNull String, int, @Nullable String); 784 method public boolean needsOtaServiceProvisioning(); 785 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void notifyOtaEmergencyNumberDbInstalled(); 786 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean rebootRadio(); 787 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void reportDefaultNetworkStatus(boolean); 788 method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.MODIFY_PHONE_STATE}) public void requestCellInfoUpdate(@NonNull android.os.WorkSource, @NonNull java.util.concurrent.Executor, @NonNull android.telephony.TelephonyManager.CellInfoCallback); 789 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void requestNumberVerification(@NonNull android.telephony.PhoneNumberRange, long, @NonNull java.util.concurrent.Executor, @NonNull android.telephony.NumberVerificationCallback); 790 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void resetAllCarrierActions(); 791 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void resetCarrierKeysForImsiEncryption(); 792 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) @WorkerThread public void resetIms(int); 793 method @RequiresPermission(android.Manifest.permission.READ_ACTIVE_EMERGENCY_SESSION) public void resetOtaEmergencyNumberDbFilePath(); 794 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean resetRadioConfig(); 795 method @RequiresPermission(android.Manifest.permission.CONNECTIVITY_INTERNAL) public void resetSettings(); 796 method @Deprecated @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public int setAllowedCarriers(int, java.util.List<android.service.carrier.CarrierIdentifier>); 797 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean setAllowedNetworkTypes(long); 798 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setCarrierDataEnabled(boolean); 799 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public int setCarrierRestrictionRules(@NonNull android.telephony.CarrierRestrictionRules); 800 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setDataActivationState(int); 801 method @Deprecated @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setDataEnabled(int, boolean); 802 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setDataRoamingEnabled(boolean); 803 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setMultiSimCarrierRestriction(boolean); 804 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean setOpportunisticNetworkState(boolean); 805 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean setPreferredNetworkTypeBitmask(long); 806 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean setRadio(boolean); 807 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setRadioEnabled(boolean); 808 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean setRadioPower(boolean); 809 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setSimPowerState(int); 810 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setSimPowerStateForSlot(int, int); 811 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setSystemSelectionChannels(@NonNull java.util.List<android.telephony.RadioAccessSpecifier>, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>); 812 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setSystemSelectionChannels(@NonNull java.util.List<android.telephony.RadioAccessSpecifier>); 813 method @Deprecated public void setVisualVoicemailEnabled(android.telecom.PhoneAccountHandle, boolean); 814 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setVoiceActivationState(int); 815 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void shutdownAllRadios(); 816 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean supplyPin(String); 817 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public int[] supplyPinReportResult(String); 818 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean supplyPuk(String, String); 819 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public int[] supplyPukReportResult(String, String); 820 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean switchSlots(int[]); 821 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void toggleRadioOnOff(); 822 method @RequiresPermission(android.Manifest.permission.READ_ACTIVE_EMERGENCY_SESSION) public void updateOtaEmergencyNumberDbFilePath(@NonNull android.os.ParcelFileDescriptor); 823 method public void updateServiceLocation(); 824 field @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public static final String ACTION_ANOMALY_REPORTED = "android.telephony.action.ANOMALY_REPORTED"; 825 field public static final String ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED = "android.intent.action.ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED"; 826 field public static final String ACTION_DEFAULT_VOICE_SUBSCRIPTION_CHANGED = "android.intent.action.ACTION_DEFAULT_VOICE_SUBSCRIPTION_CHANGED"; 827 field public static final String ACTION_EMERGENCY_ASSISTANCE = "android.telephony.action.EMERGENCY_ASSISTANCE"; 828 field public static final String ACTION_EMERGENCY_CALLBACK_MODE_CHANGED = "android.intent.action.EMERGENCY_CALLBACK_MODE_CHANGED"; 829 field public static final String ACTION_EMERGENCY_CALL_STATE_CHANGED = "android.intent.action.EMERGENCY_CALL_STATE_CHANGED"; 830 field public static final String ACTION_REQUEST_OMADM_CONFIGURATION_UPDATE = "com.android.omadm.service.CONFIGURATION_UPDATE"; 831 field public static final String ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS = "android.telephony.action.SHOW_NOTICE_ECM_BLOCK_OTHERS"; 832 field public static final String ACTION_SIM_APPLICATION_STATE_CHANGED = "android.telephony.action.SIM_APPLICATION_STATE_CHANGED"; 833 field public static final String ACTION_SIM_CARD_STATE_CHANGED = "android.telephony.action.SIM_CARD_STATE_CHANGED"; 834 field public static final String ACTION_SIM_SLOT_STATUS_CHANGED = "android.telephony.action.SIM_SLOT_STATUS_CHANGED"; 835 field public static final int CARRIER_PRIVILEGE_STATUS_ERROR_LOADING_RULES = -2; // 0xfffffffe 836 field public static final int CARRIER_PRIVILEGE_STATUS_HAS_ACCESS = 1; // 0x1 837 field public static final int CARRIER_PRIVILEGE_STATUS_NO_ACCESS = 0; // 0x0 838 field public static final int CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED = -1; // 0xffffffff 839 field public static final String EXTRA_ANOMALY_DESCRIPTION = "android.telephony.extra.ANOMALY_DESCRIPTION"; 840 field public static final String EXTRA_ANOMALY_ID = "android.telephony.extra.ANOMALY_ID"; 841 field public static final String EXTRA_PHONE_IN_ECM_STATE = "android.telephony.extra.PHONE_IN_ECM_STATE"; 842 field public static final String EXTRA_PHONE_IN_EMERGENCY_CALL = "android.telephony.extra.PHONE_IN_EMERGENCY_CALL"; 843 field public static final String EXTRA_SIM_STATE = "android.telephony.extra.SIM_STATE"; 844 field public static final String EXTRA_VISUAL_VOICEMAIL_ENABLED_BY_USER_BOOL = "android.telephony.extra.VISUAL_VOICEMAIL_ENABLED_BY_USER_BOOL"; 845 field public static final String EXTRA_VOICEMAIL_SCRAMBLED_PIN_STRING = "android.telephony.extra.VOICEMAIL_SCRAMBLED_PIN_STRING"; 846 field public static final int INVALID_EMERGENCY_NUMBER_DB_VERSION = -1; // 0xffffffff 847 field public static final int KEY_TYPE_EPDG = 1; // 0x1 848 field public static final int KEY_TYPE_WLAN = 2; // 0x2 849 field public static final long NETWORK_TYPE_BITMASK_1xRTT = 64L; // 0x40L 850 field public static final long NETWORK_TYPE_BITMASK_CDMA = 8L; // 0x8L 851 field public static final long NETWORK_TYPE_BITMASK_EDGE = 2L; // 0x2L 852 field public static final long NETWORK_TYPE_BITMASK_EHRPD = 8192L; // 0x2000L 853 field public static final long NETWORK_TYPE_BITMASK_EVDO_0 = 16L; // 0x10L 854 field public static final long NETWORK_TYPE_BITMASK_EVDO_A = 32L; // 0x20L 855 field public static final long NETWORK_TYPE_BITMASK_EVDO_B = 2048L; // 0x800L 856 field public static final long NETWORK_TYPE_BITMASK_GPRS = 1L; // 0x1L 857 field public static final long NETWORK_TYPE_BITMASK_GSM = 32768L; // 0x8000L 858 field public static final long NETWORK_TYPE_BITMASK_HSDPA = 128L; // 0x80L 859 field public static final long NETWORK_TYPE_BITMASK_HSPA = 512L; // 0x200L 860 field public static final long NETWORK_TYPE_BITMASK_HSPAP = 16384L; // 0x4000L 861 field public static final long NETWORK_TYPE_BITMASK_HSUPA = 256L; // 0x100L 862 field public static final long NETWORK_TYPE_BITMASK_IWLAN = 131072L; // 0x20000L 863 field public static final long NETWORK_TYPE_BITMASK_LTE = 4096L; // 0x1000L 864 field public static final long NETWORK_TYPE_BITMASK_LTE_CA = 262144L; // 0x40000L 865 field public static final long NETWORK_TYPE_BITMASK_NR = 524288L; // 0x80000L 866 field public static final long NETWORK_TYPE_BITMASK_TD_SCDMA = 65536L; // 0x10000L 867 field public static final long NETWORK_TYPE_BITMASK_UMTS = 4L; // 0x4L 868 field public static final long NETWORK_TYPE_BITMASK_UNKNOWN = 0L; // 0x0L 869 field public static final int RADIO_POWER_OFF = 0; // 0x0 870 field public static final int RADIO_POWER_ON = 1; // 0x1 871 field public static final int RADIO_POWER_UNAVAILABLE = 2; // 0x2 872 field public static final int SET_CARRIER_RESTRICTION_ERROR = 2; // 0x2 873 field public static final int SET_CARRIER_RESTRICTION_NOT_SUPPORTED = 1; // 0x1 874 field public static final int SET_CARRIER_RESTRICTION_SUCCESS = 0; // 0x0 875 field public static final int SIM_ACTIVATION_STATE_ACTIVATED = 2; // 0x2 876 field public static final int SIM_ACTIVATION_STATE_ACTIVATING = 1; // 0x1 877 field public static final int SIM_ACTIVATION_STATE_DEACTIVATED = 3; // 0x3 878 field public static final int SIM_ACTIVATION_STATE_RESTRICTED = 4; // 0x4 879 field public static final int SIM_ACTIVATION_STATE_UNKNOWN = 0; // 0x0 880 field public static final int SIM_STATE_LOADED = 10; // 0xa 881 field public static final int SIM_STATE_PRESENT = 11; // 0xb 882 field public static final int SRVCC_STATE_HANDOVER_CANCELED = 3; // 0x3 883 field public static final int SRVCC_STATE_HANDOVER_COMPLETED = 1; // 0x1 884 field public static final int SRVCC_STATE_HANDOVER_FAILED = 2; // 0x2 885 field public static final int SRVCC_STATE_HANDOVER_NONE = -1; // 0xffffffff 886 field public static final int SRVCC_STATE_HANDOVER_STARTED = 0; // 0x0 887 } 888 889 public final class UiccAccessRule implements android.os.Parcelable { 890 ctor public UiccAccessRule(byte[], @Nullable String, long); 891 method public int describeContents(); 892 method public int getCarrierPrivilegeStatus(android.content.pm.PackageInfo); 893 method public int getCarrierPrivilegeStatus(android.content.pm.Signature, String); 894 method public String getCertificateHexString(); 895 method @Nullable public String getPackageName(); 896 method public void writeToParcel(android.os.Parcel, int); 897 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.UiccAccessRule> CREATOR; 898 } 899 900 public class UiccSlotInfo implements android.os.Parcelable { 901 ctor @Deprecated public UiccSlotInfo(boolean, boolean, String, int, int, boolean); 902 method public int describeContents(); 903 method public String getCardId(); 904 method public int getCardStateInfo(); 905 method public boolean getIsActive(); 906 method public boolean getIsEuicc(); 907 method public boolean getIsExtendedApduSupported(); 908 method public int getLogicalSlotIdx(); 909 method public boolean isRemovable(); 910 method public void writeToParcel(android.os.Parcel, int); 911 field public static final int CARD_STATE_INFO_ABSENT = 1; // 0x1 912 field public static final int CARD_STATE_INFO_ERROR = 3; // 0x3 913 field public static final int CARD_STATE_INFO_PRESENT = 2; // 0x2 914 field public static final int CARD_STATE_INFO_RESTRICTED = 4; // 0x4 915 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.UiccSlotInfo> CREATOR; 916 } 917 918 public abstract class VisualVoicemailService extends android.app.Service { 919 method public static final void sendVisualVoicemailSms(android.content.Context, android.telecom.PhoneAccountHandle, String, short, String, android.app.PendingIntent); 920 method public static final void setSmsFilterSettings(android.content.Context, android.telecom.PhoneAccountHandle, android.telephony.VisualVoicemailSmsFilterSettings); 921 } 922 923} 924 925package android.telephony.cdma { 926 927 public final class CdmaSmsCbProgramData implements android.os.Parcelable { 928 method public int describeContents(); 929 method public int getCategory(); 930 method public int getOperation(); 931 method public void writeToParcel(android.os.Parcel, int); 932 field public static final int CATEGORY_CMAS_CHILD_ABDUCTION_EMERGENCY = 4099; // 0x1003 933 field public static final int CATEGORY_CMAS_EXTREME_THREAT = 4097; // 0x1001 934 field public static final int CATEGORY_CMAS_LAST_RESERVED_VALUE = 4351; // 0x10ff 935 field public static final int CATEGORY_CMAS_PRESIDENTIAL_LEVEL_ALERT = 4096; // 0x1000 936 field public static final int CATEGORY_CMAS_SEVERE_THREAT = 4098; // 0x1002 937 field public static final int CATEGORY_CMAS_TEST_MESSAGE = 4100; // 0x1004 938 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.cdma.CdmaSmsCbProgramData> CREATOR; 939 field public static final int OPERATION_ADD_CATEGORY = 1; // 0x1 940 field public static final int OPERATION_CLEAR_CATEGORIES = 2; // 0x2 941 field public static final int OPERATION_DELETE_CATEGORY = 0; // 0x0 942 } 943 944} 945 946package android.telephony.data { 947 948 public final class DataCallResponse implements android.os.Parcelable { 949 method public int describeContents(); 950 method @NonNull public java.util.List<android.net.LinkAddress> getAddresses(); 951 method public int getCause(); 952 method @NonNull public java.util.List<java.net.InetAddress> getDnsAddresses(); 953 method @NonNull public java.util.List<java.net.InetAddress> getGatewayAddresses(); 954 method public int getId(); 955 method @NonNull public String getInterfaceName(); 956 method public int getLinkStatus(); 957 method @Deprecated public int getMtu(); 958 method public int getMtuV4(); 959 method public int getMtuV6(); 960 method @NonNull public java.util.List<java.net.InetAddress> getPcscfAddresses(); 961 method public int getProtocolType(); 962 method public int getSuggestedRetryTime(); 963 method public void writeToParcel(android.os.Parcel, int); 964 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.data.DataCallResponse> CREATOR; 965 field public static final int LINK_STATUS_ACTIVE = 2; // 0x2 966 field public static final int LINK_STATUS_DORMANT = 1; // 0x1 967 field public static final int LINK_STATUS_INACTIVE = 0; // 0x0 968 field public static final int LINK_STATUS_UNKNOWN = -1; // 0xffffffff 969 } 970 971 public static final class DataCallResponse.Builder { 972 ctor public DataCallResponse.Builder(); 973 method @NonNull public android.telephony.data.DataCallResponse build(); 974 method @NonNull public android.telephony.data.DataCallResponse.Builder setAddresses(@NonNull java.util.List<android.net.LinkAddress>); 975 method @NonNull public android.telephony.data.DataCallResponse.Builder setCause(int); 976 method @NonNull public android.telephony.data.DataCallResponse.Builder setDnsAddresses(@NonNull java.util.List<java.net.InetAddress>); 977 method @NonNull public android.telephony.data.DataCallResponse.Builder setGatewayAddresses(@NonNull java.util.List<java.net.InetAddress>); 978 method @NonNull public android.telephony.data.DataCallResponse.Builder setId(int); 979 method @NonNull public android.telephony.data.DataCallResponse.Builder setInterfaceName(@NonNull String); 980 method @NonNull public android.telephony.data.DataCallResponse.Builder setLinkStatus(int); 981 method @Deprecated @NonNull public android.telephony.data.DataCallResponse.Builder setMtu(int); 982 method @NonNull public android.telephony.data.DataCallResponse.Builder setMtuV4(int); 983 method @NonNull public android.telephony.data.DataCallResponse.Builder setMtuV6(int); 984 method @NonNull public android.telephony.data.DataCallResponse.Builder setPcscfAddresses(@NonNull java.util.List<java.net.InetAddress>); 985 method @NonNull public android.telephony.data.DataCallResponse.Builder setProtocolType(int); 986 method @NonNull public android.telephony.data.DataCallResponse.Builder setSuggestedRetryTime(int); 987 } 988 989 public final class DataProfile implements android.os.Parcelable { 990 method public int describeContents(); 991 method @NonNull public String getApn(); 992 method public int getAuthType(); 993 method public int getBearerBitmask(); 994 method @Deprecated public int getMtu(); 995 method public int getMtuV4(); 996 method public int getMtuV6(); 997 method @Nullable public String getPassword(); 998 method public int getProfileId(); 999 method public int getProtocolType(); 1000 method public int getRoamingProtocolType(); 1001 method public int getSupportedApnTypesBitmask(); 1002 method public int getType(); 1003 method @Nullable public String getUserName(); 1004 method public boolean isEnabled(); 1005 method public boolean isPersistent(); 1006 method public boolean isPreferred(); 1007 method public void writeToParcel(android.os.Parcel, int); 1008 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.data.DataProfile> CREATOR; 1009 field public static final int TYPE_3GPP = 1; // 0x1 1010 field public static final int TYPE_3GPP2 = 2; // 0x2 1011 field public static final int TYPE_COMMON = 0; // 0x0 1012 } 1013 1014 public static final class DataProfile.Builder { 1015 ctor public DataProfile.Builder(); 1016 method @NonNull public android.telephony.data.DataProfile build(); 1017 method @NonNull public android.telephony.data.DataProfile.Builder enable(boolean); 1018 method @NonNull public android.telephony.data.DataProfile.Builder setApn(@NonNull String); 1019 method @NonNull public android.telephony.data.DataProfile.Builder setAuthType(int); 1020 method @NonNull public android.telephony.data.DataProfile.Builder setBearerBitmask(int); 1021 method @Deprecated @NonNull public android.telephony.data.DataProfile.Builder setMtu(int); 1022 method @NonNull public android.telephony.data.DataProfile.Builder setMtuV4(int); 1023 method @NonNull public android.telephony.data.DataProfile.Builder setMtuV6(int); 1024 method @NonNull public android.telephony.data.DataProfile.Builder setPassword(@NonNull String); 1025 method @NonNull public android.telephony.data.DataProfile.Builder setPersistent(boolean); 1026 method @NonNull public android.telephony.data.DataProfile.Builder setPreferred(boolean); 1027 method @NonNull public android.telephony.data.DataProfile.Builder setProfileId(int); 1028 method @NonNull public android.telephony.data.DataProfile.Builder setProtocolType(int); 1029 method @NonNull public android.telephony.data.DataProfile.Builder setRoamingProtocolType(int); 1030 method @NonNull public android.telephony.data.DataProfile.Builder setSupportedApnTypesBitmask(int); 1031 method @NonNull public android.telephony.data.DataProfile.Builder setType(int); 1032 method @NonNull public android.telephony.data.DataProfile.Builder setUserName(@NonNull String); 1033 } 1034 1035 public abstract class DataService extends android.app.Service { 1036 ctor public DataService(); 1037 method public android.os.IBinder onBind(android.content.Intent); 1038 method @Nullable public abstract android.telephony.data.DataService.DataServiceProvider onCreateDataServiceProvider(int); 1039 field public static final int REQUEST_REASON_HANDOVER = 3; // 0x3 1040 field public static final int REQUEST_REASON_NORMAL = 1; // 0x1 1041 field public static final int REQUEST_REASON_SHUTDOWN = 2; // 0x2 1042 field public static final int REQUEST_REASON_UNKNOWN = 0; // 0x0 1043 field public static final String SERVICE_INTERFACE = "android.telephony.data.DataService"; 1044 } 1045 1046 public abstract class DataService.DataServiceProvider implements java.lang.AutoCloseable { 1047 ctor public DataService.DataServiceProvider(int); 1048 method public abstract void close(); 1049 method public void deactivateDataCall(int, int, @Nullable android.telephony.data.DataServiceCallback); 1050 method public final int getSlotIndex(); 1051 method public final void notifyDataCallListChanged(java.util.List<android.telephony.data.DataCallResponse>); 1052 method public void requestDataCallList(@NonNull android.telephony.data.DataServiceCallback); 1053 method public void setDataProfile(@NonNull java.util.List<android.telephony.data.DataProfile>, boolean, @NonNull android.telephony.data.DataServiceCallback); 1054 method public void setInitialAttachApn(@NonNull android.telephony.data.DataProfile, boolean, @NonNull android.telephony.data.DataServiceCallback); 1055 method public void setupDataCall(int, @NonNull android.telephony.data.DataProfile, boolean, boolean, int, @Nullable android.net.LinkProperties, @NonNull android.telephony.data.DataServiceCallback); 1056 } 1057 1058 public class DataServiceCallback { 1059 method public void onDataCallListChanged(@NonNull java.util.List<android.telephony.data.DataCallResponse>); 1060 method public void onDeactivateDataCallComplete(int); 1061 method public void onRequestDataCallListComplete(int, @NonNull java.util.List<android.telephony.data.DataCallResponse>); 1062 method public void onSetDataProfileComplete(int); 1063 method public void onSetInitialAttachApnComplete(int); 1064 method public void onSetupDataCallComplete(int, @Nullable android.telephony.data.DataCallResponse); 1065 field public static final int RESULT_ERROR_BUSY = 3; // 0x3 1066 field public static final int RESULT_ERROR_ILLEGAL_STATE = 4; // 0x4 1067 field public static final int RESULT_ERROR_INVALID_ARG = 2; // 0x2 1068 field public static final int RESULT_ERROR_UNSUPPORTED = 1; // 0x1 1069 field public static final int RESULT_SUCCESS = 0; // 0x0 1070 } 1071 1072 public abstract class QualifiedNetworksService extends android.app.Service { 1073 ctor public QualifiedNetworksService(); 1074 method @NonNull public abstract android.telephony.data.QualifiedNetworksService.NetworkAvailabilityProvider onCreateNetworkAvailabilityProvider(int); 1075 field public static final String QUALIFIED_NETWORKS_SERVICE_INTERFACE = "android.telephony.data.QualifiedNetworksService"; 1076 } 1077 1078 public abstract class QualifiedNetworksService.NetworkAvailabilityProvider implements java.lang.AutoCloseable { 1079 ctor public QualifiedNetworksService.NetworkAvailabilityProvider(int); 1080 method public abstract void close(); 1081 method public final int getSlotIndex(); 1082 method public final void updateQualifiedNetworkTypes(int, @NonNull java.util.List<java.lang.Integer>); 1083 } 1084 1085} 1086 1087package android.telephony.euicc { 1088 1089 public final class DownloadableSubscription implements android.os.Parcelable { 1090 method public java.util.List<android.telephony.UiccAccessRule> getAccessRules(); 1091 method @Nullable public String getCarrierName(); 1092 } 1093 1094 public static final class DownloadableSubscription.Builder { 1095 ctor public DownloadableSubscription.Builder(); 1096 ctor public DownloadableSubscription.Builder(android.telephony.euicc.DownloadableSubscription); 1097 method public android.telephony.euicc.DownloadableSubscription build(); 1098 method public android.telephony.euicc.DownloadableSubscription.Builder setAccessRules(java.util.List<android.telephony.UiccAccessRule>); 1099 method public android.telephony.euicc.DownloadableSubscription.Builder setCarrierName(String); 1100 method public android.telephony.euicc.DownloadableSubscription.Builder setConfirmationCode(String); 1101 method public android.telephony.euicc.DownloadableSubscription.Builder setEncodedActivationCode(String); 1102 } 1103 1104 public class EuiccCardManager { 1105 method public void authenticateServer(String, String, byte[], byte[], byte[], byte[], java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<byte[]>); 1106 method public void cancelSession(String, byte[], @android.telephony.euicc.EuiccCardManager.CancelReason int, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<byte[]>); 1107 method public void deleteProfile(String, String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.Void>); 1108 method public void disableProfile(String, String, boolean, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.Void>); 1109 method public void listNotifications(String, @android.telephony.euicc.EuiccNotification.Event int, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<android.telephony.euicc.EuiccNotification[]>); 1110 method public void loadBoundProfilePackage(String, byte[], java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<byte[]>); 1111 method public void prepareDownload(String, @Nullable byte[], byte[], byte[], byte[], java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<byte[]>); 1112 method public void removeNotificationFromList(String, int, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.Void>); 1113 method public void requestAllProfiles(String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<android.service.euicc.EuiccProfileInfo[]>); 1114 method public void requestDefaultSmdpAddress(String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.String>); 1115 method public void requestEuiccChallenge(String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<byte[]>); 1116 method public void requestEuiccInfo1(String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<byte[]>); 1117 method public void requestEuiccInfo2(String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<byte[]>); 1118 method public void requestProfile(String, String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<android.service.euicc.EuiccProfileInfo>); 1119 method public void requestRulesAuthTable(String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<android.telephony.euicc.EuiccRulesAuthTable>); 1120 method public void requestSmdsAddress(String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.String>); 1121 method public void resetMemory(String, @android.telephony.euicc.EuiccCardManager.ResetOption int, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.Void>); 1122 method public void retrieveNotification(String, int, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<android.telephony.euicc.EuiccNotification>); 1123 method public void retrieveNotificationList(String, @android.telephony.euicc.EuiccNotification.Event int, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<android.telephony.euicc.EuiccNotification[]>); 1124 method public void setDefaultSmdpAddress(String, String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.Void>); 1125 method public void setNickname(String, String, String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.Void>); 1126 method public void switchToProfile(String, String, boolean, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<android.service.euicc.EuiccProfileInfo>); 1127 field public static final int CANCEL_REASON_END_USER_REJECTED = 0; // 0x0 1128 field public static final int CANCEL_REASON_POSTPONED = 1; // 0x1 1129 field public static final int CANCEL_REASON_PPR_NOT_ALLOWED = 3; // 0x3 1130 field public static final int CANCEL_REASON_TIMEOUT = 2; // 0x2 1131 field public static final int RESET_OPTION_DELETE_FIELD_LOADED_TEST_PROFILES = 2; // 0x2 1132 field public static final int RESET_OPTION_DELETE_OPERATIONAL_PROFILES = 1; // 0x1 1133 field public static final int RESET_OPTION_RESET_DEFAULT_SMDP_ADDRESS = 4; // 0x4 1134 field public static final int RESULT_CALLER_NOT_ALLOWED = -3; // 0xfffffffd 1135 field public static final int RESULT_EUICC_NOT_FOUND = -2; // 0xfffffffe 1136 field public static final int RESULT_OK = 0; // 0x0 1137 field public static final int RESULT_UNKNOWN_ERROR = -1; // 0xffffffff 1138 } 1139 1140 @IntDef(prefix={"CANCEL_REASON_"}, value={android.telephony.euicc.EuiccCardManager.CANCEL_REASON_END_USER_REJECTED, android.telephony.euicc.EuiccCardManager.CANCEL_REASON_POSTPONED, android.telephony.euicc.EuiccCardManager.CANCEL_REASON_TIMEOUT, android.telephony.euicc.EuiccCardManager.CANCEL_REASON_PPR_NOT_ALLOWED}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface EuiccCardManager.CancelReason { 1141 } 1142 1143 @IntDef(flag=true, prefix={"RESET_OPTION_"}, value={android.telephony.euicc.EuiccCardManager.RESET_OPTION_DELETE_OPERATIONAL_PROFILES, android.telephony.euicc.EuiccCardManager.RESET_OPTION_DELETE_FIELD_LOADED_TEST_PROFILES, android.telephony.euicc.EuiccCardManager.RESET_OPTION_RESET_DEFAULT_SMDP_ADDRESS}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface EuiccCardManager.ResetOption { 1144 } 1145 1146 public static interface EuiccCardManager.ResultCallback<T> { 1147 method public void onComplete(int, T); 1148 } 1149 1150 public class EuiccManager { 1151 method @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public void continueOperation(android.content.Intent, android.os.Bundle); 1152 method @Deprecated @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public void eraseSubscriptions(@NonNull android.app.PendingIntent); 1153 method @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public void eraseSubscriptions(@android.telephony.euicc.EuiccCardManager.ResetOption int, @NonNull android.app.PendingIntent); 1154 method @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public void getDefaultDownloadableSubscriptionList(android.app.PendingIntent); 1155 method @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public void getDownloadableSubscriptionMetadata(android.telephony.euicc.DownloadableSubscription, android.app.PendingIntent); 1156 method @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public int getOtaStatus(); 1157 method @NonNull @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public java.util.List<java.lang.String> getSupportedCountries(); 1158 method @NonNull @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public java.util.List<java.lang.String> getUnsupportedCountries(); 1159 method @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public boolean isSupportedCountry(@NonNull String); 1160 method @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public void setSupportedCountries(@NonNull java.util.List<java.lang.String>); 1161 method @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public void setUnsupportedCountries(@NonNull java.util.List<java.lang.String>); 1162 field public static final String ACTION_DELETE_SUBSCRIPTION_PRIVILEGED = "android.telephony.euicc.action.DELETE_SUBSCRIPTION_PRIVILEGED"; 1163 field @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public static final String ACTION_OTA_STATUS_CHANGED = "android.telephony.euicc.action.OTA_STATUS_CHANGED"; 1164 field public static final String ACTION_PROVISION_EMBEDDED_SUBSCRIPTION = "android.telephony.euicc.action.PROVISION_EMBEDDED_SUBSCRIPTION"; 1165 field public static final String ACTION_RENAME_SUBSCRIPTION_PRIVILEGED = "android.telephony.euicc.action.RENAME_SUBSCRIPTION_PRIVILEGED"; 1166 field public static final String ACTION_TOGGLE_SUBSCRIPTION_PRIVILEGED = "android.telephony.euicc.action.TOGGLE_SUBSCRIPTION_PRIVILEGED"; 1167 field public static final int EUICC_ACTIVATION_TYPE_ACCOUNT_REQUIRED = 4; // 0x4 1168 field public static final int EUICC_ACTIVATION_TYPE_BACKUP = 2; // 0x2 1169 field public static final int EUICC_ACTIVATION_TYPE_DEFAULT = 1; // 0x1 1170 field public static final int EUICC_ACTIVATION_TYPE_TRANSFER = 3; // 0x3 1171 field public static final int EUICC_OTA_FAILED = 2; // 0x2 1172 field public static final int EUICC_OTA_IN_PROGRESS = 1; // 0x1 1173 field public static final int EUICC_OTA_NOT_NEEDED = 4; // 0x4 1174 field public static final int EUICC_OTA_STATUS_UNAVAILABLE = 5; // 0x5 1175 field public static final int EUICC_OTA_SUCCEEDED = 3; // 0x3 1176 field public static final String EXTRA_ACTIVATION_TYPE = "android.telephony.euicc.extra.ACTIVATION_TYPE"; 1177 field public static final String EXTRA_EMBEDDED_SUBSCRIPTION_DOWNLOADABLE_SUBSCRIPTIONS = "android.telephony.euicc.extra.EMBEDDED_SUBSCRIPTION_DOWNLOADABLE_SUBSCRIPTIONS"; 1178 field public static final String EXTRA_ENABLE_SUBSCRIPTION = "android.telephony.euicc.extra.ENABLE_SUBSCRIPTION"; 1179 field public static final String EXTRA_FORCE_PROVISION = "android.telephony.euicc.extra.FORCE_PROVISION"; 1180 field public static final String EXTRA_FROM_SUBSCRIPTION_ID = "android.telephony.euicc.extra.FROM_SUBSCRIPTION_ID"; 1181 field public static final String EXTRA_PHYSICAL_SLOT_ID = "android.telephony.euicc.extra.PHYSICAL_SLOT_ID"; 1182 field public static final String EXTRA_SUBSCRIPTION_ID = "android.telephony.euicc.extra.SUBSCRIPTION_ID"; 1183 field public static final String EXTRA_SUBSCRIPTION_NICKNAME = "android.telephony.euicc.extra.SUBSCRIPTION_NICKNAME"; 1184 } 1185 1186 @IntDef(prefix={"EUICC_OTA_"}, value={android.telephony.euicc.EuiccManager.EUICC_OTA_IN_PROGRESS, android.telephony.euicc.EuiccManager.EUICC_OTA_FAILED, android.telephony.euicc.EuiccManager.EUICC_OTA_SUCCEEDED, android.telephony.euicc.EuiccManager.EUICC_OTA_NOT_NEEDED, android.telephony.euicc.EuiccManager.EUICC_OTA_STATUS_UNAVAILABLE}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface EuiccManager.OtaStatus { 1187 } 1188 1189 public final class EuiccNotification implements android.os.Parcelable { 1190 ctor public EuiccNotification(int, String, @android.telephony.euicc.EuiccNotification.Event int, @Nullable byte[]); 1191 method public int describeContents(); 1192 method @Nullable public byte[] getData(); 1193 method @android.telephony.euicc.EuiccNotification.Event public int getEvent(); 1194 method public int getSeq(); 1195 method public String getTargetAddr(); 1196 method public void writeToParcel(android.os.Parcel, int); 1197 field @android.telephony.euicc.EuiccNotification.Event public static final int ALL_EVENTS = 15; // 0xf 1198 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.euicc.EuiccNotification> CREATOR; 1199 field public static final int EVENT_DELETE = 8; // 0x8 1200 field public static final int EVENT_DISABLE = 4; // 0x4 1201 field public static final int EVENT_ENABLE = 2; // 0x2 1202 field public static final int EVENT_INSTALL = 1; // 0x1 1203 } 1204 1205 @IntDef(flag=true, prefix={"EVENT_"}, value={android.telephony.euicc.EuiccNotification.EVENT_INSTALL, android.telephony.euicc.EuiccNotification.EVENT_ENABLE, android.telephony.euicc.EuiccNotification.EVENT_DISABLE, android.telephony.euicc.EuiccNotification.EVENT_DELETE}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface EuiccNotification.Event { 1206 } 1207 1208 public final class EuiccRulesAuthTable implements android.os.Parcelable { 1209 method public int describeContents(); 1210 method public int findIndex(@android.service.euicc.EuiccProfileInfo.PolicyRule int, android.service.carrier.CarrierIdentifier); 1211 method public boolean hasPolicyRuleFlag(int, @android.telephony.euicc.EuiccRulesAuthTable.PolicyRuleFlag int); 1212 method public void writeToParcel(android.os.Parcel, int); 1213 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.euicc.EuiccRulesAuthTable> CREATOR; 1214 field public static final int POLICY_RULE_FLAG_CONSENT_REQUIRED = 1; // 0x1 1215 } 1216 1217 public static final class EuiccRulesAuthTable.Builder { 1218 ctor public EuiccRulesAuthTable.Builder(int); 1219 method public android.telephony.euicc.EuiccRulesAuthTable.Builder add(int, java.util.List<android.service.carrier.CarrierIdentifier>, int); 1220 method public android.telephony.euicc.EuiccRulesAuthTable build(); 1221 } 1222 1223 @IntDef(flag=true, prefix={"POLICY_RULE_FLAG_"}, value={android.telephony.euicc.EuiccRulesAuthTable.POLICY_RULE_FLAG_CONSENT_REQUIRED}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface EuiccRulesAuthTable.PolicyRuleFlag { 1224 } 1225 1226} 1227 1228package android.telephony.ims { 1229 1230 public final class ImsCallForwardInfo implements android.os.Parcelable { 1231 ctor public ImsCallForwardInfo(int, int, int, int, @NonNull String, int); 1232 method public int describeContents(); 1233 method public int getCondition(); 1234 method public String getNumber(); 1235 method public int getServiceClass(); 1236 method public int getStatus(); 1237 method public int getTimeSeconds(); 1238 method public int getToA(); 1239 method public void writeToParcel(android.os.Parcel, int); 1240 field public static final int CDIV_CF_REASON_ALL = 4; // 0x4 1241 field public static final int CDIV_CF_REASON_ALL_CONDITIONAL = 5; // 0x5 1242 field public static final int CDIV_CF_REASON_BUSY = 1; // 0x1 1243 field public static final int CDIV_CF_REASON_NOT_LOGGED_IN = 6; // 0x6 1244 field public static final int CDIV_CF_REASON_NOT_REACHABLE = 3; // 0x3 1245 field public static final int CDIV_CF_REASON_NO_REPLY = 2; // 0x2 1246 field public static final int CDIV_CF_REASON_UNCONDITIONAL = 0; // 0x0 1247 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsCallForwardInfo> CREATOR; 1248 field public static final int STATUS_ACTIVE = 1; // 0x1 1249 field public static final int STATUS_NOT_ACTIVE = 0; // 0x0 1250 field public static final int TYPE_OF_ADDRESS_INTERNATIONAL = 145; // 0x91 1251 field public static final int TYPE_OF_ADDRESS_UNKNOWN = 129; // 0x81 1252 } 1253 1254 public final class ImsCallProfile implements android.os.Parcelable { 1255 ctor public ImsCallProfile(); 1256 ctor public ImsCallProfile(int, int); 1257 ctor public ImsCallProfile(int, int, android.os.Bundle, android.telephony.ims.ImsStreamMediaProfile); 1258 method public int describeContents(); 1259 method public String getCallExtra(String); 1260 method public String getCallExtra(String, String); 1261 method public boolean getCallExtraBoolean(String); 1262 method public boolean getCallExtraBoolean(String, boolean); 1263 method public int getCallExtraInt(String); 1264 method public int getCallExtraInt(String, int); 1265 method public android.os.Bundle getCallExtras(); 1266 method public int getCallType(); 1267 method public static int getCallTypeFromVideoState(int); 1268 method public int getCallerNumberVerificationStatus(); 1269 method public int getEmergencyCallRouting(); 1270 method public int getEmergencyServiceCategories(); 1271 method @NonNull public java.util.List<java.lang.String> getEmergencyUrns(); 1272 method public android.telephony.ims.ImsStreamMediaProfile getMediaProfile(); 1273 method @NonNull public android.os.Bundle getProprietaryCallExtras(); 1274 method public int getRestrictCause(); 1275 method public int getServiceType(); 1276 method public static int getVideoStateFromCallType(int); 1277 method public static int getVideoStateFromImsCallProfile(android.telephony.ims.ImsCallProfile); 1278 method public boolean hasKnownUserIntentEmergency(); 1279 method public boolean isEmergencyCallTesting(); 1280 method public boolean isVideoCall(); 1281 method public boolean isVideoPaused(); 1282 method public static int presentationToOir(int); 1283 method public void setCallExtra(String, String); 1284 method public void setCallExtraBoolean(String, boolean); 1285 method public void setCallExtraInt(String, int); 1286 method public void setCallRestrictCause(int); 1287 method public void setCallerNumberVerificationStatus(int); 1288 method public void setEmergencyCallRouting(int); 1289 method public void setEmergencyCallTesting(boolean); 1290 method public void setEmergencyServiceCategories(int); 1291 method public void setEmergencyUrns(@NonNull java.util.List<java.lang.String>); 1292 method public void setHasKnownUserIntentEmergency(boolean); 1293 method public void updateCallExtras(android.telephony.ims.ImsCallProfile); 1294 method public void updateCallType(android.telephony.ims.ImsCallProfile); 1295 method public void updateMediaProfile(android.telephony.ims.ImsCallProfile); 1296 method public void writeToParcel(android.os.Parcel, int); 1297 field public static final int CALL_RESTRICT_CAUSE_DISABLED = 2; // 0x2 1298 field public static final int CALL_RESTRICT_CAUSE_HD = 3; // 0x3 1299 field public static final int CALL_RESTRICT_CAUSE_NONE = 0; // 0x0 1300 field public static final int CALL_RESTRICT_CAUSE_RAT = 1; // 0x1 1301 field public static final int CALL_TYPE_VIDEO_N_VOICE = 3; // 0x3 1302 field public static final int CALL_TYPE_VOICE = 2; // 0x2 1303 field public static final int CALL_TYPE_VOICE_N_VIDEO = 1; // 0x1 1304 field public static final int CALL_TYPE_VS = 8; // 0x8 1305 field public static final int CALL_TYPE_VS_RX = 10; // 0xa 1306 field public static final int CALL_TYPE_VS_TX = 9; // 0x9 1307 field public static final int CALL_TYPE_VT = 4; // 0x4 1308 field public static final int CALL_TYPE_VT_NODIR = 7; // 0x7 1309 field public static final int CALL_TYPE_VT_RX = 6; // 0x6 1310 field public static final int CALL_TYPE_VT_TX = 5; // 0x5 1311 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsCallProfile> CREATOR; 1312 field public static final int DIALSTRING_NORMAL = 0; // 0x0 1313 field public static final int DIALSTRING_SS_CONF = 1; // 0x1 1314 field public static final int DIALSTRING_USSD = 2; // 0x2 1315 field public static final String EXTRA_ADDITIONAL_CALL_INFO = "AdditionalCallInfo"; 1316 field public static final String EXTRA_ADDITIONAL_SIP_INVITE_FIELDS = "android.telephony.ims.extra.ADDITIONAL_SIP_INVITE_FIELDS"; 1317 field public static final String EXTRA_CALL_DISCONNECT_CAUSE = "android.telephony.ims.extra.CALL_DISCONNECT_CAUSE"; 1318 field public static final String EXTRA_CALL_NETWORK_TYPE = "android.telephony.ims.extra.CALL_NETWORK_TYPE"; 1319 field @Deprecated public static final String EXTRA_CALL_RAT_TYPE = "CallRadioTech"; 1320 field public static final String EXTRA_CHILD_NUMBER = "ChildNum"; 1321 field public static final String EXTRA_CNA = "cna"; 1322 field public static final String EXTRA_CNAP = "cnap"; 1323 field public static final String EXTRA_CODEC = "Codec"; 1324 field public static final String EXTRA_DIALSTRING = "dialstring"; 1325 field public static final String EXTRA_DISPLAY_TEXT = "DisplayText"; 1326 field public static final String EXTRA_EMERGENCY_CALL = "e_call"; 1327 field public static final String EXTRA_FORWARDED_NUMBER = "android.telephony.ims.extra.FORWARDED_NUMBER"; 1328 field public static final String EXTRA_IS_CALL_PULL = "CallPull"; 1329 field public static final String EXTRA_OI = "oi"; 1330 field public static final String EXTRA_OIR = "oir"; 1331 field public static final String EXTRA_REMOTE_URI = "remote_uri"; 1332 field public static final String EXTRA_USSD = "ussd"; 1333 field public static final int OIR_DEFAULT = 0; // 0x0 1334 field public static final int OIR_PRESENTATION_NOT_RESTRICTED = 2; // 0x2 1335 field public static final int OIR_PRESENTATION_PAYPHONE = 4; // 0x4 1336 field public static final int OIR_PRESENTATION_RESTRICTED = 1; // 0x1 1337 field public static final int OIR_PRESENTATION_UNKNOWN = 3; // 0x3 1338 field public static final int SERVICE_TYPE_EMERGENCY = 2; // 0x2 1339 field public static final int SERVICE_TYPE_NONE = 0; // 0x0 1340 field public static final int SERVICE_TYPE_NORMAL = 1; // 0x1 1341 field public static final int VERIFICATION_STATUS_FAILED = 2; // 0x2 1342 field public static final int VERIFICATION_STATUS_NOT_VERIFIED = 0; // 0x0 1343 field public static final int VERIFICATION_STATUS_PASSED = 1; // 0x1 1344 } 1345 1346 public class ImsCallSessionListener { 1347 method public void callQualityChanged(@NonNull android.telephony.CallQuality); 1348 method public void callSessionConferenceExtendFailed(android.telephony.ims.ImsReasonInfo); 1349 method public void callSessionConferenceExtendReceived(android.telephony.ims.stub.ImsCallSessionImplBase, android.telephony.ims.ImsCallProfile); 1350 method public void callSessionConferenceExtended(android.telephony.ims.stub.ImsCallSessionImplBase, android.telephony.ims.ImsCallProfile); 1351 method public void callSessionConferenceStateUpdated(android.telephony.ims.ImsConferenceState); 1352 method @Deprecated public void callSessionHandover(int, int, android.telephony.ims.ImsReasonInfo); 1353 method @Deprecated public void callSessionHandoverFailed(int, int, android.telephony.ims.ImsReasonInfo); 1354 method public void callSessionHeld(android.telephony.ims.ImsCallProfile); 1355 method public void callSessionHoldFailed(android.telephony.ims.ImsReasonInfo); 1356 method public void callSessionHoldReceived(android.telephony.ims.ImsCallProfile); 1357 method public void callSessionInitiated(android.telephony.ims.ImsCallProfile); 1358 method public void callSessionInitiatedFailed(android.telephony.ims.ImsReasonInfo); 1359 method public void callSessionInviteParticipantsRequestDelivered(); 1360 method public void callSessionInviteParticipantsRequestFailed(android.telephony.ims.ImsReasonInfo); 1361 method @Deprecated public void callSessionMayHandover(int, int); 1362 method public void callSessionMergeComplete(android.telephony.ims.stub.ImsCallSessionImplBase); 1363 method public void callSessionMergeFailed(android.telephony.ims.ImsReasonInfo); 1364 method public void callSessionMergeStarted(android.telephony.ims.stub.ImsCallSessionImplBase, android.telephony.ims.ImsCallProfile); 1365 method public void callSessionMultipartyStateChanged(boolean); 1366 method public void callSessionProgressing(android.telephony.ims.ImsStreamMediaProfile); 1367 method public void callSessionRemoveParticipantsRequestDelivered(); 1368 method public void callSessionRemoveParticipantsRequestFailed(android.telephony.ims.ImsReasonInfo); 1369 method public void callSessionResumeFailed(android.telephony.ims.ImsReasonInfo); 1370 method public void callSessionResumeReceived(android.telephony.ims.ImsCallProfile); 1371 method public void callSessionResumed(android.telephony.ims.ImsCallProfile); 1372 method public void callSessionRttAudioIndicatorChanged(@NonNull android.telephony.ims.ImsStreamMediaProfile); 1373 method public void callSessionRttMessageReceived(String); 1374 method public void callSessionRttModifyRequestReceived(android.telephony.ims.ImsCallProfile); 1375 method public void callSessionRttModifyResponseReceived(int); 1376 method public void callSessionSuppServiceReceived(android.telephony.ims.ImsSuppServiceNotification); 1377 method public void callSessionTerminated(android.telephony.ims.ImsReasonInfo); 1378 method public void callSessionTtyModeReceived(int); 1379 method public void callSessionUpdateFailed(android.telephony.ims.ImsReasonInfo); 1380 method public void callSessionUpdateReceived(android.telephony.ims.ImsCallProfile); 1381 method public void callSessionUpdated(android.telephony.ims.ImsCallProfile); 1382 method public void callSessionUssdMessageReceived(int, String); 1383 method public void onHandover(int, int, @Nullable android.telephony.ims.ImsReasonInfo); 1384 method public void onHandoverFailed(int, int, @NonNull android.telephony.ims.ImsReasonInfo); 1385 method public void onMayHandover(int, int); 1386 } 1387 1388 public final class ImsConferenceState implements android.os.Parcelable { 1389 method public int describeContents(); 1390 method public static int getConnectionStateForStatus(String); 1391 method public void writeToParcel(android.os.Parcel, int); 1392 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsConferenceState> CREATOR; 1393 field public static final String DISPLAY_TEXT = "display-text"; 1394 field public static final String ENDPOINT = "endpoint"; 1395 field public static final String SIP_STATUS_CODE = "sipstatuscode"; 1396 field public static final String STATUS = "status"; 1397 field public static final String STATUS_ALERTING = "alerting"; 1398 field public static final String STATUS_CONNECTED = "connected"; 1399 field public static final String STATUS_CONNECT_FAIL = "connect-fail"; 1400 field public static final String STATUS_DIALING_IN = "dialing-in"; 1401 field public static final String STATUS_DIALING_OUT = "dialing-out"; 1402 field public static final String STATUS_DISCONNECTED = "disconnected"; 1403 field public static final String STATUS_DISCONNECTING = "disconnecting"; 1404 field public static final String STATUS_MUTED_VIA_FOCUS = "muted-via-focus"; 1405 field public static final String STATUS_ON_HOLD = "on-hold"; 1406 field public static final String STATUS_PENDING = "pending"; 1407 field public static final String STATUS_SEND_ONLY = "sendonly"; 1408 field public static final String STATUS_SEND_RECV = "sendrecv"; 1409 field public static final String USER = "user"; 1410 field public final java.util.HashMap<java.lang.String,android.os.Bundle> mParticipants; 1411 } 1412 1413 public final class ImsException extends java.lang.Exception { 1414 ctor public ImsException(@Nullable String); 1415 ctor public ImsException(@Nullable String, int); 1416 ctor public ImsException(@Nullable String, int, @Nullable Throwable); 1417 } 1418 1419 public final class ImsExternalCallState implements android.os.Parcelable { 1420 ctor public ImsExternalCallState(@NonNull String, @NonNull android.net.Uri, @Nullable android.net.Uri, boolean, int, int, boolean); 1421 method public int describeContents(); 1422 method @NonNull public android.net.Uri getAddress(); 1423 method public int getCallId(); 1424 method public int getCallState(); 1425 method public int getCallType(); 1426 method @Nullable public android.net.Uri getLocalAddress(); 1427 method public boolean isCallHeld(); 1428 method public boolean isCallPullable(); 1429 method public void writeToParcel(android.os.Parcel, int); 1430 field public static final int CALL_STATE_CONFIRMED = 1; // 0x1 1431 field public static final int CALL_STATE_TERMINATED = 2; // 0x2 1432 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsExternalCallState> CREATOR; 1433 } 1434 1435 public class ImsMmTelManager implements android.telephony.ims.RegistrationManager { 1436 method @Deprecated @NonNull @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PRECISE_PHONE_STATE}) public static android.telephony.ims.ImsMmTelManager createForSubscriptionId(int); 1437 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void getFeatureState(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Integer>) throws android.telephony.ims.ImsException; 1438 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void getRegistrationState(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Integer>); 1439 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getVoWiFiRoamingModeSetting(); 1440 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isAvailable(int, int); 1441 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isCapable(int, int); 1442 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void isSupported(int, int, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>) throws android.telephony.ims.ImsException; 1443 method @Deprecated @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void registerImsRegistrationCallback(@NonNull java.util.concurrent.Executor, @NonNull android.telephony.ims.ImsMmTelManager.RegistrationCallback) throws android.telephony.ims.ImsException; 1444 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setAdvancedCallingSettingEnabled(boolean); 1445 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setRttCapabilitySetting(boolean); 1446 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setVoWiFiModeSetting(int); 1447 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setVoWiFiNonPersistent(boolean, int); 1448 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setVoWiFiRoamingModeSetting(int); 1449 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setVoWiFiRoamingSettingEnabled(boolean); 1450 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setVoWiFiSettingEnabled(boolean); 1451 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setVtSettingEnabled(boolean); 1452 method @Deprecated @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void unregisterImsRegistrationCallback(@NonNull android.telephony.ims.ImsMmTelManager.RegistrationCallback); 1453 } 1454 1455 @Deprecated public static class ImsMmTelManager.RegistrationCallback extends android.telephony.ims.RegistrationManager.RegistrationCallback { 1456 ctor @Deprecated public ImsMmTelManager.RegistrationCallback(); 1457 } 1458 1459 public final class ImsReasonInfo implements android.os.Parcelable { 1460 field public static final String EXTRA_MSG_SERVICE_NOT_AUTHORIZED = "Forbidden. Not Authorized for Service"; 1461 } 1462 1463 public class ImsService extends android.app.Service { 1464 ctor public ImsService(); 1465 method public android.telephony.ims.feature.MmTelFeature createMmTelFeature(int); 1466 method public android.telephony.ims.feature.RcsFeature createRcsFeature(int); 1467 method public void disableIms(int); 1468 method public void enableIms(int); 1469 method public android.telephony.ims.stub.ImsConfigImplBase getConfig(int); 1470 method public android.telephony.ims.stub.ImsRegistrationImplBase getRegistration(int); 1471 method public final void onUpdateSupportedImsFeatures(android.telephony.ims.stub.ImsFeatureConfiguration) throws android.os.RemoteException; 1472 method public android.telephony.ims.stub.ImsFeatureConfiguration querySupportedImsFeatures(); 1473 method public void readyForFeatureCreation(); 1474 } 1475 1476 public final class ImsSsData implements android.os.Parcelable { 1477 ctor public ImsSsData(int, int, int, int, int); 1478 method public int describeContents(); 1479 method @Nullable public java.util.List<android.telephony.ims.ImsCallForwardInfo> getCallForwardInfo(); 1480 method public int getRequestType(); 1481 method public int getResult(); 1482 method public int getServiceClass(); 1483 method public int getServiceType(); 1484 method @NonNull public java.util.List<android.telephony.ims.ImsSsInfo> getSuppServiceInfo(); 1485 method public int getTeleserviceType(); 1486 method public boolean isTypeBarring(); 1487 method public boolean isTypeCf(); 1488 method public boolean isTypeClip(); 1489 method public boolean isTypeClir(); 1490 method public boolean isTypeColp(); 1491 method public boolean isTypeColr(); 1492 method public boolean isTypeCw(); 1493 method public boolean isTypeIcb(); 1494 method public boolean isTypeInterrogation(); 1495 method public boolean isTypeUnConditional(); 1496 method public void writeToParcel(android.os.Parcel, int); 1497 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsSsData> CREATOR; 1498 field public static final int RESULT_SUCCESS = 0; // 0x0 1499 field public static final int SERVICE_CLASS_DATA = 2; // 0x2 1500 field public static final int SERVICE_CLASS_DATA_CIRCUIT_ASYNC = 32; // 0x20 1501 field public static final int SERVICE_CLASS_DATA_CIRCUIT_SYNC = 16; // 0x10 1502 field public static final int SERVICE_CLASS_DATA_PACKET_ACCESS = 64; // 0x40 1503 field public static final int SERVICE_CLASS_DATA_PAD = 128; // 0x80 1504 field public static final int SERVICE_CLASS_FAX = 4; // 0x4 1505 field public static final int SERVICE_CLASS_NONE = 0; // 0x0 1506 field public static final int SERVICE_CLASS_SMS = 8; // 0x8 1507 field public static final int SERVICE_CLASS_VOICE = 1; // 0x1 1508 field public static final int SS_ACTIVATION = 0; // 0x0 1509 field public static final int SS_ALL_BARRING = 18; // 0x12 1510 field public static final int SS_ALL_DATA_TELESERVICES = 3; // 0x3 1511 field public static final int SS_ALL_TELESERVICES_EXCEPT_SMS = 5; // 0x5 1512 field public static final int SS_ALL_TELESEVICES = 1; // 0x1 1513 field public static final int SS_ALL_TELE_AND_BEARER_SERVICES = 0; // 0x0 1514 field public static final int SS_BAIC = 16; // 0x10 1515 field public static final int SS_BAIC_ROAMING = 17; // 0x11 1516 field public static final int SS_BAOC = 13; // 0xd 1517 field public static final int SS_BAOIC = 14; // 0xe 1518 field public static final int SS_BAOIC_EXC_HOME = 15; // 0xf 1519 field public static final int SS_CFU = 0; // 0x0 1520 field public static final int SS_CFUT = 6; // 0x6 1521 field public static final int SS_CF_ALL = 4; // 0x4 1522 field public static final int SS_CF_ALL_CONDITIONAL = 5; // 0x5 1523 field public static final int SS_CF_BUSY = 1; // 0x1 1524 field public static final int SS_CF_NOT_REACHABLE = 3; // 0x3 1525 field public static final int SS_CF_NO_REPLY = 2; // 0x2 1526 field public static final int SS_CLIP = 7; // 0x7 1527 field public static final int SS_CLIR = 8; // 0x8 1528 field public static final int SS_CNAP = 11; // 0xb 1529 field public static final int SS_COLP = 9; // 0x9 1530 field public static final int SS_COLR = 10; // 0xa 1531 field public static final int SS_DEACTIVATION = 1; // 0x1 1532 field public static final int SS_ERASURE = 4; // 0x4 1533 field public static final int SS_INCOMING_BARRING = 20; // 0x14 1534 field public static final int SS_INCOMING_BARRING_ANONYMOUS = 22; // 0x16 1535 field public static final int SS_INCOMING_BARRING_DN = 21; // 0x15 1536 field public static final int SS_INTERROGATION = 2; // 0x2 1537 field public static final int SS_OUTGOING_BARRING = 19; // 0x13 1538 field public static final int SS_REGISTRATION = 3; // 0x3 1539 field public static final int SS_SMS_SERVICES = 4; // 0x4 1540 field public static final int SS_TELEPHONY = 2; // 0x2 1541 field public static final int SS_WAIT = 12; // 0xc 1542 } 1543 1544 public static final class ImsSsData.Builder { 1545 ctor public ImsSsData.Builder(int, int, int, int, int); 1546 method @NonNull public android.telephony.ims.ImsSsData build(); 1547 method @NonNull public android.telephony.ims.ImsSsData.Builder setCallForwardingInfo(@NonNull java.util.List<android.telephony.ims.ImsCallForwardInfo>); 1548 method @NonNull public android.telephony.ims.ImsSsData.Builder setSuppServiceInfo(@NonNull java.util.List<android.telephony.ims.ImsSsInfo>); 1549 } 1550 1551 public final class ImsSsInfo implements android.os.Parcelable { 1552 ctor @Deprecated public ImsSsInfo(int, @Nullable String); 1553 method public int describeContents(); 1554 method public int getClirInterrogationStatus(); 1555 method public int getClirOutgoingState(); 1556 method @Deprecated public String getIcbNum(); 1557 method @Nullable public String getIncomingCommunicationBarringNumber(); 1558 method public int getProvisionStatus(); 1559 method public int getStatus(); 1560 method public void writeToParcel(android.os.Parcel, int); 1561 field public static final int CLIR_OUTGOING_DEFAULT = 0; // 0x0 1562 field public static final int CLIR_OUTGOING_INVOCATION = 1; // 0x1 1563 field public static final int CLIR_OUTGOING_SUPPRESSION = 2; // 0x2 1564 field public static final int CLIR_STATUS_NOT_PROVISIONED = 0; // 0x0 1565 field public static final int CLIR_STATUS_PROVISIONED_PERMANENT = 1; // 0x1 1566 field public static final int CLIR_STATUS_TEMPORARILY_ALLOWED = 4; // 0x4 1567 field public static final int CLIR_STATUS_TEMPORARILY_RESTRICTED = 3; // 0x3 1568 field public static final int CLIR_STATUS_UNKNOWN = 2; // 0x2 1569 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsSsInfo> CREATOR; 1570 field public static final int DISABLED = 0; // 0x0 1571 field public static final int ENABLED = 1; // 0x1 1572 field public static final int NOT_REGISTERED = -1; // 0xffffffff 1573 field public static final int SERVICE_NOT_PROVISIONED = 0; // 0x0 1574 field public static final int SERVICE_PROVISIONED = 1; // 0x1 1575 field public static final int SERVICE_PROVISIONING_UNKNOWN = -1; // 0xffffffff 1576 } 1577 1578 public static final class ImsSsInfo.Builder { 1579 ctor public ImsSsInfo.Builder(int); 1580 method @NonNull public android.telephony.ims.ImsSsInfo build(); 1581 method @NonNull public android.telephony.ims.ImsSsInfo.Builder setClirInterrogationStatus(int); 1582 method @NonNull public android.telephony.ims.ImsSsInfo.Builder setClirOutgoingState(int); 1583 method @NonNull public android.telephony.ims.ImsSsInfo.Builder setIncomingCommunicationBarringNumber(@NonNull String); 1584 method @NonNull public android.telephony.ims.ImsSsInfo.Builder setProvisionStatus(int); 1585 } 1586 1587 public final class ImsStreamMediaProfile implements android.os.Parcelable { 1588 ctor public ImsStreamMediaProfile(int, int, int, int, int); 1589 method public void copyFrom(android.telephony.ims.ImsStreamMediaProfile); 1590 method public int describeContents(); 1591 method public int getAudioDirection(); 1592 method public int getAudioQuality(); 1593 method public int getRttMode(); 1594 method public int getVideoDirection(); 1595 method public int getVideoQuality(); 1596 method public boolean isReceivingRttAudio(); 1597 method public boolean isRttCall(); 1598 method public void setReceivingRttAudio(boolean); 1599 method public void setRttMode(int); 1600 method public void writeToParcel(android.os.Parcel, int); 1601 field public static final int AUDIO_QUALITY_AMR = 1; // 0x1 1602 field public static final int AUDIO_QUALITY_AMR_WB = 2; // 0x2 1603 field public static final int AUDIO_QUALITY_EVRC = 4; // 0x4 1604 field public static final int AUDIO_QUALITY_EVRC_B = 5; // 0x5 1605 field public static final int AUDIO_QUALITY_EVRC_NW = 7; // 0x7 1606 field public static final int AUDIO_QUALITY_EVRC_WB = 6; // 0x6 1607 field public static final int AUDIO_QUALITY_EVS_FB = 20; // 0x14 1608 field public static final int AUDIO_QUALITY_EVS_NB = 17; // 0x11 1609 field public static final int AUDIO_QUALITY_EVS_SWB = 19; // 0x13 1610 field public static final int AUDIO_QUALITY_EVS_WB = 18; // 0x12 1611 field public static final int AUDIO_QUALITY_G711A = 13; // 0xd 1612 field public static final int AUDIO_QUALITY_G711AB = 15; // 0xf 1613 field public static final int AUDIO_QUALITY_G711U = 11; // 0xb 1614 field public static final int AUDIO_QUALITY_G722 = 14; // 0xe 1615 field public static final int AUDIO_QUALITY_G723 = 12; // 0xc 1616 field public static final int AUDIO_QUALITY_G729 = 16; // 0x10 1617 field public static final int AUDIO_QUALITY_GSM_EFR = 8; // 0x8 1618 field public static final int AUDIO_QUALITY_GSM_FR = 9; // 0x9 1619 field public static final int AUDIO_QUALITY_GSM_HR = 10; // 0xa 1620 field public static final int AUDIO_QUALITY_NONE = 0; // 0x0 1621 field public static final int AUDIO_QUALITY_QCELP13K = 3; // 0x3 1622 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsStreamMediaProfile> CREATOR; 1623 field public static final int DIRECTION_INACTIVE = 0; // 0x0 1624 field public static final int DIRECTION_INVALID = -1; // 0xffffffff 1625 field public static final int DIRECTION_RECEIVE = 1; // 0x1 1626 field public static final int DIRECTION_SEND = 2; // 0x2 1627 field public static final int DIRECTION_SEND_RECEIVE = 3; // 0x3 1628 field public static final int RTT_MODE_DISABLED = 0; // 0x0 1629 field public static final int RTT_MODE_FULL = 1; // 0x1 1630 field public static final int VIDEO_QUALITY_NONE = 0; // 0x0 1631 field public static final int VIDEO_QUALITY_QCIF = 1; // 0x1 1632 field public static final int VIDEO_QUALITY_QVGA_LANDSCAPE = 2; // 0x2 1633 field public static final int VIDEO_QUALITY_QVGA_PORTRAIT = 4; // 0x4 1634 field public static final int VIDEO_QUALITY_VGA_LANDSCAPE = 8; // 0x8 1635 field public static final int VIDEO_QUALITY_VGA_PORTRAIT = 16; // 0x10 1636 } 1637 1638 public final class ImsSuppServiceNotification implements android.os.Parcelable { 1639 ctor public ImsSuppServiceNotification(int, int, int, int, String, String[]); 1640 method public int describeContents(); 1641 method public void writeToParcel(android.os.Parcel, int); 1642 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsSuppServiceNotification> CREATOR; 1643 field public final int code; 1644 field public final String[] history; 1645 field public final int index; 1646 field public final int notificationType; 1647 field public final String number; 1648 field public final int type; 1649 } 1650 1651 public class ImsUtListener { 1652 method public void onLineIdentificationSupplementaryServiceResponse(int, @NonNull android.telephony.ims.ImsSsInfo); 1653 method public void onSupplementaryServiceIndication(android.telephony.ims.ImsSsData); 1654 method public void onUtConfigurationCallBarringQueried(int, android.telephony.ims.ImsSsInfo[]); 1655 method public void onUtConfigurationCallForwardQueried(int, android.telephony.ims.ImsCallForwardInfo[]); 1656 method public void onUtConfigurationCallWaitingQueried(int, android.telephony.ims.ImsSsInfo[]); 1657 method @Deprecated public void onUtConfigurationQueried(int, android.os.Bundle); 1658 method public void onUtConfigurationQueryFailed(int, android.telephony.ims.ImsReasonInfo); 1659 method public void onUtConfigurationUpdateFailed(int, android.telephony.ims.ImsReasonInfo); 1660 method public void onUtConfigurationUpdated(int); 1661 field @Deprecated public static final String BUNDLE_KEY_CLIR = "queryClir"; 1662 field @Deprecated public static final String BUNDLE_KEY_SSINFO = "imsSsInfo"; 1663 } 1664 1665 public abstract class ImsVideoCallProvider { 1666 ctor public ImsVideoCallProvider(); 1667 method public void changeCallDataUsage(long); 1668 method public void changeCameraCapabilities(android.telecom.VideoProfile.CameraCapabilities); 1669 method public void changePeerDimensions(int, int); 1670 method public void changeVideoQuality(int); 1671 method public void handleCallSessionEvent(int); 1672 method public abstract void onRequestCallDataUsage(); 1673 method public abstract void onRequestCameraCapabilities(); 1674 method public abstract void onSendSessionModifyRequest(android.telecom.VideoProfile, android.telecom.VideoProfile); 1675 method public abstract void onSendSessionModifyResponse(android.telecom.VideoProfile); 1676 method public abstract void onSetCamera(String); 1677 method public void onSetCamera(String, int); 1678 method public abstract void onSetDeviceOrientation(int); 1679 method public abstract void onSetDisplaySurface(android.view.Surface); 1680 method public abstract void onSetPauseImage(android.net.Uri); 1681 method public abstract void onSetPreviewSurface(android.view.Surface); 1682 method public abstract void onSetZoom(float); 1683 method public void receiveSessionModifyRequest(android.telecom.VideoProfile); 1684 method public void receiveSessionModifyResponse(int, android.telecom.VideoProfile, android.telecom.VideoProfile); 1685 } 1686 1687 public class ProvisioningManager { 1688 method @NonNull public static android.telephony.ims.ProvisioningManager createForSubscriptionId(int); 1689 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) @WorkerThread public int getProvisioningIntValue(int); 1690 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) @WorkerThread public boolean getProvisioningStatusForCapability(int, int); 1691 method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) @WorkerThread public String getProvisioningStringValue(int); 1692 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) @WorkerThread public boolean getRcsProvisioningStatusForCapability(int); 1693 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void notifyRcsAutoConfigurationReceived(@NonNull byte[], boolean); 1694 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void registerProvisioningChangedCallback(@NonNull java.util.concurrent.Executor, @NonNull android.telephony.ims.ProvisioningManager.Callback) throws android.telephony.ims.ImsException; 1695 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) @WorkerThread public int setProvisioningIntValue(int, int); 1696 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) @WorkerThread public void setProvisioningStatusForCapability(int, int, boolean); 1697 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) @WorkerThread public int setProvisioningStringValue(int, @NonNull String); 1698 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) @WorkerThread public void setRcsProvisioningStatusForCapability(int, boolean); 1699 method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void unregisterProvisioningChangedCallback(@NonNull android.telephony.ims.ProvisioningManager.Callback); 1700 field public static final int KEY_VOICE_OVER_WIFI_MODE_OVERRIDE = 27; // 0x1b 1701 field public static final int KEY_VOICE_OVER_WIFI_ROAMING_ENABLED_OVERRIDE = 26; // 0x1a 1702 field public static final int PROVISIONING_VALUE_DISABLED = 0; // 0x0 1703 field public static final int PROVISIONING_VALUE_ENABLED = 1; // 0x1 1704 field public static final String STRING_QUERY_RESULT_ERROR_GENERIC = "STRING_QUERY_RESULT_ERROR_GENERIC"; 1705 field public static final String STRING_QUERY_RESULT_ERROR_NOT_READY = "STRING_QUERY_RESULT_ERROR_NOT_READY"; 1706 } 1707 1708 public static class ProvisioningManager.Callback { 1709 ctor public ProvisioningManager.Callback(); 1710 method public void onProvisioningIntChanged(int, int); 1711 method public void onProvisioningStringChanged(int, @NonNull String); 1712 } 1713 1714 public class RcsUceAdapter { 1715 method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setUceSettingEnabled(boolean) throws android.telephony.ims.ImsException; 1716 } 1717 1718} 1719 1720package android.telephony.ims.feature { 1721 1722 public final class CapabilityChangeRequest implements android.os.Parcelable { 1723 method public void addCapabilitiesToDisableForTech(int, int); 1724 method public void addCapabilitiesToEnableForTech(int, int); 1725 method public int describeContents(); 1726 method public java.util.List<android.telephony.ims.feature.CapabilityChangeRequest.CapabilityPair> getCapabilitiesToDisable(); 1727 method public java.util.List<android.telephony.ims.feature.CapabilityChangeRequest.CapabilityPair> getCapabilitiesToEnable(); 1728 method public void writeToParcel(android.os.Parcel, int); 1729 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.feature.CapabilityChangeRequest> CREATOR; 1730 } 1731 1732 public static class CapabilityChangeRequest.CapabilityPair { 1733 ctor public CapabilityChangeRequest.CapabilityPair(int, int); 1734 method public int getCapability(); 1735 method public int getRadioTech(); 1736 } 1737 1738 public abstract class ImsFeature { 1739 ctor public ImsFeature(); 1740 method public abstract void changeEnabledCapabilities(android.telephony.ims.feature.CapabilityChangeRequest, android.telephony.ims.feature.ImsFeature.CapabilityCallbackProxy); 1741 method public int getFeatureState(); 1742 method public final int getSlotIndex(); 1743 method public abstract void onFeatureReady(); 1744 method public abstract void onFeatureRemoved(); 1745 method public final void setFeatureState(int); 1746 field public static final int CAPABILITY_ERROR_GENERIC = -1; // 0xffffffff 1747 field public static final int CAPABILITY_SUCCESS = 0; // 0x0 1748 field public static final int FEATURE_EMERGENCY_MMTEL = 0; // 0x0 1749 field public static final int FEATURE_MMTEL = 1; // 0x1 1750 field public static final int FEATURE_RCS = 2; // 0x2 1751 field public static final int STATE_INITIALIZING = 1; // 0x1 1752 field public static final int STATE_READY = 2; // 0x2 1753 field public static final int STATE_UNAVAILABLE = 0; // 0x0 1754 } 1755 1756 @Deprecated public static class ImsFeature.Capabilities { 1757 field @Deprecated protected int mCapabilities; 1758 } 1759 1760 protected static class ImsFeature.CapabilityCallbackProxy { 1761 method public void onChangeCapabilityConfigurationError(int, int, int); 1762 } 1763 1764 public class MmTelFeature extends android.telephony.ims.feature.ImsFeature { 1765 ctor public MmTelFeature(); 1766 method public void changeEnabledCapabilities(@NonNull android.telephony.ims.feature.CapabilityChangeRequest, @NonNull android.telephony.ims.feature.ImsFeature.CapabilityCallbackProxy); 1767 method @Nullable public android.telephony.ims.ImsCallProfile createCallProfile(int, int); 1768 method @Nullable public android.telephony.ims.stub.ImsCallSessionImplBase createCallSession(@NonNull android.telephony.ims.ImsCallProfile); 1769 method @NonNull public android.telephony.ims.stub.ImsEcbmImplBase getEcbm(); 1770 method @NonNull public android.telephony.ims.stub.ImsMultiEndpointImplBase getMultiEndpoint(); 1771 method @NonNull public android.telephony.ims.stub.ImsSmsImplBase getSmsImplementation(); 1772 method @NonNull public android.telephony.ims.stub.ImsUtImplBase getUt(); 1773 method public final void notifyCapabilitiesStatusChanged(@NonNull android.telephony.ims.feature.MmTelFeature.MmTelCapabilities); 1774 method public final void notifyIncomingCall(@NonNull android.telephony.ims.stub.ImsCallSessionImplBase, @NonNull android.os.Bundle); 1775 method public final void notifyRejectedCall(@NonNull android.telephony.ims.ImsCallProfile, @NonNull android.telephony.ims.ImsReasonInfo); 1776 method public final void notifyVoiceMessageCountUpdate(int); 1777 method public void onFeatureReady(); 1778 method public void onFeatureRemoved(); 1779 method public boolean queryCapabilityConfiguration(int, int); 1780 method @NonNull public final android.telephony.ims.feature.MmTelFeature.MmTelCapabilities queryCapabilityStatus(); 1781 method public void setUiTtyMode(int, @Nullable android.os.Message); 1782 method public int shouldProcessCall(@NonNull String[]); 1783 field public static final String EXTRA_IS_UNKNOWN_CALL = "android.telephony.ims.feature.extra.IS_UNKNOWN_CALL"; 1784 field public static final String EXTRA_IS_USSD = "android.telephony.ims.feature.extra.IS_USSD"; 1785 field public static final int PROCESS_CALL_CSFB = 1; // 0x1 1786 field public static final int PROCESS_CALL_IMS = 0; // 0x0 1787 } 1788 1789 public static class MmTelFeature.MmTelCapabilities extends android.telephony.ims.feature.ImsFeature.Capabilities { 1790 ctor public MmTelFeature.MmTelCapabilities(); 1791 ctor @Deprecated public MmTelFeature.MmTelCapabilities(android.telephony.ims.feature.ImsFeature.Capabilities); 1792 ctor public MmTelFeature.MmTelCapabilities(int); 1793 method public final void addCapabilities(int); 1794 method public final boolean isCapable(int); 1795 method public final void removeCapabilities(int); 1796 } 1797 1798 public class RcsFeature extends android.telephony.ims.feature.ImsFeature { 1799 ctor public RcsFeature(); 1800 method public void changeEnabledCapabilities(@NonNull android.telephony.ims.feature.CapabilityChangeRequest, @NonNull android.telephony.ims.feature.ImsFeature.CapabilityCallbackProxy); 1801 method public void onFeatureReady(); 1802 method public void onFeatureRemoved(); 1803 } 1804 1805} 1806 1807package android.telephony.ims.stub { 1808 1809 public class ImsCallSessionImplBase implements java.lang.AutoCloseable { 1810 ctor public ImsCallSessionImplBase(); 1811 method public void accept(int, android.telephony.ims.ImsStreamMediaProfile); 1812 method public void close(); 1813 method public void deflect(String); 1814 method public void extendToConference(String[]); 1815 method public String getCallId(); 1816 method public android.telephony.ims.ImsCallProfile getCallProfile(); 1817 method public android.telephony.ims.ImsVideoCallProvider getImsVideoCallProvider(); 1818 method public android.telephony.ims.ImsCallProfile getLocalCallProfile(); 1819 method public String getProperty(String); 1820 method public android.telephony.ims.ImsCallProfile getRemoteCallProfile(); 1821 method public int getState(); 1822 method public void hold(android.telephony.ims.ImsStreamMediaProfile); 1823 method public void inviteParticipants(String[]); 1824 method public boolean isInCall(); 1825 method public boolean isMultiparty(); 1826 method public void merge(); 1827 method public void reject(int); 1828 method public void removeParticipants(String[]); 1829 method public void resume(android.telephony.ims.ImsStreamMediaProfile); 1830 method public void sendDtmf(char, android.os.Message); 1831 method public void sendRttMessage(String); 1832 method public void sendRttModifyRequest(android.telephony.ims.ImsCallProfile); 1833 method public void sendRttModifyResponse(boolean); 1834 method public void sendUssd(String); 1835 method public void setListener(android.telephony.ims.ImsCallSessionListener); 1836 method public void setMute(boolean); 1837 method public void start(String, android.telephony.ims.ImsCallProfile); 1838 method public void startConference(String[], android.telephony.ims.ImsCallProfile); 1839 method public void startDtmf(char); 1840 method public void stopDtmf(); 1841 method public void terminate(int); 1842 method public void update(int, android.telephony.ims.ImsStreamMediaProfile); 1843 field public static final int USSD_MODE_NOTIFY = 0; // 0x0 1844 field public static final int USSD_MODE_REQUEST = 1; // 0x1 1845 } 1846 1847 public static class ImsCallSessionImplBase.State { 1848 method public static String toString(int); 1849 field public static final int ESTABLISHED = 4; // 0x4 1850 field public static final int ESTABLISHING = 3; // 0x3 1851 field public static final int IDLE = 0; // 0x0 1852 field public static final int INITIATED = 1; // 0x1 1853 field public static final int INVALID = -1; // 0xffffffff 1854 field public static final int NEGOTIATING = 2; // 0x2 1855 field public static final int REESTABLISHING = 6; // 0x6 1856 field public static final int RENEGOTIATING = 5; // 0x5 1857 field public static final int TERMINATED = 8; // 0x8 1858 field public static final int TERMINATING = 7; // 0x7 1859 } 1860 1861 public class ImsConfigImplBase { 1862 ctor public ImsConfigImplBase(); 1863 method public int getConfigInt(int); 1864 method public String getConfigString(int); 1865 method public final void notifyProvisionedValueChanged(int, int); 1866 method public final void notifyProvisionedValueChanged(int, String); 1867 method public void notifyRcsAutoConfigurationReceived(@NonNull byte[], boolean); 1868 method public int setConfig(int, int); 1869 method public int setConfig(int, String); 1870 field public static final int CONFIG_RESULT_FAILED = 1; // 0x1 1871 field public static final int CONFIG_RESULT_SUCCESS = 0; // 0x0 1872 field public static final int CONFIG_RESULT_UNKNOWN = -1; // 0xffffffff 1873 } 1874 1875 public class ImsEcbmImplBase { 1876 ctor public ImsEcbmImplBase(); 1877 method public final void enteredEcbm(); 1878 method public void exitEmergencyCallbackMode(); 1879 method public final void exitedEcbm(); 1880 } 1881 1882 public final class ImsFeatureConfiguration implements android.os.Parcelable { 1883 method public int describeContents(); 1884 method public java.util.Set<android.telephony.ims.stub.ImsFeatureConfiguration.FeatureSlotPair> getServiceFeatures(); 1885 method public void writeToParcel(android.os.Parcel, int); 1886 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.stub.ImsFeatureConfiguration> CREATOR; 1887 } 1888 1889 public static class ImsFeatureConfiguration.Builder { 1890 ctor public ImsFeatureConfiguration.Builder(); 1891 method public android.telephony.ims.stub.ImsFeatureConfiguration.Builder addFeature(int, int); 1892 method public android.telephony.ims.stub.ImsFeatureConfiguration build(); 1893 } 1894 1895 public static final class ImsFeatureConfiguration.FeatureSlotPair { 1896 ctor public ImsFeatureConfiguration.FeatureSlotPair(int, int); 1897 field public final int featureType; 1898 field public final int slotId; 1899 } 1900 1901 public class ImsMultiEndpointImplBase { 1902 ctor public ImsMultiEndpointImplBase(); 1903 method public final void onImsExternalCallStateUpdate(java.util.List<android.telephony.ims.ImsExternalCallState>); 1904 method public void requestImsExternalCallStateInfo(); 1905 } 1906 1907 public class ImsRegistrationImplBase { 1908 ctor public ImsRegistrationImplBase(); 1909 method public final void onDeregistered(android.telephony.ims.ImsReasonInfo); 1910 method public final void onRegistered(int); 1911 method public final void onRegistering(int); 1912 method public final void onSubscriberAssociatedUriChanged(android.net.Uri[]); 1913 method public final void onTechnologyChangeFailed(int, android.telephony.ims.ImsReasonInfo); 1914 field public static final int REGISTRATION_TECH_IWLAN = 1; // 0x1 1915 field public static final int REGISTRATION_TECH_LTE = 0; // 0x0 1916 field public static final int REGISTRATION_TECH_NONE = -1; // 0xffffffff 1917 } 1918 1919 public class ImsSmsImplBase { 1920 ctor public ImsSmsImplBase(); 1921 method public void acknowledgeSms(int, @IntRange(from=0, to=65535) int, int); 1922 method public void acknowledgeSmsReport(int, @IntRange(from=0, to=65535) int, int); 1923 method public String getSmsFormat(); 1924 method public void onReady(); 1925 method @Deprecated public final void onSendSmsResult(int, @IntRange(from=0, to=65535) int, int, int) throws java.lang.RuntimeException; 1926 method public final void onSendSmsResultError(int, @IntRange(from=0, to=65535) int, int, int, int) throws java.lang.RuntimeException; 1927 method public final void onSendSmsResultSuccess(int, @IntRange(from=0, to=65535) int) throws java.lang.RuntimeException; 1928 method public final void onSmsReceived(int, String, byte[]) throws java.lang.RuntimeException; 1929 method @Deprecated public final void onSmsStatusReportReceived(int, @IntRange(from=0, to=65535) int, String, byte[]) throws java.lang.RuntimeException; 1930 method public final void onSmsStatusReportReceived(int, String, byte[]) throws java.lang.RuntimeException; 1931 method public void sendSms(int, @IntRange(from=0, to=65535) int, String, String, boolean, byte[]); 1932 field public static final int DELIVER_STATUS_ERROR_GENERIC = 2; // 0x2 1933 field public static final int DELIVER_STATUS_ERROR_NO_MEMORY = 3; // 0x3 1934 field public static final int DELIVER_STATUS_ERROR_REQUEST_NOT_SUPPORTED = 4; // 0x4 1935 field public static final int DELIVER_STATUS_OK = 1; // 0x1 1936 field public static final int RESULT_NO_NETWORK_ERROR = -1; // 0xffffffff 1937 field public static final int SEND_STATUS_ERROR = 2; // 0x2 1938 field public static final int SEND_STATUS_ERROR_FALLBACK = 4; // 0x4 1939 field public static final int SEND_STATUS_ERROR_RETRY = 3; // 0x3 1940 field public static final int SEND_STATUS_OK = 1; // 0x1 1941 field public static final int STATUS_REPORT_STATUS_ERROR = 2; // 0x2 1942 field public static final int STATUS_REPORT_STATUS_OK = 1; // 0x1 1943 } 1944 1945 public class ImsUtImplBase { 1946 ctor public ImsUtImplBase(); 1947 method public void close(); 1948 method public int queryCallBarring(int); 1949 method public int queryCallBarringForServiceClass(int, int); 1950 method public int queryCallForward(int, String); 1951 method public int queryCallWaiting(); 1952 method public int queryClip(); 1953 method public int queryClir(); 1954 method public int queryColp(); 1955 method public int queryColr(); 1956 method public void setListener(android.telephony.ims.ImsUtListener); 1957 method public int transact(android.os.Bundle); 1958 method public int updateCallBarring(int, int, String[]); 1959 method public int updateCallBarringForServiceClass(int, int, String[], int); 1960 method public int updateCallForward(int, int, String, int, int); 1961 method public int updateCallWaiting(boolean, int); 1962 method public int updateClip(boolean); 1963 method public int updateClir(int); 1964 method public int updateColp(boolean); 1965 method public int updateColr(int); 1966 } 1967 1968} 1969 1970package android.telephony.mbms { 1971 1972 public static class DownloadRequest.Builder { 1973 method public android.telephony.mbms.DownloadRequest.Builder setServiceId(String); 1974 } 1975 1976 public final class FileInfo implements android.os.Parcelable { 1977 ctor public FileInfo(android.net.Uri, String); 1978 } 1979 1980 public final class FileServiceInfo extends android.telephony.mbms.ServiceInfo implements android.os.Parcelable { 1981 ctor public FileServiceInfo(java.util.Map<java.util.Locale,java.lang.String>, String, java.util.List<java.util.Locale>, String, java.util.Date, java.util.Date, java.util.List<android.telephony.mbms.FileInfo>); 1982 } 1983 1984 public class MbmsDownloadReceiver extends android.content.BroadcastReceiver { 1985 field public static final int RESULT_APP_NOTIFICATION_ERROR = 6; // 0x6 1986 field public static final int RESULT_BAD_TEMP_FILE_ROOT = 3; // 0x3 1987 field public static final int RESULT_DOWNLOAD_FINALIZATION_ERROR = 4; // 0x4 1988 field public static final int RESULT_INVALID_ACTION = 1; // 0x1 1989 field public static final int RESULT_MALFORMED_INTENT = 2; // 0x2 1990 field public static final int RESULT_OK = 0; // 0x0 1991 field public static final int RESULT_TEMP_FILE_GENERATION_ERROR = 5; // 0x5 1992 } 1993 1994 public final class StreamingServiceInfo extends android.telephony.mbms.ServiceInfo implements android.os.Parcelable { 1995 ctor public StreamingServiceInfo(java.util.Map<java.util.Locale,java.lang.String>, String, java.util.List<java.util.Locale>, String, java.util.Date, java.util.Date); 1996 } 1997 1998 public final class UriPathPair implements android.os.Parcelable { 1999 method public int describeContents(); 2000 method public android.net.Uri getContentUri(); 2001 method public android.net.Uri getFilePathUri(); 2002 method public void writeToParcel(android.os.Parcel, int); 2003 field @NonNull public static final android.os.Parcelable.Creator<android.telephony.mbms.UriPathPair> CREATOR; 2004 } 2005 2006} 2007 2008package android.telephony.mbms.vendor { 2009 2010 public class MbmsDownloadServiceBase extends android.os.Binder implements android.os.IInterface { 2011 ctor public MbmsDownloadServiceBase(); 2012 method public int addProgressListener(android.telephony.mbms.DownloadRequest, android.telephony.mbms.DownloadProgressListener) throws android.os.RemoteException; 2013 method public int addStatusListener(android.telephony.mbms.DownloadRequest, android.telephony.mbms.DownloadStatusListener) throws android.os.RemoteException; 2014 method public android.os.IBinder asBinder(); 2015 method public int cancelDownload(android.telephony.mbms.DownloadRequest) throws android.os.RemoteException; 2016 method public void dispose(int) throws android.os.RemoteException; 2017 method public int download(android.telephony.mbms.DownloadRequest) throws android.os.RemoteException; 2018 method public int initialize(int, android.telephony.mbms.MbmsDownloadSessionCallback) throws android.os.RemoteException; 2019 method @NonNull public java.util.List<android.telephony.mbms.DownloadRequest> listPendingDownloads(int) throws android.os.RemoteException; 2020 method public void onAppCallbackDied(int, int); 2021 method public boolean onTransact(int, android.os.Parcel, android.os.Parcel, int) throws android.os.RemoteException; 2022 method public int removeProgressListener(android.telephony.mbms.DownloadRequest, android.telephony.mbms.DownloadProgressListener) throws android.os.RemoteException; 2023 method public int removeStatusListener(android.telephony.mbms.DownloadRequest, android.telephony.mbms.DownloadStatusListener) throws android.os.RemoteException; 2024 method public int requestDownloadState(android.telephony.mbms.DownloadRequest, android.telephony.mbms.FileInfo) throws android.os.RemoteException; 2025 method public int requestUpdateFileServices(int, java.util.List<java.lang.String>) throws android.os.RemoteException; 2026 method public int resetDownloadKnowledge(android.telephony.mbms.DownloadRequest) throws android.os.RemoteException; 2027 method public int setTempFileRootDirectory(int, String) throws android.os.RemoteException; 2028 } 2029 2030 public class MbmsGroupCallServiceBase extends android.app.Service { 2031 ctor public MbmsGroupCallServiceBase(); 2032 method public void dispose(int) throws android.os.RemoteException; 2033 method public int initialize(@NonNull android.telephony.mbms.MbmsGroupCallSessionCallback, int) throws android.os.RemoteException; 2034 method public void onAppCallbackDied(int, int); 2035 method public android.os.IBinder onBind(android.content.Intent); 2036 method public int startGroupCall(int, long, @NonNull java.util.List<java.lang.Integer>, @NonNull java.util.List<java.lang.Integer>, @NonNull android.telephony.mbms.GroupCallCallback); 2037 method public void stopGroupCall(int, long); 2038 method public void updateGroupCall(int, long, @NonNull java.util.List<java.lang.Integer>, @NonNull java.util.List<java.lang.Integer>); 2039 } 2040 2041 public class MbmsStreamingServiceBase extends android.os.Binder implements android.os.IInterface { 2042 ctor public MbmsStreamingServiceBase(); 2043 method public android.os.IBinder asBinder(); 2044 method public void dispose(int) throws android.os.RemoteException; 2045 method @Nullable public android.net.Uri getPlaybackUri(int, String) throws android.os.RemoteException; 2046 method public int initialize(android.telephony.mbms.MbmsStreamingSessionCallback, int) throws android.os.RemoteException; 2047 method public void onAppCallbackDied(int, int); 2048 method public boolean onTransact(int, android.os.Parcel, android.os.Parcel, int) throws android.os.RemoteException; 2049 method public int requestUpdateStreamingServices(int, java.util.List<java.lang.String>) throws android.os.RemoteException; 2050 method public int startStreaming(int, String, android.telephony.mbms.StreamingServiceCallback) throws android.os.RemoteException; 2051 method public void stopStreaming(int, String) throws android.os.RemoteException; 2052 } 2053 2054 public class VendorUtils { 2055 ctor public VendorUtils(); 2056 method public static android.content.ComponentName getAppReceiverFromPackageName(android.content.Context, String); 2057 field public static final String ACTION_CLEANUP = "android.telephony.mbms.action.CLEANUP"; 2058 field public static final String ACTION_DOWNLOAD_RESULT_INTERNAL = "android.telephony.mbms.action.DOWNLOAD_RESULT_INTERNAL"; 2059 field public static final String ACTION_FILE_DESCRIPTOR_REQUEST = "android.telephony.mbms.action.FILE_DESCRIPTOR_REQUEST"; 2060 field public static final String EXTRA_FD_COUNT = "android.telephony.mbms.extra.FD_COUNT"; 2061 field public static final String EXTRA_FINAL_URI = "android.telephony.mbms.extra.FINAL_URI"; 2062 field public static final String EXTRA_FREE_URI_LIST = "android.telephony.mbms.extra.FREE_URI_LIST"; 2063 field public static final String EXTRA_PAUSED_LIST = "android.telephony.mbms.extra.PAUSED_LIST"; 2064 field public static final String EXTRA_PAUSED_URI_LIST = "android.telephony.mbms.extra.PAUSED_URI_LIST"; 2065 field public static final String EXTRA_SERVICE_ID = "android.telephony.mbms.extra.SERVICE_ID"; 2066 field public static final String EXTRA_TEMP_FILES_IN_USE = "android.telephony.mbms.extra.TEMP_FILES_IN_USE"; 2067 field public static final String EXTRA_TEMP_FILE_ROOT = "android.telephony.mbms.extra.TEMP_FILE_ROOT"; 2068 field public static final String EXTRA_TEMP_LIST = "android.telephony.mbms.extra.TEMP_LIST"; 2069 } 2070 2071} 2072 2073