/packages/services/Car/car-lib/src/android/car/storagemonitoring/ |
H A D | LifetimeWriteInfo.java | 46 public final String partition; field in class:LifetimeWriteInfo 50 public LifetimeWriteInfo(String partition, String fstype, long writtenBytes) { argument 51 this.partition = Objects.requireNonNull(partition); 60 this.partition = in.readString(); 66 partition = in.getString("partition"); 74 dest.writeString(partition); 81 jsonWriter.name("partition").value(partition); [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | PinnedHeaderListAdapter.java | 25 * A subclass of {@link CompositeCursorAdapter} that manages pinned partition headers. 60 protected boolean isPinnedPartitionHeaderVisible(int partition) { argument 61 return getPinnedPartitionHeadersEnabled() && hasHeader(partition) 62 && !isPartitionEmpty(partition); 67 * partition header. 70 public View getPinnedHeaderView(int partition, View convertView, ViewGroup parent) { argument 71 if (hasHeader(partition)) { 80 view = newHeaderView(getContext(), partition, null, parent); 85 bindHeaderView(view, partition, getCursor(partition)); [all...] |
H A D | ContactEntryListAdapter.java | 119 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 127 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 130 bindWorkProfileIcon(view, partition); 148 DirectoryPartition partition = new DirectoryPartition(true, true); 149 partition.setDirectoryId(Directory.DEFAULT); 150 partition.setDirectoryType(getContext().getString(R.string.contactsList)); 151 partition.setPriorityDirectory(true); 152 partition.setPhotoSupported(true); 153 partition.setLabel(mDefaultFilterHeaderText.toString()); 154 return partition; 118 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument 605 newHeaderView(Context context, int partition, Cursor cursor, ViewGroup parent) argument [all...] |
H A D | JoinContactListAdapter.java | 125 // Don't change default partition parameters from these defaults 135 public int getItemViewType(int partition, int position) { argument 136 return super.getItemViewType(partition, position); 140 protected View newHeaderView(Context context, int partition, Cursor cursor, argument 142 switch (partition) { 167 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 168 switch (partition) { 171 return super.newView(context, partition, cursor, position, parent); 181 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 182 super.bindView(itemView, partition, curso 166 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument [all...] |
H A D | LegacyPhoneNumberListAdapter.java | 78 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 80 super.newView(context, partition, cursor, position, parent); 86 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 87 super.bindView(itemView, partition, cursor, position); 77 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
|
H A D | LegacyContactListAdapter.java | 74 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 81 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 82 super.bindView(itemView, partition, cursor, position); 73 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
|
H A D | LegacyPostalAddressListAdapter.java | 79 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 86 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 87 super.bindView(itemView, partition, cursor, position); 78 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
|
H A D | MultiSelectEntryContactListAdapter.java | 154 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 155 super.bindView(itemView, partition, cursor, position); 158 bindCheckBox(view, cursor, partition == ContactsContract.Directory.DEFAULT);
|
H A D | IndexerListAdapter.java | 85 public void setIndexedPartition(int partition) { argument 86 this.mIndexedPartition = partition; 107 * @return relative position of the section in the indexed partition 118 * @param position relative position in the indexed partition 165 int partition = getPartitionForPosition(position); 166 if (partition == mIndexedPartition) { 183 // Compute the item position where the current partition begins
|
H A D | HeaderEntryContactListAdapter.java | 92 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 93 super.bindView(itemView, partition, cursor, position + getHeaderEntryCount());
|
H A D | ContactEntryListFragment.java | 334 Partition partition = mAdapter.getPartition(i); 335 if (partition instanceof DirectoryPartition) { 336 DirectoryPartition directoryPartition = (DirectoryPartition)partition; 386 DirectoryPartition partition = (DirectoryPartition)mAdapter.getPartition(partitionIndex); 387 partition.setStatus(DirectoryPartition.STATUS_LOADING); 388 long directoryId = partition.getDirectoryId(); 391 loadDirectoryPartition(partitionIndex, partition); 393 loadDirectoryPartitionDelayed(partitionIndex, partition); 407 private void loadDirectoryPartitionDelayed(int partitionIndex, DirectoryPartition partition) { argument 408 mDelayedDirectorySearchHandler.removeMessages(DIRECTORY_SEARCH_MESSAGE, partition); 417 loadDirectoryPartition(int partitionIndex, DirectoryPartition partition) argument [all...] |
H A D | PhoneNumberListAdapter.java | 375 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 376 ContactListItemView view = super.newView(context, partition, cursor, position, parent); 408 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 409 super.bindView(itemView, partition, cursor, position); 448 bindQuickContact(view, partition, cursor, PhoneQuery.PHOTO_ID, 453 bindPhoto(view, partition, cursor); 462 final DirectoryPartition directory = (DirectoryPartition) getPartition(partition); 522 protected void bindWorkProfileIcon(final ContactListItemView view, int partition) { argument 523 final DirectoryPartition directory = (DirectoryPartition) getPartition(partition); 608 final DirectoryPartition partition 374 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument [all...] |
H A D | EmailAddressListAdapter.java | 124 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 125 ContactListItemView view = super.newView(context, partition, cursor, position, parent); 132 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 133 super.bindView(itemView, partition, cursor, position); 123 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
|
H A D | MultiSelectEmailAddressesListAdapter.java | 136 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 137 final ContactListItemView view = super.newView(context, partition, cursor, position, parent); 144 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 145 super.bindView(itemView, partition, cursor, position); 135 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
|
H A D | MultiSelectPhoneNumbersListAdapter.java | 136 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 137 final ContactListItemView view = super.newView(context, partition, cursor, position, parent); 144 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 145 super.bindView(itemView, partition, cursor, position); 135 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
H A D | PinnedHeaderListAdapter.java | 23 /** A subclass of {@link CompositeCursorAdapter} that manages pinned partition headers. */ 53 protected boolean isPinnedPartitionHeaderVisible(int partition) { argument 55 && hasHeader(partition) 56 && !isPartitionEmpty(partition); 59 /** The default implementation creates the same type of view as a normal partition header. */ 61 public View getPinnedHeaderView(int partition, View convertView, ViewGroup parent) { argument 62 if (hasHeader(partition)) { 71 view = newHeaderView(getContext(), partition, null, parent); 76 bindHeaderView(view, partition, getCursor(partition)); [all...] |
H A D | ContactEntryListAdapter.java | 110 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 118 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 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; 109 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument 578 newHeaderView(Context context, int partition, Cursor cursor, ViewGroup parent) argument [all...] |
H A D | IndexerListAdapter.java | 60 public void setIndexedPartition(int partition) { argument 61 this.mIndexedPartition = partition; 81 /** @return relative position of the section in the indexed partition */ 90 /** @param position relative position in the indexed partition */ 136 int partition = getPartitionForPosition(position); 137 if (partition == mIndexedPartition) { 154 // Compute the item position where the current partition begins
|
H A D | ContactEntryListFragment.java | 308 Partition partition = mAdapter.getPartition(i); 309 if (partition instanceof DirectoryPartition) { 310 DirectoryPartition directoryPartition = (DirectoryPartition) partition; 363 DirectoryPartition partition = (DirectoryPartition) mAdapter.getPartition(partitionIndex); 364 partition.setStatus(DirectoryPartition.STATUS_LOADING); 365 long directoryId = partition.getDirectoryId(); 368 loadDirectoryPartition(partitionIndex, partition); 370 loadDirectoryPartitionDelayed(partitionIndex, partition); 384 private void loadDirectoryPartitionDelayed(int partitionIndex, DirectoryPartition partition) { argument 385 mDelayedDirectorySearchHandler.removeMessages(DIRECTORY_SEARCH_MESSAGE, partition); 393 loadDirectoryPartition(int partitionIndex, DirectoryPartition partition) argument [all...] |
H A D | PhoneNumberListAdapter.java | 295 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 296 ContactListItemView view = super.newView(context, partition, cursor, position, parent); 307 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 308 super.bindView(itemView, partition, cursor, position); 337 partition, 346 bindPhoto(view, partition, cursor); 355 final DirectoryPartition directory = (DirectoryPartition) getPartition(partition); 357 position += getPositionForPartition(partition) + 1; 446 protected void bindWorkProfileIcon(final ContactListItemView view, int partition) { argument 447 final DirectoryPartition directory = (DirectoryPartition) getPartition(partition); 294 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A D | CompositeAdapter.java | 105 public void addPartition(final Partition partition) { argument 112 mPartitions[mSize++] = partition; 113 partition.getAdapter().registerDataSetObserver(mObserver); 119 final Partition partition = mPartitions[index]; 120 partition.close(); 124 partition.getAdapter().unregisterDataSetObserver(mObserver); 131 final Partition partition = mPartitions[i]; 132 partition.close(); 133 partition.getAdapter().unregisterDataSetObserver(mObserver); 201 final Partition partition [all...] |
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
H A D | BlockedListSearchAdapter.java | 64 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 65 super.bindView(itemView, partition, cursor, position);
|
H A D | RegularSearchListAdapter.java | 47 final DirectoryPartition partition = 49 final long directoryId = partition.getDirectoryId(); 73 final String sourceName = partition.getLabel();
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | TraceHelper.java | 58 public static void partitionSection(String sectionName, String partition) { argument 69 Log.d(sectionName, partition + " : " + (now - time.value));
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
H A D | GroupMembersAdapter.java | 138 protected ContactListItemView newView(Context context, int partition, Cursor cursor, argument 141 super.newView(context, partition, cursor, position, parent); 147 protected void bindView(View v, int partition, Cursor cursor, int position) { argument 148 super.bindView(v, partition, cursor, position);
|