Searched defs:position (Results 201 - 225 of 409) sorted by relevance

1234567891011>>

/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZonePickerView.java152 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
H A DTimeZoneResultAdapter.java243 public Object getItem(int position) { argument
244 if (position < 0 || position >= mFilteredTimeZoneLength) {
248 return mTimeZoneData.get(mFilteredTimeZoneIndices[position]);
257 public boolean isEnabled(int position) { argument
258 return mFilteredTimeZoneIndices[position] >= 0;
262 public long getItemId(int position) { argument
263 return mFilteredTimeZoneIndices[position];
267 public View getView(int position, View convertView, ViewGroup parent) { argument
270 if (mFilteredTimeZoneIndices[position]
308 onItemClick(AdapterView<?> parent, View v, int position, long id) argument
[all...]
/frameworks/support/design/tests/src/android/support/design/widget/
H A DTabLayoutWithViewPagerTest.java72 protected void configureInstantiatedItem(View view, int position) { argument
73 switch (position) {
108 public void destroyItem(ViewGroup container, int position, Object object) { argument
115 return ((ViewHolder) object).position;
124 public CharSequence getPageTitle(int position) { argument
125 return mEntries.get(position).first;
130 final int position; field in class:TabLayoutWithViewPagerTest.BasePagerAdapter.ViewHolder
132 public ViewHolder(View view, int position) { argument
134 this.position = position;
141 instantiateItem(ViewGroup container, int position) argument
156 instantiateItem(ViewGroup container, int position) argument
[all...]
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/
H A DFadeAndShortSlide.java53 float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { argument
58 float getGoneY(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { argument
73 public float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) {
87 public float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) {
101 public float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) {
102 final int viewCenter = position[0] + view.getWidth() / 2;
103 sceneRoot.getLocationOnScreen(position);
105 final int sceneRootCenter = center == null ? (position[0] + sceneRoot.getWidth() / 2)
117 public float getGoneY(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) {
124 public float getGoneY(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) {
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DBaseRowFragment.java49 RecyclerView.ViewHolder view, int position, int subposition) {
50 mSelectedPosition = position;
51 onRowSelected(parent, view, position, subposition);
56 int position, int subposition) {
123 // We don't set the selected position unless we've data in the adapter.
183 * Sets the selected row position with smooth animation.
185 public void setSelectedPosition(int position) { argument
186 setSelectedPosition(position, true);
190 * Gets position of currently selected row.
198 * Sets the selected row position
55 onRowSelected(RecyclerView parent, RecyclerView.ViewHolder view, int position, int subposition) argument
200 setSelectedPosition(int position, boolean smooth) argument
238 getItem(Row row, int position) argument
[all...]
H A DBaseRowSupportFragment.java51 RecyclerView.ViewHolder view, int position, int subposition) {
52 mSelectedPosition = position;
53 onRowSelected(parent, view, position, subposition);
58 int position, int subposition) {
125 // We don't set the selected position unless we've data in the adapter.
185 * Sets the selected row position with smooth animation.
187 public void setSelectedPosition(int position) { argument
188 setSelectedPosition(position, true);
192 * Gets position of currently selected row.
200 * Sets the selected row position
57 onRowSelected(RecyclerView parent, RecyclerView.ViewHolder view, int position, int subposition) argument
202 setSelectedPosition(int position, boolean smooth) argument
240 getItem(Row row, int position) argument
[all...]
H A DDetailsFragment.java104 int position = mRowsFragment.getVerticalGridView().getSelectedPosition();
106 if (DEBUG) Log.v(TAG, "row selected position " + position
108 onRowSelected(position, subposition);
218 // align the top edge of item to a fixed position
296 * Sets the selected row position with smooth animation.
298 public void setSelectedPosition(int position) { argument
299 setSelectedPosition(position, true);
303 * Sets the selected row position.
305 public void setSelectedPosition(int position, boolea argument
[all...]
H A DDetailsSupportFragment.java106 int position = mRowsSupportFragment.getVerticalGridView().getSelectedPosition();
108 if (DEBUG) Log.v(TAG, "row selected position " + position
110 onRowSelected(position, subposition);
220 // align the top edge of item to a fixed position
298 * Sets the selected row position with smooth animation.
300 public void setSelectedPosition(int position) { argument
301 setSelectedPosition(position, true);
305 * Sets the selected row position.
307 public void setSelectedPosition(int position, boolea argument
[all...]
H A DHeadersFragment.java104 int position, int subposition) {
106 if (viewHolder != null && position >= 0) {
103 onRowSelected(RecyclerView parent, RecyclerView.ViewHolder viewHolder, int position, int subposition) argument
H A DHeadersSupportFragment.java106 int position, int subposition) {
108 if (viewHolder != null && position >= 0) {
105 onRowSelected(RecyclerView parent, RecyclerView.ViewHolder viewHolder, int position, int subposition) argument
H A DVerticalGridFragment.java92 int position = mGridViewHolder.getGridView().getSelectedPosition();
93 if (DEBUG) Log.v(TAG, "grid selected position " + position);
94 gridOnItemSelected(position);
105 public void onChildLaidOut(ViewGroup parent, View view, int position, long id) {
106 if (position == 0) {
119 private void gridOnItemSelected(int position) { argument
120 if (position != mSelectedPosition) {
121 mSelectedPosition = position;
206 * Sets the selected item position
208 setSelectedPosition(int position) argument
[all...]
H A DVerticalGridSupportFragment.java94 int position = mGridViewHolder.getGridView().getSelectedPosition();
95 if (DEBUG) Log.v(TAG, "grid selected position " + position);
96 gridOnItemSelected(position);
107 public void onChildLaidOut(ViewGroup parent, View view, int position, long id) {
108 if (position == 0) {
121 private void gridOnItemSelected(int position) { argument
122 if (position != mSelectedPosition) {
123 mSelectedPosition = position;
208 * Sets the selected item position
210 setSelectedPosition(int position) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DControlBarPresenter.java92 for (int position = 0; position < mViewHolders.size(); position++) {
93 if (mViewHolders.get(position).view == child) {
95 mViewHolders.get(position),
96 getDisplayedAdapter().get(position), mData);
137 for (int position = 0; position < adapterSize && position < MAX_CONTROLS;
138 position
145 bindControlToAction(int position, Presenter presenter) argument
149 bindControlToAction(final int position, ObjectAdapter adapter, Presenter presenter) argument
[all...]
/frameworks/support/v17/preference-leanback/src/android/support/v17/preference/
H A DLeanbackListPreferenceDialogFragment.java145 public void onBindViewHolder(ViewHolder holder, int position) { argument
146 holder.getWidgetView().setChecked(mEntryValues[position].equals(mSelectedValue));
147 holder.getTitleView().setText(mEntries[position]);
199 public void onBindViewHolder(ViewHolder holder, int position) { argument
201 mSelections.contains(mEntryValues[position].toString()));
202 holder.getTitleView().setText(mEntries[position]);
/frameworks/support/v4/java/android/support/v4/app/
H A DListFragment.java57 public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
58 onListItemClick((ListView)parent, v, position, id);
164 * getListView().getItemAtPosition(position) if they need to access the
169 * @param position The position of the view in the list
172 public void onListItemClick(ListView l, View v, int position, long id) { argument
193 * position with the adapter's data
195 * @param position
197 public void setSelection(int position) { argument
199 mList.setSelection(position);
[all...]
/frameworks/support/v4/java/android/support/v4/view/
H A DPagerTabStrip.java280 void updateTextPositions(int position, float positionOffset, boolean force) { argument
289 super.updateTextPositions(position, positionOffset, force);
/frameworks/support/v4/java/android/support/v4/widget/
H A DCursorAdapter.java211 public Object getItem(int position) { argument
213 mCursor.moveToPosition(position);
223 public long getItemId(int position) { argument
225 if (mCursor.moveToPosition(position)) {
243 public View getView(int position, View convertView, ViewGroup parent) { argument
247 if (!mCursor.moveToPosition(position)) {
248 throw new IllegalStateException("couldn't move cursor to position " + position);
261 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument
263 mCursor.moveToPosition(position);
[all...]
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/
H A DTransportMediatorJellybeanMR2.java159 public void refreshState(boolean playing, long position, int transportControls) { argument
162 : RemoteControlClient.PLAYSTATE_STOPPED, position, playing ? 1 : 0);
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DListMenuPresenter.java167 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
168 mMenu.performItemAction(mAdapter.getItem(position), this, 0);
240 public MenuItemImpl getItem(int position) { argument
242 position += mItemIndexOffset;
243 if (mExpandedIndex >= 0 && position >= mExpandedIndex) {
244 position++;
246 return items.get(position);
249 public long getItemId(int position) { argument
250 // Since a menu item's ID is optional, we'll use the position as an
252 return position;
255 getView(int position, View convertView, ViewGroup parent) argument
[all...]
H A DMenuPopup.java120 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
124 // Use the position from the outer adapter so that if a header view was added, we don't get
125 // an off-by-1 error in position.
126 wrappedAdapter.mAdapterMenu.performItemAction((MenuItem) outerAdapter.getItem(position), 0);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DListViewCompat.java149 * Find a position that can be selected (i.e., is not a separator).
151 * @param position The starting position to look at.
153 * @return The next selectable position starting at position and then searching either up or
156 public int lookForSelectablePosition(int position, boolean lookDown) { argument
165 position = Math.max(0, position);
166 while (position < count && !adapter.isEnabled(position)) {
188 positionSelectorLikeTouchCompat(int position, View sel, float x, float y) argument
197 positionSelectorLikeFocusCompat(int position, View sel) argument
217 positionSelectorCompat(int position, View sel) argument
[all...]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
H A DListPopupWindowTest.java74 public void onItemClick(AdapterView<?> parent, View view, int position, argument
263 // position. Note that we use any() for other parameters, as we don't want to tie ourselves
293 // position. Note that we use any() for other parameters, as we don't want to tie ourselves
461 public Object getItem(int position) {
462 return POPUP_CONTENT[position];
466 public long getItemId(int position) {
467 return position;
471 public View getView(int position, View convertView, ViewGroup parent) {
481 viewHolder.title.setText(POPUP_CONTENT[position]);
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DPreferenceGroupAdapter.java49 * Maps a position into this adapter -> {@link Preference}. These
194 public Preference getItem(int position) { argument
195 if (position < 0 || position >= getItemCount()) return null;
196 return mPreferenceList.get(position);
199 public long getItemId(int position) { argument
203 return this.getItem(position).getId();
255 public int getItemViewType(int position) { argument
256 final Preference preference = this.getItem(position);
300 public void onBindViewHolder(PreferenceViewHolder holder, int position) { argument
[all...]
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
H A DSortedListTest.java56 public abstract void onInserted(int position, int count); argument
60 public abstract void onChanged(int position, int count); argument
74 public void onInserted(int position, int count) {
75 mAdditions.add(new Pair(position, count));
77 mInsertedCallback.onInserted(position, count);
82 public void onRemoved(int position, int count) {
83 mRemovals.add(new Pair(position, count));
92 public void onChanged(int position, int count) {
93 mUpdates.add(new Pair(position, count));
95 mChangedCallback.onChanged(position, coun
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
H A DAsyncListUtil.java135 * Returns the data item at the given position or <code>null</code> if it has not been loaded
139 * If this method has been called for a specific position and returned <code>null</code>, then
141 * this position stays outside of the cached item range (as defined by
143 * this position.
145 * @param position Item position.
147 * @return The data item at the given position or <code>null</code> if it has not been loaded
150 public T getItem(int position) { argument
151 if (position < 0 || position >
590 onItemLoaded(int position) argument
[all...]

Completed in 1157 milliseconds

1234567891011>>