/frameworks/base/core/java/com/android/internal/app/ |
H A D | AccessibilityButtonChooserActivity.java | 89 gridview.setOnItemClickListener((parent, view, position, id) -> { 90 onTargetSelected(mTargets.get(position)); 127 public Object getItem(int position) { argument 132 public long getItemId(int position) { argument 133 return position; 137 public View getView(int position, View convertView, ViewGroup parent) { argument 140 final AccessibilityButtonTarget target = mTargets.get(position);
|
H A D | AlertController.java | 1071 public View getView(int position, View convertView, ViewGroup parent) { 1072 View view = super.getView(position, convertView, parent); 1074 boolean isItemChecked = mCheckedItems[position]; 1076 listView.setItemChecked(position, true); 1141 public void onItemClick(AdapterView<?> parent, View v, int position, long id) { 1142 mOnClickListener.onClick(dialog.mDialogInterface, position); 1151 public void onItemClick(AdapterView<?> parent, View v, int position, long id) { 1153 mCheckedItems[position] = listView.isItemChecked(position); 1156 dialog.mDialogInterface, position, listVie 1188 getItemId(int position) argument [all...] |
H A D | ChooserActivity.java | 470 Log.d(TAG, "position of selected app/service/caller is " + 1055 public int getPositionTargetType(int position) { argument 1059 if (position < callerTargetCount) { 1065 if (position - offset < serviceTargetCount) { 1071 if (position - offset < standardTargetCount) { 1079 public TargetInfo getItem(int position) { argument 1080 return targetInfoForPosition(position, true); 1084 public TargetInfo targetInfoForPosition(int position, boolean filtered) { argument 1088 if (position < callerTargetCount) { 1089 return mCallerTargets.get(position); 1356 getItem(int position) argument 1362 getItemId(int position) argument 1367 getView(int position, View convertView, ViewGroup parent) argument [all...] |
H A D | LocalePicker.java | 183 public View getView(int position, View convertView, ViewGroup parent) { 194 LocaleInfo item = getItem(position); 248 public void onListItemClick(ListView l, View v, int position, long id) { argument 250 final Locale locale = ((LocaleInfo)getListAdapter().getItem(position)).locale;
|
H A D | LocalePickerWithRegion.java | 198 // Save scroll position 206 public void onListItemClick(ListView l, View v, int position, long id) { argument 208 (LocaleStore.LocaleInfo) getListAdapter().getItem(position); 253 // Restore previous scroll position
|
H A D | MediaRouteChooserDialog.java | 207 public boolean isEnabled(int position) { argument 208 return getItem(position).isEnabled(); 212 public View getView(int position, View convertView, ViewGroup parent) { argument 217 MediaRouter.RouteInfo route = getItem(position); 234 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 235 MediaRouter.RouteInfo route = getItem(position);
|
H A D | NavItemSelectedListener.java | 36 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument 38 mListener.onNavigationItemSelected(position, id);
|
H A D | ResolverActivity.java | 579 Log.e(TAG, "Invalid position supplied to setAlwaysButtonEnabled"); 1349 // Not using getItem since it offsets to dodge this position for the list 1690 public ResolveInfo resolveInfoForPosition(int position, boolean filtered) { argument 1691 TargetInfo target = targetInfoForPosition(position, filtered); 1699 public TargetInfo targetInfoForPosition(int position, boolean filtered) { argument 1701 return getItem(position); 1703 if (mDisplayList.size() > position) { 1704 return mDisplayList.get(position); 1731 public TargetInfo getItem(int position) { argument 1732 if (mFilterLastUsed && mLastChosenPosition >= 0 && position > 1742 getItemId(int position) argument 1768 getView(int position, View convertView, ViewGroup parent) argument 1797 bindView(int position, View view) argument 1909 onItemClick(AdapterView<?> parent, View view, int position, long id) argument 1939 onItemLongClick(AdapterView<?> parent, View view, int position, long id) argument [all...] |
H A D | SuggestedLocaleAdapter.java | 85 public boolean isEnabled(int position) { argument 86 return getItemViewType(position) == TYPE_LOCALE; 90 public int getItemViewType(int position) { argument 94 if (position == 0) { 97 if (position == mSuggestionCount + 1) { 123 public Object getItem(int position) { argument 126 offset = position > mSuggestionCount ? -2 : -1; 129 return mLocaleOptions.get(position + offset); 133 public long getItemId(int position) { argument 134 return position; 163 getView(int position, View convertView, ViewGroup parent) argument [all...] |
H A D | ToolbarActionBar.java | 201 public void setSelectedNavigationItem(int position) { argument 204 mDecorToolbar.setDropdownSelectedPosition(position); 340 public void addTab(Tab tab, int position) { argument 346 public void addTab(Tab tab, int position, boolean setSelected) { argument 358 public void removeTabAt(int position) { argument
|
H A D | WindowDecorActionBar.java | 405 public void setSelectedNavigationItem(int position) { argument 408 selectTab(mTabs.get(position)); 411 mDecorToolbar.setDropdownSelectedPosition(position); 526 private void configureTab(Tab tab, int position) { argument 534 tabi.setPosition(position); 535 mTabs.add(position, tabi); 538 for (int i = position + 1; i < count; i++) { 549 public void addTab(Tab tab, int position) { argument 550 addTab(tab, position, mTabs.isEmpty()); 564 public void addTab(Tab tab, int position, boolea argument 584 removeTabAt(int position) argument 1207 setPosition(int position) argument [all...] |
/frameworks/base/core/java/com/android/internal/policy/ |
H A D | DividerSnapAlgorithm.java | 31 * Calculates the snap targets and the snap position given a position and a velocity. All positions 146 public SnapTarget calculateSnapTarget(int position, float velocity) { argument 147 return calculateSnapTarget(position, velocity, true /* hardDismiss */); 151 * @param position the top/left position of the divider 155 public SnapTarget calculateSnapTarget(int position, float velocity, boolean hardDismiss) { argument 156 if (position < mFirstSplitTarget.position && velocity < -mMinDismissVelocityPxPerSecond) { 159 if (position > mLastSplitTarge 172 calculateNonDismissingSnapTarget(int position) argument 183 calculateDismissingFraction(int position) argument 194 getClosestDismissTarget(int position) argument 239 snap(int position, boolean hardDismiss) argument 322 maybeAddTarget(int position, int smallerSize) argument 405 public final int position; field in class:DividerSnapAlgorithm.SnapTarget 421 SnapTarget(int position, int taskPosition, int flag) argument 425 SnapTarget(int position, int taskPosition, int flag, float distanceMultiplier) argument [all...] |
H A D | DockedDividerUtils.java | 34 public static void calculateBoundsForPosition(int position, int dockSide, Rect outRect, argument 39 outRect.right = position; 42 outRect.bottom = position; 45 outRect.left = position + dividerSize; 48 outRect.top = position + dividerSize;
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastPrintWriter.java | 349 int position; 350 if ((position = mBytes.position()) > 0) { 352 mOutputStream.write(mBytes.array(), 0, position);
|
H A D | FastXmlSerializer.java | 230 int position; 231 if ((position = mBytes.position()) > 0) { 233 mOutputStream.write(mBytes.array(), 0, position);
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | CascadingMenuPopup.java | 134 // Find the position of the hovered menu within the added menus. 291 * Determines the proper initial menu position for the current LTR/RTL configuration. 292 * @return The initial position. 306 * @return The position to display it. 636 mLastPosition = mShowingMenus.get(count - 1).position; 733 public final int position; field in class:CascadingMenuPopup.CascadingMenuInfo 736 int position) { 739 this.position = position; 735 CascadingMenuInfo(@onNull MenuPopupWindow window, @NonNull MenuBuilder menu, int position) argument
|
H A D | ExpandedMenuView.java | 70 public void onItemClick(AdapterView parent, View v, int position, long id) { argument 71 invokeItem((MenuItemImpl) getAdapter().getItem(position));
|
H A D | ListMenuPresenter.java | 166 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 167 mMenu.performItemAction(mAdapter.getItem(position), this, 0); 239 public MenuItemImpl getItem(int position) { argument 241 position += mItemIndexOffset; 242 if (mExpandedIndex >= 0 && position >= mExpandedIndex) { 243 position++; 245 return items.get(position); 248 public long getItemId(int position) { argument 249 // Since a menu item's ID is optional, we'll use the position as an 251 return position; 254 getView(int position, View convertView, ViewGroup parent) argument [all...] |
H A D | MenuAdapter.java | 64 public MenuItemImpl getItem(int position) { argument 67 if (mExpandedIndex >= 0 && position >= mExpandedIndex) { 68 position++; 70 return items.get(position); 73 public long getItemId(int position) { argument 74 // Since a menu item's ID is optional, we'll use the position as an 76 return position; 79 public View getView(int position, View convertView, ViewGroup parent) { argument 88 itemView.initialize(getItem(position), 0);
|
H A D | MenuPopup.java | 122 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 126 // Use the position from the outer adapter so that if a header view was added, we don't get 127 // an off-by-1 error in position. 128 wrappedAdapter.mAdapterMenu.performItemAction((MenuItem) outerAdapter.getItem(position), 0);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | AccountViewAdapter.java | 50 public Object getItem(int position) { argument 51 return mData.get(position); 55 public long getItemId(int position) { argument 56 return position; 65 public View getView(int position, View convertView, ViewGroup parent) { argument 72 AccountElements elements = (AccountElements) getItem(position);
|
H A D | ActionBarView.java | 759 public void setDropdownSelectedPosition(int position) { argument 760 mSpinner.setSelection(position);
|
H A D | AdapterHelper.java | 137 for (int position = op.positionStart; position < tmpEnd; position++) { 139 RecyclerView.ViewHolder vh = mCallback.findViewHolder(position); 140 if (vh != null || canFindInPreLayout(position)) { 157 // this position. Instead, post it to LayoutManager immediately 168 position -= tmpCount; // also equal to tmpStart 191 for (int position = op.positionStart; position < tmpEnd; position 409 canFindInPreLayout(int position) argument 466 findPositionOffset(int position) argument 470 findPositionOffset(int position, int firstPostponedItem) argument 586 applyPendingUpdatesToPosition(int position) argument 759 findViewHolder(int position) argument [all...] |
H A D | ChildHelper.java | 200 * This can be used to find a disappearing view by position. 202 * @param position The adapter position of the item. 203 * @return A hidden view with a valid ViewHolder that matches the position. 205 View findHiddenNonRemovedView(int position) { argument 210 if (holder.getLayoutPosition() == position
|
H A D | DecorToolbar.java | 85 void setDropdownSelectedPosition(int position); argument
|