Methods Summary |
---|
public boolean | hasOverlappingRendering()
return false;
|
public void | onClick(android.view.View v)
if (UserSwitcherController.isUserSwitcherAvailable(mUserManager)) {
if (mKeyguardMode) {
if (mKeyguardUserSwitcher != null) {
mKeyguardUserSwitcher.show(true /* animate */);
}
} else {
if (mQsPanel != null) {
UserSwitcherController userSwitcherController =
mQsPanel.getHost().getUserSwitcherController();
if (userSwitcherController != null) {
mQsPanel.showDetailAdapter(true, userSwitcherController.userDetailAdapter);
}
}
}
} else {
Intent intent = ContactsContract.QuickContact.composeQuickContactsIntent(
getContext(), v, ContactsContract.Profile.CONTENT_URI,
ContactsContract.QuickContact.MODE_LARGE, null);
getContext().startActivityAsUser(intent, new UserHandle(UserHandle.USER_CURRENT));
}
|
protected void | onFinishInflate()
super.onFinishInflate();
setOnClickListener(this);
|
public void | onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent event)
super.onPopulateAccessibilityEvent(event);
if (isClickable()) {
String text;
if (UserSwitcherController.isUserSwitcherAvailable(mUserManager)) {
String currentUser = null;
if (mQsPanel != null) {
UserSwitcherController controller = mQsPanel.getHost()
.getUserSwitcherController();
if (controller != null) {
currentUser = controller.getCurrentUserName(mContext);
}
}
if (TextUtils.isEmpty(currentUser)) {
text = mContext.getString(R.string.accessibility_multi_user_switch_switcher);
} else {
text = mContext.getString(
R.string.accessibility_multi_user_switch_switcher_with_current,
currentUser);
}
} else {
text = mContext.getString(R.string.accessibility_multi_user_switch_quick_contact);
}
if (!TextUtils.isEmpty(text)) {
event.getText().add(text);
}
}
|
public void | setKeyguardMode(boolean keyguardShowing)
mKeyguardMode = keyguardShowing;
|
public void | setKeyguardUserSwitcher(com.android.systemui.statusbar.policy.KeyguardUserSwitcher keyguardUserSwitcher)
mKeyguardUserSwitcher = keyguardUserSwitcher;
|
public void | setQsPanel(com.android.systemui.qs.QSPanel qsPanel)
mQsPanel = qsPanel;
|