/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 …]
|
D | AgendaWindowAdapter.java | 386 public int getItemViewType(int position) { in getItemViewType() argument 387 DayAdapterInfo info = getAdapterInfoByPosition(position); in getItemViewType() 389 return info.dayAdapter.getItemViewType(position - info.offset); in getItemViewType() 397 public boolean isEnabled(int position) { in isEnabled() argument 398 DayAdapterInfo info = getAdapterInfoByPosition(position); in isEnabled() 400 return info.dayAdapter.isEnabled(position - info.offset); in isEnabled() 412 public Object getItem(int position) { in getItem() argument 413 DayAdapterInfo info = getAdapterInfoByPosition(position); in getItem() 415 return info.dayAdapter.getItem(position - info.offset); in getItem() 429 public long getItemId(int position) { in getItemId() argument [all …]
|
D | AgendaListView.java | 172 public void onItemClick(AdapterView<?> a, View v, int position, long id) { in onItemClick() argument 175 AgendaItem item = mWindowAdapter.getAgendaItemByPosition(position); in onItemClick() 232 int position = getSelectedItemPosition(); in deleteSelectedEvent() local 233 AgendaItem agendaItem = mWindowAdapter.getAgendaItemByPosition(position); in deleteSelectedEvent() 253 int position = getSelectedItemPosition(); in getSelectedTime() local 254 if (position >= 0) { in getSelectedTime() 255 AgendaItem item = mWindowAdapter.getAgendaItemByPosition(position); in getSelectedTime() 293 int position = getFirstVisiblePosition(); in getFirstVisibleAgendaItem() local 295 Log.v(TAG, "getFirstVisiblePosition = " + position); in getFirstVisibleAgendaItem() 307 position ++; in getFirstVisibleAgendaItem() [all …]
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | SlideshowEditActivity.java | 144 protected void onListItemClick(ListView l, View v, int position, long id) { in onListItemClick() argument 145 if (position == (l.getCount() - 1)) { in onListItemClick() 148 openSlide(position); in onListItemClick() 229 int position = mList.getSelectedItemPosition(); in onPrepareOptionsMenu() local 230 if ((position >= 0) && (position != (mList.getCount() - 1))) { in onPrepareOptionsMenu() 232 if (position > 0) { in onPrepareOptionsMenu() 236 if (position < (mSlideListAdapter.getCount() - 1)) { in onPrepareOptionsMenu() 257 int position = mList.getSelectedItemPosition(); in onOptionsItemSelected() local 261 if ((position > 0) && (position < mSlideshowModel.size())) { in onOptionsItemSelected() 262 mSlideshowEditor.moveSlideUp(position); in onOptionsItemSelected() [all …]
|
D | SlideshowEditor.java | 60 int position = mModel.size(); in addNewSlide() local 61 return addNewSlide(position); in addNewSlide() 71 public boolean addNewSlide(int position) { in addNewSlide() argument 81 mModel.add(position, slide); in addNewSlide() 95 public boolean addSlide(int position, SlideModel slide) { in addSlide() argument 98 mModel.add(position, slide); in addSlide() 111 public void removeSlide(int position) { in removeSlide() argument 112 mModel.remove(position); in removeSlide() 130 public boolean removeText(int position) { in removeText() argument 131 return mModel.get(position).removeText(); in removeText() [all …]
|
/packages/wallpapers/PhaseBeam/src/com/android/phasebeam/ |
D | phasebeam.rs | 23 float3 position; 34 float3 position; 70 particle->position.x = rsRand(0.0f, 3.0f); 71 particle->position.y = rsRand(-1.25f, 1.25f); 82 particle->position.x = 1.0; 86 particle->position.z = z; 101 beamParticles->position.x = rsRand(-1.25f, 1.25f); 102 beamParticles->position.y = rsRand(-1.05f, 1.205f); 104 beamParticles->position.z = z; 134 if(beam->position.x/beam->position.z > 0.5) { [all …]
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
D | PhoneFavoriteMergedAdapter.java | 138 public Object getItem(int position) { in getItem() argument 142 if (position < callLogAdapterCount) { in getItem() 143 return mCallLogAdapter.getItem(position); in getItem() 147 position = getAdjustedPositionInContactTileAdapter(position); in getItem() 149 return mContactTileAdapter.getItem(position); in getItem() 166 public long getItemId(int position) { in getItemId() argument 168 if (position < callLogAdapterCount) { in getItemId() 170 return FAVORITES_MENU_ITEM_ID - 1 - position; in getItemId() 171 } else if (position == TILE_INTERACTION_TEASER_VIEW_POSITION + callLogAdapterCount && in getItemId() 174 } else if (position == callLogAdapterCount) { in getItemId() [all …]
|
D | PhoneFavoritesTileAdapter.java | 354 protected ContactEntry getContactEntryFromCache(int position) { in getContactEntryFromCache() argument 355 if (mContactEntries.size() <= position) return null; in getContactEntryFromCache() 356 return mContactEntries.get(position); in getContactEntryFromCache() 421 public ArrayList<ContactEntry> getItem(int position) { in getItem() argument 424 final int entryIndex = getFirstContactEntryIndexForPosition(position); in getItem() 426 final int viewType = getItemViewType(position); in getItem() 448 private int getFirstContactEntryIndexForPosition(int position) { in getFirstContactEntryIndexForPosition() argument 450 if (position < getRowCount(maxContactsInTiles)) { in getFirstContactEntryIndexForPosition() 452 return position * mColumnCount; in getFirstContactEntryIndexForPosition() 457 return maxContactsInTiles + position - mMaxTiledRows; in getFirstContactEntryIndexForPosition() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | AnimatedAdapter.java | 399 public int getItemViewType(int position) { in getItemViewType() argument 401 if (mShowFooter && position == getCount() - 1) { in getItemViewType() 411 } else if (mSpecialViews.get(position) != null) { in getItemViewType() 462 if (c.position >= startPosition && c.position <= endPosition) { in delete() 478 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 479 if (mShowFooter && position == getCount() - 1) { in getView() 484 final ConversationSpecialItemView specialView = mSpecialViews.get(position); in getView() 492 final ConversationCursor cursor = (ConversationCursor) getItem(position); in getView() 499 return getUndoingView(position - getPositionOffset(position), conv, parent, in getView() 502 return getUndoingView(position - getPositionOffset(position), conv, parent, in getView() [all …]
|
D | SeparatedFolderListAdapter.java | 39 public Object getItem(int position) { in getItem() argument 44 if (position == 0 || position < size) in getItem() 45 return adapter.getItem(position); in getItem() 48 position -= size; in getItem() 73 public int getItemViewType(int position) { in getItemViewType() argument 78 if (position == 0 || position < size) { in getItemViewType() 79 return type + adapter.getItemViewType(position); in getItemViewType() 83 position -= size; in getItemViewType() 95 public boolean isEnabled(int position) { in isEnabled() argument 96 return (getItemViewType(position) != TYPE_SECTION_HEADER); in isEnabled() [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/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/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/ |
D | MtpDeviceIndex.java | 205 public Object get(int position, SortOrder order) { in get() argument 208 DateBucket bucket = mBuckets[mUnifiedLookupIndex[position]]; in get() 209 if (bucket.unifiedStartIndex == position) { in get() 212 return mMtpObjects[bucket.itemsStartIndex + position - 1 in get() 216 int zeroIndex = mUnifiedLookupIndex.length - 1 - position; in get() 232 public MtpObjectInfo getWithoutLabels(int position, SortOrder order) { in getWithoutLabels() argument 235 return mMtpObjects[position]; in getWithoutLabels() 237 return mMtpObjects[mMtpObjects.length - 1 - position]; in getWithoutLabels() 251 public int getPositionFromPositionWithoutLabels(int position, SortOrder order) { in getPositionFromPositionWithoutLabels() argument 254 position = mMtpObjects.length - 1 - position; in getPositionFromPositionWithoutLabels() [all …]
|
D | IngestActivity.java | 109 … public void onItemClick(AdapterView<?> adapterView, View itemView, int position, long arg3) { 110 mLastCheckedPosition = position; 111 mGridView.setItemChecked(position, !mGridView.getCheckedItemPositions().get(position)); 125 public void onItemCheckedStateChanged(ActionMode mode, int position, long id, 128 if (mAdapter.itemAtPositionIsBucket(position)) { 131 mGridView.setItemChecked(position, false); 136 mAdapter.getSectionForPosition(position) + 1); 137 if (nextSectionStart == position) 144 for (int i = position + 1; i < nextSectionStart; i++) { 152 for (int i = position + 1; i < nextSectionStart; i++) { [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/Gallery2/src/com/android/gallery3d/ingest/adapter/ |
D | MtpAdapter.java | 86 public Object getItem(int position) { in getItem() argument 87 return mModel.get(position, mSortOrder); in getItem() 96 public boolean isEnabled(int position) { in isEnabled() argument 101 public long getItemId(int position) { in getItemId() argument 102 return position; in getItemId() 111 public int getItemViewType(int position) { in getItemViewType() argument 114 if (position == getPositionForSection(getSectionForPosition(position))) { in getItemViewType() 121 public boolean itemAtPositionIsBucket(int position) { in itemAtPositionIsBucket() argument 122 return getItemViewType(position) == ITEM_TYPE_BUCKET; in itemAtPositionIsBucket() 125 public boolean itemAtPositionIsMedia(int position) { in itemAtPositionIsMedia() argument [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/ |
D | StaggeredGridView.java | 649 mReorderHelper.handleDragStart(draggedChild, params.position, params.id, in startDragging() 860 if (lp.position > mReorderHelper.getDraggedChildPosition()) { in handleDrop() 1341 private LayoutRecord recreateLayoutRecord(int position, View child, LayoutParams lp) { in recreateLayoutRecord() argument 1343 mLayoutRecords.put(position, rec); in recreateLayoutRecord() 2256 final int position = mFirstPosition + i; 2261 (position >= mItemCount || highestAvailableLayoutPosition >= getHeight())) { 2286 newView = obtainView(position); 2288 newView = obtainView(position, child); 2427 LayoutRecord rec = mLayoutRecords.get(position); 2430 mLayoutRecords.put(position, rec); [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SlotView.java | 45 public void onScrollPositionChanged(int position, int total); in onScrollPositionChanged() argument 53 @Override public void onScrollPositionChanged(int position, int total) {} in onScrollPositionChanged() argument 112 int position = WIDE in setCenterIndex() local 115 setScrollPosition(position); in setCenterIndex() 126 int position = visibleBegin; in makeSlotVisible() local 128 position = visibleBegin; in makeSlotVisible() 130 position = slotBegin; in makeSlotVisible() 132 position = slotEnd - visibleLength; in makeSlotVisible() 135 setScrollPosition(position); in makeSlotVisible() 138 public void setScrollPosition(int position) { in setScrollPosition() argument [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/wallpapers/NoiseField/src/com/android/noisefield/ |
D | noisefield.rs | 29 float3 position; 41 float3 position; 162 particle->position.x = rsRand(-1.0f, 1.0f); 163 particle->position.y = rsRand(-1.0f, 1.0f); 211 if(particle->life < 0 || particle->position.x < -1.2 || 212 particle->position.x >1.2 || particle->position.y < -1.7 || 213 particle->position.y >1.7) { 214 particle->position.x = rsRand(-1.0f, 1.0f); 215 particle->position.y = rsRand(-1.0f, 1.0f); 224 float touchDist = sqrt(pow(touchX - particle->position.x, 2) + [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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
D | DynamicBinaryDictIOUtils.java | 62 final int originalPosition = dictBuffer.position(); in updateParentAddress() 63 dictBuffer.position(ptNodeOriginAddress); in updateParentAddress() 72 dictBuffer.position(originalPosition); in updateParentAddress() 80 dictBuffer.position(originalPosition); in updateParentAddress() 121 final int originalPosition = dictBuffer.position(); in updateChildrenAddress() 122 dictBuffer.position(ptNodeOriginAddress); in updateChildrenAddress() 128 ? FormatSpec.NO_CHILDREN_ADDRESS : newChildrenAddress - dictBuffer.position(); in updateChildrenAddress() 130 dictBuffer.position(originalPosition); in updateChildrenAddress() 142 dictBuffer.position(oldNodeAddress); in movePtNode() 144 dictBuffer.position(oldNodeAddress); in movePtNode() [all …]
|