/frameworks/base/core/java/android/widget/ |
H A D | RemoteViewsAdapter.java | 307 public void add(int position, RemoteViewsFrameLayout layout) { argument 308 final Integer pos = position; 324 * Notifies each of the RemoteViewsFrameLayouts associated with a particular position that 327 public void notifyOnRemoteViewsLoaded(int position, RemoteViews view) { argument 330 final Integer pos = position; 332 // Notify all the references for that position of the newly loaded RemoteViews 425 private RemoteViewsFrameLayout createLoadingView(int position, View convertView, argument 428 // Create and return a new FrameLayout, and setup the references for this position 519 // The cache/mapping of position to RemoteViewsMetaData. This set is guaranteed to be 522 // we still need to be able to access the mapping of position t 571 insert(int position, RemoteViews v, long itemId, ArrayList<Integer> visibleWindow) argument 605 getRemoteViewsAt(int position) argument 611 getMetaDataAt(int position) argument 665 queueRequestedPositionToLoad(int position) argument 672 queuePositionsToBePreloadedFromRequestedPosition(int position) argument 730 containsRemoteViewAt(int position) argument 733 containsMetaDataAt(int position) argument 942 updateRemoteViews(final int position, boolean notifyWhenLoaded) argument 1019 getItem(int position) argument 1024 getItemId(int position) argument 1033 getItemViewType(int position) argument 1074 getView(int position, View convertView, ViewGroup parent) argument [all...] |
H A D | ExpandableListView.java | 55 * {@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...] |
H A D | SimpleAdapter.java | 99 public Object getItem(int position) { argument 100 return mData.get(position); 106 public long getItemId(int position) { argument 107 return position; 113 public View getView(int position, View convertView, ViewGroup parent) { argument 114 return createViewFromResource(position, convertView, parent, mResource); 117 private View createViewFromResource(int position, View convertView, argument 126 bindView(position, v); 142 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument 143 return createViewFromResource(position, convertVie 146 bindView(int position, View view) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | ListItemFactory.java | 37 * @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/com/android/internal/app/ |
H A D | MediaRouteChooserDialogFragment.java | 219 public int position; field in class:MediaRouteChooserDialogFragment.ViewHolder 365 public int getItemViewType(int position) { argument 366 final Object item = getItem(position); 368 return position == 0 ? VIEW_TOP_HEADER : VIEW_SECTION_HEADER; 386 public boolean isEnabled(int position) { argument 387 switch (getItemViewType(position)) { 389 return ((RouteInfo) mItems.get(position)).isEnabled(); 399 public Object getItem(int position) { argument 400 return mItems.get(position); 404 public long getItemId(int position) { argument 409 getView(int position, View convertView, ViewGroup parent) argument 459 bindItemView(int position, ViewHolder holder) argument 499 bindHeaderView(int position, ViewHolder holder) argument 505 onItemClick(AdapterView<?> parent, View view, int position, long id) argument 565 int position; field in class:MediaRouteChooserDialogFragment.RouteAdapter.ExpandGroupListener [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
H A D | ListWithFooterViewAndNewLabels.java | 85 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/ex/photoviewer/src/com/android/ex/photo/ |
H A D | PhotoViewPager.java | 80 public void transformPage(View page, float position) { 90 if (position < 0 || position >= 1.f) { 96 page.setTranslationX(-position * page.getWidth()); 97 page.setAlpha(Math.max(0,1.f - position)); 98 final float scale = Math.max(0, 1.f - position * 0.3f);
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
H A D | PhotoViewPager.java | 80 public void transformPage(View page, float position) { 90 if (position < 0 || position >= 1.f) { 96 page.setTranslationX(-position * page.getWidth()); 97 page.setAlpha(Math.max(0,1.f - position)); 98 final float scale = Math.max(0, 1.f - position * 0.3f);
|
/frameworks/base/core/java/android/database/ |
H A D | IBulkCursor.java | 33 * 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
|
H A D | CursorToBulkCursorAdaptor.java | 155 public CursorWindow getWindow(int position) { argument 159 if (!mCursor.moveToPosition(position)) { 172 } else if (position < window.getStartPosition() 173 || position >= window.getStartPosition() + window.getNumRows()) { 176 mCursor.fillWindow(position, window); 189 public void onMove(int position) { argument 193 mCursor.onMove(mCursor.getPosition(), position);
|
/frameworks/base/core/java/android/text/method/ |
H A D | CharacterPickerDialog.java | 88 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;
|
/frameworks/base/core/java/android/webkit/ |
H A D | PluginList.java | 109 public synchronized void pluginClicked(Context context, int position) { argument 111 Plugin plugin = mPlugins.get(position);
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
H A D | GridSimple.java | 49 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument 50 View view = super.createView(position, parent, desiredHeight);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListSimple.java | 45 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument 46 View view = super.createView(position, parent, desiredHeight);
|
H A D | ListWithEmptyView.java | 42 public long getItemId(int position) { argument 43 if (position < 0 || position >= this.getCount()) { 46 return super.getItemId(position);
|
H A D | ListHorizontalFocusWithinItemWins.java | 51 protected View createView(int position, ViewGroup parent, argument 54 if (position == 0) { 57 } else if (position == 1) { 61 throw new IllegalArgumentException("expecting position 0 or 1");
|
H A D | ListItemISVAndButton.java | 42 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument 48 final InternalSelectionView isv = new InternalSelectionView(context, 8, "ISV postion " + position); 61 topButton.setText("button " + position + ")");
|
H A D | AdjacentListsWithAdjacentISVsInside.java | 113 public Object getItem(int position) { argument 114 return position; 117 public long getItemId(int position) { argument 118 return position; 121 public View getView(int position, View convertView, ViewGroup parent) { argument
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
H A D | CameraBrowser.java | 64 public Object getItem(int position) { argument 65 return mDeviceList.get(position); 68 public long getItemId(int position) { argument 69 return position; 72 public View getView(int position, View convertView, ViewGroup parent) { argument 83 MtpDevice device = mDeviceList.get(position); 117 protected void onListItemClick(ListView l, View v, int position, long id) { argument 119 intent.putExtra("device", mDeviceList.get(position).getDeviceName());
|
H A D | ObjectBrowser.java | 71 public Object getItem(int position) { argument 72 return mObjectList.get(position); 75 public long getItemId(int position) { argument 76 return position; 79 public View getView(int position, View convertView, ViewGroup parent) { argument 88 MtpObjectInfo info = mObjectList.get(position); 133 protected void onListItemClick(ListView l, View v, int position, long id) { argument 134 MtpObjectInfo info = mObjectList.get(position);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | StackActivity.java | 45 public View getView(int position, View convertView, ViewGroup parent) { 52 getItem(position % getCount())); 53 ((TextView) item.findViewById(R.id.mini_text)).setText("" + position);
|
/frameworks/ex/widget/java/com/android/ex/widget/ |
H A D | StaggeredGridView.java | 67 * - 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/base/core/tests/coretests/src/android/view/menu/ |
H A D | MenuScenario.java | 68 // Add a default item for this position if the subclasses 98 * @param itemPosition The position of the item to add (only for your 120 final int position = findItemPosition(item); 121 if (position < 0) return false; 123 mWasItemClicked[position] = true; 128 public boolean wasItemClicked(int position) { argument 129 return mWasItemClicked[position]; 133 * Finds the position for a given Item. 136 * @return The position, or -1 if not found.
|
/frameworks/wilhelm/src/itf/ |
H A D | IMIDITime.c | 39 static SLresult IMIDITime_SetPosition(SLMIDITimeItf self, SLuint32 position) argument 45 if (!(position < thiz->mDuration)) { 49 thiz->mPosition = position; 67 SLuint32 position = thiz->mPosition; local 69 *pPosition = position;
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ListMenuPresenter.java | 165 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 166 mMenu.performItemAction(mAdapter.getItem(position), 0); 238 public MenuItemImpl getItem(int position) { argument 240 position += mItemIndexOffset; 241 if (mExpandedIndex >= 0 && position >= mExpandedIndex) { 242 position++; 244 return items.get(position); 247 public long getItemId(int position) { argument 248 // Since a menu item's ID is optional, we'll use the position as an 250 return position; 253 getView(int position, View convertView, ViewGroup parent) argument [all...] |