Home
last modified time | relevance | path

Searched refs:telephonyManager (Results 1 – 4 of 4) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowTelephonyManagerTest.java49 private TelephonyManager telephonyManager; field in ShadowTelephonyManagerTest
54 telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERVICE); in setUp()
55 shadowTelephonyManager = shadowOf(telephonyManager); in setUp()
61 telephonyManager.listen(listener, LISTEN_CALL_STATE | LISTEN_CELL_INFO | LISTEN_CELL_LOCATION); in testListenInit()
74 assertEquals(testId, telephonyManager.getDeviceId()); in shouldGiveDeviceId()
83 assertEquals("device in slot 1", telephonyManager.getDeviceId(1)); in shouldGiveDeviceIdForSlot()
84 assertEquals("device in slot 2", telephonyManager.getDeviceId(2)); in shouldGiveDeviceIdForSlot()
92 assertEquals(testImei, telephonyManager.getImei()); in getImei()
100 assertEquals(testMeid, telephonyManager.getMeid()); in getMeid()
106 assertEquals("SomeOperatorName", telephonyManager.getNetworkOperatorName()); in shouldGiveNetworkOperatorName()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowTelephonyManager.java560 PhoneAccountHandle handle, TelephonyManager telephonyManager) {
561 phoneAccountToTelephonyManagers.put(handle, telephonyManager);
575 int subscriptionId, TelephonyManager telephonyManager) {
576 subscriptionIdsToTelephonyManagers.put(subscriptionId, telephonyManager);
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/upstream/
DDefaultBandwidthMeterTest.java46 private TelephonyManager telephonyManager; field in DefaultBandwidthMeterTest
61 telephonyManager = in setUp()
64 Shadows.shadowOf(telephonyManager).setNetworkCountryIso(FAST_COUNTRY_ISO); in setUp()
565 Shadows.shadowOf(telephonyManager).setNetworkCountryIso(countryIso); in setNetworkCountryIso()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/
DUtil.java1954 TelephonyManager telephonyManager = in getCountryCode() local
1956 if (telephonyManager != null) { in getCountryCode()
1957 String countryCode = telephonyManager.getNetworkCountryIso(); in getCountryCode()