Home
last modified time | relevance | path

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

/aosp12/packages/apps/Contacts/src/com/android/contacts/list/
H A 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
245 if (!isPhotoSupported(partitionIndex)) { in bindPhoto()
296 int partitionIndex = -1; in getSelectedContactPosition() local
301 partitionIndex = i; in getSelectedContactPosition()
305 if (partitionIndex == -1) { in getSelectedContactPosition()
309 cursor = getCursor(partitionIndex); in getSelectedContactPosition()
338 if (hasHeader(partitionIndex)) { in getSelectedContactPosition()
372 public void changeCursor(int partitionIndex, Cursor cursor) { in changeCursor() argument
[all …]
H A 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()
474 super.changeCursor(partitionIndex, cursor); in changeCursor()
536 public int getItemViewType(int partitionIndex, int position) { in getItemViewType() argument
537 int type = super.getItemViewType(partitionIndex, position); in getItemViewType()
630 protected void bindHeaderView(View view, int partitionIndex, Cursor cursor) { in bindHeaderView() argument
631 Partition partition = getPartition(partitionIndex); in bindHeaderView()
677 public boolean isPhotoSupported(int partitionIndex) { in isPhotoSupported() argument
678 Partition partition = getPartition(partitionIndex); in isPhotoSupported()
[all …]
H A 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);
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) {
477 if (partitionIndex >= mAdapter.getPartitionCount()) {
[all …]
H A 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()
H A 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
/aosp12/frameworks/ex/common/java/com/android/common/contacts/
H A DBaseEmailAddressAdapter.java216 this.mPartitionIndex = partitionIndex; in DirectoryPartitionFilter()
308 protected int getItemViewType(int partitionIndex, int position) { in getItemViewType() argument
348 protected boolean isEnabled(int partitionIndex, int position) { in isEnabled() argument
350 return !isLoading(partitionIndex); in isEnabled()
353 private boolean isLoading(int partitionIndex) { in isLoading() argument
482 void showSearchPendingIfNotComplete(int partitionIndex) { in showSearchPendingIfNotComplete() argument
483 if (partitionIndex < getPartitionCount()) { in showSearchPendingIfNotComplete()
486 changeCursor(partitionIndex, createLoadingCursor()); in showSearchPendingIfNotComplete()
501 CharSequence constraint, int partitionIndex, Cursor cursor) { in onPartitionLoadFinished() argument
502 if (partitionIndex < getPartitionCount()) { in onPartitionLoadFinished()
[all …]
/aosp12/frameworks/ex/common/java/com/android/common/widget/
H A DCompositeCursorAdapter.java104 public void removePartition(int partitionIndex) { in removePartition() argument
105 Cursor cursor = mPartitions.get(partitionIndex).cursor; in removePartition()
109 mPartitions.remove(partitionIndex); in removePartition()
143 public void setHasHeader(int partitionIndex, boolean flag) { in setHasHeader() argument
144 mPartitions.get(partitionIndex).hasHeader = flag; in setHasHeader()
148 public void setShowIfEmpty(int partitionIndex, boolean flag) { in setShowIfEmpty() argument
149 mPartitions.get(partitionIndex).showIfEmpty = flag; in setShowIfEmpty()
153 public Partition getPartition(int partitionIndex) { in getPartition() argument
154 return mPartitions.get(partitionIndex); in getPartition()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DTimeClustering.java269 int partitionIndex = -1; in getPartitionIndexForCurrentCluster() local
294 partitionIndex = i; in getPartitionIndexForCurrentCluster()
297 partitionIndex = i + 1; in getPartitionIndexForCurrentCluster()
303 return partitionIndex; in getPartitionIndexForCurrentCluster()