Searched refs:position (Results 26 - 50 of 821) sorted by relevance

1234567891011>>

/frameworks/base/media/java/android/media/
H A DMediaDataSource.java35 * Called to request data from the given position.
44 * @param position the position in the data source to read from.
51 public abstract int readAt(long position, byte[] buffer, int offset, int size) argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DOnChildLaidOutListener.java30 * @param position The position of the view in the adapter.
33 void onChildLaidOut(ViewGroup parent, View view, int position, long id); argument
H A DOnChildSelectedListener.java33 * @param position The position of the view in the adapter, or NO_POSITION
38 void onChildSelected(ViewGroup parent, View view, int position, long id); argument
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/base/core/tests/coretests/src/android/util/
H A DListScenario.java87 * Return whether the item at position is selectable (i.e is a separator).
90 private boolean isItemAtPositionSelectable(int position) { argument
91 return !mUnselectableItems.contains(position);
135 * Set the position that starts selected.
137 * @param startingSelectionPosition The selected position within the adapter's data set.
158 * @param position The position in the list.
162 int position, double itemScreenSizeFactor) {
163 mOverrideItemScreenSizeFactors.put(position, itemScreenSizeFactor);
168 * Set a position a
161 setPositionScreenSizeFactorOverride( int position, double itemScreenSizeFactor) argument
172 setPositionUnselectable(int position) argument
287 positionClicked(int position) argument
296 positionLongClicked(int position) argument
490 getValueAtPosition(int position) argument
500 getHeightForPosition(int position) argument
540 createView(int position, ViewGroup parent, int desiredHeight) argument
548 convertView(int position, View convertView, ViewGroup parent) argument
588 getItemViewType(int position) argument
613 getItem(int position) argument
617 getItemId(int position) argument
627 isEnabled(int position) argument
631 getView(int position, View convertView, ViewGroup parent) argument
652 getItemViewType(int position) argument
[all...]
H A DListUtil.java43 * Set the selected position of the list view.
44 * @param pos The desired position.
70 * Arrow (up or down as appropriate) to the desired position in the list.
71 * @param desiredPos The desired position
72 * @throws IllegalStateException if the position can't be reached within 20 presses.
82 private void arrowDownToSelectedPosition(int position) { argument
84 while(mListView.getSelectedItemPosition() < position && --maxDowns > 0) {
87 if (position != mListView.getSelectedItemPosition()) {
93 private void arrowUpToSelectedPosition(int position) { argument
95 while(mListView.getSelectedItemPosition() > position
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
H A DGridThrasher.java81 public Object getItem(int position) { argument
82 return position;
85 public long getItemId(int position) { argument
86 return position;
89 public View getView(int position, View convertView, ViewGroup parent) { argument
97 view.setText(mTitles[position] + " " + mVersion[position]);
103 int position = mRandomizer.nextInt(getCount());
104 mVersion[position]++;
128 public void onItemSelected(AdapterView parent, View v, int position, lon argument
[all...]
H A DGridDelete.java95 public Object getItem(int position) { argument
96 return mData.get(position);
99 public long getItemId(int position) { argument
100 return mData.get(position);
103 public View getView(int position, View convertView, ViewGroup parent) { argument
105 return createView(mData.get(position), parent, desiredHeight);
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListThrasher.java79 public Object getItem(int position) { argument
80 return position;
83 public long getItemId(int position) { argument
84 return position;
87 public View getView(int position, View convertView, ViewGroup parent) { argument
95 view.setText(mTitles[position] + " " + mVersion[position]);
101 int position = mRandomizer.nextInt(getCount());
102 mVersion[position]++;
124 public void onItemSelected(AdapterView parent, View v, int position, lon argument
[all...]
H A DListItemFocusablesFarApart.java40 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
42 position, parent.getContext(), desiredHeight);
H A DListTakeFocusFromSide.java55 public Object getItem(int position) { argument
56 return position;
59 public long getItemId(int position) { argument
60 return position;
63 public View getView(int position, View convertView, ViewGroup parent) { argument
71 view.setText(mTitles[position]);
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/view/
H A DViewPagerActivity.java68 public Object instantiateItem(ViewGroup container, int position) { argument
70 view.setBackgroundColor(mEntries.get(position).second);
76 return new ViewHolder(view, position);
80 public void destroyItem(ViewGroup container, int position, Object object) { argument
87 return ((ViewHolder) object).position;
96 public CharSequence getPageTitle(int position) { argument
97 return mEntries.get(position).first;
102 final int position; field in class:ViewPagerActivity.ColorPagerAdapter.ViewHolder
104 public ViewHolder(View view, int position) { argument
106 this.position
[all...]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/view/
H A DViewPagerActivity.java68 public Object instantiateItem(ViewGroup container, int position) { argument
70 view.setBackgroundColor(mEntries.get(position).second);
76 return new ViewHolder(view, position);
80 public void destroyItem(ViewGroup container, int position, Object object) { argument
87 return ((ViewHolder) object).position;
96 public CharSequence getPageTitle(int position) { argument
97 return mEntries.get(position).first;
102 final int position; field in class:ViewPagerActivity.ColorPagerAdapter.ViewHolder
104 public ViewHolder(View view, int position) { argument
106 this.position
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuAdapter.java64 public MenuItemImpl getItem(int position) { argument
67 if (mExpandedIndex >= 0 && position >= mExpandedIndex) {
68 position++;
70 return items.get(position);
73 public long getItemId(int position) { argument
74 // Since a menu item's ID is optional, we'll use the position as an
76 return position;
79 public View getView(int position, View convertView, ViewGroup parent) { argument
88 itemView.initialize(getItem(position), 0);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DOverflowMenuAdapter.java57 public MenuItemImpl getItem(int position) { argument
59 if (mExpandedIndex >= 0 && position >= mExpandedIndex) {
60 position++;
62 return items.get(position);
66 public long getItemId(int position) { argument
67 // Since a menu item's ID is optional, we'll use the position as an
69 return position;
73 public View getView(int position, View convertView, ViewGroup parent) { argument
81 itemView.initialize(getItem(position), 0);
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlayerAdapter.java49 public void seekTo(long position) { argument
50 mStartPosition = position;
63 long position = mStartPosition + (System.currentTimeMillis() - mStartTime) * speed;
64 if (position > getDuration()) {
65 position = getDuration();
67 } else if (position < 0) {
68 position = 0;
71 return (int) position;
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlayerAdapter.java49 public void seekTo(long position) { argument
50 mStartPosition = position;
63 long position = mStartPosition + (System.currentTimeMillis() - mStartTime) * speed;
64 if (position > getDuration()) {
65 position = getDuration();
67 } else if (position < 0) {
68 position = 0;
71 return (int) position;
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DNavItemSelectedListener.java35 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument
37 mListener.onNavigationItemSelected(position, id);
/frameworks/base/services/net/java/android/net/netlink/
H A DNetlinkMessage.java46 final int startPosition = (byteBuffer != null) ? byteBuffer.position() : -1;
56 byteBuffer.position(byteBuffer.limit());
65 byteBuffer.position(byteBuffer.position() + payloadLength);
76 byteBuffer.position(byteBuffer.position() + payloadLength);
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestGalleryImages.java52 public Object getItem(int position) { argument
53 return position;
57 public long getItemId(int position) { argument
58 return position;
62 public View getView(int position, View convertView, ViewGroup parent) { argument
64 i.setImageResource(mImageIds[position]);
/frameworks/base/core/java/com/android/internal/widget/
H A DWatchHeaderListView.java151 public boolean isEnabled(int position) { argument
153 return position < topPanelCount ? false : super.isEnabled(position - topPanelCount);
157 public Object getItem(int position) { argument
159 return position < topPanelCount ? null : super.getItem(position - topPanelCount);
163 public long getItemId(int position) { argument
165 if (getWrappedAdapter() != null && position >= numHeaders) {
166 int adjPosition = position - numHeaders;
176 public View getView(int position, Vie argument
183 getItemViewType(int position) argument
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
H A DAsyncListUtilTest.java125 final int position = 30;
128 assertLoadedItemsOnUiThread("no new items should be loaded", 0, position, count);
130 mViewCallback.expectItemRangeChanged(position, count);
134 assertLoadedItemsOnUiThread("all new items should be loaded", count, position, count);
148 private void scrollAndExpectTiles(int position, String context, int... positions) argument
151 scrollOnUiThread(position);
171 final int position,
176 assertEquals(message, expectedCount, getLoadedItemCount(position, count));
181 private void scrollOnUiThread(final int position) throws Throwable { argument
185 mViewCallback.scrollTo(position);
169 assertLoadedItemsOnUiThread(final String message, final int expectedCount, final int position, final int count) argument
267 onItemLoaded(int position) argument
291 scrollTo(int position) argument
326 expectRange(int position, int count) argument
334 countDown(int position) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
H A DFakeAdapter.java85 public boolean isEnabled(int position) { argument
95 public Object getItem(int position) { argument
96 return mItems.get(position);
100 public long getItemId(int position) { argument
101 return position;
105 public int getItemViewType(int position) { argument
106 return mItems.get(position).getType();
110 public View getView(int position, View convertView, ViewGroup parent) { argument
112 AdapterItem item = mItems.get(position);
128 public View getDropDownView(int position, Vie argument
[all...]
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DObservableListAdapter.java101 public Object getItem(int position) { argument
102 return mList.get(position);
106 public long getItemId(int position) { argument
107 return position;
111 public View getView(int position, View convertView, ViewGroup parent) { argument
112 return getViewForResource(mResourceId, position, convertView, parent);
116 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument
117 return getViewForResource(mDropDownResourceId, position, convertView, parent);
120 public View getViewForResource(int resourceId, int position, View convertView, argument
131 T item = mList.get(position);
[all...]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
H A DItemAdapter.java47 public IItem getItem(int position) { argument
48 return mItemHierarchy.getItemAt(position);
52 public long getItemId(int position) { argument
53 return position;
57 public int getItemViewType(int position) { argument
58 IItem item = getItem(position);
76 public View getView(int position, View convertView, ViewGroup parent) { argument
77 IItem item = getItem(position);
114 public boolean isEnabled(int position) { argument
115 return getItem(position)
[all...]

Completed in 550 milliseconds

1234567891011>>