Home
last modified time | relevance | path

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

/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DButtonSelectionStateController.java57 private final Set<CarSystemBarButton> mRegisteredViews = new HashSet<>();
62 protected HashSet<CarSystemBarButton> mSelectedButtons;
78 if (v instanceof CarSystemBarButton) { in addAllButtonsWithSelectionState()
79 if (((CarSystemBarButton) v).hasSelectionState()) { in addAllButtonsWithSelectionState()
80 addButtonWithSelectionState((CarSystemBarButton) v); in addAllButtonsWithSelectionState()
137 HashSet<CarSystemBarButton> selectedButtons = findSelectedButtons(validTaskInfo); in taskChanged()
161 private void addButtonWithSelectionState(CarSystemBarButton carSystemBarButton) { in addButtonWithSelectionState()
182 private HashSet<CarSystemBarButton> findSelectedButtons(RootTaskInfo validTaskInfo) { in findSelectedButtons()
207 HashSet<CarSystemBarButton> selectedButtons = in findSelectedButtons()
222 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()
DCarSystemBarButton.java48 public class CarSystemBarButton extends LinearLayout { class
85 public CarSystemBarButton(Context context, AttributeSet attrs) { in CarSystemBarButton() method in CarSystemBarButton
93 R.styleable.CarSystemBarButton); in CarSystemBarButton()
DAssitantButton.java34 public class AssitantButton extends CarSystemBarButton {
DCarSystemBarView.java55 private CarSystemBarButton mNotificationsButton;
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DCarSystemBarButtonTest.java72 private CarSystemBarButton mDefaultButton;
109 CarSystemBarButton selectedIconUndefinedButton = mTestView.findViewById( in onSelected_selectedIconUndefined_displaysSameIcon()
140 CarSystemBarButton highlightWhenSelectedButton = mTestView.findViewById( in onUnselected_highlightWhenSelected_applyDefaultUnselectedAlpha()
150 CarSystemBarButton highlightWhenSelectedButton = mTestView.findViewById( in onSelected_highlightWhenSelected_applyDefaultSelectedAlpha()
169 CarSystemBarButton showMoreWhenSelected = mTestView.findViewById( in onSelected_showMoreWhenSelected_showsMoreIcon()
180 CarSystemBarButton showMoreWhenSelected = mTestView.findViewById( in onUnselected_showMoreWhenSelected_doesNotShowMoreIcon()
192 CarSystemBarButton roleBasedButton = mTestView.findViewById(R.id.role_based_button); in onUnselected_withAppIcon_showsAppIcon()
206 CarSystemBarButton roleBasedButton = mTestView.findViewById(R.id.role_based_button); in onUnselected_withAppIcon_applyUnselectedAlpha()
216 CarSystemBarButton roleBasedButton = mTestView.findViewById(R.id.role_based_button); in onSelected_withAppIcon_showsAppIconWithSelectedAlpha()
230 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()
DButtonRoleHolderControllerTest.java64 private CarSystemBarButton mNavButtonDefaultAppIconForRoleWithEnabled;
65 private CarSystemBarButton mNavButtonDefaultAppIconForRoleWithDisabled;
DCarSystemBarControllerTest.java531 CarSystemBarButton notifications = bottomBar.findViewById(R.id.notifications); in testToggleAllNotificationsUnseenIndicator_bottomEnabled_hasUnseen_setCorrectly()
545 CarSystemBarButton notifications = bottomBar.findViewById(R.id.notifications); in testToggleAllNotificationsUnseenIndicator_bottomEnabled_noUnseen_setCorrectly()