Home
last modified time | relevance | path

Searched refs:actual (Results 1 – 25 of 87) sorted by relevance

1234

/frameworks/base/test-runner/src/android/test/
DMoreAsserts.java44 public static void assertAssignableFrom(Class<?> expected, Object actual) { in assertAssignableFrom() argument
45 assertAssignableFrom(expected, actual.getClass()); in assertAssignableFrom()
53 public static void assertAssignableFrom(Class<?> expected, Class<?> actual) { in assertAssignableFrom() argument
56 " to be assignable from actual class " + actual.getCanonicalName(), in assertAssignableFrom()
57 expected.isAssignableFrom(actual)); in assertAssignableFrom()
65 String message, Object unexpected, Object actual) { in assertNotEqual() argument
66 if (equal(unexpected, actual)) { in assertNotEqual()
75 public static void assertNotEqual(Object unexpected, Object actual) { in assertNotEqual() argument
76 assertNotEqual(null, unexpected, actual); in assertNotEqual()
85 String message, byte[] expected, byte[] actual) { in assertEquals() argument
[all …]
DComparisonFailure.java28 public ComparisonFailure(String message, String expected, String actual) { in ComparisonFailure() argument
29 mComparison = new junit.framework.ComparisonFailure(message, expected, actual); in ComparisonFailure()
/frameworks/base/core/tests/coretests/src/android/util/
DBase64Test.java58 private void assertEquals(byte[] expected, int len, byte[] actual) { in assertEquals() argument
59 assertEquals(len, actual.length); in assertEquals()
61 assertEquals(expected[i], actual[i]); in assertEquals()
66 private void assertEquals(byte[] expected, int len, byte[] actual, int alen) { in assertEquals() argument
69 assertEquals(expected[i], actual[i]); in assertEquals()
74 private void assertEquals(byte[] expected, byte[] actual) { in assertEquals() argument
75 assertEquals(expected.length, actual.length); in assertEquals()
77 assertEquals(expected[i], actual[i]); in assertEquals()
326 byte[] actual = new byte[plain.length * 2]; in testInputStream()
336 while ((b = b64is.read(actual, ap, actual.length-ap)) != -1) { in testInputStream()
[all …]
DDayOfMonthCursorTest.java150 private void assertArraysEqual(int[] expected, int[] actual) { in assertArraysEqual() argument
151 assertEquals("array length", expected.length, actual.length); in assertArraysEqual()
154 expected[i], actual[i]); in assertArraysEqual()
DMonthDisplayHelperTest.java201 private void assertArraysEqual(int[] expected, int[] actual) { in assertArraysEqual() argument
202 assertEquals("array length", expected.length, actual.length); in assertArraysEqual()
205 expected[i], actual[i]); in assertArraysEqual()
/frameworks/base/core/tests/coretests/src/android/view/
DVelocityTest.java270 private void assertEqualFuzzy(float expected, float actual, float threshold) { in assertEqualFuzzy() argument
271 boolean fuzzyEqual = actual >= expected - threshold && actual <= expected + threshold; in assertEqualFuzzy()
272 Assert.assertTrue("Expected: <"+expected+"> but was: <"+actual+ in assertEqualFuzzy()
276 private void assertGreater(float minExpected, float actual) { in assertGreater() argument
277 Assert.assertTrue("Expected: minimum <"+minExpected+"> but was: <"+actual+">", in assertGreater()
278 actual > minExpected); in assertGreater()
281 private void assertLower(float maxExpected, float actual) { in assertLower() argument
282 Assert.assertTrue("Expected: maximum <"+maxExpected+"> but was: <"+actual+">", in assertLower()
283 actual < maxExpected); in assertLower()
/frameworks/base/libs/utils/
DAsset.cpp422 size_t actual; in read() local
449 actual = count; in read()
454 actual = count; in read()
471 actual = fread(buf, 1, count, mFp); in read()
472 if (actual == 0) // something failed -- I/O error? in read()
475 assert(actual == count); in read()
478 mOffset += actual; in read()
479 return actual; in read()
746 size_t actual; in read() local
752 actual = mZipInflater->read(buf, count); in read()
[all …]
DZipFileRO.cpp211 ssize_t actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, sizeof(int32_t))); in mapCentralDirectory() local
212 if (actual != (ssize_t) sizeof(int32_t)) { in mapCentralDirectory()
250 actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, readAmount)); in mapCentralDirectory()
251 if (actual != (ssize_t) readAmount) { in mapCentralDirectory()
253 (ZD_TYPE) actual, (ZD_TYPE) readAmount, strerror(errno)); in mapCentralDirectory()
543 ssize_t actual = in getEntryInfo() local
546 if (actual != sizeof(lfhBuf)) { in getEntryInfo()
574 ssize_t actual = in getEntryInfo() local
576 if (actual != sizeof(lfhBuf)) { in getEntryInfo()
755 ssize_t actual = write(fd, ptr, uncompLen); in uncompressEntry() local
[all …]
DObbFile.cpp139 ssize_t actual; in parseObbFile() local
146 actual = TEMP_FAILURE_RETRY(read(fd, footer, kFooterTagSize)); in parseObbFile()
147 if (actual != kFooterTagSize) { in parseObbFile()
188 actual = TEMP_FAILURE_RETRY(read(fd, scanBuf, footerSize)); in parseObbFile()
190 if (actual != (ssize_t)footerSize) { in parseObbFile()
DBackupData.cpp191 #define CHECK_SIZE(actual, expected) \ argument
193 if ((actual) != (expected)) { \
194 if ((actual) == 0) { \
200 long(actual), long(expected), __LINE__, strerror(m_status)); \
DREADME5 the Linux interface. That way the actual device runs as "light" as
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerBaseTest.java352 protected void verifyFileContents(ParcelFileDescriptor actual, byte[] expected) in verifyFileContents() argument
354 AutoCloseInputStream input = new ParcelFileDescriptor.AutoCloseInputStream(actual); in verifyFileContents()
355 long fileSize = actual.getStatSize(); in verifyFileContents()
371 protected void compareByteArrays(byte[] actual, byte[] expected) { in compareByteArrays() argument
372 assertEquals(actual.length, expected.length); in compareByteArrays()
373 int length = actual.length; in compareByteArrays()
376 if (actual[i] != expected[i]) { in compareByteArrays()
390 byte[] actual = new byte[FILE_BLOCK_READ_SIZE]; in verifyFileContents()
401 while (((actualRead = input.read(actual)) != -1) && in verifyFileContents()
404 compareByteArrays(actual, expected); in verifyFileContents()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/expandablelistview/
DPositionTesterContextMenuListener.java92 private boolean areEqual(String message, int expected, int actual) { in areEqual() argument
93 if (expected != actual) { in areEqual()
94 errorMessage = String.format(message + " (%d vs %d", expected, actual); in areEqual()
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
DDNParserTest.java48 String actual = new DNParser(new X500Principal(dn)).find(attrType); in checkFind() local
49 assertEquals("dn:" + dn + " attr:" + attrType, expected, actual); in checkFind()
DDomainNameValidatorTest.java135 Boolean actual = DomainNameValidator.match(certificate, thisDomain); in checkMatch() local
136 assertEquals(message, (Object) expected, (Object) actual); in checkMatch()
169 boolean actual = DomainNameValidator.matchDns(thisDomain, thatDomain); in checkMatchDns()
170 assertEquals(message, expected, actual); in checkMatchDns()
/frameworks/base/core/tests/coretests/src/android/pim/vcard/test_utils/
DImportTestProvider.java244 final ContentValues expected, final ContentValues actual) { in equalsForContentValues() argument
245 if (expected == actual) { in equalsForContentValues()
247 } else if (expected == null || actual == null || expected.size() != actual.size()) { in equalsForContentValues()
254 if (!actual.containsKey(key)) { in equalsForContentValues()
260 final Object actualValue = actual.get(key); in equalsForContentValues()
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
DTestSuiteBuilderTest.java144 private void assertContentsInOrder(List<String> actual, String... source) { in assertContentsInOrder() argument
146 assertEquals("Unexpected number of items.", clonedSource.length, actual.size()); in assertContentsInOrder()
147 for (int i = 0; i < actual.size(); i++) { in assertContentsInOrder()
148 String actualItem = actual.get(i); in assertContentsInOrder()
/frameworks/base/test-runner/tests/src/android/test/
DInstrumentationTestRunnerTest.java176 private void assertContentsInOrder(List<TestDescriptor> actual, TestDescriptor... source) { in assertContentsInOrder() argument
178 assertEquals("Unexpected number of items.", clonedSource.length, actual.size()); in assertContentsInOrder()
179 for (int i = 0; i < actual.size(); i++) { in assertContentsInOrder()
180 TestDescriptor actualItem = actual.get(i); in assertContentsInOrder()
/frameworks/base/core/tests/coretests/src/com/android/server/
DMountServiceTests.java53 private static void assertStartsWith(String message, String prefix, String actual) { in assertStartsWith() argument
54 if (!actual.startsWith(prefix)) { in assertStartsWith()
55 throw new ComparisonFailure(message, prefix, actual); in assertStartsWith()
/frameworks/base/tests/CoreTests/android/core/
DMathTest.java36 public static void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() argument
38 Assert.assertEquals(message, expected, actual, Math.ulp(expected)); in assertEquals()
40 Assert.assertEquals(message, expected, actual, delta); in assertEquals()
44 public static void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() argument
46 Assert.assertEquals(message, expected, actual, Math.ulp(expected)); in assertEquals()
48 Assert.assertEquals(message, expected, actual, delta); in assertEquals()
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerBaseTest.java503 String actual = null; in doValidateTextContents() local
505 while ((actual = fileReader.readLine()) != null) { in doValidateTextContents()
507 if (!actual.equals(expected)) { in doValidateTextContents()
/frameworks/base/docs/html/guide/market/billing/
Dbilling_testing.jd139actual in-app purchases. Testing real in-app purchases enables you to test the end-to-end in-app b…
143 <p>To test your in-app billing implementation with actual in-app purchases, you will need to regist…
147 …hat are made with test accounts, otherwise the purchases will show up as actual payouts to your me…
149 <p>To test your in-app billing implementation with actual purchases, follow these steps:</p>
/frameworks/base/services/camera/tests/CameraServiceTest/
DCameraServiceTest.cpp45 const char *expr, int actual) { in assert_eq_fail() argument
48 INFO("(expected) %s != (actual) %d", expr, actual); in assert_eq_fail()
58 #define ASSERT_EQ(expected, actual) \ argument
60 int _x = (actual); \
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
DLayoutTestsAutoTest.java279 File actual = new File(actualResultFile); in processResult() local
281 if (actual.exists() && expected.exists()) { in processResult()
/frameworks/base/docs/html/guide/publishing/
Dpreparing.jd26 <li>Test your application extensively on an actual device </li>
52 <h3 id="test">1. Test your application extensively on an actual device</h3>
66 on the actual device, under realistic network conditions. Testing your
79 on an actual target device before publishing it. </li>

1234