Methods Summary |
---|
public void | click()
mHandler.sendEmptyMessage(H.CLICK);
|
protected java.lang.String | composeChangeAnnouncement()
return null;
|
public QSTileView | createTileView(android.content.Context context)
return new QSTileView(context);
|
public void | destroy()
mHandler.sendEmptyMessage(H.DESTROY);
|
public void | fireScanStateChanged(boolean state)
mHandler.obtainMessage(H.SCAN_STATE_CHANGED, state ? 1 : 0, 0).sendToTarget();
|
public void | fireToggleStateChanged(boolean state)
mHandler.obtainMessage(H.TOGGLE_STATE_CHANGED, state ? 1 : 0, 0).sendToTarget();
|
public com.android.systemui.qs.QSTile$DetailAdapter | getDetailAdapter()
return null; // optional
|
public com.android.systemui.qs.QSTile$Host | getHost()
return mHost;
|
public TState | getState()
return mState;
|
protected abstract void | handleClick()
|
protected void | handleDestroy()
setListening(false);
mCallback = null;
|
protected void | handleLongClick()
// optional
|
protected void | handleRefreshState(java.lang.Object arg)
handleUpdateState(mTmpState, arg);
final boolean changed = mTmpState.copyTo(mState);
if (changed) {
handleStateChanged();
}
|
private void | handleScanStateChanged(boolean state)
if (mCallback != null) {
mCallback.onScanStateChanged(state);
}
|
protected void | handleSecondaryClick()
// optional
|
private void | handleSetCallback(com.android.systemui.qs.QSTile$Callback callback)
mCallback = callback;
handleRefreshState(null);
|
private void | handleShowDetail(boolean show)
if (mCallback != null) {
mCallback.onShowDetail(show);
}
|
private void | handleStateChanged()
boolean delayAnnouncement = shouldAnnouncementBeDelayed();
if (mCallback != null) {
mCallback.onStateChanged(mState);
if (mAnnounceNextStateChange && !delayAnnouncement) {
String announcement = composeChangeAnnouncement();
if (announcement != null) {
mCallback.onAnnouncementRequested(announcement);
}
}
}
mAnnounceNextStateChange = mAnnounceNextStateChange && delayAnnouncement;
|
private void | handleToggleStateChanged(boolean state)
if (mCallback != null) {
mCallback.onToggleStateChanged(state);
}
|
protected abstract void | handleUpdateState(TState state, java.lang.Object arg)
|
protected void | handleUserSwitch(int newUserId)
handleRefreshState(null);
|
public void | longClick()
mHandler.sendEmptyMessage(H.LONG_CLICK);
|
protected abstract TState | newTileState()
|
protected final void | refreshState()
refreshState(null);
|
protected final void | refreshState(java.lang.Object arg)
mHandler.obtainMessage(H.REFRESH_STATE, arg).sendToTarget();
|
public void | secondaryClick()
mHandler.sendEmptyMessage(H.SECONDARY_CLICK);
|
public void | setCallback(com.android.systemui.qs.QSTile$Callback callback)
mHandler.obtainMessage(H.SET_CALLBACK, callback).sendToTarget();
|
protected boolean | shouldAnnouncementBeDelayed()
return false;
|
public void | showDetail(boolean show)
mHandler.obtainMessage(H.SHOW_DETAIL, show ? 1 : 0, 0).sendToTarget();
|
public boolean | supportsDualTargets()
return false;
|
public void | userSwitch(int newUserId)
mHandler.obtainMessage(H.USER_SWITCH, newUserId, 0).sendToTarget();
|