/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaByDayAdapter.java | 83 public long getInstanceId(int position) { in getInstanceId() argument 84 if (mRowInfo == null || position >= mRowInfo.size()) { in getInstanceId() 87 return mRowInfo.get(position).mInstanceId; in getInstanceId() 90 public long getStartTime(int position) { in getStartTime() argument 91 if (mRowInfo == null || position >= mRowInfo.size()) { in getStartTime() 94 return mRowInfo.get(position).mEventStartTimeMilli; in getStartTime() 99 public int getHeaderPosition(int position) { in getHeaderPosition() argument 100 if (mRowInfo == null || position >= mRowInfo.size()) { in getHeaderPosition() 104 for (int i = position; i >=0; i --) { in getHeaderPosition() 113 public int getHeaderItemsCount(int position) { in getHeaderItemsCount() argument [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ViewPagerTabs.java | 95 public OnTabLongClickListener(int position) { in OnTabLongClickListener() argument 96 mPosition = position; in OnTabLongClickListener() 168 public void setUnreadCount(int count, int position) { in setUnreadCount() argument 169 if (mUnreadCounts == null || position >= mUnreadCounts.length) { in setUnreadCount() 172 mUnreadCounts[position] = count; in setUnreadCount() 184 private void addTab(CharSequence tabTitle, final int position) { in addTab() argument 186 if (mTabIcons != null && position < mTabIcons.length) { in addTab() 190 iconView.setBackgroundResource(mTabIcons[position]); in addTab() 193 if (mUnreadCounts != null && mUnreadCounts[position] > 0) { in addTab() 194 textView.setText(Integer.toString(mUnreadCounts[position])); in addTab() [all …]
|
D | IndexerListAdapter.java | 42 private int position = ListView.INVALID_POSITION; field in IndexerListAdapter.Placement 48 position = ListView.INVALID_POSITION; in invalidate() 120 public int getSectionForPosition(int position) { in getSectionForPosition() argument 125 return mIndexer.getSectionForPosition(position); in getSectionForPosition() 162 int position = listPosition - listView.getHeaderViewsCount(); in configurePinnedHeaders() local 165 int partition = getPartitionForPosition(position); in configurePinnedHeaders() 167 int offset = getOffsetInPartition(position); in configurePinnedHeaders() 191 boolean isLastInSection = position == nextSectionPosition - 1; in configurePinnedHeaders() 202 public Placement getItemPlacementInSection(int position) { in getItemPlacementInSection() argument 203 if (mPlacementCache.position == position) { in getItemPlacementInSection() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | CompositeListAdapter.java | 144 public Object getItem(int position) { in getItem() argument 149 if (position >= start && position < end) { in getItem() 150 return mAdapters[i].getItem(position - start); in getItem() 155 throw new ArrayIndexOutOfBoundsException(position); in getItem() 158 public long getItemId(int position) { in getItemId() argument 163 if (position >= start && position < end) { in getItemId() 164 return mAdapters[i].getItemId(position - start); in getItemId() 169 throw new ArrayIndexOutOfBoundsException(position); in getItemId() 179 public int getItemViewType(int position) { in getItemViewType() argument 185 if (position >= start && position < end) { in getItemViewType() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
D | NullInputStream.java | 66 private long position; field in NullInputStream 106 return position; in getPosition() 124 long avail = size - position; in available() 142 position = 0; in close() 157 mark = position; in mark() 184 if (position == size) { in read() 187 position++; in read() 223 if (position == size) { in read() 226 position += length; in read() 228 if (position > size) { in read() [all …]
|
D | NullReader.java | 66 private long position; field in NullReader 106 return position; in getPosition() 126 position = 0; in close() 141 mark = position; in mark() 168 if (position == size) { in read() 171 position++; in read() 207 if (position == size) { in read() 210 position += length; in read() 212 if (position > size) { in read() 213 returnLength = length - (int)(position - size); in read() [all …]
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | SectionedAlbumDataAdapter.java | 113 public boolean isEnabled(int position) { in isEnabled() argument 114 if (isHeader(position)) { in isEnabled() 117 return mAlbumData.isEnabled(internalPosition(position)); in isEnabled() 129 public Object getItem(int position) { in getItem() argument 130 if (isHeader(position)) { in getItem() 131 return mAlbumData.getItem(internalPosition(position+1)).account; in getItem() 133 return mAlbumData.getItem(internalPosition(position)); in getItem() 138 public long getItemId(int position) { in getItemId() argument 139 return position; in getItemId() 143 public int getItemViewType(int position) { in getItemViewType() argument [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/adapter/ |
D | MtpAdapter.java | 93 public Object getItem(int position) { in getItem() argument 94 return mModel.get(position, mSortOrder); in getItem() 103 public boolean isEnabled(int position) { in isEnabled() argument 108 public long getItemId(int position) { in getItemId() argument 109 return position; in getItemId() 118 public int getItemViewType(int position) { in getItemViewType() argument 121 if (position == getPositionForSection(getSectionForPosition(position))) { in getItemViewType() 128 public boolean itemAtPositionIsBucket(int position) { in itemAtPositionIsBucket() argument 129 return getItemViewType(position) == ITEM_TYPE_BUCKET; in itemAtPositionIsBucket() 132 public boolean itemAtPositionIsMedia(int position) { in itemAtPositionIsMedia() argument [all …]
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
D | SelectCalendarsSimpleAdapter.java | 217 public View getView(final int position, View convertView, ViewGroup parent) { in getView() argument 218 if (position >= mRowCount) { in getView() 221 String name = mData[position].displayName; in getView() 222 boolean selected = mData[position].selected; in getView() 224 int color = Utils.getDisplayColorFromColor(mData[position].color); in getView() 256 if (!hasMoreColors(position)) { in getView() 261 mColorPickerDialog = CalendarColorPickerDialog.newInstance(mData[position].id, in getView() 264 mColorPickerDialog.setCalendarId(mData[position].id); in getView() 287 colorView.setEnabled(hasMoreColors(position)); in getView() 290 if (!TextUtils.isEmpty(mData[position].ownerAccount) in getView() [all …]
|
D | SelectCalendarsSyncAdapter.java | 147 public View getView(final int position, View convertView, ViewGroup parent) { in getView() argument 148 if (position >= mRowCount) { in getView() 151 String name = mData[position].displayName; in getView() 152 boolean selected = mData[position].synced; in getView() 153 int color = Utils.getDisplayColorFromColor(mData[position].color); in getView() 176 view.setTag(mData[position]); in getView() 188 colorView.setEnabled(hasMoreColors(position)); in getView() 195 if (!hasMoreColors(position)) { in getView() 200 mColorPickerDialog = CalendarColorPickerDialog.newInstance(mData[position].id, in getView() 203 mColorPickerDialog.setCalendarId(mData[position].id); in getView() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | MtpDeviceIndex.java | 243 public Object get(int position, SortOrder order) { in get() argument 249 DateBucket bucket = results.buckets[results.unifiedLookupIndex[position]]; in get() 250 if (bucket.unifiedStartIndex == position) { in get() 253 return results.mtpObjects[bucket.itemsStartIndex + position - 1 in get() 257 int zeroIndex = results.unifiedLookupIndex.length - 1 - position; in get() 273 public IngestObjectInfo getWithoutLabels(int position, SortOrder order) { in getWithoutLabels() argument 279 return results.mtpObjects[position]; in getWithoutLabels() 281 return results.mtpObjects[results.mtpObjects.length - 1 - position]; in getWithoutLabels() 292 public int getPositionFromPositionWithoutLabels(int position, SortOrder order) { in getPositionFromPositionWithoutLabels() argument 302 position = results.mtpObjects.length - 1 - position; in getPositionFromPositionWithoutLabels() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | AnimatedAdapter.java | 405 public int getItemViewType(int position) { in getItemViewType() argument 407 if (mHeaders.size() > position) { in getItemViewType() 409 } else if (position == getCount() - 1) { in getItemViewType() 419 } else if (mSpecialViews.get(getSpecialViewsPos(position)) != null) { in getItemViewType() 470 if (c.position >= startPosition && c.position <= endPosition) { in delete() 488 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 489 if (mHeaders.size() > position) { in getView() 490 return mHeaders.get(position); in getView() 491 } else if (position == getCount() - 1) { in getView() 497 getSpecialViewsPos(position)); in getView() [all …]
|
D | SeparatedFolderListAdapter.java | 42 public Object getItem(int position) { in getItem() argument 47 if (position < size) in getItem() 48 return adapter.getItem(position); in getItem() 51 position -= size; in getItem() 76 public int getItemViewType(int position) { in getItemViewType() argument 81 if (position < size) { in getItemViewType() 82 return type + adapter.getItemViewType(position); in getItemViewType() 86 position -= size; in getItemViewType() 94 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 97 if (position < size) { in getView() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | HeaderEntryContactListAdapter.java | 60 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 61 if (position == 0 && getHeaderEntryCount() > 0) { in getView() 74 return super.getView(position - getHeaderEntryCount(), convertView, parent); in getView() 78 public Object getItem(int position) { in getItem() argument 79 return super.getItem(position - getHeaderEntryCount()); in getItem() 83 public boolean isEnabled(int position) { in isEnabled() argument 84 return position < getHeaderEntryCount() || super in isEnabled() 85 .isEnabled(position - getHeaderEntryCount()); in isEnabled() 89 public int getPartitionForPosition(int position) { in getPartitionForPosition() argument 90 return super.getPartitionForPosition(position - getHeaderEntryCount()); in getPartitionForPosition() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | HeaderGridView.java | 307 public boolean isEnabled(int position) { in isEnabled() argument 310 if (position < numHeadersAndPlaceholders) { in isEnabled() 311 return (position % mNumColumns == 0) in isEnabled() 312 && mHeaderViewInfos.get(position / mNumColumns).isSelectable; in isEnabled() 316 final int adjPosition = position - numHeadersAndPlaceholders; in isEnabled() 325 throw new ArrayIndexOutOfBoundsException(position); in isEnabled() 329 public Object getItem(int position) { in getItem() argument 332 if (position < numHeadersAndPlaceholders) { in getItem() 333 if (position % mNumColumns == 0) { in getItem() 334 return mHeaderViewInfos.get(position / mNumColumns).data; in getItem() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | CompositeAdapter.java | 143 public int getPartitionAtPosition(final int position) { in getPartitionAtPosition() argument 148 if (position >= start && position < end) { in getPartitionAtPosition() 149 int offset = position - start; in getPartitionAtPosition() 194 public Object getItem(final int position) { in getItem() argument 199 if (position >= start && position < end) { in getItem() 200 final int offset = position - start; in getItem() 216 public long getItemId(final int position) { in getItemId() argument 221 if (position >= start && position < end) { in getItemId() 222 final int offset = position - start; in getItemId() 238 public boolean isEnabled(int position) { in isEnabled() argument [all …]
|
D | ViewPagerTabs.java | 157 private void addTab(CharSequence tabTitle, final int position) { in addTab() argument 165 mPager.setCurrentItem(getRtlPosition(position)); in addTab() 184 if (position == 0) { in addTab() 191 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { in onPageScrolled() argument 192 position = getRtlPosition(position); in onPageScrolled() 194 if ((tabStripChildCount == 0) || (position < 0) || (position >= tabStripChildCount)) { in onPageScrolled() 198 mTabStrip.onPageScrolled(position, positionOffset, positionOffsetPixels); in onPageScrolled() 202 public void onPageSelected(int position) { in onPageSelected() argument 203 position = getRtlPosition(position); in onPageSelected() 205 if ((tabStripChildCount == 0) || (position < 0) || (position >= tabStripChildCount)) { in onPageSelected() [all …]
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
D | ContactEntryAdapter.java | 108 int position = 0; in setSections() local 115 position += j; in setSections() 116 return position; in setSections() 119 position += sectionSize; in setSections() 143 public final boolean isEnabled(int position) { in isEnabled() argument 156 if (position == 0) { in isEnabled() 160 position -= sectionSize; in isEnabled() 168 public final Object getItem(int position) { in getItem() argument 169 return getEntry(mSections, position, mSeparators); in getItem() 180 int position, boolean separators) { in getEntry() argument [all …]
|
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/ |
D | DrawerApiAdapter.java | 66 void onItemClicked(Bundle item, int position); in onItemClicked() argument 89 public int getItemViewType(int position) { in getItemViewType() argument 92 item = mItems.get(position); in getItemViewType() 144 public void onBindViewHolder(final CarListItemViewHolder holder, final int position) { in onBindViewHolder() argument 146 onBindEmptyPlaceHolder(holder, position); in onBindViewHolder() 150 onBindNormalView(holder, position); in onBindViewHolder() 161 holder.itemView.setTag(position); in onBindViewHolder() 180 public long getItemId(int position) { in getItemId() argument 184 return mItems.get(position).getString(KEY_ID).hashCode(); in getItemId() 191 return super.getItemId(position); in getItemId() [all …]
|
/packages/apps/Settings/src/com/android/settings/localepicker/ |
D | LocaleLinearLayoutManager.java | 81 final int position = this.getPosition(host); in onInitializeAccessibilityNodeInfoForItem() local 88 (position + 1) + ", " + dragCell.getCheckbox().getContentDescription(); in onInitializeAccessibilityNodeInfoForItem() 98 if (position > 0) { // it is not the first one in onInitializeAccessibilityNodeInfoForItem() 102 if (position + 1 < itemCount) { // it is not the last one in onInitializeAccessibilityNodeInfoForItem() 116 final int position = this.getPosition(host); in performAccessibilityActionForItem() local 121 if (position > 0) { in performAccessibilityActionForItem() 122 mAdapter.onItemMove(position, position - 1); in performAccessibilityActionForItem() 127 if (position + 1 < itemCount) { in performAccessibilityActionForItem() 128 mAdapter.onItemMove(position, position + 1); in performAccessibilityActionForItem() 133 if (position != 0) { in performAccessibilityActionForItem() [all …]
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | CallLogActivity.java | 69 public long getItemId(int position) { in getItemId() argument 70 return getRtlPosition(position); in getItemId() 74 public Fragment getItem(int position) { in getItem() argument 75 switch (getRtlPosition(position)) { in getItem() 82 throw new IllegalStateException("No fragment at position " + position); in getItem() 86 public Object instantiateItem(ViewGroup container, int position) { in instantiateItem() argument 88 (CallLogFragment) super.instantiateItem(container, position); in instantiateItem() 89 switch (position) { in instantiateItem() 101 public CharSequence getPageTitle(int position) { in getPageTitle() argument 102 return mTabTitles[position]; in getPageTitle() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
D | CitySelectionActivity.java | 271 public City getItem(int position) { in getItem() argument 273 final int itemViewType = getItemViewType(position); in getItem() 278 return mFilteredCities.get(position - 1); in getItem() 283 return mFilteredCities.get(position); in getItem() 287 public long getItemId(int position) { in getItemId() argument 288 return position; in getItemId() 292 public synchronized View getView(int position, View view, ViewGroup parent) { in getView() argument 293 final int itemViewType = getItemViewType(position); in getView() 302 final City city = getItem(position); in getView() 324 final boolean showIndex = getShowIndex(position); in getView() [all …]
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | OptionsRowAdapter.java | 92 protected MenuAction getAction(int position) { in getAction() argument 93 return mActionList.get(position); in getAction() 101 protected void setAction(int position, MenuAction action) { in setAction() argument 102 mActionList.set(position, action); in setAction() 110 protected void addAction(int position, MenuAction action) { in addAction() argument 111 mActionList.add(position, action); in addAction() 119 protected void removeAction(int position) { in removeAction() argument 120 mActionList.remove(position); in removeAction() 128 public void onBindViewHolder(MyViewHolder viewHolder, int position) { in onBindViewHolder() argument 129 super.onBindViewHolder(viewHolder, position); in onBindViewHolder() [all …]
|
D | MenuLayoutManager.java | 173 int position = 0; in dumpChildren() local 177 Log.d(TAG, prefix + " position=" + position++ in dumpChildren() 206 private boolean isVisibleInLayout(int position, MenuRowView view, List<Integer> rowsToAdd, in isVisibleInLayout() argument 209 return (view.getVisibility() != View.GONE && !rowsToRemove.contains(position)) in isVisibleInLayout() 210 || rowsToAdd.contains(position); in isVisibleInLayout() 261 int position = mSelectedPosition + 1; in getViewLayouts() local 262 for (; position < count; ++position) { in getViewLayouts() 264 MenuRowView nextView = mMenuRowViews.get(position); in getViewLayouts() 265 if (isVisibleInLayout(position, nextView, rowsToAdd, rowsToRemove)) { in getViewLayouts() 292 for (++position; position < count; ++position) { in getViewLayouts() [all …]
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | CalculatorPadViewPager.java | 35 public Object instantiateItem(ViewGroup container, int position) { 36 return getChildAt(position); 40 public void destroyItem(ViewGroup container, int position, Object object) { 41 removeViewAt(position); 50 public float getPageWidth(int position) { 51 return position == 1 ? 7.0f / 9.0f : 1.0f; 68 public void onPageSelected(int position) { 72 recursivelySetEnabled(getChildAt(childIndex), childIndex == position); 80 public void transformPage(View view, float position) { 81 if (position < 0.0f) { [all …]
|