Home
last modified time | relevance | path

Searched refs:mCollectedEvents (Results 1 – 6 of 6) sorted by relevance

/cts/tests/sensor/src/android/hardware/cts/helpers/
DTestSensorEventListener.java56 private final ArrayList<TestSensorEvent> mCollectedEvents = new ArrayList<>(); field in TestSensorEventListener
103 synchronized (mCollectedEvents) { in onSensorChanged()
104 mCollectedEvents.add(new TestSensorEvent(event, timestampNs)); in onSensorChanged()
177 synchronized (mCollectedEvents){ in getCollectedEvents()
178 return Collections.unmodifiableList((List<TestSensorEvent>) mCollectedEvents.clone()); in getCollectedEvents()
186 synchronized (mCollectedEvents) { in clearEvents()
187 mCollectedEvents.clear(); in clearEvents()
212 synchronized (mCollectedEvents) { in logCollectedEventsToFile()
214 while (i < mCollectedEvents.size() && j < mTimeStampFlushCompleteEvents.size()) { in logCollectedEventsToFile()
215 if (mCollectedEvents.get(i).receivedTimestamp < in logCollectedEventsToFile()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DGestureDetectionStubAccessibilityService.java36 protected ArrayList<Integer> mCollectedEvents = new ArrayList(); field in GestureDetectionStubAccessibilityService
109 mCollectedEvents.add(event.getEventType()); in onAccessibilityEvent()
115 mCollectedEvents.add(event.getEventType()); in onAccessibilityEvent()
123 mCollectedEvents.clear(); in clearEvents()
129 return mCollectedEvents.size(); in getEventsSize()
135 return mCollectedEvents.get(index); in getEvent()
142 if (mCollectedEvents.size() >= count) { in waitUntilEvent()
DTouchExplorationStubAccessibilityService.java38 mCollectedEvents.add(event.getEventType()); in onAccessibilityEvent()
45 mCollectedEvents.add(event.getEventType()); in onAccessibilityEvent()
53 TestUtils.waitOn(mLock, () -> mCollectedEvents.contains(TYPE_VIEW_ACCESSIBILITY_FOCUSED), in waitForAccessibilityFocus()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DEventTimestampSynchronizationVerification.java44 private final ArrayList<TestSensorEvent> mCollectedEvents = new ArrayList<TestSensorEvent>(); field in EventTimestampSynchronizationVerification
130 mCollectedEvents.add(event); in addSensorEventInternal()
142 int collectedEventsCount = mCollectedEvents.size(); in verifyTimestampSynchronization()
146 TestSensorEvent event = mCollectedEvents.get(i); in verifyTimestampSynchronization()
DTimestampClockSourceVerification.java46 private final ArrayList<TestSensorEvent> mCollectedEvents = new ArrayList<TestSensorEvent>(); field in TimestampClockSourceVerification
134 mCollectedEvents.add(event); in addSensorEventInternal()
144 int collectedEventsCount = mCollectedEvents.size(); in verifyTimestampClockSource()
155 TestSensorEvent event = mCollectedEvents.get(i); in verifyTimestampClockSource()
/cts/tests/app/app/src/android/app/stubs/
DActivityCallbacksTestActivity.java65 private ArrayList<Pair<Source, Event>> mCollectedEvents = new ArrayList<>(); field in ActivityCallbacksTestActivity
264 mCollectedEvents.add(new Pair<>(source, event)); in collectEvent()
268 return mCollectedEvents; in getCollectedEvents()