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

/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactsSectionIndexer.java26 * their respective counts.
40 * @param counts a non-null array of the same size as <code>sections</code>
42 public ContactsSectionIndexer(String[] sections, int[] counts) { argument
43 if (sections == null || counts == null) {
47 if (sections.length != counts.length) {
49 "The sections and counts arrays must have the same length");
52 // TODO process sections/counts based on current locale and/or specific section titles
55 mPositions = new int[counts.length];
57 for (int i = 0; i < counts.length; i++) {
66 position += counts[
[all...]
/packages/apps/Dialer/java/com/android/contacts/common/list/
H A DContactsSectionIndexer.java24 * A section indexer that is configured with precomputed section titles and their respective counts.
37 * @param counts a non-null array of the same size as <code>sections</code>
39 public ContactsSectionIndexer(String[] sections, int[] counts) { argument
40 if (sections == null || counts == null) {
44 if (sections.length != counts.length) {
46 "The sections and counts arrays must have the same length");
49 // TODO process sections/counts based on current locale and/or specific section titles
52 mPositions = new int[counts.length];
54 for (int i = 0; i < counts.length; i++) {
62 position += counts[
[all...]
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/
H A DContactsAdapter.java55 private final int[] counts; field in class:ContactsAdapter
61 counts = cursor.getExtras().getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS);
171 sum += counts[++index];
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DFastScrollingIndexCache.java149 static String buildCacheValue(String[] titles, int[] counts) { argument
158 appendIfNotNull(sb, Integer.toString(counts[i]));
167 public static final Bundle buildExtraBundle(String[] titles, int[] counts) { argument
170 bundle.putIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS, counts);
190 final int[] counts = new int[numTitles];
194 counts[i] = Integer.parseInt(values[i * 2 + 1]);
197 return buildExtraBundle(titles, counts);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DFastScrollingIndexCacheTest.java85 String[] titles, int[] counts) {
86 Bundle bundle = FastScrollingIndexCache.buildExtraBundle(titles, counts);
83 putAndGetBundle(FastScrollingIndexCache cache, Uri queryUri, String selection, String[] selectionArgs, String sortOrder, String countExpression, String[] titles, int[] counts) argument
/packages/apps/Contacts/src/com/android/contacts/group/
H A DGroupUtil.java236 * The sum of the last element in counts[] and the last element in positions[] is the total
240 public static boolean needTrimming(int count, int[] counts, int[] positions) { argument
241 // The sum of the last element in counts[] and the last element in positions[] is
244 return positions.length > 0 && counts.length > 0
245 && count <= (counts[counts.length - 1] + positions[positions.length - 1]);
252 List<Integer> subscripts, String[] sections, int[] counts) {
255 if (filteredContact < counts.length && filteredContact >= 0) {
256 counts[filteredContact]--;
257 if (counts[filteredContac
251 updateBundle(Bundle bundle, ContactsSectionIndexer indexer, List<Integer> subscripts, String[] sections, int[] counts) argument
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DMetrics.java515 ProviderCounts counts = new ProviderCounts();
516 countProviders(counts, srcs, dst);
518 if (counts.intraProvider > 0) {
521 if (counts.systemProvider > 0) {
525 if (counts.externalProvider > 0) {
576 ProviderCounts counts = new ProviderCounts();
577 countProviders(counts, failedFiles, null);
580 countProviders(counts, failedUris);
600 if (counts.systemProvider > 0) {
603 if (counts
1038 countProviders( ProviderCounts counts, List<DocumentInfo> srcs, @Nullable DocumentInfo dst) argument
1050 countProviders(ProviderCounts counts, List<Uri> uris) argument
1056 countForAuthority( ProviderCounts counts, String authority, @Nullable DocumentInfo dst) argument
[all...]
/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]++;
/packages/apps/Messaging/build/gcheckstyle/
H A Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com/google/ com/google/ ...
/packages/services/Telecomm/libs/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/util/ ...

Completed in 426 milliseconds