Home
last modified time | relevance | path

Searched refs:position (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/packages/apps/Mms/src/com/android/mms/ui/
DSlideshowEditor.java56 int position = mModel.size(); in addNewSlide() local
57 return addNewSlide(position); in addNewSlide()
67 public boolean addNewSlide(int position) { in addNewSlide() argument
77 mModel.add(position, slide); in addNewSlide()
90 public void removeSlide(int position) { in removeSlide() argument
91 mModel.remove(position); in removeSlide()
109 public boolean removeText(int position) { in removeText() argument
110 return mModel.get(position).removeText(); in removeText()
113 public boolean removeImage(int position) { in removeImage() argument
114 return mModel.get(position).removeImage(); in removeImage()
[all …]
DSlideshowEditActivity.java139 protected void onListItemClick(ListView l, View v, int position, long id) { in onListItemClick() argument
140 if (position == (l.getCount() - 1)) { in onListItemClick()
143 openSlide(position); in onListItemClick()
224 int position = mList.getSelectedItemPosition(); in onPrepareOptionsMenu() local
225 if ((position >= 0) && (position != (mList.getCount() - 1))) { in onPrepareOptionsMenu()
227 if (position > 0) { in onPrepareOptionsMenu()
231 if (position < (mSlideListAdapter.getCount() - 1)) { in onPrepareOptionsMenu()
252 int position = mList.getSelectedItemPosition(); in onOptionsItemSelected() local
256 if ((position > 0) && (position < mSlideshowModel.size())) { in onOptionsItemSelected()
257 mSlideshowEditor.moveSlideUp(position); in onOptionsItemSelected()
[all …]
/packages/wallpapers/PhaseBeam/src/com/android/phasebeam/
Dphasebeam.rs23 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/Email/emailcommon/src/org/apache/commons/io/input/
DNullInputStream.java66 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 …]
DNullReader.java66 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/apps/Gallery2/tests/src/com/android/gallery3d/ui/
DPointerInfo.java92 int position = input2.position(); in toByteBuffer() local
94 byteCount = input2.limit() - position; in toByteBuffer()
100 input2.position(position); in toByteBuffer()
103 int position = input2.position(); in toByteBuffer() local
105 byteCount = (input2.limit() - position) * 2; in toByteBuffer()
112 input2.position(position); in toByteBuffer()
115 int position = input2.position(); in toByteBuffer() local
117 byteCount = (input2.limit() - position)* 2; in toByteBuffer()
124 input2.position(position); in toByteBuffer()
127 int position = input2.position(); in toByteBuffer() local
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DPhoneFavoriteMergedAdapter.java88 public Object getItem(int position) { in getItem() argument
91 if (position < contactTileAdapterCount) { in getItem()
92 return mContactTileAdapter.getItem(position); in getItem()
93 } else if (position == contactTileAdapterCount) { in getItem()
96 final int localPosition = position - contactTileAdapterCount - 1; in getItem()
102 public long getItemId(int position) { in getItemId() argument
103 return position; in getItemId()
114 public int getItemViewType(int position) { in getItemViewType() argument
117 if (position < contactTileAdapterCount) { in getItemViewType()
118 return mContactTileAdapter.getItemViewType(position); in getItemViewType()
[all …]
DContactsSectionIndexer.java55 int position = 0; in ContactsSectionIndexer() local
63 mPositions[i] = position; in ContactsSectionIndexer()
64 position += counts[i]; in ContactsSectionIndexer()
66 mCount = position; in ContactsSectionIndexer()
81 public int getSectionForPosition(int position) { in getSectionForPosition() argument
82 if (position < 0 || position >= mCount) { in getSectionForPosition()
86 int index = Arrays.binarySearch(mPositions, position); in getSectionForPosition()
DPostalAddressListAdapter.java82 public String getContactDisplayName(int position) { in getContactDisplayName() argument
83 return ((Cursor)getItem(position)).getString(mDisplayNameColumnIndex); in getContactDisplayName()
102 public Uri getDataUri(int position) { in getDataUri() argument
103 long id = ((Cursor)getItem(position)).getLong(POSTAL_ID_COLUMN_INDEX); in getDataUri()
108 protected View newView(Context context, int partition, Cursor cursor, int position, in newView() argument
117 protected void bindView(View itemView, int partition, Cursor cursor, int position) { in bindView() argument
119 bindSectionHeaderAndDivider(view, position); in bindView()
138 protected void bindSectionHeaderAndDivider(final ContactListItemView view, int position) { in bindSectionHeaderAndDivider() argument
139 final int section = getSectionForPosition(position); in bindSectionHeaderAndDivider()
140 if (getPositionForSection(section) == position) { in bindSectionHeaderAndDivider()
[all …]
/packages/apps/Contacts/src/com/android/contacts/widget/
DCompositeListAdapter.java139 public Object getItem(int position) { in getItem() argument
144 if (position >= start && position < end) { in getItem()
145 return mAdapters[i].getItem(position - start); in getItem()
150 throw new ArrayIndexOutOfBoundsException(position); in getItem()
153 public long getItemId(int position) { in getItemId() argument
158 if (position >= start && position < end) { in getItemId()
159 return mAdapters[i].getItemId(position - start); in getItemId()
164 throw new ArrayIndexOutOfBoundsException(position); in getItemId()
174 public int getItemViewType(int position) { in getItemViewType() argument
180 if (position >= start && position < end) { in getItemViewType()
[all …]
DAutoScrollListView.java57 public void requestPositionToScreen(int position, boolean smoothScroll) { in requestPositionToScreen() argument
58 mRequestedScrollPosition = position; in requestPositionToScreen()
70 final int position = mRequestedScrollPosition; in layoutChildren() local
75 if (position >= firstPosition && position <= lastPosition) { in layoutChildren()
81 setSelectionFromTop(position, offset); in layoutChildren()
93 if (position < firstPosition) { in layoutChildren()
94 preliminaryPosition = position + twoScreens; in layoutChildren()
103 preliminaryPosition = position - twoScreens; in layoutChildren()
114 smoothScrollToPositionFromTop(position, offset); in layoutChildren()
DIndexerListAdapter.java42 private int position = ListView.INVALID_POSITION; field in IndexerListAdapter.Placement
48 position = ListView.INVALID_POSITION; in invalidate()
130 public int getSectionForPosition(int position) { in getSectionForPosition() argument
135 return mIndexer.getSectionForPosition(position); in getSectionForPosition()
172 int position = listPosition - listView.getHeaderViewsCount(); in configurePinnedHeaders() local
175 int partition = getPartitionForPosition(position); in configurePinnedHeaders()
177 int offset = getOffsetInPartition(position); in configurePinnedHeaders()
200 boolean isLastInSection = position == nextSectionPosition - 1; in configurePinnedHeaders()
211 public Placement getItemPlacementInSection(int position) { in getItemPlacementInSection() argument
212 if (mPlacementCache.position == position) { in getItemPlacementInSection()
[all …]
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaByDayAdapter.java85 public int getHeaderPosition(int position) { in getHeaderPosition() argument
86 if (mRowInfo == null || position >= mRowInfo.size()) { in getHeaderPosition()
90 for (int i = position; i >=0; i --) { in getHeaderPosition()
99 public int getHeaderItemsCount(int position) { in getHeaderItemsCount() argument
104 for (int i = position +1; i < mRowInfo.size(); i++) { in getHeaderItemsCount()
120 public Object getItem(int position) { in getItem() argument
122 RowInfo row = mRowInfo.get(position); in getItem()
129 return mAgendaAdapter.getItem(position); in getItem()
132 public long getItemId(int position) { in getItemId() argument
134 RowInfo row = mRowInfo.get(position); in getItemId()
[all …]
DAgendaListView.java211 public void onItemClick(AdapterView<?> a, View v, int position, long id) { in onItemClick() argument
214 EventInfo event = mWindowAdapter.getEventByPosition(position); in onItemClick()
254 int position = getSelectedItemPosition(); in deleteSelectedEvent() local
255 EventInfo event = mWindowAdapter.getEventByPosition(position); in deleteSelectedEvent()
293 int position = getSelectedItemPosition(); in getSelectedTime() local
294 if (position >= 0) { in getSelectedTime()
295 EventInfo event = mWindowAdapter.getEventByPosition(position); in getSelectedTime()
308 int position = getFirstVisiblePosition(); in getFirstVisibleTime() local
310 Log.v(TAG, "getFirstVisiblePosition = " + position); in getFirstVisibleTime()
313 EventInfo event = mWindowAdapter.getEventByPosition(position, in getFirstVisibleTime()
[all …]
/packages/apps/Contacts/src/com/android/contacts/detail/
DStreamItemAdapter.java70 public Object getItem(int position) { in getItem() argument
71 if (position == 0 || position == 1) { in getItem()
74 return mStreamItems.get(position - 2); in getItem()
78 public long getItemId(int position) { in getItemId() argument
79 if (position == 0 || position == 1) { in getItemId()
82 return position - 1; in getItemId()
86 public boolean isEnabled(int position) { in isEnabled() argument
100 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
101 if (position == 0) { in getView()
104 if (position == 1) { in getView()
[all …]
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
DContactEntryAdapter.java108 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/apps/Gallery2/src/com/android/gallery3d/ui/
DSlotView.java46 public void onScrollPositionChanged(int position, int total); in onScrollPositionChanged() argument
54 public void onScrollPositionChanged(int position, int total) {} in onScrollPositionChanged() argument
101 int position = WIDE in setCenterIndex() local
104 setScrollPosition(position); in setCenterIndex()
115 int position = visibleBegin; in makeSlotVisible() local
117 position = visibleBegin; in makeSlotVisible()
119 position = slotBegin; in makeSlotVisible()
121 position = slotEnd - visibleLength; in makeSlotVisible()
124 setScrollPosition(position); in makeSlotVisible()
127 public void setScrollPosition(int position) { in setScrollPosition() argument
[all …]
DPositionRepository.java79 Position position = (Position) object; in equals()
80 return x == position.x && y == position.y && z == position.z in equals()
81 && theta == position.theta in equals()
82 && alpha == position.alpha; in equals()
115 Position position = mData.get(identity); in get() local
116 if (position == null) return null; in get()
117 mTempPosition.set(position); in get()
118 position = mTempPosition; in get()
119 position.x -= mOffsetX; in get()
120 position.y -= mOffsetY; in get()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DSuggestionsListAdapter.java77 public Object getItem(int position) { in getItem() argument
78 return getPromotedSuggestion(position); in getItem()
82 public long getItemId(int position) { in getItemId() argument
83 return position; in getItemId()
87 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
89 getCurrentPromotedSuggestions(), position, position, convertView, parent); in getView()
93 public int getItemViewType(int position) { in getItemViewType() argument
94 return getSuggestionViewType(getCurrentPromotedSuggestions(), position); in getItemViewType()
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
DSelectCalendarsSimpleAdapter.java194 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
195 if (position >= mRowCount) { in getView()
198 String name = mData[position].displayName; in getView()
199 boolean selected = mData[position].selected; in getView()
201 int color = Utils.getDisplayColorFromColor(mData[position].color); in getView()
230 if (!TextUtils.isEmpty(mData[position].ownerAccount) in getView()
231 && !mData[position].ownerAccount.equals(name) in getView()
232 && !mData[position].ownerAccount.endsWith("calendar.google.com")) { in getView()
239 secondaryText.setText(mData[position].ownerAccount); in getView()
267 Drawable bg = getBackground(position, selected); in getView()
[all …]
DSelectCalendarsSyncAdapter.java116 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
117 if (position >= mRowCount) { in getView()
120 String name = mData[position].displayName; in getView()
121 boolean selected = mData[position].synced; in getView()
122 int color = Utils.getDisplayColorFromColor(mData[position].color); in getView()
130 view.setTag(mData[position]); in getView()
163 public Object getItem(int position) { in getItem() argument
164 if (position >= mRowCount) { in getItem()
167 CalendarRow item = mData[position]; in getItem()
172 public long getItemId(int position) { in getItemId() argument
[all …]
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/util/
DPositionInputStream.java29 protected long position = 0; field in PositionInputStream
37 return position; in getPosition()
47 position++; in read()
57 position = markedPosition; in reset()
66 markedPosition = position; in mark()
71 position += c; in skip()
77 position += c; in read()
83 position += c; in read()
/packages/apps/Browser/src/com/android/browser/addbookmark/
DFolderSpinner.java62 public void setSelectionIgnoringSelectionChange(int position) { in setSelectionIgnoringSelectionChange() argument
63 super.setSelection(position); in setSelectionIgnoringSelectionChange()
67 public void setSelection(int position) { in setSelection() argument
70 super.setSelection(position); in setSelection()
72 if (oldPosition == position) { in setSelection()
73 long id = getAdapter().getItemId(position); in setSelection()
76 onItemSelected(this, null, position, id); in setSelection()
82 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { in onItemSelected() argument
DFolderSpinnerAdapter.java63 private void bindView(int position, View view, boolean isDropDown) { in bindView() argument
67 position++; in bindView()
69 switch (position) { in bindView()
91 if (position == RECENT_FOLDER) { in bindView()
93 } else if (position == OTHER_FOLDER && !isDropDown in bindView()
106 public View getDropDownView(int position, View convertView, ViewGroup parent) { in getDropDownView() argument
111 bindView(position, convertView, true); in getDropDownView()
116 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
121 bindView(position, convertView, false); in getView()
134 public Object getItem(int position) { in getItem() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/calllog/
DCallDetailHistoryAdapter.java80 public Object getItem(int position) { in getItem() argument
81 if (position == 0) { in getItem()
84 return mPhoneCallDetails[position - 1]; in getItem()
88 public long getItemId(int position) { in getItemId() argument
89 if (position == 0) { in getItemId()
92 return position - 1; in getItemId()
101 public int getItemViewType(int position) { in getItemViewType() argument
102 if (position == 0) { in getItemViewType()
109 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
110 if (position == 0) { in getView()
[all …]

12345678910>>...12