public class StatusBarIconController extends StatusBarIconList implements TunerService.Tunable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ICON_TINT |
static long |
DEFAULT_TINT_ANIMATION_DURATION |
static String |
ICON_BLACKLIST |
Constructor and Description |
---|
StatusBarIconController(Context context,
View statusBar,
View keyguardStatusBar,
PhoneStatusBar phoneStatusBar) |
Modifier and Type | Method and Description |
---|---|
void |
appTransitionCancelled() |
void |
appTransitionPending() |
void |
appTransitionStarting(long startTime,
long duration) |
void |
dispatchDemoCommand(String command,
Bundle args) |
void |
dump(PrintWriter pw) |
static float |
getDarkIntensity(Rect tintArea,
View view,
float intensity) |
static ArraySet<String> |
getIconBlacklist(String blackListStr) |
static int |
getTint(Rect tintArea,
View view,
int color) |
void |
hideNotificationIconArea(boolean animate) |
void |
hideSystemIconArea(boolean animate) |
void |
onDensityOrFontScaleChanged() |
void |
onTuningChanged(String key,
String newValue) |
void |
removeIcon(int index) |
void |
removeIcon(String slot) |
void |
setClockVisibility(boolean visible) |
void |
setExternalIcon(String slot) |
void |
setIcon(int index,
StatusBarIcon icon) |
void |
setIcon(String slot,
int resourceId,
CharSequence contentDescription) |
void |
setIcon(String slot,
StatusBarIcon icon) |
void |
setIconsDark(boolean dark,
boolean animate) |
void |
setIconsDarkArea(Rect darkArea)
Sets the dark area so
setIconsDark(boolean, boolean) only affects the icons in the specified area. |
void |
setIconVisibility(String slot,
boolean visibility) |
void |
setSignalCluster(com.android.systemui.statusbar.SignalClusterView signalCluster) |
void |
showNotificationIconArea(boolean animate) |
void |
showSystemIconArea(boolean animate) |
void |
updateNotificationIcons(com.android.systemui.statusbar.NotificationData notificationData) |
getIcon, getSlot, getSlotIndex, getViewIndex, size
public static final long DEFAULT_TINT_ANIMATION_DURATION
public static final String ICON_BLACKLIST
public static final int DEFAULT_ICON_TINT
public StatusBarIconController(Context context, View statusBar, View keyguardStatusBar, PhoneStatusBar phoneStatusBar)
public void setSignalCluster(com.android.systemui.statusbar.SignalClusterView signalCluster)
public void onTuningChanged(String key, String newValue)
onTuningChanged
in interface TunerService.Tunable
public void setIcon(String slot, int resourceId, CharSequence contentDescription)
public void setExternalIcon(String slot)
public void setIcon(String slot, StatusBarIcon icon)
public void removeIcon(String slot)
public void setIconVisibility(String slot, boolean visibility)
public void removeIcon(int index)
removeIcon
in class StatusBarIconList
public void setIcon(int index, StatusBarIcon icon)
setIcon
in class StatusBarIconList
public void updateNotificationIcons(com.android.systemui.statusbar.NotificationData notificationData)
public void hideSystemIconArea(boolean animate)
public void showSystemIconArea(boolean animate)
public void hideNotificationIconArea(boolean animate)
public void showNotificationIconArea(boolean animate)
public void setClockVisibility(boolean visible)
public void dump(PrintWriter pw)
dump
in class StatusBarIconList
public void setIconsDarkArea(Rect darkArea)
setIconsDark(boolean, boolean)
only affects the icons in the specified area.darkArea
- the area in which icons should change it's tint, in logical screen
coordinatespublic void setIconsDark(boolean dark, boolean animate)
public static int getTint(Rect tintArea, View view, int color)
public static float getDarkIntensity(Rect tintArea, View view, float intensity)
public void appTransitionPending()
public void appTransitionCancelled()
public void appTransitionStarting(long startTime, long duration)
public void onDensityOrFontScaleChanged()