Home
last modified time | relevance | path

Searched refs:StatusBarIconHolder (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DStatusBarIconListTest.java15 import com.android.systemui.statusbar.phone.StatusBarIconHolder;
50 StatusBarIconHolder sbHolder = mock(StatusBarIconHolder.class); in testAddSlotSlidesIcons()
60 StatusBarIconHolder sbHolderA = mock(StatusBarIconHolder.class); in testGetAndSetIcon()
61 StatusBarIconHolder sbHolderB = mock(StatusBarIconHolder.class); in testGetAndSetIcon()
72 StatusBarIconHolder sbHolderA = mock(StatusBarIconHolder.class); in testRemoveIcon()
73 StatusBarIconHolder sbHolderB = mock(StatusBarIconHolder.class); in testRemoveIcon()
83 StatusBarIconHolder sbHolder = mock(StatusBarIconHolder.class); in testGetViewIndex_NoMultiples()
97 StatusBarIconHolder sbHolder = mock(StatusBarIconHolder.class); in testGetViewIndex_MultipleIconsPerSlot()
103 StatusBarIconHolder sbHolder2 = mock(StatusBarIconHolder.class); in testGetViewIndex_MultipleIconsPerSlot()
104 StatusBarIconHolder sbHolder3 = mock(StatusBarIconHolder.class); in testGetViewIndex_MultipleIconsPerSlot()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarIconHolder.java30 public class StatusBarIconHolder { class
42 public static StatusBarIconHolder fromIcon(StatusBarIcon icon) { in fromIcon()
43 StatusBarIconHolder wrapper = new StatusBarIconHolder(); in fromIcon()
49 public static StatusBarIconHolder fromResId(Context context, int resId, in fromResId()
51 StatusBarIconHolder holder = new StatusBarIconHolder(); in fromResId()
57 public static StatusBarIconHolder fromWifiIconState(WifiIconState state) { in fromWifiIconState()
58 StatusBarIconHolder holder = new StatusBarIconHolder(); in fromWifiIconState()
64 public static StatusBarIconHolder fromMobileIconState(MobileIconState state) { in fromMobileIconState()
65 StatusBarIconHolder holder = new StatusBarIconHolder(); in fromMobileIconState()
DStatusBarIconList.java64 public void setIcon(int index, @NonNull StatusBarIconHolder holder) { in setIcon()
76 public StatusBarIconHolder getIcon(int index, int tag) { in getIcon()
104 private StatusBarIconHolder mHolder;
116 private ArrayList<StatusBarIconHolder> mSubSlots;
118 public Slot(String name, StatusBarIconHolder iconHolder) { in Slot()
128 public StatusBarIconHolder getHolderForTag(int tag) { in getHolderForTag()
134 for (StatusBarIconHolder holder : mSubSlots) { in getHolderForTag()
144 public void addHolder(StatusBarIconHolder holder) { in addHolder()
172 private void setSubSlot(StatusBarIconHolder holder, int tag) { in setSubSlot()
190 StatusBarIconHolder h = mSubSlots.get(i); in getIndexForTag()
[all …]
DStatusBarIconControllerImpl.java91 List<StatusBarIconHolder> holders = slot.getHolderListInViewOrder(); in addIconGroup()
94 for (StatusBarIconHolder holder : holders) { in addIconGroup()
116 ArrayMap<Slot, List<StatusBarIconHolder>> slotsToReAdd = new ArrayMap<>(); in onTuningChanged()
131 List<StatusBarIconHolder> iconsForSlot = slotsToReAdd.get(item); in onTuningChanged()
133 for (StatusBarIconHolder holder : iconsForSlot) { in onTuningChanged()
142 private void addSystemIcon(int index, StatusBarIconHolder holder) { in addSystemIcon()
154 StatusBarIconHolder holder = getIcon(index, 0); in setIcon()
159 holder = StatusBarIconHolder.fromIcon(icon); in setIcon()
182 StatusBarIconHolder holder = getIcon(index, 0); in setSignalIcon()
184 holder = StatusBarIconHolder.fromWifiIconState(state); in setSignalIcon()
[all …]
DStatusBarIconController.java19 import static com.android.systemui.statusbar.phone.StatusBarIconHolder.TYPE_ICON;
20 import static com.android.systemui.statusbar.phone.StatusBarIconHolder.TYPE_MOBILE;
21 import static com.android.systemui.statusbar.phone.StatusBarIconHolder.TYPE_WIFI;
106 StatusBarIconHolder holder) { in onIconAdded()
163 StatusBarIconHolder holder) { in onIconAdded()
236 StatusBarIconHolder holder) { in onIconAdded()
241 StatusBarIconHolder holder) { in addHolder()
348 public void onSetIconHolder(int viewIndex, StatusBarIconHolder holder) { in onSetIconHolder()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarIconControllerTest.java20 import static com.android.systemui.statusbar.phone.StatusBarIconHolder.TYPE_ICON;
21 import static com.android.systemui.statusbar.phone.StatusBarIconHolder.TYPE_MOBILE;
22 import static com.android.systemui.statusbar.phone.StatusBarIconHolder.TYPE_WIFI;
77 StatusBarIconHolder holder = holderForType(TYPE_ICON); in testCallOnAdd_forManager()
91 private StatusBarIconHolder holderForType(int type) { in holderForType()
94 return StatusBarIconHolder.fromMobileIconState(mock(MobileIconState.class)); in holderForType()
97 return StatusBarIconHolder.fromWifiIconState(mock(WifiIconState.class)); in holderForType()
101 return StatusBarIconHolder.fromIcon(mock(StatusBarIcon.class)); in holderForType()