Lines Matching refs:account
38 PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle);
39 if (account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) {
46 /** Compose PhoneAccount object from component name and account id. */
60 /** Extract account label from PhoneAccount object. */
64 PhoneAccount account = getAccountOrNull(context, accountHandle);
65 if (account != null && account.getLabel() != null) {
66 return account.getLabel().toString();
71 /** Extract account color from PhoneAccount object. */
73 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle);
76 // safe to always use the account highlight color.
77 return account == null ? PhoneAccount.NO_HIGHLIGHT_COLOR : account.getHighlightColor();
81 * Determine whether a phone account supports call subjects.
87 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle);
89 return account != null && account.hasCapabilities(PhoneAccount.CAPABILITY_CALL_SUBJECT);
93 * Retrieve the account metadata, but if the account does not exist or the device has only a
94 * single registered and enabled account, return null.