/packages/apps/TV/src/com/android/tv/menu/ |
H A D | MenuView.java | 113 int position = getItemPosition(rowIdToSelect); 114 if (position >= 0) { 115 MenuRowView rowView = mMenuRowViews.get(position); 117 setSelectedPosition(position); 124 int position = getItemPosition(rowIdToSelect); 125 if (position == -1 || !mMenuRows.get(position).isVisible()) { 127 position = getItemPosition(ChannelsRow.ID); 129 setSelectedPosition(position); 207 private void setSelectedPosition(int position) { argument 211 setSelectedPositionSmooth(int position) argument [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
H A D | ScrollAdapterFragment.java | 63 public void setSelection(int position) { argument 64 mBase.setSelection(position); 67 public void setSelectionSmooth(int position) { argument 68 mBase.setSelectionSmooth(position);
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | FragmentStatePagerAdapter2.java | 68 * Return the Fragment associated with a specified position. 70 public abstract Fragment getItem(int position); argument 77 public Object instantiateItem(ViewGroup container, int position) { argument 82 final Fragment existing = mFragments.get(position); 91 Fragment fragment = getItem(position); 92 if (DEBUG) LogUtils.v(TAG, "Adding item #" + position + ": f=" + fragment); 93 if (mEnableSavedStates && mSavedState.size() > position) { 94 Fragment.SavedState fss = mSavedState.get(position); 102 mFragments.put(position, fragment); 109 public void destroyItem(ViewGroup container, int position, Objec argument 129 setPrimaryItem(ViewGroup container, int position, Object object) argument 233 getFragmentAt(int position) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | LegacyContactListAdapter.java | 62 public String getContactDisplayName(int position) { argument 63 return ((Cursor)getItem(position)).getString(PERSON_DISPLAY_NAME_COLUMN_INDEX); 66 public Uri getPersonUri(int position) { argument 67 Cursor cursor = ((Cursor)getItem(position)); 74 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 81 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 82 super.bindView(itemView, partition, cursor, position); 73 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
|
H A D | LegacyPostalAddressListAdapter.java | 67 public String getContactDisplayName(int position) { argument 68 return ((Cursor)getItem(position)).getString(POSTAL_DISPLAY_NAME_COLUMN_INDEX); 71 public Uri getContactMethodUri(int position) { argument 72 Cursor cursor = ((Cursor)getItem(position)); 79 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 86 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 87 super.bindView(itemView, partition, cursor, position); 78 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/history/ |
H A D | HistoryManager.java | 44 public HistoryItem getItem(int position) { argument 45 if (position > mHistoryItems.size() - 1) { 48 return mHistoryItems.elementAt(position); 134 private void insert(HistoryItem preset, int position) { argument 145 mCurrentPresetPosition = position; 148 mHistoryItems.insertElementAt(preset, position); 149 mCurrentPresetPosition = position;
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A D | FixedViewPagerAdapter.java | 43 public Object instantiateItem(final ViewGroup container, final int position) { argument 44 final PagerViewHolder viewHolder = getViewHolder(position); 55 public void destroyItem(final ViewGroup container, final int position, final Object object) { argument 56 final PagerViewHolder viewHolder = getViewHolder(position); 126 protected int getRtlPosition(final int position) { argument 128 return mViewHolders.length - 1 - position; 130 return position;
|
/packages/apps/Settings/src/com/android/settings/applications/ |
H A D | AppOpsSummary.java | 66 public Fragment getItem(int position) { argument 67 return new AppOpsCategory(sPageTemplates[position]); 76 public CharSequence getPageTitle(int position) { argument 77 return mPageNames[position]; 81 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument 85 public void onPageSelected(int position) { argument 86 mCurPos = position;
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
H A D | CallListAdapter.java | 77 public Object getItem(int position) { argument 78 return position; 82 public long getItemId(int position) { argument 83 return position; 87 public View getView(final int position, View convertView, ViewGroup parent) { argument 88 Log.i(TAG, "getView: " + position); 97 Call call = mCallList.getCall(position);
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
H A D | TabsAdapter.java | 101 public Object instantiateItem(ViewGroup container, int position) { argument 102 View view = mTabs.get(position).view; 108 public void destroyItem(ViewGroup container, int position, Object object) { argument 119 int position = mTabHost.getCurrentTab(); 120 mViewPager.setCurrentItem(position); 124 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument 128 public void onPageSelected(int position) { argument 137 mTabHost.setCurrentTab(position); 141 View tab = widget.getChildTabViewAt(position); 146 final View contentView = mTabs.get(position) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | AnimatedAdapter.java | 405 public int getItemViewType(int position) { argument 407 if (mHeaders.size() > position) { 409 } else if (position == getCount() - 1) { 416 // types. In a future release, use position/id map to try to make 419 } else if (mSpecialViews.get(getSpecialViewsPos(position)) != null) { 429 * {@link Conversation#position} set to the position of these conversations 446 * {@link Conversation#position} set to the position of these conversations 470 if (c.position > 488 getView(int position, View convertView, ViewGroup parent) argument 712 getFadeLeaveBehindItem(int position, Conversation target) argument 717 getItemId(int position) argument 748 getDeletingView(int position, Conversation conversation, ViewGroup parent, boolean swipe) argument 764 getUndoingView(int position, Conversation conv, ViewGroup parent, boolean swipe) argument 787 newConversationItemView(int position, ViewGroup parent, Conversation conversation) argument 804 getItem(int position) argument 879 isEnabled(final int position) argument 1129 getPositionOffset(int position) argument 1148 getSpecialViewsPos(final int position) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | Gusterpolator.java | 72 int position = Math.min( 76 float quantized = position * STEP_SIZE; 80 return VALUES[position] + weight * (VALUES[position + 1] - VALUES[position]);
|
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/ |
H A D | FileAdapter.java | 41 public View getView(int position, View convertView, ViewGroup parent) { argument 52 if (mLocations[position] != null) { 53 vh.textView.setText(mLocations[position].getAbsolutePath()); 54 if (mLocations[position].getAbsolutePath().endsWith(".zip") 55 || mLocations[position].isDirectory()) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/ |
H A D | MtpFullscreenView.java | 89 public void setPositionAndBroker(int position, CheckBroker b) { argument 93 mPosition = position; 96 setChecked(mBroker.isItemChecked(position)); 109 public void onCheckedChanged(int position, boolean isChecked) { argument 110 if (position == mPosition) {
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
H A D | ContactListAdapter.java | 50 final int position = cursor.getPosition(); 51 final int section = mSectionIndexer.getSectionForPosition(position); 52 // Check if the position is the first in the section. 53 if (mSectionIndexer.getPositionForSection(section) == position) { 83 public int getSectionForPosition(final int position) { argument 84 return mSectionIndexer.getSectionForPosition(position);
|
H A D | ContactRecipientAdapter.java | 382 * the {@link BaseRecipientAdapter}. Please notice that we need to fix the position 387 public View getView(int position, View convertView, ViewGroup parent) { argument 389 if (isDirectoryEntry(position)) { 398 return super.getView(fixPosition(position), convertView, parent); 402 public RecipientEntry getItem(int position) { argument 403 if (isDirectoryEntry(position)) { 406 return super.getItem(fixPosition(position)); 415 public int getItemViewType(int position) { argument 416 if (isDirectoryEntry(position)) { 419 return super.getItemViewType(fixPosition(position)); 423 isEnabled(int position) argument 435 isDirectoryEntry(int position) argument 442 fixPosition(int position) argument [all...] |
/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
H A D | Gusterpolator.java | 74 int position = Math.min( 78 float quantized = position * STEP_SIZE; 82 return VALUES[position] + weight * (VALUES[position + 1] - VALUES[position]);
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
H A D | ApplicationListPreferenceController.java | 67 for (int position = 0; position < result.size(); position++) { 68 final UserAppInfo item = result.get(position); 73 preference.setOrder(position);
|
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | RtlCompatibleViewPager.java | 36 * Positions supplied will always be the logical position in the adapter - 64 rtlSavedState.position = getCurrentItem(); 73 setCurrentItem(rtlSavedState.position); 94 int position; field in class:RtlCompatibleViewPager.RtlSavedState 102 position = in.readInt(); 108 out.writeInt(position);
|
/packages/apps/Settings/src/com/android/settings/notification/ |
H A D | RestrictedDropDownPreference.java | 104 private RestrictedItem getRestrictedItemForPosition(int position) { argument 105 if (position < 0 || position >= getEntryValues().length) { 108 CharSequence entryValue = getEntryValues()[position]; 168 public void onItemSelected(AdapterView<?> parent, View v, int position, long id) { 174 if (position >= 0 && position < getEntryValues().length) { 175 String value = getEntryValues()[position].toString(); 204 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument 205 View rootView = super.getView(position, convertVie 236 setSelection(int position) argument [all...] |
/packages/services/Telephony/src/com/android/phone/settings/fdn/ |
H A D | FdnList.java | 54 editSelected(position); 56 deleteSelected(position); 58 dialSelected(position); 64 private final int position; field in class:FdnList.SelectionPopupMenu 66 public SelectionPopupMenu(Context context, View anchor, int position) { argument 68 this.position = position; 196 public void onListItemClick(ListView l, View v, int position, long id) { argument 197 mPopup = new SelectionPopupMenu(this, v, position); 218 * Edit the item at the selected position i 220 editSelected(int position) argument 236 deleteSelected(int position) argument 252 dialSelected(int position) argument [all...] |
/packages/apps/Car/Media/src/com/android/car/media/drawer/ |
H A D | MediaBrowserItemsFetcher.java | 120 public boolean usesSmallLayout(int position) { argument 121 if (mQueueAvailable && position == mItems.size()) { 124 return MediaItemsFetcher.usesSmallLayout(mItems.get(position).getDescription()); 128 public void populateViewHolder(DrawerItemViewHolder holder, int position) { argument 129 if (mQueueAvailable && position == mItems.size()) { 133 MediaBrowser.MediaItem item = mItems.get(position); 151 public void onItemClick(int position) { argument 156 MediaBrowser.MediaItem item = mQueueAvailable && position == mItems.size() 158 : mItems.get(position);
|
/packages/apps/Car/libs/car-stream-ui-lib/src/com/android/car/app/ |
H A D | CarDrawerAdapter.java | 97 public final int getItemViewType(int position) { argument 101 return usesSmallLayout(position) 106 * Used to indicate the layout used for the Drawer item at given position. Subclasses can 109 * @param position Adapter position of item. 110 * @return Whether the item at this position will use a small layout (default) or normal layout. 112 protected boolean usesSmallLayout(int position) { argument 123 public final void onBindViewHolder(DrawerItemViewHolder holder, int position) { argument 130 populateViewHolder(holder, position); 139 protected abstract void populateViewHolder(DrawerItemViewHolder holder, int position); argument [all...] |
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/ |
H A D | SearchAdapter.java | 64 public @RowType int getItemViewType(int position) { argument 65 return searchCursorManager.getRowType(position); 69 public void onBindViewHolder(ViewHolder holder, int position) { argument 71 Cursor cursor = searchCursorManager.getCursor(position); 74 Cursor cursor = searchCursorManager.getCursor(position); 77 String header = context.getString(searchCursorManager.getHeaderText(position));
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/adapter/ |
H A D | MtpPagerAdapter.java | 69 public int translatePositionWithLabels(int position) { argument 73 return mModel.getPositionWithoutLabelsFromPosition(position, mSortOrder); 88 public void destroyItem(ViewGroup container, int position, Object object) { argument 96 public Object instantiateItem(ViewGroup container, int position) { argument 104 IngestObjectInfo i = mModel.getWithoutLabels(position, mSortOrder); 106 v.setPositionAndBroker(position, mBroker);
|