/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListTakeFocusFromSide.java | 55 public Object getItem(int position) { argument 56 return position; 59 public long getItemId(int position) { argument 60 return position; 63 public View getView(int position, View convertView, ViewGroup parent) { argument 71 view.setText(mTitles[position]);
|
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/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 | 86 public boolean isEnabled(int position) { argument 96 public Object getItem(int position) { argument 97 return mItems.get(position); 101 public long getItemId(int position) { argument 102 return position; 106 public int getItemViewType(int position) { argument 107 return mItems.get(position).getType(); 111 public View getView(int position, View convertView, ViewGroup parent) { argument 113 AdapterItem item = mItems.get(position); 129 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); 255 final int position = mFirstPosition; 260 int index = position + i; 268 public void setSelection(int position, boolean animate) { argument 269 // Animate only if requested position is already on screen somewhere 270 boolean shouldAnimate = animate && mFirstPosition <= position && 271 position < 276 setSelection(int position) argument 290 setSelectionInt(int position, boolean animate) argument 364 int position; field in class:AbsSpinner.SavedState 441 put(int position, View v) argument 445 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/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | AbsSpinnerICS.java | 77 * It also provides methods to transform spinner items based on their position 101 int position = mItemCount > 0 ? 0 : INVALID_POSITION; 103 setSelectedPositionInt(position); 104 setNextSelectedPositionInt(position); 239 final int position = mFirstPosition; 244 int index = position + i; 252 public void setSelection(int position, boolean animate) { argument 253 // Animate only if requested position is already on screen somewhere 254 boolean shouldAnimate = animate && mFirstPosition <= position && 255 position < 260 setSelection(int position) argument 274 setSelectionInt(int position, boolean animate) argument 348 int position; field in class:AbsSpinnerICS.SavedState 425 put(int position, View v) argument 429 get(int position) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | PathTessellator.cpp | 27 i, buffer[i].position[0], buffer[i].position[1], buffer[i].alpha); \ 31 ALOGD("point %d at %f %f", i, buffer[i].position[0], buffer[i].position[1]); \ 70 Vertex::set(destPtr, srcPtr->position[0], srcPtr->position[1]); 74 AlphaVertex::set(destPtr, srcPtr->position[0], srcPtr->position[1], srcPtr->alpha); 195 vec2 lastNormal(current->position[1] - last->position[ [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | ColumnAdapter.java | 40 public void onItemClick(ListAdapter adapter, int position); argument 67 final int position = (Integer) v.getTag(); 68 mListener.onItemClick(mWrapped, position); 78 public Object getItem(int position) { argument 79 return position; 83 public long getItemId(int position) { argument 84 return position; 88 public View getView(int position, View convertView, ViewGroup parent) { argument 98 final int first = position * mColumns;
|
H A D | SortingCursorWrapper.java | 169 private static void binarySort(int[] position, String[] value) { argument 170 final int count = position.length; 172 final int pivotPosition = position[start]; 202 position[left + 2] = position[left + 1]; 205 position[left + 1] = position[left]; 209 System.arraycopy(position, left, position, left + 1, n); 213 position[lef 222 binarySort(int[] position, long[] value) 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...] |
/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...] |
/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/ |
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/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/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
H A D | Transport.java | 128 int contentPosition = content.position(); 136 final int outputAvailable = capacity - mOutputBuffer.position(); 150 ioWrite(outputArray, 0, mOutputBuffer.position()); 256 while (buffer.position() < limit) { 263 final int end = buffer.position() + contentSize; 267 buffer.position(end); 303 int position = buffer.position(); 306 count = ioRead(buffer.array(), position, buffer.capacity() - position); [all...] |