Searched defs:counts (Results 1 - 7 of 7) sorted by relevance

/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DContactsSectionIndexer.java26 * 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...]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/widget/
H A DPinnedHeaderUseCaseActivity.java76 private void startActivity(int[] counts, String[] names, boolean[] headers, argument
81 intent.putExtra("counts", counts);
/packages/apps/Exchange/src/com/android/exchange/eas/
H A DEasSync.java87 final long[][] messageIds, final int[] counts) {
99 messageIds[index][counts[index]] = messageId;
100 ++counts[index];
122 final int[] counts = new int[2];
157 counts);
163 messageIds[0][counts[0]] = msc.getMessageId();
164 ++counts[0];
180 messageIds[1][counts[1]] = msc.getMessageId();
181 ++counts[1];
187 MessageStateChange.upsyncSuccessful(cr, messageIds[0], counts[
86 handleMessageUpdateStatus(final Map<String, Integer> messageStatus, final long[][] messageIds, final int[] counts) argument
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DFastScrollingIndexCache.java143 static String buildCacheValue(String[] titles, int[] counts) { argument
152 appendIfNotNull(sb, Integer.toString(counts[i]));
161 public static final Bundle buildExtraBundle(String[] titles, int[] counts) { argument
164 bundle.putIntArray(ContactCounts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS, counts);
184 final int[] counts = new int[numTitles];
188 counts[i] = Integer.parseInt(values[i * 2 + 1]);
191 return buildExtraBundle(titles, counts);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DFastScrollingIndexCacheTest.java86 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 DSuggestionsAdapter.java335 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 DDayView.java3001 private void incrementSkipCount(int[] counts, int startIndex, int endIndex) { argument
3002 if (counts == null || startIndex < 0 || endIndex > counts.length) {
3006 counts[i]++;

Completed in 211 milliseconds