Searched refs:listener3 (Results 1 – 6 of 6) sorted by relevance
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarSensorManagerTest.java | 337 SensorListener listener3 = new SensorListener(); in testEventsWithMultipleListeners() local 347 mCarSensorManager.registerListener(listener3, in testEventsWithMultipleListeners() 358 listener3.waitForSensorChange(); in testEventsWithMultipleListeners() 361 listener3.reset(); in testEventsWithMultipleListeners() 372 assertTrue(listener3.waitForSensorChange(1001L)); in testEventsWithMultipleListeners() 379 assertEquals(listener3.getLastEvent().sensorType, in testEventsWithMultipleListeners() 391 data = listener3.getLastEvent().getParkingBrakeData(data); in testEventsWithMultipleListeners() 403 listener3.reset(); in testEventsWithMultipleListeners() 412 assertTrue(listener3.waitForSensorChange(2001)); in testEventsWithMultipleListeners() 419 assertEquals(listener3.getLastEvent().sensorType, in testEventsWithMultipleListeners() [all …]
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/managers/ |
D | ListenerMultiplexerTest.java | 155 Runnable listener3 = mock(Runnable.class); in testMergeMultiple() local 170 verify(listener3, never()).run(); in testMergeMultiple() 183 verify(listener3, never()).run(); in testMergeMultiple() 185 multiplexer.addListener(binder3, listener3, value3); in testMergeMultiple() 196 verify(listener3, times(1)).run(); in testMergeMultiple() 209 verify(listener3, times(2)).run(); in testMergeMultiple() 222 verify(listener3, times(2)).run(); in testMergeMultiple() 235 verify(listener3, times(2)).run(); in testMergeMultiple()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUserManagerTest.java | 146 BlockingUserLifecycleListener listener3 = BlockingUserLifecycleListener in testLifecycleMultipleListeners() local 165 Log.d(TAG, "registering listener3: " + listener3 + " with filter: " + userFilter); in testLifecycleMultipleListeners() 166 mgr2.addListener(Runnable::run, userFilter, listener3); in testLifecycleMultipleListeners() 177 List<UserLifecycleEvent> events3 = listener3.waitForEvents(); in testLifecycleMultipleListeners() 187 Log.d(TAG, "unregistering listener3: " + listener3); in testLifecycleMultipleListeners() 188 mgr2.removeListener(listener3); in testLifecycleMultipleListeners()
|
/packages/modules/Connectivity/tests/unit/java/android/net/nsd/ |
D | NsdManagerTest.java | 400 NsdManager.ResolveListener listener3 = mock(NsdManager.ResolveListener.class); in doTestInvalidCalls() local 526 mustFail(() -> { manager.resolveService(null, listener3); }); in doTestInvalidCalls() 527 mustFail(() -> { manager.resolveService(invalidService, listener3); }); in doTestInvalidCalls() 529 manager.resolveService(validService, listener3); in doTestInvalidCalls() 531 mustFail(() -> { manager.resolveService(validService, listener3); }); in doTestInvalidCalls()
|
/packages/modules/StatsD/statsd/tests/state/ |
D | StateTracker_test.cpp | 458 sp<TestStateListener> listener3 = new TestStateListener(); in TEST() local 463 mgr.registerListener(util::OVERLAY_STATE_CHANGED, listener3); in TEST()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | NsdServiceTest.java | 373 final ResolveListener listener3 = mock(ResolveListener.class); in testClientRequestsAreGCedAtDisconnection() local 374 client.resolveService(request, listener3); in testClientRequestsAreGCedAtDisconnection()
|