Home
last modified time | relevance | path

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

12345678910>>...19

/packages/apps/Messaging/src/com/android/messaging/ui/
DCompositeAdapter.java55 public int getCount() { in getCount() method in CompositeAdapter.Partition
56 int count = mAdapter.getCount(); in getCount()
147 final int end = start + mPartitions[i].getCount(); in getPartitionAtPosition()
151 (mPartitions[i].getCount() > 0 || mPartitions[i].showIfEmpty())) { in getPartitionAtPosition()
178 mCount += mPartitions[i].getCount(); in ensureCacheValid()
183 public int getCount() { in getCount() method in CompositeAdapter
188 public int getCount(final int index) { in getCount() method in CompositeAdapter
190 return mPartitions[index].getCount(); in getCount()
198 final int end = start + mPartitions[i].getCount(); in getItem()
203 (partition.getCount() > 0 || partition.showIfEmpty())) { in getItem()
[all …]
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/pbap/
DContactCursorFilterTest.java37 assertEquals(2, cursor.getCount()); in testFilterByRangeWithoutDup()
44 assertEquals(3, cursor.getCount()); in testFilterByRangeWithoutDup()
52 assertEquals(2, cursor.getCount()); in testFilterByRangeWithoutDup()
59 assertEquals(1, cursor.getCount()); in testFilterByRangeWithoutDup()
75 assertEquals(2, cursor.getCount()); in testFilterByRangeWithDup()
82 assertEquals(3, cursor.getCount()); in testFilterByRangeWithDup()
90 assertEquals(2, cursor.getCount()); in testFilterByRangeWithDup()
97 assertEquals(1, cursor.getCount()); in testFilterByRangeWithDup()
110 assertEquals(1, cursor.getCount()); in testFilterByOffsetWithoutDup()
116 assertEquals(1, cursor.getCount()); in testFilterByOffsetWithoutDup()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java278 assertEquals(expected, cursor.getCount()); in execute()
341 assertEquals(expected, cursor.getCount()); in execute()
385 if (len != cursor.getCount()) { in execute()
388 assertEquals("number of instances don't match", len, cursor.getCount()); in execute()
1052 Log.i(TAG, "dumpCursor() count: " + cursor.getCount()); in dumpCursor()
1438 assertEquals(1, cursor.getCount()); in testInsertUpdateDeleteColor()
1447 assertEquals(0, cursor.getCount()); in testInsertUpdateDeleteColor()
1465 assertEquals(1, cursor.getCount()); in checkColor()
1489 assertEquals(0, cursor.getCount()); in testInsertNormalEvents()
1530 assertEquals("Item " + i + " not found", 1, cursor.getCount()); in testInsertNormalEvents()
[all …]
DCalendarDatabaseHelperTest.java351 assertEquals(mBadDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion50Events()
352 assertEquals(mGoodDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion50Events()
385 assertEquals(mBadDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion67Events()
386 assertEquals(mGoodDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion67Events()
532 if (c1.getCount() != c2.getCount()) { in compareCursors()
533 Log.d("CDBT","c1 has " + c1.getCount() + " rows and c2 has " + c2.getCount()); in compareCursors()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DVoicemailProviderTest.java101 assertEquals("Record count", 1, c.getCount()); in testInsertReadMessageIsNotNew()
173 assertEquals(1, getCount(voicemailUri(), null, null)); in testDeleteOwnPackageVoicemail_DeletesRow()
177 assertEquals(0, getCount(ownVoicemail, null, null)); in testDeleteOwnPackageVoicemail_DeletesRow()
183 assertEquals(1, getCount(voicemailUri(), null, null)); in testDeleteOtherPackageVoicemail_SetsDirtyStatus()
193 assertEquals(1, getCount(anotherVoicemail, null, null)); in testDeleteOtherPackageVoicemail_SetsDirtyStatus()
202 assertEquals(0, getCount(uri, null, null)); in testDelete()
259 assertEquals(2, getCount(voicemailUri(), null, null)); in testPermissions_InsertAndQuery()
263 assertEquals(1, getCount(voicemailUri(), null, null)); in testPermissions_InsertAndQuery()
278 assertEquals(2, getCount(voicemailUri(), null, null)); in testPermissions_InsertAndQuery()
294 assertEquals(2, getCount(voicemailUri(), null, null)); in testPermissions_UpdateAndDelete()
[all …]
DContactsProvider2Test.java874 assertEquals(3, cursor.getCount()); in assertDataRows()
951 assertEquals(3, cursor.getCount()); in assertEntityRows()
1166 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "1234"), null, null)); in testPhonesNormalizedNumber()
1168 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "5678"), null, null)); in testPhonesNormalizedNumber()
1181 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "1234"), null, null)); in testPhonesNormalizedNumber()
1183 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "4321"), null, null)); in testPhonesNormalizedNumber()
1185 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "5678"), null, null)); in testPhonesNormalizedNumber()
1187 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "8765"), null, null)); in testPhonesNormalizedNumber()
1200 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "+1-800-466-5432"), null, in testPhonesNormalizedNumber()
1203 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "8765"), null, null)); in testPhonesNormalizedNumber()
[all …]
DContactDirectoryManagerTest.java177 assertEquals(5, cursor.getCount()); in testScanAllProviders()
215 assertEquals(3, cursor.getCount()); in testPackageInstalled()
233 assertEquals(4, cursor.getCount()); in testPackageInstalled()
275 assertEquals(4, cursor.getCount()); in testPackageUninstalled()
284 assertEquals(3, cursor.getCount()); in testPackageUninstalled()
321 assertEquals(4, cursor.getCount()); in testPackageReplaced()
333 assertEquals(4, cursor.getCount()); in testPackageReplaced()
379 assertEquals(4, cursor.getCount()); in testPackageRenamed()
400 assertEquals(4, cursor.getCount()); in testPackageRenamed()
446 assertEquals(3, cursor.getCount()); in testAccountRemoval()
[all …]
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DSuggestionCursorUtil.java40 assertEquals(message, 0, suggestions.getCount()); in assertNoSuggestions()
66 assertEquals(message + ", count", expected.getCount(), observed.getCount()); in assertSameSuggestions()
68 int count = expected.getCount(); in assertSameSuggestions()
113 return cursor.getPosition() < cursor.getCount() - 1;
127 return slice(cursor, start, cursor.getCount() - start);
141 for (int i = 0; i < cursor.getCount(); i++) {
192 int count = from.getCount();
218 assertTrue(message + ", no suggestions", observed.getCount() > 0);
219 for (int i = 0; i < observed.getCount(); ++i) {
/packages/apps/Contacts/tests/src/com/android/contacts/widget/
DCompositeListAdapterTest.java117 assertEquals(5, adapter.getCount()); in testGetCount()
122 assertEquals(0, adapter.getCount()); in testGetCountWithInvalidation()
125 assertEquals(2, adapter.getCount()); in testGetCountWithInvalidation()
128 assertEquals(2, adapter.getCount()); in testGetCountWithInvalidation()
131 assertEquals(5, adapter.getCount()); in testGetCountWithInvalidation()
221 assertEquals(3, adapter.getCount()); in testNotifyDataSetChangedPropagated()
229 assertEquals(4, adapter.getCount()); in testNotifyDataSetChangedPropagated()
247 assertEquals(5, adapter.getCount()); in testNotifyDataSetChangedOnAddingAdapter()
265 assertEquals(1, adapter.getCount()); in testNotifyDataSetInvalidated()
270 assertEquals(0, adapter.getCount()); in testNotifyDataSetInvalidated()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/history/
DHistoryManager.java40 private int getCount() { in getCount() method in HistoryManager
64 if (getCount() <= 0) { in canReset()
71 if (mCurrentPresetPosition == getCount() - 1) { in canUndo()
111 if (getCount() == 0) { in reset()
119 if (getCount() == 0) { in getLast()
138 for (int i = mCurrentPresetPosition; i < getCount(); i++) { in insert()
165 if (mCurrentPresetPosition >= getCount()) { in undo()
166 mCurrentPresetPosition = getCount() - 1; in undo()
/packages/apps/Messaging/tests/src/com/android/messaging/util/
DContactUtilTest.java146 cur.getCount()); in ingoredTestGetPhones()
162 if (cur.getCount() != 5) { in ingoredTestFilterPhonesByName()
185 cur.getCount()); in ingoredTestFilterPhonesByPartialNumber()
207 cur.getCount()); in ingoredTestFilterPhonesByFullNumber()
227 cur.getCount()); in ingoredTestLookupPhoneWithAreaCode()
247 cur.getCount()); in ingoredTestLookupPhoneWithoutAreaCode()
260 cur.getCount()); in ingoredTestGetFrequentPhones()
274 cur.getCount()); in ingoredTestFilterEmails()
287 cur.getCount()); in ingoredTestLookupEmail()
/packages/apps/Browser/tests/src/com/android/browser/tests/
DBP1to2UpgradeTests.java58 ArrayList<String> urls = new ArrayList<String>(c.getCount()); in testStockUpgrade()
67 assertEquals(urls.size(), c.getCount()); in testStockUpgrade()
77 assertEquals(urls.size(), c.getCount()); in testStockUpgrade()
95 assertEquals(1, c.getCount()); in testPreserveHistory()
104 assertEquals("public API", 1, c.getCount()); in testPreserveHistory()
124 assertEquals(1, c.getCount()); in testPreserveBookmarks()
133 assertEquals("public API", 1, c.getCount()); in testPreserveBookmarks()
144 assertEquals(0, c.getCount()); in testEmptyUpgrade()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.cpp59 if (mHasHistoricalInfo && unigramProbabilityEntry.getHistoricalInfo()->getCount() == 0) { in getWordAttributes()
87 && historicalInfo->getCount() == 1) { in getWordAttributes()
91 contextCount = prevWordProbabilityEntry.getHistoricalInfo()->getCount(); in getWordAttributes()
96 historicalInfo->getCount(), contextCount, ngramType); in getWordAttributes()
235 updatedUnigramProbabilityEntry.getHistoricalInfo()->getCount()); in updateAllEntriesOnInputWord()
250 updatedNgramProbabilityEntry.getHistoricalInfo()->getCount()); in updateAllEntriesOnInputWord()
265 0 /* level */, originalProbabilityEntry.getHistoricalInfo()->getCount() in createUpdatedEntryFrom()
266 + historicalInfo.getCount()); in createUpdatedEntryFrom()
360 const int updatedCount = originalHistoricalInfo->getCount() / 2; in updateAllProbabilityEntriesForGCInner()
443 outEntryInfo->emplace_back(priority, probabilityEntry.getHistoricalInfo()->getCount(), in getEntryInfo()
/packages/apps/Email/tests/src/com/android/email/provider/
DContentCacheTests.java159 int activeCount = ContentCache.sActiveCursors.getCount(activeCursor); in testCachedCursors()
170 assertEquals(1, cursor.getCount()); in testCachedCursors()
271 assertEquals(2, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
278 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
286 assertEquals(2, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
289 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
294 assertEquals(1, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
299 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DSyncCursorPair.java293 return mLocalCursorIterator.getCount(); in getLocalCount()
297 return mRemoteCursorsIterator.getCount(); in getRemoteCount()
321 public int getCount(); in getCount() method
406 public int getCount() { in getCount() method in SyncCursorPair.LocalCursorIterator
407 return (mCursor == null ? 0 : mCursor.getCount()); in getCount()
534 public int getCount() { in getCount() method in SyncCursorPair.RemoteCursorsIterator
535 return (mSmsCursor == null ? 0 : mSmsCursor.getCount()) + in getCount()
536 (mMmsCursor == null ? 0 : mMmsCursor.getCount()); in getCount()
612 } else if (cursor.getCount() == 0) { in getCountFromCursor()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactTileAdapter.java174 cursor.getCount() - mDividerPosition : 0; in saveNumFrequentsFromCursor()
177 mNumFrequents = cursorIsValid(cursor) ? cursor.getCount() : 0; in saveNumFrequentsFromCursor()
220 return cursor.getCount(); in getDividerPosition()
235 if (!cursorIsValid(cursor) || cursor.getCount() <= position) { in createContactEntryFromCursor()
285 public int getCount() { in getCount() method in ContactTileAdapter
292 return getRowCount(mContactCursor.getCount()); in getCount()
305 return mContactCursor.getCount(); in getCount()
403 contactTileRowView.configureRow(contactList, position == getCount() - 1); in getView()
/packages/apps/Gallery2/src/com/android/photos/views/
DHeaderGridView.java289 public int getCount() { in getCount() method in HeaderGridView.HeaderViewGridAdapter
291 return getHeadersCount() * mNumColumns + mAdapter.getCount(); in getCount()
319 adapterCount = mAdapter.getCount(); in isEnabled()
343 adapterCount = mAdapter.getCount(); in getItem()
357 int adapterCount = mAdapter.getCount(); in getItemId()
398 adapterCount = mAdapter.getCount(); in getView()
416 int adapterCount = mAdapter.getCount(); in getItemViewType()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleDatabaseOperations.java269 Assert.isTrue(cursor.getCount() == 1); in getExistingConversation()
303 Assert.isTrue(cursor.getCount() == 1); in getThreadId()
338 Assert.inRange(cursor.getCount(), 0, 1); in isBlockedParticipant()
704 if (cursor != null && cursor.getCount() > 0) { in addConversationSelfIdToContentValues()
878 Assert.inRange(cursor.getCount(), 0, 1); in getConversationSelfId()
927 Assert.inRange(cursor.getCount(), 0, 1); in getSmsServiceCenterForConversation()
950 Assert.inRange(cursor.getCount(), 0, 1); in getExistingParticipant()
1023 Assert.inRange(cursor.getCount(), 0, 1); in readMessagePartData()
1045 Assert.inRange(cursor.getCount(), 0, 1); in readMessageData()
1068 Assert.inRange(cursor.getCount(), 0, 1); in readMessageData()
[all …]
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DBluetoothMapContentTest.java289 Log.d(TAG, "c.getCount() = " + c.getCount()); in writeMessage()
299 Log.d(TAG, "c.getCount() = " + c.getCount()); in dumpCursor()
317 Log.d(TAG, "c.getCount() = " + c.getCount()); in callBluetoothProvider()
356 int listCount = msgListing.getCount(); in testMsgListing()
389 int listCount = msgListing.getCount(); in testMsgListingUnread()
390 if (msgListing.getCount() > 0) { in testMsgListingUnread()
419 int listCount = msgListing.getCount(); in testMsgListingWithOriginator()
420 if (msgListing.getCount() > 0) { in testMsgListingWithOriginator()
778 if (D) Log.d(TAG, "c.getCount() = " + c.getCount()); in dumpMmsTable()
821 if (D) Log.d(TAG, "c.getCount() = " + c.getCount()); in dumpThreadsTable()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dforgetting_curve_utils.cpp53 const int count = clampToValidCountRange(newHistoricalInfo->getCount(), headerPolicy); in createUpdatedHistoricalInfo()
58 && originalHistoricalInfo->getCount() < newHistoricalInfo->getCount())) { in createUpdatedHistoricalInfo()
60 int count = newHistoricalInfo->getCount(); in createUpdatedHistoricalInfo()
68 const int updatedCount = originalHistoricalInfo->getCount() + 1; in createUpdatedHistoricalInfo()
74 originalHistoricalInfo->getLevel(), originalHistoricalInfo->getCount()); in createUpdatedHistoricalInfo()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerFragment.java107 for (int i = 0; i < mAdapter.getCount(); i++) {
165 if (mAdapter.getCount() != 0) { in onCreateView()
217 mCancel.setVisibility(mAdapter.getCount() == 0 ? View.INVISIBLE : View.VISIBLE); in onResume()
248 goToSetUpView = hasPreviousInput || mAdapter.getCount() == 0; in onResume()
253 goToSetUpView = mAdapter.getCount() == 0; in onResume()
324 if (mAdapter.getCount() == 0) { in goToSetUpView()
350 if (mAdapter.getCount() == 0) { in updateTimerState()
543 if (currPage < mAdapter.getCount()) { in getCurrentTimer()
614 if (mAdapter.getCount() == 1) { in onLeftButtonClick()
645 final int count = mAdapter.getCount(); in highlightPageIndicator()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSeparatedFolderListAdapter.java44 int size = adapter.getCount(); in getItem()
57 public int getCount() { in getCount() method in SeparatedFolderListAdapter
61 total += adapter.getCount(); in getCount()
79 int size = adapter.getCount(); in getItemViewType()
96 int size = adapter.getCount(); in getView()
/packages/apps/Gallery/src/com/android/camera/
DViewImage.java141 boolean showNext = mCurrentPosition < mAllImages.getCount() - 1; in updateNextPrevControls()
411 if (mAllImages.getCount() > 0) { in onCreateOptionsMenu()
438 if (mAllImages.getCount() == 0) {
442 if (mCurrentPosition == mAllImages.getCount()) {
759 || mShuffleOrder.length != mAllImages.getCount()) { in generateShuffleOrder()
760 mShuffleOrder = new int[mAllImages.getCount()]; in generateShuffleOrder()
861 (mCurrentPosition + 1) % mAllImages.getCount(), in loadNextImage()
903 if (mAllImages.getCount() == 0) return null; in getCurrentUri()
931 int count = mAllImages.getCount(); in onStart()
1050 if ((0 <= nextImagePos) && (nextImagePos < mAllImages.getCount())) { in moveNextOrPrevious()
[all …]
/packages/apps/Email/provider_src/com/android/email/provider/
DContentCache.java159 /*package*/ synchronized int getCount(T object) { in getCount() method in ContentCache.CounterMap
324 public int getCount() { in getCount() method in ContentCache.CachedCursor
326 mCount = super.getCount(); in getCount()
336 if (pos >= getCount() || pos < -1) { in moveToPosition()
370 return moveToPosition(getCount() - 1); in moveToLast()
375 return mPosition == (getCount() - 1); in isLast()
548 if (c.getCount() == 0) { in getMatrixCursor()
703 if (c.getCount() == 1) { in recordQueryTime()
/packages/apps/FMRadio/src/com/android/fmradio/views/
DFmScroller.java265 setFavoriteTextHeight(mAdapter.getCount() == 0); in refreshFavoriteLayout()
270 if (mAdapter.getCount() == 0) { in setFavoriteTextHeight()
284 int itemcount = mAdapter.getCount(); in computeGridViewHeight()
790 public int getCount() { in getCount() method in FmScroller.FavoriteAdapter
792 return mCursor.getCount(); in getCount()
904 boolean isOneRow = c.getCount() <= columnNum; in onResume()
906 boolean hasFavoriteCurrent = c.getCount() > 0; in onResume()
919 if (mAdapter != null && mAdapter.getCount() > 0) { in onPause()
935 if (mAdapter != null && mAdapter.getCount() > 0) { in refreshStateHeight()
951 if (c.getCount() == 1) { in onAddFavorite()
[all …]

12345678910>>...19