HomeSort by relevance Sort by last modified time
    Searched defs:telephonyManager (Results 1 - 15 of 15) sorted by null

  /cts/hostsidetests/appsecurity/test-apps/DeviceIdentifiers/src/android/appsecurity/cts/deviceids/
DeviceIdentifierAppOpTest.java 24 import android.telephony.TelephonyManager;
46 TelephonyManager telephonyManager =
47 (TelephonyManager) InstrumentationRegistry.getContext().getSystemService(
51 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager,
52 (tm) -> tm.getDeviceId()), telephonyManager.getDeviceId());
54 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager,
55 (tm) -> tm.getImei()), telephonyManager.getImei());
57 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager,
58 (tm) -> tm.getMeid()), telephonyManager.getMeid())
    [all...]
  /cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DeviceIdentifiersTest.java 20 import android.telephony.TelephonyManager;
38 // identifiers. However since the TelephonyManager methods can return null this method
41 TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService(
45 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager,
46 (tm) -> tm.getDeviceId()), telephonyManager.getDeviceId());
48 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager,
49 (tm) -> tm.getImei()), telephonyManager.getImei());
51 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager,
    [all...]
  /cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DeviceIdentifiersTest.java 20 import android.telephony.TelephonyManager;
38 // identifiers. However since the TelephonyManager methods can return null this method
41 TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService(
45 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager,
46 (tm) -> tm.getDeviceId()), telephonyManager.getDeviceId());
48 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager,
49 (tm) -> tm.getImei()), telephonyManager.getImei());
51 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager,
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowTelephonyManagerTest.java 13 import static android.telephony.TelephonyManager.CALL_STATE_IDLE;
14 import static android.telephony.TelephonyManager.CALL_STATE_OFFHOOK;
15 import static android.telephony.TelephonyManager.CALL_STATE_RINGING;
36 import android.telephony.TelephonyManager;
49 private TelephonyManager telephonyManager;
54 telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERVICE);
55 shadowTelephonyManager = shadowOf(telephonyManager);
61 telephonyManager.listen(listener, LISTEN_CALL_STATE | LISTEN_CELL_INFO | LISTEN_CELL_LOCATION)
    [all...]
  /cts/tests/tests/location/src/android/location/cts/
EmergencyCallMessageTest.java 14 import android.telephony.TelephonyManager;
44 private TelephonyManager mTelephonyManager;
53 (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);
79 final TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(
81 String phoneNumber = telephonyManager.getLine1Number();
GnssTtffTests.java 7 import android.telephony.TelephonyManager;
101 TelephonyManager telephonyManager = (TelephonyManager) getContext().getApplicationContext()
103 if (!telephonyManager.isDataEnabled()) {
  /cts/tests/tests/permission2/src/android/permission2/cts/
NoLocationPermissionTest.java 31 import android.telephony.TelephonyManager;
79 TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService(
91 telephonyManager.listen(phoneStateListener, PhoneStateListener.LISTEN_CELL_LOCATION);
97 CellLocation cellLocation = telephonyManager.getCellLocation();
118 TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService(
121 List<CellInfo> cellInfos = telephonyManager.getAllCellInfo()
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/
ManifestTestListAdapter.java 26 import android.telephony.TelephonyManager;
334 TelephonyManager telephonyManager = mContext.getSystemService(
335 TelephonyManager.class);
336 if (!telephonyManager.isVoiceCapable()) {
  /cts/tests/tests/provider/src/android/provider/cts/
BlockedNumberContractTest.java 29 import android.telephony.TelephonyManager;
81 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class);
83 if (telephonyManager.checkCarrierPrivilegesForPackage(mContext.getPackageName())
84 == TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS) {
  /cts/tests/tests/telephony/current/src/android/telephony/cts/
MmsTest.java 35 import android.telephony.TelephonyManager;
94 private TelephonyManager mTelephonyManager;
173 (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);
315 final TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(
317 return telephonyManager.getLine1Number();
TelephonyManagerTest.java 56 import android.telephony.TelephonyManager;
95 private TelephonyManager mTelephonyManager;
114 TelephonyManager.NETWORK_TYPE_UNKNOWN,
115 TelephonyManager.NETWORK_TYPE_GPRS,
116 TelephonyManager.NETWORK_TYPE_EDGE,
117 TelephonyManager.NETWORK_TYPE_UMTS,
118 TelephonyManager.NETWORK_TYPE_CDMA,
119 TelephonyManager.NETWORK_TYPE_EVDO_0,
120 TelephonyManager.NETWORK_TYPE_EVDO_A,
121 TelephonyManager.NETWORK_TYPE_1xRTT
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
ClientTest.java 67 import android.telephony.TelephonyManager;
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/os/
MmsMessagingDemo.java 49 import android.telephony.TelephonyManager;
454 final TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(
456 return telephonyManager.getLine1Number();
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
MultiNetworkConnectivityTestActivity.java 55 import android.telephony.TelephonyManager;
324 private boolean isMobileDataEnabled(TelephonyManager telephonyManager) {
326 return telephonyManager.isDataEnabled();
338 TelephonyManager telephonyManager =
339 (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
340 if (telephonyManager == null) {
344 } else if (!isMobileDataEnabled(telephonyManager)) {
    [all...]
  /cts/tests/tests/carrierapi/src/android/carrierapi/cts/
CarrierApiTest.java 52 import android.telephony.TelephonyManager;
77 private TelephonyManager mTelephonyManager;
142 mTelephonyManager = (TelephonyManager)
201 return mTelephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE &&
202 mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT;
242 assertEquals(TelephonyManager.UPDATE_AVAILABLE_NETWORKS_SUCCESS, value);
246 assertEquals(TelephonyManager.UPDATE_AVAILABLE_NETWORKS_INVALID_ARGUMENTS, value);
250 assertEquals(TelephonyManager.SET_OPPORTUNISTIC_SUB_SUCCESS, value);
259 TelephonyManager telephonyManager = mTelephonyManager.createForSubscriptionId
    [all...]

Completed in 1459 milliseconds