Home
last modified time | relevance | path

Searched refs:received (Results 1 – 25 of 28) sorted by relevance

12

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DEventCapturingMotionEventListener.java85 List<String> received = new ArrayList<>(); in assertPropagated() local
99 received.add(MotionEvent.actionToString(ev.getActionMasked())); in assertPropagated()
104 String prev = received.get(received.size() - 1); in assertPropagated()
111 received.add(MotionEvent.actionToString(action)); in assertPropagated()
116 received.add(current); in assertPropagated()
119 if (expected.size() == received.size()) { in assertPropagated()
126 assertThat(received).isEqualTo(expected); in assertPropagated()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DPublishAttributesTest.java70 SipDetails received = attr.getSipDetails(); in testAttributes() local
71 assertEquals(SipDetails.METHOD_REGISTER, received.getMethod()); in testAttributes()
72 assertEquals(cseq, received.getCSeq()); in testAttributes()
73 assertEquals(sipCode, received.getResponseCode()); in testAttributes()
74 assertEquals(reasonPhase, received.getResponsePhrase()); in testAttributes()
75 assertEquals(callId, received.getCallId()); in testAttributes()
76 assertEquals(reasonHeaderCause, received.getReasonHeaderCause()); in testAttributes()
77 assertEquals(reasonHeaderText, received.getReasonHeaderText()); in testAttributes()
/cts/apps/PermissionApp/src/com/android/cts/permission/permissionapp/
DPermissionActivity.java51 final Intent received = getIntent(); in onCreate() local
52 Log.d(TAG, "Started with " + received); in onCreate()
54 final String action = received.getAction(); in onCreate()
55 mPermission = received.getStringExtra(EXTRA_PERMISSION); in onCreate()
63 Log.w(TAG, "Unknown intent received: " + received); in onCreate()
/cts/tests/tests/view/src/android/view/cts/
DVerifyInputEventTest.java106 KeyEvent received = waitForKey(); in testKeyEvent() local
107 VerifiedInputEvent verified = mInputManager.verifyInputEvent(received); in testKeyEvent()
152 KeyEvent received = waitForKey(); in testTamperedKeyEvent() local
153 received.setSource(SOURCE_JOYSTICK); // use the received event, but modify its source in testTamperedKeyEvent()
154 VerifiedInputEvent verified = mInputManager.verifyInputEvent(received); in testTamperedKeyEvent()
173 MotionEvent received = waitForMotion(); in testMotionEvent() local
174 VerifiedInputEvent verified = mInputManager.verifyInputEvent(received); in testMotionEvent()
226 MotionEvent received = waitForMotion(); in testTamperedMotionEvent() local
228 received.setAction(MotionEvent.ACTION_CANCEL); in testTamperedMotionEvent()
229 VerifiedInputEvent verified = mInputManager.verifyInputEvent(received); in testTamperedMotionEvent()
[all …]
DSystemGestureExclusionRectsTest.java77 final CountDownLatch received = new CountDownLatch(1); in staticView() local
93 received.countDown(); in staticView()
99 assertTrue("didn't receive exclusion rects", received.await(3, SECONDS)); in staticView()
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DSuspendTestUtils.java142 static boolean areSameExtras(BaseBundle expected, BaseBundle received) { in areSameExtras() argument
143 if (expected == null || received == null) { in areSameExtras()
144 return expected == received; in areSameExtras()
147 if (keys.size() != received.keySet().size()) { in areSameExtras()
151 if (!Objects.equals(expected.get(key), received.get(key))) { in areSameExtras()
158 static void assertSameExtras(String message, BaseBundle expected, BaseBundle received) { in assertSameExtras() argument
159 if (!areSameExtras(expected, received)) { in assertSameExtras()
160 fail(message + ": [expected: " + expected + "; received: " + received + "]"); in assertSameExtras()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DGestureDetectionStubAccessibilityService.java161 AccessibilityGestureEvent received = getGestureInfo(0); in assertGestureReceived() local
162 assertThat(expected.toString()).isEqualTo(received.toString()); in assertGestureReceived()
170 List<String> received = new ArrayList<>(); in assertPropagated() local
176 received.add(AccessibilityEvent.eventTypeToString(getEvent(i))); in assertPropagated()
178 assertThat(expected).isEqualTo(received); in assertPropagated()
DAccessibilityFocusAndInputFocusSyncTest.java165 AccessibilityNodeInfo received = sUiAutomation in testFindAccessibilityFocus() local
167 assertNotNull(received); in testFindAccessibilityFocus()
168 assertTrue(received.isAccessibilityFocused()); in testFindAccessibilityFocus()
171 assertEquals(expected, received); in testFindAccessibilityFocus()
DAccessibilityOverlayTest.java509 Integer received = null; in assertCallbackReceived() local
511 received = mResults.poll(AsyncUtils.DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in assertCallbackReceived()
515 assertThat(expected).isEqualTo(received); in assertCallbackReceived()
/cts/apps/TileServiceApp/src/com/android/cts/tileserviceapp/
DTileRequestActivity.java48 final Intent received = getIntent(); in onCreate() local
49 Log.d(TAG, "Started with " + received); in onCreate()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationManagerBroadcastReceiver.java59 boolean received = latch.await(duration.toMillis(), TimeUnit.MILLISECONDS); in assertBroadcastsReceivedWithin()
62 .that(received).isTrue(); in assertBroadcastsReceivedWithin()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DIntentReceiverActivity.java79 final Intent received = getIntent(); in onCreate() local
80 final String action = received.getAction(); in onCreate()
84 String text = received.getStringExtra("extra_text"); in onCreate()
112 String message = received.getStringExtra("extra_message"); in onCreate()
/cts/tests/tests/voiceinteraction/testapp/src/android/voiceinteraction/testapp/
DTestApp.java264 String received = result.getString(Utils.TEST_ONCOMMAND_RESULT); in commandRequest()
265 if (received != null && received.equals(Utils.TEST_ONCOMMAND_RESULT_VALUE)) { in commandRequest()
269 "Invalid commandrequest result received: " + received); in commandRequest()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DActionChargingTest.java80 public boolean received() { in received() method in ActionChargingTest.ActionChargingListener
158 listener.received()); in checkActionChargingDeferred()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DUserActionCallback.java176 boolean received = mLatch.await(BROADCAST_TIMEOUT, TimeUnit.MILLISECONDS); in waitForBroadcasts()
180 mPendingActions).that(received).isTrue(); in waitForBroadcasts()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
DEnqueueJobWorkTest.java70 private void compareWork(TestWorkItem[] expected, ArrayList<JobWorkItem> received) { in compareWork() argument
71 if (received == null) { in compareWork()
78 for (int i = 0; i < received.size(); i++) { in compareWork()
79 JobWorkItem work = received.get(i); in compareWork()
99 if (received.size() < expected.length) { in compareWork()
100 fail("Received only " + received.size() + " work items, but expected " in compareWork()
/cts/tests/DropBoxManager/src/android/dropboxmanager/cts/
DDropBoxTests.java86 long received; field in DropBoxTests.DropBoxEntryAddedData
96 data.received = SystemClock.elapsedRealtime();
292 final long receivedTimeDelta = anotherData.received - data.received; in testMultipleLowPriorityRateLimiting()
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp315 AHardwareBuffer* received = NULL; in TEST() local
316 err = AHardwareBuffer_recvHandleFromUnixSocket(fds[0], &received); in TEST()
318 EXPECT_TRUE(received != NULL); in TEST()
319 EXPECT_EQ(desc, GetDescription(received)); in TEST()
327 AHardwareBuffer_release(received); in TEST()
/cts/tests/tests/content/src/android/content/pm/cts/
DLauncherAppsForHiddenProfilesTest.java235 private void assertCallbacksPropagation(UserReference targetUser, boolean received) { in assertCallbacksPropagation() argument
243 .isEqualTo(received); in assertCallbacksPropagation()
245 .isEqualTo(received); in assertCallbacksPropagation()
247 .isEqualTo(received); in assertCallbacksPropagation()
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceSensorManagerTest.java258 private void assertSensorDataEquals(float[] expected, float[] received) { in assertSensorDataEquals() argument
260 expected.length, received.length); in assertSensorDataEquals()
262 assertEquals("Data index[" + i + "] not match", expected[i], received[i], TOLERANCE); in assertSensorDataEquals()
/cts/tests/media/jni/
DNativeExtractorTest.cpp432 AMediaCodecBufferInfo received; in checkSeekPoints() local
435 setSampleInfo(extractor, &received); in checkSeekPoints()
436 if (!isSampleInfoIdentical(&arg->mExpected, &received)) { in checkSeekPoints()
437 ALOGE(" flags exp/got: %d / %d", arg->mExpected.flags, received.flags); in checkSeekPoints()
438 ALOGE(" size exp/got: %d / %d ", arg->mExpected.size, received.size); in checkSeekPoints()
440 received.presentationTimeUs); in checkSeekPoints()
/cts/tests/net/src/android/net/cts/
DLocalSocketTest.java379 final byte[] received = Arrays.copyOfRange(recvBytes, 0, numBytes); in sendAndReceiveBytes()
380 assertArrayEquals(received, sendBytes); in sendAndReceiveBytes()
/cts/tests/location/location_fine/src/android/location/cts/fine/
DLocationManagerFineTest.java1491 Location received = capture.getNextLocation(TIMEOUT_MS); in testSetTestProviderLocation() local
1492 assertThat(received).isEqualTo(loc1); in testSetTestProviderLocation()
1493 assertThat(received.isMock()).isTrue(); in testSetTestProviderLocation()
1563 Location received = capture.getLocation(TIMEOUT_MS); in testSetTestProviderLocation_B33091107() local
1564 assertThat(received).isEqualTo(loc); in testSetTestProviderLocation_B33091107()
1565 assertThat(received.isMock()).isTrue(); in testSetTestProviderLocation_B33091107()
/cts/tests/media/src/android/mediav2/cts/
DExtractorTest.java1015 MediaCodec.BufferInfo received = new MediaCodec.BufferInfo();
1018 received.set(0, (int) extractor.getSampleSize(), extractor.getSampleTime(),
1020 if (!isSampleInfoIdentical(arg.mExpected, received)) {
1024 received.flags);
1026 " size exp/got: " + arg.mExpected.size + '/' + received.size);
1029 received.presentationTimeUs);
/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java885 … final SparseArray<Parcelable> received = mBundle.getSparseParcelableArray(KEY1, Parcelable.class); in testGetSparseParcelableArrayTypeSafe_withMixedTypes_returnsObject() local
886 assertEquals(original.size(), received.size()); in testGetSparseParcelableArrayTypeSafe_withMixedTypes_returnsObject()
887 assertEquals(original.get(42), received.get(42)); in testGetSparseParcelableArrayTypeSafe_withMixedTypes_returnsObject()
889 (ComposedParcelable) received.get(1961)); in testGetSparseParcelableArrayTypeSafe_withMixedTypes_returnsObject()

12