Searched refs:counts (Results 1 - 9 of 9) sorted by relevance
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | ContactsSectionIndexer.java | 26 * their respective counts. 39 * @param counts a non-null array of the same size as <code>sections</code> 41 public ContactsSectionIndexer(String[] sections, int[] counts) { argument 42 if (sections == null || counts == null) { 46 if (sections.length != counts.length) { 48 "The sections and counts arrays must have the same length"); 51 // TODO process sections/counts based on current locale and/or specific section titles 54 mPositions = new int[counts.length]; 56 for (int i = 0; i < counts.length; i++) { 64 position += counts[ [all...] |
H A D | ContactEntryListAdapter.java | 436 int counts[] = bundle.getIntArray(ContactCounts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS); 437 setIndexer(new ContactsSectionIndexer(sections, counts));
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/widget/ |
H A D | PinnedHeaderUseCaseActivity.java | 76 private void startActivity(int[] counts, String[] names, boolean[] headers, argument 81 intent.putExtra("counts", counts);
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | PinnedHeaderListDemoActivity.java | 106 int[] counts = extras.getIntArray("counts"); 112 if (counts == null || names == null || showIfEmpty == null || delays == null) { 117 for (int i = 0; i < counts.length; i++) { 122 for (int i = 0; i < counts.length; i++) { 124 final Cursor cursor = makeCursor(names[i], counts[i]);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | FastScrollingIndexCache.java | 135 static String buildCacheValue(String[] titles, int[] counts) { argument 144 appendIfNotNull(sb, Integer.toString(counts[i])); 153 public static final Bundle buildExtraBundle(String[] titles, int[] counts) { argument 156 bundle.putIntArray(ContactCounts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS, counts); 176 final int[] counts = new int[numTitles]; 180 counts[i] = Integer.parseInt(values[i * 2 + 1]); 183 return buildExtraBundle(titles, counts);
|
H A D | ContactsProvider2.java | 6158 * Computes counts by the address book index titles and returns it as {@link Bundle} which 6216 int counts[] = new int[groupCount]; 6232 counts[indexCount] = count; 6235 counts[indexCount - 1] += count; 6245 System.arraycopy(counts, 0, newCounts, 0, indexCount); 6246 counts = newCounts; 6248 return FastScrollingIndexCache.buildExtraBundle(titles, counts);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | FastScrollingIndexCacheTest.java | 86 String[] titles, int[] counts) { 87 Bundle bundle = FastScrollingIndexCache.buildExtraBundle(titles, counts); 84 putAndGetBundle(FastScrollingIndexCache cache, Uri queryUri, String selection, String[] selectionArgs, String sortOrder, String countExpression, String[] titles, int[] counts) argument
|
/packages/apps/Browser/src/com/android/browser/ |
H A D | SuggestionsAdapter.java | 335 int[] counts; field in class:SuggestionsAdapter.SuggestionResults 340 counts = new int[5]; 344 return counts[type]; 352 counts[item.type]++;
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | DayView.java | 2998 private void incrementSkipCount(int[] counts, int startIndex, int endIndex) { argument 2999 if (counts == null || startIndex < 0 || endIndex > counts.length) { 3003 counts[i]++;
|
Completed in 197 milliseconds