Home
last modified time | relevance | path

Searched refs:event2 (Results 1 – 9 of 9) 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()
271 new HashSet<InetAddress>(event2.getInetAddresses())); in verifyDnsEventsEqual()
273 event2.getTotalResolvedAddressCount()); 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/autofillservice/src/android/autofillservice/cts/dropdown/
DFillEventHistoryTest.java225 FillEventHistory.Event event2 = events.get(2); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored() local
226 assertThat(event2.getType()).isEqualTo(TYPE_CONTEXT_COMMITTED); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored()
227 assertThat(event2.getDatasetId()).isNull(); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored()
228 assertThat(event2.getClientState()).isNull(); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored()
229 assertThat(event2.getSelectedDatasetIds()).isEmpty(); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored()
230 assertThat(event2.getIgnoredDatasetIds()).containsExactly("id2"); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored()
233 final Map<AutofillId, String> changedFields = event2.getChangedFields(); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored()
235 assertThat(event2.getManuallyEnteredField()).isEmpty(); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored()
289 final FillEventHistory.Event event2 = events.get(2); in testContextCommitted_idlessDatasetIgnored_datasetWithIdSelected() local
290 assertThat(event2.getType()).isEqualTo(TYPE_CONTEXT_COMMITTED); in testContextCommitted_idlessDatasetIgnored_datasetWithIdSelected()
[all …]
/cts/tests/tests/companion/core/src/android/companion/cts/core/
DAssociationsChangedListenerTest.kt135 val (event1, event2) = observer.invocations in <lambda>() constant
148 assertIs<CdmCallback>(event2) in <lambda>()
149 val callbackInvocation = event2.invocation in <lambda>()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityGestureEventTest.java96 AccessibilityGestureEvent event2 = new AccessibilityGestureEvent( in testDescribeContents() local
99 event2.describeContents()); in testDescribeContents()
/cts/tests/location/location_none/src/android/location/cts/none/
DGnssMeasurementsEventTest.java93 GnssMeasurementsEvent event2 = new GnssMeasurementsEvent.Builder(event1).build(); in testBuilder() local
94 assertEquals(event1.toString(), event2.toString()); in testBuilder()
/cts/tests/tests/text/src/android/text/method/cts/
DNumberKeyListenerTest.java105 KeyEvent event2 = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_A); in testLookup() local
107 assertEquals('\0', mMockNumberKeyListener.lookup(event2, str)); in testLookup()
DTouchTest.java155 final MotionEvent event2 = MotionEvent.obtain(downTime, eventTime, in testOnTouchEvent() local
174 () -> mReturnFromTouchEvent = Touch.onTouchEvent(mTextView, spannable, event2)); in testOnTouchEvent()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java1900 MotionEvent event2 = in testSetOnGenericMotionListener() local
1903 assertTrue(view.dispatchGenericMotionEvent(event2)); in testSetOnGenericMotionListener()
1904 event2.recycle(); in testSetOnGenericMotionListener()
3314 private static void compareAndRecycleMotionEvents(MotionEvent event1, MotionEvent event2) { in compareAndRecycleMotionEvents() argument
3315 if (event1 == null && event2 == null) { in compareAndRecycleMotionEvents()
3320 event2.recycle(); in compareAndRecycleMotionEvents()
3323 if (event2 == null) { 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()
[all …]
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DLoginActivityTest.java328 final ContentCaptureEvent event2 = assertor.getLastEvent(); in testSimpleLifecycle_changeContextAfterCreate() local
329 assertThat(event2.getContentCaptureContext()).isNull(); in testSimpleLifecycle_changeContextAfterCreate()