Searched refs:position (Results 151 - 175 of 821) sorted by relevance

1234567891011>>

/frameworks/support/wear/tests/src/android/support/wear/widget/
H A DWearableRecyclerViewTestActivity.java54 public void onBindViewHolder(ViewHolder holder, int position) { argument
55 holder.mView.setText("holder at position " + position);
56 holder.mView.setTag(position);
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
H A DGridActivity.java42 void onBind(RecyclerView.ViewHolder vh, int position); argument
61 * view types for each position.
119 public void onChildSelected(ViewGroup parent, View view, int position, long id) {
120 if (DEBUG) Log.d(TAG, "onChildSelected position=" + position + " id="+id);
206 int position = intent.getIntExtra("SELECT_POSITION", -1);
207 if (position >= 0) {
208 mGridView.setSelectedPosition(position);
225 int position = vh.getAdapterPosition();
226 updateSize(v, position);
305 changeItem(int position, int itemValue) argument
334 getItemViewType(int position) argument
441 onBindViewHolder(RecyclerView.ViewHolder baseHolder, int position) argument
478 getItemId(int position) argument
484 updateSize(View view, int position) argument
[all...]
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java67 * - mFirstPosition is the adapter position of the View returned by getChildAt(0).
68 * - Any child index can be translated to an adapter position by adding mFirstPosition.
69 * - Any adapter position can be translated to a child index by subtracting mFirstPosition.
269 * Return the first adapter position with a view currently attached as
272 * @return the adapter position represented by the view at getChildAt(0).
465 * is always the view corresponding to position mFirstPosition + i.
761 final int position = mFirstPosition + i;
765 View newView = obtainView(position, child);
812 final LayoutRecord rec = mLayoutRecords.get(position);
816 rebuildLayoutRecordsBefore = position;
857 invalidateLayoutRecordsBeforePosition(int position) argument
865 invalidateLayoutRecordsAfterPosition(int position) argument
1127 getNextRecordUp(int position, int span) argument
1183 getNextRecordDown(int position, int span) argument
1228 obtainView(int position, View optScrap) argument
1398 int position; field in class:StaggeredGridView.LayoutParams
1521 getTransientStateView(int position) argument
1580 int position; field in class:StaggeredGridView.SavedState
[all...]
/frameworks/base/core/java/com/android/internal/policy/
H A DDockedDividerUtils.java34 public static void calculateBoundsForPosition(int position, int dockSide, Rect outRect, argument
39 outRect.right = position;
42 outRect.bottom = position;
45 outRect.left = position + dividerSize;
48 outRect.top = position + dividerSize;
/frameworks/base/core/tests/coretests/src/android/view/menu/
H A DMenuScenario.java68 // Add a default item for this position if the subclasses
98 * @param itemPosition The position of the item to add (only for your
120 final int position = findItemPosition(item);
121 if (position < 0) return false;
123 mWasItemClicked[position] = true;
128 public boolean wasItemClicked(int position) { argument
129 return mWasItemClicked[position];
133 * Finds the position for a given Item.
136 * @return The position, or -1 if not found.
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DAdjacentListsWithAdjacentISVsInside.java113 public Object getItem(int position) { argument
114 return position;
117 public long getItemId(int position) { argument
118 return position;
121 public View getView(int position, View convertView, ViewGroup parent) { argument
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
H A DGridLayoutManagerActivity.java45 public int getSpanSize(int position) {
46 String item = mAdapter.getValueAt(position);
105 protected void scrollToPositionWithOffset(boolean smooth, int position, int offset) { argument
107 super.scrollToPositionWithOffset(smooth, position, offset);
109 mLayoutManager.scrollToPositionWithOffset(position, offset);
H A DNestedRecyclerViewActivity.java75 public void onBindViewHolder(ViewHolder holder, int position) { argument
76 holder.mTextView.setText(mData[position]);
77 boolean even = position % 2 == 0;
126 public void onBindViewHolder(ViewHolder holder, int position) { argument
128 holder.mRecyclerView.swapAdapter(mAdapters.get(position), true);
130 Parcelable savedState = mSavedStates.get(position);
133 mSavedStates.set(position, null);
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
H A DGridLayoutManagerActivity.java45 public int getSpanSize(int position) {
46 String item = mAdapter.getValueAt(position);
105 protected void scrollToPositionWithOffset(boolean smooth, int position, int offset) { argument
107 super.scrollToPositionWithOffset(smooth, position, offset);
109 mLayoutManager.scrollToPositionWithOffset(position, offset);
/frameworks/support/wear/src/android/support/wear/widget/
H A DBezierSCurveInterpolator.java76 int position = Math.min((int) (input * (VALUES.length - 1)), VALUES.length - 2);
78 float quantized = position * STEP_SIZE;
82 return VALUES[position] + weight * (VALUES[position + 1] - VALUES[position]);
/frameworks/support/wear/src/android/support/wear/widget/drawer/
H A DWearableActionDrawerView.java247 private void onMenuItemClicked(int position) { argument
248 if (position >= 0 && position < getMenu().size()) { // Sanity check.
250 (WearableActionDrawerMenuItem) getMenu().getItem(position);
307 public void menuItemChanged(int position) {
309 mActionListAdapter.notifyItemChanged(position);
311 if (position == 0) {
317 public void menuItemAdded(int position) {
319 mActionListAdapter.notifyItemChanged(position);
323 if (position <
395 onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) argument
442 getItemViewType(int position) argument
[all...]
/frameworks/wilhelm/src/itf/
H A DIMIDITime.cpp39 static SLresult IMIDITime_SetPosition(SLMIDITimeItf self, SLuint32 position) argument
45 if (!(position < thiz->mDuration)) {
49 thiz->mPosition = position;
67 SLuint32 position = thiz->mPosition; local
69 *pPosition = position;
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DGridLayoutManagerTest.java86 int position) {
87 super.onBindViewHolder(holder, position);
106 // assert spans and position etc
111 assertThat("span index for child at " + i + " with position " + params
149 int position) {
150 super.onBindViewHolder(holder, position);
208 int position) {
209 super.onBindViewHolder(holder, position);
210 if (position < spanCount * consecutiveFocusableRowsCount) {
222 // adapter position o
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DListMenuPresenter.java166 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
167 mMenu.performItemAction(mAdapter.getItem(position), this, 0);
239 public MenuItemImpl getItem(int position) { argument
241 position += mItemIndexOffset;
242 if (mExpandedIndex >= 0 && position >= mExpandedIndex) {
243 position++;
245 return items.get(position);
248 public long getItemId(int position) { argument
249 // Since a menu item's ID is optional, we'll use the position as an
251 return position;
254 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/tests/MusicBrowserDemo/src/com/example/android/musicbrowserdemo/
H A DBrowserListFragment.java101 public void onListItemClick(ListView l, View v, int position, long id) { argument
102 final Item item = mItems.get(position);
104 Log.i("BrowserListFragment", "Item clicked: " + position + " -- "
105 + mAdapter.getItem(position).media.getDescription().getIconUri());
178 public Item getItem(int position) { argument
179 return mItems.get(position);
183 public long getItemId(int position) { argument
184 return position;
188 public int getItemViewType(int position) { argument
193 public View getView(int position, Vie argument
[all...]
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/
H A DHeaderRecyclerView.java147 @SuppressWarnings("unchecked") // Non-header position always return type CVH
148 public void onBindViewHolder(ViewHolder holder, int position) { argument
150 position--;
163 mAdapter.onBindViewHolder((CVH) holder, position);
168 public int getItemViewType(int position) { argument
170 position--;
172 if (position < 0) {
175 return mAdapter.getItemViewType(position);
188 public long getItemId(int position) { argument
190 position
[all...]
/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/page/
H A DGridFragment.java97 int position = mGridViewHolder.getGridView().getSelectedPosition();
98 if (DEBUG) Log.v(TAG, "grid selected position " + position);
99 gridOnItemSelected(position);
110 public void onChildLaidOut(ViewGroup parent, View view, int position, long id) {
111 if (position == 0) {
124 private void gridOnItemSelected(int position) { argument
125 if (position != mSelectedPosition) {
126 mSelectedPosition = position;
198 * Sets the selected item position
200 setSelectedPosition(int position) argument
[all...]
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/page/
H A DGridFragment.java97 int position = mGridViewHolder.getGridView().getSelectedPosition();
98 if (DEBUG) Log.v(TAG, "grid selected position " + position);
99 gridOnItemSelected(position);
110 public void onChildLaidOut(ViewGroup parent, View view, int position, long id) {
111 if (position == 0) {
124 private void gridOnItemSelected(int position) { argument
125 if (position != mSelectedPosition) {
126 mSelectedPosition = position;
198 * Sets the selected item position
200 setSelectedPosition(int position) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DVerticalGridFragment.java116 int position = mGridViewHolder.getGridView().getSelectedPosition();
117 if (DEBUG) Log.v(TAG, "grid selected position " + position);
118 gridOnItemSelected(position);
129 public void onChildLaidOut(ViewGroup parent, View view, int position, long id) {
130 if (position == 0) {
143 void gridOnItemSelected(int position) { argument
144 if (position != mSelectedPosition) {
145 mSelectedPosition = position;
223 * Sets the selected item position
225 setSelectedPosition(int position) argument
[all...]
H A DVerticalGridSupportFragment.java119 int position = mGridViewHolder.getGridView().getSelectedPosition();
120 if (DEBUG) Log.v(TAG, "grid selected position " + position);
121 gridOnItemSelected(position);
132 public void onChildLaidOut(ViewGroup parent, View view, int position, long id) {
133 if (position == 0) {
146 void gridOnItemSelected(int position) { argument
147 if (position != mSelectedPosition) {
148 mSelectedPosition = position;
226 * Sets the selected item position
228 setSelectedPosition(int position) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DListMenuPresenter.java171 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
172 mMenu.performItemAction(mAdapter.getItem(position), this, 0);
248 public MenuItemImpl getItem(int position) { argument
250 position += mItemIndexOffset;
251 if (mExpandedIndex >= 0 && position >= mExpandedIndex) {
252 position++;
254 return items.get(position);
258 public long getItemId(int position) { argument
259 // Since a menu item's ID is optional, we'll use the position as an
261 return position;
265 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/core/java/android/database/
H A DCursorToBulkCursorAdaptor.java157 public CursorWindow getWindow(int position) { argument
161 if (!mCursor.moveToPosition(position)) {
174 } else if (position < window.getStartPosition()
175 || position >= window.getStartPosition() + window.getNumRows()) {
178 mCursor.fillWindow(position, window);
191 public void onMove(int position) { argument
195 mCursor.onMove(mCursor.getPosition(), position);
/frameworks/base/core/java/android/widget/
H A DAdapterView.java68 * The position of the first child displayed
100 * Indicates whether to sync based on the selection or position. Possible
152 * The position within the adapter's data set of the item to select
164 * The position within the adapter's data set of the currently selected item.
191 * Represents an invalid position. All valid positions are in the range 0 to 1 less than the
202 * The last selected position we used when notifying
207 * The id of the last selected position we used when notifying
272 * Implementers can call getItemAtPosition(position) if they need
278 * @param position The position o
281 onItemClick(AdapterView<?> parent, View view, int position, long id) argument
314 performItemClick(View view, int position, long id) argument
349 onItemLongClick(AdapterView<?> parent, View view, int position, long id) argument
393 onItemSelected(AdapterView<?> parent, View view, int position, long id) argument
429 AdapterContextMenuInfo(View targetView, int position, long id) argument
445 public int position; field in class:AdapterView.AdapterContextMenuInfo
678 setSelection(int position) argument
796 getItemAtPosition(int position) argument
801 getItemIdAtPosition(int position) argument
1212 lookForSelectablePosition(int position, boolean lookDown) argument
1220 setSelectedPositionInt(int position) argument
1230 setNextSelectedPositionInt(int position) argument
[all...]
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DYearPickerView.java81 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
110 public View getView(int position, View convertView, ViewGroup parent) { argument
112 super.getView(position, convertView, parent);
124 public void postSetSelectionCentered(final int position) { argument
125 postSetSelectionFromTop(position, mViewSize / 2 - mChildSize / 2);
128 public void postSetSelectionFromTop(final int position, final int offset) { argument
133 setSelectionFromTop(position, offset);
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DFragmentTabsPager.java147 public Fragment getItem(int position) { argument
148 TabInfo info = mTabs.get(position);
154 int position = mTabHost.getCurrentTab();
155 mViewPager.setCurrentItem(position);
159 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument
163 public void onPageSelected(int position) { argument
172 mTabHost.setCurrentTab(position);

Completed in 1284 milliseconds

1234567891011>>