/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
H A D | BiDiTestGalleryImages.java | 52 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 D | MergedAdapter.java | 100 * 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 D | MultiAdapterSpinner.java | 69 * 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 D | FakeAdapter.java | 78 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 D | AbsSpinner.java | 96 * 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 D | HeaderViewListAdapter.java | 146 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 D | FragmentPagerAdapter.java | 78 * 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 D | FragmentStatePagerAdapter.java | 84 * 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 D | FragmentPagerAdapter.java | 74 * 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 D | FragmentStatePagerAdapter.java | 80 * 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 D | GroupingListAdapter.java | 264 * 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 D | GridScenario.java | 112 * 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 D | CrossProcessCursorWrapper.java | 46 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 D | ListButtonsDiagonalAcrossItems.java | 50 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 D | ListItemFocusablesClose.java | 50 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument 52 position, parent.getContext(), desiredHeight);
|
H A D | ListItemsExpandOnSelection.java | 41 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 D | AutoCompleteTextViewSimple.java | 99 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 D | ListOfInternalSelectionViews.java | 74 * @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 D | StorageBrowser.java | 64 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 D | PositionDependentOption.h | 54 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 D | BaseFragmentPagerAdapter.java | 63 * 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 D | BaseFragmentPagerAdapter.java | 62 * 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 D | EffectsTest.java | 121 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 D | menu.css | 6 position:fixed; 11 position:absolute;
|
/frameworks/base/core/java/android/app/ |
H A D | ListActivity.java | 199 * 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...] |