Home
last modified time | relevance | path

Searched refs:counts (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Contacts/tests/src/com/android/contacts/group/
DGroupUtilTest.java41 int counts[] = new int[]{1, 2, 2, 3, 1, 2}; in testNeedTrimming() local
42 assertFalse(GroupUtil.needTrimming(count, positions, counts)); in testNeedTrimming()
45 counts = new int[]{1, 6, 2, 7, 1, 2, 1, 2}; in testNeedTrimming()
46 assertTrue(GroupUtil.needTrimming(count, positions, counts)); in testNeedTrimming()
52 final int[] counts = new int[]{1, 6, 2, 7, 1, 2, 1, 2}; in testUpdateBundle_smallSet() local
55 final ContactsSectionIndexer indexer = new ContactsSectionIndexer(sections, counts); in testUpdateBundle_smallSet()
57 GroupUtil.updateBundle(bundle, indexer, subscriptsList, sections, counts); in testUpdateBundle_smallSet()
75 final int[] counts = new int[]{81, 36, 84, 55, 28, 15, 18, 38, 145, 60, 41, 73, 15, 2, 56, in testUpdateBundle_mediumSet() local
103 final ContactsSectionIndexer indexer = new ContactsSectionIndexer(sections, counts); in testUpdateBundle_mediumSet()
105 GroupUtil.updateBundle(bundle, indexer, subscriptsList, sections, counts); in testUpdateBundle_mediumSet()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DMetrics.java116 ProviderCounts counts = new ProviderCounts(); in logFileOperation() local
117 countProviders(counts, srcs, dst); in logFileOperation()
118 if (counts.intraProvider > 0) { in logFileOperation()
121 if (counts.systemProvider > 0) { in logFileOperation()
125 if (counts.externalProvider > 0) { in logFileOperation()
174 ProviderCounts counts = new ProviderCounts(); in logFileOperationErrors() local
175 countProviders(counts, failedFiles, null); in logFileOperationErrors()
177 countProviders(counts, failedUris); in logFileOperationErrors()
196 if (counts.systemProvider > 0) { in logFileOperationErrors()
201 if (counts.externalProvider > 0) { in logFileOperationErrors()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsSectionIndexer.java42 public ContactsSectionIndexer(String[] sections, int[] counts) { in ContactsSectionIndexer() argument
43 if (sections == null || counts == null) { in ContactsSectionIndexer()
47 if (sections.length != counts.length) { in ContactsSectionIndexer()
55 mPositions = new int[counts.length]; in ContactsSectionIndexer()
57 for (int i = 0; i < counts.length; i++) { in ContactsSectionIndexer()
66 position += counts[i]; in ContactsSectionIndexer()
DGroupMemberPickerFragment.java91 final int counts[] = bundle.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS); in FilterCursorWrapper() local
92 final ContactsSectionIndexer indexer = (sections == null || counts == null) in FilterCursorWrapper()
93 ? null : new ContactsSectionIndexer(sections, counts); in FilterCursorWrapper()
105 if (indexer != null && GroupUtil.needTrimming(mCount, counts, indexer.getPositions())) { in FilterCursorWrapper()
106 GroupUtil.updateBundle(bundle, indexer, indicesToFilter, sections, counts); in FilterCursorWrapper()
DContactEntryListAdapter.java502 int counts[] = bundle.getIntArray( in updateIndexer() local
508 int allCounts[] = new int[counts.length + 1]; in updateIndexer()
511 allCounts[i + 1] = counts[i]; in updateIndexer()
517 setIndexer(new ContactsSectionIndexer(sections, counts)); in updateIndexer()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactSectionIndexer.java104 final int[] counts = cursorExtras.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS); in buildIndexerFromCursorExtras() local
105 if (sections == null || counts == null) { in buildIndexerFromCursorExtras()
109 if (sections.length != counts.length) { in buildIndexerFromCursorExtras()
114 mSectionStartingPositions = new ArrayList<Integer>(counts.length); in buildIndexerFromCursorExtras()
116 for (int i = 0; i < counts.length; i++) { in buildIndexerFromCursorExtras()
124 position += counts[i]; in buildIndexerFromCursorExtras()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupUtil.java240 public static boolean needTrimming(int count, int[] counts, int[] positions) { in needTrimming() argument
244 return positions.length > 0 && counts.length > 0 in needTrimming()
245 && count <= (counts[counts.length - 1] + positions[positions.length - 1]); in needTrimming()
252 List<Integer> subscripts, String[] sections, int[] counts) { in updateBundle() argument
255 if (filteredContact < counts.length && filteredContact >= 0) { in updateBundle()
256 counts[filteredContact]--; in updateBundle()
257 if (counts[filteredContact] == 0) { in updateBundle()
264 final int[] newCounts = clearZeros(counts); in updateBundle()
DGroupMembersFragment.java117 final int counts[] = bundle.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS); in FilterCursorWrapper() local
118 final ContactsSectionIndexer indexer = (sections == null || counts == null) in FilterCursorWrapper()
119 ? null : new ContactsSectionIndexer(sections, counts); in FilterCursorWrapper()
133 if (indexer != null && GroupUtil.needTrimming(mCount, counts, indexer.getPositions())) { in FilterCursorWrapper()
134 GroupUtil.updateBundle(bundle, indexer, indicesToFilter, sections, counts); in FilterCursorWrapper()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DFastScrollingIndexCache.java149 static String buildCacheValue(String[] titles, int[] counts) { in buildCacheValue() argument
158 appendIfNotNull(sb, Integer.toString(counts[i])); in buildCacheValue()
167 public static final Bundle buildExtraBundle(String[] titles, int[] counts) { in buildExtraBundle() argument
170 bundle.putIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS, counts); in buildExtraBundle()
190 final int[] counts = new int[numTitles]; in buildExtraBundleFromValue() local
194 counts[i] = Integer.parseInt(values[i * 2 + 1]); in buildExtraBundleFromValue()
197 return buildExtraBundle(titles, counts); in buildExtraBundleFromValue()
DContactsProvider2.java7616 int counts[] = new int[numLabels]; in getFastScrollingIndexExtras() local
7621 counts[i] = indexCursor.getInt(AddressBookIndexQuery.COLUMN_COUNT); in getFastScrollingIndexExtras()
7624 return FastScrollingIndexCache.buildExtraBundle(labels, counts); in getFastScrollingIndexExtras()
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/
DContactsAdapter.java58 private int[] counts = new int[0]; field in ContactsAdapter
72 counts = cursor.getExtras().getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS); in updateCursor()
73 if (counts != null) { in updateCursor()
75 for (int count : counts) { in updateCursor()
216 sum += counts[++index]; in getHeaderString()
/packages/apps/UnifiedEmail/src/com/android/mail/perf/
DTimer.java127 Integer counts = mCounts.get(tag); in count() local
128 if (counts == null) { in count()
129 counts = 0; in count()
131 mCounts.put(tag, counts + 1); in count()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DFastScrollingIndexCacheTest.java84 String[] titles, int[] counts) { in putAndGetBundle() argument
85 Bundle bundle = FastScrollingIndexCache.buildExtraBundle(titles, counts); in putAndGetBundle()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardBuilder.java418 final int counts = array.length; in parseGridRows() local
421 for (int index = 0; index < counts; index += numColumns) { in parseGridRows()
426 if (i >= counts) { in parseGridRows()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java2632 private void incrementSkipCount(int[] counts, int startIndex, int endIndex) { in incrementSkipCount() argument
2633 if (counts == null || startIndex < 0 || endIndex > counts.length) { in incrementSkipCount()
2637 counts[i]++; in incrementSkipCount()
/packages/apps/TV/res/raw/
Dthird_party_licenses2868 [This is the first released version of the Lesser GPL. It also counts
/packages/inputmethods/LatinIME/dictionaries/
Den_US_wordlist.combined.gz
Den_GB_wordlist.combined.gz
Den_wordlist.combined.gz