/cts/tests/tests/telephony/src/android/telephony/cts/ |
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...] |
/external/robolectric/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/Dialer/src/com/android/dialer/ |
SpecialCharSequenceMgr.java | 34 import android.telephony.TelephonyManager; 158 TelephonyManager telephonyManager = 159 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 160 if (telephonyManager == null 161 || !TelephonyCapabilities.supportsAdn(telephonyManager.getCurrentPhoneType())) { 243 TelephonyManager telephonyManager = 244 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 245 if (telephonyManager != null && input.equals(MMI_IMEI_DISPLAY)) [all...] |
/packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/ |
ImsFrameworkApp.java | 28 import android.telephony.TelephonyManager; 92 // all ISIM records are loaded, query them through TelephonyManager 107 TelephonyManager telephonyManager = 108 (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); 110 Log.d(TAG, "ISIM IMPI: " + telephonyManager.getIsimImpi()); 111 Log.d(TAG, "ISIM Domain: " + telephonyManager.getIsimDomain()); 112 Log.d(TAG, "ISIM IMPU: " + Arrays.toString(telephonyManager.getIsimImpu()));
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoLocationPermissionTest.java | 28 import android.telephony.TelephonyManager; 66 TelephonyManager telephonyManager = (TelephonyManager) getContext().getSystemService( 70 telephonyManager.listen(phoneStateListener, PhoneStateListener.LISTEN_CELL_LOCATION); 71 fail("TelephonyManager.listen(LISTEN_CELL_LOCATION) did not" + 78 telephonyManager.getCellLocation(); 79 fail("TelephonyManager.getCellLocation did not throw SecurityException as expected"); 93 TelephonyManager telephonyManager = (TelephonyManager) getContext().getSystemService [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
PhoneCapabilityTester.java | 28 import android.telephony.TelephonyManager; 65 final TelephonyManager telephonyManager = new TelephonyManager(context); 66 sIsPhone = telephonyManager.isVoiceCapable();
|
/packages/services/Telephony/src/com/android/phone/ |
OtaStartupReceiver.java | 31 import android.telephony.TelephonyManager; 121 TelephonyManager telephonyManager = (TelephonyManager)context.getSystemService( 123 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_OTASP_CHANGED);
|
OtaUtils.java | 40 import android.telephony.TelephonyManager; [all...] |
CallNotifier.java | 51 import android.telephony.TelephonyManager; 213 TelephonyManager telephonyManager = (TelephonyManager)app.getSystemService( 215 telephonyManager.listen(mPhoneStateListener, 424 // via some future TelephonyManager API. [all...] |
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/ |
DialogSmsDisplayTests.java | 34 import android.telephony.TelephonyManager; 77 TelephonyManager telephonyManager = ((TelephonyManager)dialogSmsDisplayActivity 79 mHasSms = true; //telephonyManager.isSmsCapable(); 80 mMyNumber = telephonyManager.getLine1Number();
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
Util.java | 41 import android.telephony.TelephonyManager; 466 TelephonyManager telephonyManager = (TelephonyManager) 468 if (telephonyManager == null) { 474 Method sIsVoiceCapable = TelephonyManager.class.getMethod( 478 Object retobj = sIsVoiceCapable.invoke(telephonyManager, arglist);
|
/packages/apps/Camera/src/com/android/camera/ |
Util.java | 42 import android.telephony.TelephonyManager; 521 TelephonyManager telephonyManager = (TelephonyManager) 523 if (telephonyManager == null) { 529 Method sIsVoiceCapable = TelephonyManager.class.getMethod( 533 Object retobj = sIsVoiceCapable.invoke(telephonyManager, arglist);
|
/packages/apps/Camera2/src/com/android/camera/util/ |
CameraUtil.java | 42 import android.telephony.TelephonyManager; 578 TelephonyManager telephonyManager = (TelephonyManager) 580 if (telephonyManager == null) { 586 Method sIsVoiceCapable = TelephonyManager.class.getMethod( 590 Object retobj = sIsVoiceCapable.invoke(telephonyManager, arglist); [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
GlobalActions.java | 53 import android.telephony.TelephonyManager; 125 TelephonyManager telephonyManager = 126 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 127 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); [all...] |
/packages/apps/Contacts/src/com/android/contacts/detail/ |
ContactDetailFragment.java | 45 import android.telephony.TelephonyManager; [all...] |