Home
last modified time | relevance | path

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

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/
H A DFakeFeatureFlagsTest.kt201 val listener2 = VerifyingListener() regex
203 flags.addListener(releasedFlag, listener2)
208 listener2.verifyInOrder(releasedFlag.name)
215 val listener2 = VerifyingListener() regex
217 flags.addListener(releasedFlag, listener2)
220 flags.removeListener(listener2)
224 listener2.verifyInOrder(releasedFlag.name)
H A DFlagManagerTest.kt61 val listener2 = mock<FlagListenable.Listener>() regex
74 mFlagManager.addListener(ReleasedFlag("2", "test"), listener2)
82 mFlagManager.removeListener(listener2)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
H A DNotifInflationErrorManagerTest.kt42 private val listener2 = mock(NotifInflationErrorListener::class.java) regex
78 manager.addInflationErrorListener(listener2)
82 verify(listener2).onNotifInflationError(bar, barException)
87 verify(listener2).onNotifInflationErrorCleared(foo)
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
H A DLocationProviderManagerTest.java932 ILocationListener listener2 = createMockLocationListener(); in testLocationMonitoring_multipleIdentities() local
942 mManager.unregisterLocationRequest(listener2); in testLocationMonitoring_multipleIdentities()
972 ILocationListener listener2 = createMockLocationListener(); in testProviderRequest() local
993 mManager.unregisterLocationRequest(listener2); in testProviderRequest()
1098 ILocationListener listener2 = createMockLocationListener(); in testProviderRequest_IgnoreLocationSettings() local
1122 ILocationListener listener2 = createMockLocationListener(); in testProviderRequest_IgnoreLocationSettings_ProviderDisabled() local
1197 ILocationListener listener2 = createMockLocationListener(); in testProviderRequest_AdasGnssBypass() local
1226 ILocationListener listener2 = createMockLocationListener(); in testProviderRequest_AdasGnssBypass_ProviderDisabled() local
1262 ILocationListener listener2 = createMockLocationListener(); in testProviderRequest_AdasGnssBypass_ProviderDisabled_AdasDisabled() local
1302 ILocationListener listener2 = createMockLocationListener(); in testQueryPackageReset() local
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DConfigurationControllerImplTest.kt63 val listener2 = mock(ConfigurationListener::class.java) regex
64 mConfigurationController.addCallback(listener2)
67 mConfigurationController.removeCallback(listener2)
73 verify(listener2, never()).onThemeChanged()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
H A DUserVisibilityMediatorVisibleBackgroundUserTestCase.java166 AsyncUserVisibilityListener listener2 = addListenerForEvents(onInvisible(USER_ID)); in testStartVisibleBgUser_onSecondaryDisplay_displayAvailable() local
172 listener2.verify(); in testStartVisibleBgUser_onSecondaryDisplay_displayAvailable()
268 AsyncUserVisibilityListener listener2 = addListenerForEvents(onInvisible(USER_ID)); in testStartVisibleBgUser_onSecondaryDisplay_userAlreadyAssigned() local
274 listener2.verify(); in testStartVisibleBgUser_onSecondaryDisplay_userAlreadyAssigned()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/people/
H A DPeopleServiceTest.java196 TestableConversationListener listener2 = new TestableConversationListener(); in testUnregisterConversationListener() local
198 listener2); in testUnregisterConversationListener()
207 listener2); in testUnregisterConversationListener()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/sysui/
H A DShellControllerTest.java256 TestConfigurationChangeListener listener2 = new TestConfigurationChangeListener(); in testMultipleConfigurationChangeListeners() local
258 mController.addConfigurationChangeListener(listener2); in testMultipleConfigurationChangeListeners()
264 assertTrue(listener2.configChanges == 1); in testMultipleConfigurationChangeListeners()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/
H A DUiModeManagerServiceTest.java1210 IOnProjectionStateChangedListener listener2 = mock(IOnProjectionStateChangedListener.class); in projectionStateChangedListener_calledForAnyRelevantStateChange() local
1211 when(listener2.asBinder()).thenReturn(mBinder); // Any binder will do. in projectionStateChangedListener_calledForAnyRelevantStateChange()
1213 mService.addOnProjectionStateChangedListener(listener2, in projectionStateChangedListener_calledForAnyRelevantStateChange()
1216 verify(listener2, atLeastOnce()).asBinder(); // Called twice during register. in projectionStateChangedListener_calledForAnyRelevantStateChange()
1219 verifyNoMoreInteractions(listener, listener2); in projectionStateChangedListener_calledForAnyRelevantStateChange()
1225 verify(listener2).onProjectionStateChanged(eq(fakeProjectionType), in projectionStateChangedListener_calledForAnyRelevantStateChange()
1231 verify(listener2).onProjectionStateChanged( in projectionStateChangedListener_calledForAnyRelevantStateChange()
1238 verify(listener2).onProjectionStateChanged(eq(otherFakeProjectionType), in projectionStateChangedListener_calledForAnyRelevantStateChange()
1244 verify(listener2).onProjectionStateChanged(eq(PROJECTION_TYPE_NONE), eq(List.of())); in projectionStateChangedListener_calledForAnyRelevantStateChange()
/aosp14/frameworks/base/core/java/android/content/pm/
H A DRegisteredServicesCache.java304 final RegisteredServicesCacheListener<V> listener2 = listener; in notifyListener() local
307 listener2.onServiceChanged(type, userId, removed); in notifyListener()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/tv/tunerresourcemanager/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/
H A DTemporaryViewDisplayControllerTest.kt1099 val listener2 = registerListener() regex
1107 assertThat(listener2.permanentlyRemovedIds).containsExactly(DEFAULT_ID)
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/input/
H A DBatteryControllerTests.kt284 val listener2 = createMockListener() regex
286 batteryController.registerBatteryListener(DEVICE_ID, listener2, PID)