/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
H A D | ListUpdateCallback.java | 25 * Called when {@code count} number of items are inserted at the given position. 27 * @param position The position of the new item. 30 void onInserted(int position, int count); argument 33 * Called when {@code count} number of items are removed from the given position. 35 * @param position The position of the item which has been removed. 38 void onRemoved(int position, int count); argument 41 * Called when an item changes its position in the list. 43 * @param fromPosition The previous position o 54 onChanged(int position, int count, Object payload) argument [all...] |
H A D | BatchingListUpdateCallback.java | 73 public void onInserted(int position, int count) { argument 74 if (mLastEventType == TYPE_ADD && position >= mLastEventPosition 75 && position <= mLastEventPosition + mLastEventCount) { 77 mLastEventPosition = Math.min(position, mLastEventPosition); 81 mLastEventPosition = position; 87 public void onRemoved(int position, int count) { argument 88 if (mLastEventType == TYPE_REMOVE && mLastEventPosition >= position && 89 mLastEventPosition <= position + count) { 91 mLastEventPosition = position; 95 mLastEventPosition = position; 107 onChanged(int position, int count, Object payload) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListHeterogeneous.java | 40 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 D | ListItemFocusableAboveUnfocusable.java | 40 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 D | ListInterleaveFocusables.java | 43 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;
|
H A D | ListOfTouchables.java | 41 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument 43 b.setText("Position " + position); 44 b.setId(position);
|
/frameworks/base/core/java/android/widget/ |
H A D | ListAdapter.java | 41 * 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 D | SectionIndexer.java | 29 * 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 D | Adapter.java | 58 * 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 D | RemoteViewsListAdapter.java | 75 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();
|
H A D | BaseAdapter.java | 66 public boolean isEnabled(int position) { argument 70 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument 71 return getView(position, convertView, parent); 74 public int getItemViewType(int position) { argument
|
H A D | SpinnerAdapter.java | 32 * the data at the specified position in the data set. 34 * @param position index of the item whose view we want. 41 * specified position. 43 public View getDropDownView(int position, View convertView, ViewGroup parent); argument
|
/frameworks/support/dynamic-animation/src/android/support/animation/ |
H A D | Force.java | 23 // Acceleration based on position. 24 float getAcceleration(float position, float velocity); argument
|
/frameworks/support/core-ui/java/android/support/v4/view/animation/ |
H A D | LookupTableInterpolator.java | 46 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/support/v7/recyclerview/src/android/support/v7/widget/util/ |
H A D | SortedListAdapterCallback.java | 41 public void onInserted(int position, int count) { argument 42 mAdapter.notifyItemRangeInserted(position, count); 46 public void onRemoved(int position, int count) { argument 47 mAdapter.notifyItemRangeRemoved(position, count); 56 public void onChanged(int position, int count) { argument 57 mAdapter.notifyItemRangeChanged(position, count);
|
/frameworks/compile/mclinker/include/mcld/MC/ |
H A D | InputAction.h | 32 unsigned int position() const { return m_Position; } function in class:mcld::InputAction 35 return (position() < pOther.position());
|
/frameworks/base/core/java/android/database/ |
H A D | CrossProcessCursor.java | 45 * 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 D | PagerAdapter.java | 51 * 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...] |
H A D | IRemoteViewsFactory.aidl | 28 RemoteViews getViewAt(int position); 31 long getItemId(int position);
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
H A D | PagerAdapter.java | 51 * 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 100 * Create the page for the given position. The adapter is responsible 106 * @param position The page position to be instantiated. 110 public Object instantiateItem(ViewGroup container, int position) { argument 111 return instantiateItem((View) container, position); 115 * Remove a page for the given position. The adapter is responsible 120 * @param position The page position t 124 destroyItem(ViewGroup container, int position, Object object) argument 137 setPrimaryItem(ViewGroup container, int position, Object object) argument 177 instantiateItem(View container, int position) argument 195 destroyItem(View container, int position, Object object) argument 211 setPrimaryItem(View container, int position, Object object) argument 323 getPageTitle(int position) argument 334 getPageWidth(int position) argument [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
H A D | BaseCursorPagerAdapter.java | 43 /** 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/tests/src/android/support/v7/widget/ |
H A D | CacheUtils.java | 41 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 D | DividerSnapAlgorithm.java | 31 * Calculates the snap targets and the snap position given a position and a velocity. All positions 146 public SnapTarget calculateSnapTarget(int position, float velocity) { argument 147 return calculateSnapTarget(position, velocity, true /* hardDismiss */); 151 * @param position the top/left position of the divider 155 public SnapTarget calculateSnapTarget(int position, float velocity, boolean hardDismiss) { argument 156 if (position < mFirstSplitTarget.position && velocity < -mMinDismissVelocityPxPerSecond) { 159 if (position > mLastSplitTarge 172 calculateNonDismissingSnapTarget(int position) argument 183 calculateDismissingFraction(int position) argument 194 getClosestDismissTarget(int position) argument 239 snap(int position, boolean hardDismiss) argument 322 maybeAddTarget(int position, int smallerSize) argument 405 public final int position; field in class:DividerSnapAlgorithm.SnapTarget 421 SnapTarget(int position, int taskPosition, int flag) argument 425 SnapTarget(int position, int taskPosition, int flag, float distanceMultiplier) argument [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
H A D | AbstractItemHierarchy.java | 85 public void notifyItemRangeChanged(int position, int itemCount) { argument 86 if (position < 0) { 87 Log.w(TAG, "notifyItemRangeChanged: Invalid position=" + position); 96 observer.onItemRangeChanged(this, position, itemCount); 103 public void notifyItemRangeInserted(int position, int itemCount) { argument 104 if (position < 0) { 105 Log.w(TAG, "notifyItemRangeInserted: Invalid position=" + position); 114 observer.onItemRangeInserted(this, position, itemCoun 143 notifyItemRangeRemoved(int position, int itemCount) argument [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
H A D | AddPrinterActivity.java | 262 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 263 ((ActionAdapter) getListAdapter()).performAction(position); 267 * Marks an adapter that can can perform an action for a position in it's list. 271 * Perform the action for a position in the list. 273 * @param position The position of the item 275 abstract void performAction(@IntRange(from = 0) int position); argument 327 * Find the sub adapter and the position in the sub-adapter the position in the combined 330 * @param position Th 334 getSubAdapter(int position) argument 350 getItemViewType(int position) argument 381 getView(int position, View convertView, ViewGroup parent) argument 388 getItem(int position) argument 395 getItemId(int position) argument 400 isEnabled(int position) argument 407 performAction(@ntRangefrom = 0) int position) argument 453 getItemViewType(int position) argument 471 getItem(int position) argument 480 isEnabled(int position) argument 485 getItemId(int position) argument 495 performAction(@ntRangefrom = 0) int position) argument 535 getView(int position, View convertView, ViewGroup parent) argument 577 performAction(@ntRangefrom = 0) int position) argument 583 getView(int position, View convertView, ViewGroup parent) argument 659 getItemViewType(int position) argument 670 getItem(int position) argument 679 getItemId(int position) argument 684 getView(int position, View convertView, ViewGroup parent) argument 722 isEnabled(int position) argument 727 performAction(@ntRangefrom = 0) int position) argument 861 getItemViewType(int position) argument 866 getItem(int position) argument 871 getItemId(int position) argument 876 getView(int position, View convertView, ViewGroup parent) argument 885 isEnabled(int position) argument 890 performAction(@ntRangefrom = 0) int position) argument [all...] |