/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | DirectoryFragment.java | 483 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { 484 final Cursor cursor = mAdapter.getItem(position); 579 ActionMode mode, int position, long id, boolean checked) { 585 final Cursor cursor = mAdapter.getItem(position); 604 mCurrentView.setItemChecked(position, false); 839 public View getView(int position, View convertView, ViewGroup parent) { argument 840 if (position < mCursorCount) { 841 return getDocumentView(position, convertView, parent); 843 position -= mCursorCount; 844 convertView = mFooters.get(position) 852 getDocumentView(int position, View convertView, ViewGroup parent) argument 1064 getItem(int position) argument 1074 getItemId(int position) argument 1084 getItemViewType(int position) argument [all...] |
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | GlobalActions.java | 321 public boolean onItemLongClick(AdapterView<?> parent, View view, int position, 323 final Action action = mAdapter.getItem(position); 634 public boolean isEnabled(int position) { argument 635 return getItem(position).isEnabled(); 643 public Action getItem(int position) { argument 654 if (filteredPos == position) { 660 throw new IllegalArgumentException("position " + position 668 public long getItemId(int position) { argument 669 return position; 672 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/ |
H A D | ListenerBindingObject.java | 70 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { } argument 72 public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) { argument 76 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { } argument 133 public boolean onSuggestionClick(int position) { argument 137 public boolean onSuggestionSelect(int position) { argument
|
/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/opt/chips/src/com/android/ex/chips/ |
H A D | BaseRecipientAdapter.java | 896 public RecipientEntry getItem(int position) { argument 897 return getEntries().get(position); 901 public long getItemId(int position) { argument 902 return position; 911 public int getItemViewType(int position) { argument 912 return getEntries().get(position).getEntryType(); 916 public boolean isEnabled(int position) { argument 917 return getEntries().get(position).isSelectable(); 921 public View getView(int position, View convertView, ViewGroup parent) { argument 922 final RecipientEntry entry = getEntries().get(position); [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BrowseFragment.java | 173 void post(int position, int type, boolean smooth) { argument 180 mPosition = position; 733 int position = mRowsFragment.getVerticalGridView().getSelectedPosition(); 734 if (DEBUG) Log.v(TAG, "row selected position " + position); 735 onRowSelected(position); 747 int position = mHeadersFragment.getVerticalGridView().getSelectedPosition(); 748 if (DEBUG) Log.v(TAG, "header selected position " + position); 749 onRowSelected(position); 753 onRowSelected(int position) argument 766 setSelection(int position, boolean smooth) argument 777 setSelectedPosition(int position) argument 784 setSelectedPosition(int position, boolean smooth) argument [all...] |
H A D | BrowseSupportFragment.java | 175 void post(int position, int type, boolean smooth) { argument 182 mPosition = position; 735 int position = mRowsSupportFragment.getVerticalGridView().getSelectedPosition(); 736 if (DEBUG) Log.v(TAG, "row selected position " + position); 737 onRowSelected(position); 749 int position = mHeadersSupportFragment.getVerticalGridView().getSelectedPosition(); 750 if (DEBUG) Log.v(TAG, "header selected position " + position); 751 onRowSelected(position); 755 onRowSelected(int position) argument 768 setSelection(int position, boolean smooth) argument 779 setSelectedPosition(int position) argument 786 setSelectedPosition(int position, boolean smooth) argument [all...] |
/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/support/v7/appcompat/src/android/support/v7/app/ |
H A D | ActionBar.java | 337 * @param position Position of the item to select. 344 public abstract void setSelectedNavigationItem(int position); argument 347 * Get the position of the selected navigation item in list or tabbed navigation modes. 644 * <code>position</code>. If this is the first tab to be added it will become 648 * @param position The new position of the tab 655 public abstract void addTab(Tab tab, int position); argument 659 * <code>position</code>. 662 * @param position The new position o 670 addTab(Tab tab, int position, boolean setSelected) argument 696 removeTabAt(int position) argument [all...] |
H A D | AlertController.java | 742 public View getView(int position, View convertView, ViewGroup parent) { 743 View view = super.getView(position, convertView, parent); 745 boolean isItemChecked = mCheckedItems[position]; 747 listView.setItemChecked(position, true); 806 public void onItemClick(AdapterView<?> parent, View v, int position, long id) { 807 mOnClickListener.onClick(dialog.mDialog, position); 816 public void onItemClick(AdapterView<?> parent, View v, int position, long id) { 818 mCheckedItems[position] = listView.isItemChecked(position); 821 dialog.mDialog, position, listVie 852 getItemId(int position) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/app/ |
H A D | ToolbarActionBar.java | 204 public void setSelectedNavigationItem(int position) { argument 207 mDecorToolbar.setDropdownSelectedPosition(position); 343 public void addTab(Tab tab, int position) { argument 349 public void addTab(Tab tab, int position, boolean setSelected) { argument 361 public void removeTabAt(int position) { argument
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | ToolbarWidgetWrapper.java | 546 public void setDropdownSelectedPosition(int position) { argument 549 "Can't set dropdown selected position without an adapter"); 551 mSpinner.setSelection(position);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | SwitchCompat.java | 768 * Sets the thumb position as a decimal value between 0 (off) and 1 (on). 770 * @param position new position between [0,1] 772 private void setThumbPosition(float position) { argument 773 mThumbPosition = position; 793 // Immediately move the thumb to the new position. 876 // Adjust thumb position for track padding. 1010 * Translates thumb position to offset according to current RTL setting and 1105 // Manually set our thumb position to the end state
|
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/ |
H A D | AdapterHelperTest.java | 82 public RecyclerView.ViewHolder findViewHolder(int position) { 84 if (vh.mPosition == position && !vh.isRemoved()) { 205 private void addViewHolder(int position) { argument 208 viewHolder.mPosition = position; 209 viewHolder.mItem = mTestAdapter.mItems.get(position); 230 assertEquals("find position for view 23", 232 assertEquals("find position for view 24", 234 assertEquals("find position for view 25", 236 assertEquals("find position for view 26", 238 assertEquals("find position fo [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | BaseRecyclerViewInstrumentationTest.java | 273 + " adapter position unless it is removed : " + vh, 323 void scrollToPosition(final int position) throws Throwable { argument 327 mRecyclerView.getLayoutManager().scrollToPosition(position); 332 void smoothScrollToPosition(final int position) argument 335 Log.d(TAG, "SMOOTH scrolling to " + position); 340 mRecyclerView.smoothScrollToPosition(position); 461 assertSame("item position in LP should match adapter value :" + vh, 483 assertNotNull("view should not be null for valid position. " 484 + "got null view at position " + i, view); 493 assertEquals("getViewForPosition should return correct position", 617 onBindViewHolder(TestViewHolder holder, int position) argument 625 getItemAt(int position) argument 664 getItemId(int position) argument 875 TargetTuple(int position, int layoutDirection) argument [all...] |
H A D | LinearLayoutManagerTest.java | 167 int position) { 168 super.onBindViewHolder(holder, position); 185 if (position == removePos) { 261 // add a bunch of items right before that view, make sure it keeps its position 271 assertEquals("focused child's screen position should stay unchanged", top, 372 // add a bunch of items right before that view, make sure it keeps its position 439 final int position = mRecyclerView.getChildLayoutPosition(child); 448 scrollToPositionWithOffset(position, scrollOffset); 457 + "child " + position, 504 int position 1096 scrollToPositionWithOffset(final int position, final int offset) argument [all...] |
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
H A D | EffectBundle.cpp | 1818 int16_t VolumeConvertStereoPosition(int16_t position){ argument 1821 convertedPosition = (int16_t)(((float)position/1000)*96); 1833 // position: stereo position 1838 int VolumeSetStereoPosition(EffectContext *pContext, int16_t position){ argument 1846 pContext->pBundledContext->positionSaved = position; 1854 //ALOGV("\tVolumeSetStereoPosition Position to be set is %d %d\n", position, Balance); 1855 pContext->pBundledContext->positionSaved = position; 1883 //position, Balance); 1900 // position 1903 VolumeGetStereoPosition(EffectContext *pContext, int16_t *position) argument 2632 int16_t position; local [all...] |
/frameworks/av/media/libmedia/ |
H A D | AudioTrack.cpp | 520 // reset current position as seen by client to 0 527 // as the position is reset to 0. This is legacy behavior. This is not done 609 // clear buffer position and loop count. 610 mStaticProxy->setBufferPositionAndLoop(0 /* position */, 680 // To fix this, cache the playback position on a pause() and return 690 ALOGV("AudioTrack::pause for offload, cache current position %u", mPausedPosition); 874 // See setPosition() regarding setting parameters such as loop points or position while active 897 // The only purpose of setting marker position is to get a callback 930 // The only purpose of setting position update period is to get a callback 961 status_t AudioTrack::setPosition(uint32_t position) argument 988 getPosition(uint32_t *position) argument 1026 getBufferPosition(uint32_t *position) argument 1777 size_t position = updateAndGetPosition_l(); local [all...] |
/frameworks/av/media/libstagefright/ |
H A D | AwesomePlayer.cpp | 949 int64_t position; local 950 getPosition(&position); 952 Playback::START, position / 1000); 1732 // we are now resuming. Signal new position to media time provider. 3012 // get current position so we can start recreated stream from here
|
/frameworks/base/core/java/android/widget/ |
H A D | CalendarViewLegacyDelegate.java | 234 * Command for adjusting the position after a scroll/fling. 791 int position = getWeeksSinceMinDate(date); 795 if (position < firstFullyVisiblePosition || position > lastFullyVisiblePosition 804 position = 0; 806 position = getWeeksSinceMinDate(mFirstDayOfMonth); 811 mListView.smoothScrollToPositionFromTop(position, mListScrollTopOffset, 814 mListView.setSelectionFromTop(position, mListScrollTopOffset); 961 // Fix the position after a scroll or a fling ends 1051 public Object getItem(int position) { argument 1056 getItemId(int position) argument 1061 getView(int position, View convertView, ViewGroup parent) argument [all...] |
H A D | FastScroller.java | 140 // Used to convert between y-coordinate and thumb position within track. 159 /** The position of the first visible item in the list. */ 168 /** The current scrollbar position. */ 217 /** Whether to precisely match the thumb position to the list. */ 475 public void setScrollbarPosition(int position) { argument 476 if (position == View.SCROLLBAR_POSITION_DEFAULT) { 477 position = mList.isLayoutRtl() ? 481 if (mScrollbarPosition != position) { 482 mScrollbarPosition = position; 483 mLayoutFromRight = position ! 987 scrollTo(float position) argument 1194 setThumbPos(float position) argument [all...] |
H A D | ListPopupWindow.java | 261 * @param position A position constant declaring where the prompt should be displayed. 266 public void setPromptPosition(int position) { argument 267 mPromptPosition = position; 581 * will recalculate the popup's size and position. 727 * Set the selected position of the list. 730 * @param position List position to set as selected. 732 public void setSelection(int position) { argument 736 list.setSelection(position); 779 performItemClick(int position) argument 1640 clickPressedItem(final View child, final int position) argument 1676 setPressedItem(View child, int position, float x, float y) argument 1733 obtainView(int position, boolean[] isScrap) 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 | RemoteViews.java | 468 int position, long id) { 2459 * @param position Scroll to this adapter position 2461 public void setScrollPosition(int viewId, int position) { argument 2462 setInt(viewId, "smoothScrollToPosition", position); 2469 * @param offset Scroll by this adapter position offset
|
H A D | SearchView.java | 232 * @param position the absolute position in the list of suggestions. 237 boolean onSuggestionSelect(int position); argument 241 * @param position the absolute position of the clicked item in the list of suggestions. 247 boolean onSuggestionClick(int position); argument 1036 int position = mSearchSrcTextView.getListSelection(); 1037 return onItemClicked(position, KeyEvent.KEYCODE_UNKNOWN, null); 1070 int position = mSearchSrcTextView.getListSelection(); 1071 if (position ! 1356 onItemClicked(int position, int actionKey, String actionMsg) argument 1367 onItemSelected(int position) argument 1409 rewriteQueryFromSuggestion(int position) argument 1442 launchSuggestion(int position, int actionKey, String actionMsg) argument [all...] |