/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | StackActivity.java | 45 public View getView(int position, View convertView, ViewGroup parent) { 52 getItem(position % getCount())); 53 ((TextView) item.findViewById(R.id.mini_text)).setText("" + position);
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | AdapterViewBindingAdapter.java | 62 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument 64 mSelected.onItemSelected(parent, view, position, id); 77 void onItemSelected(AdapterView<?> parent, View view, int position, long id); argument
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
H A D | SingleRecipientArrayAdapter.java | 47 public View getView(int position, View convertView, ViewGroup parent) { argument 48 return mDropdownChipLayouter.bindView(convertView, parent, getItem(position), position,
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
H A D | TimeZoneResultAdapter.java | 243 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/v7/preference/src/android/support/v7/preference/ |
H A D | PreferenceGroupAdapter.java | 47 * Maps a position into this adapter -> {@link Preference}. These 193 public Preference getItem(int position) { argument 194 if (position < 0 || position >= getItemCount()) return null; 195 return mPreferenceList.get(position); 198 public long getItemId(int position) { argument 199 if (position < 0 || position >= getItemCount()) return ListView.INVALID_ROW_ID; 200 return this.getItem(position).getId(); 247 public int getItemViewType(int position) { argument 275 onBindViewHolder(PreferenceViewHolder holder, int position) argument [all...] |
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/ |
H A D | GridActivity.java | 56 * view types for each position. 108 public void onChildSelected(ViewGroup parent, View view, int position, long id) { 109 if (DEBUG) Log.d(TAG, "onChildSelected position=" + position + " id="+id); 187 int position = intent.getIntExtra("SELECT_POSITION", -1); 188 if (position >= 0) { 189 mGridView.setSelectedPosition(position); 206 int position = vh.getAdapterPosition(); 207 updateSize(v, position); 278 public int getItemViewType(int position) { argument 353 onBindViewHolder(RecyclerView.ViewHolder baseHolder, int position) argument 385 updateSize(View view, int position) argument [all...] |
/frameworks/ex/widget/java/com/android/ex/widget/ |
H A D | StaggeredGridView.java | 67 * - 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/tests/coretests/src/android/view/menu/ |
H A D | MenuScenario.java | 68 // 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 D | AdjacentListsWithAdjacentISVsInside.java | 113 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/wilhelm/src/itf/ |
H A D | IMIDITime.c | 39 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/base/core/java/com/android/internal/view/menu/ |
H A D | ListMenuPresenter.java | 164 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 165 mMenu.performItemAction(mAdapter.getItem(position), this, 0); 237 public MenuItemImpl getItem(int position) { argument 239 position += mItemIndexOffset; 240 if (mExpandedIndex >= 0 && position >= mExpandedIndex) { 241 position++; 243 return items.get(position); 246 public long getItemId(int position) { argument 247 // Since a menu item's ID is optional, we'll use the position as an 249 return position; 252 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/base/tests/MusicBrowserDemo/src/com/example/android/musicbrowserdemo/ |
H A D | BrowserListFragment.java | 101 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/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | VerticalGridFragment.java | 93 int position = mGridViewHolder.getGridView().getSelectedPosition(); 94 if (DEBUG) Log.v(TAG, "grid selected position " + position); 95 gridOnItemSelected(position); 106 public void onChildLaidOut(ViewGroup parent, View view, int position, long id) { 107 if (position == 0) { 120 private void gridOnItemSelected(int position) { argument 121 if (position != mSelectedPosition) { 122 mSelectedPosition = position; 196 * Sets the selected item position 198 setSelectedPosition(int position) argument [all...] |
H A D | VerticalGridSupportFragment.java | 95 int position = mGridViewHolder.getGridView().getSelectedPosition(); 96 if (DEBUG) Log.v(TAG, "grid selected position " + position); 97 gridOnItemSelected(position); 108 public void onChildLaidOut(ViewGroup parent, View view, int position, long id) { 109 if (position == 0) { 122 private void gridOnItemSelected(int position) { argument 123 if (position != mSelectedPosition) { 124 mSelectedPosition = position; 198 * Sets the selected item position 200 setSelectedPosition(int position) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
H A D | ListMenuPresenter.java | 168 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 169 mMenu.performItemAction(mAdapter.getItem(position), this, 0); 241 public MenuItemImpl getItem(int position) { argument 243 position += mItemIndexOffset; 244 if (mExpandedIndex >= 0 && position >= mExpandedIndex) { 245 position++; 247 return items.get(position); 250 public long getItemId(int position) { argument 251 // Since a menu item's ID is optional, we'll use the position as an 253 return position; 256 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/base/core/java/android/database/ |
H A D | CursorToBulkCursorAdaptor.java | 157 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 D | AdapterView.java | 66 * The position of the first child displayed 98 * Indicates whether to sync based on the selection or position. Possible 150 * The position within the adapter's data set of the item to select 162 * The position within the adapter's data set of the currently selected item. 189 * Represents an invalid position. All valid positions are in the range 0 to 1 less than the 200 * The last selected position we used when notifying 205 * The id of the last selected position we used when notifying 264 * Implementers can call getItemAtPosition(position) if they need 270 * @param position The position o 273 onItemClick(AdapterView<?> parent, View view, int position, long id) argument 306 performItemClick(View view, int position, long id) argument 341 onItemLongClick(AdapterView<?> parent, View view, int position, long id) argument 385 onItemSelected(AdapterView<?> parent, View view, int position, long id) argument 421 AdapterContextMenuInfo(View targetView, int position, long id) argument 437 public int position; field in class:AdapterView.AdapterContextMenuInfo 670 setSelection(int position) argument 788 getItemAtPosition(int position) argument 793 getItemIdAtPosition(int position) argument 1199 lookForSelectablePosition(int position, boolean lookDown) argument 1207 setSelectedPositionInt(int position) argument 1217 setNextSelectedPositionInt(int position) argument [all...] |
H A D | ListView.java | 63 * position - index of the items in the cursor 83 * Used to indicate a no preference for a position type. 499 int position; 501 position = lookForSelectablePosition(mItemCount - 1, false); 503 position = lookForSelectablePosition(0, true); 505 setSelectedPositionInt(position); 506 setNextSelectedPositionInt(position); 683 * @param pos The first position to put in the list 718 * @param pos The first position to put in the list 780 int position 809 fillAboveAndBelow(View sel, int position) argument 926 smoothScrollToPosition(int position) argument 1112 setup(int position, int top) argument 1196 measureScrapChild(View child, int position, int widthMeasureSpec, int heightHint) argument 1353 fillSpecific(int position, int top) argument 1858 makeAndAddView(int position, int y, boolean flow, int childrenLeft, boolean selected) argument 1898 setupChild(View child, int position, int y, boolean flowDown, int childrenLeft, boolean selected, boolean recycled) argument 2001 setSelection(int position) argument 2011 setSelectionInt(int position) argument 2045 lookForSelectablePosition(int position, boolean lookDown) argument 2085 lookForSelectablePositionAfter(int current, int position, boolean lookDown) argument 3141 addViewAbove(View theView, int position) argument 3150 addViewBelow(View theView, int position) argument 3834 getHeightForPosition(int position) argument 3946 onInitializeAccessibilityNodeInfoForItem( View view, int position, AccessibilityNodeInfo info) argument [all...] |
H A D | ExpandableListConnector.java | 34 * <li> flPos - Flat list position, the position used by ListView 35 * <li> gPos - Group position, the position of a group among all the groups 36 * <li> cPos - Child position, the position of a child among all the children 46 * Internally, this connector translates the flat list position that the 96 * Translates a flat list position to either a) group pos if the specified 97 * flat list position corresponds to a group, or b) child pos if it 102 * @param flPos the flat list position t 961 public ExpandableListPosition position; field in class:ExpandableListConnector.PositionMetadata [all...] |
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/ |
H A D | UsageStatsActivity.java | 112 public Object getItem(int position) { argument 113 return mStats.get(position); 117 public long getItemId(int position) { argument 118 return position; 122 public View getView(int position, View convertView, ViewGroup parent) { argument 135 holder.packageName.setText(mStats.get(position).getPackageName()); 137 mStats.get(position).getTotalTimeInForeground()));
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
H A D | YearPickerView.java | 81 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/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | BaseGridView.java | 36 * Always keep focused item at a aligned position. Developer can use 38 * In this mode, the last focused position will be remembered and restored when focus 499 public void setSelectedPosition(int position) { argument 500 mLayoutManager.setSelection(this, position, 0); 506 public void setSelectedPositionWithSub(int position, int subposition) { argument 507 mLayoutManager.setSelectionWithSub(this, position, subposition, 0); 515 public void setSelectedPosition(int position, int scrollExtra) { argument 516 mLayoutManager.setSelection(this, position, scrollExtra); 524 public void setSelectedPositionWithSub(int position, int subposition, int scrollExtra) { argument 525 mLayoutManager.setSelectionWithSub(this, position, subpositio 532 setSelectedPositionSmooth(int position) argument 540 setSelectedPositionSmoothWithSub(int position, int subposition) argument 705 hasPreviousViewInSameRow(int position) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ScrollingTabContainerView.java | 173 public void setTabSelected(int position) { argument 174 mSelectedTabIndex = position; 178 final boolean isSelected = i == position; 181 animateToTab(position); 184 if (mTabSpinner != null && position >= 0) { 185 mTabSpinner.setSelection(position); 248 public void animateToTab(final int position) { argument 249 final View tabView = mTabLayout.getChildAt(position); 312 public void addTab(ActionBar.Tab tab, int position, boolean setSelected) { argument 314 mTabLayout.addView(tabView, position, ne 327 updateTab(int position) argument 337 removeTabAt(int position) argument 358 onItemClick(AdapterView<?> parent, View view, int position, long id) argument 526 getItem(int position) argument 531 getItemId(int position) argument 536 getView(int position, View convertView, ViewGroup parent) argument 546 getDropDownView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | GridLayoutManagerTest.java | 109 public int getSpanSize(int position) { 110 if (position < 0 || position >= mAdapter.getItemCount()) { 111 postExceptionToInstrumentation(new AssertionError("position is not within " + 112 "adapter range. pos:" + position + ", adapter size:" + 119 public int getSpanIndex(int position, int spanCount) { 120 if (position < 0 || position >= mAdapter.getItemCount()) { 121 postExceptionToInstrumentation(new AssertionError("position is not within " + 122 "adapter range. pos:" + position [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | TabLayout.java | 302 * Set the scroll position of the tabs. This is useful for when the tabs are being displayed as 307 * @param position current scroll position 308 * @param positionOffset Value from [0, 1) indicating the offset from {@code position}. 311 public void setScrollPosition(int position, float positionOffset, boolean updateSelectedText) { argument 315 if (position < 0 || position >= mTabStrip.getChildCount()) { 319 // Set the indicator position and update the scroll to match 320 mTabStrip.setIndicatorPositionFromTabPosition(position, positionOffset); 321 scrollTo(calculateScrollXForTab(position, positionOffse 350 addTab(@onNull Tab tab, int position) argument 379 addTab(@onNull Tab tab, int position, boolean setSelected) argument 459 removeTabAt(int position) argument 651 configureTab(Tab tab, int position) argument 661 updateTab(int position) argument 676 addTabView(Tab tab, int position, boolean setSelected) argument 756 removeTabViewAt(int position) argument 798 setSelectedTabView(int position) argument 842 calculateScrollXForTab(int position, float positionOffset) argument 1005 setPosition(int position) argument 1360 setIndicatorPositionFromTabPosition(int position, float positionOffset) argument 1459 animateIndicatorToPosition(final int position, int duration) argument 1589 onPageScrolled(int position, float positionOffset, int positionOffsetPixels) argument 1603 onPageSelected(int position) argument [all...] |