/cts/tests/tests/telephony/src/android/telephony/cts/ |
SimRestrictedApisTest.java | 21 import android.telephony.TelephonyManager; 26 private TelephonyManager mTelephonyManager; 32 (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE); 36 return mTelephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE && 37 mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT; 55 * Tests the TelephonyManager.setLine1NumberForDisplay() API. This makes a call to 62 TelephonyManager.getDefault().setLine1NumberForDisplay("", ""); 70 * Tests the TelephonyManager.setLine1NumberForDisplay(long, string, string) API. This makes a 77 TelephonyManager.getDefault().setLine1NumberForDisplay(0, "", ""); 85 * Tests the TelephonyManager.iccOpenLogicalChannel() API. This makes a call t [all...] |
TelephonyUtils.java | 19 import android.telephony.TelephonyManager; 23 public static boolean isSkt(TelephonyManager telephonyManager) { 24 return isOperator(telephonyManager, "45005"); 27 public static boolean isKt(TelephonyManager telephonyManager) { 28 return isOperator(telephonyManager, "45002") 29 || isOperator(telephonyManager, "45004") 30 || isOperator(telephonyManager, "45008"); 33 private static boolean isOperator(TelephonyManager telephonyManager, String operator) [all...] |
CarrierConfigManagerTest.java | 24 import android.telephony.TelephonyManager; 29 private TelephonyManager mTelephonyManager; 34 mTelephonyManager = (TelephonyManager) 53 return mTelephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE && 54 mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT;
|
TelephonyManagerTest.java | 33 import android.telephony.TelephonyManager; 42 private TelephonyManager mTelephonyManager; 54 (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE); 73 if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { 133 assertTrue(mTelephonyManager.getNetworkType() >= TelephonyManager.NETWORK_TYPE_UNKNOWN); 134 assertTrue(mTelephonyManager.getPhoneType() >= TelephonyManager.PHONE_TYPE_NONE); 135 assertTrue(mTelephonyManager.getSimState() >= TelephonyManager.SIM_STATE_UNKNOWN); 136 assertTrue(mTelephonyManager.getDataActivity() >= TelephonyManager.DATA_ACTIVITY_NONE); 137 assertTrue(mTelephonyManager.getDataState() >= TelephonyManager.DATA_DISCONNECTED); 138 assertTrue(mTelephonyManager.getCallState() >= TelephonyManager.CALL_STATE_IDLE) [all...] |
CellLocationTest.java | 26 import android.telephony.TelephonyManager; 35 private TelephonyManager mTelephonyManager; 44 (TelephonyManager)getContext().getSystemService(Context.TELEPHONY_SERVICE); 66 if (mTelephonyManager.getNetworkType() != TelephonyManager.NETWORK_TYPE_LTE) { 67 assertNotNull("TelephonyManager.getCellLocation() returned null!",
|
/packages/apps/ContactsCommon/src-N/com/android/contacts/common/compat/ |
TelephonyManagerSdkCompat.java | 21 import android.telephony.TelephonyManager; 27 public static Uri getVoicemailRingtoneUri(TelephonyManager telephonyManager, 29 return telephonyManager.getVoicemailRingtoneUri(accountHandle); 32 public static boolean isVoicemailVibrationEnabled(TelephonyManager telephonyManager, 34 return telephonyManager.isVoicemailVibrationEnabled(accountHandle);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
NetworkControllerDataTest.java | 5 import android.telephony.TelephonyManager; 34 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, 35 TelephonyManager.NETWORK_TYPE_GSM); 43 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, 44 TelephonyManager.NETWORK_TYPE_CDMA); 52 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, 53 TelephonyManager.NETWORK_TYPE_EDGE); 61 updateDataConnectionState(TelephonyManager.DATA_CONNECTED, 62 TelephonyManager.NETWORK_TYPE_LTE); 70 updateDataConnectionState(TelephonyManager.DATA_CONNECTED [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
TelephonyManagerTest.java | 4 import android.telephony.TelephonyManager; 23 private TelephonyManager manager; 29 manager = newInstanceOf(TelephonyManager.class); 46 TelephonyManager telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERVICE); 47 shadowOf(telephonyManager).setDeviceId(testId); 48 assertEquals(testId, telephonyManager.getDeviceId()); 53 TelephonyManager telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERVICE) [all...] |
/packages/apps/ContactsCommon/src-pre-N/com/android/contacts/common/compat/ |
TelephonyManagerSdkCompat.java | 21 import android.telephony.TelephonyManager; 31 public static Uri getVoicemailRingtoneUri(TelephonyManager telephonyManager, 37 public static boolean isVoicemailVibrationEnabled(TelephonyManager telephonyManager,
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
TelephonyManagerUtils.java | 20 import android.telephony.TelephonyManager; 27 * This class provides several TelephonyManager util functions. 39 final TelephonyManager telephonyManager = 40 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 41 final String voiceMailLabel = telephonyManager.getVoiceMailAlphaTag(); 53 final TelephonyManager telephonyManager = 54 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 55 String countryIso = telephonyManager.getNetworkCountryIso().toUpperCase() [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/ |
TelephonyUtils.java | 25 import android.telephony.TelephonyManager; 63 case TelephonyManager.PHONE_TYPE_GSM: 65 case TelephonyManager.PHONE_TYPE_NONE: 67 case TelephonyManager.PHONE_TYPE_CDMA: 69 case TelephonyManager.PHONE_TYPE_SIP: 78 case TelephonyManager.SIM_STATE_UNKNOWN: 80 case TelephonyManager.SIM_STATE_ABSENT: 82 case TelephonyManager.SIM_STATE_PIN_REQUIRED: 84 case TelephonyManager.SIM_STATE_PUK_REQUIRED: 86 case TelephonyManager.SIM_STATE_NETWORK_LOCKED [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/ |
TelephonyManagerCompat.java | 22 import android.telephony.TelephonyManager; 27 public static final String TELEPHONY_MANAGER_CLASS = "android.telephony.TelephonyManager"; 30 * @param telephonyManager The telephony manager instance to use for method calls. 44 public static boolean isVoiceCapable(@Nullable TelephonyManager telephonyManager) { 45 if (telephonyManager == null) { 51 return telephonyManager.isVoiceCapable(); 53 final int phoneType = telephonyManager.getPhoneType(); 54 return phoneType == TelephonyManager.PHONE_TYPE_CDMA || 55 phoneType == TelephonyManager.PHONE_TYPE_GSM [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/ |
DeviceTests.java | 21 import android.telephony.TelephonyManager; 31 TelephonyManager tm = 32 (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE); 34 LogUtils.w(Logging.LOG_TAG, "TelephonyManager not supported. Skipping.");
|
/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/service/ |
RespondService.java | 21 import android.telephony.TelephonyManager; 41 TelephonyManager.ACTION_RESPOND_VIA_MESSAGE.equals(intent.getAction())) {
|
/packages/services/Telephony/src/com/android/services/telephony/activation/ |
SimActivationManager.java | 20 import android.telephony.TelephonyManager; 34 * @param status See {@link android.telephony.TelephonyManager} for SIM_ACTIVATION_RESULT_* 50 response.onResponse(TelephonyManager.SIM_ACTIVATION_RESULT_COMPLETE);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
SIMAccessor.java | 5 import android.telephony.TelephonyManager; 11 private final TelephonyManager mTelephonyManager; 15 mTelephonyManager = TelephonyManager.from(context);
|
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/ |
CellularDataCondition.java | 18 import android.telephony.TelephonyManager; 34 TelephonyManager telephony = mManager.getContext().getSystemService(TelephonyManager.class); 36 || telephony.getSimState() != TelephonyManager.SIM_STATE_READY) { 77 TelephonyManager telephony = mManager.getContext().getSystemService( 78 TelephonyManager.class);
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
TemplatePreference.java | 24 import android.telephony.TelephonyManager; 35 TelephonyManager mTelephonyManager;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
DefaultPhoneNotifier.java | 29 import android.telephony.TelephonyManager; 170 TelephonyManager telephony = TelephonyManager.getDefault(); 192 TelephonyManager.NETWORK_TYPE_UNKNOWN), 306 * Convert the {@link PhoneConstants.State} enum into the TelephonyManager.CALL_STATE_* 312 return TelephonyManager.CALL_STATE_RINGING; 314 return TelephonyManager.CALL_STATE_OFFHOOK; 316 return TelephonyManager.CALL_STATE_IDLE; 321 * Convert the TelephonyManager.CALL_STATE_* constants into the 326 case TelephonyManager.CALL_STATE_RINGING [all...] |
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/ |
NetworkMonitorAutoDetect.java | 46 import android.telephony.TelephonyManager; 74 // Defined from NetworkInfo.subtype, which is one of the TelephonyManager.NETWORK_TYPE_XXXs. 379 // Use information from TelephonyManager to classify the connection. 381 case TelephonyManager.NETWORK_TYPE_GPRS: 382 case TelephonyManager.NETWORK_TYPE_EDGE: 383 case TelephonyManager.NETWORK_TYPE_CDMA: 384 case TelephonyManager.NETWORK_TYPE_1xRTT: 385 case TelephonyManager.NETWORK_TYPE_IDEN: 387 case TelephonyManager.NETWORK_TYPE_UMTS: 388 case TelephonyManager.NETWORK_TYPE_EVDO_0 [all...] |
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/ |
CarrierApiTest.java | 27 import android.telephony.TelephonyManager; 38 private TelephonyManager mTelephonyManager; 49 mTelephonyManager = (TelephonyManager) 70 return mTelephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE && 71 mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT;
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
PhoneStateBroadcaster.java | 21 import android.telephony.TelephonyManager; 26 * Send a {@link TelephonyManager#ACTION_PHONE_STATE_CHANGED} broadcast when the call state 33 private int mCurrentState = TelephonyManager.CALL_STATE_IDLE; 83 int callState = TelephonyManager.CALL_STATE_IDLE; 85 callState = TelephonyManager.CALL_STATE_RINGING; 88 callState = TelephonyManager.CALL_STATE_OFFHOOK;
|
/frameworks/base/telephony/java/android/telephony/ |
CellLocation.java | 61 // TelephonyManager.getDefault().getCurrentPhoneType() handles the case when 63 switch(TelephonyManager.getDefault().getCurrentPhoneType()) { 95 // TelephonyManager.getDefault().getCurrentPhoneType() handles the case when 97 switch(TelephonyManager.getDefault().getCurrentPhoneType()) {
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
RemoteInputEntrypointActivity.java | 20 import android.telephony.TelephonyManager; 45 sendIntent.setAction(TelephonyManager.ACTION_RESPOND_VIA_MESSAGE);
|
/packages/services/Car/car-cluster-demo-renderer/src/android/car/cluster/demorenderer/ |
DemoPhoneRenderer.java | 23 import android.telephony.TelephonyManager; 51 if (TelephonyManager.CALL_STATE_IDLE == state) { 92 case TelephonyManager.CALL_STATE_OFFHOOK: 94 case TelephonyManager.CALL_STATE_RINGING:
|