Home
last modified time | relevance | path

Searched refs:event1 (Results 1 – 8 of 8) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DNetworkLoggingTest.java268 private void verifyDnsEventsEqual(DnsEvent event1, DnsEvent event2) { in verifyDnsEventsEqual() argument
269 assertThat(event1.getHostname()).isEqualTo(event2.getHostname()); in verifyDnsEventsEqual()
270 assertThat(new HashSet<InetAddress>(event1.getInetAddresses())).isEqualTo( in verifyDnsEventsEqual()
272 assertThat(event1.getTotalResolvedAddressCount()).isEqualTo( in verifyDnsEventsEqual()
274 assertThat(event1.getPackageName()).isEqualTo(event2.getPackageName()); in verifyDnsEventsEqual()
275 assertThat(event1.getTimestamp()).isEqualTo(event2.getTimestamp()); in verifyDnsEventsEqual()
276 assertThat(event1.getId()).isEqualTo(event2.getId()); in verifyDnsEventsEqual()
301 private void verifyConnectEventsEqual(ConnectEvent event1, ConnectEvent event2) { in verifyConnectEventsEqual() argument
302 assertThat(event1.getInetAddress()).isEqualTo(event2.getInetAddress()); in verifyConnectEventsEqual()
303 assertThat(event1.getPort()).isEqualTo(event2.getPort()); in verifyConnectEventsEqual()
[all …]
/cts/tests/tests/companion/core/src/android/companion/cts/core/
DAssociationsChangedListenerTest.kt135 val (event1, event2) = observer.invocations in <lambda>() constant
138 assertIs<AssociationChange>(event1) in <lambda>()
140 assertEquals(1, event1.associations.size) in <lambda>()
141 val associationInfoFromListener = event1.associations.first() in <lambda>()
/cts/tests/location/location_none/src/android/location/cts/none/
DGnssMeasurementsEventTest.java92 GnssMeasurementsEvent event1 = getTestEvent(); in testBuilder() local
93 GnssMeasurementsEvent event2 = new GnssMeasurementsEvent.Builder(event1).build(); in testBuilder()
94 assertEquals(event1.toString(), event2.toString()); in testBuilder()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityGestureEventTest.java93 … AccessibilityGestureEvent event1 = new AccessibilityGestureEvent(SENT_GESTURE,TARGET_DISPLAY); in testDescribeContents() local
95 event1.describeContents()); in testDescribeContents()
/cts/tests/tests/text/src/android/text/method/cts/
DNumberKeyListenerTest.java100 KeyEvent event1 = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testLookup() local
102 assertEquals('0', mMockNumberKeyListener.lookup(event1, str)); in testLookup()
DTouchTest.java153 final MotionEvent event1 = MotionEvent.obtain(downTime, eventTime, in testOnTouchEvent() local
163 () -> mReturnFromTouchEvent = Touch.onTouchEvent(mTextView, spannable, event1)); in testOnTouchEvent()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java3314 private static void compareAndRecycleMotionEvents(MotionEvent event1, MotionEvent event2) { in compareAndRecycleMotionEvents() argument
3315 if (event1 == null && event2 == null) { in compareAndRecycleMotionEvents()
3319 if (event1 == null) { in compareAndRecycleMotionEvents()
3324 event1.recycle(); in compareAndRecycleMotionEvents()
3328 assertEquals(event1.getAction(), event2.getAction()); in compareAndRecycleMotionEvents()
3329 assertEquals(event1.getPointerCount(), event2.getPointerCount()); in compareAndRecycleMotionEvents()
3330 assertEquals(event1.getSource(), event2.getSource()); in compareAndRecycleMotionEvents()
3331 assertEquals(event1.getDownTime(), event2.getDownTime()); in compareAndRecycleMotionEvents()
3337 if (event1.getHistorySize() == 0 && event2.getHistorySize() == 0) { in compareAndRecycleMotionEvents()
3338 assertEquals(event1.getEventTime(), event2.getEventTime()); in compareAndRecycleMotionEvents()
[all …]
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DLoginActivityTest.java322 final ContentCaptureEvent event1 = assertor.getLastEvent(); in testSimpleLifecycle_changeContextAfterCreate() local
323 final ContentCaptureContext actualContext = event1.getContentCaptureContext(); in testSimpleLifecycle_changeContextAfterCreate()