Home
last modified time | relevance | path

Searched refs:partitionIndex (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/list/
DContactListAdapter.java164 int partitionIndex = getPartitionForPosition(position); in getContactUri() local
166 return item != null ? getContactUri(partitionIndex, item) : null; in getContactUri()
169 public Uri getContactUri(int partitionIndex, Cursor cursor) { in getContactUri() argument
173 long directoryId = ((DirectoryPartition)getPartition(partitionIndex)).getDirectoryId(); in getContactUri()
204 public boolean isSelectedContact(int partitionIndex, Cursor cursor) { in isSelectedContact() argument
205 long directoryId = ((DirectoryPartition)getPartition(partitionIndex)).getDirectoryId(); in isSelectedContact()
244 protected void bindPhoto(final ContactListItemView view, int partitionIndex, Cursor cursor) { in bindPhoto() argument
245 if (!isPhotoSupported(partitionIndex)) { in bindPhoto()
296 int partitionIndex = -1; in getSelectedContactPosition() local
301 partitionIndex = i; in getSelectedContactPosition()
[all …]
DContactEntryListAdapter.java459 public void changeCursor(int partitionIndex, Cursor cursor) { in changeCursor() argument
460 if (partitionIndex >= getPartitionCount()) { in changeCursor()
465 Partition partition = getPartition(partitionIndex); in changeCursor()
470 if (mDisplayPhotos && mPhotoLoader != null && isPhotoSupported(partitionIndex)) { in changeCursor()
474 super.changeCursor(partitionIndex, cursor); in changeCursor()
476 if (isSectionHeaderDisplayEnabled() && partitionIndex == getIndexedPartition()) { in changeCursor()
536 public int getItemViewType(int partitionIndex, int position) { in getItemViewType() argument
537 int type = super.getItemViewType(partitionIndex, position); in getItemViewType()
538 if (isSectionHeaderDisplayEnabled() && partitionIndex == getIndexedPartition()) { in getItemViewType()
630 protected void bindHeaderView(View view, int partitionIndex, Cursor cursor) { in bindHeaderView() argument
[all …]
DContactEntryListFragment.java385 private void startLoadingDirectoryPartition(int partitionIndex) {
386 DirectoryPartition partition = (DirectoryPartition)mAdapter.getPartition(partitionIndex);
391 loadDirectoryPartition(partitionIndex, partition);
393 loadDirectoryPartitionDelayed(partitionIndex, partition);
398 getLoaderManager().initLoader(partitionIndex, args, this);
407 private void loadDirectoryPartitionDelayed(int partitionIndex, DirectoryPartition partition) {
410 DIRECTORY_SEARCH_MESSAGE, partitionIndex, 0, partition);
417 protected void loadDirectoryPartition(int partitionIndex, DirectoryPartition partition) {
420 getLoaderManager().restartLoader(partitionIndex, args, this);
476 protected void onPartitionLoaded(int partitionIndex, Cursor data) {
[all …]
DPhoneNumberListAdapter.java338 final int partitionIndex = getPartitionForPosition(position); in getDataUri() local
340 return item != null ? getDataUri(partitionIndex, item) : null; in getDataUri()
343 public Uri getDataUri(int partitionIndex, Cursor cursor) { in getDataUri() argument
345 ((DirectoryPartition)getPartition(partitionIndex)).getDirectoryId(); in getDataUri()
533 protected void bindPhoto(final ContactListItemView view, int partitionIndex, Cursor cursor) { in bindPhoto() argument
534 if (!isPhotoSupported(partitionIndex)) { in bindPhoto()
634 protected Uri getContactUri(int partitionIndex, Cursor cursor, in getContactUri() argument
636 final DirectoryPartition directory = (DirectoryPartition) getPartition(partitionIndex); in getContactUri()
639 return super.getContactUri(partitionIndex, cursor, contactIdColumn, lookUpKeyColumn); in getContactUri()
DJoinContactListAdapter.java161 protected void bindHeaderView(View view, int partitionIndex, Cursor cursor) { in bindHeaderView() argument
202 public Uri getContactUri(int partitionIndex, Cursor cursor) { in getContactUri() argument
/packages/apps/Dialer/java/com/android/contacts/common/list/
DContactEntryListAdapter.java442 public void changeCursor(int partitionIndex, Cursor cursor) { in changeCursor() argument
443 if (partitionIndex >= getPartitionCount()) { in changeCursor()
448 Partition partition = getPartition(partitionIndex); in changeCursor()
453 if (mDisplayPhotos && mPhotoLoader != null && isPhotoSupported(partitionIndex)) { in changeCursor()
457 super.changeCursor(partitionIndex, cursor); in changeCursor()
459 if (isSectionHeaderDisplayEnabled() && partitionIndex == getIndexedPartition()) { in changeCursor()
515 public int getItemViewType(int partitionIndex, int position) { in getItemViewType() argument
516 int type = super.getItemViewType(partitionIndex, position); in getItemViewType()
519 && partitionIndex == getIndexedPartition()) { in getItemViewType()
602 protected void bindHeaderView(View view, int partitionIndex, Cursor cursor) { in bindHeaderView() argument
[all …]
DContactEntryListFragment.java362 private void startLoadingDirectoryPartition(int partitionIndex) {
363 DirectoryPartition partition = (DirectoryPartition) mAdapter.getPartition(partitionIndex);
368 loadDirectoryPartition(partitionIndex, partition);
370 loadDirectoryPartitionDelayed(partitionIndex, partition);
375 getLoaderManager().initLoader(partitionIndex, args, this);
384 private void loadDirectoryPartitionDelayed(int partitionIndex, DirectoryPartition partition) {
388 DIRECTORY_SEARCH_MESSAGE, partitionIndex, 0, partition);
393 protected void loadDirectoryPartition(int partitionIndex, DirectoryPartition partition) {
396 getLoaderManager().restartLoader(partitionIndex, args, this);
437 protected void onPartitionLoaded(int partitionIndex, Cursor data) {
[all …]
DContactListAdapter.java48 public Uri getContactUri(int partitionIndex, Cursor cursor) { in getContactUri() argument
52 long directoryId = ((DirectoryPartition) getPartition(partitionIndex)).getDirectoryId(); in getContactUri()
85 protected void bindPhoto(final ContactListItemView view, int partitionIndex, Cursor cursor) { in bindPhoto() argument
86 if (!isPhotoSupported(partitionIndex)) { in bindPhoto()
131 public void changeCursor(int partitionIndex, Cursor cursor) { in changeCursor() argument
132 super.changeCursor(partitionIndex, cursor); in changeCursor()
DPhoneNumberListAdapter.java452 protected void bindPhoto(final ContactListItemView view, int partitionIndex, Cursor cursor) { in bindPhoto() argument
453 if (!isPhotoSupported(partitionIndex)) { in bindPhoto()
539 int partitionIndex, Cursor cursor, int contactIdColumn, int lookUpKeyColumn) { in getContactUri() argument
540 final DirectoryPartition directory = (DirectoryPartition) getPartition(partitionIndex); in getContactUri()
543 return super.getContactUri(partitionIndex, cursor, contactIdColumn, lookUpKeyColumn); in getContactUri()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DTimeClustering.java269 int partitionIndex = -1; in getPartitionIndexForCurrentCluster() local
294 partitionIndex = i; in getPartitionIndexForCurrentCluster()
297 partitionIndex = i + 1; in getPartitionIndexForCurrentCluster()
303 return partitionIndex; in getPartitionIndexForCurrentCluster()