Searched refs:expectedCount (Results 1 - 22 of 22) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DBatteryStatsStopwatchTimerTest.java37 int expectedCount = 0;
45 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED));
47 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED));
49 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED));
51 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED));
56 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED));
63 expectedCount = 0; // count will be reset by reset()
64 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED));
67 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED));
72 expectedCount
[all...]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DListChangeRegistryTest.java82 final int expectedCount = 3;
93 assertEquals(expectedCount, count);
115 mListChangeRegistry.notifyChanged(null, expectedStart, expectedCount);
121 final int expectedCount = 3;
137 assertEquals(expectedCount, count);
154 mListChangeRegistry.notifyInserted(null, expectedStart, expectedCount);
161 final int expectedCount = 3;
183 assertEquals(expectedCount, count);
195 mListChangeRegistry.notifyMoved(null, expectedFrom, expectedTo, expectedCount);
201 final int expectedCount
[all...]
/frameworks/support/viewpager/src/androidTest/java/android/support/v4/testutils/
H A DTestUtilsAssertions.java32 public static ViewAssertion hasDisplayedChildren(final int expectedCount) { argument
53 if (childrenDisplayedCount != expectedCount) {
54 throw new AssertionError("Expected " + expectedCount
H A DTestUtilsMatchers.java247 int expectedCount = expectedValues.length;
249 if (actualCount != expectedCount) {
250 mFailedDescription = "Expected " + expectedCount + " values, but got " +
255 for (int i = 0; i < expectedCount; i++) {
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/
H A DAlertDialogCursorTest.java170 final int expectedCount = expectedContent.length;
178 assertEquals("List has " + expectedCount + " entries",
179 expectedCount, listAdapter.getCount());
183 for (int i = 0; i < expectedCount; i++) {
193 int indexToClick = expectedCount - 2;
229 final int expectedCount = expectedContent.length;
235 assertEquals("List has " + expectedCount + " entries",
236 expectedCount, listAdapter.getCount());
238 for (int i = 0; i < expectedCount; i++) {
257 final int expectedCount
[all...]
H A DAlertDialogTest.java429 final int expectedCount = expectedContent.length;
437 assertEquals("List has " + expectedCount + " entries",
438 expectedCount, listAdapter.getCount());
439 for (int i = 0; i < expectedCount; i++) {
445 for (int i = 0; i < expectedCount; i++) {
453 int indexToClick = expectedCount - 2;
515 final int expectedCount = expectedContent.length;
521 assertEquals("List has " + expectedCount + " entries",
522 expectedCount, listAdapter.getCount());
523 for (int i = 0; i < expectedCount;
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DGraphicsStatsServiceTests.cpp92 int expectedCount, expectedBucket; local
94 expectedCount = ((i % 10) + 1) * 2;
98 expectedCount = (temp % 5) + 1;
101 EXPECT_EQ(expectedCount, loadedProto.histogram().Get(i).frame_count());
148 int expectedCount, expectedBucket; local
150 expectedCount = ((i % 10) + 1) * 2;
151 expectedCount += (i % 5) + 1;
155 expectedCount = (temp % 5) + 1;
156 expectedCount += ((temp % 10) + 1) * 2;
159 EXPECT_EQ(expectedCount, loadedProt
[all...]
H A DBakedOpDispatcherTests.cpp269 int expectedCount = 2; local
270 if (debugLayersUpdates || debugOverdraw) expectedCount++;
271 if (debugOverdraw) expectedCount += 4;
272 EXPECT_EQ(expectedCount, glopCount);
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
H A DAccessibilityEventTest.java103 static void assertNoNewNonStaticFieldsAdded(Class<?> clazz, int expectedCount) { argument
116 assertEquals(message, expectedCount, nonStaticFieldCount);
/frameworks/native/libs/ui/tests/
H A DRegion_test.cpp48 void checkTJunctionFreeFromRegion(const Region& original, int expectedCount = -1) {
51 if (expectedCount != -1) {
52 EXPECT_EQ(modified.end() - modified.begin(), expectedCount);
/frameworks/support/content/src/androidTest/java/androidx/contentpager/content/
H A DTestQueryCallback.java60 public void reset(int expectedCount) throws InterruptedException { argument
61 mQueryLatch = new CollectorLatch<>(expectedCount);
62 mReplyLatch = new CollectorLatch<>(expectedCount);
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DAsyncListDifferTest.kt238 val expectedCount = intArrayOf(0)
245 assertEquals(expectedCount[0], differAccessor[0]!!.currentList.size)
249 assertEquals(expectedCount[0], differAccessor[0]!!.currentList.size)
265 expectedCount[0] = 3
271 expectedCount[0] = 6
278 expectedCount[0] = 0
H A DAsyncListUtilTest.java170 final int expectedCount,
176 assertEquals(message, expectedCount, getLoadedItemCount(position, count));
169 assertLoadedItemsOnUiThread(final String message, final int expectedCount, final int position, final int count) argument
/frameworks/native/services/surfaceflinger/tests/unittests/
H A DEventThreadTest.cpp72 nsecs_t expectedTimestamp, unsigned expectedCount);
73 void expectVsyncEventReceivedByConnection(nsecs_t expectedTimestamp, unsigned expectedCount);
152 nsecs_t expectedTimestamp, unsigned expectedCount) {
161 EXPECT_EQ(expectedCount, event.vsync.count)
166 unsigned expectedCount) {
169 expectedCount);
150 expectVsyncEventReceivedByConnection( const char* name, ConnectionEventRecorder& connectionEventRecorder, nsecs_t expectedTimestamp, unsigned expectedCount) argument
165 expectVsyncEventReceivedByConnection(nsecs_t expectedTimestamp, unsigned expectedCount) argument
/frameworks/support/paging/runtime/src/androidTest/java/androidx/paging/
H A DAsyncPagedListDifferTest.kt253 val expectedCount = intArrayOf(0)
259 assertEquals(expectedCount[0], differAccessor[0]!!.itemCount)
263 assertEquals(expectedCount[0], differAccessor[0]!!.itemCount)
283 expectedCount[0] = 5
289 expectedCount[0] = 10
296 expectedCount[0] = 0
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
H A DRadialPickerLayout.java355 int expectedCount = 8;
362 if (count == expectedCount) {
365 expectedCount = 7;
367 expectedCount = 14;
369 expectedCount = 4;
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DCallbackRegistryTest.java215 int expectedCount = Math.min(i + 1, deepNotifyCount.length - i);
216 assertEquals(expectedCount, deepNotifyCount[i]);
/frameworks/data-binding/compiler/src/test/java/android/databinding/
H A DCallbackRegistryTest.java219 int expectedCount = Math.min(i + 1, deepNotifyCount.length - i);
220 assertEquals(expectedCount, deepNotifyCount[i]);
/frameworks/base/core/java/android/widget/
H A DRadialTimePickerView.java247 int expectedCount = 8;
254 if (count == expectedCount) {
257 expectedCount = 7;
259 expectedCount = 14;
261 expectedCount = 4;
/frameworks/base/core/tests/coretests/src/android/content/
H A DContentProviderOperationTest.java431 ContentProviderOperation.Builder builder, Integer expectedCount)
436 field.set(builder, expectedCount);
430 builderSetExpectedCount( ContentProviderOperation.Builder builder, Integer expectedCount) argument
/frameworks/base/core/java/android/util/proto/
H A DProtoOutputStream.java2291 final long expectedCount = expectedFlags & FIELD_COUNT_MASK;
2298 || !((fieldCount == expectedCount)
2300 && expectedCount == FIELD_COUNT_REPEATED))) {
2310 sb.append(getFieldCountString(expectedCount));
2335 sb.append(getFieldCountString(expectedCount));
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 115 milliseconds