Home
last modified time | relevance | path

Searched refs:getCount (Results 1 – 25 of 170) sorted by relevance

1234567

/cts/tests/tests/widget/src/android/widget/cts/
DArrayAdapterTest.java108 assertEquals(1, mArrayAdapter.getCount()); in testDataChangeEvent()
111 assertEquals(2, mArrayAdapter.getCount()); in testDataChangeEvent()
118 assertEquals(0, mArrayAdapter.getCount()); in testDataChangeEvent()
129 assertEquals(1, mArrayAdapter.getCount()); in testDataChangeEvent()
151 assertEquals(0, mArrayAdapter.getCount()); in testAccessView()
157 assertEquals(3, mArrayAdapter.getCount()); in testAccessView()
187 mArrayAdapter.getView(mArrayAdapter.getCount(), textView, null); in testGetViewOutOfBoundsHigh()
194 mArrayAdapter.getDropDownView(mArrayAdapter.getCount(), textView, null); in testDropDownGetViewOutOfBoundsHigh()
252 assertEquals(1, mArrayAdapter.getCount()); in testInsert()
257 assertEquals(2, mArrayAdapter.getCount()); in testInsert()
[all …]
DAbsSpinnerTest.java102 mAbsSpinner.setSelection(mAbsSpinner.getCount() - 1, false); in testSetSelectionIntBoolean()
103 assertEquals(mAbsSpinner.getCount() - 1, mAbsSpinner.getSelectedItemPosition()); in testSetSelectionIntBoolean()
125 mAbsSpinner.setSelection(mAbsSpinner.getCount() - 1); in testSetSelectionInt()
126 assertEquals(mAbsSpinner.getCount() - 1, mAbsSpinner.getSelectedItemPosition()); in testSetSelectionInt()
144 assertEquals(adapter.getCount(), mAbsSpinner.getCount()); in testAccessAdapter()
174 assertEquals(adapter1.getCount(), mAbsSpinner.getCount()); in testGetCount()
181 assertEquals(anotherStringArray.length, mAbsSpinner.getCount()); in testGetCount()
278 public int getCount() { in getCount() method in AbsSpinnerTest.MockSpinnerAdapter
/cts/tests/tests/os/src/android/os/health/cts/
DTimerStatTest.java37 Assert.assertEquals(0, timer.getCount()); in testEmptyConstructor()
48 Assert.assertEquals(Integer.MAX_VALUE, timer.getCount()); in testSetCount()
52 Assert.assertEquals(12, timer.getCount()); in testSetCount()
63 Assert.assertEquals(Integer.MAX_VALUE, timer.getCount()); in testSetTime()
67 Assert.assertEquals(Integer.MAX_VALUE, timer.getCount()); in testSetTime()
78 Assert.assertEquals(Integer.MAX_VALUE, timer.getCount()); in testParceling()
89 Assert.assertEquals(Integer.MAX_VALUE, readback.getCount()); in testParceling()
/cts/tests/tests/database/src/android/database/cts/
DDatabaseCursorTest.java174 assertSame(3, testCursor.getCount()); in testCursor1()
232 assertEquals(0, testCursor.getCount()); in testCursor2()
275 assertEquals(1, testCursor.getCount()); in testLargeField()
297 int count = c.getCount(); in onChanged()
340 assertEquals(count, testCursor.getCount()); in testManyRowsLong()
375 assertEquals(count, testCursor.getCount()); in testManyRowsTxt()
412 assertEquals(count, testCursor.getCount()); in testManyRowsTxtLong()
422 assertEquals(3, testCursor.getCount()); in testRequery()
425 assertEquals(3, testCursor.getCount()); in testRequery()
437 assertEquals(1, testCursor.getCount()); in testRequeryWithSelection()
[all …]
DMergeCursorTest.java79 assertEquals(0, mergeCursor.getCount()); in testConstructor()
85 assertEquals(mCursors[0].getCount() + mCursors[1].getCount(), mergeCursor.getCount()); in testConstructor()
107 assertEquals(1, cursors[0].getCount()); in testCursorSwiching()
110 assertTrue(cursors[1].getCount() > 0); in testCursorSwiching()
150 assertEquals(4, mergeCursor.getCount()); in testGetValues()
288 int cursor1Count = mCursors[0].getCount(); in testRequery()
289 int cursor2Count = mCursors[0].getCount(); in testRequery()
293 assertEquals(cursor1Count + cursor2Count, mergeCursor.getCount()); in testRequery()
296 assertEquals(cursor1Count + cursor2Count, mergeCursor.getCount()); in testRequery()
301 assertEquals(cursor1Count + cursor2Count, mergeCursor.getCount()); in testRequery()
DCursorJoinerTest.java88 assertEquals(TEST_ITEM_COUNT, cursor1.getCount()); in testCursorJoinerAndIterator()
89 assertEquals(TEST_ITEM_COUNT, cursor2.getCount()); in testCursorJoinerAndIterator()
116 assertEquals(UNIQUE_COUNT * 2, cursor1.getCount()); in testCursorJoinerAndIterator()
117 assertEquals(UNIQUE_COUNT * 2, cursor2.getCount()); in testCursorJoinerAndIterator()
140 assertEquals(TEST_ITEM_COUNT, cursor1.getCount()); in testNext()
142 assertEquals(TEST_ITEM_COUNT, cursor2.getCount()); in testNext()
DMatrixCursor_RowBuilderTest.java35 assertEquals(0, cursor.getCount()); in testAdd()
38 assertEquals(1, cursor.getCount()); in testAdd()
73 assertEquals(2, cursor.getCount()); in testAdd()
DDatabaseUtils_InsertHelperTest.java102 assertEquals(0, cursor.getCount()); in testInsert()
127 assertEquals(1, cursor.getCount()); in testInsert()
204 assertEquals(0, cursor.getCount()); in testReplace()
223 assertEquals(1, cursor.getCount()); in testReplace()
242 assertEquals(1, cursor.getCount()); in testReplace()
268 assertEquals(1, cursor.getCount()); in testReplace()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DLockedMessageTest.java83 assertThat(cursor.getCount()).isEqualTo(1); in testLockedMessage_atMostOneLockedMessage()
102 assertThat(mmsCursor.getCount()).isEqualTo(1); in testLockedMessage_getNoLockedMessage()
107 assertThat(smCursor.getCount()).isEqualTo(1); in testLockedMessage_getNoLockedMessage()
111 assertThat(cursor.getCount()).isEqualTo(0); in testLockedMessage_getNoLockedMessage()
120 assertThat(cursor.getCount()).isEqualTo(1); in insertMmsWithLockedMessage()
130 assertThat(cursorAfterReadUpdate.getCount()).isEqualTo(1); in insertMmsWithLockedMessage()
146 assertThat(cursor.getCount()).isEqualTo(1); in insertSmsWithLockedMessage()
156 assertThat(cursorAfterReadUpdate.getCount()).isEqualTo(1); in insertSmsWithLockedMessage()
DMmsTest.java85 assertThat(cursor.getCount()).isEqualTo(1); in testMmsInsert_insertSendReqSucceeds()
106 assertThat(cursor.getCount()).isEqualTo(0); in testMmsDelete()
135 assertThat(mmsCursor.getCount()).isEqualTo(1); in testMmsInsert_canInsertTextMms()
141 assertThat(partCursor.getCount()).isEqualTo(1); in testMmsInsert_canInsertTextMms()
166 assertThat(msgCursor.getCount()).isEqualTo(2); in testInsertMessageBoxUri_canSaveAndQueryMmsSent()
185 assertThat(msgCursor.getCount()).isEqualTo(2); in testInsertMessageBoxUri_canSaveAndQueryMmsDraft()
204 assertThat(msgCursor.getCount()).isEqualTo(2); in testInsertMessageBoxUri_canSaveAndQueryMmsInbox()
223 assertThat(msgCursor.getCount()).isEqualTo(2); in testInsertMessageBoxUri_canSaveAndQueryMmsOutbox()
240 assertThat(cursor.getCount() >= 5).isEqualTo(true); in testMmsQuery_retrieveAllWhenSelectorNotSpecified()
277 assertThat(cursor.getCount()).isEqualTo(1); in testMmsQuery_retrieveAllFailedMmsWhenSelectorSpecified()
[all …]
DSmsConversationTest.java79 assertThat(cursor.getCount()).isEqualTo(2); in testQueryConversation_snippetEqualsMostRecentMessageBody()
83 assertThat(conversationCursor.getCount()).isEqualTo(1); in testQueryConversation_snippetEqualsMostRecentMessageBody()
104 assertThat(cursor.getCount()).isEqualTo(2); in testQueryConversation_returnsCorrectMessageCount()
108 assertThat(conversationCursor.getCount()).isEqualTo(1); in testQueryConversation_returnsCorrectMessageCount()
DSmsTest.java77 assertThat(cursor.getCount()).isEqualTo(1); in testSmsInsert()
97 assertThat(cursor.getCount()).isEqualTo(0); in testSmsDelete()
142 assertThat(cursor.getCount()).isEqualTo(1); in testInsertSms_canUpdateSeen()
161 assertThat(cursor.getCount()).isEqualTo(1); in testInsertSms_canUpdateSmsStatus()
176 assertThat(cursor.getCount()).isEqualTo(1); in testInsertSms_canUpdateSmsType()
220 assertThat(cursor.getCount()).isEqualTo(1); in testDefaultValuesAreInsertedInSmsTable()
261 assertThat(cursor.getCount()).isEqualTo(1); in testDeleteSms_ifLastSmsDeletedThenThreadIsDeleted()
DSmsTestHelper.java65 assertThat(cursor.getCount()).isEqualTo(1); in assertSmsColumnEquals()
75 assertThat(cursor.getCount()).isEqualTo(smsContentValues.length); in assertBulkSmsContentEqual()
94 assertThat(cursorStatus.getCount()).isEqualTo(1); in assertUpdateSmsStatus()
109 assertThat(cursorStatus.getCount()).isEqualTo(1); in assertUpdateSmsType()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteDatabaseTest.java346 assertEquals(0, cursor.getCount()); in testCompileStatement()
359 assertEquals(1, cursor.getCount()); in testCompileStatement()
370 assertEquals(0, cursor.getCount()); in testCompileStatement()
391 assertEquals(2, cursor.getCount()); in testDelete()
410 assertEquals(1, cursor.getCount()); in testDelete()
426 assertEquals(0, cursor.getCount()); in testDelete()
440 assertEquals(1, cursor.getCount()); in testExecSQL()
452 assertEquals(2, cursor.getCount()); in testExecSQL()
468 assertEquals(1, cursor.getCount()); in testExecSQL()
480 assertEquals(1, cursor.getCount()); in testExecSQL()
[all …]
DSQLiteCursorTest.java155 assertEquals(TEST_COUNT - 1, cursor.getCount()); in testRequery()
160 assertEquals(TEST_COUNT - 1, cursor.getCount()); in testRequery()
164 assertEquals(TEST_COUNT - 2, cursor.getCount()); in testRequery()
174 assertEquals(2, c.getCount()); in testRequery2()
182 assertEquals(3, c.getCount()); in testRequery2()
210 assertEquals(TEST_COUNT - TEST_ARG1, cursor.getCount()); in testSetSelectionArguments()
213 assertEquals(TEST_COUNT - TEST_ARG2, cursor.getCount()); in testSetSelectionArguments()
DSQLiteQueryBuilderTest.java249 assertEquals(3, cursor.getCount()); in testQuery()
270 assertEquals(2, cursor.getCount()); in testQuery()
326 assertEquals(3, cursor.getCount()); in testCancelableQuery_WhenNotCanceled_ReturnsResultSet()
362 cursor.getCount(); // force execution in testCancelableQuery_WhenCanceledAfterQuery_ThrowsWhenExecuted()
416 cursor.getCount(); // force execution in testCancelableQuery_WhenCanceledDueToContention_StopsWaitingAndThrows()
479 cursor.getCount(); // force execution in testCancelableQuery_WhenCanceledDuringLongRunningQuery_CancelsQueryAndThrows()
556 assertEquals(1, c.getCount()); in testStrictQuery()
562 assertEquals(1, c.getCount()); in testStrictQuery()
566 assertEquals(1, c.getCount()); in testStrictQuery()
570 assertEquals(1, c.getCount()); in testStrictQuery()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DSearchRecentSuggestionsProviderTest.java60 assertEquals(0, c.getCount()); in testSearchRecentSuggestionsProvider()
64 assertEquals(1, c.getCount()); in testSearchRecentSuggestionsProvider()
68 assertEquals(2, c.getCount()); in testSearchRecentSuggestionsProvider()
72 assertEquals(0, c.getCount()); in testSearchRecentSuggestionsProvider()
DClipboardManagerListenerTest.java64 return expectedCount == mListener.getCount(); in assertClipChangedCount()
71 assertEquals(expectedCount, mListener.getCount()); in assertNoClipChange()
85 public synchronized int getCount() { in getCount() method in ClipboardManagerListenerTest.CountingClipChangedListener
/cts/tests/tests/rscpp/librscpptest/
Drs_jni_type.cpp123 passed &= (t->getCount() == x * y * faceMultiplier); in Java_android_cts_rscpp_RSTypeTest_testGetCount()
136 passed &= (t->getCount() == expectedCount); in Java_android_cts_rscpp_RSTypeTest_testGetCount()
142 passed &= (t->getCount() == expectedCount); in Java_android_cts_rscpp_RSTypeTest_testGetCount()
148 passed &= (t->getCount() == expectedCount); in Java_android_cts_rscpp_RSTypeTest_testGetCount()
153 passed &= (t->getCount() == expectedCount); in Java_android_cts_rscpp_RSTypeTest_testGetCount()
159 passed &= (t->getCount() == expectedCount); in Java_android_cts_rscpp_RSTypeTest_testGetCount()
165 passed &= (t->getCount() == expectedCount); in Java_android_cts_rscpp_RSTypeTest_testGetCount()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DTypeTest.java94 assertTrue(t.getCount() == x * y * faceMultiplier); in testGetCount()
104 assertTrue(t.getCount() == expectedCount); in testGetCount()
108 assertTrue(t.getCount() == expectedCount); in testGetCount()
112 assertTrue(t.getCount() == expectedCount); in testGetCount()
115 assertTrue(t.getCount() == expectedCount); in testGetCount()
119 assertTrue(t.getCount() == expectedCount); in testGetCount()
123 assertTrue(t.getCount() == expectedCount); in testGetCount()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DApnDatabaseTest.java146 1, cursor.getCount()); in testValidCase()
165 assertEquals("Unexpected number of APNs returned by cursor", 1, cursor.getCount()); in testValidCase()
181 assertEquals("Unexpected number of rows deleted", 0, cursor.getCount()); in testValidCase()
237 assertEquals("Unexpected number of rows deleted", 0, cursor.getCount()); in testQueryConflictCase()
279 1, cursor.getCount()); in testUpdateConflictCase()
304 assertEquals("Unexpected number of rows deleted", 0, cursor.getCount()); in testUpdateConflictCase()
346 assertEquals("Unexpected number of APNs returned by cursor", 1, cursor.getCount()); in testDeleteConflictCase()
366 assertEquals("Unexpected number of APNs returned by cursor", 1, cursor.getCount()); in testDeleteConflictCase()
379 assertEquals("Unexpected number of rows deleted", 0, cursor.getCount()); in testDeleteConflictCase()
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/
DContactsContract_Subquery.java57 allCount = cursor.getCount(); in testProviderStatus_addedContacts()
63 assertEquals(allCount, cursor.getCount()); in testProviderStatus_addedContacts()
69 assertEquals(0, cursor.getCount()); in testProviderStatus_addedContacts()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsContract_AggregationSuggestionsTest.java70 assertEquals(1, cursor.getCount()); in testAggregationSuggestionsByNameReversed()
92 assertEquals(1, cursor.getCount()); in testAggregationSuggestionsByName()
114 assertEquals(0, cursor.getCount()); in testAggregationSuggestionsByName_noMatch()
130 assertEquals(1, cursor.getCount()); in testAggregationSuggestionsByName_matchSecondNameParameter()
151 assertEquals(1, cursor.getCount()); in testAggregationSuggestionsByName_matchFirstNameParameter()
/cts/hostsidetests/atrace/src/android/atrace/cts/
DAtraceHostTest.java221 assertEquals(10, values.get(0).getCount()); in testCounter()
222 assertEquals(20, values.get(1).getCount()); in testCounter()
223 assertEquals(30, values.get(2).getCount()); in testCounter()
224 assertEquals(9223372000000005807L, values.get(3).getCount()); in testCounter()
263 assertTrue(previousCount < value.getCount()); in testTracingContent()
264 previousCount = value.getCount(); in testTracingContent()
/cts/hostsidetests/statsd/src/android/cts/statsd/metric/
DCountMetricsTests.java62 assertEquals(2, countData.getData(0).getBucketInfo(0).getCount()); in testSimpleEventCountMetric()
121 assertEquals(1, countData.getData(0).getBucketInfo(0).getCount()); in testEventCountWithCondition()
247 assertEquals(2, countData.getData(0).getBucketInfo(0).getCount()); in testEventCountWithConditionAndActivation()
248 assertEquals(1, countData.getData(0).getBucketInfo(1).getCount()); in testEventCountWithConditionAndActivation()
296 assertEquals("First report should have a count of 1", 1, bucketInfo.getCount()); in testPartialBucketCountMetric()
305 totalCount += bucket.getCount(); in testPartialBucketCountMetric()

1234567