Home
last modified time | relevance | path

Searched refs:CarSystemBarButton (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DButtonSelectionStateController.java55 private final Set<CarSystemBarButton> mRegisteredViews = new HashSet<>();
61 protected HashSet<CarSystemBarButton> mSelectedButtons;
75 if (v instanceof CarSystemBarButton) { in addAllButtonsWithSelectionState()
76 if (((CarSystemBarButton) v).hasSelectionState()) { in addAllButtonsWithSelectionState()
77 addButtonWithSelectionState((CarSystemBarButton) v); in addAllButtonsWithSelectionState()
131 HashSet<CarSystemBarButton> selectedButtons = findSelectedButtons(validTaskInfo); in taskChanged()
164 private void addButtonWithSelectionState(CarSystemBarButton carSystemBarButton) { in addButtonWithSelectionState()
185 private HashSet<CarSystemBarButton> findSelectedButtons(RootTaskInfo validTaskInfo) { in findSelectedButtons()
191 HashSet<CarSystemBarButton> selectedButtons = in findSelectedButtons()
228 private HashSet<CarSystemBarButton> findButtonsByComponentName( in findButtonsByComponentName()
[all …]
DButtonRoleHolderController.java57 private final Map<String, CarSystemBarButton> mButtonMap = new HashMap<>();
77 if (v instanceof CarSystemBarButton) { in addAllButtonsWithRoleName()
78 CarSystemBarButton button = (CarSystemBarButton) v; in addAllButtonsWithRoleName()
91 private void addButtonWithRoleName(CarSystemBarButton button, String roleName) { in addButtonWithRoleName()
118 CarSystemBarButton button = mButtonMap.get(roleName); in updateIcon()
DCarSystemBarView.java66 private CarSystemBarButton mHomeButton;
67 private CarSystemBarButton mPassengerHomeButton;
69 private CarSystemBarButton mNotificationsButton;
70 private CarSystemBarButton mHvacButton;
81 private CarSystemBarButton mControlCenterButton;
146 if (v instanceof CarSystemBarButton) { in setupSystemBarButtons()
147 ((CarSystemBarButton) v).setUserTracker(userTracker); in setupSystemBarButtons()
286 CarSystemBarButton button = findViewById(viewId); in setDisabledSystemBarButton()
DRecentsButtonStateProvider.java49 private final CarSystemBarButton mCarSystemBarButton;
54 public RecentsButtonStateProvider(Context context, CarSystemBarButton carSystemBarButton) { in RecentsButtonStateProvider()
DCarSystemBarButton.java56 public class CarSystemBarButton extends LinearLayout implements class
102 public CarSystemBarButton(Context context, AttributeSet attrs) { in CarSystemBarButton() method in CarSystemBarButton
113 R.styleable.CarSystemBarButton); in CarSystemBarButton()
DVolumeButton.java27 public class VolumeButton extends CarSystemBarButton {
DAppGridButton.java29 public class AppGridButton extends CarSystemBarButton {
DAssistantButton.java39 public class AssistantButton extends CarSystemBarButton {
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DCarSystemBarButtonTest.java72 private CarSystemBarButton mDefaultButton;
111 CarSystemBarButton selectedIconUndefinedButton = mTestView.findViewById( in onSelected_selectedIconUndefined_displaysSameIcon()
146 CarSystemBarButton highlightWhenSelectedButton = mTestView.findViewById( in onUnselected_highlightWhenSelected_applyDefaultUnselectedAlpha()
157 CarSystemBarButton highlightWhenSelectedButton = mTestView.findViewById( in onSelected_highlightWhenSelected_applyDefaultSelectedAlpha()
178 CarSystemBarButton showMoreWhenSelected = mTestView.findViewById( in onSelected_showMoreWhenSelected_showsMoreIcon()
190 CarSystemBarButton showMoreWhenSelected = mTestView.findViewById( in onUnselected_showMoreWhenSelected_doesNotShowMoreIcon()
203 CarSystemBarButton roleBasedButton = mTestView.findViewById(R.id.role_based_button); in onUnselected_withAppIcon_showsAppIcon()
218 CarSystemBarButton roleBasedButton = mTestView.findViewById(R.id.role_based_button); in onUnselected_withAppIcon_applyUnselectedAlpha()
229 CarSystemBarButton roleBasedButton = mTestView.findViewById(R.id.role_based_button); in onSelected_withAppIcon_showsAppIcon()
244 CarSystemBarButton roleBasedButton = mTestView.findViewById(R.id.role_based_button); in onSelected_withAppIcon_applySelectedAlpha()
[all …]
DButtonSelectionStateControllerTest.java72 CarSystemBarButton testButton = mTestView.findViewById(R.id.detectable_by_component_name); in onTaskChanged_buttonDetectableByComponentName_selectsAssociatedButton()
83 CarSystemBarButton testButton = mTestView.findViewById(R.id.detectable_by_category); in onTaskChanged_buttonDetectableByCategory_selectsAssociatedButton()
94 CarSystemBarButton testButton = mTestView.findViewById(R.id.detectable_by_package); in onTaskChanged_buttonDetectableByPackage_selectsAssociatedButton()
105 CarSystemBarButton oldButton = mTestView.findViewById(R.id.detectable_by_component_name); in onTaskChanged_deselectsPreviouslySelectedButton()
120 private void assertbuttonSelected(CarSystemBarButton button) { in assertbuttonSelected()
124 private void assertButtonUnselected(CarSystemBarButton button) { in assertButtonUnselected()
DCarSystemBarControllerTest.java596 CarSystemBarButton notifications = getNotificationCarSystemBarButton(); in testToggleAllNotificationsUnseenIndicator_bottomEnabled_hasUnseen_setCorrectly()
609 CarSystemBarButton notifications = getNotificationCarSystemBarButton(); in testToggleAllNotificationsUnseenIndicator_bottomEnabled_noUnseen_setCorrectly()
646 CarSystemBarButton button = bottomBar.findViewById(R.id.home); in testRefreshSystemBar_homeDisabled()
662 CarSystemBarButton button = bottomBar.findViewById(R.id.phone_nav); in testRefreshSystemBar_phoneNavDisabled()
676 CarSystemBarButton button = bottomBar.findViewById(R.id.grid_nav); in testRefreshSystemBar_appGridisabled()
689 CarSystemBarButton button = getNotificationCarSystemBarButton(); in testRefreshSystemBar_notificationDisabled()
801 private CarSystemBarButton getNotificationCarSystemBarButton() { in getNotificationCarSystemBarButton()
DButtonRoleHolderControllerTest.java64 private CarSystemBarButton mNavButtonDefaultAppIconForRoleWithEnabled;
65 private CarSystemBarButton mNavButtonDefaultAppIconForRoleWithDisabled;
DRecentsButtonStateProviderTest.java76 private CarSystemBarButton mCarSystemBarButton;
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/systembar/
DCarTopSystemBarButton.java28 public class CarTopSystemBarButton extends CarSystemBarButton {
DCarUiRecentsButtonStateProvider.java33 public CarUiRecentsButtonStateProvider(Context context, CarSystemBarButton carSystemBarButton) { in CarUiRecentsButtonStateProvider()
DCarUiPortraitSystemBarButton.java44 public class CarUiPortraitSystemBarButton extends CarSystemBarButton {