Home
last modified time | relevance | path

Searched refs:listeners (Results 1 – 16 of 16) sorted by relevance

/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DSessionChannel.kt24 private val listeners = mutableListOf<Consumer<Bundle>>() in <lambda>() constant in com.android.cts.mockime.SessionChannel
36 listeners.forEach { listener -> in <lambda>()
64 listeners.add(listener) in <lambda>()
68 listeners.remove(listener) in <lambda>()
73 listeners.clear() in <lambda>()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DDevicesForAttributesTest.java181 final DevicesForAttributesListener[] listeners = in testListenerWithMultipleAttributes() local
185 listeners[i] = new DevicesForAttributesListener(); in testListenerWithMultipleAttributes()
187 attributes[i], Executors.newSingleThreadExecutor(), listeners[i]); in testListenerWithMultipleAttributes()
189 listeners[i].await(TEST_TIMING_TOLERANCE_MS); in testListenerWithMultipleAttributes()
190 listeners[i].reset(); in testListenerWithMultipleAttributes()
214 listeners[i].await(TEST_TIMING_TOLERANCE_MS); in testListenerWithMultipleAttributes()
215 assertTrue("Routing should be updated", listeners[i].mCalled); in testListenerWithMultipleAttributes()
217 listeners[i].mDevicesForAttributes.get(attributes[i]); in testListenerWithMultipleAttributes()
224 assertFalse("Wrong listener is called", listeners[j].mCalled); in testListenerWithMultipleAttributes()
226 listeners[i].reset(); in testListenerWithMultipleAttributes()
[all …]
DUtilsTest.java47 Utils.ListenerList<Long> listeners = new Utils.ListenerList(); in testListenerList() local
66 listeners.add(key, executor, (int eventCode, Long l) -> { in testListenerList()
72 listeners.notify(1, 2L); in testListenerList()
78 listeners.remove(key); in testListenerList()
84 listeners.notify(3, 4L); in testListenerList()
/cts/tests/tests/uirendering/src/android/uirendering/cts/runner/
DUiRenderingRunner.java54 String listeners = arguments.getString("listener"); in onCreate() local
55 if (listeners == null) { in onCreate()
56 listeners = TestArtifactCollector.class.getName(); in onCreate()
58 listeners += "," + TestArtifactCollector.class.getName(); in onCreate()
60 arguments.putString("listener", listeners); in onCreate()
/cts/common/device-side/nativetesthelper/jni/
Dgtest_wrapper.cpp178 auto& listeners = ::testing::UnitTest::GetInstance()->listeners(); in Java_com_android_gtestrunner_GtestRunner_nInitialize() local
179 delete listeners.Release(listeners.default_result_printer()); in Java_com_android_gtestrunner_GtestRunner_nInitialize()
262 auto& listeners = ::testing::UnitTest::GetInstance()->listeners(); in Java_com_android_gtestrunner_GtestRunner_nRun() local
264 listeners.Append(&junitListener); in Java_com_android_gtestrunner_GtestRunner_nRun()
266 listeners.Release(&junitListener); in Java_com_android_gtestrunner_GtestRunner_nRun()
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceSensorManagerTest.java306 final InputTestSensorEventListener[] listeners = in testSensorManagerListenerForSensors() local
312 listeners[i] = new InputTestSensorEventListener(); in testSensorManagerListenerForSensors()
313 assertTrue(mSensorManager.registerListener(listeners[i], sensors[i], in testSensorManagerListenerForSensors()
338 SensorEvent e = listeners[i].waitForSensorEvent(); in testSensorManagerListenerForSensors()
356 listeners[i].waitForAccuracyChanged()); in testSensorManagerListenerForSensors()
361 mSensorManager.unregisterListener(listeners[i]); in testSensorManagerListenerForSensors()
/cts/tests/tests/virtualdevice/audio/src/android/virtualdevice/cts/audio/
DSignalObserver.java143 List<SignalObserver.SignalChangeListener> listeners; in run() local
149 listeners = List.copyOf(mSignalChangeListeners); in run()
153 listeners.forEach( in run()
/cts/tests/tests/usb/src/android/usb/cts/
DUsbManagerApiTest.java277 final ArrayList<LatchedDisplayPortAltModeInfoListener> listeners = in test_UsbApiForDisplayPortAltModeRegisterMultiListenerFunctionality() local
283 listeners.add(listener); in test_UsbApiForDisplayPortAltModeRegisterMultiListenerFunctionality()
294 mUsbManagerSys.unregisterDisplayPortAltModeInfoListener(listeners.get(i)); in test_UsbApiForDisplayPortAltModeRegisterMultiListenerFunctionality()
/cts/tests/tests/animation/src/android/animation/cts/
DAnimatorSetTest.java136 final MyListener[] listeners = new MyListener[animators.length]; in verifySequentialPlayOrder() local
139 listeners[i] = new MyListener(); in verifySequentialPlayOrder()
142 listeners[i] = new MyListener() { in verifySequentialPlayOrder()
147 assertTrue(listeners[current - 1].mEndIsCalled); in verifySequentialPlayOrder()
151 animators[i].addListener(listeners[i]); in verifySequentialPlayOrder()
177 for (int i = 0; i < listeners.length; i++) { in verifySequentialPlayOrder()
178 assertTrue(listeners[i].mEndIsCalled); in verifySequentialPlayOrder()
184 listeners[i] = new MyListener(); in verifySequentialPlayOrder()
187 listeners[i] = new MyListener() { in verifySequentialPlayOrder()
192 assertTrue(listeners[current + 1].mEndIsCalled); in verifySequentialPlayOrder()
[all …]
/cts/tests/app/src/android/app/cts/
DUiModeManagerTest.java809 final List<ContrastChangeListener> listeners = new ArrayList<>(); in testAddContrastChangeListener() local
837 listeners.add(listener); in testAddContrastChangeListener()
848 listeners.forEach(mUiModeManager::removeContrastChangeListener); in testAddContrastChangeListener()
871 final List<ContrastChangeListener> listeners = List.of(listener, removedListener); in testRemoveContrastChangeListener() local
886 listeners.forEach(mUiModeManager::removeContrastChangeListener); in testRemoveContrastChangeListener()
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionTest.java484 Animator.AnimatorListener listener = transition.listeners.get(redSquare); in testInterpolator()
541 Animator.AnimatorListener listener = transition.listeners.get(redSquare); in testPropagation()
641 Animator.AnimatorListener listener = transition.listeners.get(redSquare); in testStartDelay()
741 public HashMap<View, Animator.AnimatorListener> listeners = new HashMap<>(); field in TransitionTest.CaptureAnimatorTransition
761 listeners.put(view, listener); in setupAnimator()
/cts/tests/camera/src/android/hardware/camera2/cts/
DDngCreatorTest.java942 List<CameraTestUtils.SimpleImageReaderListener> listeners = in captureSingleRawShot() local
944 listeners.add(captureListener); in captureSingleRawShot()
946 listeners); in captureSingleRawShot()
963 List<CameraTestUtils.SimpleImageReaderListener> listeners = in captureSingleShotMaximumResolution() local
965 listeners.add(captureListener); in captureSingleShotMaximumResolution()
967 listeners, /*numShots*/ 1, /*maxResolution*/ true).get(0); in captureSingleShotMaximumResolution()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DInteractiveVerifierActivity.java591 String listeners = Secure.getString(getContentResolver(), in test() local
593 if (listeners != null && listeners.contains(LISTENER_PATH)) { in test()
DNotificationListenerVerifierActivity.java1256 String listeners = in test() local
1258 if (listeners == null || !listeners.contains(LISTENER_PATH)) { in test()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaSessionManagerTest.java679 List<String> listeners = new ArrayList<>(); in getEnabledNotificationListenerPackages() local
689 listeners.add(component.getPackageName()); in getEnabledNotificationListenerPackages()
693 return listeners; in getEnabledNotificationListenerPackages()
/cts/tests/tests/graphics/src/android/graphics/cts/
DImageDecoderTest.java986 OnPartialImageListener[] listeners = new OnPartialImageListener[] { in testGetOnPartialImageListener() local
998 for (OnPartialImageListener l : listeners) { in testGetOnPartialImageListener()