/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotifInflationErrorManagerTest.kt | 41 private val listener1 = mock(NotifInflationErrorListener::class.java) constant in com.android.systemui.statusbar.notification.row.NotifInflationErrorManagerTest 73 manager.addInflationErrorListener(listener1) in testNotifiesListeners() 76 verify(listener1).onNotifInflationError(foo, fooException) in testNotifiesListeners() 81 verify(listener1).onNotifInflationError(bar, barException) in testNotifiesListeners() 86 verify(listener1).onNotifInflationErrorCleared(foo) in testNotifiesListeners() 92 manager.addInflationErrorListener(listener1) in testClearUnknownEntry() 95 verify(listener1, never()).onNotifInflationErrorCleared(any()) in testClearUnknownEntry()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/ |
D | FlagManagerTest.kt | 60 val listener1 = mock<FlagListenable.Listener>() in <lambda>() constant 67 mFlagManager.addListener(ReleasedFlag("1", "test"), listener1) in <lambda>() 78 mFlagManager.removeListener(listener1) in <lambda>() 102 val listener1 = mock<FlagListenable.Listener>() in <lambda>() constant 104 mFlagManager.addListener(ReleasedFlag("1", "test"), listener1) in <lambda>() 111 verify(listener1).onFlagChanged(capture()) in <lambda>() 114 verifyNoMoreInteractions(listener1, listener10) in <lambda>() 121 verifyNoMoreInteractions(listener1, listener10) in <lambda>() 128 val listener1 = mock<FlagListenable.Listener>() in <lambda>() constant 130 mFlagManager.addListener(ReleasedFlag("1", "test"), listener1) in <lambda>() [all …]
|
D | FakeFeatureFlagsTest.kt | 200 val listener1 = VerifyingListener() in multipleListenersForSingleFlag_allAreCalledWhenChanged() constant 202 flags.addListener(releasedFlag, listener1) in multipleListenersForSingleFlag_allAreCalledWhenChanged() 207 listener1.verifyInOrder(releasedFlag.name) in multipleListenersForSingleFlag_allAreCalledWhenChanged() 214 val listener1 = VerifyingListener() in multipleListenersForSingleFlag_removedListenerNotCalledAfterRemoval() constant 216 flags.addListener(releasedFlag, listener1) in multipleListenersForSingleFlag_removedListenerNotCalledAfterRemoval() 223 listener1.verifyInOrder(releasedFlag.name, releasedFlag.name) in multipleListenersForSingleFlag_removedListenerNotCalledAfterRemoval()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SensitiveNotificationProtectionControllerTest.kt | 94 @Mock private lateinit var listener1: Runnable variable in com.android.systemui.statusbar.policy.SensitiveNotificationProtectionControllerTest 185 controller.registerSensitiveStateListener(listener1) in registerSensitiveStateListener_singleListener() 190 verify(listener1, times(2)).run() in registerSensitiveStateListener_singleListener() 195 controller.registerSensitiveStateListener(listener1) in registerSensitiveStateListener_multipleListeners() 201 verify(listener1, times(2)).run() in registerSensitiveStateListener_multipleListeners() 209 controller.registerSensitiveStateListener(listener1) in registerSensitiveStateListener_afterProjectionActive() 210 verifyZeroInteractions(listener1) in registerSensitiveStateListener_afterProjectionActive() 214 verify(listener1).run() in registerSensitiveStateListener_afterProjectionActive() 219 controller.registerSensitiveStateListener(listener1) in unregisterSensitiveStateListener_singleListener() 224 verify(listener1, times(2)).run() in unregisterSensitiveStateListener_singleListener() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/ |
D | LocationProviderManagerTest.java | 945 ILocationListener listener1 = createMockLocationListener(); in testLocationMonitoring_multipleIdentities() local 948 mManager.registerLocationRequest(request1, identity1, PERMISSION_FINE, listener1); in testLocationMonitoring_multipleIdentities() 967 mManager.unregisterLocationRequest(listener1); in testLocationMonitoring_multipleIdentities() 979 ILocationListener listener1 = createMockLocationListener(); in testProviderRequest() local 982 mManager.registerLocationRequest(request1, IDENTITY, PERMISSION_FINE, listener1); in testProviderRequest() 1003 mManager.unregisterLocationRequest(listener1); in testProviderRequest() 1020 ILocationListener listener1 = createMockLocationListener(); in testProviderRequest_DelayedRequest() local 1024 mManager.registerLocationRequest(request1, IDENTITY, PERMISSION_FINE, listener1); in testProviderRequest_DelayedRequest() 1026 verify(listener1).onLocationChanged(any(List.class), in testProviderRequest_DelayedRequest() 1040 ILocationListener listener1 = createMockLocationListener(); in testProviderRequest_DelayedRequest_Remove() local [all …]
|
/frameworks/native/cmds/dumpstate/tests/ |
D | dumpstate_smoke_test.cpp | 577 sp<DumpstateListener> listener1(new DumpstateListener(dup(fileno(stdout)))); in TEST_F() local 581 Dumpstate::BugreportMode::BUGREPORT_INTERACTIVE, flags, listener1, in TEST_F() 597 WaitTillExecutionComplete(listener1.get()); in TEST_F() 602 listener1->getErrorCode() == IDumpstateListener::BUGREPORT_ERROR_USER_DENIED_CONSENT || in TEST_F() 603 listener1->getErrorCode() == IDumpstateListener::BUGREPORT_ERROR_USER_CONSENT_TIMED_OUT); in TEST_F()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/ |
D | PeopleServiceTest.java | 214 TestableConversationListener listener1 = new TestableConversationListener(); in testUnregisterConversationListener() local 216 listener1); in testUnregisterConversationListener() 234 listener1); in testUnregisterConversationListener()
|
/frameworks/base/services/companion/java/com/android/server/companion/transport/ |
D | CompanionTransportManager.java | 90 mTransportsListeners.broadcast(listener1 -> { in addListener() 93 if (listener1 == listener) { in addListener()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/tv/tunerresourcemanager/ |
D | TunerResourceManagerServiceTest.java | 881 TestResourcesReclaimListener listener1 = new TestResourcesReclaimListener(); in requestDemuxTest_ResourceReclaim() local 888 profile1, listener1, clientId1); in requestDemuxTest_ResourceReclaim() 933 assertThat(listener1.isReclaimed()).isFalse(); in requestDemuxTest_ResourceReclaim() 940 assertThat(listener1.isReclaimed()).isFalse(); in requestDemuxTest_ResourceReclaim()
|
/frameworks/base/tests/Input/src/com/android/server/input/ |
D | BatteryControllerTests.kt | 282 val listener1 = createMockListener() in testOneListenerPerProcess() constant 283 batteryController.registerBatteryListener(DEVICE_ID, listener1, PID) in testOneListenerPerProcess() 284 verify(listener1.asBinder()).linkToDeath(notNull(), anyInt()) in testOneListenerPerProcess()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/ |
D | BiometricSchedulerTest.java | 234 final ClientMonitorCallbackConverter listener1 = mock(ClientMonitorCallbackConverter.class); in testRemovesOnlyBiometricPromptOperation_whenNullHal() local 237 mToken, listener1, mBiometricContext); in testRemovesOnlyBiometricPromptOperation_whenNullHal() 260 verify(listener1).onError(eq(TEST_SENSOR_ID), anyInt(), in testRemovesOnlyBiometricPromptOperation_whenNullHal()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/ |
D | TemporaryViewDisplayControllerTest.kt | 1098 val listener1 = registerListener() in multipleListeners_allNotified() constant 1106 assertThat(listener1.permanentlyRemovedIds).containsExactly(DEFAULT_ID) in multipleListeners_allNotified()
|