Home
last modified time | relevance | path

Searched refs:events (Results 1 – 25 of 31) sorted by relevance

12

/cts/tests/tests/util/src/android/util/cts/
DEventLogTest.java44 List<EventLog.Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testWriteEvent() local
45 assertEquals(5, events.size()); in testWriteEvent()
46 assertEquals(ANSWER_TAG, events.get(0).getTag()); in testWriteEvent()
47 assertEquals(12345, events.get(0).getData()); in testWriteEvent()
48 assertEquals(23456L, events.get(1).getData()); in testWriteEvent()
49 assertEquals(42.4242f, events.get(2).getData()); in testWriteEvent()
50 assertEquals("Test", events.get(3).getData()); in testWriteEvent()
52 Object[] arr = (Object[]) events.get(4).getData(); in testWriteEvent()
76 List<Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testWriteEventWithOversizeValue() local
77 assertEquals(7, events.size()); in testWriteEventWithOversizeValue()
[all …]
/cts/apps/CameraITS/tests/scene0/
Dtest_unified_timestamps.py39 events = cam.get_sensor_events()
40 assert(len(events["gyro"]) > 0)
41 assert(len(events["accel"]) > 0)
42 assert(len(events["mag"]) > 0)
43 ts_gyro0 = events["gyro"][0]["time"]
44 ts_gyro1 = events["gyro"][-1]["time"]
45 ts_accel0 = events["accel"][0]["time"]
46 ts_accel1 = events["accel"][-1]["time"]
47 ts_mag0 = events["mag"][0]["time"]
48 ts_mag1 = events["mag"][-1]["time"]
Dtest_sensor_events.py33 events = cam.get_sensor_events()
35 len(events["gyro"]), len(events["accel"]), len(events["mag"]))
36 assert(len(events["gyro"]) > 0)
37 assert(len(events["accel"]) > 0)
38 assert(len(events["mag"]) > 0)
/cts/tests/tests/hardware/src/android/hardware/multiprocess/camera/cts/
DCameraEvictionTest.java180 List<ErrorLoggingService.LogEvent> events = null; in testCamera1ActivityEviction() local
182 events = mErrorServiceConnection.getLog(SETUP_TIMEOUT, in testCamera1ActivityEviction()
185 if (events != null) assertOnly(TestConstants.EVENT_CAMERA_CONNECT, events); in testCamera1ActivityEviction()
286 ArrayList<ErrorLoggingService.LogEvent> events = new ArrayList<>(); in testBasicCamera2ActivityEviction() local
296 events.add(e); in testBasicCamera2ActivityEviction()
298 int[] eventList = new int[events.size()]; in testBasicCamera2ActivityEviction()
300 for (ErrorLoggingService.LogEvent e : events) { in testBasicCamera2ActivityEviction()
431 public static void assertOnly(int event, List<ErrorLoggingService.LogEvent> events) { in assertOnly() argument
432 assertTrue("Remote camera activity never received event: " + event, events != null); in assertOnly()
433 for (ErrorLoggingService.LogEvent e : events) { in assertOnly()
[all …]
/cts/apps/CameraITS/tests/sensor_fusion/
Dtest_sensor_fusion.py80 events, frames = collect_data()
82 events, frames = load_data()
87 cam_times = get_cam_times(events["cam"])
90 gyro_times = [e["time"] for e in events["gyro"]]
110 offset = get_best_alignment_offset(cam_times, cam_rots, events["gyro"])
114 gyro_rots = get_gyro_rotations(events["gyro"], cam_times)
310 events = json.loads(f.read())
311 n = len(events["cam"])
317 return events, frames
357 events = {"gyro": gyro, "cam": zip(starts,exptimes,readouts)}
[all …]
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/
DMagnitudeVerificationTest.java71 Collection<TestSensorEvent> events = new ArrayList<>(values.length); in getVerification() local
73 events.add(new TestSensorEvent(null, 0, 0, value)); in getVerification()
76 verification.addSensorEvents(events); in getVerification()
DStandardDeviationVerificationTest.java88 Collection<TestSensorEvent> events = new ArrayList<>(values.length); in getVerification() local
90 events.add(new TestSensorEvent(null, 0, 0, value)); in getVerification()
93 verification.addSensorEvents(events); in getVerification()
DEventGapVerificationTest.java97 Collection<TestSensorEvent> events = new ArrayList<>(timestamps.length); in getVerification() local
99 events.add(new TestSensorEvent(null, timestamp, 0, null)); in getVerification()
102 verification.addSensorEvents(events); in getVerification()
DFrequencyVerificationTest.java83 Collection<TestSensorEvent> events = new ArrayList<>(timestamps.length); in getVerification() local
85 events.add(new TestSensorEvent(null, timestamp, 0, null)); in getVerification()
89 verification.addSensorEvents(events); in getVerification()
DMeanVerificationTest.java97 Collection<TestSensorEvent> events = new ArrayList<>(values.length); in getVerification() local
99 events.add(new TestSensorEvent(null, 0, 0, value)); in getVerification()
102 verification.addSensorEvents(events); in getVerification()
DEventOrderingVerificationTest.java91 Collection<TestSensorEvent> events = new ArrayList<>(timestamps.length); in getVerification() local
93 events.add(new TestSensorEvent(null, timestamp, 0, null)); in getVerification()
96 verification.addSensorEvents(events); in getVerification()
DAbstractSensorVerification.java33 public synchronized void addSensorEvents(Collection<TestSensorEvent> events) { in addSensorEvents() argument
34 for (TestSensorEvent event : events) { in addSensorEvents()
DJitterVerificationTest.java104 Collection<TestSensorEvent> events = new ArrayList<>(timestamps.length); in getVerification() local
106 events.add(new TestSensorEvent(null, timestamp, 0, null)); in getVerification()
109 verification.addSensorEvents(events); in getVerification()
DISensorVerification.java41 void addSensorEvents(Collection<TestSensorEvent> events); in addSensorEvents() argument
/cts/tests/tests/os/src/android/os/cts/
DMessageQueueTest.java226 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testRegisterFileDescriptorCallbackThrowsWhenFdIsNull()
292 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testFileDescriptorCallbacks()
297 if ((events & OnFileDescriptorEventListener.EVENT_ERROR) != 0) { in testFileDescriptorCallbacks()
304 if ((events & OnFileDescriptorEventListener.EVENT_OUTPUT) != 0) { in testFileDescriptorCallbacks()
317 fail("Saw unexpected events: " + events + ", mDone=" + mDone); in testFileDescriptorCallbacks()
329 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testFileDescriptorCallbacks()
333 if ((events & OnFileDescriptorEventListener.EVENT_ERROR) != 0) { in testFileDescriptorCallbacks()
340 if ((events & OnFileDescriptorEventListener.EVENT_INPUT) != 0) { in testFileDescriptorCallbacks()
357 fail("Saw unexpected events: " + events + ", mDone=" + mDone); in testFileDescriptorCallbacks()
418 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testPathologicalFileDescriptorReuseCallbacks1() argument
[all …]
DFileObserverTest.java234 final FileEvent[] events = new FileEvent[mEvents.size()]; in getEvents() local
235 mEvents.toArray(events); in getEvents()
237 return events; in getEvents()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java141 UsageEvents events = mUsageStatsManager.queryEvents(startTime, endTime); in testOrderedActivityLaunchSequenceInEventLog() local
145 while (events.hasNextEvent()) { in testOrderedActivityLaunchSequenceInEventLog()
147 assertTrue(events.getNextEvent(event)); in testOrderedActivityLaunchSequenceInEventLog()
242 UsageEvents events = mUsageStatsManager.queryEvents(startTime, endTime); in testUsageEventsParceling() local
243 assertTrue(events.getNextEvent(new UsageEvents.Event())); in testUsageEventsParceling()
247 events.writeToParcel(p, 0); in testUsageEventsParceling()
254 while (events.hasNextEvent() && reparceledEvents.hasNextEvent()) { in testUsageEventsParceling()
255 events.getNextEvent(e1); in testUsageEventsParceling()
264 assertEquals(events.hasNextEvent(), reparceledEvents.hasNextEvent()); in testUsageEventsParceling()
/cts/tests/tests/text/src/android/text/method/cts/
DDialerKeyListenerTest.java36 final int[] events = { KeyEvent.KEYCODE_0, KeyEvent.KEYCODE_N, KeyEvent.KEYCODE_A }; in testLookup() local
38 for (int event: events) { in testLookup()
/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/
DLauncherCallbackTestsService.java171 private boolean eventExists(Bundle params, BlockingQueue<Pair<String, UserHandle>> events) { in eventExists() argument
176 Pair<String, UserHandle> event = events.poll(60, TimeUnit.SECONDS); in eventExists()
182 event = events.poll(20, TimeUnit.SECONDS); in eventExists()
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowQueryTest.java96 final List<AccessibilityEvent> events = new ArrayList<AccessibilityEvent>(); in testNoWindowsAccessIfFlagNotSet() local
109 events.add(event); in testNoWindowsAccessIfFlagNotSet()
118 AccessibilityEvent event = events.get(0); in testNoWindowsAccessIfFlagNotSet()
168 final List<AccessibilityEvent> events = new ArrayList<AccessibilityEvent>(); in testTraverseWindowFromEvent() local
181 events.add(event); in testTraverseWindowFromEvent()
190 AccessibilityEvent event = events.get(0); in testTraverseWindowFromEvent()
223 final List<AccessibilityEvent> events = new ArrayList<AccessibilityEvent>(); in testInteractWithAppWindow() local
236 events.add(event); in testInteractWithAppWindow()
245 AccessibilityEvent event = events.get(0); in testInteractWithAppWindow()
/cts/suite/audio_quality/lib/include/audio/
DRemoteAudio.h73 static int socketRxCallback(int fd, int events, void* data);
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/
DTestSensorOperation.java174 List<TestSensorEvent> events, in evaluateResults() argument
180 verification.addSensorEvents(events); in evaluateResults()
/cts/suite/audio_quality/lib/src/audio/
DRemoteAudio.cpp138 int RemoteAudio::socketRxCallback(int fd, int events, void* data) in socketRxCallback() argument
141 if (events & android::Looper::EVENT_INPUT) { in socketRxCallback()
/cts/suite/cts/deviceTests/browserbench/assets/octane/js/
Djquery.js1328 events,
1711 return privateCache.events;
2818 hoverHack = function( events ) { argument
2819 …return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$…
2830 var elemData, eventHandle, events,
2851 events = elemData.events;
2852 if ( !events ) {
2853 elemData.events = events = {};
2899 handlers = events[ type ];
2901 handlers = events[ type ] = [];
[all …]
/cts/tests/tests/hardware/src/android/hardware/multiprocess/
DErrorLoggingService.java388 LogEvent[] events = Arrays.copyOf(array, array.length, LogEvent[].class); in handleMessage() local
389 List<LogEvent> res = Arrays.asList(events); in handleMessage()

12