Home
last modified time | relevance | path

Searched refs:CarNotificationActionButton (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/template/
DCarNotificationActionsViewTest.java126 .getMuteClickHandler(any(CarNotificationActionButton.class), any(AlertEntry.class), in setup()
156 CarNotificationActionButton button = in onBind_noAction_doesNotCreateButtons()
169 CarNotificationActionButton playButton = mCarNotificationActionsView.getActionButtons().get( in onBind_actionExists_isCarCompatibleMessage_playButtonIsVisible()
181 CarNotificationActionButton playButton = mCarNotificationActionsView.getActionButtons().get( in onBind_actionExists_isCarCompatibleMessage_playButtonHasClickListener()
193 CarNotificationActionButton playButton = mCarNotificationActionsView.getActionButtons().get( in onBind_actionExists_isCarCompatibleMessage_playButtonShowsPlayLabel()
206 CarNotificationActionButton playButton = mCarNotificationActionsView.getActionButtons().get( in onBind_actionExists_isCarCompatibleMessage_playButtonShowsPlayDrawable()
222 CarNotificationActionButton playButton = mCarNotificationActionsView.getActionButtons().get( in onBind_carCompatibleMessage_noAssistantNoFallback_playButtonIsHidden()
237 CarNotificationActionButton playButton = mCarNotificationActionsView.getActionButtons().get( in onBind_carCompatibleMessage_noAssistantWithFallback_playButtonIsVisible()
252 CarNotificationActionButton replyButton = mCarNotificationActionsView.getActionButtons() in onBind_actionExists_isCarCompatibleMessage_replyButtonIsVisible()
264 CarNotificationActionButton replyButton = mCarNotificationActionsView.getActionButtons() in onBind_actionExists_isCarCompatibleMessage_replyButtonHasClickListener()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationActionButton.java35 public class CarNotificationActionButton extends LinearLayout { class
42 public CarNotificationActionButton(Context context) { in CarNotificationActionButton() method in CarNotificationActionButton
46 public CarNotificationActionButton(Context context, @Nullable AttributeSet attrs) { in CarNotificationActionButton() method in CarNotificationActionButton
50 public CarNotificationActionButton(Context context, @Nullable AttributeSet attrs, in CarNotificationActionButton() method in CarNotificationActionButton
55 public CarNotificationActionButton(Context context, AttributeSet attrs, int defStyleAttr, in CarNotificationActionButton() method in CarNotificationActionButton
67 context.obtainStyledAttributes(attrs, R.styleable.CarNotificationActionButton); in CarNotificationActionButton()
DCarNotificationActionsView.java67 private final List<CarNotificationActionButton> mActionButtons = new ArrayList<>();
218 CarNotificationActionButton button = mActionButtons.get(i); in bind()
252 for (CarNotificationActionButton button : mActionButtons) { in resetButtons()
269 List<CarNotificationActionButton> getActionButtons() { in getActionButtons()
286 CarNotificationActionButton button = mActionButtons.get(FIRST_MESSAGE_ACTION_BUTTON_INDEX); in createPlayButton()
303 CarNotificationActionButton button = mActionButtons.get(index); in createReplyButton()
321 CarNotificationActionButton button = mActionButtons.get(index); in createMuteButton()
328 private void setMuteStatus(CarNotificationActionButton button, boolean isMuted) { in setMuteStatus()
364 CarNotificationActionButton button = getActionButtons().get(i); in onCallStateChanged()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DNotificationClickHandlerFactoryTest.java51 import com.android.car.notification.template.CarNotificationActionButton;
332 CarNotificationActionButton button = new CarNotificationActionButton(mContext); in onClickMuteClickHandler_togglesMute()
355 CarNotificationActionButton button = new CarNotificationActionButton(mContext); in onClickMuteClickHandler_mutePendingIntent_notificationDataManagerUnchanged()
373 CarNotificationActionButton button = new CarNotificationActionButton(mContext); in onClickMuteClickHandler_mutePendingIntent_dismissesNotification()
402 CarNotificationActionButton button = new CarNotificationActionButton(mContext); in onClickMuteClickHandler_mutePendingIntent_firesPendingIntent()
421 CarNotificationActionButton button = new CarNotificationActionButton(mContext); in onClickMuteClickHandler_isMuted_muteStatusSetTrue()
436 CarNotificationActionButton button = new CarNotificationActionButton(mContext); in onClickMuteClickHandler_isUnmuted_muteStatusSetFalse()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationClickHandlerFactory.java43 import com.android.car.notification.template.CarNotificationActionButton;
254 CarNotificationActionButton muteButton, AlertEntry messageNotification,
296 void setMuteStatus(CarNotificationActionButton button, boolean isMuted);