/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | TimeUtilsTest.java | 450 private void assertFormatDuration(String expected, long duration) { argument 453 assertEquals("formatDuration(" + duration + ")", expected, sb.toString());
|
H A D | LruCacheTest.java | 122 } catch (IllegalArgumentException expected) { 131 } catch (NullPointerException expected) { 140 } catch (NullPointerException expected) { 261 } catch (IllegalStateException expected) { 275 } catch (IllegalStateException expected) { 350 } catch (NullPointerException expected) {
|
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | VelocityTest.java | 270 private void assertEqualFuzzy(float expected, float actual, float threshold) { argument 271 boolean fuzzyEqual = actual >= expected - threshold && actual <= expected + threshold; 272 Assert.assertTrue("Expected: <"+expected+"> but was: <"+actual+
|
/frameworks/compile/libbcc/runtime/test/Unit/ |
H A D | clzsi2_test.c | 23 int test__clzsi2(si_int a, si_int expected) argument 26 if (x != expected) 27 printf("error in __clzsi2(0x%X) = %d, expected %d\n", a, x, expected); 28 return x != expected;
|
H A D | ctzsi2_test.c | 23 int test__ctzsi2(si_int a, si_int expected) argument 26 if (x != expected) 27 printf("error in __ctzsi2(0x%X) = %d, expected %d\n", a, x, expected); 28 return x != expected;
|
/frameworks/base/libs/androidfw/ |
H A D | BackupData.cpp | 203 #define CHECK_SIZE(actual, expected) \ 205 if ((actual) != (expected)) { \ 212 long(actual), long(expected), __LINE__, strerror(m_status)); \
|
/frameworks/base/core/tests/coretests/src/android/accessibilityservice/ |
H A D | InterrogationActivityTest.java | 181 // make list of expected nodes 214 assertEquals("Did not get the expected node info", 452 AccessibilityNodeInfo expected = mUiTestAutomationBridge 455 AccessibilityNodeInfo parent = expected.getParent(); 459 expected = parent; 461 assertNotNull(expected); 463 assertEquals("The node with id \"root\" should be the root.", expected, fetched);
|
/frameworks/base/core/java/android/util/ |
H A D | JsonReader.java | 305 * Consumes {@code expected}. 307 private void expect(JsonToken expected) throws IOException { argument 309 if (token != expected) { 310 throw new IllegalStateException("Expected " + expected + " but was " + peek());
|
/frameworks/compile/libbcc/runtime/make/ |
H A D | util.mk | 84 # Function: AssertEqual variable expected-value 86 # Check that the value of a variable is 'expected-value'.
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | VerificationParamsTest.java | 48 VerificationParams expected = new VerificationParams(VERIFICATION_URI, ORIGINATING_URI, 52 expected.writeToParcel(parcel, 0);
|
H A D | ContainerEncryptionParamsTest.java | 54 ContainerEncryptionParams expected = new ContainerEncryptionParams(ENC_ALGORITHM, 59 expected.writeToParcel(parcel, 0);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
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 978 final long low = expected - fuzzy; 979 final long high = expected + fuzzy; 991 private static void assertNotificationType(int expected, String actualTag) { argument 993 Integer.toString(expected), actualTag.substring(actualTag.lastIndexOf(':') + 1));
|
/frameworks/support/volley/tests/src/com/android/volley/toolbox/ |
H A D | HttpHeaderParserTest.java | 148 private void assertEqualsWithin(long expected, long value, long fudgeFactor) { argument 149 long diff = Math.abs(expected - value);
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
H A D | StorageManagerBaseTest.java | 301 * @param expectedState The expected state resulting from trying to mount the OBB 381 * @param expectedState The expected state resulting from trying to mount the OBB 393 assertEquals("OBB mount state not what was expected!", expectedState, obbListener.state()); 404 assertEquals("Mount state is not what was expected!", expectedState, obbListener.state()); 462 * @param start The first int expected to be found in the file 463 * @param end The last int + 1 expected to be found in the file 493 * @param contents A {@link String} containing the expected contents of the file 504 String expected = null; 506 expected = textReader.readLine(); 507 if (!actual.equals(expected)) { [all...] |
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
H A D | LayoutTestsAutoTest.java | 156 // expected test results we use. 224 // Gets the file which contains WebKit's expected results for this test. 226 // The generic result is at <path>/<name>-expected.txt 228 // platform/android-<js-engine>/<path>/<name>-expected.txt 230 // platform/android/<path>/<name>-expected.txt 234 String genericExpectedResult = test.substring(0, pos) + "-expected.txt"; 271 Log.v("Layout test:", file + " no expected result"); 284 File expected = new File(expectedResultFile); 285 if (actual.exists() && expected.exists()) { 300 if (!expected [all...] |
/frameworks/av/media/libstagefright/wifi-display/sink/ |
H A D | RTPSink.cpp | 177 uint32_t expected = extMaxSeq - mBaseSeq + 1; local 179 int64_t lost = (int64_t)expected - (int64_t)mReceived; 186 uint32_t expectedInterval = expected - mExpectedPrior; 187 mExpectedPrior = expected;
|
/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | ContentProviderOperationTest.java | 93 // this is the expected case 111 ContentValues expected = new ContentValues(sTestValues1); 112 expected.put("a1", 103); 113 expected.put("a2", 101); 114 assertEquals(expected.toString(), values.toString());
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | SSLSocketTest.java | 256 fail("Oops - timeout expected."); 275 fail("Oops - timeout expected."); 295 fail("Oops - timeout expected."); 678 + " expected " + i + ", got " + j); 785 * usual sense, we just make sure that we got the expected certificates, 1021 List<String> expected = Arrays.asList( 1035 assertEquals(expected, cacheProxy.ops); 1045 expected = Arrays.asList( 1053 assertEquals(expected, cacheProxy.ops);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | TypedProperties.java | 82 ParseException(StreamTokenizer state, String expected) { argument 83 super("expected " + expected + ", saw " + state.toString());
|
/frameworks/base/core/java/android/os/ |
H A D | StrictMode.java | 1912 Integer expected = sExpectedActivityInstanceCount.get(klass); 1913 Integer newExpected = expected == null ? 1 : expected + 1; 1932 Integer expected = sExpectedActivityInstanceCount.get(klass); 1933 int newExpected = (expected == null || expected == 0) ? 0 : expected - 1;
|
/frameworks/base/keystore/tests/src/android/security/ |
H A D | AndroidKeyStoreTest.java | 457 * The amount of time to allow before and after expected time for variance 489 assertTrue("The alias should be in the expected set", expectedSet.contains(alias)); 492 assertTrue("The expected set and actual set should be exactly equal", expectedSet.isEmpty()); 711 Certificate[] expected = new Certificate[2]; 712 expected[0] = cf.generateCertificate(new ByteArrayInputStream(FAKE_USER_1)); 713 expected[1] = cf.generateCertificate(new ByteArrayInputStream(FAKE_CA_1)); 718 assertEquals("Returned certificate chain should be correct size", expected.length, 720 assertEquals("First certificate should be user certificate", expected[0], actual[0]); 721 assertEquals("Second certificate should be CA certificate", expected[1], actual[1]); 998 PrivateKeyEntry expected [all...] |
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
H A D | DownloadManagerBaseTest.java | 188 * @param size The expected size of the file 543 * @param expected The expected int value 545 private void verifyInt(Cursor cursor, String columnName, int expected) { argument 548 assertEquals(expected, actual);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
H A D | VideoEditorHelper.java | 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> " + mvi.getHeight(), 392 fileName + "<expected> " [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | MemoryFileTest.java | 113 } catch (IndexOutOfBoundsException expected) {
|
/frameworks/base/core/tests/coretests/src/android/net/http/ |
H A D | AbstractProxyTest.java | 235 } catch (IOException expected) {
|