Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DUtilsTest.java40 Utils.ListenerList<Long> listeners = new Utils.ListenerList(); in testListenerList() local
59 listeners.add(key, executor, (int eventCode, Long l) -> { in testListenerList()
65 listeners.notify(1, 2L); in testListenerList()
71 listeners.remove(key); in testListenerList()
77 listeners.notify(3, 4L); in testListenerList()
DMediaSessionManagerTest.java571 List<String> listeners = new ArrayList<>(); in getEnabledNotificationListenerPackages() local
581 listeners.add(component.getPackageName()); in getEnabledNotificationListenerPackages()
585 return listeners; in getEnabledNotificationListenerPackages()
/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.java303 final InputTestSensorEventListener[] listeners = in testSensorManagerListenerForSensors() local
309 listeners[i] = new InputTestSensorEventListener(); in testSensorManagerListenerForSensors()
310 assertTrue(mSensorManager.registerListener(listeners[i], sensors[i], in testSensorManagerListenerForSensors()
335 SensorEvent e = listeners[i].waitForSensorEvent(); in testSensorManagerListenerForSensors()
353 listeners[i].waitForAccuracyChanged()); in testSensorManagerListenerForSensors()
358 mSensorManager.unregisterListener(listeners[i]); in testSensorManagerListenerForSensors()
/cts/tests/tests/animation/src/android/animation/cts/
DAnimatorSetTest.java126 final MyListener[] listeners = new MyListener[animators.length]; in verifySequentialPlayOrder() local
129 listeners[i] = new MyListener(); in verifySequentialPlayOrder()
132 listeners[i] = new MyListener() { in verifySequentialPlayOrder()
137 assertTrue(listeners[current - 1].mEndIsCalled); in verifySequentialPlayOrder()
141 animators[i].addListener(listeners[i]); in verifySequentialPlayOrder()
167 for (int i = 0; i < listeners.length; i++) { in verifySequentialPlayOrder()
168 assertTrue(listeners[i].mEndIsCalled); in verifySequentialPlayOrder()
174 listeners[i] = new MyListener(); in verifySequentialPlayOrder()
177 listeners[i] = new MyListener() { in verifySequentialPlayOrder()
182 assertTrue(listeners[current + 1].mEndIsCalled); in verifySequentialPlayOrder()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DInteractiveVerifierActivity.java535 String listeners = Secure.getString(getContentResolver(), in test() local
537 if (listeners != null && listeners.contains(LISTENER_PATH)) { in test()
DNotificationListenerVerifierActivity.java1074 String listeners = Secure.getString(getContentResolver(), in test() local
1076 if (listeners == null || !listeners.contains(LISTENER_PATH)) { in test()
/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.java951 List<CameraTestUtils.SimpleImageReaderListener> listeners = in captureSingleRawShot() local
953 listeners.add(captureListener); in captureSingleRawShot()
955 listeners); in captureSingleRawShot()
972 List<CameraTestUtils.SimpleImageReaderListener> listeners = in captureSingleShotMaximumResolution() local
974 listeners.add(captureListener); in captureSingleShotMaximumResolution()
976 listeners, /*numShots*/ 1, /*maxResolution*/ true).get(0); in captureSingleShotMaximumResolution()
/cts/tests/tests/graphics/src/android/graphics/cts/
DImageDecoderTest.java868 OnPartialImageListener[] listeners = new OnPartialImageListener[] { in testGetOnPartialImageListener() local
880 for (OnPartialImageListener l : listeners) { in testGetOnPartialImageListener()