Searched refs:position (Results 126 - 150 of 481) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/widget/
H A DRemoteViewsService.java90 * @param position The position of the item within the Factory's data set of the item whose
92 * @return A RemoteViews object corresponding to the data at the specified position.
94 public RemoteViews getViewAt(int position); argument
115 * @param position The position of the item within the data set whose row id we want.
116 * @return The id of the item at the specified position.
118 public long getItemId(int position); argument
161 public synchronized RemoteViews getViewAt(int position) { argument
164 rv = mFactory.getViewAt(position);
194 getItemId(int position) argument
[all...]
H A DCursorAdapter.java244 public Object getItem(int position) { argument
246 mCursor.moveToPosition(position);
256 public long getItemId(int position) { argument
258 if (mCursor.moveToPosition(position)) {
276 public View getView(int position, View convertView, ViewGroup parent) { argument
280 if (!mCursor.moveToPosition(position)) {
281 throw new IllegalStateException("couldn't move cursor to position " + position);
294 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument
297 mCursor.moveToPosition(position);
[all...]
H A DSlidingDrawer.java502 private void animateClose(int position) { argument
503 prepareTracking(position);
504 performFling(position, mMaximumAcceleration, true);
507 private void animateOpen(int position) { argument
508 prepareTracking(position);
509 performFling(position, -mMaximumAcceleration, true);
512 private void performFling(int position, float velocity, boolean always) { argument
513 mAnimationPosition = position;
518 (position > mTopOffset + (mVertical ? mHandleHeight : mHandleWidth) &&
521 // us to retract. Animate back to the expanded position
561 prepareTracking(int position) argument
586 moveHandle(int position) argument
[all...]
H A DAbsListView.java267 * and the value holds the last known position in the adapter for that id.
312 * The current position of the selector in the list.
375 * The position of the view that received the down motion event
459 * Optional callback to notify client when scroll position has changed
474 * Indicates whether to use pixels-based or position-based scrollbar
495 * The position to resurrect the selected position to.
513 * find a checked item with a stable ID that moved position across
674 * the top of the first position in the adapter, based on the last time
681 * the bottom of the last position i
937 isItemChecked(int position) argument
1023 setItemChecked(int position, boolean value) argument
1093 performItemClick(View view, int position, long id) argument
1387 setVerticalScrollbarPosition(int position) argument
1679 int position; field in class:AbsListView.SavedState
2316 obtainView(int position, boolean[] isScrap) argument
2383 setItemViewLayoutParams(View child, int position) argument
2487 onInitializeAccessibilityNodeInfoForItem( View view, int position, AccessibilityNodeInfo info) argument
2528 positionSelectorLikeTouch(int position, View sel, float x, float y) argument
2535 positionSelectorLikeFocus(int position, View sel) argument
2546 positionSelector(int position, View sel) argument
2550 positionSelector(int position, View sel, boolean manageHotspot, float x, float y) argument
3010 createContextMenuInfo(View view, int position, long id) argument
4704 smoothScrollToPosition(int position) argument
4723 smoothScrollToPositionFromTop(int position, int offset, int duration) argument
4741 smoothScrollToPositionFromTop(int position, int offset) argument
4758 smoothScrollToPosition(int position, int boundPosition) argument
4803 smoothScrollByOffset(int position) argument
5187 setSelectionInt(int position) argument
6234 onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) argument
6285 onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) argument
6536 getActiveView(int position) argument
6547 getTransientStateView(int position) argument
6592 getScrapView(int position) argument
6614 addScrapView(View scrap, int position) argument
6858 retrieveFromScrap(ArrayList<View> scrapViews, int position) argument
6910 getHeightForPosition(int position) argument
6937 setSelectionFromTop(int position, int y) argument
6990 start(int position) argument
6991 start(int position, int boundPosition) argument
6992 startWithOffset(int position, int offset) argument
6993 startWithOffset(int position, int offset, int duration) argument
7023 start(final int position) argument
7071 start(final int position, final int boundPosition) argument
7150 startWithOffset(int position, int offset) argument
7155 startWithOffset(final int position, int offset, final int duration) argument
[all...]
H A DActivityChooserView.java581 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
583 final int itemViewType = adapter.getItemViewType(position);
591 // The item at position zero is the default already.
592 if (position > 0) {
593 mAdapter.getDataModel().setDefaultActivity(position);
598 position = mAdapter.getShowDefaultActivity() ? position : position + 1;
599 Intent launchIntent = mAdapter.getDataModel().chooseActivity(position);
602 ResolveInfo resolveInfo = mAdapter.getDataModel().getActivity(position);
710 getItemViewType(int position) argument
736 getItem(int position) argument
751 getItemId(int position) argument
755 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DListViewAddRemove.java93 int position = listview.getPositionForView(view);
102 int position = listview.getPositionForView(view);
114 public void onItemClick(AdapterView<?> parent, final View view, int position, long id) {
116 String item = (String) parent.getItemAtPosition(position);
156 public long getItemId(int position) { argument
157 String item = getItem(position);
H A DListViewAddRemoveNoTransition.java55 public void onItemClick(AdapterView<?> parent, final View view, int position, long id) {
56 String item = (String) parent.getItemAtPosition(position);
92 public long getItemId(int position) { argument
93 String item = getItem(position);
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
H A DCube.java76 mVertexBuffer.position(0);
82 mColorBuffer.position(0);
86 mIndexBuffer.position(0);
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
H A DA3DSelector.java87 protected void onListItemClick(ListView l, View v, int position, long id) { argument
88 if (position == 0) {
98 File selectedFile = mCurrentSubList[position - 1];
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
H A DFileSelector.java87 protected void onListItemClick(ListView l, View v, int position, long id) { argument
88 if (position == 0) {
98 File selectedFile = mCurrentSubList[position - 1];
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/
H A DSamplesList.java59 protected void onListItemClick(ListView l, View v, int position, long id) { argument
60 Class<?> clazz = (Class<?>) SAMPLES.get(position).get(KEY_CLASS);
61 int resourceId = ((Integer) SAMPLES.get(position).get(KEY_RESOURCE)).intValue();
/frameworks/av/media/libmedia/
H A DAudioPolicy.cpp102 size_t position = parcel->dataPosition(); local
104 parcel->setDataPosition(position);
109 size_t position = parcel->dataPosition(); local
112 parcel->setDataPosition(position);
/frameworks/base/core/java/android/app/
H A DLauncherActivity.java116 public Intent intentForPosition(int position) { argument
122 ListItem item = mActivitiesList.get(position);
130 public ListItem itemForPosition(int position) { argument
135 return mActivitiesList.get(position);
142 public Object getItem(int position) { argument
143 return position;
146 public long getItemId(int position) { argument
147 return position;
150 public View getView(int position, View convertView, ViewGroup parent) { argument
158 bindView(view, mActivitiesList.get(position));
406 onListItemClick(ListView l, View v, int position, long id) argument
416 intentForPosition(int position) argument
426 itemForPosition(int position) argument
[all...]
/frameworks/base/core/java/android/transition/
H A DSlide.java153 int[] position = new int[2];
154 view.getLocationOnScreen(position);
155 transitionValues.values.put(PROPNAME_SCREEN_POSITION, position);
227 int[] position = (int[]) endValues.values.get(PROPNAME_SCREEN_POSITION);
233 .createAnimation(view, endValues, position[0], position[1],
243 int[] position = (int[]) startValues.values.get(PROPNAME_SCREEN_POSITION);
249 .createAnimation(view, startValues, position[0], position[1],
/frameworks/support/v4/java/android/support/v4/widget/
H A DCursorAdapter.java211 public Object getItem(int position) { argument
213 mCursor.moveToPosition(position);
223 public long getItemId(int position) { argument
225 if (mCursor.moveToPosition(position)) {
243 public View getView(int position, View convertView, ViewGroup parent) { argument
247 if (!mCursor.moveToPosition(position)) {
248 throw new IllegalStateException("couldn't move cursor to position " + position);
261 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument
263 mCursor.moveToPosition(position);
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DAsyncListUtilLayoutTest.java134 void scrollToPositionWithOffset(final int position, final int offset) throws Throwable { argument
138 mLayoutManager.scrollToPositionWithOffset(position, offset);
224 public void onItemLoaded(int position) { argument
225 mRecyclerView.getAdapter().notifyItemChanged(position);
252 public void onBindViewHolder(SimpleViewHolder holder, int position) { argument
253 final String item = mAsyncListUtil == null ? null : mAsyncListUtil.getItem(position);
257 mLoadedPositions.set(position);
258 if (mExpectedPositions.get(position)) {
259 mExpectedPositions.clear(position);
/frameworks/support/v4/java/android/support/v4/view/
H A DViewPager.java117 int position; field in class:ViewPager.ItemInfo
126 return lhs.position - rhs.position;
202 // If the pager is at least this close to its final position, complete the scroll
244 * Indicates that the pager is in the process of settling to a final position.
266 * @param position Position index of the first page currently being displayed.
267 * Page position+1 will be visible if positionOffset is nonzero.
268 * @param positionOffset Value from [0, 1) indicating the offset from the page at position.
269 * @param positionOffsetPixels Value in pixels indicating the offset from position.
271 public void onPageScrolled(int position, floa argument
279 onPageSelected(int position) argument
301 onPageScrolled(int position, float positionOffset, int positionOffsetPixels) argument
306 onPageSelected(int position) argument
334 transformPage(View page, float position) argument
867 addNewItem(int position, int index) argument
1252 int position; field in class:ViewPager.SavedState
1384 infoForPosition(int position) argument
1709 onPageScrolled(int position, float offset, int offsetPixels) argument
1769 dispatchOnPageScrolled(int position, float offset, int offsetPixels) argument
1786 dispatchOnPageSelected(int position) argument
2947 int position; field in class:ViewPager.LayoutParams
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DViewPager.java116 /** Logical position of the item within the pager adapter. */
117 int position; field in class:ViewPager.ItemInfo
126 return lhs.position - rhs.position;
208 // If the pager is at least this close to its final position, complete the scroll
244 * Indicates that the pager is in the process of settling to a final position.
266 * @param position Position index of the first page currently being displayed.
267 * Page position+1 will be visible if positionOffset is nonzero.
268 * @param positionOffset Value from [0, 1) indicating the offset from the page at position.
269 * @param positionOffsetPixels Value in pixels indicating the offset from position
271 onPageScrolled(int position, float positionOffset, int positionOffsetPixels) argument
279 onPageSelected(int position) argument
301 onPageScrolled(int position, float positionOffset, int positionOffsetPixels) argument
306 onPageSelected(int position) argument
334 transformPage(View page, float position) argument
561 scrollToItem(int position, boolean smoothScroll, int velocity, boolean dispatchSelected) argument
588 getLeftEdgeForItem(int position) argument
830 addNewItem(int position, int index) argument
1218 int position; field in class:ViewPager.SavedState
1353 infoForPosition(int position) argument
1700 onPageScrolled(int position, float offset, int offsetPixels) argument
2807 int position; field in class:ViewPager.LayoutParams
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DScrollingTabContainerView.java181 public void setTabSelected(int position) { argument
182 mSelectedTabIndex = position;
186 final boolean isSelected = i == position;
189 animateToTab(position);
192 if (mTabSpinner != null && position >= 0) {
193 mTabSpinner.setSelection(position);
259 public void animateToTab(final int position) { argument
260 final View tabView = mTabLayout.getChildAt(position);
323 public void addTab(ActionBar.Tab tab, int position, boolean setSelected) { argument
325 mTabLayout.addView(tabView, position, ne
338 updateTab(int position) argument
348 removeTabAt(int position) argument
369 onItemSelected(AdapterView<?> adapterView, View view, int position, long id) argument
554 getItem(int position) argument
559 getItemId(int position) argument
564 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
H A DANQPFactory.java51 int lenPos = target.position();
63 target.putShort(lenPos, (short) (target.position() - lenPos - Constants.BYTES_IN_SHORT));
68 int vsLenPos = target.position();
85 (short) (target.position() - vsLenPos - Constants.BYTES_IN_SHORT));
95 int lenPos = target.position();
109 target.putShort(lenPos, (short) (target.position() - lenPos - Constants.BYTES_IN_SHORT));
118 int lenPos = target.position();
126 target.putShort(lenPos, (short) (target.position() - lenPos - Constants.BYTES_IN_SHORT));
162 payload.position(payload.position()
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DBrowseFragment.java173 void post(int position, int type, boolean smooth) { argument
180 mPosition = position;
733 int position = mRowsFragment.getVerticalGridView().getSelectedPosition();
734 if (DEBUG) Log.v(TAG, "row selected position " + position);
735 onRowSelected(position);
747 int position = mHeadersFragment.getVerticalGridView().getSelectedPosition();
748 if (DEBUG) Log.v(TAG, "header selected position " + position);
749 onRowSelected(position);
753 onRowSelected(int position) argument
766 setSelection(int position, boolean smooth) argument
777 setSelectedPosition(int position) argument
784 setSelectedPosition(int position, boolean smooth) argument
[all...]
H A DBrowseSupportFragment.java175 void post(int position, int type, boolean smooth) { argument
182 mPosition = position;
735 int position = mRowsSupportFragment.getVerticalGridView().getSelectedPosition();
736 if (DEBUG) Log.v(TAG, "row selected position " + position);
737 onRowSelected(position);
749 int position = mHeadersSupportFragment.getVerticalGridView().getSelectedPosition();
750 if (DEBUG) Log.v(TAG, "header selected position " + position);
751 onRowSelected(position);
755 onRowSelected(int position) argument
768 setSelection(int position, boolean smooth) argument
779 setSelectedPosition(int position) argument
786 setSelectedPosition(int position, boolean smooth) argument
[all...]
/frameworks/base/core/java/android/database/
H A DAbstractCursor.java174 * to a new position, giving the subclass a chance to update any state it
176 * cursor will scroll to the beforeFirst position.
178 * @param oldPosition the position that we're moving from
179 * @param newPosition the position that we're moving to
217 public final boolean moveToPosition(int position) { argument
218 // Make sure position isn't past the end of the cursor
220 if (position >= count) {
225 // Make sure position isn't before the beginning of the cursor
226 if (position < 0) {
232 if (position
247 fillWindow(int position, CursorWindow window) argument
[all...]
/frameworks/base/core/java/android/net/netlink/
H A DRtNetlinkNeighborMessage.java69 byteBuffer.position(byteBuffer.position() + nlAttr.getAlignedLength());
83 final int baseOffset = byteBuffer.position();
89 byteBuffer.position(baseOffset);
95 byteBuffer.position(baseOffset);
101 byteBuffer.position(baseOffset);
111 byteBuffer.position(byteBuffer.limit());
113 byteBuffer.position(baseOffset + kAdditionalSpace);
/frameworks/base/core/java/com/android/internal/view/menu/
H A DExpandedMenuView.java70 public void onItemClick(AdapterView parent, View v, int position, long id) { argument
71 invokeItem((MenuItemImpl) getAdapter().getItem(position));

Completed in 581 milliseconds

1234567891011>>