Searched refs:StatusBarIconHolder (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | StatusBarIconListTest.java | 17 import com.android.systemui.statusbar.phone.StatusBarIconHolder; 53 StatusBarIconHolder sbHolder = mock(StatusBarIconHolder.class); in testAddSlotSlidesIcons() 63 StatusBarIconHolder sbHolderA = mock(StatusBarIconHolder.class); in testGetAndSetIcon() 64 StatusBarIconHolder sbHolderB = mock(StatusBarIconHolder.class); in testGetAndSetIcon() 75 StatusBarIconHolder sbHolderA = mock(StatusBarIconHolder.class); in testRemoveIcon() 76 StatusBarIconHolder sbHolderB = mock(StatusBarIconHolder.class); in testRemoveIcon() 86 StatusBarIconHolder sbHolder = mock(StatusBarIconHolder.class); in testGetViewIndex_NoMultiples() 100 StatusBarIconHolder sbHolder = mock(StatusBarIconHolder.class); in testGetViewIndex_MultipleIconsPerSlot() 106 StatusBarIconHolder sbHolder2 = mock(StatusBarIconHolder.class); in testGetViewIndex_MultipleIconsPerSlot() 107 StatusBarIconHolder sbHolder3 = mock(StatusBarIconHolder.class); in testGetViewIndex_MultipleIconsPerSlot() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarIconHolder.java | 31 public class StatusBarIconHolder { class 43 public static StatusBarIconHolder fromIcon(StatusBarIcon icon) { in fromIcon() 44 StatusBarIconHolder wrapper = new StatusBarIconHolder(); in fromIcon() 50 public static StatusBarIconHolder fromResId(Context context, int resId, in fromResId() 52 StatusBarIconHolder holder = new StatusBarIconHolder(); in fromResId() 58 public static StatusBarIconHolder fromWifiIconState(WifiIconState state) { in fromWifiIconState() 59 StatusBarIconHolder holder = new StatusBarIconHolder(); in fromWifiIconState() 65 public static StatusBarIconHolder fromMobileIconState(MobileIconState state) { in fromMobileIconState() 66 StatusBarIconHolder holder = new StatusBarIconHolder(); in fromMobileIconState()
|
D | StatusBarIconList.java | 65 public void setIcon(int index, @NonNull StatusBarIconHolder holder) { in setIcon() 77 public StatusBarIconHolder getIcon(int index, int tag) { in getIcon() 105 private StatusBarIconHolder mHolder; 117 private ArrayList<StatusBarIconHolder> mSubSlots; 119 public Slot(String name, StatusBarIconHolder iconHolder) { in Slot() 129 public StatusBarIconHolder getHolderForTag(int tag) { in getHolderForTag() 135 for (StatusBarIconHolder holder : mSubSlots) { in getHolderForTag() 145 public void addHolder(StatusBarIconHolder holder) { in addHolder() 173 private void setSubSlot(StatusBarIconHolder holder, int tag) { in setSubSlot() 191 StatusBarIconHolder h = mSubSlots.get(i); in getIndexForTag() [all …]
|
D | StatusBarIconControllerImpl.java | 93 List<StatusBarIconHolder> holders = slot.getHolderListInViewOrder(); in addIconGroup() 96 for (StatusBarIconHolder holder : holders) { in addIconGroup() 118 ArrayMap<Slot, List<StatusBarIconHolder>> slotsToReAdd = new ArrayMap<>(); in onTuningChanged() 133 List<StatusBarIconHolder> iconsForSlot = slotsToReAdd.get(item); in onTuningChanged() 135 for (StatusBarIconHolder holder : iconsForSlot) { in onTuningChanged() 144 private void addSystemIcon(int index, StatusBarIconHolder holder) { in addSystemIcon() 155 StatusBarIconHolder holder = getIcon(index, 0); in setIcon() 160 holder = StatusBarIconHolder.fromIcon(icon); in setIcon() 183 StatusBarIconHolder holder = getIcon(index, 0); in setSignalIcon() 185 holder = StatusBarIconHolder.fromWifiIconState(state); in setSignalIcon() [all …]
|
D | StatusBarIconController.java | 20 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; 108 StatusBarIconHolder holder) { in onIconAdded() 165 StatusBarIconHolder holder) { in onIconAdded() 238 StatusBarIconHolder holder) { in onIconAdded() 243 StatusBarIconHolder holder) { in addHolder() 350 public void onSetIconHolder(int viewIndex, StatusBarIconHolder holder) { in onSetIconHolder()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarIconControllerTest.java | 17 import static com.android.systemui.statusbar.phone.StatusBarIconHolder.TYPE_ICON; 18 import static com.android.systemui.statusbar.phone.StatusBarIconHolder.TYPE_MOBILE; 19 import static com.android.systemui.statusbar.phone.StatusBarIconHolder.TYPE_WIFI; 75 StatusBarIconHolder holder = holderForType(TYPE_ICON); in testCallOnAdd_forManager() 89 private StatusBarIconHolder holderForType(int type) { in holderForType() 92 return StatusBarIconHolder.fromMobileIconState(mock(MobileIconState.class)); in holderForType() 95 return StatusBarIconHolder.fromWifiIconState(mock(WifiIconState.class)); in holderForType() 99 return StatusBarIconHolder.fromIcon(mock(StatusBarIcon.class)); in holderForType()
|