public class UserTile extends QSTile<QSTile.State> implements UserInfoController.OnUserInfoChangedListener
QSTile.AirplaneBooleanState, QSTile.AnimationIcon, QSTile.BooleanState, QSTile.Callback, QSTile.DetailAdapter, QSTile.DrawableIcon, QSTile.H, QSTile.Host, QSTile.Icon, QSTile.ResourceIcon, QSTile.SignalState, QSTile.State
Constructor and Description |
---|
UserTile(QSTile.Host host) |
Modifier and Type | Method and Description |
---|---|
QSTile.DetailAdapter |
getDetailAdapter() |
Intent |
getLongClickIntent() |
int |
getMetricsCategory()
Declare the category of this tile.
|
CharSequence |
getTileLabel() |
protected void |
handleClick() |
protected void |
handleUpdateState(QSTile.State state,
Object arg) |
QSTile.State |
newTileState() |
void |
onUserInfoChanged(String name,
Drawable picture) |
void |
setListening(boolean listening) |
addCallback, checkIfRestrictionEnforcedByAdminOnly, clearState, click, composeChangeAnnouncement, createTileView, destroy, fireScanStateChanged, fireToggleStateChanged, getHost, getState, getTileSpec, handleClearState, handleDestroy, handleLongClick, handleRefreshState, handleSecondaryClick, handleUserSwitch, isAvailable, longClick, refreshState, refreshState, removeCallback, removeCallbacks, secondaryClick, setDetailListening, setListening, setTileSpec, shouldAnnouncementBeDelayed, showDetail, userSwitch
public UserTile(QSTile.Host host)
public QSTile.State newTileState()
newTileState
in class QSTile<QSTile.State>
public Intent getLongClickIntent()
getLongClickIntent
in class QSTile<QSTile.State>
protected void handleClick()
handleClick
in class QSTile<QSTile.State>
public QSTile.DetailAdapter getDetailAdapter()
getDetailAdapter
in class QSTile<QSTile.State>
public int getMetricsCategory()
QSTile
com.android.internal.logging.MetricsProto.MetricsEvent
by editing frameworks/base/proto/src/metrics_constants.proto.getMetricsCategory
in class QSTile<QSTile.State>
public void setListening(boolean listening)
setListening
in class QSTile<QSTile.State>
public CharSequence getTileLabel()
getTileLabel
in class QSTile<QSTile.State>
protected void handleUpdateState(QSTile.State state, Object arg)
handleUpdateState
in class QSTile<QSTile.State>
public void onUserInfoChanged(String name, Drawable picture)
onUserInfoChanged
in interface UserInfoController.OnUserInfoChangedListener