Searched refs:position (Results 1 - 25 of 295) sorted by relevance

1234567891011>>

/packages/apps/Email/src/org/apache/commons/io/input/
H A DNullInputStream.java66 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 DNullReader.java66 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 DSlideshowEditor.java60 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 DSlideshowEditActivity.java144 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/inputmethods/LatinIME/native/jni/src/
H A Dbloom_filter.h26 // TODO: uint32_t position
27 static inline void setInFilter(uint8_t *filter, const int32_t position) { argument
28 const uint32_t bucket = static_cast<uint32_t>(position % BIGRAM_FILTER_MODULO);
32 // TODO: uint32_t position
33 static inline bool isInFilter(const uint8_t *filter, const int32_t position) { argument
34 const uint32_t bucket = static_cast<uint32_t>(position % BIGRAM_FILTER_MODULO);
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DAutoScrollListView.java25 * 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 DCompositeListAdapter.java144 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 DSingleItemAdapter.java31 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 DNotifyingSpinner.java30 void onSetSelection(NotifyingSpinner view, int position); argument
48 public void setSelection(int position) { argument
49 super.setSelection(position);
52 mListener.onSetSelection(this, position);
H A DIndexerListAdapter.java42 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);
172 int position = listPosition - listView.getHeaderViewsCount();
175 int partition = getPartitionForPosition(position);
177 int offset = getOffsetInPartition(position);
211 getItemPlacementInSection(int position) argument
[all...]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
H A DSuggestionsListAdapter.java77 public Object getItem(int position) { argument
78 return getPromotedSuggestion(position);
82 public long getItemId(int position) { argument
83 return position;
87 public View getView(int position, View convertView, ViewGroup parent) { argument
89 getCurrentPromotedSuggestions(), position, position, convertView, parent);
93 public int getItemViewType(int position) { argument
94 return getSuggestionViewType(getCurrentPromotedSuggestions(), position);
H A DSuggestionView.java34 * @param position The position of this view with the list.
36 void bindAdapter(SuggestionsAdapter<?> adapter, long position); argument
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
H A DPointerInfo.java92 int position = input2.position();
94 byteCount = input2.limit() - position;
100 input2.position(position);
103 int position = input2.position();
105 byteCount = (input2.limit() - position) * 2;
112 input2.position(position);
[all...]
/packages/apps/Browser/src/com/android/browser/addbookmark/
H A DFolderSpinner.java60 * @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 DFolderSpinnerAdapter.java63 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/Email/src/org/apache/james/mime4j/util/
H A DPositionInputStream.java29 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/apps/Contacts/src/com/android/contacts/detail/
H A DStreamItemAdapter.java67 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/Contacts/src/com/android/contacts/list/
H A DPhoneFavoriteMergedAdapter.java102 public Object getItem(int position) { argument
105 if (position < contactTileAdapterCount) { // For "tile" and "frequent" sections
106 return mContactTileAdapter.getItem(position);
107 } else if (position == contactTileAdapterCount) { // For "all" section's account header
114 final int localPosition = position - contactTileAdapterCount - 1;
121 public long getItemId(int position) { argument
122 return position;
134 public int getItemViewType(int position) { argument
168 if (position < contactTileAdapterCount) { // For "tile" and "frequent" sections
169 return mContactTileAdapter.getItemViewType(position);
188 getView(int position, View convertView, ViewGroup parent) argument
251 isEnabled(int position) argument
278 getSectionForPosition(int position) argument
[all...]
H A DContactsSectionIndexer.java55 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/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DSectionedAlbumDataAdapter.java106 public boolean isEnabled(int position) { argument
107 if (isHeader(position)) {
110 return mAlbumData.isEnabled(internalPosition(position));
122 public Object getItem(int position) { argument
123 if (isHeader(position)) {
124 return mAlbumData.getItem(internalPosition(position+1)).account;
126 return mAlbumData.getItem(internalPosition(position));
131 public long getItemId(int position) { argument
132 return position;
136 public int getItemViewType(int position) { argument
170 getView(int position, View convertView, ViewGroup parent) argument
193 isHeader(int position) argument
197 internalPosition(int position) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/agenda/
H A DAgendaByDayAdapter.java84 public long getInstanceId(int position) { argument
85 if (mRowInfo == null || position >= mRowInfo.size()) {
88 return mRowInfo.get(position).mInstanceId;
91 public long getStartTime(int position) { argument
92 if (mRowInfo == null || position >= mRowInfo.size()) {
95 return mRowInfo.get(position).mEventStartTimeMilli;
99 // Returns the position of a header of a specific item
100 public int getHeaderPosition(int position) { argument
101 if (mRowInfo == null || position >= mRowInfo.size()) {
105 for (int i = position;
114 getHeaderItemsCount(int position) argument
135 getItem(int position) argument
147 getItemId(int position) argument
165 getItemViewType(int position) argument
170 isDayHeaderView(int position) argument
174 getView(int position, View convertView, ViewGroup parent) argument
447 RowInfo(int type, int julianDay, int position, long id, long startTime, long endTime, long instanceId, boolean allDay) argument
482 MultipleDayInfo(int position, int endDay, long id, long startTime, long endTime, long instanceId, boolean allDay) argument
595 isFirstDayAfterYesterday(int position) argument
610 findJulianDayFromPosition(int position) argument
633 setAsFirstDayAfterYesterday(int position) argument
674 isEnabled(int position) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
H A DSelectCalendarsSimpleAdapter.java194 public View getView(int position, View convertView, ViewGroup parent) { argument
195 if (position >= mRowCount) {
198 String name = mData[position].displayName;
199 boolean selected = mData[position].selected;
201 int color = Utils.getDisplayColorFromColor(mData[position].color);
230 if (!TextUtils.isEmpty(mData[position].ownerAccount)
231 && !mData[position].ownerAccount.equals(name)
232 && !mData[position].ownerAccount.endsWith("calendar.google.com")) {
239 secondaryText.setText(mData[position].ownerAccount);
267 Drawable bg = getBackground(position, selecte
290 getBackground(int position, boolean selected) argument
303 getItem(int position) argument
311 getItemId(int position) argument
318 setVisible(int position, int visible) argument
323 getVisible(int position) argument
[all...]
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DContactEntryAdapter.java97 * Resets the section data and returns the position of the given entry.
100 * @param entry the entry to return the position for
101 * @return the position of entry, or -1 if it isn't found
108 int position = 0;
115 position += j;
116 return position;
119 position += sectionSize;
143 public final boolean isEnabled(int position) { argument
156 if (position == 0) {
160 position
168 getItem(int position) argument
179 getEntry(ArrayList<ArrayList<T>> sections, int position, boolean separators) argument
222 getItemId(int position) argument
234 getView(int position, View convertView, ViewGroup parent) argument
251 newView(int position, ViewGroup parent) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/calllog/
H A DCallDetailHistoryAdapter.java75 public boolean isEnabled(int position) { argument
86 public Object getItem(int position) { argument
87 if (position == 0) {
90 return mPhoneCallDetails[position - 1];
94 public long getItemId(int position) { argument
95 if (position == 0) {
98 return position - 1;
107 public int getItemViewType(int position) { argument
108 if (position == 0) {
115 public View getView(int position, Vie argument
[all...]
/packages/apps/Calculator/src/com/android/calculator2/
H A DHistoryAdapter.java47 public Object getItem(int position) { argument
48 return mEntries.elementAt(position);
52 public long getItemId(int position) { argument
53 return position;
62 public View getView(int position, View convertView, ViewGroup parent) { argument
73 HistoryEntry entry = mEntries.elementAt(position);

Completed in 2377 milliseconds

1234567891011>>