Searched refs:partition (Results 1 - 18 of 18) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/widget/
H A DPinnedHeaderListAdapter.java25 * A subclass of {@link CompositeCursorAdapter} that manages pinned partition headers.
59 protected boolean isPinnedPartitionHeaderVisible(int partition) { argument
60 return mPinnedPartitionHeadersEnabled && hasHeader(partition)
61 && !isPartitionEmpty(partition);
66 * partition header.
68 public View getPinnedHeaderView(int partition, View convertView, ViewGroup parent) { argument
69 if (hasHeader(partition)) {
78 view = newHeaderView(getContext(), partition, null, parent);
83 bindHeaderView(view, partition, getCursor(partition));
[all...]
H A DIndexerListAdapter.java95 public void setIndexedPartition(int partition) { argument
96 this.mIndexedPartition = partition;
117 * @return relative position of the section in the indexed partition
128 * @param position relative position in the indexed partition
175 int partition = getPartitionForPosition(position);
176 if (partition == mIndexedPartition) {
192 // Compute the item position where the current partition begins
H A DPinnedHeaderListDemoActivity.java54 protected View newHeaderView(Context context, int partition, Cursor cursor, argument
67 protected View newView(Context context, int partition, Cursor cursor, int position, argument
74 protected void bindView(View v, int partition, Cursor cursor, int position) { argument
H A DPinnedHeaderListView.java414 private boolean smoothScrollToPartition(int partition) { argument
415 final int position = mAdapter.getScrollPositionForHeader(partition);
421 for (int i = 0; i < partition; i++) {
/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactEntryListAdapter.java131 DirectoryPartition partition = new DirectoryPartition(true, true);
132 partition.setDirectoryId(Directory.DEFAULT);
133 partition.setDirectoryType(getContext().getString(R.string.contactsList));
134 partition.setPriorityDirectory(true);
135 partition.setPhotoSupported(true);
136 return partition;
142 Partition partition = getPartition(i);
143 if (partition instanceof DirectoryPartition) {
144 if (((DirectoryPartition)partition).getDirectoryId() == id) {
162 Partition partition
501 newHeaderView(Context context, int partition, Cursor cursor, ViewGroup parent) argument
[all...]
H A DJoinContactListAdapter.java117 // Don't change default partition parameters from these defaults
127 public int getItemViewType(int partition, int position) { argument
128 return super.getItemViewType(partition, position);
132 protected View newHeaderView(Context context, int partition, Cursor cursor, argument
134 switch (partition) {
158 protected View newView(Context context, int partition, Cursor cursor, int position, argument
160 switch (partition) {
163 return super.newView(context, partition, cursor, position, parent);
173 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument
174 switch (partition) {
[all...]
H A DLegacyContactListAdapter.java73 protected View newView(Context context, int partition, Cursor cursor, int position, argument
81 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument
H A DContactEntryListFragment.java315 Partition partition = mAdapter.getPartition(i);
316 if (partition instanceof DirectoryPartition) {
317 DirectoryPartition directoryPartition = (DirectoryPartition)partition;
353 DirectoryPartition partition = (DirectoryPartition)mAdapter.getPartition(partitionIndex);
354 partition.setStatus(DirectoryPartition.STATUS_LOADING);
355 long directoryId = partition.getDirectoryId();
358 loadDirectoryPartition(partitionIndex, partition);
360 loadDirectoryPartitionDelayed(partitionIndex, partition);
374 private void loadDirectoryPartitionDelayed(int partitionIndex, DirectoryPartition partition) { argument
375 mDelayedDirectorySearchHandler.removeMessages(DIRECTORY_SEARCH_MESSAGE, partition);
384 loadDirectoryPartition(int partitionIndex, DirectoryPartition partition) argument
[all...]
H A DLegacyPhoneNumberListAdapter.java77 protected View newView(Context context, int partition, Cursor cursor, int position, argument
85 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument
H A DLegacyPostalAddressListAdapter.java78 protected View newView(Context context, int partition, Cursor cursor, int position, argument
86 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument
H A DDefaultContactListAdapter.java199 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument
205 view.setActivated(isSelectedContact(partition, cursor));
211 bindQuickContact(view, partition, cursor, ContactQuery.CONTACT_PHOTO_ID,
214 bindPhoto(view, partition, cursor);
H A DContactListAdapter.java187 protected View newView(Context context, int partition, Cursor cursor, int position, argument
261 DirectoryPartition partition = (DirectoryPartition) getPartition(i);
262 if (partition.getDirectoryId() == mSelectedContactDirectoryId) {
313 DirectoryPartition partition = (DirectoryPartition) getPartition(i);
314 if (partition.isLoading()) {
H A DPostalAddressListAdapter.java111 protected View newView(Context context, int partition, Cursor cursor, int position, argument
120 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument
H A DPhoneNumberListAdapter.java217 protected View newView(Context context, int partition, Cursor cursor, int position, argument
227 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument
262 bindQuickContact(view, partition, cursor, PhoneQuery.PHONE_PHOTO_ID,
H A DEmailAddressListAdapter.java120 protected View newView(Context context, int partition, Cursor cursor, int position, argument
129 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument
H A DContactBrowseListFragment.java455 Partition partition = adapter.getPartition(i);
456 if (partition instanceof DirectoryPartition) {
457 DirectoryPartition directory = (DirectoryPartition) partition;
H A DJoinContactListFragment.java148 int partition = adapter.getPartitionForPosition(position);
/packages/experimental/procstatlog/
H A Dprocstatreport.py109 <span style="font-size: 150%%">yaffs: %(partition)s</span><br>
457 yaffs, partition, var = key.split(":", 2)
458 ops = partition_ops.setdefault(partition, {})
464 for num, (partition, ops) in enumerate(sorted(partition_ops.iteritems())):
473 values = {"partition": partition}

Completed in 144 milliseconds