/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerDataTest.java | 12 import android.telephony.TelephonyManager; 39 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in test2gDataIcon() 40 TelephonyManager.NETWORK_TYPE_GSM); in test2gDataIcon() 48 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in testCdmaDataIcon() 49 TelephonyManager.NETWORK_TYPE_CDMA); in testCdmaDataIcon() 57 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in testEdgeDataIcon() 58 TelephonyManager.NETWORK_TYPE_EDGE); in testEdgeDataIcon() 66 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in testLteDataIcon() 67 TelephonyManager.NETWORK_TYPE_LTE); in testLteDataIcon() 75 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in testHspaDataIcon() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | PhoneConstantConversions.java | 20 import android.telephony.TelephonyManager; 35 return TelephonyManager.CALL_STATE_RINGING; in convertCallState() 37 return TelephonyManager.CALL_STATE_OFFHOOK; in convertCallState() 39 return TelephonyManager.CALL_STATE_IDLE; in convertCallState() 49 case TelephonyManager.CALL_STATE_RINGING: in convertCallState() 51 case TelephonyManager.CALL_STATE_OFFHOOK: in convertCallState() 65 return TelephonyManager.DATA_CONNECTING; in convertDataState() 67 return TelephonyManager.DATA_CONNECTED; in convertDataState() 69 return TelephonyManager.DATA_SUSPENDED; in convertDataState() 71 return TelephonyManager.DATA_DISCONNECTED; in convertDataState() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | RadioAccessFamily.java | 25 import android.telephony.TelephonyManager.PrefNetworkMode; 44 public static final int RAF_UNKNOWN = (int) TelephonyManager.NETWORK_TYPE_BITMASK_UNKNOWN; 45 public static final int RAF_GSM = (int) TelephonyManager.NETWORK_TYPE_BITMASK_GSM; 46 public static final int RAF_GPRS = (int) TelephonyManager.NETWORK_TYPE_BITMASK_GPRS; 47 public static final int RAF_EDGE = (int) TelephonyManager.NETWORK_TYPE_BITMASK_EDGE; 48 public static final int RAF_IS95A = (int) TelephonyManager.NETWORK_TYPE_BITMASK_CDMA; 49 public static final int RAF_IS95B = (int) TelephonyManager.NETWORK_TYPE_BITMASK_CDMA; 50 public static final int RAF_1xRTT = (int) TelephonyManager.NETWORK_TYPE_BITMASK_1xRTT; 52 public static final int RAF_EVDO_0 = (int) TelephonyManager.NETWORK_TYPE_BITMASK_EVDO_0; 53 public static final int RAF_EVDO_A = (int) TelephonyManager.NETWORK_TYPE_BITMASK_EVDO_A; [all …]
|
D | ServiceState.java | 1488 return TelephonyManager.NETWORK_TYPE_GPRS; in rilRadioTechnologyToNetworkType() 1490 return TelephonyManager.NETWORK_TYPE_EDGE; in rilRadioTechnologyToNetworkType() 1492 return TelephonyManager.NETWORK_TYPE_UMTS; in rilRadioTechnologyToNetworkType() 1494 return TelephonyManager.NETWORK_TYPE_HSDPA; in rilRadioTechnologyToNetworkType() 1496 return TelephonyManager.NETWORK_TYPE_HSUPA; in rilRadioTechnologyToNetworkType() 1498 return TelephonyManager.NETWORK_TYPE_HSPA; in rilRadioTechnologyToNetworkType() 1501 return TelephonyManager.NETWORK_TYPE_CDMA; in rilRadioTechnologyToNetworkType() 1503 return TelephonyManager.NETWORK_TYPE_1xRTT; in rilRadioTechnologyToNetworkType() 1505 return TelephonyManager.NETWORK_TYPE_EVDO_0; in rilRadioTechnologyToNetworkType() 1507 return TelephonyManager.NETWORK_TYPE_EVDO_A; in rilRadioTechnologyToNetworkType() [all …]
|
D | PreciseDataConnectionState.java | 50 private @TelephonyManager.DataState int mState = TelephonyManager.DATA_UNKNOWN; 51 private @TelephonyManager.NetworkType int mNetworkType = TelephonyManager.NETWORK_TYPE_UNKNOWN; 63 public PreciseDataConnectionState(@TelephonyManager.DataState int state, in PreciseDataConnectionState() 64 @TelephonyManager.NetworkType int networkType, in PreciseDataConnectionState() 102 public @TelephonyManager.DataState int getDataConnectionState() { in getDataConnectionState() 110 public @TelephonyManager.NetworkType int getDataConnectionNetworkType() { in getDataConnectionNetworkType()
|
D | NeighboringCellInfo.java | 19 import static android.telephony.TelephonyManager.NETWORK_TYPE_EDGE; 20 import static android.telephony.TelephonyManager.NETWORK_TYPE_GPRS; 21 import static android.telephony.TelephonyManager.NETWORK_TYPE_HSDPA; 22 import static android.telephony.TelephonyManager.NETWORK_TYPE_HSPA; 23 import static android.telephony.TelephonyManager.NETWORK_TYPE_HSUPA; 24 import static android.telephony.TelephonyManager.NETWORK_TYPE_UMTS; 25 import static android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN; 117 mNetworkType = TelephonyManager.NETWORK_TYPE_GPRS; in NeighboringCellInfo() 133 mNetworkType = TelephonyManager.NETWORK_TYPE_UMTS; in NeighboringCellInfo()
|
D | VisualVoicemailService.java | 252 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in setSmsFilterSettings() 284 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in sendVisualVoicemailSms() 290 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in getSubId()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | TelephonyUtilTest.java | 25 import android.telephony.TelephonyManager; 58 TelephonyManager mTelephonyManager; 60 TelephonyManager mDataTelephonyManager; 75 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in getSimIdentityEapSim() 95 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in getSimIdentityEapAka() 115 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in getSimIdentityEapAkaPrime() 153 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in getEncryptedIdentity_WithRfc4648() 156 TelephonyManager.KEY_TYPE_WLAN, null, key, null); in getEncryptedIdentity_WithRfc4648() 158 eq(TelephonyManager.KEY_TYPE_WLAN))) in getEncryptedIdentity_WithRfc4648() 187 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in getEncryptedIdentityFailed() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | MobileSignalController.java | 31 import android.telephony.TelephonyManager; 57 private final TelephonyManager mPhone; 73 private int mDataNetType = TelephonyManager.NETWORK_TYPE_UNKNOWN; 74 private int mDataState = TelephonyManager.DATA_DISCONNECTED; 82 private static final int NETWORK_TYPE_LTE_CA_5GE = TelephonyManager.MAX_NETWORK_TYPE + 1; 87 TelephonyManager phone, CallbackHandler callbackHandler, in MobileSignalController() 189 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EVDO_0, TelephonyIcons.THREE_G); in mapIconSets() 190 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EVDO_A, TelephonyIcons.THREE_G); in mapIconSets() 191 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EVDO_B, TelephonyIcons.THREE_G); in mapIconSets() 192 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EHRPD, TelephonyIcons.THREE_G); in mapIconSets() [all …]
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CarrierActionUtils.java | 29 import android.telephony.TelephonyManager; 108 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onDisableAllMeteredApns() 116 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onEnableAllMeteredApns() 140 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onRegisterDefaultNetworkAvail() 148 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onDeregisterDefaultNetworkAvail() 156 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onDisableRadio() 164 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onEnableRadio() 207 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onResetAllCarrierActions() 213 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in getNotification()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SubscriptionInfoUpdater.java | 52 import android.telephony.TelephonyManager; 77 private static final int PROJECT_SIM_NUM = TelephonyManager.getDefault().getPhoneCount(); 172 mPackageManager, TelephonyManager.getDefault(), in initializeCarrierApps() 188 mPackageManager, TelephonyManager.getDefault(), mContext.getContentResolver(), in initializeCarrierApps() 274 broadcastSimCardStateChanged(msg.arg1, TelephonyManager.SIM_STATE_UNKNOWN); in handleMessage() 275 broadcastSimApplicationStateChanged(msg.arg1, TelephonyManager.SIM_STATE_UNKNOWN); in handleMessage() 288 broadcastSimCardStateChanged(msg.arg1, TelephonyManager.SIM_STATE_CARD_RESTRICTED); in handleMessage() 289 broadcastSimApplicationStateChanged(msg.arg1, TelephonyManager.SIM_STATE_NOT_READY); in handleMessage() 303 broadcastSimCardStateChanged(msg.arg1, TelephonyManager.SIM_STATE_PRESENT); in handleMessage() 304 broadcastSimApplicationStateChanged(msg.arg1, TelephonyManager.SIM_STATE_NOT_READY); in handleMessage() [all …]
|
D | DeviceStateMonitor.java | 40 import android.telephony.TelephonyManager; 316 || mUpdateModes.get(TelephonyManager.INDICATION_FILTER_SIGNAL_STRENGTH) in shouldTurnOffSignalStrength() 317 == TelephonyManager.INDICATION_UPDATE_MODE_IGNORE_SCREEN_OFF) { in shouldTurnOffSignalStrength() 336 || mUpdateModes.get(TelephonyManager.INDICATION_FILTER_FULL_NETWORK_STATE) in shouldTurnOffFullNetworkUpdate() 337 == TelephonyManager.INDICATION_UPDATE_MODE_IGNORE_SCREEN_OFF) { in shouldTurnOffFullNetworkUpdate() 355 || mUpdateModes.get(TelephonyManager.INDICATION_FILTER_DATA_CALL_DORMANCY_CHANGED) in shouldTurnOffDormancyUpdate() 356 == TelephonyManager.INDICATION_UPDATE_MODE_IGNORE_SCREEN_OFF) { in shouldTurnOffDormancyUpdate() 374 || mUpdateModes.get(TelephonyManager.INDICATION_FILTER_LINK_CAPACITY_ESTIMATE) in shouldTurnOffLinkCapacityEstimate() 375 == TelephonyManager.INDICATION_UPDATE_MODE_IGNORE_SCREEN_OFF) { in shouldTurnOffLinkCapacityEstimate() 393 || mUpdateModes.get(TelephonyManager.INDICATION_FILTER_PHYSICAL_CHANNEL_CONFIG) in shouldTurnOffPhysicalChannelConfig() [all …]
|
D | CarrierResolver.java | 34 import android.telephony.TelephonyManager; 74 private int mCarrierId = TelephonyManager.UNKNOWN_CARRIER_ID; 76 private int mSpecificCarrierId = TelephonyManager.UNKNOWN_CARRIER_ID; 80 private int mMnoCarrierId = TelephonyManager.UNKNOWN_CARRIER_ID; 98 private final TelephonyManager mTelephonyMgr; 117 mTelephonyMgr = TelephonyManager.from(mContext); in CarrierResolver() 177 updateCarrierIdAndName(TelephonyManager.UNKNOWN_CARRIER_ID, null, in handleSimAbsent() 178 TelephonyManager.UNKNOWN_CARRIER_ID, null, in handleSimAbsent() 179 TelephonyManager.UNKNOWN_CARRIER_ID); in handleSimAbsent() 415 final Intent intent = new Intent(TelephonyManager in updateCarrierIdAndName() [all …]
|
D | DefaultPhoneNotifier.java | 36 import android.telephony.TelephonyManager; 177 TelephonyManager telephony = TelephonyManager.getDefault(); in doNotifyDataConnection() 199 TelephonyManager.NETWORK_TYPE_UNKNOWN), roaming); in doNotifyDataConnection() 314 public void notifySrvccStateChanged(Phone sender, @TelephonyManager.SrvccState int state) { in notifySrvccStateChanged() 373 @TelephonyManager.RadioPowerState int state) { in notifyRadioPowerStateChanged() 412 return TelephonyManager.DATA_ACTIVITY_IN; in convertDataActivityState() 414 return TelephonyManager.DATA_ACTIVITY_OUT; in convertDataActivityState() 416 return TelephonyManager.DATA_ACTIVITY_INOUT; in convertDataActivityState() 418 return TelephonyManager.DATA_ACTIVITY_DORMANT; in convertDataActivityState() 420 return TelephonyManager.DATA_ACTIVITY_NONE; in convertDataActivityState()
|
D | LocaleTracker.java | 40 import android.telephony.TelephonyManager; 124 if (TelephonyManager.ACTION_SIM_CARD_STATE_CHANGED.equals(intent.getAction())) { 128 intent.getIntExtra(TelephonyManager.EXTRA_SIM_STATE, 129 TelephonyManager.SIM_STATE_UNKNOWN), 0).sendToTarget(); 185 mSimState = TelephonyManager.SIM_STATE_UNKNOWN; in LocaleTracker() 188 filter.addAction(TelephonyManager.ACTION_SIM_CARD_STATE_CHANGED); in LocaleTracker() 342 (mSimState == TelephonyManager.SIM_STATE_ABSENT in updateTrackingStatus() 405 TelephonyManager.setTelephonyProperty(mPhone.getPhoneId(), in updateLocale() 422 Intent intent = new Intent(TelephonyManager.ACTION_NETWORK_COUNTRY_CHANGED); in updateLocale() 423 intent.putExtra(TelephonyManager.EXTRA_NETWORK_COUNTRY, countryIso); in updateLocale()
|
D | SimActivationTracker.java | 32 import static android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_ACTIVATED; 33 import static android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_DEACTIVATED; 34 import static android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN; 35 import static android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_RESTRICTED; 36 import static android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_ACTIVATING;
|
D | MultiSimSettingController.java | 20 import static android.telephony.TelephonyManager.ACTION_PRIMARY_SUBSCRIPTION_LIST_CHANGED; 21 import static android.telephony.TelephonyManager.EXTRA_DEFAULT_SUBSCRIPTION_SELECT_TYPE; 22 import static android.telephony.TelephonyManager.EXTRA_DEFAULT_SUBSCRIPTION_SELECT_TYPE_ALL; 23 import static android.telephony.TelephonyManager.EXTRA_DEFAULT_SUBSCRIPTION_SELECT_TYPE_DATA; 24 import static android.telephony.TelephonyManager.EXTRA_DEFAULT_SUBSCRIPTION_SELECT_TYPE_NONE; 25 import static android.telephony.TelephonyManager.EXTRA_SIM_COMBINATION_NAMES; 26 import static android.telephony.TelephonyManager.EXTRA_SIM_COMBINATION_WARNING_TYPE; 27 import static android.telephony.TelephonyManager.EXTRA_SIM_COMBINATION_WARNING_TYPE_DUAL_CDMA; 28 import static android.telephony.TelephonyManager.EXTRA_SIM_COMBINATION_WARNING_TYPE_NONE; 29 import static android.telephony.TelephonyManager.EXTRA_SUBSCRIPTION_ID; [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | CellularLinkLayerStatsCollector.java | 18 import static android.telephony.TelephonyManager.NETWORK_TYPE_CDMA; 19 import static android.telephony.TelephonyManager.NETWORK_TYPE_EVDO_0; 20 import static android.telephony.TelephonyManager.NETWORK_TYPE_GSM; 21 import static android.telephony.TelephonyManager.NETWORK_TYPE_LTE; 22 import static android.telephony.TelephonyManager.NETWORK_TYPE_NR; 23 import static android.telephony.TelephonyManager.NETWORK_TYPE_TD_SCDMA; 24 import static android.telephony.TelephonyManager.NETWORK_TYPE_UMTS; 25 import static android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN; 44 import android.telephony.TelephonyManager; 58 private TelephonyManager mCachedDefaultDataTelephonyManager = null; [all …]
|
D | SIMAccessor.java | 5 import android.telephony.TelephonyManager; 11 private final TelephonyManager mTelephonyManager; 16 mTelephonyManager = TelephonyManager.from(context); in SIMAccessor()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | TelephonyUtil.java | 24 import android.telephony.TelephonyManager; 90 public static Pair<String, String> getSimIdentity(TelephonyManager tm, in getSimIdentity() 97 TelephonyManager defaultDataTm = tm.createForSubscriptionId( in getSimIdentity() 106 if (defaultDataTm.getSimState() == TelephonyManager.SIM_STATE_READY) { in getSimIdentity() 119 TelephonyManager.KEY_TYPE_WLAN); in getSimIdentity() 147 public static String getAnonymousIdentityWith3GppRealm(@Nonnull TelephonyManager tm) { in getAnonymousIdentityWith3GppRealm() 151 TelephonyManager defaultDataTm = tm.createForSubscriptionId( in getAnonymousIdentityWith3GppRealm() 153 if (defaultDataTm.getSimState() != TelephonyManager.SIM_STATE_READY) { in getAnonymousIdentityWith3GppRealm() 454 public static String getGsmSimAuthResponse(String[] requestData, TelephonyManager tm) { in getGsmSimAuthResponse() 455 return getGsmAuthResponseWithLength(requestData, tm, TelephonyManager.APPTYPE_USIM); in getGsmSimAuthResponse() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | UiccCarrierPrivilegeRules.java | 31 import android.telephony.TelephonyManager; 280 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED; in getCarrierPrivilegeStatus() 282 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_ERROR_LOADING_RULES; in getCarrierPrivilegeStatus() 287 if (accessStatus != TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS) { in getCarrierPrivilegeStatus() 292 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS; in getCarrierPrivilegeStatus() 309 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED; in getCarrierPrivilegeStatus() 311 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_ERROR_LOADING_RULES; in getCarrierPrivilegeStatus() 313 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS; in getCarrierPrivilegeStatus() 326 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS; in getCarrierPrivilegeStatus() 338 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED; in getCarrierPrivilegeStatus() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/ |
D | DataUsageControllerTest.java | 39 import android.telephony.TelephonyManager; 59 private TelephonyManager mTelephonyManager; 161 TelephonyManager tmForSub1 = new TelephonyManager(mContext, explicitSubId); in getTelephonyManager_shouldCreateWithExplicitSubId() 174 TelephonyManager tmForDefaultSub = new TelephonyManager(mContext, mDefaultSubscriptionId); in getTelephonyManager_noExplicitSubId_shouldCreateWithDefaultDataSubId() 191 TelephonyManager tmForActiveSub = new TelephonyManager(mContext, activeSubId); in getTelephonyManager_noExplicitSubIdOrDefaultSub_shouldCreateWithActiveSub()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | CellularLinkLayerStatsCollectorTest.java | 19 import static android.telephony.TelephonyManager.NETWORK_TYPE_CDMA; 20 import static android.telephony.TelephonyManager.NETWORK_TYPE_EVDO_0; 21 import static android.telephony.TelephonyManager.NETWORK_TYPE_GSM; 22 import static android.telephony.TelephonyManager.NETWORK_TYPE_LTE; 23 import static android.telephony.TelephonyManager.NETWORK_TYPE_NR; 24 import static android.telephony.TelephonyManager.NETWORK_TYPE_TD_SCDMA; 25 import static android.telephony.TelephonyManager.NETWORK_TYPE_UMTS; 26 import static android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN; 50 import android.telephony.TelephonyManager; 51 import android.telephony.TelephonyManager.NetworkType; [all …]
|
/frameworks/opt/telephony/src/java/android/telephony/gsm/ |
D | SmsMessage.java | 19 import android.telephony.TelephonyManager; 28 import static android.telephony.TelephonyManager.PHONE_TYPE_CDMA; 153 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in createFromPdu() 171 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in getTPLayerLengthForPDU() 245 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in getSubmitPdu() 272 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in getSubmitPdu() 303 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in getSubmitPdu() 618 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in getSmsFacility()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageUtils.java | 23 import android.telephony.TelephonyManager; 36 final TelephonyManager telephonyManager = context.getSystemService( in getMobileTemplate() 37 TelephonyManager.class).createForSubscriptionId(subId); in getMobileTemplate()
|