/frameworks/minikin/tests/unittest/ |
LayoutTest.cpp | 71 std::vector<float> expectedValues; 90 expectedValues.resize(text.size()); 91 for (size_t i = 0; i < expectedValues.size(); ++i) { 92 expectedValues[i] = 10.0f; 94 expectAdvances(expectedValues, advances, kMaxAdvanceLength); 109 expectedValues.resize(text.size()); 110 for (size_t i = 0; i < expectedValues.size(); ++i) { 111 expectedValues[i] = 10.0f; 113 expectAdvances(expectedValues, advances, kMaxAdvanceLength); 128 expectedValues.resize(text.size()) [all...] |
/external/google-benchmark/test/ |
multiple_ranges_test.cc | 9 : expectedValues({{1, 3, 5}, 32 assert(expectedValues.find(ranges) != expectedValues.end()); 38 assert(actualValues.size() == expectedValues.size()); 41 std::set<std::vector<int>> expectedValues;
|
/external/libcxx/utils/google-benchmark/test/ |
multiple_ranges_test.cc | 9 : expectedValues({{1, 3, 5}, 32 assert(expectedValues.find(ranges) != expectedValues.end()); 38 assert(actualValues.size() == expectedValues.size()); 41 std::set<std::vector<int>> expectedValues;
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
SmsMessageBodyTest.java | 496 int[] expectedValues = new int[6]; 530 ch.fillData(j, false, expectedValues, i); 531 if (expectedValues[3] == SmsConstants.ENCODING_7BIT) { 534 callGsmLengthMethods(sb, false, expectedValues); 536 ch.fillData(j, true, expectedValues, i); 537 callGsmLengthMethods(sb, true, expectedValues); 555 int[] expectedValues) 559 assertEquals("msgCount", expectedValues[0], values[0]); 560 assertEquals("codeUnitCount", expectedValues[1], values[1]); 561 assertEquals("codeUnitsRemaining", expectedValues[2], values[2]) [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
ListMultimapRemoveTester.java | 65 List<V> expectedValues = copyToList(values); 68 expectedValues.remove(i); 70 assertGet(k, expectedValues); 85 List<V> expectedValues = copyToList(values); 89 expectedValues.remove(i); 91 assertGet(k, expectedValues); 106 List<V> expectedValues = copyToList(values); 111 expectedValues.remove(i); 113 assertGet(k, expectedValues);
|
ListMultimapPutTester.java | 46 List<V> expectedValues = Helpers.copyToList(values); 49 expectedValues.add(value); 51 assertGet(key, expectedValues); 69 List<V> expectedValues = copyToList(values); 72 expectedValues.add(v); 73 assertGet(k, expectedValues);
|
ListMultimapPutAllTester.java | 45 List<V> expectedValues = copyToList(multimap().get(k)); 48 expectedValues.addAll(values); 50 assertGet(k, expectedValues);
|
SetMultimapPutAllTester.java | 47 Set<V> expectedValues = copyToSet(multimap().get(k)); 50 expectedValues.addAll(valuesToPut); 52 assertGet(k, expectedValues);
|
SetMultimapPutTester.java | 59 Set<V> expectedValues = copyToSet(values); 62 assertEquals(expectedValues, values); 63 assertGet(k, expectedValues);
|
MultimapAsMapTester.java | 50 List<V> expectedValues = new ArrayList<V>(); 53 expectedValues.add(entry.getValue()); 58 if (expectedValues.isEmpty()) { 61 assertThat(collection).has().exactlyAs(expectedValues);
|
/libcore/luni/src/test/java/libcore/io/ |
MemoryTest.java | 60 private void assertIntsEqual(int[] expectedValues, long ptr, boolean swap) { 61 for (int i = 0; i < expectedValues.length; ++i) { 62 assertEquals(expectedValues[i], Memory.peekInt(ptr + SizeOf.INT * i, swap)); 101 private void assertLongsEqual(long[] expectedValues, long ptr, boolean swap) { 102 for (int i = 0; i < expectedValues.length; ++i) { 103 assertEquals(expectedValues[i], Memory.peekLong(ptr + SizeOf.LONG * i, swap)); 139 private void assertShortsEqual(short[] expectedValues, long ptr, boolean swap) { 140 for (int i = 0; i < expectedValues.length; ++i) { 141 assertEquals(expectedValues[i], Memory.peekShort(ptr + SizeOf.SHORT * i, swap));
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
TvContractTest.java | 269 private static void verifyStringColumn(Cursor cursor, ContentValues expectedValues, 271 if (expectedValues.containsKey(columnName)) { 272 assertEquals(expectedValues.getAsString(columnName), 277 private static void verifyIntegerColumn(Cursor cursor, ContentValues expectedValues, 279 if (expectedValues.containsKey(columnName)) { 280 assertEquals(expectedValues.getAsInteger(columnName).intValue(), 285 private static void verifyLongColumn(Cursor cursor, ContentValues expectedValues, 287 if (expectedValues.containsKey(columnName)) { 288 assertEquals(expectedValues.getAsLong(columnName).longValue(), 293 private static void verifyBlobColumn(Cursor cursor, ContentValues expectedValues, [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
DatabaseAsserts.java | 141 * contained in <code>expectedValues</code> in order for the assert to pass. 142 * @param expectedValues - Array of {@link ContentValues} which the cursor returned from the 146 ContentValues... expectedValues) { 147 assertStoredValuesInUriMatchExactly(resolver, uri, null, null, null, null, false, expectedValues); 157 * contained in <code>expectedValues</code> in order for the assert to pass. 163 * @param expectedValues - Array of {@link ContentValues} which the cursor returned from the 168 boolean inOrder, ContentValues... expectedValues) { 172 assertCursorValuesMatchExactlyInOrder(cursor, expectedValues); 174 assertCursorValuesMatchExactly(cursor, expectedValues); 187 * @param expectedValues - Array of ContentValues that the cursor should be expected t [all...] |
ContactsContract_DataUsageTest.java | 165 private void assertDataUsageEquals(long[] dataIds, int... expectedValues) { 166 if (dataIds.length != expectedValues.length) { 167 throw new IllegalArgumentException("dataIds and expectedValues must be the same size"); 171 assertDataUsageEquals(dataIds[i], expectedValues[i]);
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
TrustAgentInfoTest.java | 158 Set<String> expectedValues = new HashSet<>(); 161 expectedValues.add(BUNDLE_CHILD_VALUE); 164 expectedValues.add(BUNDLE_PARENT_VALUE); 167 expectedValues.add(BUNDLE_PARENT_VALUE); 168 expectedValues.add(BUNDLE_CHILD_VALUE); 176 MoreAsserts.assertEquals(expectedValues, actualValues);
|
/frameworks/support/core-ui/tests/java/android/support/v4/testutils/ |
TestUtilsMatchers.java | 234 public static Matcher<List<Integer>> matches(final int ... expectedValues) { 246 int expectedCount = expectedValues.length; 257 if (curr != expectedValues[i]) { 259 expectedValues[i];
|
/external/guice/core/test/com/google/inject/ |
BinderTestSuite.java | 79 .expectedValues(new PlainA(1), new PlainA(1), new PlainA(1)) 95 .expectedValues(new PlainA(201), new PlainA(201), new PlainA(202), new PlainA(202)) 200 .expectedValues(new PlainA(201), new PlainA(201), new PlainA(202), new PlainA(202)) 254 builder.expectedValues(new PlainA(101), new PlainA(101), new PlainA(101)); 264 builder.expectedValues(new PlainA(201), new PlainA(201), new PlainA(201)); 273 builder.expectedValues(new PlainA(201), new PlainA(201), new PlainA(201)); 282 builder.expectedValues(new PlainA(201), new PlainA(201), new PlainA(202), new PlainA(202)); 291 builder.expectedValues(new PlainA(201), new PlainA(201), new PlainA(202), new PlainA(202)); 313 private List<Object> expectedValues = Lists.<Object>newArrayList( 356 private <T> Builder expectedValues(T... values) [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
BaseContactsProvider2Test.java | [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
SpliteratorsTest.java | 102 ArrayList<String> expectedValues = new ArrayList<>(Arrays.asList(array)); 109 SpliteratorTester.runBasicIterationTests(sp, expectedValues); 115 SpliteratorTester.runBasicSplitTests(sp, expectedValues, String::compareTo); 130 ArrayList<String> expectedValues = new ArrayList<>( 138 SpliteratorTester.runBasicIterationTests(sp, expectedValues); 144 SpliteratorTester.runBasicSplitTests(sp, expectedValues, String::compareTo); 443 ArrayList<String> expectedValues = new ArrayList<>(Arrays.asList(array)); 452 SpliteratorTester.runBasicIterationTests(sp, expectedValues); 458 SpliteratorTester.runBasicSplitTests(sp, expectedValues, String::compareTo); 474 ArrayList<String> expectedValues = new ArrayList<>(asList) [all...] |
HashMapTest.java | 120 ArrayList<Integer> expectedValues = new ArrayList<>( 124 SpliteratorTester.runBasicIterationTests(values.spliterator(), expectedValues); 125 SpliteratorTester.runBasicSplitTests(values, expectedValues);
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
MeanVerification.java | 193 private ExpectedValuesAndThresholds(float[] expectedValues, 196 mExpectedValues = expectedValues;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
NetworkManagementInternalTest.java | 133 final ArrayMap<Integer, Boolean> expectedValues = expected.get(chain); 138 expectedValues.get(state), mNmi.isNetworkRestrictedForUid(TEST_UID));
|
/external/guava/guava-tests/test/com/google/common/collect/ |
MapsTransformValuesTest.java | 87 // Assert that expectedValues > mapValues and that 88 // mapValues > expectedValues; i.e. that expectedValues == mapValues. 89 Collection<?> expectedValues = expected.values(); 91 assertEquals(expectedValues.size(), mapValues.size()); 92 assertTrue(expectedValues.containsAll(mapValues)); 93 assertTrue(mapValues.containsAll(expectedValues));
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
Camera2SurfaceViewTestCase.java | 328 List<T> expectedValues = new ArrayList<T>(); 329 expectedValues.add(expectedValue); 330 waitForAnyResultValue(listener, resultKey, expectedValues, numResultsWait); 342 * @param expectedValues The list of result value need to be waited for, 351 List<T> expectedValues, int numResultsWait) { 352 if (numResultsWait < 0 || listener == null || expectedValues == null) { 354 "Input must be non-negative number and listener/expectedValues " 363 for ( T expectedValue : expectedValues) { 375 "Unable to get the expected result value " + expectedValues + " for key " + [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
Camera2SurfaceViewTestCase.java | 349 List<T> expectedValues = new ArrayList<T>(); 350 expectedValues.add(expectedValue); 351 waitForAnyResultValue(listener, resultKey, expectedValues, numResultsWait); 363 * @param expectedValues The list of result value need to be waited for, 372 List<T> expectedValues, int numResultsWait) { 373 if (numResultsWait < 0 || listener == null || expectedValues == null) { 375 "Input must be non-negative number and listener/expectedValues " 384 for ( T expectedValue : expectedValues) { 396 "Unable to get the expected result value " + expectedValues + " for key " + [all...] |