/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerDataTest.java | 4 import android.telephony.TelephonyManager; 33 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in test2gDataIcon() 34 TelephonyManager.NETWORK_TYPE_GSM); in test2gDataIcon() 42 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in testCdmaDataIcon() 43 TelephonyManager.NETWORK_TYPE_CDMA); in testCdmaDataIcon() 51 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in testEdgeDataIcon() 52 TelephonyManager.NETWORK_TYPE_EDGE); in testEdgeDataIcon() 60 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in testLteDataIcon() 61 TelephonyManager.NETWORK_TYPE_LTE); in testLteDataIcon() 69 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in testHspaDataIcon() [all …]
|
D | NetworkControllerSignalTest.java | 27 import android.telephony.TelephonyManager; 286 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in setCdma() 287 TelephonyManager.NETWORK_TYPE_CDMA); in setCdma() 379 updateDataActivity(TelephonyManager.DATA_ACTIVITY_IN); in testOnUpdateDataActivity_dataIn() 392 updateDataActivity(TelephonyManager.DATA_ACTIVITY_OUT); in testOnUpdateDataActivity_dataOut() 405 updateDataActivity(TelephonyManager.DATA_ACTIVITY_INOUT); in testOnUpdateDataActivity_dataInOut() 418 updateDataActivity(TelephonyManager.DATA_ACTIVITY_NONE); in testOnUpdateDataActivity_dataActivityNone()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | DefaultPhoneNotifier.java | 30 import android.telephony.TelephonyManager; 166 TelephonyManager telephony = TelephonyManager.getDefault(); in doNotifyDataConnection() 188 TelephonyManager.NETWORK_TYPE_UNKNOWN), in doNotifyDataConnection() 318 return TelephonyManager.CALL_STATE_RINGING; in convertCallState() 320 return TelephonyManager.CALL_STATE_OFFHOOK; in convertCallState() 322 return TelephonyManager.CALL_STATE_IDLE; in convertCallState() 332 case TelephonyManager.CALL_STATE_RINGING: in convertCallState() 334 case TelephonyManager.CALL_STATE_OFFHOOK: in convertCallState() 348 return TelephonyManager.DATA_CONNECTING; in convertDataState() 350 return TelephonyManager.DATA_CONNECTED; in convertDataState() [all …]
|
D | CarrierAppUtils.java | 24 import android.telephony.TelephonyManager; 62 IPackageManager packageManager, TelephonyManager telephonyManager, int userId) { in disableCarrierAppsUntilPrivileged() 75 IPackageManager packageManager, TelephonyManager telephonyManager, int userId, in disableCarrierAppsUntilPrivileged() 90 TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS; in disableCarrierAppsUntilPrivileged() 141 TelephonyManager telephonyManager, int userId) { in getDefaultCarrierApps() 156 TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS; in getDefaultCarrierApps()
|
D | PhoneStateIntentReceiver.java | 27 import android.telephony.TelephonyManager; 126 mFilter.addAction(TelephonyManager.ACTION_PHONE_STATE_CHANGED); in notifyPhoneCallState() 173 } else if (TelephonyManager.ACTION_PHONE_STATE_CHANGED.equals(action)) { in onReceive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | MobileSignalController.java | 27 import android.telephony.TelephonyManager; 47 private final TelephonyManager mPhone; 62 private int mDataNetType = TelephonyManager.NETWORK_TYPE_UNKNOWN; 63 private int mDataState = TelephonyManager.DATA_DISCONNECTED; 72 TelephonyManager phone, CallbackHandler callbackHandler, in MobileSignalController() 157 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EVDO_0, TelephonyIcons.THREE_G); in mapIconSets() 158 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EVDO_A, TelephonyIcons.THREE_G); in mapIconSets() 159 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EVDO_B, TelephonyIcons.THREE_G); in mapIconSets() 160 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EHRPD, TelephonyIcons.THREE_G); in mapIconSets() 161 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_UMTS, TelephonyIcons.THREE_G); in mapIconSets() [all …]
|
D | MobileDataControllerImpl.java | 22 import static android.telephony.TelephonyManager.SIM_STATE_READY; 37 import android.telephony.TelephonyManager; 56 private final TelephonyManager mTelephonyManager; 67 mTelephonyManager = TelephonyManager.from(context); in MobileDataControllerImpl() 219 final TelephonyManager tele = TelephonyManager.from(context); in getActiveSubscriberId()
|
/frameworks/base/telephony/java/android/telephony/ |
D | NeighboringCellInfo.java | 21 import static android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN; 22 import static android.telephony.TelephonyManager.NETWORK_TYPE_EDGE; 23 import static android.telephony.TelephonyManager.NETWORK_TYPE_GPRS; 24 import static android.telephony.TelephonyManager.NETWORK_TYPE_UMTS; 25 import static android.telephony.TelephonyManager.NETWORK_TYPE_HSDPA; 26 import static android.telephony.TelephonyManager.NETWORK_TYPE_HSUPA; 27 import static android.telephony.TelephonyManager.NETWORK_TYPE_HSPA;
|
D | ServiceState.java | 1041 return TelephonyManager.NETWORK_TYPE_GPRS; in rilRadioTechnologyToNetworkType() 1043 return TelephonyManager.NETWORK_TYPE_EDGE; in rilRadioTechnologyToNetworkType() 1045 return TelephonyManager.NETWORK_TYPE_UMTS; in rilRadioTechnologyToNetworkType() 1047 return TelephonyManager.NETWORK_TYPE_HSDPA; in rilRadioTechnologyToNetworkType() 1049 return TelephonyManager.NETWORK_TYPE_HSUPA; in rilRadioTechnologyToNetworkType() 1051 return TelephonyManager.NETWORK_TYPE_HSPA; in rilRadioTechnologyToNetworkType() 1054 return TelephonyManager.NETWORK_TYPE_CDMA; in rilRadioTechnologyToNetworkType() 1056 return TelephonyManager.NETWORK_TYPE_1xRTT; in rilRadioTechnologyToNetworkType() 1058 return TelephonyManager.NETWORK_TYPE_EVDO_0; in rilRadioTechnologyToNetworkType() 1060 return TelephonyManager.NETWORK_TYPE_EVDO_A; in rilRadioTechnologyToNetworkType() [all …]
|
D | CellLocation.java | 63 switch(TelephonyManager.getDefault().getCurrentPhoneType()) { in newFromBundle() 91 switch(TelephonyManager.getDefault().getCurrentPhoneType()) { in getEmpty()
|
D | PreciseDataConnectionState.java | 21 import android.telephony.TelephonyManager; 43 private int mState = TelephonyManager.DATA_UNKNOWN; 44 private int mNetworkType = TelephonyManager.NETWORK_TYPE_UNKNOWN;
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierAppUtilsTest.java | 22 import android.telephony.TelephonyManager; 36 @Mock private TelephonyManager mTelephonyManager; 98 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 117 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled() 136 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled() 155 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedApp() 174 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Default() 194 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUntilUsed() 213 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS); in testDisableCarrierAppsUntilPrivileged_NoPrivileges_DisabledUser() 233 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS); in testDisableCarrierAppsUntilPrivileged_NoPrivileges_Disabled() [all …]
|
D | NeighboringCellInfoTest.java | 23 import static android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN; 24 import static android.telephony.TelephonyManager.NETWORK_TYPE_EDGE; 25 import static android.telephony.TelephonyManager.NETWORK_TYPE_GPRS; 26 import static android.telephony.TelephonyManager.NETWORK_TYPE_UMTS;
|
/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/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SIMAccessor.java | 5 import android.telephony.TelephonyManager; 11 private final TelephonyManager mTelephonyManager; 15 mTelephonyManager = TelephonyManager.from(context); in SIMAccessor()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | DataConnectionStats.java | 28 import android.telephony.TelephonyManager; 46 private int mDataState = TelephonyManager.DATA_DISCONNECTED; 54 TelephonyManager phone = in startMonitoring() 55 (TelephonyManager)mContext.getSystemService(Context.TELEPHONY_SERVICE); in startMonitoring() 89 && mDataState == TelephonyManager.DATA_CONNECTED; in notePhoneDataConnectionState()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | UiccCarrierPrivilegeRules.java | 30 import android.telephony.TelephonyManager; 262 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED; in getCarrierPrivilegeStatus() 265 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_ERROR_LOADING_RULES; in getCarrierPrivilegeStatus() 273 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS; in getCarrierPrivilegeStatus() 277 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS; in getCarrierPrivilegeStatus() 297 if (accessStatus != TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS) { in getCarrierPrivilegeStatus() 304 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS; in getCarrierPrivilegeStatus() 318 if (accessStatus != TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS) { in getCarrierPrivilegeStatusForCurrentTransaction() 322 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS; in getCarrierPrivilegeStatusForCurrentTransaction() 350 if (status == TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS) { in getCarrierPackageNamesForIntent() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | TelephonyRegistry.java | 39 import android.telephony.TelephonyManager; 220 int numPhones = TelephonyManager.getDefault().getPhoneCount(); 297 int numPhones = TelephonyManager.getDefault().getPhoneCount(); in TelephonyRegistry() 317 mCallState[i] = TelephonyManager.CALL_STATE_IDLE; in TelephonyRegistry() 318 mDataActivity[i] = TelephonyManager.DATA_ACTIVITY_NONE; in TelephonyRegistry() 319 mDataConnectionState[i] = TelephonyManager.DATA_UNKNOWN; in TelephonyRegistry() 1061 if (state == TelephonyManager.DATA_CONNECTED) { in notifyDataConnectionForSubscriber() 1147 TelephonyManager.DATA_UNKNOWN,TelephonyManager.NETWORK_TYPE_UNKNOWN, in notifyDataConnectionFailedForSubscriber() 1162 broadcastPreciseDataConnectionStateChanged(TelephonyManager.DATA_UNKNOWN, in notifyDataConnectionFailedForSubscriber() 1163 TelephonyManager.NETWORK_TYPE_UNKNOWN, apnType, "", reason, null, ""); in notifyDataConnectionFailedForSubscriber() [all …]
|
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
D | DataIdleTest.java | 28 import android.telephony.TelephonyManager; 38 private TelephonyManager mTelephonyManager; 49 mTelephonyManager = (TelephonyManager) c.getSystemService(Context.TELEPHONY_SERVICE); in setUp()
|
/frameworks/base/docs/html/training/efficient-downloads/ |
D | connectivity_patterns.jd | 51 TelephonyManager tm = 52 (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); 63 case (TelephonyManager.NETWORK_TYPE_LTE | 64 TelephonyManager.NETWORK_TYPE_HSPAP): 67 case (TelephonyManager.NETWORK_TYPE_EDGE | 68 TelephonyManager.NETWORK_TYPE_GPRS):
|
/frameworks/base/core/java/android/net/ |
D | NetworkTemplate.java | 26 import static android.telephony.TelephonyManager.NETWORK_CLASS_2_G; 27 import static android.telephony.TelephonyManager.NETWORK_CLASS_3_G; 28 import static android.telephony.TelephonyManager.NETWORK_CLASS_4_G; 29 import static android.telephony.TelephonyManager.NETWORK_CLASS_UNKNOWN; 30 import static android.telephony.TelephonyManager.getNetworkClass;
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | PhoneFallbackEventHandler.java | 29 import android.telephony.TelephonyManager; 50 TelephonyManager mTelephonyManager; 97 if (getTelephonyManager().getCallState() != TelephonyManager.CALL_STATE_IDLE) { in onKeyDown() 284 TelephonyManager getTelephonyManager() { in getTelephonyManager() 286 mTelephonyManager = (TelephonyManager)mContext.getSystemService( in getTelephonyManager()
|
/frameworks/opt/telephony/src/java/android/telephony/ |
D | SmsMessage.java | 35 import static android.telephony.TelephonyManager.PHONE_TYPE_CDMA; 169 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in createFromPdu() 766 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in isCdmaVoice() 783 simOperator = TelephonyManager.getDefault().getSimOperatorNumeric(); in hasEmsSupport() 784 gid = TelephonyManager.getDefault().getGroupIdLevel1(); in hasEmsSupport() 813 simOperator = TelephonyManager.getDefault().getSimOperatorNumeric(); in shouldAppendPageNumberAsPrefix() 814 gid = TelephonyManager.getDefault().getGroupIdLevel1(); in shouldAppendPageNumberAsPrefix()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | Util.java | 25 import android.telephony.TelephonyManager; 170 final TelephonyManager telephony = in isVoiceCapable() 171 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); in isVoiceCapable()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/ |
D | TrackerService.java | 40 import android.telephony.TelephonyManager; 68 private TelephonyManager mTelephonyManager; 143 mTelephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); in initLocationListeners() 370 if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { 373 } else if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_GSM) {
|