Home
last modified time | relevance | path

Searched refs:mCallback2 (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarVolumeCallbackHandlerTest.java40 private TestCarVolumeCallback mCallback2; field in CarVolumeCallbackHandlerTest
48 mCallback2 = new TestCarVolumeCallback(); in setUp()
49 mHandler.registerCallback(mCallback2.asBinder(), uid, true); in setUp()
56 mHandler.unregisterCallback(mCallback2.asBinder(), uid); in tearDown()
74 .that(mCallback2.receivedGroupVolumeChanged()) in onVolumeGroupChange_callsAllRegisteredCallbacks()
77 .that(mCallback2.mZoneId).isEqualTo(ZONE_ID); in onVolumeGroupChange_callsAllRegisteredCallbacks()
79 .that(mCallback2.mGroupId).isEqualTo(GROUP_ID); in onVolumeGroupChange_callsAllRegisteredCallbacks()
81 .that(mCallback2.mFlags).isEqualTo(FLAGS); in onVolumeGroupChange_callsAllRegisteredCallbacks()
94 .that(mCallback2.receivedGroupVolumeChanged()) in onVolumeGroupChange_doesNotCallUnregisteredCallbacks()
113 mHandler.unregisterCallback(mCallback2.asBinder(), uid); in onVolumeGroupChange_callReprioritizedCallback()
[all …]
/packages/services/Telephony/tests/src/com/android/phone/
DImsStateCallbackControllerTest.java121 @Mock private IImsStateCallback mCallback2; field in ImsStateCallbackControllerTest
152 when(mCallback2.asBinder()).thenReturn(mBinder2); in setUp()
484 .registerImsStateCallback(SLOT_1_SUB_ID, FEATURE_RCS, mCallback2, "callback2"); in testCarrierConfigurationChanged()
488 assertTrue(mImsStateCallbackController.isRegistered(mCallback2)); in testCarrierConfigurationChanged()
493 verify(mCallback2, times(1)).onUnavailable(REASON_IMS_SERVICE_DISCONNECTED); in testCarrierConfigurationChanged()
497 verify(mCallback2, times(0)).onUnavailable(REASON_NO_IMS_SERVICE_CONFIGURED); in testCarrierConfigurationChanged()
502 verify(mCallback2, times(1)).onUnavailable(anyInt()); in testCarrierConfigurationChanged()
511 verify(mCallback2, times(1)).onUnavailable(anyInt()); in testCarrierConfigurationChanged()
520 verify(mCallback2, times(0)).onUnavailable(REASON_NO_IMS_SERVICE_CONFIGURED); in testCarrierConfigurationChanged()
525 verify(mCallback2, times(1)).onUnavailable(anyInt()); in testCarrierConfigurationChanged()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
DAppsStorageStatsManagerTest.java58 private AppsStorageStatsManager.Callback mCallback2; field in AppsStorageStatsManagerTest
80 mAppsStorageStatsManager.registerListener(mCallback2); in callback_onLoadFinished_listenerOnDataLoadedCalled()
89 verify(mCallback2).onDataLoaded(storageStats, false, false); in callback_onLoadFinished_listenerOnDataLoadedCalled()
95 mAppsStorageStatsManager.registerListener(mCallback2); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
96 mAppsStorageStatsManager.unregisterListener(mCallback2); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
104 verify(mCallback2, never()).onDataLoaded(storageStats, false, false); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
110 mAppsStorageStatsManager.registerListener(mCallback2); in callback_notLoaded_listenerOnDataLoadedCalled()
117 verify(mCallback2, never()).onDataLoaded(storageStats, false, false); in callback_notLoaded_listenerOnDataLoadedCalled()
127 mAppsStorageStatsManager.registerListener(mCallback2); in callback_cachedCleared_listenerOnDataLoadedCalled()
134 verify(mCallback2, never()).onDataLoaded(storageStats, true, false); in callback_cachedCleared_listenerOnDataLoadedCalled()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DAppSpecificDataUsageManagerTest.java59 private AppSpecificDataUsageManager.AppSpecificDataLoaderCallback mCallback2; field in AppSpecificDataUsageManagerTest
80 mAppSpecificDataUsageManager.registerListener(mCallback2); in callback_onLoadFinished_listenerOnDataLoadedCalled()
87 verify(mCallback2).onDataLoaded(dataList); in callback_onLoadFinished_listenerOnDataLoadedCalled()
93 mAppSpecificDataUsageManager.registerListener(mCallback2); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
94 mAppSpecificDataUsageManager.unregisterListener(mCallback2); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
101 verify(mCallback2, never()).onDataLoaded(dataList); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
107 mAppSpecificDataUsageManager.registerListener(mCallback2); in callback_notLoaded_listenerOnDataLoadedNotCalled()
108 mAppSpecificDataUsageManager.unregisterListener(mCallback2); in callback_notLoaded_listenerOnDataLoadedNotCalled()
113 verify(mCallback2, never()).onDataLoaded(dataList); in callback_notLoaded_listenerOnDataLoadedNotCalled()
DDataUsageCycleManagerTest.java57 private DataUsageCycleManager.DataUsageCycleLoaderCallback mCallback2; field in DataUsageCycleManagerTest
77 mDataUsageCycleManager.registerListener(mCallback2); in callback_onLoadFinished_listenerOnDataLoadedCalled()
84 verify(mCallback2).onDataLoaded(dataList); in callback_onLoadFinished_listenerOnDataLoadedCalled()
90 mDataUsageCycleManager.registerListener(mCallback2); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
91 mDataUsageCycleManager.unregisterListener(mCallback2); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
98 verify(mCallback2, never()).onDataLoaded(dataList); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
104 mDataUsageCycleManager.registerListener(mCallback2); in callback_notLoaded_listenerOnDataLoadedNotCalled()
105 mDataUsageCycleManager.unregisterListener(mCallback2); in callback_notLoaded_listenerOnDataLoadedNotCalled()
110 verify(mCallback2, never()).onDataLoaded(dataList); in callback_notLoaded_listenerOnDataLoadedNotCalled()
DAppsNetworkStatsManagerTest.java56 private AppsNetworkStatsManager.Callback mCallback2; field in AppsNetworkStatsManagerTest
81 mAppsNetworkStatsManager.registerListener(mCallback2); in callback_onLoadFinished_listenerOnDataLoadedCalled()
88 verify(mCallback2).onDataLoaded(eq(networkStats), any()); in callback_onLoadFinished_listenerOnDataLoadedCalled()
94 mAppsNetworkStatsManager.registerListener(mCallback2); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
95 mAppsNetworkStatsManager.unregisterListener(mCallback2); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
102 verify(mCallback2, never()).onDataLoaded(eq(networkStats), any()); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
108 mAppsNetworkStatsManager.registerListener(mCallback2); in callback_notLoaded_listenerOnDataLoadedNotCalled()
109 mAppsNetworkStatsManager.unregisterListener(mCallback2); in callback_notLoaded_listenerOnDataLoadedNotCalled()
112 verify(mCallback2, never()).onDataLoaded(any(), any()); in callback_notLoaded_listenerOnDataLoadedNotCalled()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProvisionerTest.java528 IProvisioningCallback mCallback2 = mock(IProvisioningCallback.class); in verifyProvisioningAbort() local
530 TEST_UID, mOsuProvider, mCallback2)); in verifyProvisioningAbort()
/packages/services/Car/tests/carservice_test/src/com/android/car/input/
DCarInputManagerTest.java217 private final CaptureCallback mCallback2 = new CaptureCallback("callback2"); field in CarInputManagerTest
446 new int[]{CarInputManager.INPUT_TYPE_CUSTOM_INPUT_EVENT}, 0, mCallback2); in testSwitchFromFullCaptureToPerTypeCapture()