Lines Matching refs:accountId

71 AccountManager::AccountSetting::AccountSetting(int32_t accountId)
72 : accountId_(accountId)
109 void AccountManager::AccountSetting::AccShortcutTimeout(int32_t accountId, const std::string &key)
113 if (auto iter = accountMgr->accounts_.find(accountId); iter != accountMgr->accounts_.end()) {
116 MMI_HILOGW("No account(%d)", accountId);
120 void AccountManager::AccountSetting::AccShortcutEnabled(int32_t accountId, const std::string &key)
124 if (auto iter = accountMgr->accounts_.find(accountId); iter != accountMgr->accounts_.end()) {
127 MMI_HILOGW("No account(%{public}d)", accountId);
131 void AccountManager::AccountSetting::AccShortcutEnabledOnScreenLocked(int32_t accountId, const std::string &key)
135 if (auto iter = accountMgr->accounts_.find(accountId); iter != accountMgr->accounts_.end()) {
138 MMI_HILOGW("No account(%{public}d)", accountId);
167 [accountId = accountId_](const std::string &key) {
168 AccountManager::AccountSetting::AccShortcutEnabled(accountId, key);
173 [accountId = accountId_](const std::string &key) {
174 AccountManager::AccountSetting::AccShortcutEnabledOnScreenLocked(accountId, key);
179 [accountId = accountId_](const std::string &key) {
180 AccountManager::AccountSetting::AccShortcutTimeout(accountId, key);
412 int32_t accountId = data.GetCode();
413 MMI_HILOGI("Add account(%d)", accountId);
414 auto [_, isNew] = accounts_.emplace(accountId, std::make_unique<AccountSetting>(accountId));
416 MMI_HILOGW("Account(%d) has existed", accountId);
422 int32_t accountId = data.GetCode();
423 MMI_HILOGI("Remove account(%d)", accountId);
424 if (auto iter = accounts_.find(accountId); iter != accounts_.end()) {
426 MMI_HILOGI("Account(%d) has been removed", accountId);
428 MMI_HILOGW("No account(%d)", accountId);
434 int32_t accountId = data.GetCode();
435 MMI_HILOGI("Switch to account(%d)", accountId);
436 if (currentAccountId_ != accountId) {
437 if (auto iter = accounts_.find(accountId); iter == accounts_.end()) {
438 accounts_.emplace(accountId, std::make_unique<AccountSetting>(accountId));
440 currentAccountId_ = accountId;