Searched refs:actual (Results 26 - 50 of 52) sorted by relevance

123

/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
H A DRootsCacheTest.java117 private static void assertContainsExactly(List<?> expected, List<?> actual) { argument
118 assertEquals(expected.size(), actual.size());
120 assertTrue(actual.contains(o));
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3ZslStream.cpp296 nsecs_t actual = pinnedBuffer->getBufferItem().mTimestamp; local
298 if (actual != timestamp) {
300 " requested timestamp = %lld, actual timestamp = %lld",
301 __FUNCTION__, timestamp, actual);
307 *actualTimestamp = actual;
/frameworks/base/core/java/com/android/internal/net/
H A DNetworkStatsFactory.java243 public void assertEquals(NetworkStats expected, NetworkStats actual) { argument
244 if (expected.size() != actual.size()) {
246 "Expected size " + expected.size() + ", actual size " + actual.size());
253 actualRow = actual.getValues(i, actualRow);
256 "Expected row " + i + ": " + expectedRow + ", actual row " + actualRow);
/frameworks/base/libs/androidfw/
H A DBackupData.cpp203 #define CHECK_SIZE(actual, expected) \
205 if ((actual) != (expected)) { \
206 if ((actual) == 0) { \
212 long(actual), long(expected), __LINE__, strerror(m_status)); \
/frameworks/base/test-runner/tests/src/android/test/
H A DInstrumentationTestRunnerTest.java176 private void assertContentsInOrder(List<TestDescriptor> actual, TestDescriptor... source) { argument
178 assertEquals("Unexpected number of items.", clonedSource.length, actual.size());
179 for (int i = 0; i < actual.size(); i++) {
180 TestDescriptor actualItem = actual.get(i);
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
H A DTestSuiteBuilderTest.java144 private void assertContentsInOrder(List<String> actual, String... source) { argument
146 assertEquals("Unexpected number of items.", clonedSource.length, actual.size());
147 for (int i = 0; i < actual.size(); i++) {
148 String actualItem = actual.get(i);
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiScrollable.java293 Rect actual = childObject.getBounds();
295 if (visible.width() * visible.height() == actual.width() * actual.height()) {
303 shouldSwipeForward = actual.top == visible.top;
307 shouldSwipeForward = actual.left == visible.left;
/frameworks/uiautomator/src/com/android/uiautomator/core/
H A DUiScrollable.java293 Rect actual = childObject.getBounds();
295 if (visible.width() * visible.height() == actual.width() * actual.height()) {
303 shouldSwipeForward = actual.top == visible.top;
307 shouldSwipeForward = actual.left == visible.left;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DCameraMetadataTest.java218 private static <T> void assertArrayEquals(T expected, T actual) { argument
219 assertEquals(Array.getLength(expected), Array.getLength(actual));
223 assertEquals(Array.get(expected, i), Array.get(actual, i));
236 T actual = mMetadata.get(key);
237 assertEquals(value, actual);
501 String actual = mMetadata.get(gpsProcessingMethodKey);
502 assertEquals(helloWorld, actual);
528 <T> void compareGeneric(T expected, T actual) { argument
529 assertEquals(expected, actual);
/frameworks/av/media/libstagefright/
H A DFLACExtractor.cpp271 ssize_t actual = mDataSource->readAt(mCurrentPos, buffer, requested); local
272 if (0 > actual) {
275 } else if (0 == actual) {
280 assert(actual <= requested);
281 *bytes = actual;
282 mCurrentPos += actual;
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
H A DRecurrenceProcessorTest.java117 String[] actual = getFormattedDates(out, outCal);
122 printLists(expected, actual);
126 + " actual=" + count);
130 String s = actual[i];
134 printLists(expected, actual);
138 + expected[i] + " actual=" + actual[i]);
164 printLists(expected, actual);
169 + " actual=" + lastStr);
H A DRRuleTest.java126 String[] actual = getFormattedDates(out, outCal, truncate);
130 while (k < actual.length && --limit >= 0) {
134 sb.append(actual[k]);
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c128 ssize_t actual = pipeWriter->write(ptr, (size_t) count); local
129 if (actual < 0) {
132 if ((sf_count_t) actual < count) {
135 ptr += actual * sfinfo.channels;
136 count -= actual;
137 total += actual;
H A Dplaybq.cpp128 ssize_t actual = pipeWriter->write(ptr, (size_t) count); local
129 if (actual < 0) {
132 if ((sf_count_t) actual < count) {
135 ptr += actual * sfinfo.channels;
136 count -= actual;
137 total += actual;
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DMountServiceTests.java55 private static void assertStartsWith(String message, String prefix, String actual) { argument
56 if (!actual.startsWith(prefix)) {
57 throw new ComparisonFailure(message, prefix, actual);
H A DNetworkPolicyManagerServiceTest.java985 private static void assertTimeEquals(long expected, long actual) { argument
986 if (expected != actual) {
987 fail("expected " + formatTime(expected) + " but was actually " + formatTime(actual));
997 private static void assertEqualsFuzzy(long expected, long actual, long fuzzy) { argument
1000 if (actual < low || actual > high) {
1001 fail("value " + actual + " is outside [" + low + "," + high + "]");
/frameworks/base/keystore/tests/src/android/security/
H A DKeyStoreTest.java658 long actual = mKeyStore.getmtime(TEST_KEYNAME);
663 assertLessThan("Time should be close to current time", expectedBefore, actual);
664 assertGreaterThan("Time should be close to current time", expectedAfter, actual);
667 private static void assertLessThan(String explanation, long expectedBefore, long actual) { argument
668 if (actual >= expectedBefore) {
669 throw new AssertionFailedError(explanation + ": actual=" + actual
674 private static void assertGreaterThan(String explanation, long expectedAfter, long actual) { argument
675 if (actual <= expectedAfter) {
676 throw new AssertionFailedError(explanation + ": actual
[all...]
H A DAndroidKeyStoreTest.java1123 assertTrue("The expected set and actual set should be exactly equal", expectedSet.isEmpty());
1278 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1));
1280 assertEquals("Actual and retrieved certificates should be the same", actual, retrieved);
1301 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1));
1304 mKeyStore.getCertificateAlias(actual));
1321 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_USER_1));
1324 mKeyStore.getCertificateAlias(actual));
1346 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1));
1349 mKeyStore.getCertificateAlias(actual));
1359 Certificate actual
[all...]
/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageManagerBaseTest.java103 assertEquals("Expected and actual OBB file paths differ!", mObbFilePath,
142 * This is not the mount path, but the normalized path to the actual OBB file
222 * Helper to copy a raw resource file to an actual specified file
382 * @return A {@link String} representing the actual normalized path to OBB file that was
503 String actual = null;
505 while ((actual = fileReader.readLine()) != null) {
507 if (!actual.equals(expected)) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DExpandHelper.java307 private float calculateGlow(float target, float actual) { argument
309 if (DEBUG_GLOW) Log.d(TAG, "target: " + target + " actual: " + actual);
310 float stretch = Math.abs((target - actual) / mMaximumStretch);
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
H A DDownloadManagerBaseTest.java547 int actual = cursor.getInt(index);
548 assertEquals(expected, actual);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DVideoEditorHelper.java106 * @param actual data
109 public boolean checkRange(long expected, long actual, long rangePercent) { argument
111 range = (100 * actual) / expected;
325 "\t<expected> " + vCodec + "\t<actual> " + mvi.getVideoType(),
331 "\t<expected> " + export_height + "\t<actual> " + mvi.getHeight(),
338 "<expected> " + (startTime + endTime) + "\t<actual> " +
346 "<expected> " + (endTime - startTime) + "\t<actual> " +
372 "\t<expected> " + vCodec + "\t<actual> " + mvi.getVideoType(),
379 "\t<expected> " + aCodec + "\t<actual> " + mvi.getAudioType(),
385 "\t<expected> " + export_height + "\t<actual> "
[all...]
/frameworks/uiautomator/tests/CtsUiAutomatorTest/src/com/android/uiautomator/tests/cts/
H A DCtsUiAutomatorTest.java946 * Detect if actual value is within the allowable margin of error of the expected value.
948 * Used essentially with actual values that may vary from the expected values such in the
954 * @param actual
955 * @return true if actual is within the allowed range from expected
957 private boolean withinMarginOfError(float marginPrecent, int expected, int actual) { argument
959 return actual >= expected - m && actual <= expected + m;
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageManagerTests.java544 private static void assertStartsWith(String prefix, String actual) { argument
545 assertStartsWith("", prefix, actual);
548 private static void assertStartsWith(String description, String prefix, String actual) { argument
549 if (!actual.startsWith(prefix)) {
554 sb.append(actual);
1165 String actual = getMs().getVolumeState(mPath);
1166 if (desired.equals(actual)) {
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp2493 ssize_t actual = teeSource->read(buffer, count, local
2497 if (actual <= 0) {
2498 if (actual == (ssize_t) OVERRUN && wasFirstRead) {
2503 ALOG_ASSERT(actual <= (ssize_t)count);
2504 write(teeFd, buffer, actual * channelCount * sizeof(short));
2505 total += actual;

Completed in 1014 milliseconds

123