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

1234567891011>>

/frameworks/base/core/java/android/widget/
H A DAbsSpinner.java96 * It also provides methods to transform spinner items based on their position
120 int position = mItemCount > 0 ? 0 : INVALID_POSITION;
122 setSelectedPositionInt(position);
123 setNextSelectedPositionInt(position);
257 final int position = mFirstPosition;
262 int index = position + i;
270 public void setSelection(int position, boolean animate) { argument
271 // Animate only if requested position is already on screen somewhere
272 boolean shouldAnimate = animate && mFirstPosition <= position &&
273 position <
278 setSelection(int position) argument
292 setSelectionInt(int position, boolean animate) argument
366 int position; field in class:AbsSpinner.SavedState
443 put(int position, View v) argument
447 get(int position) argument
[all...]
H A DHeaderViewListAdapter.java146 public boolean isEnabled(int position) { argument
149 if (position < numHeaders) {
150 return mHeaderViewInfos.get(position).isSelectable;
154 final int adjPosition = position - numHeaders;
167 public Object getItem(int position) { argument
170 if (position < numHeaders) {
171 return mHeaderViewInfos.get(position).data;
175 final int adjPosition = position - numHeaders;
188 public long getItemId(int position) { argument
190 if (mAdapter != null && position >
207 getView(int position, View convertView, ViewGroup parent) argument
228 getItemViewType(int position) argument
[all...]
H A DRemoteViewsAdapter.java284 public void add(int position, RemoteViewsFrameLayout layout) { argument
285 final Integer pos = position;
301 * Notifies each of the RemoteViewsFrameLayouts associated with a particular position that
304 public void notifyOnRemoteViewsLoaded(int position, RemoteViews view, int typeId) { argument
307 final Integer pos = position;
309 // Notify all the references for that position of the newly loaded RemoteViews
393 private RemoteViewsFrameLayout createLoadingView(int position, View convertView, argument
395 // Create and return a new FrameLayout, and setup the references for this position
486 // The cache/mapping of position to RemoteViewsMetaData. This set is guaranteed to be
489 // we still need to be able to access the mapping of position t
538 insert(int position, RemoteViews v, long itemId, boolean isRequested) argument
571 getRemoteViewsAt(int position) argument
577 getMetaDataAt(int position) argument
630 queueRequestedPositionToLoad(int position) argument
637 queuePositionsToBePreloadedFromRequestedPosition(int position) argument
695 containsRemoteViewAt(int position) argument
698 containsMetaDataAt(int position) argument
835 updateRemoteViews(final int position, boolean isRequested, boolean notifyWhenLoaded) argument
894 getItem(int position) argument
899 getItemId(int position) argument
908 getItemViewType(int position) argument
949 getView(int position, View convertView, ViewGroup parent) argument
[all...]
H A DExpandableListView.java55 * {@link SimpleCursorTreeAdapter}) contain the preferred position information
60 * {@link ExpandableListContextMenuInfo#packedPosition} being a packed position
83 * The packed position represents a group.
88 * The packed position represents a child.
93 * The packed position represents a neither/null/no preference.
98 * The value for a packed position that represents neither/null/no
100 * (first bit 0) should not have a child position filled.
104 /** The mask (in packed position representation) for the child */
107 /** The mask (in packed position representation) for the group */
110 /** The mask (in packed position representatio
485 isHeaderOrFooterPosition(int position) argument
513 performItemClick(View v, int position, long id) argument
533 handleItemClick(View v, int position, long id) argument
1011 getChildOrGroupId(ExpandableListPosition position) argument
[all...]
/frameworks/opt/mailcommon/java/com/android/mailcommon/
H A DMultiAdapterSpinner.java69 * Whether or not an item at position should become the new selected spinner item and change
72 boolean canSelect(int position); argument
76 void onClick(int position); argument
88 public View getView(int position, View convertView, ViewGroup parent) { argument
89 return super.getDropDownView(position, convertView, parent);
112 public void setSelectedItem(final FancySpinnerAdapter adapter, final int position) { argument
119 globalPosition += position;
126 if (adapter.canSelect(position)) {
128 View itemView = adapter.getView(position, null, this);
133 if (position < adapte
163 onItemClick(AdapterView<?> parent, View view, int position, long id) argument
[all...]
/frameworks/support/v13/java/android/support/v13/app/
H A DFragmentPagerAdapter.java78 * Return the Fragment associated with a specified position.
80 public abstract Fragment getItem(int position); argument
87 public Object instantiateItem(ViewGroup container, int position) { argument
92 final long itemId = getItemId(position);
101 fragment = getItem(position);
115 public void destroyItem(ViewGroup container, int position, Object object) { argument
119 if (DEBUG) Log.v(TAG, "Detaching item #" + getItemId(position) + ": f=" + object
125 public void setPrimaryItem(ViewGroup container, int position, Object object) { argument
164 * Return a unique identifier for the item at the given position.
166 * <p>The default implementation returns the given position
172 getItemId(int position) argument
[all...]
H A DFragmentStatePagerAdapter.java84 * Return the Fragment associated with a specified position.
86 public abstract Fragment getItem(int position); argument
93 public Object instantiateItem(ViewGroup container, int position) { argument
98 if (mFragments.size() > position) {
99 Fragment f = mFragments.get(position);
109 Fragment fragment = getItem(position);
110 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment);
111 if (mSavedState.size() > position) {
112 Fragment.SavedState fss = mSavedState.get(position);
117 while (mFragments.size() <= position) {
128 destroyItem(ViewGroup container, int position, Object object) argument
146 setPrimaryItem(ViewGroup container, int position, Object object) argument
[all...]
/frameworks/support/v4/java/android/support/v4/app/
H A DFragmentPagerAdapter.java74 * Return the Fragment associated with a specified position.
76 public abstract Fragment getItem(int position); argument
83 public Object instantiateItem(ViewGroup container, int position) { argument
88 final long itemId = getItemId(position);
97 fragment = getItem(position);
111 public void destroyItem(ViewGroup container, int position, Object object) { argument
115 if (DEBUG) Log.v(TAG, "Detaching item #" + getItemId(position) + ": f=" + object
121 public void setPrimaryItem(ViewGroup container, int position, Object object) { argument
160 * Return a unique identifier for the item at the given position.
162 * <p>The default implementation returns the given position
168 getItemId(int position) argument
[all...]
H A DFragmentStatePagerAdapter.java80 * Return the Fragment associated with a specified position.
82 public abstract Fragment getItem(int position); argument
89 public Object instantiateItem(ViewGroup container, int position) { argument
94 if (mFragments.size() > position) {
95 Fragment f = mFragments.get(position);
105 Fragment fragment = getItem(position);
106 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment);
107 if (mSavedState.size() > position) {
108 Fragment.SavedState fss = mSavedState.get(position);
113 while (mFragments.size() <= position) {
124 destroyItem(ViewGroup container, int position, Object object) argument
142 setPrimaryItem(ViewGroup container, int position, Object object) argument
[all...]
/frameworks/ex/common/java/com/android/common/widget/
H A DGroupingListAdapter.java264 * Figures out whether the item at the specified position represents a
266 * corresponding cursor position.
268 public void obtainPositionMetadata(PositionMetadata metadata, int position) { argument
271 if (metadata.listPosition == position) {
279 // Check cache for the supplied position. What we are looking for is
280 // the group descriptor immediately preceding the supplied position.
281 // Once we have that, we will be able to tell whether the position
284 if (position <= mLastCachedListPosition) {
287 int index = mPositionCache.indexOfKey(position);
289 // If we get back a positive number, the position correspond
388 isGroupHeader(int position) argument
397 getGroupSize(int position) argument
405 toggleGroup(int position) argument
427 getItemViewType(int position) argument
432 getItem(int position) argument
445 getItemId(int position) argument
454 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DGridScenario.java112 * Set the position that starts selected.
114 * @param startingSelectionPosition The selected position within the adapter's data set.
135 * @param position The position in the grid.
139 int position, double itemScreenSizeFactor) {
140 mOverrideItemScreenSizeFactors.put(position, itemScreenSizeFactor);
266 public void onItemSelected(AdapterView parent, View v, int position, long id) {
267 positionSelected(position);
315 public final String getValueAtPosition(int position) { argument
316 return "postion " + position;
138 setPositionScreenSizeFactorOverride( int position, double itemScreenSizeFactor) argument
328 createView(int position, ViewGroup parent, int desiredHeight) argument
348 getItem(int position) argument
352 getItemId(int position) argument
356 getView(int position, View convertView, ViewGroup parent) argument
[all...]
H A DListItemFactory.java37 * @param position The position within the list.
42 public static View twoButtonsSeparatedByFiller(int position, Context context, int desiredHeight) { argument
59 topButton.setText("top (position " + position + ")");
71 bottomButton.setText("bottom (position " + position + ")");
149 * @param position The position within the list.
155 public static View button(int position, Contex argument
176 convertButton(View convertView, String text, int position) argument
195 text(int position, Context context, String text, int desiredHeight) argument
216 convertText(View convertView, String text, int position) argument
236 doubleText(int position, Context context, String text, int desiredHeight) argument
279 convertDoubleText(View convertView, String text, int position) argument
[all...]
/frameworks/base/core/java/android/database/
H A DCrossProcessCursorWrapper.java46 public void fillWindow(int position, CursorWindow window) { argument
49 crossProcessCursor.fillWindow(position, window);
53 DatabaseUtils.cursorFillWindow(mCursor, position, window);
H A DIBulkCursor.java33 * Gets a cursor window that contains the specified position.
34 * The window will contain a range of rows around the specified position.
36 public CursorWindow getWindow(int position) throws RemoteException; argument
39 * Notifies the cursor that the position has changed.
42 * @param position The new position
44 public void onMove(int position) throws RemoteException; argument
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListButtonsDiagonalAcrossItems.java50 protected View createView(int position, ViewGroup parent, argument
52 final Slot slot = position == 0 ? Slot.Left :
53 (position == 1 ? Slot.Middle : Slot.Right);
H A DListItemFocusablesClose.java50 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
52 position, parent.getContext(), desiredHeight);
H A DListItemsExpandOnSelection.java41 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
45 result.setText(getValueAtPosition(position));
55 public View convertView(int position, View convertView, ViewGroup parent) { argument
56 ((ExpandWhenSelectedView)convertView).setText(getValueAtPosition(position));
/frameworks/base/core/tests/coretests/src/android/widget/
H A DAutoCompleteTextViewSimple.java99 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
100 Log.d(LOG_TAG, "onItemClick() position " + position);
102 mItemClickPosition = position;
108 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument
109 Log.d(LOG_TAG, "onItemSelected() position " + position);
111 mItemSelectedPosition = position;
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListOfInternalSelectionViews.java74 * @param position The position
75 * @return The label (closest thing to a value) for the item at position
77 public String getLabelForPosition(int position) { argument
78 return "position " + position;
156 public Object getItem(int position) { argument
157 return getLabelForPosition(position);
160 public long getItemId(int position) { argument
161 return position;
164 getView(int position, View convertView, ViewGroup parent) argument
[all...]
H A DListWithFooterViewAndNewLabels.java85 public Object getItem(int position) { argument
86 return mLabels.get(position);
89 public long getItemId(int position) { argument
90 return position;
93 public View getView(int position, View convertView, ViewGroup parent) { argument
94 String label = mLabels.get(position);
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DStorageBrowser.java64 public Object getItem(int position) { argument
65 return mStorageList.get(position);
68 public long getItemId(int position) { argument
69 return position;
72 public View getView(int position, View convertView, ViewGroup parent) { argument
81 MtpStorageInfo info = mStorageList.get(position);
114 protected void onListItemClick(ListView l, View v, int position, long id) { argument
117 intent.putExtra("storage", mStorageList.get(position).getStorageId());
/frameworks/compile/libbcc/runtime/www/
H A Dmenu.css6 position:fixed;
11 position:absolute;
/frameworks/base/core/java/android/app/
H A DListActivity.java199 * getListView().getItemAtPosition(position) if they need to access the
204 * @param position The position of the view in the list
207 protected void onListItemClick(ListView l, View v, int position, long id) { argument
271 * position with the adapter's data
273 * @param position
275 public void setSelection(int position) { argument
276 mList.setSelection(position);
280 * Get the position of the currently selected list item.
317 public void onItemClick(AdapterView<?> parent, View v, int position, lon
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DMediaRouteChooserDialogFragment.java205 public int position; field in class:MediaRouteChooserDialogFragment.ViewHolder
349 public int getItemViewType(int position) { argument
350 final Object item = getItem(position);
352 return position == 0 ? VIEW_TOP_HEADER : VIEW_SECTION_HEADER;
370 public boolean isEnabled(int position) { argument
371 switch (getItemViewType(position)) {
382 public Object getItem(int position) { argument
383 return mItems.get(position);
387 public long getItemId(int position) { argument
388 return position;
392 getView(int position, View convertView, ViewGroup parent) argument
441 bindItemView(int position, ViewHolder holder) argument
481 bindHeaderView(int position, ViewHolder holder) argument
487 onItemClick(AdapterView<?> parent, View view, int position, long id) argument
547 int position; field in class:MediaRouteChooserDialogFragment.RouteAdapter.ExpandGroupListener
[all...]
/frameworks/base/core/java/android/text/method/
H A DCharacterPickerDialog.java88 public void onItemClick(AdapterView parent, View view, int position, long id) { argument
89 String result = String.valueOf(mOptions.charAt(position));
122 public View getView(int position, View convertView, ViewGroup parent) { argument
125 b.setText(String.valueOf(mOptions.charAt(position)));
134 public final Object getItem(int position) { argument
135 return String.valueOf(mOptions.charAt(position));
138 public final long getItemId(int position) { argument
139 return position;

Completed in 442 milliseconds

1234567891011>>