/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
H A D | MenuPopupHelper.java | 185 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 187 adapter.mAdapterMenu.performItemAction(adapter.getItem(position), 0); 240 // Recompute window size and position 353 public MenuItemImpl getItem(int position) { argument 356 if (mExpandedIndex >= 0 && position >= mExpandedIndex) { 357 position++; 359 return items.get(position); 362 public long getItemId(int position) { argument 363 // Since a menu item's ID is optional, we'll use the position as an 365 return position; 368 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | ActivityChooserView.java | 558 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 560 final int itemViewType = adapter.getItemViewType(position); 568 // The item at position zero is the default already. 569 if (position > 0) { 570 mAdapter.getDataModel().setDefaultActivity(position); 575 position = mAdapter.getShowDefaultActivity() ? position : position + 1; 576 Intent launchIntent = mAdapter.getDataModel().chooseActivity(position); 674 public int getItemViewType(int position) { argument 700 getItem(int position) argument 715 getItemId(int position) argument 719 getView(int position, View convertView, ViewGroup parent) argument [all...] |
H A D | DecorToolbar.java | 82 void setDropdownSelectedPosition(int position); argument
|
H A D | ScrollingTabContainerView.java | 179 public void setTabSelected(int position) { argument 180 mSelectedTabIndex = position; 184 final boolean isSelected = i == position; 187 animateToTab(position); 190 if (mTabSpinner != null && position >= 0) { 191 mTabSpinner.setSelection(position); 256 public void animateToTab(final int position) { argument 257 final View tabView = mTabLayout.getChildAt(position); 320 public void addTab(ActionBar.Tab tab, int position, boolean setSelected) { argument 322 mTabLayout.addView(tabView, position, ne 335 updateTab(int position) argument 345 removeTabAt(int position) argument 366 onItemClick(AdapterViewCompat<?> parent, View view, int position, long id) argument 546 getItem(int position) argument 551 getItemId(int position) argument 556 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | SuggestionsAdapter.java | 447 public View getView(int position, View convertView, ViewGroup parent) { argument 449 return super.getView(position, convertView, parent);
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | GridLayoutManager.java | 280 throw new RuntimeException("Cannot find span group index for position " 283 Log.w(TAG, "Cannot find span size for pre layout position. " + viewPosition); 300 throw new RuntimeException("Cannot find span index for pre layout position. It is" 303 Log.w(TAG, "Cannot find span size for pre layout position. It is" 321 throw new RuntimeException("Cannot find span size for pre layout position. It is" 324 Log.w(TAG, "Cannot find span size for pre layout position. It is" 348 throw new IllegalArgumentException("Item at position " + pos + " requires " + 452 // To calculate correct layout position, we subtract margins. 456 Log.d(TAG, "laid out child at position " + getPosition(view) + ", with l:" 503 // make sure we traverse from min position t 583 getSpanSize(int position) argument 613 getCachedSpanIndex(int position, int spanCount) argument 649 getSpanIndex(int position, int spanCount) argument 680 findReferenceIndexFromCache(int position) argument 744 getSpanSize(int position) argument 749 getSpanIndex(int position, int spanCount) argument [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | DefaultItemAnimatorTest.java | 403 public void onBindViewHolder(ViewHolder holder, int position) { argument 404 holder.bind(mItems.get(position));
|
H A D | LinearLayoutManagerTest.java | 121 // add a bunch of items right before that view, make sure it keeps its position 131 assertEquals("focused child's screen position should stay unchanged", top, 170 final int position = mRecyclerView.getChildLayoutPosition(child); 179 scrollToPositionWithOffset(position, scrollOffset); 188 + "child " + position, 235 int position = mRecyclerView.getChildLayoutPosition(child); 236 if (position < minPosition) { 237 minPosition = position; 239 if (position > maxPosition) { 240 maxPosition = position; 794 scrollToPositionWithOffset(final int position, final int offset) argument [all...] |
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestDecodeAac.cpp | 210 SLmillisecond position; local 211 SLresult res = (*caller)->GetPosition(caller, &position); 214 printf("SL_PLAYEVENT_HEADATMARKER position=%u ms\n", position); 217 printf("SL_PLAYEVENT_HEADATNEWPOS position=%u ms\n", position); 220 printf("SL_PLAYEVENT_HEADATEND position=%u ms, all decoded data has been received\n", 221 position); 385 /* Periodically ask for position and duration */ 387 SLmillisecond position; local 568 SLmillisecond position; local [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | xaplay.c | 51 XAmillisecond seekPos = XA_TIME_UNKNOWN; // seek to this position initially 135 XAmillisecond position; local 136 result = (*caller)->GetPosition(caller, &position); 140 printf("XA_PLAYEVENT_HEADATEND current position=%u ms\n", position); 144 printf("XA_PLAYEVENT_HEADATNEWPOS current position=%u ms\n", position); 148 printf("XA_PLAYEVENT_HEADATMARKER current position=%u ms\n", position); 210 // display position periodicall 212 XAmillisecond position; local 559 XAmillisecond position; local [all...] |
/frameworks/av/media/libmedia/ |
H A D | IAudioPolicyService.cpp | 693 size_t position = data.dataPosition(); local 695 data.setDataPosition(position); 700 size_t position = data.dataPosition(); local 703 data.setDataPosition(position);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | GenericSource.cpp | 575 void NuPlayer::GenericSource::setDrmPlaybackStatusIfNeeded(int playbackStatus, int64_t position) { argument 577 mDrmManagerClient->setPlaybackStatus(mDecryptHandle, playbackStatus, position);
|
/frameworks/av/media/libstagefright/matroska/ |
H A D | MatroskaExtractor.cpp | 43 virtual int Read(long long position, long length, unsigned char* buffer) { argument 44 CHECK(position >= 0); 51 ssize_t n = mSource->readAt(position, buffer, length);
|
/frameworks/base/core/java/android/app/ |
H A D | ActionBar.java | 347 * @param position Position of the item to select. 354 public abstract void setSelectedNavigationItem(int position); argument 357 * Get the position of the selected navigation item in list or tabbed navigation modes. 652 * <code>position</code>. If this is the first tab to be added it will become 656 * @param position The new position of the tab 663 public abstract void addTab(Tab tab, int position); argument 667 * <code>position</code>. 670 * @param position The new position o 678 addTab(Tab tab, int position, boolean setSelected) argument 704 removeTabAt(int position) argument [all...] |
/frameworks/base/core/java/android/database/ |
H A D | DatabaseUtils.java | 257 * The original position of the cursor is left unchanged by this operation. 260 * @param position The start position for filling the window. 265 int position, final CursorWindow window) { 266 if (position < 0 || position >= cursor.getCount()) { 272 window.setStartPosition(position); 274 if (cursor.moveToPosition(position)) { 284 success = window.putNull(position, i); 288 success = window.putLong(cursor.getLong(i), position, 264 cursorFillWindow(final Cursor cursor, int position, final CursorWindow window) argument [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceActivity.java | 276 public View getView(int position, View convertView, ViewGroup parent) { argument 293 Header header = getItem(position); 1034 protected void onListItemClick(ListView l, View v, int position, long id) { argument 1038 super.onListItemClick(l, v, position, id); 1041 Object item = mAdapter.getItem(position); 1042 if (item instanceof Header) onHeaderClick((Header) item, position); 1053 * @param position The header's position in the list. 1055 public void onHeaderClick(Header header, int position) { argument
|
/frameworks/base/core/java/android/widget/ |
H A D | AdapterView.java | 63 * The position of the first child displayed 95 * Indicates whether to sync based on the selection or position. Possible 147 * The position within the adapter's data set of the item to select 159 * The position within the adapter's data set of the currently selected item. 186 * Represents an invalid position. All valid positions are in the range 0 to 1 less than the 197 * The last selected position we used when notifying 202 * The id of the last selected position we used when notifying 261 * Implementers can call getItemAtPosition(position) if they need 267 * @param position The position o 270 onItemClick(AdapterView<?> parent, View view, int position, long id) argument 302 performItemClick(View view, int position, long id) argument 334 onItemLongClick(AdapterView<?> parent, View view, int position, long id) argument 378 onItemSelected(AdapterView<?> parent, View view, int position, long id) argument 413 AdapterContextMenuInfo(View targetView, int position, long id) argument 429 public int position; field in class:AdapterView.AdapterContextMenuInfo 653 setSelection(int position) argument 771 getItemAtPosition(int position) argument 776 getItemIdAtPosition(int position) argument 1175 lookForSelectablePosition(int position, boolean lookDown) argument 1183 setSelectedPositionInt(int position) argument 1193 setNextSelectedPositionInt(int position) argument [all...] |
H A D | AdapterViewAnimator.java | 534 // the transform for it's new relative position in the window, and animate 840 // values to restore the list position after we connect, and can skip setting the displayed 1017 public void setSelection(int position) { argument 1018 setDisplayedChild(position); 1046 // Restore the previous position (see onRestoreInstanceState)
|
H A D | AutoCompleteTextView.java | 827 * Set the position of the dropdown view selection. 829 * @param position The position to move the selector to. 831 public void setListSelection(int position) { argument 832 mPopup.setSelection(position); 836 * Get the position of the dropdown view selection, if there is one. Returns 840 * @return the position of the current selection, if there is one, or 880 private void performCompletion(View selectedView, int position, long id) { argument 883 if (position < 0) { 886 selectedItem = mAdapter.getItem(position); 1200 onItemClick(AdapterView parent, View v, int position, long id) argument [all...] |
H A D | ExpandableListView.java | 57 * {@link SimpleCursorTreeAdapter}) contain the preferred position information 62 * {@link ExpandableListContextMenuInfo#packedPosition} being a packed position 89 * The packed position represents a group. 94 * The packed position represents a child. 99 * The packed position represents a neither/null/no preference. 104 * The value for a packed position that represents neither/null/no 106 * (first bit 0) should not have a child position filled. 110 /** The mask (in packed position representation) for the child */ 113 /** The mask (in packed position representation) for the group */ 116 /** The mask (in packed position representatio 618 isHeaderOrFooterPosition(int position) argument 646 performItemClick(View v, int position, long id) argument 666 handleItemClick(View v, int position, long id) argument 1144 getChildOrGroupId(ExpandableListPosition position) argument [all...] |
H A D | FastScroller.java | 148 /** The position of the first visible item in the list. */ 157 /** The current scrollbar position. */ 206 /** Whether to precisely match the thumb position to the list. */ 467 public void setScrollbarPosition(int position) { argument 468 if (position == View.SCROLLBAR_POSITION_DEFAULT) { 469 position = mList.isLayoutRtl() ? 473 if (mScrollbarPosition != position) { 474 mScrollbarPosition = position; 475 mLayoutFromRight = position != View.SCROLLBAR_POSITION_LEFT; 668 // Don't adjust the vertical position 939 scrollTo(float position) argument 1146 setThumbPos(float position) argument [all...] |
H A D | Gallery.java | 82 * position, measured in milliseconds. 109 * The position of the item that received the user's down touch. 180 * If true, mFirstPosition is the position of the rightmost child, and 187 * Used to reset position correctly during layout. 268 * changes position. Only relevant if animation is turned on. 318 // Current scroll position is the same as the selected position 580 // Common case where the current selected position is correct 621 * @param delta Change in the selected position. +1 means the selection is 643 // Update to the new selected position 847 makeAndAddView(int position, int offset, int x, boolean fromLeft) argument 1178 dispatchLongPress(View view, int position, long id) argument 1290 setSelectedPositionInt(int position) argument [all...] |
H A D | GridView.java | 210 int position; 212 position = lookForSelectablePosition(mItemCount - 1, false); 214 position = lookForSelectablePosition(0, true); 216 setSelectedPositionInt(position); 217 setNextSelectedPositionInt(position); 229 int lookForSelectablePosition(int position, boolean lookDown) { argument 235 if (position < 0 || position >= mItemCount) { 238 return position; 258 int position 548 fillSpecific(int position, int top) argument 847 smoothScrollToPosition(int position) argument 1416 makeAndAddView(int position, int y, boolean flow, int childrenLeft, boolean selected, int where) argument 1457 setupChild(View child, int position, int y, boolean flow, int childrenLeft, boolean selected, boolean recycled, int where) argument 1569 setSelection(int position) argument 1588 setSelectionInt(int position) argument 2364 onInitializeAccessibilityNodeInfoForItem( View view, int position, AccessibilityNodeInfo info) argument [all...] |
H A D | OverScroller.java | 152 * position. 249 * Instead of setting a new final position and extending 260 * Sets the final position (X) for this scroller. 267 * @deprecated OverScroller's final position may change during an animation. 268 * Instead of setting a new final position and extending 278 * Sets the final position (Y) for this scroller. 285 * @deprecated OverScroller's final position may change during an animation. 286 * Instead of setting a new final position and extending 460 * @param startX Starting/current X position 461 * @param finalX Desired final X position 703 setFinalPosition(int position) argument [all...] |
H A D | RemoteViewsAdapter.java | 330 public void add(int position, RemoteViewsFrameLayout layout) { argument 331 final Integer pos = position; 348 * Notifies each of the RemoteViewsFrameLayouts associated with a particular position that 351 public void notifyOnRemoteViewsLoaded(int position, RemoteViews view) { argument 354 final Integer pos = position; 356 // Notify all the references for that position of the newly loaded RemoteViews 462 private RemoteViewsFrameLayout createLoadingView(int position, View convertView, argument 465 // Create and return a new FrameLayout, and setup the references for this position 556 // The cache/mapping of position to RemoteViewsMetaData. This set is guaranteed to be 559 // we still need to be able to access the mapping of position t 608 insert(int position, RemoteViews v, long itemId, ArrayList<Integer> visibleWindow) argument 642 getRemoteViewsAt(int position) argument 648 getMetaDataAt(int position) argument 702 queueRequestedPositionToLoad(int position) argument 709 queuePositionsToBePreloadedFromRequestedPosition(int position) argument 767 containsRemoteViewAt(int position) argument 770 containsMetaDataAt(int position) argument 1006 updateRemoteViews(final int position, boolean notifyWhenLoaded) argument 1083 getItem(int position) argument 1088 getItemId(int position) argument 1097 getItemViewType(int position) argument 1138 getView(int position, View convertView, ViewGroup parent) argument [all...] |