Home
last modified time | relevance | path

Searched refs:listener2 (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/
DFakeFeatureFlagsTest.kt201 val listener2 = VerifyingListener() in multipleListenersForSingleFlag_allAreCalledWhenChanged() constant
203 flags.addListener(releasedFlag, listener2) in multipleListenersForSingleFlag_allAreCalledWhenChanged()
208 listener2.verifyInOrder(releasedFlag.name) in multipleListenersForSingleFlag_allAreCalledWhenChanged()
215 val listener2 = VerifyingListener() in multipleListenersForSingleFlag_removedListenerNotCalledAfterRemoval() constant
217 flags.addListener(releasedFlag, listener2) in multipleListenersForSingleFlag_removedListenerNotCalledAfterRemoval()
220 flags.removeListener(listener2) in multipleListenersForSingleFlag_removedListenerNotCalledAfterRemoval()
224 listener2.verifyInOrder(releasedFlag.name) in multipleListenersForSingleFlag_removedListenerNotCalledAfterRemoval()
DFlagManagerTest.kt61 val listener2 = mock<FlagListenable.Listener>() in <lambda>() constant
74 mFlagManager.addListener(ReleasedFlag("2", "test"), listener2) in <lambda>()
82 mFlagManager.removeListener(listener2) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotifInflationErrorManagerTest.kt42 private val listener2 = mock(NotifInflationErrorListener::class.java) constant
78 manager.addInflationErrorListener(listener2) in testNotifiesListeners()
82 verify(listener2).onNotifInflationError(bar, barException) in testNotifiesListeners()
87 verify(listener2).onNotifInflationErrorCleared(foo) in testNotifiesListeners()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImplTest.kt63 val listener2 = mock(ConfigurationListener::class.java) in testRemoveListenerDuringCallback() constant
64 mConfigurationController.addCallback(listener2) in testRemoveListenerDuringCallback()
67 mConfigurationController.removeCallback(listener2) in testRemoveListenerDuringCallback()
73 verify(listener2, never()).onThemeChanged() in testRemoveListenerDuringCallback()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSensitiveNotificationProtectionControllerTest.kt95 @Mock private lateinit var listener2: Runnable variable in com.android.systemui.statusbar.policy.SensitiveNotificationProtectionControllerTest
196 controller.registerSensitiveStateListener(listener2) in registerSensitiveStateListener_multipleListeners()
202 verify(listener2, times(2)).run() in registerSensitiveStateListener_multipleListeners()
237 controller.registerSensitiveStateListener(listener2) in unregisterSensitiveStateListener_multipleListeners()
244 verify(listener2, times(2)).run() in unregisterSensitiveStateListener_multipleListeners()
248 controller.unregisterSensitiveStateListener(listener2) in unregisterSensitiveStateListener_multipleListeners()
254 verifyNoMoreInteractions(listener2) in unregisterSensitiveStateListener_multipleListeners()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
DLocationProviderManagerTest.java950 ILocationListener listener2 = createMockLocationListener(); in testLocationMonitoring_multipleIdentities() local
953 mManager.registerLocationRequest(request2, identity2, PERMISSION_FINE, listener2); in testLocationMonitoring_multipleIdentities()
960 mManager.unregisterLocationRequest(listener2); in testLocationMonitoring_multipleIdentities()
990 ILocationListener listener2 = createMockLocationListener(); in testProviderRequest() local
995 mManager.registerLocationRequest(request2, IDENTITY, PERMISSION_FINE, listener2); in testProviderRequest()
1011 mManager.unregisterLocationRequest(listener2); in testProviderRequest()
1116 ILocationListener listener2 = createMockLocationListener(); in testProviderRequest_IgnoreLocationSettings() local
1121 mManager.registerLocationRequest(request2, IDENTITY, PERMISSION_FINE, listener2); in testProviderRequest_IgnoreLocationSettings()
1140 ILocationListener listener2 = createMockLocationListener(); in testProviderRequest_IgnoreLocationSettings_ProviderDisabled() local
1145 mManager.registerLocationRequest(request2, IDENTITY, PERMISSION_FINE, listener2); in testProviderRequest_IgnoreLocationSettings_ProviderDisabled()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DUserVisibilityMediatorVisibleBackgroundUserTestCase.java167 AsyncUserVisibilityListener listener2 = addListenerForEvents(onInvisible(USER_ID)); in testStartVisibleBgUser_onSecondaryDisplay_displayAvailable() local
173 listener2.verify(); in testStartVisibleBgUser_onSecondaryDisplay_displayAvailable()
269 AsyncUserVisibilityListener listener2 = addListenerForEvents(onInvisible(USER_ID)); in testStartVisibleBgUser_onSecondaryDisplay_userAlreadyAssigned() local
275 listener2.verify(); in testStartVisibleBgUser_onSecondaryDisplay_userAlreadyAssigned()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/
DPeopleServiceTest.java217 TestableConversationListener listener2 = new TestableConversationListener(); in testUnregisterConversationListener() local
219 listener2); in testUnregisterConversationListener()
229 listener2); in testUnregisterConversationListener()
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_smoke_test.cpp586 sp<DumpstateListener> listener2(new DumpstateListener(dup(fileno(stdout)))); in TEST_F() local
590 listener2, true, false); in TEST_F()
592 WaitTillExecutionComplete(listener2.get()); in TEST_F()
593 EXPECT_EQ(listener2->getErrorCode(), in TEST_F()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/sysui/
DShellControllerTest.java301 TestConfigurationChangeListener listener2 = new TestConfigurationChangeListener(); in testMultipleConfigurationChangeListeners() local
303 mController.addConfigurationChangeListener(listener2); in testMultipleConfigurationChangeListeners()
309 assertTrue(listener2.configChanges == 1); in testMultipleConfigurationChangeListeners()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java1263 IOnProjectionStateChangedListener listener2 = mock(IOnProjectionStateChangedListener.class); in projectionStateChangedListener_calledForAnyRelevantStateChange() local
1264 when(listener2.asBinder()).thenReturn(mBinder); // Any binder will do. in projectionStateChangedListener_calledForAnyRelevantStateChange()
1266 mService.addOnProjectionStateChangedListener(listener2, in projectionStateChangedListener_calledForAnyRelevantStateChange()
1269 verify(listener2, atLeastOnce()).asBinder(); // Called twice during register. in projectionStateChangedListener_calledForAnyRelevantStateChange()
1272 verifyNoMoreInteractions(listener, listener2); in projectionStateChangedListener_calledForAnyRelevantStateChange()
1278 verify(listener2).onProjectionStateChanged(eq(fakeProjectionType), in projectionStateChangedListener_calledForAnyRelevantStateChange()
1284 verify(listener2).onProjectionStateChanged( in projectionStateChangedListener_calledForAnyRelevantStateChange()
1291 verify(listener2).onProjectionStateChanged(eq(otherFakeProjectionType), in projectionStateChangedListener_calledForAnyRelevantStateChange()
1297 verify(listener2).onProjectionStateChanged(eq(PROJECTION_TYPE_NONE), eq(List.of())); in projectionStateChangedListener_calledForAnyRelevantStateChange()
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java304 final RegisteredServicesCacheListener<V> listener2 = listener; in notifyListener() local
307 listener2.onServiceChanged(type, userId, removed); in notifyListener()
/frameworks/base/services/tests/servicestests/src/com/android/server/tv/tunerresourcemanager/
DTunerResourceManagerServiceTest.java882 TestResourcesReclaimListener listener2 = new TestResourcesReclaimListener(); in requestDemuxTest_ResourceReclaim() local
891 profile2, listener2, clientId1); in requestDemuxTest_ResourceReclaim()
941 assertThat(listener2.isReclaimed()).isTrue(); in requestDemuxTest_ResourceReclaim()
/frameworks/base/tests/Input/src/com/android/server/input/
DBatteryControllerTests.kt287 val listener2 = createMockListener() in testOneListenerPerProcess() constant
289 batteryController.registerBatteryListener(DEVICE_ID, listener2, PID) in testOneListenerPerProcess()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/
DTemporaryViewDisplayControllerTest.kt1099 val listener2 = registerListener() in multipleListeners_allNotified() constant
1107 assertThat(listener2.permanentlyRemovedIds).containsExactly(DEFAULT_ID) in multipleListeners_allNotified()