Home
last modified time | relevance | path

Searched refs:mMockSubscriptionManager (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DResetNetworkSubscriptionPreferenceControllerTest.java81 private SubscriptionManager mMockSubscriptionManager; field in ResetNetworkSubscriptionPreferenceControllerTest
95 .thenReturn(mMockSubscriptionManager); in setUp()
96 when(mMockSubscriptionManager.getActiveSubscriptionInfoList()).thenReturn(null); in setUp()
151 when(mMockSubscriptionManager.getActiveSubscriptionInfoList()) in refreshUi_noSubscriptions_hidesPreference()
161 when(mMockSubscriptionManager.getActiveSubscriptionInfoList()) in refreshUi_noSubscriptions_setsValue()
174 when(mMockSubscriptionManager.getActiveSubscriptionInfoList()) in refreshUi_oneSubscription_hidesPreference()
186 when(mMockSubscriptionManager.getActiveSubscriptionInfoList()) in refreshUi_oneSubscription_setsValue()
198 when(mMockSubscriptionManager.getActiveSubscriptionInfoList()) in refreshUi_multipleSubscriptions_showsPreference()
212 when(mMockSubscriptionManager.getActiveSubscriptionInfoList()) in refreshUi_multipleSubscriptions_populatesEntries()
229 when(mMockSubscriptionManager.getActiveSubscriptionInfoList()) in refreshUi_defaultSelection_fourthPriority_system()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientContentTest.java110 private SubscriptionManager mMockSubscriptionManager; field in MapClientContentTest
134 .thenReturn(mMockSubscriptionManager); in setUp()
136 when(mMockSubscriptionManager.getActiveSubscriptionInfoList()) in setUp()
152 verify(mMockSubscriptionManager).addSubscriptionInfoRecord(any(), any(), anyInt(), in testCreateMapClientContent()
164 verify(mMockSubscriptionManager).addSubscriptionInfoRecord(any(), any(), anyInt(), in testCleanDirtyDatabase()
178 verify(mMockSubscriptionManager).addSubscriptionInfoRecord(any(), any(), anyInt(), in testStoreTwoSMS()
198 verify(mMockSubscriptionManager).addSubscriptionInfoRecord(any(), any(), anyInt(), in testStoreTwoMMS()
216 verify(mMockSubscriptionManager).addSubscriptionInfoRecord(any(), any(), anyInt(), in testStoreOneSMSOneMMS()
234 verify(mMockSubscriptionManager).addSubscriptionInfoRecord(any(), any(), anyInt(), in testReadStatusChanged()
274 verify(mMockSubscriptionManager).addSubscriptionInfoRecord(any(), any(), anyInt(), in testMessageDeleted()
[all …]
DMapClientStateMachineTest.java102 private SubscriptionManager mMockSubscriptionManager; field in MapClientStateMachineTest
123 .thenReturn(mMockSubscriptionManager); in setUp()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/
DCoexManagerTest.java110 @Mock private SubscriptionManager mMockSubscriptionManager; field in CoexManagerTest
139 mMockDefaultTelephonyManager, mMockSubscriptionManager, mMockCarrierConfigManager, in createCoexManager()
185 when(mMockSubscriptionManager.getAvailableSubscriptionInfoList()) in setUp()
392 verify(mMockSubscriptionManager).addOnSubscriptionsChangedListener( in testTelephonyCallback_defaultAlgorithmEnabledXmlExists_registersWithTelephony()
429 verify(mMockSubscriptionManager).addOnSubscriptionsChangedListener( in testGetCoexUnsafeChannels_neighboringLte40_returns2gNeighboringChannels()
461 verify(mMockSubscriptionManager).addOnSubscriptionsChangedListener( in testGetCoexUnsafeChannels_neighboringLte46_returns5gNeighboringChannels()
494 verify(mMockSubscriptionManager).addOnSubscriptionsChangedListener( in testGetCoexUnsafeChannels_channel27065Example_returnsCorrectWifiChannels()
526 verify(mMockSubscriptionManager).addOnSubscriptionsChangedListener( in testGetCoexUnsafeChannels_channel3350Example_returnsCorrectWifiChannels()
558 verify(mMockSubscriptionManager).addOnSubscriptionsChangedListener( in testGetCoexUnsafeChannels_entire2gBandUnsafe_excludesDefault2gChannel()
586 verify(mMockSubscriptionManager).addOnSubscriptionsChangedListener( in testGetCoexUnsafeChannels_entire5gBandUnsafe_excludesDefault5gChannel()
[all …]
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTelephonyManagerTest.java53 private SubscriptionManager mMockSubscriptionManager; field in TelephonyManagerTest
76 return mMockSubscriptionManager;
86 mMockSubscriptionManager = mock(SubscriptionManager.class); in setUp()
89 .thenReturn(mMockSubscriptionManager); in setUp()
/packages/services/Telephony/tests/src/com/android/phone/
DSimPhonebookProviderTest.java92 private SubscriptionManager mMockSubscriptionManager; field in SimPhonebookProviderTest
111 mMockSubscriptionManager = spy( in setUp()
117 TestableSimPhonebookProvider.setup(mResolver, mMockSubscriptionManager, mIccPhoneBook); in setUp()
170 when(mMockSubscriptionManager.getActiveSubscriptionInfoList()).thenReturn( in query_entityFiles_noSim_returnsEmptyCursor()
296 TestableSimPhonebookProvider.setup(mResolver, mMockSubscriptionManager, mockIccPhoneBook); in query_simRecords_nullRecordList_returnsEmptyCursor()
1150 Mockito.reset(mMockSubscriptionManager); in subscriptionsChange_callsNotifyChange()
1159 mResolver, mMockSubscriptionManager, mIccPhoneBook, mockNotifier); in subscriptionsChange_callsNotifyChange()
1160 verify(mMockSubscriptionManager).addOnSubscriptionsChangedListener( in subscriptionsChange_callsNotifyChange()
1173 Mockito.reset(mMockSubscriptionManager); in insert_callsNotifyChange()
1180 mResolver, mMockSubscriptionManager, mIccPhoneBook, mockNotifier); in insert_callsNotifyChange()
[all …]
/packages/services/Iwlan/test/com/google/android/iwlan/
DIwlanNetworkServiceTest.java52 @Mock private SubscriptionManager mMockSubscriptionManager; field in IwlanNetworkServiceTest
75 .thenReturn(mMockSubscriptionManager); in setUp()
77 when(mMockSubscriptionManager.getActiveSubscriptionInfoForSimSlotIndex( in setUp()
83 .thenReturn(mMockSubscriptionManager); in setUp()
DIwlanEventListenerTest.java57 @Mock private SubscriptionManager mMockSubscriptionManager; field in IwlanEventListenerTest
90 .thenReturn(mMockSubscriptionManager); in setUp()
92 when(mMockSubscriptionManager.getActiveSubscriptionInfoForSimSlotIndex( in setUp()
DErrorPolicyManagerTest.java65 @Mock SubscriptionManager mMockSubscriptionManager; field in ErrorPolicyManagerTest
731 doReturn(mMockSubscriptionManager) in setupMockForCarrierConfig()
741 .when(mMockSubscriptionManager) in setupMockForCarrierConfig()
DIwlanDataServiceTest.java91 @Mock private SubscriptionManager mMockSubscriptionManager; field in IwlanDataServiceTest
184 .thenReturn(mMockSubscriptionManager); in setUp()
186 when(mMockSubscriptionManager.getActiveSubscriptionInfoForSimSlotIndex(anyInt())) in setUp()
/packages/services/Telephony/tests/src/com/android/
DTestContext.java57 @Mock SubscriptionManager mMockSubscriptionManager; field in TestContext
138 return mMockSubscriptionManager; in getSystemService()
/packages/services/Iwlan/test/com/google/android/iwlan/epdg/
DEpdgSelectorTest.java78 @Mock private SubscriptionManager mMockSubscriptionManager; field in EpdgSelectorTest
99 .thenReturn(mMockSubscriptionManager); in setUp()
101 when(mMockSubscriptionManager.getActiveSubscriptionInfoForSimSlotIndex(anyInt())) in setUp()
DEpdgTunnelManagerTest.java101 @Mock SubscriptionManager mMockSubscriptionManager; field in EpdgTunnelManagerTest
777 .thenReturn(mMockSubscriptionManager); in setupMockForGetConfig()
780 when(mMockSubscriptionManager.getActiveSubscriptionInfoForSimSlotIndex(DEFAULT_SLOT_INDEX)) in setupMockForGetConfig()