/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | SeparatedFolderListAdapter.java | 39 public Object getItem(int position) { argument 43 // check if position inside this section 44 if (position == 0 || position < size) 45 return adapter.getItem(position); 48 position -= size; 73 public int getItemViewType(int position) { argument 77 // check if position inside this section 78 if (position == 0 || position < siz 95 isEnabled(int position) argument 100 getView(int position, View convertView, ViewGroup parent) argument 113 getItemId(int position) argument [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
H A D | NullInputStream.java | 66 private long position;
field in class:NullInputStream 101 * Return the current position.
103 * @return the current position.
106 return position;
124 long avail = size - position;
142 position = 0;
147 * Mark the current position.
149 * @param readlimit The number of bytes before this marked position
157 mark = position;
184 if (position [all...] |
H A D | NullReader.java | 66 private long position;
field in class:NullReader 101 * Return the current position.
103 * @return the current position.
106 return position;
126 position = 0;
131 * Mark the current position.
133 * @param readlimit The number of characters before this marked position
141 mark = position;
168 if (position == size) {
171 position [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
H A D | SlideshowEditor.java | 60 int position = mModel.size(); 61 return addNewSlide(position); 65 * Add a new slide at the specified position in the message. 68 * @throws IndexOutOfBoundsException - if position is out of range 69 * (position < 0 || position > size()). 71 public boolean addNewSlide(int position) { argument 81 mModel.add(position, slide); 89 * Add an existing slide at the specified position in the message. 92 * @throws IndexOutOfBoundsException - if position i 95 addSlide(int position, SlideModel slide) argument 111 removeSlide(int position) argument 130 removeText(int position) argument 134 removeImage(int position) argument 138 removeVideo(int position) argument 142 removeAudio(int position) argument 146 changeText(int position, String newText) argument 162 changeImage(int position, Uri newImage) argument 167 changeAudio(int position, Uri newAudio) argument 174 changeVideo(int position, Uri newVideo) argument 182 moveSlideUp(int position) argument 186 moveSlideDown(int position) argument 190 changeDuration(int position, int dur) argument [all...] |
H A D | SlideshowEditActivity.java | 144 protected void onListItemClick(ListView l, View v, int position, long id) { argument 145 if (position == (l.getCount() - 1)) { 148 openSlide(position); 229 int position = mList.getSelectedItemPosition(); 230 if ((position >= 0) && (position != (mList.getCount() - 1))) { 232 if (position > 0) { 236 if (position < (mSlideListAdapter.getCount() - 1)) { 257 int position = mList.getSelectedItemPosition(); 261 if ((position > 371 getView(int position, View convertView, ViewGroup parent) argument 375 createViewFromResource(int position, View convertView, int resource) argument [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/ |
H A D | GridAdapter.java | 30 * Checks to see if the child at the specified position is draggable 31 * @param position The position of the child to check against 32 * @return boolean If true, the child at the specified position is draggable. 34 public boolean isDraggable(int position) { argument 39 * For a view at the specified position, return the region around the view that is a possible 41 * @param position The adapter position 42 * @param isLastColumnInGrid Flag to indicate whether the view at the specified position is 48 * @return int The re-ordering area for the view at this adapter position 52 getReorderingArea(int position, boolean isLastColumnInGrid) argument 102 getItemIdFromView(View view, int position) argument 118 getItemId(Object item, int position) argument 135 getItemViewType(Object item, int position) argument 155 getView(Object item, int position, View scrap, ViewGroup parent, int measuredWidth) argument 163 getItemColumnSpan(Object item, int position) argument [all...] |
H A D | ReorderHelper.java | 16 * Helper class for doing reorder animations. Works out the logical position of 24 * Constant to indicate an unsupported reordering position. 75 // Ensure that target position is not the same as the original, 77 if (lp.position != mCurrentDraggedOverChild.position) { 83 mDraggedChild.position != mCurrentDraggedOverChild.position) { 85 mDraggedChild.position, 86 mCurrentDraggedOverChild.position); 90 mReorderListener.onDrop(mDraggedChild.target, mDraggedChild.position, 270 final int position; field in class:ReorderHelper.ReorderView [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | AutoScrollListView.java | 25 * position. This class takes advantage of similar functionality that exists 51 * Brings the specified position to view by optionally performing a jump-scroll maneuver: 52 * first it jumps to some position near the one requested and then does a smooth 53 * scroll to the requested position. This creates an impression of full smooth 57 public void requestPositionToScreen(int position, boolean smoothScroll) { argument 58 mRequestedScrollPosition = position; 70 final int position = mRequestedScrollPosition; 75 if (position >= firstPosition && position <= lastPosition) { 81 setSelectionFromTop(position, offse [all...] |
H A D | IndexerListAdapter.java | 42 private int position = ListView.INVALID_POSITION; field in class:IndexerListAdapter.Placement 48 position = ListView.INVALID_POSITION; 117 * @return relative position of the section in the indexed partition 128 * @param position relative position in the indexed partition 130 public int getSectionForPosition(int position) { argument 135 return mIndexer.getSectionForPosition(position); 173 int position = listPosition - listView.getHeaderViewsCount(); 176 int partition = getPartitionForPosition(position); 178 int offset = getOffsetInPartition(position); 212 getItemPlacementInSection(int position) argument [all...] |
H A D | ContactsSectionIndexer.java | 55 int position = 0; 63 mPositions[i] = position; 64 position += counts[i]; 66 mCount = position; 81 public int getSectionForPosition(int position) { argument 82 if (position < 0 || position >= mCount) { 86 int index = Arrays.binarySearch(mPositions, position); 90 * position is 4. The section corresponding to position [all...] |
/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | CompositeListAdapter.java | 144 public Object getItem(int position) { argument 149 if (position >= start && position < end) { 150 return mAdapters[i].getItem(position - start); 155 throw new ArrayIndexOutOfBoundsException(position); 158 public long getItemId(int position) { argument 163 if (position >= start && position < end) { 164 return mAdapters[i].getItemId(position - start); 169 throw new ArrayIndexOutOfBoundsException(position); 179 getItemViewType(int position) argument 195 getView(int position, View convertView, ViewGroup parent) argument 216 isEnabled(int position) argument [all...] |
H A D | SingleItemAdapter.java | 31 public Object getItem(int position) { argument 35 public long getItemId(int position) { argument 39 public View getView(int position, View convertView, ViewGroup parent) { argument
|
H A D | NotifyingSpinner.java | 30 void onSetSelection(NotifyingSpinner view, int position); argument 48 public void setSelection(int position) { argument 49 super.setSelection(position); 52 mListener.onSetSelection(this, position);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/adapter/ |
H A D | CheckBroker.java | 27 public void onCheckedChanged(int position, boolean isChecked); argument 31 public abstract void setItemChecked(int position, boolean checked); argument 33 public void onCheckedChange(int position, boolean checked) { argument 34 if (isItemChecked(position) != checked) { 36 l.onCheckedChanged(position, checked); 47 public abstract boolean isItemChecked(int position); argument
|
H A D | MtpAdapter.java | 86 public Object getItem(int position) { argument 87 return mModel.get(position, mSortOrder); 96 public boolean isEnabled(int position) { argument 101 public long getItemId(int position) { argument 102 return position; 111 public int getItemViewType(int position) { argument 112 // If the position is the first in its section, then it corresponds to 114 if (position == getPositionForSection(getSectionForPosition(position))) { 121 public boolean itemAtPositionIsBucket(int position) { argument 125 itemAtPositionIsMedia(int position) argument 130 getView(int position, View convertView, ViewGroup parent) argument 168 getSectionForPosition(int position) argument 188 translatePositionWithoutLabels(int position) argument [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
H A D | SuggestionsListAdapter.java | 74 public Object getItem(int position) { argument 75 return getSuggestion(position); 79 public long getItemId(int position) { argument 80 return position; 84 public View getView(int position, View convertView, ViewGroup parent) { argument 86 getCurrentSuggestions(), position, position, convertView, parent); 90 public int getItemViewType(int position) { argument 91 return getSuggestionViewType(getCurrentSuggestions(), position);
|
H A D | SuggestionView.java | 34 * @param position The position of this view with the list. 36 void bindAdapter(SuggestionsAdapter<?> adapter, long position); argument
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
H A D | bloom_filter.h | 40 // TODO: uint32_t position 41 AK_FORCE_INLINE void setInFilter(const int32_t position) { argument 42 const uint32_t bucket = static_cast<uint32_t>(position % BIGRAM_FILTER_MODULO); 46 // TODO: uint32_t position 47 AK_FORCE_INLINE bool isInFilter(const int32_t position) const { 48 const uint32_t bucket = static_cast<uint32_t>(position % BIGRAM_FILTER_MODULO);
|
/packages/apps/Browser/src/com/android/browser/addbookmark/ |
H A D | FolderSpinner.java | 60 * @param position New position to select. 62 public void setSelectionIgnoringSelectionChange(int position) { argument 63 super.setSelection(position); 67 public void setSelection(int position) { argument 70 super.setSelection(position); 72 if (oldPosition == position) { 73 long id = getAdapter().getItemId(position); 76 onItemSelected(this, null, position, id); 82 public void onItemSelected(AdapterView<?> parent, View view, int position, lon argument [all...] |
H A D | FolderSpinnerAdapter.java | 63 private void bindView(int position, View view, boolean isDropDown) { argument 67 position++; 69 switch (position) { 91 if (position == RECENT_FOLDER) { 93 } else if (position == OTHER_FOLDER && !isDropDown 106 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument 111 bindView(position, convertView, true); 116 public View getView(int position, View convertView, ViewGroup parent) { argument 121 bindView(position, convertView, false); 134 public Object getItem(int position) { argument 139 getItemId(int position) argument [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/ |
H A D | PositionInputStream.java | 29 protected long position = 0;
field in class:PositionInputStream 37 return position;
47 position++;
57 position = markedPosition;
66 markedPosition = position;
71 position += c;
77 position += c;
83 position += c;
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | DragGestureDetector.java | 44 private void computeAveragePosition(MotionEvent event, float[] position) { argument 45 computeAveragePosition(event, position, -1); 48 private void computeAveragePosition(MotionEvent event, float[] position, int ignore) { argument 50 position[0] = 0f; 51 position[1] = 0f; 55 position[0] += event.getX(p); 56 position[1] += event.getY(p); 60 position[0] /= count; 61 position[1] /= count;
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
H A D | StreamItemAdapter.java | 67 public Object getItem(int position) { argument 68 if (position == 0) { 71 return mStreamItems.get(position - 1); 75 public long getItemId(int position) { argument 76 if (position == 0) { 79 return position - 1; 83 public boolean isEnabled(int position) { argument 97 public View getView(int position, View convertView, ViewGroup parent) { argument 98 if (position == 0) { 101 final StreamItemEntry streamItem = (StreamItemEntry) getItem(position); 139 getItemViewType(int position) argument [all...] |
/packages/apps/Dialer/src/com/android/dialer/list/ |
H A D | PhoneFavoriteMergedAdapter.java | 134 public Object getItem(int position) { argument 138 if (position < callLogAdapterCount) { 139 return mCallLogAdapter.getItem(position); 142 // Set position to the position of the actual favorite contact in the favorites adapter 143 position = getAdjustedFavoritePosition(position, callLogAdapterCount); 145 return mContactTileAdapter.getItem(position); 162 public long getItemId(int position) { argument 164 if (position < callLogAdapterCoun 194 getItemViewType(int position) argument 216 getView(int position, View convertView, ViewGroup parent) argument 278 isEnabled(int position) argument 288 getAdjustedFavoritePosition(int position, int callLogAdapterCount) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | ByteArrayDictBuffer.java | 58 public int position() { method in class:ByteArrayDictBuffer 63 public void position(int position) { argument 64 mPosition = position;
|