Searched refs:position (Results 1 - 25 of 1016) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListHeterogeneous.java40 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
41 switch (position % 3) {
44 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
47 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
50 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
57 public View convertView(int position, View convertView, ViewGroup parent) { argument
58 switch (position
73 getItemViewType(int position) argument
[all...]
H A DListItemFocusableAboveUnfocusable.java40 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
41 if (position == 0) {
43 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
45 return super.createView(position, parent, desiredHeight);
H A DListInterleaveFocusables.java43 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
44 if (mFocusablePositions.contains(position)) {
46 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
48 return super.createView(position, parent, desiredHeight);
53 public int getItemViewType(int position) { argument
54 return mFocusablePositions.contains(position) ? 0 : 1;
/frameworks/base/core/java/android/widget/
H A DListAdapter.java41 * Returns true if the item at the specified position is not a separator.
44 * The result is unspecified if position is invalid. An {@link ArrayIndexOutOfBoundsException}
47 * @param position Index of the item
53 boolean isEnabled(int position); argument
H A DSectionIndexer.java29 * section/position.
49 * the starting position of that section within the adapter.
51 * If the section's starting position is outside of the adapter bounds, the
52 * position must be clipped to fall within the size of the adapter.
56 * @return the starting position of that section within the adapter,
62 * Given a position within the adapter, returns the index of the
69 * starts at adapter position 100. Calling this method with position 10,
72 * @param position the position withi
77 getSectionForPosition(int position) argument
[all...]
H A DAdapter.java58 * Get the data item associated with the specified position in the data set.
60 * @param position Position of the item whose data we want within the adapter's
62 * @return The data at the specified position.
64 Object getItem(int position); argument
67 * Get the row id associated with the specified position in the list.
69 * @param position The position of the item within the adapter's data set whose row id we want.
70 * @return The id of the item at the specified position.
72 long getItemId(int position); argument
83 * Get a View that displays the data at the specified position i
100 getView(int position, View convertView, ViewGroup parent) argument
124 getItemViewType(int position) argument
[all...]
H A DRemoteViewsListAdapter.java75 public Object getItem(int position) { argument
80 public long getItemId(int position) { argument
81 return position;
85 public View getView(int position, View convertView, ViewGroup parent) { argument
86 if (position < getCount()) {
87 RemoteViews rv = mRemoteViewsList.get(position);
104 public int getItemViewType(int position) { argument
105 if (position < getCount()) {
106 int layoutId = mRemoteViewsList.get(position).getLayoutId();
/frameworks/support/car/src/main/java/androidx/car/drawer/
H A DDrawerItemClickListener.java26 * @param position Adapter position of the clicked item.
28 void onItemClick(int position); argument
/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/
H A DRange.java71 * Creates a new range anchored at {@code position}.
73 * @param position
76 Range(int position, @NonNull Callbacks callbacks) { argument
77 mBegin = position;
79 if (DEBUG) Log.d(TAG, "Creating new Range anchored @ " + position);
82 void extendRange(int position, @RangeType int type) { argument
83 checkArgument(position != NO_POSITION, "Position cannot be NO_POSITION.");
88 establishRange(position, type);
90 reviseRange(position, type);
94 private void establishRange(int position, argument
108 reviseRange(int position, @RangeType int type) argument
129 reviseAscending(int position, @RangeType int type) argument
144 reviseDescending(int position, @RangeType int type) argument
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DAdapterListUpdateCallback.java41 public void onInserted(int position, int count) { argument
42 mAdapter.notifyItemRangeInserted(position, count);
47 public void onRemoved(int position, int count) { argument
48 mAdapter.notifyItemRangeRemoved(position, count);
59 public void onChanged(int position, int count, Object payload) { argument
60 mAdapter.notifyItemRangeChanged(position, count, payload);
H A DSortedListAdapterCallback.java38 public void onInserted(int position, int count) { argument
39 mAdapter.notifyItemRangeInserted(position, count);
43 public void onRemoved(int position, int count) { argument
44 mAdapter.notifyItemRangeRemoved(position, count);
53 public void onChanged(int position, int count) { argument
54 mAdapter.notifyItemRangeChanged(position, count);
58 public void onChanged(int position, int count, Object payload) { argument
59 mAdapter.notifyItemRangeChanged(position, count, payload);
H A DBatchingListUpdateCallback.java75 public void onInserted(int position, int count) { argument
76 if (mLastEventType == TYPE_ADD && position >= mLastEventPosition
77 && position <= mLastEventPosition + mLastEventCount) {
79 mLastEventPosition = Math.min(position, mLastEventPosition);
83 mLastEventPosition = position;
89 public void onRemoved(int position, int count) { argument
90 if (mLastEventType == TYPE_REMOVE && mLastEventPosition >= position &&
91 mLastEventPosition <= position + count) {
93 mLastEventPosition = position;
97 mLastEventPosition = position;
109 onChanged(int position, int count, Object payload) argument
[all...]
H A DListUpdateCallback.java27 * Called when {@code count} number of items are inserted at the given position.
29 * @param position The position of the new item.
32 void onInserted(int position, int count); argument
35 * Called when {@code count} number of items are removed from the given position.
37 * @param position The position of the item which has been removed.
40 void onRemoved(int position, int count); argument
43 * Called when an item changes its position in the list.
45 * @param fromPosition The previous position o
56 onChanged(int position, int count, @Nullable Object payload) argument
[all...]
/frameworks/support/navigation/safe-args-generator/src/main/kotlin/androidx/navigation/safe/args/generator/
H A DNavLogger.kt22 fun error(message: String, position: XmlPosition) {
23 messages.add(ErrorMessage(position.name, position.line, position.column, message))
/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
H A DForce.java23 // Acceleration based on position.
24 float getAcceleration(float position, float velocity); argument
/frameworks/support/interpolator/src/main/java/androidx/interpolator/view/animation/
H A DLookupTableInterpolator.java46 int position = Math.min((int) (input * (mValues.length - 1)), mValues.length - 2);
49 float quantized = position * mStepSize;
54 return mValues[position] + weight * (mValues[position + 1] - mValues[position]);
/frameworks/compile/mclinker/include/mcld/MC/
H A DInputAction.h32 unsigned int position() const { return m_Position; } function in class:mcld::InputAction
35 return (position() < pOther.position());
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DListItemProvider.java27 * Returns {@link ListItem} at requested position.
29 public abstract ListItem get(int position); argument
47 public ListItem get(int position) { argument
48 return mItems.get(position);
/frameworks/base/core/java/android/database/
H A DCrossProcessCursor.java45 * row position until all of the data in the cursor is exhausted
54 * The current position of the cursor, as returned by {@link #getPosition},
58 * @param position The zero-based index of the first row to copy into the window.
61 void fillWindow(int position, CursorWindow window); argument
65 * to a new position, giving the subclass a chance to update any state it
67 * cursor will scroll to the beforeFirst position.
73 * @param oldPosition The position that we're moving from.
74 * @param newPosition The position that we're moving to.
/frameworks/base/core/java/com/android/internal/widget/
H A DPagerAdapter.java51 * independent of its position in the adapter. A call to the PagerAdapter method
74 * set change may involve pages being added, removed, or changing position. The
99 * Create the page for the given position. The adapter is responsible
105 * @param position The page position to be instantiated.
109 public Object instantiateItem(ViewGroup container, int position) { argument
110 return instantiateItem((View) container, position);
114 * Remove a page for the given position. The adapter is responsible
119 * @param position The page position t
123 destroyItem(ViewGroup container, int position, Object object) argument
136 setPrimaryItem(ViewGroup container, int position, Object object) argument
174 instantiateItem(View container, int position) argument
191 destroyItem(View container, int position, Object object) argument
206 setPrimaryItem(View container, int position, Object object) argument
306 getPageTitle(int position) argument
317 getPageWidth(int position) argument
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DOnChildViewHolderSelectedListener.java36 * might change the size of the child and the position of the child is not finalized. To get
37 * the final layout position of child, overide {@link #onChildViewHolderSelectedAndPositioned(
43 * @param position The position of the view in the adapter, or NO_POSITION
49 int position, int subposition) {
59 * @param position The position of the view in the adapter, or NO_POSITION
65 RecyclerView.ViewHolder child, int position, int subposition) {
48 onChildViewHolderSelected(RecyclerView parent, RecyclerView.ViewHolder child, int position, int subposition) argument
64 onChildViewHolderSelectedAndPositioned(RecyclerView parent, RecyclerView.ViewHolder child, int position, int subposition) argument
/frameworks/support/paging/common/src/main/java/androidx/paging/
H A DListDataSource.java36 final int position = computeInitialLoadPosition(params, totalCount);
37 final int loadSize = computeInitialLoadSize(params, position, totalCount);
41 List<T> sublist = mList.subList(position, position + loadSize);
42 callback.onResult(sublist, position, totalCount);
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
H A DBaseCursorPagerAdapter.java43 /** Mapping of row ID to cursor position */
64 * moved to the correct position.
67 public abstract Fragment getItem(Context context, Cursor cursor, int position); argument
72 public Fragment getItem(int position) { argument
73 if (mCursor != null && moveCursorTo(position)) {
74 return getItem(mContext, mCursor, position);
89 public Object instantiateItem(View container, int position) { argument
95 if (moveCursorTo(position)) {
102 final Object obj = super.instantiateItem(container, position);
110 public void destroyItem(View container, int position, Objec argument
144 getDataItem(int position) argument
155 getItemId(int position) argument
220 moveCursorTo(int position) argument
[all...]
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DCacheUtils.java41 private static void verifyCacheContainsPosition(RecyclerView view, int position) { argument
43 if (view.mRecycler.mCachedViews.get(i).mPosition == position) return;
45 fail("Cache does not contain position " + position);
52 for (Integer position : positions) {
53 verifyCacheContainsPosition(view, position);
58 * Asserts that the position passed is resident in the view's cache, similar to
65 for (Integer position : positions) {
66 assertTrue(view.mPrefetchRegistry.lastPrefetchIncludedPosition(position));
75 for (Integer position
83 peekAtCachedViewForPosition(RecyclerView view, int position) argument
[all...]
/frameworks/base/core/java/com/android/internal/policy/
H A DDividerSnapAlgorithm.java34 * Calculates the snap targets and the snap position given a position and a velocity. All positions
156 public SnapTarget calculateSnapTarget(int position, float velocity) { argument
157 return calculateSnapTarget(position, velocity, true /* hardDismiss */);
161 * @param position the top/left position of the divider
165 public SnapTarget calculateSnapTarget(int position, float velocity, boolean hardDismiss) { argument
166 if (position < mFirstSplitTarget.position && velocity < -mMinDismissVelocityPxPerSecond) {
169 if (position > mLastSplitTarge
182 calculateNonDismissingSnapTarget(int position) argument
193 calculateDismissingFraction(int position) argument
204 getClosestDismissTarget(int position) argument
249 snap(int position, boolean hardDismiss) argument
336 maybeAddTarget(int position, int smallerSize) argument
431 public final int position; field in class:DividerSnapAlgorithm.SnapTarget
447 SnapTarget(int position, int taskPosition, int flag) argument
451 SnapTarget(int position, int taskPosition, int flag, float distanceMultiplier) argument
[all...]

Completed in 407 milliseconds

1234567891011>>