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

1234567891011>>

/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/opt/mailcommon/java/com/android/mailcommon/
H A DMergedAdapter.java100 * For a given merged position, find the corresponding Adapter and local position within that
101 * Adapter by iterating through Adapters and summing their counts until the merged position is
104 * @param position a merged (global) position
105 * @return the matching Adapter and local position, or null if not found
107 public LocalAdapterPosition<T> getAdapterOffsetForItem(final int position) { argument
115 if (position < newCount) {
116 return new LocalAdapterPosition<T>(a, position - count);
125 public Object getItem(int position) { argument
134 getItemId(int position) argument
148 getItemViewType(int position) argument
167 getView(int position, View convertView, ViewGroup parent) argument
173 getDropDownView(int position, View convertView, ViewGroup parent) argument
188 isEnabled(int position) argument
[all...]
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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
H A DFakeAdapter.java78 public boolean isEnabled(int position) { argument
88 public Object getItem(int position) { argument
89 return mItems.get(position);
93 public long getItemId(int position) { argument
94 return position;
98 public int getItemViewType(int position) { argument
99 return mItems.get(position).getType();
103 public View getView(int position, View convertView, ViewGroup parent) { argument
105 AdapterItem item = mItems.get(position);
117 public View getDropDownView(int position, Vie argument
[all...]
/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...]
/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) {
129 destroyItem(ViewGroup container, int position, Object object) argument
147 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) {
125 destroyItem(ViewGroup container, int position, Object object) argument
143 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...]
/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);
/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...]
/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/mclinker/include/mcld/Support/
H A DPositionDependentOption.h54 unsigned int position() function in class:mcld::PositionDependentOption
57 unsigned int position() const function in class:mcld::PositionDependentOption
/frameworks/ex/photoviewer/src/com/android/ex/photo/adapters/
H A DBaseFragmentPagerAdapter.java63 * Return the Fragment associated with a specified position.
65 public abstract Fragment getItem(int position); argument
72 public Object instantiateItem(View container, int position) { argument
78 String name = makeFragmentName(container.getId(), position);
85 if (DEBUG) Log.v(TAG, "Attaching item #" + position + ": f=" + fragment);
88 fragment = getItem(position);
89 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment);
91 makeFragmentName(container.getId(), position));
101 public void destroyItem(View container, int position, Object object) { argument
105 if (DEBUG) Log.v(TAG, "Detaching item #" + position
122 setPrimaryItem(View container, int position, Object object) argument
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
H A DBaseFragmentPagerAdapter.java62 * Return the Fragment associated with a specified position.
64 public abstract Fragment getItem(int position); argument
71 public Object instantiateItem(View container, int position) { argument
77 String name = makeFragmentName(container.getId(), position);
84 if (DEBUG) Log.v(TAG, "Attaching item #" + position + ": f=" + fragment);
87 fragment = getItem(position);
92 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment);
94 makeFragmentName(container.getId(), position));
104 public void destroyItem(View container, int position, Object object) { argument
108 if (DEBUG) Log.v(TAG, "Detaching item #" + position
125 setPrimaryItem(View container, int position, Object object) argument
[all...]
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DEffectsTest.java121 public Object getItem(int position) { argument
122 Log.d(TAG, "EffectListAdapter getItem() at: "+position+" name: "
123 +mDescriptors[position].name);
124 return mDescriptors[position];
127 public long getItemId(int position) { argument
128 return position;
131 public View getView(int position, View convertView, ViewGroup parent) { argument
134 Log.d(TAG, "getView() new EffectView position: " + position);
137 Log.d(TAG, "getView() convertView position
180 set(int position) argument
[all...]
/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...]

Completed in 517 milliseconds

1234567891011>>