public class QSTileHost extends Object implements QSTile.Host, TunerService.Tunable
QSTile.Host.Callback
Modifier and Type | Field and Description |
---|---|
protected ArrayList<String> |
mTileSpecs |
static String |
TILES_SETTING |
Constructor and Description |
---|
QSTileHost(Context context,
PhoneStatusBar statusBar,
BluetoothController bluetooth,
LocationController location,
RotationLockController rotation,
NetworkController network,
ZenModeController zen,
HotspotController hotspot,
CastController cast,
FlashlightController flashlight,
UserSwitcherController userSwitcher,
UserInfoController userInfo,
KeyguardMonitor keyguard,
SecurityController security,
BatteryController battery,
StatusBarIconController iconController,
NextAlarmController nextAlarmController) |
public static final String TILES_SETTING
public QSTileHost(Context context, PhoneStatusBar statusBar, BluetoothController bluetooth, LocationController location, RotationLockController rotation, NetworkController network, ZenModeController zen, HotspotController hotspot, CastController cast, FlashlightController flashlight, UserSwitcherController userSwitcher, UserInfoController userInfo, KeyguardMonitor keyguard, SecurityController security, BatteryController battery, StatusBarIconController iconController, NextAlarmController nextAlarmController)
public NextAlarmController getNextAlarmController()
public void setHeaderView(View view)
public PhoneStatusBar getPhoneStatusBar()
public void destroy()
public void addCallback(QSTile.Host.Callback callback)
addCallback
in interface QSTile.Host
public void removeCallback(QSTile.Host.Callback callback)
removeCallback
in interface QSTile.Host
public Collection<QSTile<?>> getTiles()
getTiles
in interface QSTile.Host
public void startActivityDismissingKeyguard(Intent intent)
startActivityDismissingKeyguard
in interface QSTile.Host
public void startActivityDismissingKeyguard(PendingIntent intent)
startActivityDismissingKeyguard
in interface QSTile.Host
public void startRunnableDismissingKeyguard(Runnable runnable)
startRunnableDismissingKeyguard
in interface QSTile.Host
public void warn(String message, Throwable t)
warn
in interface QSTile.Host
public void animateToggleQSExpansion()
animateToggleQSExpansion
in interface QSTile.Host
public void collapsePanels()
collapsePanels
in interface QSTile.Host
public void openPanels()
openPanels
in interface QSTile.Host
public Looper getLooper()
getLooper
in interface QSTile.Host
public Context getContext()
getContext
in interface QSTile.Host
public BluetoothController getBluetoothController()
getBluetoothController
in interface QSTile.Host
public LocationController getLocationController()
getLocationController
in interface QSTile.Host
public RotationLockController getRotationLockController()
getRotationLockController
in interface QSTile.Host
public NetworkController getNetworkController()
getNetworkController
in interface QSTile.Host
public ZenModeController getZenModeController()
getZenModeController
in interface QSTile.Host
public HotspotController getHotspotController()
getHotspotController
in interface QSTile.Host
public CastController getCastController()
getCastController
in interface QSTile.Host
public FlashlightController getFlashlightController()
getFlashlightController
in interface QSTile.Host
public KeyguardMonitor getKeyguardMonitor()
getKeyguardMonitor
in interface QSTile.Host
public UserSwitcherController getUserSwitcherController()
getUserSwitcherController
in interface QSTile.Host
public UserInfoController getUserInfoController()
getUserInfoController
in interface QSTile.Host
public BatteryController getBatteryController()
getBatteryController
in interface QSTile.Host
public SecurityController getSecurityController()
public TileServices getTileServices()
getTileServices
in interface QSTile.Host
public StatusBarIconController getIconController()
public ManagedProfileController getManagedProfileController()
getManagedProfileController
in interface QSTile.Host
public void onTuningChanged(String key, String newValue)
onTuningChanged
in interface TunerService.Tunable
public void removeTile(String tileSpec)
removeTile
in interface QSTile.Host
public void addTile(String spec)
public void addTile(ComponentName tile)
public void removeTile(ComponentName tile)