/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/ |
H A D | AsyncListUtilActivity.java | 68 public boolean onOptionsItemSelected(MenuItem item) { argument 70 return super.onOptionsItemSelected(item);
|
H A D | RecyclerViewActivity.java | 84 public boolean onOptionsItemSelected(MenuItem item) { argument 86 return super.onOptionsItemSelected(item);
|
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
H A D | SearchFragment.java | 167 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, argument 170 intent.putExtra(DetailsActivity.EXTRA_ITEM, (PhotoItem) item); 191 * Different with other rows in the browsing fragment, the photo item in last row all have been 260 * Different with other rows in the browsing fragment, the photo item in last row all have been 338 * Different with other rows in the browsing fragment, the photo item in last row all have been
|
H A D | SearchSupportFragment.java | 170 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, argument 173 intent.putExtra(DetailsSupportActivity.EXTRA_ITEM, (PhotoItem) item); 194 * Different with other rows in the browsing fragment, the photo item in last row all have been 263 * Different with other rows in the browsing fragment, the photo item in last row all have been 341 * Different with other rows in the browsing fragment, the photo item in last row all have been
|
/frameworks/support/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/ |
H A D | SliceBrowser.java | 155 public boolean onOptionsItemSelected(MenuItem item) { argument 156 switch (item.getTitle().toString()) { 173 return super.onOptionsItemSelected(item); 268 public void onSliceAction(@NonNull EventInfo info, @NonNull SliceItem item) { argument 270 Log.w(TAG, "onSliceAction, sliceItem: \n" + item);
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/ |
H A D | BrowseTestFragment.java | 97 public void onItemSelected(Presenter.ViewHolder itemViewHolder, Object item, 99 Log.i(TAG, "onItemSelected: " + item + " row " + row); 165 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, argument 167 Log.i(TAG, "onItemClicked: " + item + " row " + row);
|
H A D | BrowseTestSupportFragment.java | 96 public void onItemSelected(Presenter.ViewHolder itemViewHolder, Object item, 98 Log.i(TAG, "onItemSelected: " + item + " row " + row); 164 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, argument 166 Log.i(TAG, "onItemClicked: " + item + " row " + row);
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
H A D | ArrayObjectAdapter.java | 75 * Returns the index for the first occurrence of item in the adapter, or -1 if 78 * @param item The item to find in the list. 79 * @return Index of the first occurrence of the item in the adapter, or -1 82 public int indexOf(Object item) { argument 83 return mItems.indexOf(item); 90 * @param positionStart The position of first item that has changed. 98 * Adds an item to the end of the adapter. 100 * @param item The item t 102 add(Object item) argument 113 add(int index, Object item) argument 140 remove(Object item) argument 173 replace(int position, Object item) argument [all...] |
H A D | RowHeaderPresenter.java | 140 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { argument 141 HeaderItem headerItem = item == null ? null : ((Row) item).getHeaderItem();
|
/frameworks/support/lifecycle/reactivestreams/src/main/java/androidx/lifecycle/ |
H A D | LiveDataReactiveStreams.java | 50 * will buffer the latest item and emit it to the subscriber when data is again requested. Any 252 public void onNext(T item) { argument 253 postValue(item);
|
/frameworks/support/media/src/main/java/androidx/media/ |
H A D | MediaUtils2.java | 53 * @param item2 an item. 54 * @return The newly created media item. 100 * @param item an item. 101 * @return The newly created media item. 103 static MediaItem2 createMediaItem2(MediaItem item) { argument 104 if (item == null || item.getMediaId() == null) { 108 MediaMetadata2 metadata2 = createMediaMetadata2(item.getDescription()); 109 return new MediaItem2.Builder(item [all...] |
/frameworks/support/navigation/ui/src/main/java/androidx/navigation/ui/ |
H A D | NavigationUI.java | 56 * <p>Importantly, it assumes the {@link MenuItem#getItemId() menu item id} matches a valid 60 * @param item The selected MenuItem. 65 public static boolean onNavDestinationSelected(@NonNull MenuItem item, argument 67 return onNavDestinationSelected(item, navController, false); 70 private static boolean onNavDestinationSelected(@NonNull MenuItem item, argument 84 navController.navigate(item.getItemId(), null, options); 158 * {@link #onNavDestinationSelected(MenuItem, NavController)} when a menu item is selected. 159 * The selected item in the NavigationView will automatically be updated when the destination 166 * selected item in the NavigationView. 173 public boolean onNavigationItemSelected(@NonNull MenuItem item) { [all...] |
/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/ |
H A D | MouseInputHandler.java | 103 if (DEBUG) Log.d(TAG, "Tap not associated w/ model item. Clearing selection."); 123 // tap on an item when there is an existing selection. We could extend 125 private void onItemClick(@NonNull MotionEvent e, @NonNull ItemDetails<K> item) { argument 127 checkArgument(item != null); 130 extendSelectionRange(item); 132 if (shouldClearSelection(e, item)) { 135 if (mSelectionTracker.isSelected(item.getSelectionKey())) { 136 if (mSelectionTracker.deselect(item.getSelectionKey())) { 140 selectOrFocusItem(item, e); 161 if (DEBUG) Log.d(TAG, "Ignoring Confirmed Tap on non-item 217 selectOrFocusItem(@onNull ItemDetails<K> item, @NonNull MotionEvent e) argument [all...] |
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/widget/ |
H A D | SlidingPaneLayoutActivity.java | 97 public boolean onOptionsItemSelected(MenuItem item) { argument 102 if (item.getItemId() == android.R.id.home && !mSlidingLayout.isOpen()) { 106 return super.onOptionsItemSelected(item); 110 * This list item click listener implements very simple view switching by changing
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/ |
H A D | ActionBarFragmentMenu.java | 145 public boolean onOptionsItemSelected(MenuItem item) { argument 146 if (item.getTitle().equals("Menu 1a")) { 150 if (item.getTitle().equals("Menu 1b")) { 154 return super.onOptionsItemSelected(item); 185 public boolean onOptionsItemSelected(MenuItem item) { argument 186 if (item.getTitle().equals("Menu 2")) { 228 public boolean onOptionsItemSelected(MenuItem item) { argument 229 if (item.getItemId() == R.id.simple_item) { 230 Toast.makeText(getActivity(), "Selected nested fragment's menu item.", 234 return super.onOptionsItemSelected(item); [all...] |
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/graphics/ |
H A D | PaletteActivity.java | 113 public boolean onOptionsItemSelected(MenuItem item) { argument 114 switch (item.getItemId()) { 117 item.setChecked(true); 121 item.setChecked(true); 125 item.setChecked(true); 129 item.setChecked(true); 133 item.setChecked(true); 137 return super.onOptionsItemSelected(item);
|
H A D | PaletteDetailActivity.java | 43 * Displays the full generated palette of colors in a grid, which allows clicking on an palette item 71 // Set an OnItemClickListener to display a information Toast when a Palette item is clicked 80 final Palette.Swatch item = (Palette.Swatch) adapterView.getItemAtPosition(pos); 82 item.toString(), Toast.LENGTH_LONG); 98 public boolean onOptionsItemSelected(MenuItem item) { argument 99 switch (item.getItemId()) { 102 item.setChecked(true); 106 item.setChecked(true); 110 item.setChecked(true); 114 item [all...] |
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/util/ |
H A D | SortedListActivity.java | 109 for (Item item : items) { 110 mData.add(item); 114 public void addItem(Item item) { argument 115 mData.add(item); 161 public void bindTo(Item item) { argument 162 mBoundItem = item; 163 mCheckBox.setText(item.mText); 164 mCheckBox.setChecked(item.mIsDone);
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/ |
H A D | AsyncListUtilActivity.java | 68 public boolean onOptionsItemSelected(MenuItem item) { argument 70 return super.onOptionsItemSelected(item);
|
H A D | RecyclerViewActivity.java | 84 public boolean onOptionsItemSelected(MenuItem item) { argument 86 return super.onOptionsItemSelected(item);
|
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
H A D | SearchFragment.java | 167 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, argument 170 intent.putExtra(DetailsActivity.EXTRA_ITEM, (PhotoItem) item); 191 * Different with other rows in the browsing fragment, the photo item in last row all have been 260 * Different with other rows in the browsing fragment, the photo item in last row all have been 338 * Different with other rows in the browsing fragment, the photo item in last row all have been
|
H A D | SearchSupportFragment.java | 170 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, argument 173 intent.putExtra(DetailsSupportActivity.EXTRA_ITEM, (PhotoItem) item); 194 * Different with other rows in the browsing fragment, the photo item in last row all have been 263 * Different with other rows in the browsing fragment, the photo item in last row all have been 341 * Different with other rows in the browsing fragment, the photo item in last row all have been
|
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/ |
H A D | SliceBrowser.java | 155 public boolean onOptionsItemSelected(MenuItem item) { argument 156 switch (item.getTitle().toString()) { 173 return super.onOptionsItemSelected(item); 268 public void onSliceAction(@NonNull EventInfo info, @NonNull SliceItem item) { argument 270 Log.w(TAG, "onSliceAction, sliceItem: \n" + item);
|
/frameworks/support/slices/core/src/main/java/androidx/slice/core/ |
H A D | SliceQuery.java | 41 public static boolean hasAnyHints(SliceItem item, String... hints) { argument 43 List<String> itemHints = item.getHints(); 54 public static boolean hasHints(SliceItem item, String... hints) { argument 56 List<String> itemHints = item.getHints(); 67 public static boolean hasHints(Slice item, String... hints) { argument 69 List<String> itemHints = item.getHints(); 93 private static boolean contains(SliceItem container, final SliceItem item) { argument 94 if (container == null || item == null) return false; 98 return s == item; 128 public boolean filter(SliceItem item) { 220 checkFormat(SliceItem item, String format) argument 224 checkSubtype(SliceItem item, String subtype) argument [all...] |
/frameworks/support/slices/view/src/main/java/androidx/slice/ |
H A D | SliceXml.java | 64 private static final String TAG_ITEM = "item"; 242 for (SliceItem item : s.getItems()) { 243 serialize(item, context, options, serializer); 250 private static void serialize(SliceItem item, Context context, argument 252 String format = item.getFormat(); 257 if (item.getSubType() != null) { 258 serializer.attribute(NAMESPACE, ATTR_SUBTYPE, item.getSubType()); 260 if (!item.getHints().isEmpty()) { 261 serializer.attribute(NAMESPACE, ATTR_HINTS, hintStr(item.getHints())); 267 serialize(item [all...] |