/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
H A D | DrawerLayoutActivity.java | 252 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 253 mContent.setText(Shakespeare.DIALOGUE[position]); 254 mToolbar.setTitle(Shakespeare.TITLES[position]);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | GuidedStepFragment.java | 694 * Find button GuidedAction position in array by Id. 696 * @return position of GuidedAction object in array or -1 if not found. 731 * @param position Position of the button GuidedAction in array. 733 public void notifyButtonActionChanged(int position) { argument 735 mButtonAdapter.notifyItemChanged(position); 740 * Returns the view corresponding to the button action at the indicated position in the list of 742 * @param position The integer position of the button action of interest. 743 * @return The View corresponding to the button action at the indicated position, or null if 746 public View getButtonActionItemView(int position) { argument 756 setSelectedButtonActionPosition(int position) argument 818 notifyActionChanged(int position) argument 831 getActionItemView(int position) argument 841 setSelectedActionPosition(int position) argument [all...] |
H A D | GuidedStepSupportFragment.java | 697 * Find button GuidedAction position in array by Id. 699 * @return position of GuidedAction object in array or -1 if not found. 734 * @param position Position of the button GuidedAction in array. 736 public void notifyButtonActionChanged(int position) { argument 738 mButtonAdapter.notifyItemChanged(position); 743 * Returns the view corresponding to the button action at the indicated position in the list of 745 * @param position The integer position of the button action of interest. 746 * @return The View corresponding to the button action at the indicated position, or null if 749 public View getButtonActionItemView(int position) { argument 759 setSelectedButtonActionPosition(int position) argument 821 notifyActionChanged(int position) argument 834 getActionItemView(int position) argument 844 setSelectedActionPosition(int position) argument [all...] |
H A D | DetailsFragment.java | 349 int position = mRowsFragment.getVerticalGridView().getSelectedPosition(); 351 if (DEBUG) Log.v(TAG, "row selected position " + position 353 onRowSelected(position, subposition); 498 // align the top edge of item to a fixed position 567 * Sets the selected row position with smooth animation. 569 public void setSelectedPosition(int position) { argument 570 setSelectedPosition(position, true); 574 * Sets the selected row position. 576 public void setSelectedPosition(int position, boolea argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | MenuPopupWindow.java | 200 final int position = pointToPosition((int) ev.getX(), (int) ev.getY()); 201 if (position != INVALID_POSITION) { 202 final int itemPosition = position - headersCount;
|
H A D | SearchView.java | 246 * @param position the absolute position in the list of suggestions. 251 boolean onSuggestionSelect(int position); argument 255 * @param position the absolute position of the clicked item in the list of suggestions. 261 boolean onSuggestionClick(int position); argument 1052 int position = mSearchSrcTextView.getListSelection(); 1053 return onItemClicked(position, KeyEvent.KEYCODE_UNKNOWN, null); 1385 boolean onItemClicked(int position, int actionKey, String actionMsg) { argument 1387 || !mOnSuggestionListener.onSuggestionClick(position)) { 1396 onItemSelected(int position) argument 1441 rewriteQueryFromSuggestion(int position) argument 1474 launchSuggestion(int position, int actionKey, String actionMsg) argument [all...] |
H A D | ListPopupWindow.java | 299 * @param position A position constant declaring where the prompt should be displayed. 304 public void setPromptPosition(int position) { argument 305 mPromptPosition = position; 642 * will recalculate the popup's size and position. 653 //Don't update position if the anchor view is detached from window. 803 * Set the selected position of the list. 806 * @param position List position to set as selected. 808 public void setSelection(int position) { argument 857 performItemClick(int position) argument [all...] |
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
H A D | SearchView_CursorTest.java | 105 public boolean onSuggestionSelect(int position) { argument 110 public boolean onSuggestionClick(int position) { argument 114 cursor.moveToPosition(position);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | RecyclerView.java | 79 * <li><em>Position:</em> The position of a data item within an <em>Adapter</em>.</li> 83 * to a <em>position</em> within the adapter.</li> 85 * position may be placed in a cache for later reuse to display the same type of data again 104 * For this reason, there are two types of <code>position</code> related methods in RecyclerView: 106 * <li>layout position: Position of an item in the latest layout calculation. This is the 107 * position from the LayoutManager's perspective.</li> 108 * <li>adapter position: Position of an item in the adapter. This is the position from 115 * Methods that return or receive <code>*LayoutPosition*</code> use position as of the latest 123 * The other set of position relate 1504 scrollToPosition(int position) argument 1518 jumpToPositionForSmoothScroller(int position) argument 1541 smoothScrollToPosition(int position) argument 4277 findViewHolderForPosition(int position) argument 4300 findViewHolderForLayoutPosition(int position) argument 4321 findViewHolderForAdapterPosition(int position) argument 4342 findViewHolderForPosition(int position, boolean checkNewPosition) argument 5273 tryBindViewHolderByDeadline(ViewHolder holder, int offsetPosition, int position, long deadlineNs) argument 5308 bindViewToPosition(View view, int position) argument 5358 convertPreLayoutPositionToPostLayout(int position) argument 5383 getViewForPosition(int position) argument 5387 getViewForPosition(int position, boolean dryRun) argument 5410 tryGetViewHolderForPositionByDeadline(int position, boolean dryRun, long deadlineNs) argument 5854 getChangedScrapViewForPosition(int position) argument 5892 getScrapOrHiddenOrCachedHolderForPosition(int position, boolean dryRun) argument 6215 getViewForPositionAndType(Recycler recycler, int position, int type) argument 6273 onBindViewHolder(VH holder, int position) argument 6304 onBindViewHolder(VH holder, int position, List<Object> payloads) argument 6329 bindViewHolder(VH holder, int position) argument 6359 getItemViewType(int position) argument 6387 getItemId(int position) argument 6600 notifyItemChanged(int position) argument 6628 notifyItemChanged(int position, Object payload) argument 6693 notifyItemInserted(int position) argument 6744 notifyItemRemoved(int position) argument 7560 scrollToPosition(int position) argument 7575 smoothScrollToPosition(RecyclerView recyclerView, State state, int position) argument 7851 findViewByPosition(int position) argument 10765 findViewByPosition(int position) argument 10774 instantScrollToPosition(int position) argument [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | RecyclerView.java | 95 * <li><em>Position:</em> The position of a data item within an <em>Adapter</em>.</li> 99 * to a <em>position</em> within the adapter.</li> 101 * position may be placed in a cache for later reuse to display the same type of data again 120 * For this reason, there are two types of <code>position</code> related methods in RecyclerView: 122 * <li>layout position: Position of an item in the latest layout calculation. This is the 123 * position from the LayoutManager's perspective.</li> 124 * <li>adapter position: Position of an item in the adapter. This is the position from 131 * Methods that return or receive <code>*LayoutPosition*</code> use position as of the latest 139 * The other set of position relate 1603 scrollToPosition(int position) argument 1617 jumpToPositionForSmoothScroller(int position) argument 1640 smoothScrollToPosition(int position) argument 4430 findViewHolderForPosition(int position) argument 4453 findViewHolderForLayoutPosition(int position) argument 4474 findViewHolderForAdapterPosition(int position) argument 4495 findViewHolderForPosition(int position, boolean checkNewPosition) argument 5440 tryBindViewHolderByDeadline(ViewHolder holder, int offsetPosition, int position, long deadlineNs) argument 5475 bindViewToPosition(View view, int position) argument 5525 convertPreLayoutPositionToPostLayout(int position) argument 5550 getViewForPosition(int position) argument 5554 getViewForPosition(int position, boolean dryRun) argument 5577 tryGetViewHolderForPositionByDeadline(int position, boolean dryRun, long deadlineNs) argument 6033 getChangedScrapViewForPosition(int position) argument 6071 getScrapOrHiddenOrCachedHolderForPosition(int position, boolean dryRun) argument 6384 getViewForPositionAndType(Recycler recycler, int position, int type) argument 6442 onBindViewHolder(VH holder, int position) argument 6473 onBindViewHolder(VH holder, int position, List<Object> payloads) argument 6498 bindViewHolder(VH holder, int position) argument 6528 getItemViewType(int position) argument 6556 getItemId(int position) argument 6769 notifyItemChanged(int position) argument 6797 notifyItemChanged(int position, Object payload) argument 6862 notifyItemInserted(int position) argument 6913 notifyItemRemoved(int position) argument 7832 scrollToPosition(int position) argument 7847 smoothScrollToPosition(RecyclerView recyclerView, State state, int position) argument 8123 findViewByPosition(int position) argument 11249 findViewByPosition(int position) argument 11258 instantScrollToPosition(int position) argument [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | ToolbarActionBar.java | 201 public void setSelectedNavigationItem(int position) { argument 204 mDecorToolbar.setDropdownSelectedPosition(position); 340 public void addTab(Tab tab, int position) { argument 346 public void addTab(Tab tab, int position, boolean setSelected) { argument 358 public void removeTabAt(int position) { argument
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/asn1/ |
H A D | Asn1Oid.java | 25 throw new DecodeException("oid-encoding length is zero", data.position()); 30 payload.limit(payload.position() + length); 31 data.position(data.position() + length); 56 throw new DecodeException("Illegal (end of) oid-encoding", payload.position());
|
/frameworks/base/services/net/java/android/net/ip/ |
H A D | IpReachabilityMonitor.java | 204 bytes.position(0); 516 final int position = byteBuffer.position(); 519 byteBuffer.position(position);
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
H A D | SinkActivity.java | 320 int position = mHidBuffer.position(); 326 mHidBuffer.array(), position, count, 10000); 331 mHidBuffer.position(position + count);
|
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | common.cpp | 70 positionID = _env->GetFieldID(bufferClass, "position", "I"); 79 jint position; local 84 position = _env->GetIntField(buffer, positionID); 87 *remaining = (limit - position) << elementSizeShift; 224 jint position = _env->GetIntField(buffer, positionID); local 226 buf += position << elementSizeShift;
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
H A D | DropdownChipLayouter.java | 100 * @param position The position in the list. 106 public View bindView(View convertView, ViewGroup parent, RecipientEntry entry, int position, argument 108 return bindView(convertView, parent, entry, position, type, constraint, null); 117 public View bindView(View convertView, ViewGroup parent, RecipientEntry entry, int position, argument 150 viewHolder.topDivider.setVisibility(position == 0 ? View.VISIBLE : View.GONE); 162 if (position != 0) {
|
H A D | BaseRecipientAdapter.java | 981 public RecipientEntry getItem(int position) { argument 982 return getEntries().get(position); 986 public long getItemId(int position) { argument 987 return position; 996 public int getItemViewType(int position) { argument 997 return getEntries().get(position).getEntryType(); 1001 public boolean isEnabled(int position) { argument 1002 return getEntries().get(position).isSelectable(); 1006 public View getView(int position, View convertView, ViewGroup parent) { argument 1007 final RecipientEntry entry = getEntries().get(position); [all...] |
H A D | RecipientAlternatesAdapter.java | 562 public long getItemId(int position) { argument 564 if (c.moveToPosition(position)) { 570 public RecipientEntry getRecipientEntry(int position) { argument 572 c.moveToPosition(position); 588 public View getView(int position, View convertView, ViewGroup parent) { argument 590 cursor.moveToPosition(position); 595 mCheckedItemPosition = position; 606 int position = cursor.getPosition(); 607 RecipientEntry entry = getRecipientEntry(position); 609 mDropdownChipLayouter.bindView(view, null, entry, position, 619 onCheckedItemChanged(int position) argument [all...] |
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
H A D | Swarm.java | 131 drawListBuffer.position(0); 137 mColorBuffer.position(0); 160 vertexBuffer.position(0); 362 triBuff.position(0); 364 triBuff.position(0);
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | ToolbarActionBar.java | 196 public void setSelectedNavigationItem(int position) { argument 199 mDecorToolbar.setDropdownSelectedPosition(position); 345 public void addTab(Tab tab, int position) { argument 351 public void addTab(Tab tab, int position, boolean setSelected) { argument 363 public void removeTabAt(int position) { argument
|
/frameworks/base/core/java/android/widget/ |
H A D | ListPopupWindow.java | 264 * @param position A position constant declaring where the prompt should be displayed. 269 public void setPromptPosition(int position) { argument 270 mPromptPosition = position; 609 * will recalculate the popup's size and position. 621 //Don't update position if the anchor view is detached from window. 765 * Set the selected position of the list. 768 * @param position List position to set as selected. 770 public void setSelection(int position) { argument 818 performItemClick(int position) argument [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
H A D | PageAdapter.java | 315 public void onBindViewHolder(ViewHolder holder, int position) { argument 317 Log.i(LOG_TAG, "Binding holder: " + holder + " with id: " + getItemId(position) 318 + " for position: " + position); 328 myHolder.mPageInAdapter = position; 330 final int pageInDocument = computePageIndexInDocument(position); 344 + " pageIndexInAdapter: " + position 351 mBoundPagesInAdapter.put(position, null); 378 public int getItemViewType(int position) { argument 379 if (mConfirmedPagesInDocument.indexOfKey(computePageIndexInDocument(position)) > 387 getItemId(int position) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
H A D | GlobalActionsDialog.java | 330 public boolean onItemLongClick(AdapterView<?> parent, View view, int position, 332 final Action action = mAdapter.getItem(position); 707 public boolean isEnabled(int position) { argument 708 return getItem(position).isEnabled(); 716 public Action getItem(int position) { argument 727 if (filteredPos == position) { 733 throw new IllegalArgumentException("position " + position 741 public long getItemId(int position) { argument 742 return position; 745 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | LegacyGlobalActions.java | 331 public boolean onItemLongClick(AdapterView<?> parent, View view, int position, 333 final Action action = mAdapter.getItem(position); 710 public boolean isEnabled(int position) { argument 711 return getItem(position).isEnabled(); 719 public Action getItem(int position) { argument 730 if (filteredPos == position) { 736 throw new IllegalArgumentException("position " + position 744 public long getItemId(int position) { argument 745 return position; 748 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/native/libs/input/ |
H A D | VelocityTracker.cpp | 255 ALOGD(" %d: position (%0.3f, %0.3f), " 290 // Note that ACTION_UP and ACTION_POINTER_UP always report the last known position 291 // of the pointers that went up. ACTION_POINTER_UP does include the new position of 583 const VelocityTracker::Position& position = movement.getPosition(id); 584 x[m] = position.x; 585 y[m] = position.y; 619 // No velocity data available for this pointer, but we do have its current position. 719 const VelocityTracker::Position& position = positions[index++]; local 721 updateState(state, eventTime, position.x, position 903 const VelocityTracker::Position& position = movement.getPosition(id); local [all...] |