Home
last modified time | relevance | path

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

12345678910>>...18

/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java270 assertEquals(expected, cursor.getCount()); in execute()
333 assertEquals(expected, cursor.getCount()); in execute()
377 if (len != cursor.getCount()) { in execute()
380 assertEquals("number of instances don't match", len, cursor.getCount()); in execute()
1033 Log.i(TAG, "dumpCursor() count: " + cursor.getCount()); in dumpCursor()
1419 assertEquals(1, cursor.getCount()); in testInsertUpdateDeleteColor()
1428 assertEquals(0, cursor.getCount()); in testInsertUpdateDeleteColor()
1446 assertEquals(1, cursor.getCount()); in checkColor()
1470 assertEquals(0, cursor.getCount()); in testInsertNormalEvents()
1511 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()
DSyncCalendarTest.java77 int countBeforeNewEvent = cursor.getCount(); in testEditEventTitle()
105 int countBeforeNewEvent = cursor.getCount(); in testEditEventDate()
121 int countAfterNewEvent = cursor.getCount(); in testEditEventDate()
137 int countBeforeNewEvent = cursor.getCount(); in testEditEventDescription()
151 int countAfterNewEvent = cursor.getCount(); in testEditEventDescription()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java870 assertEquals(3, cursor.getCount()); in assertDataRows()
947 assertEquals(3, cursor.getCount()); in assertEntityRows()
1162 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "1234"), null, null)); in testPhonesNormalizedNumber()
1164 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "5678"), null, null)); in testPhonesNormalizedNumber()
1177 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "1234"), null, null)); in testPhonesNormalizedNumber()
1179 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "4321"), null, null)); in testPhonesNormalizedNumber()
1181 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "5678"), null, null)); in testPhonesNormalizedNumber()
1183 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "8765"), null, null)); in testPhonesNormalizedNumber()
1196 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "+1-800-466-5432"), null, in testPhonesNormalizedNumber()
1199 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 …]
DVoicemailProviderTest.java128 assertEquals(0, getCount(uri, null, null)); in testDelete()
185 assertEquals(2, getCount(voicemailUri(), null, null)); in testPermissions_InsertAndQuery()
189 assertEquals(1, getCount(voicemailUri(), null, null)); in testPermissions_InsertAndQuery()
204 assertEquals(2, getCount(voicemailUri(), null, null)); in testPermissions_InsertAndQuery()
220 assertEquals(2, getCount(voicemailUri(), null, null)); in testPermissions_UpdateAndDelete()
260 assertEquals(0, getCount(anotherVoicemail, null, null)); in testPermissions_UpdateAndDelete()
330 assertEquals(1, cursor.getCount()); in checkHasReadAccessToUri()
494 assertEquals(1, getCount(statusUri(), null, null)); in testStatusInsertDuplicate()
499 assertEquals(1, getCount(statusUri(), null, null)); in testStatusInsertDuplicate()
504 assertEquals(2, getCount(statusUri(), null, null)); in testStatusInsertDuplicate()
[all …]
DBaseContactsProvider2Test.java895 assertEquals("Record count for " + uri, 1, c.getCount()); in getStoredValue()
911 assertEquals("Record count", 1, c.getCount()); in getStoredLongValue()
938 assertEquals("Record count", 1, c.getCount()); in assertStoredValues()
952 assertEquals("Record count", 1, c.getCount()); in assertContainsValues()
971 assertEquals("Record count", expectedValues.length, c.getCount()); in assertStoredValuesWithProjection()
990 assertEquals("Record count", expectedValues.length, c.getCount()); in assertStoredValues()
1018 assertEquals("Record count", expectedValues.length, c.getCount()); in assertStoredValuesOrderly()
1068 assertEquals("Record count", 1, c.getCount()); in assertSelection()
1118 final BitSet used = new BitSet(cursor.getCount()); in assertCursorValues()
1223 protected int getCount(Uri uri) { in getCount() method in BaseContactsProvider2Test
[all …]
DGroupsTest.java118 assertTrue("Didn't return summary for all groups", (cursor.getCount() == 4)); in testGroupSummary()
185 assertEquals(1, getCount(uri, null, null)); in testGroupDeletion1()
187 assertEquals(1, getCount(uri, null, null)); in testGroupDeletion1()
192 assertEquals(0, getCount(uri, null, null)); in testGroupDeletion1()
199 assertEquals(1, getCount(uri, null, null)); in testGroupDeletion2()
202 assertEquals(0, getCount(uri, null, null)); in testGroupDeletion2()
/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/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/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/ContactsCommon/src/com/android/contacts/common/list/
DContactTileAdapter.java173 cursor.getCount() - mDividerPosition : 0; in saveNumFrequentsFromCursor()
176 mNumFrequents = cursorIsValid(cursor) ? cursor.getCount() : 0; in saveNumFrequentsFromCursor()
219 return cursor.getCount(); in getDividerPosition()
234 if (!cursorIsValid(cursor) || cursor.getCount() <= position) { in createContactEntryFromCursor()
284 public int getCount() { in getCount() method in ContactTileAdapter
291 return getRowCount(mContactCursor.getCount()); in getCount()
304 return mContactCursor.getCount(); in getCount()
402 contactTileRowView.configureRow(contactList, position == getCount() - 1); in getView()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerFragment.java101 for (int i = 0; i < mAdapter.getCount(); i++) {
160 if (mAdapter.getCount() != 0) { in onCreateView()
216 mCancel.setVisibility(mAdapter.getCount() == 0 ? View.INVISIBLE : View.VISIBLE); in onResume()
243 goToSetUpView = hasPreviousInput || mAdapter.getCount() == 0; in onResume()
248 goToSetUpView = mAdapter.getCount() == 0; in onResume()
322 if (mAdapter.getCount() == 0) { in goToSetUpView()
340 if (mAdapter.getCount() == 0) { in updateTimerState()
517 if (currPage < mAdapter.getCount()) { in getCurrentTimer()
588 if (mAdapter.getCount() == 1) { in onLeftButtonClick()
616 final int count = mAdapter.getCount(); in highlightPageIndicator()
/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/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/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
Dforgetting_curve_utils.cpp50 const int count = clampToValidCountRange(newHistoricalInfo->getCount(), headerPolicy); in createUpdatedHistoricalInfo()
55 && originalHistoricalInfo->getCount() < newHistoricalInfo->getCount())) { in createUpdatedHistoricalInfo()
58 const int count = clampToValidCountRange(newHistoricalInfo->getCount(), headerPolicy); in createUpdatedHistoricalInfo()
61 const int updatedCount = originalHistoricalInfo->getCount() + 1; in createUpdatedHistoricalInfo()
67 originalHistoricalInfo->getLevel(), originalHistoricalInfo->getCount()); in createUpdatedHistoricalInfo()
/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/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/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchFragment.java128 if (getCount() == 0) { in getView()
158 public int getCount() { in getCount() method in StopwatchFragment.LapsListAdapter
404 boolean lapsVisible = mLapsAdapter.getCount() > 0; in onStart()
566 return mLapsAdapter.getCount() >= Stopwatches.MAX_LAPS; in reachedMaxLaps()
576 int size = mLapsAdapter.getCount(); in addLapTime()
609 if (mLapsAdapter.getCount() > 0) { in updateCurrentLap()
629 mLapsAdapter.getCount())); in showLaps()
631 boolean lapsVisible = mLapsAdapter.getCount() > 0; in showLaps()
699 if (mLapsAdapter.getCount() > 0) {
/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 …]
/packages/apps/Music/src/com/android/music/
DTrackBrowserActivity.java444 int numresults = mTrackCursor != null ? mTrackCursor.getCount() : 0; in setTitle()
462 if (cursor.getCount() != numresults) { in setTitle()
491 if (cursor.getCount() != 0) { in setTitle()
506 if (cursor.getCount() != 0) { in setTitle()
610 if (c.getCount() == 0) {
796 int curcount = mTrackCursor.getCount(); in removeItem()
839 int curcount = mTrackCursor.getCount();
887 if (mTrackCursor.getCount() == 0) {
1032 if (ret.getCount() == 0) {
1134 int size = mCurrentPlaylistCursor.getCount();
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DAtPhonebook.java129 if (cursor.getCount() < 1) { in getLastDialledNumber()
223 int size = pbr.cursor.getCount(); in handleCpbsCommand()
288 size = pbr.cursor.getCount(); in handleCpbrCommand()
442 Log.i(TAG, "Refreshed phonebook " + pb + " with " + pbr.cursor.getCount() + " results"); in queryPhonebook()
501 if (pbr.cursor.getCount() == 0 || mCpbrIndex1 <= 0 || mCpbrIndex2 < mCpbrIndex1 || in processCpbrCommand()
502 mCpbrIndex2 > pbr.cursor.getCount() || mCpbrIndex1 > pbr.cursor.getCount()) { in processCpbrCommand()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DSectionedAlbumDataAdapter.java70 if (DEBUG) Log.i(TAG, "numAlbums = " + mAlbumData.getCount()); in onChanged()
71 for (int i = 0; i < mAlbumData.getCount(); i++) { in onChanged()
85 for (int i = 0; i < mAlbumData.getCount(); i++) { in onChanged()
124 public int getCount() { in getCount() method in SectionedAlbumDataAdapter
125 return mAlbumData.getCount() + sections.length; in getCount()

12345678910>>...18