Searched refs:getCount (Results 1 - 25 of 457) sorted by relevance

1234567891011>>

/packages/apps/Launcher3/tests/src/com/android/launcher3/provider/
H A DRestoreDbTaskTest.java33 assertEquals(5, getCount(db, "select * from favorites where profileId = 42"));
38 assertEquals(0, getCount(db, "select * from favorites where profileId = 42"));
39 assertEquals(5, getCount(db, "select * from favorites where profileId = 33"));
46 assertEquals(6, getCount(db, "select * from favorites where profileId = 33"));
49 private int getCount(SQLiteDatabase db, String sql) { method in class:RestoreDbTaskTest
52 return c.getCount();
54 c.getCount();
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DSeparatedFolderListAdapter.java44 int size = adapter.getCount();
57 public int getCount() { method in class:SeparatedFolderListAdapter
61 total += adapter.getCount();
79 int size = adapter.getCount();
96 int size = adapter.getCount();
H A DBidiViewPagerHelper.java40 return getIndexFromBidiIndex(mViewPager.getAdapter().getCount() - 1);
52 return Math.max(0, Math.min(mViewPager.getAdapter().getCount() - 1, position));
57 return mViewPager.getAdapter().getCount() - 1 - position;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/history/
H A DHistoryManager.java40 private int getCount() { method in class:HistoryManager
64 if (getCount() <= 0) {
71 if (mCurrentPresetPosition == getCount() - 1) {
111 if (getCount() == 0) {
119 if (getCount() == 0) {
138 for (int i = mCurrentPresetPosition; i < getCount(); i++) {
165 if (mCurrentPresetPosition >= getCount()) {
166 mCurrentPresetPosition = getCount() - 1;
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DCompositeAdapter.java55 public int getCount() { method in class:CompositeAdapter.Partition
56 int count = mAdapter.getCount();
147 final int end = start + mPartitions[i].getCount();
151 (mPartitions[i].getCount() > 0 || mPartitions[i].showIfEmpty())) {
178 mCount += mPartitions[i].getCount();
183 public int getCount() { method in class:CompositeAdapter
188 public int getCount(final int index) { method in class:CompositeAdapter
190 return mPartitions[index].getCount();
198 final int end = start + mPartitions[i].getCount();
203 (partition.getCount() >
[all...]
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/pbap/
H A DContactCursorFilterTest.java37 assertEquals(2, cursor.getCount());
44 assertEquals(3, cursor.getCount());
52 assertEquals(2, cursor.getCount());
59 assertEquals(1, cursor.getCount());
75 assertEquals(2, cursor.getCount());
82 assertEquals(3, cursor.getCount());
90 assertEquals(2, cursor.getCount());
97 assertEquals(1, cursor.getCount());
110 assertEquals(1, cursor.getCount());
116 assertEquals(1, cursor.getCount());
[all...]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSuggestionCursorWrapper.java41 public int getCount() { method in class:SuggestionCursorWrapper
42 return mCursor == null ? 0 : mCursor.getCount();
H A DSuggestionCursor.java39 int getCount(); method in interface:SuggestionCursor
45 * @throws IndexOutOfBoundsException if {@code pos < 0} or {@code pos >= getCount()}.
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DSingleItemAdapter.java27 public int getCount() { method in class:SingleItemAdapter
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DIImageList.java54 public int getCount(); method in interface:IImageList
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DMediaPickerGridView.java34 if (getAdapter() == null || getAdapter().getCount() == 0 || getChildCount() == 0) {
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
H A Dhistorical_info.h46 int getCount() const { function in class:latinime::HistoricalInfo
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
H A DSuggestionsListAdapter.java42 return mAdapter.getCount() == 0;
68 public int getCount() { method in class:SuggestionsListAdapter.Adapter
70 return s == null ? 0 : s.getCount();
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DReorderingCursorWrapper.java37 if (cursor.getCount() != positionMap.length) {
62 public int getCount() { method in class:ReorderingCursorWrapper
63 return mCursor.getCount();
H A DMemoryCursor.java40 public int getCount() { method in class:MemoryCursor
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DCountingOutputStream.java34 public long getCount() { method in class:CountingOutputStream
/packages/apps/Email/src/com/android/email/activity/setup/
H A DSpinnerOption.java27 for (int i = 0, count = spinner.getCount(); i < count; i++) {
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DOneRowGridView.java41 int n = (getAdapter() == null) ? 0 : getAdapter().getCount();
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DVoicemailCleanupServiceTest.java97 assertNotSame(0, cursor.getCount());
100 assertNotSame(0, cursor.getCount());
106 assertEquals(0, cursor.getCount());
109 assertEquals(0, cursor.getCount());
/packages/services/Telephony/src/com/android/phone/common/mail/utility/
H A DCountingOutputStream.java33 public long getCount() { method in class:CountingOutputStream
/packages/apps/Contacts/src/com/android/contacts/list/
H A DGroupMemberTileAdapter.java66 public int getCount() { method in class:GroupMemberTileAdapter
71 return getRowCount(mContactCursor.getCount());
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DAutoScrollListView.java95 if (preliminaryPosition >= getCount()) {
96 preliminaryPosition = getCount() - 1;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
H A DCategoryTrack.java40 if (getChildCount() != mAdapter.getCount()) {
69 int n = mAdapter.getCount();
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
H A DCalendarDatabaseHelperTest.java351 assertEquals(mBadDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2);
352 assertEquals(mGoodDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2);
385 assertEquals(mBadDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2);
386 assertEquals(mGoodDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2);
532 if (c1.getCount() != c2.getCount()) {
533 Log.d("CDBT","c1 has " + c1.getCount() + " rows and c2 has " + c2.getCount());
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
H A DDeletedContactUtil.java47 public static long getCount(ContentResolver resolver) { method in class:DeletedContactUtil
53 return cursor.getCount();

Completed in 1420 milliseconds

1234567891011>>