Searched defs:position (Results 251 - 275 of 316) sorted by relevance

<<111213

/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java503 private void animateClose(int position) { argument
504 prepareTracking(position);
505 performFling(position, mMaximumAcceleration, true);
508 private void animateOpen(int position) { argument
509 prepareTracking(position);
510 performFling(position, -mMaximumAcceleration, true);
513 private void performFling(int position, float velocity, boolean always) { argument
514 mAnimationPosition = position;
519 (position > mTopOffset + (mVertical ? mHandleHeight : mHandleWidth) &&
522 // us to retract. Animate back to the expanded position
562 prepareTracking(int position) argument
587 moveHandle(int position) argument
[all...]
H A DSpinner.java534 * @param delta Change in the selected position. +1 means selection is moving to the right,
561 // Make selected view and position it
599 * @param position Position in the spinner for the view to obtain
601 * @return A view for the given position
603 private View makeView(int position, boolean addChild) { argument
607 child = mRecycler.get(position);
617 child = mAdapter.getView(position, null, this);
626 * Helper for makeAndAddView to set the position of a view
629 * @param child The view to position
865 public Object getItem(int position) { argument
869 getItemId(int position) argument
873 getView(int position, View convertView, ViewGroup parent) argument
877 getDropDownView(int position, View convertView, ViewGroup parent) argument
914 isEnabled(int position) argument
923 getItemViewType(int position) argument
[all...]
H A DSwitch.java846 * Sets the thumb position as a decimal value between 0 (off) and 1 (on).
848 * @param position new position between [0,1]
850 private void setThumbPosition(float position) { argument
851 mThumbPosition = position;
871 // Immediately move the thumb to the new position.
954 // Adjust thumb position for track padding.
1087 * Translates thumb position to offset according to current RTL setting and
/frameworks/base/core/java/com/android/internal/app/
H A DAlertController.java1018 public View getView(int position, View convertView, ViewGroup parent) {
1019 View view = super.getView(position, convertView, parent);
1021 boolean isItemChecked = mCheckedItems[position];
1023 listView.setItemChecked(position, true);
1081 public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
1082 mOnClickListener.onClick(dialog.mDialogInterface, position);
1091 public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
1093 mCheckedItems[position] = listView.isItemChecked(position);
1096 dialog.mDialogInterface, position, listVie
1128 getItemId(int position) argument
[all...]
H A DResolverActivity.java502 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
503 position -= mListView.getHeaderViewsCount();
504 if (position < 0) {
508 ResolveInfo resolveInfo = mAdapter.resolveInfoForPosition(position, true);
527 startSelected(position, false, true);
812 // Not using getItem since it offsets to dodge this position for the list
1035 public ResolveInfo resolveInfoForPosition(int position, boolean filtered) { argument
1036 return (filtered ? getItem(position) : mList.get(position)).ri;
1039 public Intent intentForPosition(int position, boolea argument
1052 getItem(int position) argument
1059 getItemId(int position) argument
1063 getView(int position, View convertView, ViewGroup parent) argument
1107 onItemLongClick(AdapterView<?> parent, View view, int position, long id) argument
[all...]
H A DToolbarActionBar.java197 public void setSelectedNavigationItem(int position) { argument
200 mDecorToolbar.setDropdownSelectedPosition(position);
336 public void addTab(Tab tab, int position) { argument
342 public void addTab(Tab tab, int position, boolean setSelected) { argument
354 public void removeTabAt(int position) { argument
/frameworks/base/core/java/com/android/internal/widget/
H A DToolbarWidgetWrapper.java540 public void setDropdownSelectedPosition(int position) { argument
543 "Can't set dropdown selected position without an adapter");
545 mSpinner.setSelection(position);
/frameworks/base/core/jni/
H A Dandroid_media_AudioTrack.cpp811 jint position) {
818 return nativeToJavaStatus( lpTrack->setPosition(position) );
825 uint32_t position = 0; local
832 lpTrack->getPosition(&position);
833 return (jint)position;
810 android_media_AudioTrack_set_position(JNIEnv *env, jobject thiz, jint position) argument
H A Dandroid_opengl_GLES11.cpp92 positionID = _env->GetFieldID(bufferClass, "position", "I");
101 jint position; local
106 position = _env->GetIntField(buffer, positionID);
109 *remaining = (limit - position) << elementSizeShift;
136 jint position = _env->GetIntField(buffer, positionID); local
138 buf += position << elementSizeShift;
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDirectoryFragment.java437 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
438 final Cursor cursor = mAdapter.getItem(position);
516 ActionMode mode, int position, long id, boolean checked) {
521 final Cursor cursor = mAdapter.getItem(position);
531 mCurrentView.setItemChecked(position, false);
737 public View getView(int position, View convertView, ViewGroup parent) { argument
738 if (position < mCursorCount) {
739 return getDocumentView(position, convertView, parent);
741 position -= mCursorCount;
742 convertView = mFooters.get(position)
750 getDocumentView(int position, View convertView, ViewGroup parent) argument
962 getItem(int position) argument
972 getItemId(int position) argument
982 getItemViewType(int position) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
H A DRecentsPanelView.java139 public Object getItem(int position) { argument
140 return position; // we only need the index
143 public long getItemId(int position) { argument
144 return position; // we just need something unique for this position
166 public View getView(int position, View convertView, ViewGroup parent) { argument
173 final int index = mRecentTaskDescriptions.size() - position - 1;
704 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DGlobalActions.java316 public boolean onItemLongClick(AdapterView<?> parent, View view, int position,
318 final Action action = mAdapter.getItem(position);
581 public boolean isEnabled(int position) { argument
582 return getItem(position).isEnabled();
590 public Action getItem(int position) { argument
601 if (filteredPos == position) {
607 throw new IllegalArgumentException("position " + position
615 public long getItemId(int position) { argument
616 return position;
619 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java67 * - mFirstPosition is the adapter position of the View returned by getChildAt(0).
68 * - Any child index can be translated to an adapter position by adding mFirstPosition.
69 * - Any adapter position can be translated to a child index by subtracting mFirstPosition.
269 * Return the first adapter position with a view currently attached as
272 * @return the adapter position represented by the view at getChildAt(0).
465 * is always the view corresponding to position mFirstPosition + i.
761 final int position = mFirstPosition + i;
765 View newView = obtainView(position, child);
812 final LayoutRecord rec = mLayoutRecords.get(position);
816 rebuildLayoutRecordsBefore = position;
857 invalidateLayoutRecordsBeforePosition(int position) argument
865 invalidateLayoutRecordsAfterPosition(int position) argument
1127 getNextRecordUp(int position, int span) argument
1183 getNextRecordDown(int position, int span) argument
1228 obtainView(int position, View optScrap) argument
1398 int position; field in class:StaggeredGridView.LayoutParams
1521 getTransientStateView(int position) argument
1580 int position; field in class:StaggeredGridView.SavedState
[all...]
/frameworks/opt/chips/src/com/android/ex/chips/
H A DBaseRecipientAdapter.java879 public RecipientEntry getItem(int position) { argument
880 return getEntries().get(position);
884 public long getItemId(int position) { argument
885 return position;
894 public int getItemViewType(int position) { argument
895 return getEntries().get(position).getEntryType();
899 public boolean isEnabled(int position) { argument
900 return getEntries().get(position).isSelectable();
904 public View getView(int position, View convertView, ViewGroup parent) { argument
905 final RecipientEntry entry = getEntries().get(position);
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DBrowseFragment.java834 int position = mRowsFragment.getVerticalGridView().getSelectedPosition();
835 if (DEBUG) Log.v(TAG, "row selected position " + position);
836 onRowSelected(position);
856 int position = mHeadersFragment.getVerticalGridView().getSelectedPosition();
857 if (DEBUG) Log.v(TAG, "header selected position " + position);
858 onRowSelected(position);
862 private void onRowSelected(int position) { argument
863 if (position !
890 setSelection(int position, boolean smooth) argument
901 setSelectedPosition(int position) argument
908 setSelectedPosition(int position, boolean smooth) argument
[all...]
H A DBrowseSupportFragment.java836 int position = mRowsSupportFragment.getVerticalGridView().getSelectedPosition();
837 if (DEBUG) Log.v(TAG, "row selected position " + position);
838 onRowSelected(position);
858 int position = mHeadersSupportFragment.getVerticalGridView().getSelectedPosition();
859 if (DEBUG) Log.v(TAG, "header selected position " + position);
860 onRowSelected(position);
864 private void onRowSelected(int position) { argument
865 if (position !
892 setSelection(int position, boolean smooth) argument
903 setSelectedPosition(int position) argument
910 setSelectedPosition(int position, boolean smooth) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DBaseGridView.java35 * Always keep focused item at a aligned position. Developer can use
37 * In this mode, the last focused position will be remembered and restored when focus
449 public void setSelectedPosition(int position) { argument
450 mLayoutManager.setSelection(this, position);
455 * position.
457 public void setSelectedPositionSmooth(int position) { argument
458 mLayoutManager.setSelectionSmooth(this, position);
462 * Get the selected item position.
512 * Get the x/y offsets to final position from current position i
588 hasPreviousViewInSameRow(int position) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DActionBar.java344 * @param position Position of the item to select.
351 public abstract void setSelectedNavigationItem(int position); argument
354 * Get the position of the selected navigation item in list or tabbed navigation modes.
651 * <code>position</code>. If this is the first tab to be added it will become
655 * @param position The new position of the tab
662 public abstract void addTab(Tab tab, int position); argument
666 * <code>position</code>.
669 * @param position The new position o
677 addTab(Tab tab, int position, boolean setSelected) argument
703 removeTabAt(int position) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/app/
H A DToolbarActionBar.java213 public void setSelectedNavigationItem(int position) { argument
216 mDecorToolbar.setDropdownSelectedPosition(position);
352 public void addTab(Tab tab, int position) { argument
358 public void addTab(Tab tab, int position, boolean setSelected) { argument
370 public void removeTabAt(int position) { argument
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DAdapterViewCompat.java67 * The position of the first child displayed
99 * Indicates whether to sync based on the selection or position. Possible
151 * The position within the adapter's data set of the item to select
163 * The position within the adapter's data set of the currently selected item.
190 * Represents an invalid position. All valid positions are in the range 0 to 1 less than the
201 * The last selected position we used when notifying
206 * The id of the last selected position we used when notifying
251 * Implementers can call getItemAtPosition(position) if they need
257 * @param position The position o
260 onItemClick(AdapterViewCompat<?> parent, View view, int position, long id) argument
272 onItemClick(AdapterView<?> parent, View view, int position, long id) argument
304 performItemClick(View view, int position, long id) argument
336 onItemLongClick(AdapterViewCompat<?> parent, View view, int position, long id) argument
380 onItemSelected(AdapterViewCompat<?> parent, View view, int position, long id) argument
415 AdapterContextMenuInfo(View targetView, int position, long id) argument
431 public int position; field in class:AdapterViewCompat.AdapterContextMenuInfo
655 setSelection(int position) argument
766 getItemAtPosition(int position) argument
771 getItemIdAtPosition(int position) argument
1087 lookForSelectablePosition(int position, boolean lookDown) argument
1095 setSelectedPositionInt(int position) argument
1105 setNextSelectedPositionInt(int position) argument
[all...]
H A DSpinnerCompat.java456 * @param delta Change in the selected position. +1 means selection is moving to the right, so
483 // Make selected view and position it
519 * @param position Position in the spinner for the view to obtain
521 * @return A view for the given position
523 private View makeView(int position, boolean addChild) { argument
528 child = mRecycler.get(position);
538 child = mAdapter.getView(position, null, this);
547 * Helper for makeAndAddView to set the position of a view and fill out its layout paramters.
549 * @param child The view to position
773 public Object getItem(int position) { argument
777 getItemId(int position) argument
781 getView(int position, View convertView, ViewGroup parent) argument
785 getDropDownView(int position, View convertView, ViewGroup parent) argument
823 isEnabled(int position) argument
832 getItemViewType(int position) argument
[all...]
H A DToolbarWidgetWrapper.java567 public void setDropdownSelectedPosition(int position) { argument
570 "Can't set dropdown selected position without an adapter");
572 mSpinner.setSelection(position);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSwitchCompat.java735 * Sets the thumb position as a decimal value between 0 (off) and 1 (on).
737 * @param position new position between [0,1]
739 private void setThumbPosition(float position) { argument
740 mThumbPosition = position;
760 // Immediately move the thumb to the new position.
835 // Adjust thumb position for track padding.
943 * Translates thumb position to offset according to current RTL setting and
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DAdapterHelperTest.java80 public RecyclerView.ViewHolder findViewHolder(int position) {
82 if (vh.mPosition == position && !vh.isRemoved()) {
202 private void addViewHolder(int position) { argument
205 viewHolder.mPosition = position;
206 viewHolder.mItem = mTestAdapter.mItems.get(position);
225 assertEquals("find position for view 23",
227 assertEquals("find position for view 24",
229 assertEquals("find position for view 25",
231 assertEquals("find position for view 26",
233 assertEquals("find position fo
[all...]
H A DBaseRecyclerViewInstrumentationTest.java230 + " adapter position unless it is removed",
280 void scrollToPosition(final int position) throws Throwable { argument
284 mRecyclerView.getLayoutManager().scrollToPosition(position);
289 void smoothScrollToPosition(final int position) argument
291 Log.d(TAG, "SMOOTH scrolling to " + position);
295 mRecyclerView.smoothScrollToPosition(position);
371 assertSame("item position in LP should match adapter value :" + vh,
393 assertNotNull("view should not be null for valid position. "
394 + "got null view at position " + i, view);
403 assertEquals("getViewForPosition should return correct position",
513 onBindViewHolder(TestViewHolder holder, int position) argument
540 getItemId(int position) argument
734 TargetTuple(int position, int layoutDirection) argument
[all...]

Completed in 1686 milliseconds

<<111213