/packages/apps/Car/Media/src/com/android/car/media/drawer/ |
H A D | MediaDrawerAdapter.java | 100 protected boolean usesSmallLayout(int position) { argument 101 return mCurrentFetcher.usesSmallLayout(position); 105 protected void populateViewHolder(DrawerItemViewHolder holder, int position) { argument 110 mCurrentFetcher.populateViewHolder(holder, position); 115 public void onItemClick(int position) { argument 117 mCurrentFetcher.onItemClick(position);
|
H A D | MediaQueueItemsFetcher.java | 72 public boolean usesSmallLayout(int position) { argument 73 return MediaItemsFetcher.usesSmallLayout(mItems.get(position).getDescription()); 77 public void populateViewHolder(DrawerItemViewHolder holder, int position) { argument 78 MediaSession.QueueItem item = mItems.get(position); 97 public void onItemClick(int position) { argument 99 mClickListener.onQueueItemClicked(mItems.get(position)); 114 for (int position = 0; position < mItems.size(); position++) { 115 MediaSession.QueueItem item = mItems.get(position); [all...] |
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
H A D | CallLogActivity.java | 172 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument 173 viewPagerTabs.onPageScrolled(position, positionOffset, positionOffsetPixels); 177 public void onPageSelected(int position) { argument 178 updateMissedCalls(position); 179 selectedPageIndex = position; 183 viewPagerTabs.onPageSelected(position); 195 private int getRtlPosition(int position) { argument 197 return viewPagerAdapter.getCount() - 1 - position; 199 return position; 202 private void updateMissedCalls(int position) { argument 236 getItemId(int position) argument 241 getItem(int position) argument 254 instantiateItem(ViewGroup container, int position) argument 270 getPageTitle(int position) argument [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | AddAdapter.java | 77 public View getView(int position, View convertView, ViewGroup parent) { argument 78 ListItem item = (ListItem) getItem(position); 96 public Object getItem(int position) { argument 97 return mItems.get(position); 100 public long getItemId(int position) { argument 101 return position;
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A D | CustomHeaderViewPager.java | 54 public void setCurrentItem(final int position) { argument 55 mViewPager.setCurrentItem(position); 76 public void onPageScrolled(int position, float positionOffset, 78 mTabstrip.onPageScrolled(position, positionOffset, positionOffsetPixels); 82 public void onPageSelected(int position) { 83 mTabstrip.onPageSelected(position);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | LegacyPhoneNumberListAdapter.java | 66 public String getContactDisplayName(int position) { argument 67 return ((Cursor)getItem(position)).getString(PHONE_DISPLAY_NAME_COLUMN_INDEX); 70 public Uri getPhoneUri(int position) { argument 71 Cursor cursor = ((Cursor)getItem(position)); 78 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 80 super.newView(context, partition, cursor, position, parent); 86 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument 87 super.bindView(itemView, partition, cursor, position); 77 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
|
H A D | PhoneNumberPickerFragment.java | 61 * @param position The position in the list where the click ocurred. 64 public void onVideoCallIconClicked(int position) { argument 65 callNumber(position, true /* isVideoCall */); 142 protected void onItemClick(int position, long id) { argument 143 callNumber(position, false /* isVideoCall */); 147 * Initiates a call to the number at the specified position. 149 * @param position The position. 153 private void callNumber(int position, boolea argument 171 cacheContactInfo(int position) argument 175 getPhoneNumber(int position) argument 180 getPhoneUri(int position) argument 185 getLookupKey(int position) argument [all...] |
H A D | PostalAddressPickerFragment.java | 45 protected void onItemClick(int position, long id) { argument 46 if (getAdapter().getItem(position) == null) { 51 pickPostalAddress(adapter.getDataUri(position)); 54 pickPostalAddress(adapter.getContactMethodUri(position));
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | AccountsListAdapter.java | 87 public View getView(int position, View convertView, ViewGroup parent) { argument 96 text1.setText(mAccounts.get(position).getTypeLabel()); 97 text2.setText(mAccounts.get(position).getNameLabel()); 99 icon.setImageDrawable(mAccounts.get(position).getIcon()); 110 public AccountWithDataSet getItem(int position) { argument 111 return mAccounts.get(position).getAccount(); 115 public long getItemId(int position) { argument 116 return position;
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
H A D | CallComposerPagerAdapter.java | 39 public Fragment getItem(int position) { argument 40 switch (position) {
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
H A D | DocsStableIdProvider.java | 38 public String getStableId(int position) { argument 39 return mAdapter.getStableId(position);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/selection/demo/ |
H A D | DemoStableIdProvider.java | 38 public String getStableId(int position) { argument 39 return mAdapter.getStableId(position);
|
H A D | SelectionDemoAdapter.java | 68 public void onBindViewHolder(DemoHolder holder, int position) { argument 69 String id = createId(position); 72 mBindCallback.onBound(holder, position); 76 private static String createId(int position) { argument 77 return "id" + position; 86 String getStableId(int position) { argument 87 return createId(position); 106 abstract void onBound(DemoHolder holder, int position); argument
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
H A D | TestGridLayoutManager.java | 37 public void setFirstVisibleItemPosition(int position) { mFirstVisibleItemPosition = position; } argument
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/selection/testing/ |
H A D | TestStableIdProvider.java | 38 public String getStableId(int position) { argument 39 return mAdapter.getStableId(position);
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
H A D | HistoryAdapter.java | 68 public void onBindViewHolder(final HistoryAdapter.ViewHolder holder, int position) { argument 69 final HistoryItem item = getItem(position); 84 if (shouldShowHeader(position, item)) { 87 holder.mDivider.setVisibility(position == getItemCount() - 1 113 public long getItemId(int position) { argument 114 return getItem(position).getEvaluatorIndex(); 118 public int getItemViewType(int position) { argument 119 return getItem(position).isEmptyView() ? EMPTY_VIEW_TYPE : HISTORY_VIEW_TYPE; 147 private int getEvaluatorIndex(int position) { argument 149 return (int) (mEvaluator.getMaxIndex() - position); 156 shouldShowHeader(int position, HistoryItem item) argument 175 getItem(int position) argument [all...] |
H A D | CalculatorPadViewPager.java | 39 public View instantiateItem(ViewGroup container, final int position) { 40 final View child = getChildAt(position); 42 // Set a OnClickListener to scroll to item's position when it isn't the current item. 46 setCurrentItem(position, true /* smoothScroll */); 71 child.setContentDescription(getPageTitle(position)); 77 public void destroyItem(ViewGroup container, int position, Object object) { 78 removeViewAt(position); 87 public float getPageWidth(int position) { 88 return position == 1 ? 7.0f / 9.0f : 1.0f; 92 public CharSequence getPageTitle(int position) { [all...] |
/packages/apps/Dialer/java/com/android/dialer/speeddial/ |
H A D | SpeedDialAdapter.java | 66 public int getItemViewType(int position) { argument 67 return cursor.getRowType(position); 88 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { argument 89 cursor.moveToPosition(position); 90 switch (cursor.getRowType(position)) { 93 ((HeaderViewHolder) holder).showAddButton(cursor.hasFavorites() && position == 0); 121 public int getSpanSize(int position) { 122 return SpeedDialAdapter.this.getSpanSize(position); 129 int getSpanSize(int position) { argument 130 switch (cursor.getRowType(position)) { [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
H A D | ContactSectionIndexer.java | 54 // Clamp to the bounds of the section position array per Android API doc. 60 public int getSectionForPosition(final int position) { argument 66 // section for the position. 71 // position is out of bound. 72 if (position <= mSectionStartingPositions.get(left)) { 74 } else if (position >= mSectionStartingPositions.get(right)) { 82 if (position >= startingPos && position < nextStartingPos) { 84 } else if (position < startingPos) { 86 } else if (position > [all...] |
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | SlidingTabLayout.java | 118 private void onViewPagerPageChanged(int position, float positionOffset) { argument 119 mSelectedPosition = position; 161 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument 163 if ((titleCount == 0) || (position < 0) || (position >= titleCount)) { 166 onViewPagerPageChanged(position, positionOffset); 175 public void onPageSelected(int position) { argument 176 position = mViewPager.getRtlAwareIndex(position); 178 onViewPagerPageChanged(position, [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | ItemAdapter.java | 39 * Finds the position of the changed item holder and invokes {@link #notifyItemChanged(int)} or 49 final int position = mItemHolders.indexOf(itemHolder); 50 if (position != RecyclerView.NO_POSITION) { 51 notifyItemChanged(position); 60 final int position = mItemHolders.indexOf(itemHolder); 61 if (position != RecyclerView.NO_POSITION) { 62 notifyItemChanged(position, payload); 196 * Inserts the specified item holder at the specified position. Invokes 199 * @param position the index to which to add the item holder 203 public ItemAdapter addItem(int position, argument 242 getItemId(int position) argument 256 getItemViewType(int position) argument 271 onBindViewHolder(ItemViewHolder viewHolder, int position) argument [all...] |
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
H A D | DialtactsPagerAdapter.java | 82 public long getItemId(int position) { argument 83 return getRtlPosition(position); 87 public Fragment getItem(int position) { argument 88 LogUtil.d("ViewPagerAdapter.getItem", "position: %d", position); 89 switch (getRtlPosition(position)) { 129 throw Assert.createIllegalStateFailException("No fragment at position " + position); 134 public Fragment instantiateItem(ViewGroup container, int position) { argument 135 LogUtil.d("ViewPagerAdapter.instantiateItem", "position 178 getPageTitle(@abIndex int position) argument 182 getRtlPosition(int position) argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
H A D | SelectCalendarsSyncAdapter.java | 147 public View getView(final int position, View convertView, ViewGroup parent) { argument 148 if (position >= mRowCount) { 151 String name = mData[position].displayName; 152 boolean selected = mData[position].synced; 153 int color = Utils.getDisplayColorFromColor(mData[position].color); 176 view.setTag(mData[position]); 188 colorView.setEnabled(hasMoreColors(position)); 195 if (!hasMoreColors(position)) { 200 mColorPickerDialog = CalendarColorPickerDialog.newInstance(mData[position].id, 203 mColorPickerDialog.setCalendarId(mData[position] 216 hasMoreColors(int position) argument 234 getItem(int position) argument 243 getItemId(int position) argument 255 getSynced(int position) argument 260 onItemClick(AdapterView<?> parent, View view, int position, long id) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
H A D | GroupMembersAdapter.java | 84 /** Returns the lookup Uri for the contact at the given position in the underlying cursor. */ 85 public Uri getContactUri(int position) { argument 86 final Cursor cursor = (Cursor) getItem(position); 92 /** Returns the ID of the contact at the given position in the underlying cursor. */ 93 public long getContactId(int position) { argument 94 final Cursor cursor = (Cursor) getItem(position); 133 public String getContactDisplayName(int position) { argument 134 return ((Cursor) getItem(position)).getString(GroupMembersQuery.CONTACT_DISPLAY_NAME); 139 int position, ViewGroup parent) { 141 super.newView(context, partition, cursor, position, paren 138 newView(Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument 147 bindView(View v, int partition, Cursor cursor, int position) argument 157 bindSectionHeaderAndDivider(ContactListItemView view, int position) argument 172 bindDeleteButton(final ContactListItemView view, int position) argument [all...] |
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/ |
H A D | ContactsAdapter.java | 105 public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) { argument 111 holderMap.put(contactViewHolder, position); 112 cursor.moveToPosition(position); 118 String header = getHeaderString(position); 137 boolean showHeader = position == 0 || !header.equals(getHeaderString(position - 1)); 143 * Header#ADD_CONTACT} and the position is 0. Otherwise, {@link #CONTACT_VIEW_TYPE}. 146 public @ContactsViewType int getItemViewType(int position) { argument 147 if (header != Header.NONE && position == 0) { 163 int position 204 getHeaderString(int position) argument [all...] |