/packages/apps/TV/src/com/android/tv/menu/ |
H A D | MenuView.java | 109 int position = getItemPosition(rowIdToSelect); 110 if (position >= 0) { 111 MenuRowView rowView = mMenuRowViews.get(position); 113 setSelectedPosition(position); 120 int position = getItemPosition(rowIdToSelect); 121 if (position == -1 || !mMenuRows.get(position).isVisible()) { 123 position = getItemPosition(ChannelsRow.ID); 125 setSelectedPosition(position); 172 private void setSelectedPosition(int position) { argument 176 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/services/Car/car-support-lib/src/android/support/car/ui/ |
H A D | GroupingCursorRecyclerViewAdapter.java | 86 public long getItemId(int position) { argument 87 Cursor cursor = getItem(position); 95 public int getItemViewType(int position) { argument 96 return getPositionMetadata(position).itemType; 99 public Cursor getItem(int position) { argument 104 PositionMetadata pMetadata = getPositionMetadata(position); 107 "can't move cursor to position " + pMetadata.cursorPosition); 127 public void onBindViewHolder(VH holder, int position) { argument 128 PositionMetadata pMetadata = getPositionMetadata(position); 144 public boolean toggleGroup(int position) { argument 179 getPositionMetadata(int position) argument [all...] |
H A D | GroupingRecyclerViewAdapter.java | 87 public long getItemId(int position) { argument 88 E item = getItem(position); 96 public int getItemViewType(int position) { argument 97 return getPositionMetadata(position).itemType; 100 public E getItem(int position) { argument 105 PositionMetadata pMetadata = getPositionMetadata(position); 124 public void onBindViewHolder(VH holder, int position) { argument 125 PositionMetadata pMetadata = getPositionMetadata(position); 157 * Return True if the item on the given position is a group header and the group is expanded, 160 public boolean isGroupExpanded(int position) { argument 192 getPositionMetadata(int position) argument [all...] |
H A D | CursorRecyclerViewAdapter.java | 58 public long getItemId(int position) { argument 59 if (mCursor != null && mCursor.moveToPosition(position)) { 68 public void onBindViewHolder(VH viewHolder, int position) { argument 69 if (!mCursor.moveToPosition(position)) { 70 throw new IllegalStateException("can't move cursor to position " + position);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | LegacyContactListAdapter.java | 65 public String getContactDisplayName(int position) { argument 66 return ((Cursor)getItem(position)).getString(PERSON_DISPLAY_NAME_COLUMN_INDEX); 69 public Uri getPersonUri(int position) { argument 70 Cursor cursor = ((Cursor)getItem(position)); 77 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 84 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 85 super.bindView(itemView, partition, cursor, position); 76 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
|
H A D | MultiSelectEntryContactListAdapter.java | 110 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 111 super.bindView(itemView, partition, cursor, position); 113 bindCheckBox(view, cursor, position, partition == ContactsContract.Directory.DEFAULT); 116 private void bindCheckBox(ContactListItemView view, Cursor cursor, int position, argument 120 view.setClickable((position == 0 && hasProfile() || !isLocalDirectory) 124 if (position == 0 && hasProfile() || !mDisplayCheckBoxes || !isLocalDirectory) {
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
H A D | CitySelectionActivity.java | 271 public City getItem(int position) { argument 273 final int itemViewType = getItemViewType(position); 278 return mFilteredCities.get(position - 1); 283 return mFilteredCities.get(position); 287 public long getItemId(int position) { argument 288 return position; 292 public synchronized View getView(int position, View view, ViewGroup parent) { argument 293 final int itemViewType = getItemViewType(position); 302 final City city = getItem(position); 324 final boolean showIndex = getShowIndex(position); 355 getItemViewType(int position) argument 422 getSectionForPosition(int position) argument 511 getShowIndex(int position) argument [all...] |
/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/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/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/Car/car-ui-provider/src/android/car/ui/provider/ |
H A D | DrawerApiAdapter.java | 62 private static final String INDEX_OUT_OF_BOUNDS_MESSAGE = "invalid item position"; 66 void onItemClicked(Bundle item, int position); argument 89 public int getItemViewType(int position) { argument 92 item = mItems.get(position); 144 public void onBindViewHolder(final CarListItemViewHolder holder, final int position) { argument 146 onBindEmptyPlaceHolder(holder, position); 150 onBindNormalView(holder, position); 161 holder.itemView.setTag(position); 180 public long getItemId(int position) { argument 184 return mItems.get(position) 313 onBindEmptyPlaceHolder(final CarListItemViewHolder holder, final int position) argument 328 onBindNormalView(final CarListItemViewHolder holder, final int position) argument 391 maybeSetText(int position, String key, TextView view) argument 407 maybeSetBitmap(int position, String key, ImageView view) argument [all...] |
/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);
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
H A D | SortedArrayAdapter.java | 50 public final Object get(int position) { argument 51 return isEmpty() ? EmptyHolder.EMPTY_HOLDER : getItem(position); 55 public final long getId(int position) { argument 59 T item = mItems.get(position); 71 * Returns the item at the given {@code position}. 73 * @throws IndexOutOfBoundsException if the position is out of range 74 * (<tt>position < 0 || position >= size()</tt>) 76 final T getItem(int position) { argument 77 return mItems.get(position); [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | PhoneNumberPickerFragment.java | 75 * @param position The position in the list where the click ocurred. 78 public void onVideoCallIconClicked(int position) { argument 79 callNumber(position, true /* isVideoCall */); 199 protected void onItemClick(int position, long id) { argument 200 callNumber(position, false /* isVideoCall */); 204 * Initiates a call to the number at the specified position. 206 * @param position The position. 210 private void callNumber(int position, boolea argument 234 cacheContactInfo(int position) argument 238 getPhoneNumber(int position) argument 243 getPhoneUri(int position) argument 248 getLookupKey(int position) argument [all...] |