Home | History | Annotate | Download | only in list

Lines Matching defs:partition

110       Context context, int partition, Cursor cursor, int position, ViewGroup parent) {
118 protected void bindView(View itemView, int partition, Cursor cursor, int position) {
121 bindWorkProfileIcon(view, partition);
142 DirectoryPartition partition = new DirectoryPartition(true, true);
143 partition.setDirectoryId(SUGGESTIONS_LOADER_ID);
144 partition.setDirectoryType(getContext().getString(R.string.contact_suggestions));
145 partition.setPriorityDirectory(true);
146 partition.setPhotoSupported(true);
147 partition.setLabel(getContext().getString(R.string.local_suggestions_search_label));
148 return partition;
152 DirectoryPartition partition = new DirectoryPartition(true, true);
153 partition.setDirectoryId(Directory.DEFAULT);
154 partition.setDirectoryType(getContext().getString(R.string.contactsList));
155 partition.setPriorityDirectory(true);
156 partition.setPhotoSupported(true);
157 partition.setLabel(mDefaultFilterHeaderText.toString());
158 return partition;
173 final Partition partition = getPartition(i);
174 if ((partition instanceof DirectoryPartition)
175 && ((DirectoryPartition) partition).getDirectoryId() == Directory.DEFAULT) {
186 Partition partition = getPartition(i);
187 if (partition instanceof DirectoryPartition) {
188 if (((DirectoryPartition) partition).getDirectoryId() == id) {
199 Partition partition = getPartition(i);
200 if (partition instanceof DirectoryPartition) {
201 final DirectoryPartition directoryPartition = (DirectoryPartition) partition;
217 Partition partition = getPartition(i);
218 if (partition instanceof DirectoryPartition) {
219 DirectoryPartition directoryPartition = (DirectoryPartition) partition;
235 Partition partition = getPartition(i);
236 if (partition instanceof DirectoryPartition) {
237 DirectoryPartition directoryPartition = (DirectoryPartition) partition;
264 // Enable default partition header if in search mode (including zero-suggest).
393 // TODO preserve the order of partition to match those of the cursor
400 DirectoryPartition partition = new DirectoryPartition(false, true);
401 partition.setDirectoryId(id);
404 partition.setLabel(mContext.getString(R.string.directory_search_label_work));
406 partition.setLabel(mContext.getString(R.string.directory_search_label));
410 partition.setLabel(mContext.getString(R.string.list_filter_phones_work));
412 partition.setLabel(mDefaultFilterHeaderText.toString());
415 partition.setDirectoryType(cursor.getString(directoryTypeColumnIndex));
416 partition.setDisplayName(cursor.getString(displayNameColumnIndex));
418 partition.setPhotoSupported(
421 addPartition(partition);
428 Partition partition = getPartition(i);
429 if (partition instanceof DirectoryPartition) {
430 long id = ((DirectoryPartition) partition).getDirectoryId();
444 // There is no partition for this data
448 Partition partition = getPartition(partitionIndex);
449 if (partition instanceof DirectoryPartition) {
450 ((DirectoryPartition) partition).setStatus(DirectoryPartition.STATUS_LOADED);
546 Partition partition = getPartition(i);
547 if (partition instanceof DirectoryPartition && ((DirectoryPartition) partition).isLoading()) {
562 // Sets header for the default partition.
568 Partition partition = getPartition(i);
569 if (partition instanceof DirectoryPartition
570 && ((DirectoryPartition) partition).getDirectoryId() == Directory.DEFAULT) {
578 protected View newHeaderView(Context context, int partition, Cursor cursor, ViewGroup parent) {
592 final Partition partition = getPartition(partitionId);
593 if (partition instanceof DirectoryPartition) {
594 final DirectoryPartition directoryPartition = (DirectoryPartition) partition;
603 Partition partition = getPartition(partitionIndex);
604 if (!(partition instanceof DirectoryPartition)) {
608 DirectoryPartition directoryPartition = (DirectoryPartition) partition;
638 int partition = getPartitionForPosition(position);
639 if (partition >= 0) {
642 int offset = getCursor(partition).getPosition();
658 Partition partition = getPartition(partitionIndex);
659 if (partition instanceof DirectoryPartition) {
660 return ((DirectoryPartition) partition).isPhotoSupported();