/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/selection/ |
H A D | TestItemDetails.java | 48 public void at(int position) { argument 49 mPosition = position; // this is both "adapter position" and "item position". 50 mStableId = (position == RecyclerView.NO_POSITION) 52 : String.valueOf(position);
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/selection/testing/ |
H A D | SelectionPredicates.java | 34 public boolean canSetStateAtPosition(int position, boolean nextState) {
|
H A D | TestSelectionPredicate.java | 33 public boolean canSetStateAtPosition(int position, boolean nextState) { argument
|
/packages/apps/Settings/src/com/android/settings/password/ |
H A D | PasswordRequirementAdapter.java | 57 public long getItemId(int position) { argument 58 return mRequirements[position].hashCode(); 62 public void onBindViewHolder(PasswordRequirementViewHolder holder, int position) { argument 63 holder.mDescriptionText.setText(mRequirements[position]);
|
/packages/apps/TV/src/com/android/tv/menu/ |
H A D | CustomizableOptionsRowAdapter.java | 34 // Custom actions will be added at the first or the last position in addition. 48 int position = 0; 58 actions.add(position++, action); 70 int position = -(type + 1); 71 getMainActivity().startActivitySafe(mCustomActions.get(position).getIntent());
|
H A D | MenuView.java | 114 int position = getItemPosition(rowIdToSelect); 115 if (position >= 0) { 116 MenuRowView rowView = mMenuRowViews.get(position); 118 setSelectedPosition(position); 125 int position = getItemPosition(rowIdToSelect); 126 if (position == -1 || !mMenuRows.get(position).isVisible()) { 128 position = getItemPosition(ChannelsRow.ID); 130 setSelectedPosition(position); 211 private void setSelectedPosition(int position) { argument 215 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/Car/Launcher/src/com/android/car/carlauncher/ |
H A D | AppGridAdapter.java | 69 public int getSpanSizeLookup(int position) { argument 70 if (position == 0 && hasRecentlyUsedApps()) { 77 public int getItemViewType(int position) { argument 78 if (position == 0 && hasRecentlyUsedApps()) { 97 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { argument 104 int index = hasRecentlyUsedApps() ? position - 1 : position;
|
/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/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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/ |
H A D | VolumeAdapter.java | 49 public View getView(int position, View convertView, ViewGroup parent) { argument 64 if (mVolumeList[position] != null) { 65 vh.id.setText(mVolumeList[position].mId); 66 vh.maxVolume.setText(String.valueOf(mVolumeList[position].mMax)); 67 vh.currentVolume.setText(String.valueOf(mVolumeList[position].mCurrent)); 68 int color = mVolumeList[position].mHasFocus ? Color.GREEN : Color.GRAY; 70 if (position == 0) { 79 mFragment.adjustVolumeByOne(mVolumeList[position].mGroupId, true); 82 mFragment.adjustVolumeByOne(mVolumeList[position].mGroupId, false); 86 mFragment.requestFocus(mVolumeList[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/enterprise/ |
H A D | ApplicationListPreferenceController.java | 69 for (int position = 0; position < result.size(); position++) { 70 final UserAppInfo item = result.get(position); 74 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/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...] |