Home
last modified time | relevance | path

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

12345678

/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/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/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.java72 return expectedCount == mListener.getCount(); in assertClipChangedCount()
79 assertEquals(expectedCount, mListener.getCount()); in assertNoClipChange()
103 public synchronized int getCount() { in getCount() method in ClipboardManagerListenerTest.CountingClipChangedListener
/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()
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/cts/
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()
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 …]
DMatrixCursor_RowBuilderTest.java35 assertEquals(0, cursor.getCount()); in testAdd()
38 assertEquals(1, cursor.getCount()); in testAdd()
73 assertEquals(2, cursor.getCount()); in testAdd()
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()
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/contactsprovider/src/android/provider/cts/contacts/
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()
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/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteDatabaseTest.java360 assertEquals(0, cursor.getCount()); in testCompileStatement()
373 assertEquals(1, cursor.getCount()); in testCompileStatement()
384 assertEquals(0, cursor.getCount()); in testCompileStatement()
405 assertEquals(2, cursor.getCount()); in testDelete()
424 assertEquals(1, cursor.getCount()); in testDelete()
440 assertEquals(0, cursor.getCount()); in testDelete()
454 assertEquals(1, cursor.getCount()); in testExecSQL()
466 assertEquals(2, cursor.getCount()); in testExecSQL()
482 assertEquals(1, cursor.getCount()); in testExecSQL()
494 assertEquals(1, cursor.getCount()); in testExecSQL()
[all …]
DSQLiteFtsTest.java66 assertEquals(2, cursor.getCount()); in testFts3Porter()
82 assertEquals(1, cursor.getCount()); in testFts3Simple()
96 assertEquals(1, cursor.getCount()); in testFts4Simple()
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()
/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/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DSidecarCallbackCounter.java53 if (mCountDownLatch.getCount() == 0) { in onWindowLayoutChanged()
61 assertEquals("Callback count should be zero", 0, mCountDownLatch.getCount()); in assertZeroCount()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DApnDatabaseTest.java137 .that(cursor.getCount()) in testValidCase()
158 .that(cursor.getCount()) in testValidCase()
183 .that(cursor.getCount()) in testValidCase()
246 .that(cursor.getCount()) in testQueryConflictCase()
287 .that(cursor.getCount()) in testUpdateConflictCase()
319 .that(cursor.getCount()) in testUpdateConflictCase()
361 .that(cursor.getCount()) in testDeleteConflictCase()
387 .that(cursor.getCount()) in testDeleteConflictCase()
408 .that(cursor.getCount()) in testDeleteConflictCase()
/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()
267 assertTrue(previousCount < value.getCount()); in testTracingContent()
268 previousCount = value.getCount(); in testTracingContent()
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStore_Audio_ArtistsTest.java97 assertEquals(1, c.getCount()); in testStoreAudioArtists()
130 assertEquals(1, c.getCount()); in testStoreAudioArtists()
138 assertEquals(0, c.getCount()); in testStoreAudioArtists()
145 assertEquals(0, c.getCount()); in testStoreAudioArtists()

12345678