Home
last modified time | relevance | path

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

/cts/tests/sensor/src/android/hardware/cts/helpers/
DTestSensorManager.java100 int eventCount, in registerListener() argument
107 CountDownLatch latch = listener.getLatchForSensorEvents(eventCount); in registerListener()
140 int eventCount) { in registerListener() argument
141 return registerListener(listener, eventCount, true); in registerListener()
DTestSensorEventListener.java129 public CountDownLatch getLatchForSensorEvents(int eventCount) { in getLatchForSensorEvents() argument
130 CountDownLatch latch = new CountDownLatch(eventCount); in getLatchForSensorEvents()
305 public void waitForEvents(CountDownLatch latch, int eventCount, in waitForEvents() argument
316 long timeoutUs = (2 * eventCount * samplingPeriodUs) in waitForEvents()
325 eventCount, in waitForEvents()
326 eventCount - latch.getCount(), in waitForEvents()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/
DGnssPseudorangeVerificationTest.java143 int eventCount = events.size(); in testPseudorangeValue() local
144 Log.i(TAG, "Number of GNSS measurement events received = " + eventCount); in testPseudorangeValue()
146 "GnssMeasurementEvent count: expected > 0, received = " + eventCount, in testPseudorangeValue()
147 eventCount > 0); in testPseudorangeValue()
289 int eventCount = events.size(); in testPseudoPosition() local
290 Log.i(TAG, "Number of Gps Event received = " + eventCount); in testPseudoPosition()
292 assertTrue("GnssMeasurementEvent count: expected > 0, received = " + eventCount, in testPseudoPosition()
293 eventCount > 0); in testPseudoPosition()
DGnssMeasurementValuesTest.java120 int eventCount = events.size(); in testListenForGnssMeasurements() local
121 Log.i(TAG, "Number of Gps Event received = " + eventCount); in testListenForGnssMeasurements()
124 String.valueOf(eventCount), eventCount > 0); in testListenForGnssMeasurements()
DGnssMeasurementRegistrationTest.java251 int eventCount = mMeasurementListener.getEvents().size(); in verifyNoGnssMeasurementReceived() local
255 Assert.assertEquals(eventCount, mMeasurementListener.getEvents().size()); in verifyNoGnssMeasurementReceived()
/cts/tests/location/location_privileged/src/android/location/cts/privileged/
DGnssMeasurementValuesTest.java143 int eventCount = events.size(); in testListenForGnssMeasurements() local
144 Log.i(TAG, "Number of GnssMeasurement Event received = " + eventCount); in testListenForGnssMeasurements()
148 String.valueOf(eventCount), eventCount > 0); in testListenForGnssMeasurements()
/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/
DVirtualSensorTest.java676 for (int eventCount = 0; eventCount < SENSOR_EVENT_COUNT * 2; ++eventCount) { in directConnection_memoryFile_injectEvents_withHelperWriter()
678 reportToken + eventCount * 0.01f, in directConnection_memoryFile_injectEvents_withHelperWriter()
679 reportToken + eventCount * 0.02f, in directConnection_memoryFile_injectEvents_withHelperWriter()
680 reportToken + eventCount * 0.03f, in directConnection_memoryFile_injectEvents_withHelperWriter()
754 int eventCount = 0; in writeDirectChannelEvents() local
766 while (eventCount < SENSOR_EVENT_COUNT * 2) { in writeDirectChannelEvents()
771 event.putInt(++eventCount); in writeDirectChannelEvents()
774 event.putFloat(reportToken + eventCount * 0.01f); in writeDirectChannelEvents()
775 event.putFloat(reportToken + eventCount * 0.02f); in writeDirectChannelEvents()
776 event.putFloat(reportToken + eventCount * 0.03f); in writeDirectChannelEvents()
[all …]
DVirtualSensorDirectChannelWriterTest.java233 void verifyEvent(VirtualSensor sensor, VirtualSensorEvent event, int eventCount) { in verifyEvent() argument
238 assertThat(mByteBuffer.getInt()).isEqualTo(eventCount); in verifyEvent()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DVirtualNavigationTouchpadTest.java223 int eventCount = 4; in sendContinuousEvents() local
228 for (int i = 1; i <= eventCount; i++) { in sendContinuousEvents()
229 sendVirtualNavigationTouchEvent(startX + i * diffX / eventCount, in sendContinuousEvents()
230 startY + i * diffY / eventCount, VirtualTouchEvent.ACTION_MOVE); in sendContinuousEvents()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
DTestSensorOperation.java244 final int eventCount) { in createOperation() argument
250 CountDownLatch latch = sensorManager.registerListener(listener, eventCount); in createOperation()
251 listener.waitForEvents(latch, eventCount, true); in createOperation()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java2104 final AtomicInteger eventCount = new AtomicInteger(0); in testOnMotionEvent_interceptsEventFromRequestedSource_observesMotionEvents() local
2109 eventCount.incrementAndGet(); in testOnMotionEvent_interceptsEventFromRequestedSource_observesMotionEvents()
2129 eventCount.set(0); in testOnMotionEvent_interceptsEventFromRequestedSource_observesMotionEvents()
2137 () -> eventCount.get() == 2, in testOnMotionEvent_interceptsEventFromRequestedSource_observesMotionEvents()
2151 eventCount.set(2); in testOnMotionEvent_interceptsEventFromRequestedSource_observesMotionEvents()
2160 () -> eventCount.get() == 3, in testOnMotionEvent_interceptsEventFromRequestedSource_observesMotionEvents()
2166 assertThat(eventCount.get()).isEqualTo(2); in testOnMotionEvent_interceptsEventFromRequestedSource_observesMotionEvents()
2196 final AtomicInteger eventCount = new AtomicInteger(0); in testMotionEventObserving_ignoresTouchscreenEventWhenTouchExplorationEnabled() local
2201 eventCount.incrementAndGet(); in testMotionEventObserving_ignoresTouchscreenEventWhenTouchExplorationEnabled()
2223 eventCount.set(0); in testMotionEventObserving_ignoresTouchscreenEventWhenTouchExplorationEnabled()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWindowFocusTests.java110 final int eventCount = target.getKeyEventCount(); in sendAndAssertTargetConsumedKey() local
113 assertEquals(target.getLogTag() + " must only receive key event sent.", eventCount, in sendAndAssertTargetConsumedKey() local
/cts/tests/sensor/src/android/hardware/cts/
DSensorTest.java828 public FlushExecutor(TestSensorEnvironment environment, int eventCount, in FlushExecutor() argument
831 mEventCount = eventCount; in FlushExecutor()