Searched refs:expected (Results 176 - 200 of 282) sorted by relevance

1234567891011>>

/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkPolicyManagerServiceTest.java1249 long expected) {
1253 assertEquals(expected, actualWarning);
1274 long expected) {
1278 assertEquals(expected, actualWarning);
1555 private static void assertTimeEquals(long expected, long actual) { argument
1556 if (expected != actual) {
1557 fail("expected " + formatTime(expected) + " but was actually " + formatTime(actual));
1567 private static void assertEqualsFuzzy(long expected, long actual, long fuzzy) { argument
1568 final long low = expected
1248 assertWarningBytesAsExpected(PersistableBundle config, long carrierWarningBytes, long expected) argument
1273 assertLimitBytesAsExpected(PersistableBundle config, long carrierWarningBytes, long expected) argument
1581 assertNotificationType(int expected, String actualTag) argument
1586 assertUidPolicy(int uid, int expected) argument
[all...]
H A DLockSettingsStorageTests.java345 private static void assertArrayEquals(byte[] expected, byte[] actual) { argument
346 if (!Arrays.equals(expected, actual)) {
347 fail("expected:<" + Arrays.toString(expected) +
/frameworks/base/tests/net/java/android/net/apf/
H A DApfTest.java101 private static void assertReturnCodesEqual(int expected, int got) { argument
102 assertEquals(label(expected), label(got));
105 private void assertVerdict(int expected, byte[] program, byte[] packet, int filterAge) { argument
106 assertReturnCodesEqual(expected, apfSimulate(program, packet, filterAge));
109 private void assertVerdict(int expected, byte[] program, byte[] packet) { argument
110 assertReturnCodesEqual(expected, apfSimulate(program, packet, 0));
129 private void assertVerdict(int expected, ApfGenerator gen, byte[] packet, int filterAge) argument
131 assertReturnCodesEqual(expected, apfSimulate(gen.generate(), packet, filterAge));
1018 private void verifyRaEvent(RaEvent expected) { argument
1022 if (!raEventEquals(expected, go
1259 assertEqualsIp(String expected, int got) argument
[all...]
/frameworks/base/services/tests/notification/src/com/android/server/notification/
H A DRankingHelperTest.java217 private void compareChannels(NotificationChannel expected, NotificationChannel actual) { argument
218 assertEquals(expected.getId(), actual.getId());
219 assertEquals(expected.getName(), actual.getName());
220 assertEquals(expected.getDescription(), actual.getDescription());
221 assertEquals(expected.shouldVibrate(), actual.shouldVibrate());
222 assertEquals(expected.shouldShowLights(), actual.shouldShowLights());
223 assertEquals(expected.getImportance(), actual.getImportance());
224 assertEquals(expected.getLockscreenVisibility(), actual.getLockscreenVisibility());
225 assertEquals(expected.getSound(), actual.getSound());
226 assertEquals(expected
233 compareGroups(NotificationChannelGroup expected, NotificationChannelGroup actual) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DLruCacheTest.java122 } 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/services/tests/servicestests/src/com/android/server/wm/
H A DTaskPositionerTests.java448 private void assertBoundsEquals(Rect expected, Rect actual) { argument
450 if (!expected.equals(actual)) {
455 assertEquals(expected.left, actual.left);
456 assertEquals(expected.right, actual.right);
457 assertEquals(expected.top, actual.top);
458 assertEquals(expected.bottom, actual.bottom);
/frameworks/minikin/tests/unittest/
H A DLayoutTest.cpp32 static void expectAdvances(std::vector<float> expected, float* advances, size_t length) { argument
33 EXPECT_LE(expected.size(), length);
34 for (size_t i = 0; i < expected.size(); ++i) {
35 EXPECT_EQ(expected[i], advances[i])
36 << i << "th element is different. Expected: " << expected[i]
39 EXPECT_EQ(UNTOUCHED_MARKER, advances[expected.size()]);
/frameworks/rs/script_api/
H A Drs_vector_math.spec126 The precision is what would be expected from doing the computation using 16 bit floating
144 The precision is what would be expected from doing the computation using 16 bit floating
165 The precision is what would be expected from doing the computation using 16 bit floating
/frameworks/support/compat/tests/java/android/support/v4/text/util/
H A DLinkifyCompatTest.java272 // expected behavior, passing null schemes array means: prepend defaultScheme to all links.
777 private static void verifyAddLinksWithWebUrlPartiallyMatches(String msg, String expected, argument
779 verifyAddLinksPartiallyMatches(msg, expected, url, Linkify.WEB_URLS);
790 private static void verifyAddLinksWithEmailPartiallyMatches(String msg, String expected, argument
792 verifyAddLinksPartiallyMatches(msg, expected, url, Linkify.EMAIL_ADDRESSES);
815 private static void verifyAddLinksPartiallyMatches(String msg, String expected, argument
821 assertEquals(msg, expected, spans[0].getURL().toString());
/frameworks/base/core/java/android/util/
H A DJsonReader.java305 * 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/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
H A DShortcutManagerTestUtils.java139 public static boolean resultContains(List<String> result, String expected) { argument
141 if (line.contains(expected)) {
155 public static List<String> assertContains(List<String> result, String expected) { argument
156 if (!resultContains(result, expected)) {
157 fail("Didn't contain expected string=" + expected
243 public static void anyContains(List<String> result, String expected) { argument
245 if (l.contains(expected)) {
249 fail("Result didn't contain '" + expected + "': was\n" + result);
438 final SortedSet<String> expected
[all...]
/frameworks/base/tests/Camera2Tests/CameraToo/tests/src/com/example/android/camera2/cameratoo/
H A DCameraTooTest.java96 private void assertOptimalSize(Size[] options, int minWidth, int minHeight, Size expected) { argument
98 assertEquals(String.format("Expected optimal size %s but got %s", expected, verdict),
99 verdict, expected);
/frameworks/base/tests/net/java/com/android/server/connectivity/
H A DIpConnectivityMetricsTest.java157 assertFalse("expected event to be dropped", logger.log(fakeTimestamp, ev));
451 static void assertEventsEqual(ConnectivityMetricsEvent expected, ConnectivityMetricsEvent got) { argument
452 assertEquals(expected.timestamp, got.timestamp);
453 assertEquals(expected.data, got.data);
/frameworks/support/transition/tests/src/android/support/transition/
H A DChangeImageTransformTest.java200 private void verifyMatrixMatches(Matrix expected, Matrix matrix) { argument
201 if (expected == null) {
207 expected.getValues(expectedValues);
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
H A DParallaxFloatEffectTest.java47 static void assertFloatEquals(float expected, float actual) { argument
48 org.junit.Assert.assertEquals((double) expected, (double) actual, 0.0001d);
132 @Test(expected=IllegalStateException.class)
H A DParallaxIntEffectTest.java44 static void assertFloatEquals(float expected, float actual) { argument
45 org.junit.Assert.assertEquals((double) expected, (double) actual, 0.0001d);
129 @Test(expected=IllegalStateException.class)
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/
H A DEmojiCompatTest.java103 @Test(expected = IllegalStateException.class)
123 @Test(expected = IllegalArgumentException.class)
129 @Test(expected = IllegalArgumentException.class)
134 @Test(expected = IllegalArgumentException.class)
139 @Test(expected = IllegalArgumentException.class)
144 @Test(expected = IllegalArgumentException.class)
395 @Test(expected = IllegalArgumentException.class)
502 // when function overrides config level replaceAll, a call to GlyphChecker is expected.
531 @Test(expected = NullPointerException.class)
536 @Test(expected
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DConnOnActivityStartTest.java279 private void assertRestrictBackground(String list, int uid, boolean expected) throws Exception { argument
289 if (expected == actual) {
293 Log.v(TAG, list + " check for uid " + uid + " doesn't match yet (expected "
294 + expected + ", got " + actual + "); sleeping 1s before polling again");
297 fail(list + " check for uid " + uid + " failed: expected " + expected + ", got " + actual
406 errors.append(String.format("External site connection failed: expected %s, got %s\n",
410 errors.append(String.format("Connection state mismatch: expected %s/%s, got %s/%s\n",
/frameworks/native/cmds/installd/tests/
H A Dinstalld_utils_test.cpp549 std::string expected = local
551 EXPECT_EQ(expected,
556 std::string expected = local
558 EXPECT_EQ(expected,
/frameworks/support/fragment/tests/java/android/support/v4/app/
H A DNestedFragmentTest.java73 @Test(expected = IllegalArgumentException.class)
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DVerificationParamsTest.java44 VerificationParams expected = new VerificationParams(VERIFICATION_URI, ORIGINATING_URI,
48 expected.writeToParcel(parcel, 0);
/frameworks/base/libs/hwui/tests/unit/
H A DGraphicsStatsServiceTests.cpp53 std::string expected = "/data/nativetest/hwui_unit_tests"; local
54 EXPECT_EQ(expected, findRootPath());
/frameworks/base/tools/aapt2/
H A DResourceValues_test.cpp172 std::unique_ptr<Style> expected = local
180 EXPECT_TRUE(a->Equals(expected.get()));
/frameworks/native/libs/vr/libpdx_uds/
H A Dclient_channel_tests.cpp141 int64_t expected = std::accumulate(data.begin(), data.end(), int64_t{0});
143 ASSERT_EQ(expected, client->Sum(data));
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DNetworkListStoreDataTest.java292 * correctly, matching the expected XML string.
319 * correctly, matching the expected XML string.
350 @Test(expected = XmlPullParserException.class)
415 @Test(expected = XmlPullParserException.class)

Completed in 683 milliseconds

1234567891011>>