Home
last modified time | relevance | path

Searched refs:mockSubInfo (Results 1 – 7 of 7) sorted by relevance

/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastSettingsTest.java235 SubscriptionInfo mockSubInfo = mock(SubscriptionInfo.class); in testGetResources() local
236 doReturn(mockSubInfo).when(mockSubManager).getActiveSubscriptionInfo(anyInt()); in testGetResources()
237 doReturn(0).when(mockSubInfo).getMcc(); in testGetResources()
238 doReturn(0).when(mockSubInfo).getMnc(); in testGetResources()
249 doReturn(123).when(mockSubInfo).getMcc(); in testGetResources()
250 doReturn(456).when(mockSubInfo).getMnc(); in testGetResources()
339 SubscriptionInfo mockSubInfo = mock(SubscriptionInfo.class); in testDisabledExtremeToggle() local
340 doReturn(mockSubInfo).when(mockSubManager).getActiveSubscriptionInfo(anyInt()); in testDisabledExtremeToggle()
461 SubscriptionInfo mockSubInfo = mock(SubscriptionInfo.class); in setSubscriptionManager() local
462 doReturn(mockSubInfo).when(mockSubManager).getActiveSubscriptionInfo(anyInt()); in setSubscriptionManager()
DCellBroadcastResourcesTest.java405 SubscriptionInfo mockSubInfo = mock(SubscriptionInfo.class); in mockSubscriptionManager() local
406 doReturn(mockSubInfo).when(mockSubManager).getActiveSubscriptionInfo(anyInt()); in mockSubscriptionManager()
DCellBroadcastAlertDialogTest.java154 SubscriptionInfo mockSubInfo = mock(SubscriptionInfo.class); in setUp() local
155 doReturn(mockSubInfo).when(mockSubManager).getActiveSubscriptionInfo(anyInt()); in setUp()
DCellBroadcastReceiverTest.java717 SubscriptionInfo mockSubInfo = mock(SubscriptionInfo.class); in testResourceOnRoamingState() local
718 doReturn(mockSubInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in testResourceOnRoamingState()
DCellBroadcastListActivityTest.java136 SubscriptionInfo mockSubInfo = mock(SubscriptionInfo.class); in setUp() local
137 doReturn(mockSubInfo).when(mockSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in setUp()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastHandlerTest.java444 SubscriptionInfo mockSubInfo = mock(SubscriptionInfo.class); in testGetResources() local
445 doReturn(mockSubInfo).when(mMockedSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in testGetResources()
446 doReturn(001).when(mockSubInfo).getMcc(); in testGetResources()
447 doReturn(01).when(mockSubInfo).getMnc(); in testGetResources()
/packages/services/Iwlan/test/com/google/android/iwlan/
DErrorPolicyManagerTest.java173 SubscriptionInfo mockSubInfo = mock(SubscriptionInfo.class); in setUp() local
174 doReturn(mockSubInfo) in setUp()
177 doReturn(DEFAULT_SUBID).when(mockSubInfo).getSubscriptionId(); in setUp()