Home
last modified time | relevance | path

Searched refs:telephonyManager (Results 1 – 2 of 2) 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);