/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
H A D | ImportTestProvider.java | 126 Log.d("@@@", "actual : " 211 final ContentValues expected, final ContentValues actual) { 212 if (expected == actual) { 214 } else if (expected == null || actual == null || expected.size() != actual.size()) { 221 if (!actual.containsKey(key)) { 227 final Object actualValue = actual.get(key); 210 equalsForContentValues( final ContentValues expected, final ContentValues actual) argument
|
/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | DownloadManagerBaseTest.java | 344 * @param actual The file of whose contents to verify 348 protected void verifyFileContents(ParcelFileDescriptor actual, byte[] expected) argument 350 AutoCloseInputStream input = new ParcelFileDescriptor.AutoCloseInputStream(actual); 351 long fileSize = actual.getStatSize(); 364 * @param actual The array whose data we want to verify 367 protected void compareByteArrays(byte[] actual, byte[] expected) { argument 368 assertEquals(actual.length, expected.length); 369 int length = actual.length; 372 if (actual[i] != expected[i]) { 386 byte[] actual [all...] |
/frameworks/base/libs/androidfw/ |
H A D | Asset.cpp | 439 size_t actual; local 466 actual = count; 471 actual = count; 488 actual = fread(buf, 1, count, mFp); 489 if (actual == 0) // something failed -- I/O error? 492 assert(actual == count); 495 mOffset += actual; 496 return actual; 763 size_t actual; local 769 actual [all...] |
H A D | ObbFile.cpp | 130 ssize_t actual; local 137 actual = TEMP_FAILURE_RETRY(read(fd, footer, kFooterTagSize)); 138 if (actual != kFooterTagSize) { 179 actual = TEMP_FAILURE_RETRY(read(fd, scanBuf, footerSize)); 181 if (actual != (ssize_t)footerSize) {
|
H A D | BackupData.cpp | 203 #define CHECK_SIZE(actual, expected) \ 205 if ((actual) != (expected)) { \ 206 if ((actual) == 0) { \ 212 long(actual), long(expected), __LINE__, strerror(m_status)); \
|
/frameworks/native/libs/utils/ |
H A D | ZipFileRO.cpp | 211 ssize_t actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, sizeof(int32_t))); local 212 if (actual != (ssize_t) sizeof(int32_t)) { 250 actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, readAmount)); 251 if (actual != (ssize_t) readAmount) { 253 (ZD_TYPE) actual, (ZD_TYPE) readAmount, strerror(errno)); 535 * the actual data starts. 562 ssize_t actual = local 565 if (actual != sizeof(lfhBuf)) { 593 ssize_t actual = local 595 if (actual ! 774 ssize_t actual = TEMP_FAILURE_RETRY(write(fd, ptr, uncompLen)); local [all...] |
/frameworks/base/keystore/tests/src/android/security/ |
H A D | KeyStoreTest.java | 423 long actual = mKeyStore.getmtime(TEST_KEYNAME); 428 assertLessThan("Time should be close to current time", expectedBefore, actual); 429 assertGreaterThan("Time should be close to current time", expectedAfter, actual); 432 private static void assertLessThan(String explanation, long expectedBefore, long actual) { argument 433 if (actual >= expectedBefore) { 434 throw new AssertionFailedError(explanation + ": actual=" + actual 439 private static void assertGreaterThan(String explanation, long expectedAfter, long actual) { argument 440 if (actual <= expectedAfter) { 441 throw new AssertionFailedError(explanation + ": actual [all...] |
H A D | AndroidKeyStoreTest.java | 492 assertTrue("The expected set and actual set should be exactly equal", expectedSet.isEmpty()); 621 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_CA_1)); 623 assertEquals("Actual and retrieved certificates should be the same", actual, retrieved); 639 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_CA_1)); 642 mKeyStore.getCertificateAlias(actual)); 654 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_USER_1)); 657 mKeyStore.getCertificateAlias(actual)); 674 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_CA_1)); 677 mKeyStore.getCertificateAlias(actual)); 684 Certificate actual [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | ContainerEncryptionParamsTest.java | 62 ContainerEncryptionParams actual = ContainerEncryptionParams.CREATOR 65 assertEquals(ENC_ALGORITHM, actual.getEncryptionAlgorithm()); 67 if (!(actual.getEncryptionSpec() instanceof IvParameterSpec)) { 70 IvParameterSpec actualParams = (IvParameterSpec) actual.getEncryptionSpec(); 74 assertEquals(ENC_KEY, actual.getEncryptionKey()); 76 assertEquals(MAC_ALGORITHM, actual.getMacAlgorithm()); 78 assertNull(actual.getMacSpec()); 80 assertEquals(MAC_KEY, actual.getMacKey()); 82 assertTrue(Arrays.equals(MAC_TAG, actual.getMacTag())); 84 assertEquals(AUTHENTICATED_START, actual [all...] |
H A D | PackageManagerTests.java | 544 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/base/core/tests/coretests/src/android/util/ |
H A D | DayOfMonthCursorTest.java | 150 private void assertArraysEqual(int[] expected, int[] actual) { argument 151 assertEquals("array length", expected.length, actual.length); 154 expected[i], actual[i]);
|
H A D | MonthDisplayHelperTest.java | 201 private void assertArraysEqual(int[] expected, int[] actual) { argument 202 assertEquals("array length", expected.length, actual.length); 205 expected[i], actual[i]);
|
/frameworks/base/test-runner/tests/src/android/test/ |
H A D | InstrumentationTestRunnerTest.java | 176 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 D | TestSuiteBuilderTest.java | 144 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/av/media/libstagefright/ |
H A D | FLACExtractor.cpp | 271 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 D | RecurrenceProcessorTest.java | 117 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 D | RRuleTest.java | 126 String[] actual = getFormattedDates(out, outCal, truncate); 130 while (k < actual.length && --limit >= 0) { 134 sb.append(actual[k]);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | MountServiceTests.java | 55 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 D | NetworkPolicyManagerServiceTest.java | 965 private static void assertTimeEquals(long expected, long actual) { argument 966 if (expected != actual) { 967 fail("expected " + formatTime(expected) + " but was actually " + formatTime(actual)); 977 private static void assertEqualsFuzzy(long expected, long actual, long fuzzy) { argument 980 if (actual < low || actual > high) { 981 fail("value " + actual + " is outside [" + low + "," + high + "]");
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
H A D | StorageManagerBaseTest.java | 103 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 D | ExpandHelper.java | 308 private float calculateGlow(float target, float actual) { argument 310 if (DEBUG_GLOW) Slog.d(TAG, "target: " + target + " actual: " + actual); 311 float stretch = Math.abs((target - actual) / mMaximumStretch);
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
H A D | DownloadManagerBaseTest.java | 547 int actual = cursor.getInt(index); 548 assertEquals(expected, actual);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
H A D | VideoEditorHelper.java | 106 * @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/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
H A D | LayoutTestsAutoTest.java | 220 // Write actual results to result directory. 248 // Gets the file which contains the actual results of running the test on 283 File actual = new File(actualResultFile); 285 if (actual.exists() && expected.exists()) {
|
/frameworks/av/services/camera/tests/CameraServiceTest/ |
H A D | CameraServiceTest.cpp | 59 const char *expr, int actual) { 62 INFO("(expected) %s != (actual) %d", expr, actual); 72 #define ASSERT_EQ(expected, actual) \ 74 int _x = (actual); \ 58 assert_eq_fail(const char *file, int line, const char *func, const char *expr, int actual) argument
|