Home
last modified time | relevance | path

Searched refs:event1 (Results 1 – 6 of 6) 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/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.java102 KeyEvent event1 = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testLookup() local
104 assertEquals('0', mMockNumberKeyListener.lookup(event1, str)); in testLookup()
DTouchTest.java141 final MotionEvent event1 = MotionEvent.obtain(downTime, eventTime, in testOnTouchEvent() local
151 () -> mReturnFromTouchEvent = Touch.onTouchEvent(mTextView, spannable, event1)); in testOnTouchEvent()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java3183 private static void compareAndRecycleMotionEvents(MotionEvent event1, MotionEvent event2) { in compareAndRecycleMotionEvents() argument
3184 if (event1 == null && event2 == null) { in compareAndRecycleMotionEvents()
3188 if (event1 == null) { in compareAndRecycleMotionEvents()
3193 event1.recycle(); in compareAndRecycleMotionEvents()
3197 assertEquals(event1.getAction(), event2.getAction()); in compareAndRecycleMotionEvents()
3198 assertEquals(event1.getPointerCount(), event2.getPointerCount()); in compareAndRecycleMotionEvents()
3199 assertEquals(event1.getSource(), event2.getSource()); in compareAndRecycleMotionEvents()
3200 assertEquals(event1.getDownTime(), event2.getDownTime()); in compareAndRecycleMotionEvents()
3206 if (event1.getHistorySize() == 0 && event2.getHistorySize() == 0) { in compareAndRecycleMotionEvents()
3207 assertEquals(event1.getEventTime(), event2.getEventTime()); in compareAndRecycleMotionEvents()
[all …]
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DLoginActivityTest.java317 final ContentCaptureEvent event1 = assertContextUpdated(events, LoginActivity.MIN_EVENTS); in testSimpleLifecycle_changeContextAfterCreate() local
318 final ContentCaptureContext actualContext = event1.getContentCaptureContext(); in testSimpleLifecycle_changeContextAfterCreate()