Home
last modified time | relevance | path

Searched refs:TelephonyManager (Results 1 – 25 of 146) sorted by relevance

123456

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerDataTest.java5 import android.telephony.TelephonyManager;
34 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in test2gDataIcon()
35 TelephonyManager.NETWORK_TYPE_GSM); in test2gDataIcon()
43 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in testCdmaDataIcon()
44 TelephonyManager.NETWORK_TYPE_CDMA); in testCdmaDataIcon()
52 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in testEdgeDataIcon()
53 TelephonyManager.NETWORK_TYPE_EDGE); in testEdgeDataIcon()
61 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in testLteDataIcon()
62 TelephonyManager.NETWORK_TYPE_LTE); in testLteDataIcon()
70 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in testHspaDataIcon()
[all …]
DNetworkControllerSignalTest.java27 import android.telephony.TelephonyManager;
287 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, in setCdma()
288 TelephonyManager.NETWORK_TYPE_CDMA); in setCdma()
380 updateDataActivity(TelephonyManager.DATA_ACTIVITY_IN); in testOnUpdateDataActivity_dataIn()
393 updateDataActivity(TelephonyManager.DATA_ACTIVITY_OUT); in testOnUpdateDataActivity_dataOut()
406 updateDataActivity(TelephonyManager.DATA_ACTIVITY_INOUT); in testOnUpdateDataActivity_dataInOut()
419 updateDataActivity(TelephonyManager.DATA_ACTIVITY_NONE); in testOnUpdateDataActivity_dataActivityNone()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDefaultPhoneNotifier.java29 import android.telephony.TelephonyManager;
170 TelephonyManager telephony = TelephonyManager.getDefault(); in doNotifyDataConnection()
192 TelephonyManager.NETWORK_TYPE_UNKNOWN), in doNotifyDataConnection()
312 return TelephonyManager.CALL_STATE_RINGING; in convertCallState()
314 return TelephonyManager.CALL_STATE_OFFHOOK; in convertCallState()
316 return TelephonyManager.CALL_STATE_IDLE; in convertCallState()
326 case TelephonyManager.CALL_STATE_RINGING: in convertCallState()
328 case TelephonyManager.CALL_STATE_OFFHOOK: in convertCallState()
342 return TelephonyManager.DATA_CONNECTING; in convertDataState()
344 return TelephonyManager.DATA_CONNECTED; in convertDataState()
[all …]
DPhoneStateIntentReceiver.java27 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/
DMobileSignalController.java27 import android.telephony.TelephonyManager;
48 private final TelephonyManager mPhone;
63 private int mDataNetType = TelephonyManager.NETWORK_TYPE_UNKNOWN;
64 private int mDataState = TelephonyManager.DATA_DISCONNECTED;
73 TelephonyManager phone, CallbackHandler callbackHandler, in MobileSignalController()
163 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EVDO_0, TelephonyIcons.THREE_G); in mapIconSets()
164 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EVDO_A, TelephonyIcons.THREE_G); in mapIconSets()
165 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EVDO_B, TelephonyIcons.THREE_G); in mapIconSets()
166 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EHRPD, TelephonyIcons.THREE_G); in mapIconSets()
167 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_UMTS, TelephonyIcons.THREE_G); in mapIconSets()
[all …]
/frameworks/base/telephony/java/android/telephony/
DNeighboringCellInfo.java21 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;
DServiceState.java1057 return TelephonyManager.NETWORK_TYPE_GPRS; in rilRadioTechnologyToNetworkType()
1059 return TelephonyManager.NETWORK_TYPE_EDGE; in rilRadioTechnologyToNetworkType()
1061 return TelephonyManager.NETWORK_TYPE_UMTS; in rilRadioTechnologyToNetworkType()
1063 return TelephonyManager.NETWORK_TYPE_HSDPA; in rilRadioTechnologyToNetworkType()
1065 return TelephonyManager.NETWORK_TYPE_HSUPA; in rilRadioTechnologyToNetworkType()
1067 return TelephonyManager.NETWORK_TYPE_HSPA; in rilRadioTechnologyToNetworkType()
1070 return TelephonyManager.NETWORK_TYPE_CDMA; in rilRadioTechnologyToNetworkType()
1072 return TelephonyManager.NETWORK_TYPE_1xRTT; in rilRadioTechnologyToNetworkType()
1074 return TelephonyManager.NETWORK_TYPE_EVDO_0; in rilRadioTechnologyToNetworkType()
1076 return TelephonyManager.NETWORK_TYPE_EVDO_A; in rilRadioTechnologyToNetworkType()
[all …]
DCellLocation.java63 switch(TelephonyManager.getDefault().getCurrentPhoneType()) { in newFromBundle()
97 switch(TelephonyManager.getDefault().getCurrentPhoneType()) { in getEmpty()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRules.java30 import android.telephony.TelephonyManager;
286 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED; in getCarrierPrivilegeStatus()
288 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_ERROR_LOADING_RULES; in getCarrierPrivilegeStatus()
296 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS; in getCarrierPrivilegeStatus()
300 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS; in getCarrierPrivilegeStatus()
317 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED; in getCarrierPrivilegeStatus()
319 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_ERROR_LOADING_RULES; in getCarrierPrivilegeStatus()
321 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS; in getCarrierPrivilegeStatus()
332 return TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS; in getCarrierPrivilegeStatus()
345 if (accessStatus != TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS) { in getCarrierPrivilegeStatus()
[all …]
/frameworks/opt/telephony/src/java/android/telephony/gsm/
DSmsMessage.java19 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/telephony/java/com/android/internal/telephony/
DCarrierAppUtils.java25 import android.telephony.TelephonyManager;
63 IPackageManager packageManager, TelephonyManager telephonyManager, int userId) { in disableCarrierAppsUntilPrivileged()
98 IPackageManager packageManager, @Nullable TelephonyManager telephonyManager, int userId, in disableCarrierAppsUntilPrivileged()
113 TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS; in disableCarrierAppsUntilPrivileged()
164 TelephonyManager telephonyManager, int userId) { in getDefaultCarrierApps()
179 TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS; in getDefaultCarrierApps()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSIMAccessor.java5 import android.telephony.TelephonyManager;
11 private final TelephonyManager mTelephonyManager;
15 mTelephonyManager = TelephonyManager.from(context); in SIMAccessor()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNeighboringCellInfoTest.java23 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;
DCarrierAppUtilsTest.java22 import android.telephony.TelephonyManager;
38 @Mock private TelephonyManager mTelephonyManager;
104 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser()
124 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled()
144 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled()
164 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedApp()
184 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Default()
205 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUntilUsed()
225 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS); in testDisableCarrierAppsUntilPrivileged_NoPrivileges_DisabledUser()
266 .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS); in testDisableCarrierAppsUntilPrivileged_NoPrivileges_Disabled()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DDataConnectionStats.java28 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/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java32 import android.telephony.TelephonyManager;
109 final TelephonyManager tm = (TelephonyManager) in checkAccessLevel()
113 TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS; in checkAccessLevel()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java38 import android.telephony.TelephonyManager;
217 int numPhones = TelephonyManager.getDefault().getPhoneCount();
295 int numPhones = TelephonyManager.getDefault().getPhoneCount(); in TelephonyRegistry()
315 mCallState[i] = TelephonyManager.CALL_STATE_IDLE; in TelephonyRegistry()
316 mDataActivity[i] = TelephonyManager.DATA_ACTIVITY_NONE; in TelephonyRegistry()
317 mDataConnectionState[i] = TelephonyManager.DATA_UNKNOWN; in TelephonyRegistry()
1027 if (state == TelephonyManager.DATA_CONNECTED) { in notifyDataConnectionForSubscriber()
1113 TelephonyManager.DATA_UNKNOWN,TelephonyManager.NETWORK_TYPE_UNKNOWN, in notifyDataConnectionFailedForSubscriber()
1128 broadcastPreciseDataConnectionStateChanged(TelephonyManager.DATA_UNKNOWN, in notifyDataConnectionFailedForSubscriber()
1129 TelephonyManager.NETWORK_TYPE_UNKNOWN, apnType, "", reason, null, ""); in notifyDataConnectionFailedForSubscriber()
[all …]
/frameworks/base/docs/html/training/efficient-downloads/
Dconnectivity_patterns.jd51 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/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java30 import android.telephony.TelephonyManager;
41 import static android.telephony.TelephonyManager.SIM_STATE_READY;
56 private final TelephonyManager mTelephonyManager;
67 mTelephonyManager = TelephonyManager.from(context); in DataUsageController()
229 final TelephonyManager tele = TelephonyManager.from(context); in getActiveSubscriberId()
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/
DDataIdleTest.java28 import android.telephony.TelephonyManager;
38 private TelephonyManager mTelephonyManager;
49 mTelephonyManager = (TelephonyManager) c.getSystemService(Context.TELEPHONY_SERVICE); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsAccessTest.java28 import android.telephony.TelephonyManager;
43 @Mock private TelephonyManager mTm;
151 hasPrivileges ? TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS in setHasCarrierPrivileges()
152 : TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS); in setHasCarrierPrivileges()
/frameworks/base/core/java/com/android/internal/policy/
DPhoneFallbackEventHandler.java29 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/
DSmsMessage.java35 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()
815 simOperator = TelephonyManager.getDefault().getSimOperatorNumeric(); in shouldAppendPageNumberAsPrefix()
816 gid = TelephonyManager.getDefault().getGroupIdLevel1(); in shouldAppendPageNumberAsPrefix()
/frameworks/base/core/java/android/net/
DNetworkTemplate.java28 import static android.telephony.TelephonyManager.NETWORK_CLASS_2_G;
29 import static android.telephony.TelephonyManager.NETWORK_CLASS_3_G;
30 import static android.telephony.TelephonyManager.NETWORK_CLASS_4_G;
31 import static android.telephony.TelephonyManager.NETWORK_CLASS_UNKNOWN;
32 import static android.telephony.TelephonyManager.getNetworkClass;
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerService.java40 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) {

123456