Searched refs:primaryAction (Results 1 – 7 of 7) sorted by relevance
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/render/ |
D | SliceCreator.java | 149 SliceAction primaryAction = new SliceAction(getBroadcastIntent(ACTION_TOAST, in createWeather() local 155 gb.setPrimaryAction(primaryAction); in createWeather() 257 SliceAction primaryAction = new SliceAction(getBroadcastIntent(ACTION_TOAST, in createContact() local 265 .addEndItem(primaryAction)) in createContact() 341 SliceAction primaryAction = new SliceAction(getBroadcastIntent(ACTION_TOAST, "get ride"), in createRideSlice() local 352 .setPrimaryAction(primaryAction)) in createRideSlice() 421 SliceAction primaryAction = new SliceAction(getIntent(Settings.ACTION_WIFI_SETTINGS), in createWifiSlice() local 431 .setPrimaryAction(primaryAction)); in createWifiSlice() 463 .setPrimaryAction(primaryAction)); in createWifiSlice() 465 lb.setSeeMoreAction(primaryAction.getAction()); in createWifiSlice() [all …]
|
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/ |
D | SampleSliceProvider.java | 168 SliceAction primaryAction = new SliceAction(getBroadcastIntent(ACTION_TOAST, in createWeather() local 174 .setPrimaryAction(primaryAction) in createWeather() 209 SliceAction primaryAction = new SliceAction( in createGallery() local 220 .setPrimaryAction(primaryAction)) in createGallery() 239 grb.setPrimaryAction(primaryAction) in createGallery() 327 SliceAction primaryAction = new SliceAction(getBroadcastIntent(ACTION_TOAST, in createContact() local 336 .setPrimaryAction(primaryAction)) in createContact() 439 SliceAction primaryAction = new SliceAction(getBroadcastIntent(ACTION_TOAST, "get ride"), in createRideSlice() local 447 .setPrimaryAction(primaryAction)) in createRideSlice() 518 SliceAction primaryAction = new SliceAction(getIntent(Settings.ACTION_WIFI_SETTINGS), in createWifiSlice() local [all …]
|
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/ |
D | ShortcutView.java | 153 SliceItem primaryAction = mListContent.getPrimaryAction(); in determineShortcutItems() local 156 if (primaryAction != null) { in determineShortcutItems() 158 mActionItem = primaryAction.getSlice().getItems().get(0); in determineShortcutItems() 159 mIcon = SliceQuery.find(primaryAction.getSlice(), FORMAT_IMAGE, (String) null, in determineShortcutItems() 161 mLabel = SliceQuery.find(primaryAction.getSlice(), FORMAT_TEXT, (String) null, in determineShortcutItems()
|
D | ListContent.java | 314 SliceAction primaryAction = null; in getRowType() local 316 primaryAction = new SliceActionImpl(actionItem); in getRowType() 322 } else if (primaryAction != null && primaryAction.isToggle()) { in getRowType()
|
D | RowView.java | 264 SliceItem primaryAction = mRowContent.getPrimaryAction(); in populateViews() local 265 if (primaryAction != null && primaryAction != startItem) { in populateViews() 266 mRowAction = new SliceActionImpl(primaryAction); in populateViews()
|
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/ |
D | SliceMetadataTest.java | 127 SliceAction primaryAction = new SliceAction(pi, icon, "action"); in testGetPrimaryActionForGrid() local 131 grb.setPrimaryAction(primaryAction); in testGetPrimaryActionForGrid() 139 assertEquivalent(primaryAction, gridInfo.getPrimaryAction()); in testGetPrimaryActionForGrid() 150 SliceAction primaryAction = new SliceAction(pi, icon, "action"); in testGetPrimaryActionForRow() local 157 .setPrimaryAction(primaryAction); in testGetPrimaryActionForRow() 162 assertEquivalent(primaryAction, rowInfo.getPrimaryAction()); in testGetPrimaryActionForRow() 173 SliceAction primaryAction = new SliceAction(pi, icon, "action"); in testGetPrimaryActionForHeader() local 180 hb.setPrimaryAction(primaryAction); in testGetPrimaryActionForHeader() 185 assertEquivalent(primaryAction, headerInfo.getPrimaryAction()); in testGetPrimaryActionForHeader() 477 SliceAction primaryAction = new SliceAction(getIntent(""), icon, "action"); in testGetInputRangeAction() local [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | TextClassificationTest.java | 105 final RemoteAction primaryAction = result.getActions().get(0); in testParcel() local 106 assertEquals(primaryLabel, primaryAction.getTitle()); in testParcel() 107 assertEquals(primaryDescription, primaryAction.getContentDescription()); in testParcel() 108 assertEquals(primaryPendingIntent, primaryAction.getActionIntent()); in testParcel()
|