Home
last modified time | relevance | path

Searched refs:accountId (Results 1 - 25 of 256) sorted by relevance

1234567891011

/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_strategy_manager/
H A Dreclaim_strategy_manager.cpp146 void ReclaimStrategyManager::NotifyAccountDied(int accountId) in NotifyAccountDied() argument
149 HILOGE("has not been initialized, skiped! accountId=%{public}d", accountId); in NotifyAccountDied()
152 if (accountId < VALID_USER_ID_MIN) { in NotifyAccountDied()
154 accountId, VALID_USER_ID_MIN); in NotifyAccountDied()
157 handler_->PostImmediateTask([this, accountId] { this->HandleAccountDied_(accountId); }); in NotifyAccountDied()
160 void ReclaimStrategyManager::NotifyAccountPriorityChanged(int accountId, int priority) in NotifyAccountPriorityChanged() argument
163 HILOGE("has not been initialized, skiped! accountId=%{public}d, priority=%{public}d", accountId, priorit in NotifyAccountPriorityChanged()
176 HandleAccountDied_(int accountId) HandleAccountDied_() argument
181 HandleAccountPriorityChanged_(int accountId, int priority) HandleAccountPriorityChanged_() argument
[all...]
/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_priority_manager/
H A Dmulti_account_manager.cpp85 bool MultiAccountManager::SetAccountPriority(int accountId, std::string accountName, in SetAccountPriority() argument
88 std::shared_ptr<AccountPriorityInfo> accountInfo = GetAccountPriorityInfo(accountId); in SetAccountPriority()
91 accountId, accountName, accountType, isActived); in SetAccountPriority()
106 HILOGI("Set account priority failed, accountId = %{public}d.", accountId); in SetAccountPriority()
110 HILOGI("Set acccount priority succeed, accountId = %{public}d, old = %{public}d, new = %{public}d.", in SetAccountPriority()
111 accountId, oldPriority, accountInfo->GetPriority()); in SetAccountPriority()
113 ReclaimStrategyManager::GetInstance().NotifyAccountPriorityChanged(accountId, accountInfo->GetPriority()); in SetAccountPriority()
118 int MultiAccountManager::RecalcBundlePriority(int accountId, int bundlePriority) in RecalcBundlePriority() argument
120 std::shared_ptr<AccountPriorityInfo> accountInfo = GetAccountPriorityInfo(accountId); in RecalcBundlePriority()
148 GetAccountPriorityInfo(int accountId) GetAccountPriorityInfo() argument
212 GetAccountBundleInfo(int accountId, std::map<int, std::shared_ptr<AccountBundleInfo>> &osAccountsInfoMap_) GetAccountBundleInfo() argument
222 KillProcessesOfAccount(int accountId, std::map<int, std::shared_ptr<AccountBundleInfo>> &osAccountsInfoMap_) KillProcessesOfAccount() argument
284 HandleOsAccountsChanged(int accountId, AccountSA::OS_ACCOUNT_SWITCH_MOD switchMod, std::map<int, std::shared_ptr<AccountBundleInfo>> &osAccountsInfoMap_) HandleOsAccountsChanged() argument
[all...]
/foundation/multimodalinput/input/service/account_manager/test/
H A Daccount_manager_test.cpp129 int32_t accountId = data.GetCode(); in HWTEST_F() local
130 accountId = 3; in HWTEST_F()
131 auto [_, isNew] = accountManager.accounts_.emplace(accountId, in HWTEST_F()
132 std::make_unique<AccountManager::AccountSetting>(accountId)); in HWTEST_F()
148 int32_t accountId = data.GetCode(); in HWTEST_F() local
149 accountId = 5; in HWTEST_F()
179 int32_t accountId = data.GetCode(); in HWTEST_F() local
180 accountId = 1; in HWTEST_F()
196 int32_t accountId = data.GetCode(); in HWTEST_F() local
197 accountId in HWTEST_F()
211 int32_t accountId = 1; HWTEST_F() local
226 int32_t accountId = 2; HWTEST_F() local
241 int32_t accountId = 3; HWTEST_F() local
256 int32_t accountId = 3; HWTEST_F() local
274 int32_t accountId = 5; HWTEST_F() local
295 int32_t accountId = 3; HWTEST_F() local
310 int32_t accountId = 3; HWTEST_F() local
[all...]
/foundation/barrierfree/accessibility/services/aams/src/
H A Daccessibility_common_event.cpp131 int32_t accountId = data.GetCode(); in HandleUserAdded() local
133 if (accountId == -1) { in HandleUserAdded()
137 Singleton<AccessibleAbilityManagerService>::GetInstance().AddedUser(accountId); in HandleUserAdded()
142 int32_t accountId = data.GetCode(); in HandleUserRemoved() local
144 if (accountId == -1) { in HandleUserRemoved()
148 Singleton<AccessibleAbilityManagerService>::GetInstance().RemovedUser(accountId); in HandleUserRemoved()
153 int32_t accountId = data.GetCode(); in HandleUserSwitched() local
155 if (accountId == -1) { in HandleUserSwitched()
159 Singleton<AccessibleAbilityManagerService>::GetInstance().SwitchedUser(accountId); in HandleUserSwitched()
166 int32_t accountId in HandlePackageRemoved() local
179 int32_t accountId = Singleton<AccessibleAbilityManagerService>::GetInstance().GetCurrentAccountId(); HandlePackageAdd() local
192 int32_t accountId = Singleton<AccessibleAbilityManagerService>::GetInstance().GetCurrentAccountId(); HandlePackageChanged() local
[all...]
H A Daccessible_ability_channel.cpp44 AccessibleAbilityChannel::AccessibleAbilityChannel(const int32_t accountId, const std::string &clientName) in AccessibleAbilityChannel() argument
45 : clientName_(clientName), accountId_(accountId) in AccessibleAbilityChannel()
67 int32_t accountId = accountId_; in SearchElementInfoByAccessibilityId() local
71 eventHandler_->PostTask([accountId, clientName, syncPromise, windowId, elementId, treeId, requestId, in SearchElementInfoByAccessibilityId()
73 HILOG_DEBUG("search element accountId[%{public}d], name[%{public}s]", accountId, clientName.c_str()); in SearchElementInfoByAccessibilityId()
75 RetError ret = GetElementOperator(accountId, windowId, FOCUS_TYPE_INVALID, clientName, in SearchElementInfoByAccessibilityId()
127 int32_t accountId = accountId_; in SearchElementInfosByText() local
131 eventHandler_->PostTask([accountId, clientName, syncPromise, accessibilityWindowId, elementId, treeId, text, in SearchElementInfosByText()
133 HILOG_DEBUG("accountId[ in SearchElementInfosByText()
182 int32_t accountId = accountId_; FindFocusedElementInfo() local
234 int32_t accountId = accountId_; FocusMoveSearch() local
351 int32_t accountId = accountId_; ExecuteAction() local
402 int32_t accountId = accountId_; GetWindow() local
468 int32_t accountId = accountId_; GetWindows() local
521 int32_t accountId = accountId_; SetOnKeyPressEventResult() local
553 int32_t accountId = accountId_; GetCursorPosition() local
593 int32_t accountId = accountId_; SendSimulateGesture() local
640 int32_t accountId = accountId_; SetTargetBundleName() local
665 GetConnection( int32_t accountId, const std::string &clientName) GetConnection() argument
680 GetElementOperator( int32_t accountId, int32_t windowId, int32_t focusType, const std::string &clientName, sptr<IAccessibilityElementOperator> &elementOperator, const int32_t treeId) GetElementOperator() argument
[all...]
/foundation/resourceschedule/memmgr/test/unittest/phone/
H A Dmulti_account_manager_test.cpp64 int accountId = 2; in HWTEST_F() local
69 MultiAccountManager::GetInstance().SetAccountPriority(accountId, accountName, accountType, isActived); in HWTEST_F()
70 std::shared_ptr<AccountPriorityInfo> info = MultiAccountManager::GetInstance().GetAccountPriorityInfo(accountId); in HWTEST_F()
72 EXPECT_EQ(info->GetId(), accountId); in HWTEST_F()
81 int accountId = 2; in HWTEST_F() local
87 MultiAccountManager::GetInstance().SetAccountPriority(accountId, accountName, accountType, isActived); in HWTEST_F()
88 int recalcPriority = MultiAccountManager::GetInstance().RecalcBundlePriority(accountId, bundlePriority); in HWTEST_F()
95 int accountId = 100; in HWTEST_F() local
96 std::shared_ptr<AccountBundleInfo> account = std::make_shared<AccountBundleInfo>(accountId); in HWTEST_F()
98 accountId * USER_ID_SHIF in HWTEST_F()
118 int accountId = 100; HWTEST_F() local
153 int accountId = 3; HWTEST_F() local
227 int accountId = 100; HWTEST_F() local
[all...]
H A Ddefault_multi_account_strategy_test.cpp67 int accountId = 0; in HWTEST_F() local
74 AccountPriorityInfo accPri1(accountId, accountName, accountType, isActived); in HWTEST_F()
75 MultiAccountManager::GetInstance().SetAccountPriority(accountId, accountName, accountType, isActived); in HWTEST_F()
76 accountInfo = MultiAccountManager::GetInstance().GetAccountPriorityInfo(accountId); in HWTEST_F()
82 AccountPriorityInfo accPri2(accountId, accountName, accountType, isActived); in HWTEST_F()
83 MultiAccountManager::GetInstance().SetAccountPriority(accountId, accountName, accountType, isActived); in HWTEST_F()
84 accountInfo = MultiAccountManager::GetInstance().GetAccountPriorityInfo(accountId); in HWTEST_F()
104 int accountId = 0; in HWTEST_F() local
111 MultiAccountManager::GetInstance().SetAccountPriority(accountId, accountName, accountType, isActived); in HWTEST_F()
112 accountInfo = MultiAccountManager::GetInstance().GetAccountPriorityInfo(accountId); in HWTEST_F()
[all...]
/foundation/multimodalinput/input/service/account_manager/src/
H A Daccount_manager.cpp71 AccountManager::AccountSetting::AccountSetting(int32_t accountId) in AccountSetting() argument
72 : accountId_(accountId) in AccountSetting()
109 void AccountManager::AccountSetting::AccShortcutTimeout(int32_t accountId, const std::string &key) in AccShortcutTimeout() argument
113 if (auto iter = accountMgr->accounts_.find(accountId); iter != accountMgr->accounts_.end()) { in AccShortcutTimeout()
116 MMI_HILOGW("No account(%d)", accountId); in AccShortcutTimeout()
120 void AccountManager::AccountSetting::AccShortcutEnabled(int32_t accountId, const std::string &key) in AccShortcutEnabled() argument
124 if (auto iter = accountMgr->accounts_.find(accountId); iter != accountMgr->accounts_.end()) { in AccShortcutEnabled()
127 MMI_HILOGW("No account(%{public}d)", accountId); in AccShortcutEnabled()
131 void AccountManager::AccountSetting::AccShortcutEnabledOnScreenLocked(int32_t accountId, const std::string &key) in AccShortcutEnabledOnScreenLocked() argument
135 if (auto iter = accountMgr->accounts_.find(accountId); ite in AccShortcutEnabledOnScreenLocked()
412 int32_t accountId = data.GetCode(); OnAddUser() local
422 int32_t accountId = data.GetCode(); OnRemoveUser() local
434 int32_t accountId = data.GetCode(); OnSwitchUser() local
[all...]
/foundation/barrierfree/accessibility/common/interface/test/unittest/
H A Daccessible_ability_manager_state_observer_proxy_test.cpp71 int32_t accountId = 1; in HWTEST_F() local
72 sptr<AccessibleAbilityManagerStateObserverProxy> accountData = new AccessibleAbilityManagerStateObserverProxy(accountId); in HWTEST_F()
91 const int32_t accountId = 1; in HWTEST_F() local
97 new MockAccessibleAbilityConnection(accountId, connectCounter++, *abilityInfo); in HWTEST_F()
98 sptr<AccessibleAbilityManagerStateObserverProxy> accountData = new AccessibleAbilityManagerStateObserverProxy(accountId); in HWTEST_F()
122 const int32_t accountId = 1; in HWTEST_F() local
126 sptr<AccessibleAbilityManagerStateObserverProxy> accountData = new AccessibleAbilityManagerStateObserverProxy(accountId); in HWTEST_F()
128 new MockAccessibleAbilityConnection(accountId, connectCounter++, *abilityInfo); in HWTEST_F()
152 const int32_t accountId = 1; in HWTEST_F() local
156 sptr<AccessibleAbilityManagerStateObserverProxy> accountData = new AccessibleAbilityManagerStateObserverProxy(accountId); in HWTEST_F()
182 const int32_t accountId = 1; HWTEST_F() local
207 const int32_t accountId = 1; HWTEST_F() local
225 const int32_t accountId = 1; HWTEST_F() local
253 const int32_t accountId = 1; HWTEST_F() local
269 const int32_t accountId = 1; HWTEST_F() local
295 const int32_t accountId = 1; HWTEST_F() local
324 const int32_t accountId = 1; HWTEST_F() local
351 const int32_t accountId = 1; HWTEST_F() local
375 const int32_t accountId = 1; HWTEST_F() local
409 const int32_t accountId = 1; HWTEST_F() local
430 const int32_t accountId = 1; HWTEST_F() local
454 const int32_t accountId = 1; HWTEST_F() local
478 const int32_t accountId = 1; HWTEST_F() local
504 const int32_t accountId = 1; HWTEST_F() local
526 const int32_t accountId = 1; HWTEST_F() local
552 const int32_t accountId = 1; HWTEST_F() local
574 const int32_t accountId = 1; HWTEST_F() local
593 const int32_t accountId = 1; HWTEST_F() local
623 const int32_t accountId = 1; HWTEST_F() local
651 const int32_t accountId = 1; HWTEST_F() local
697 const int32_t accountId = 1; HWTEST_F() local
743 const int32_t accountId = 1; HWTEST_F() local
767 const int32_t accountId = 1; HWTEST_F() local
786 const int32_t accountId = 1; HWTEST_F() local
805 const int32_t accountId = 1; HWTEST_F() local
830 const int32_t accountId = 1; HWTEST_F() local
850 const int32_t accountId = 1; HWTEST_F() local
924 const int32_t accountId = 1; HWTEST_F() local
941 const int32_t accountId = 1; HWTEST_F() local
958 const int32_t accountId = 1; HWTEST_F() local
975 const int32_t accountId = 1; HWTEST_F() local
992 const int32_t accountId = 1; HWTEST_F() local
1005 const int32_t accountId = 1; HWTEST_F() local
1025 const int32_t accountId = 1; HWTEST_F() local
1043 const int32_t accountId = 1; HWTEST_F() local
1601 const int32_t accountId = 1; HWTEST_F() local
1623 const int32_t accountId = 1; HWTEST_F() local
1639 const int32_t accountId = 1; HWTEST_F() local
1655 const int32_t accountId = 1; HWTEST_F() local
1670 const int32_t accountId = -1; HWTEST_F() local
1685 const int32_t accountId = 1; HWTEST_F() local
1724 const int32_t accountId = 1; HWTEST_F() local
1738 const int32_t accountId = 0; HWTEST_F() local
1777 const int32_t accountId = 1; HWTEST_F() local
1793 const int32_t accountId = 1; HWTEST_F() local
1809 const int32_t accountId = 1; HWTEST_F() local
1826 const int32_t accountId = 1; HWTEST_F() local
[all...]
/foundation/barrierfree/accessibility/services/test/moduletest/aamstest/aams_accessibility_account_data_test/
H A Daams_accessibility_account_data_test.cpp90 int32_t accountId = 1; in HWTEST_F() local
91 sptr<AccessibilityAccountData> accountData = new AccessibilityAccountData(accountId); in HWTEST_F()
110 const int32_t accountId = 1; in HWTEST_F() local
116 new MockAccessibleAbilityConnection(accountId, connectCounter++, *abilityInfo); in HWTEST_F()
117 sptr<AccessibilityAccountData> accountData = new AccessibilityAccountData(accountId); in HWTEST_F()
141 const int32_t accountId = 1; in HWTEST_F() local
145 sptr<AccessibilityAccountData> accountData = new AccessibilityAccountData(accountId); in HWTEST_F()
147 new MockAccessibleAbilityConnection(accountId, connectCounter++, *abilityInfo); in HWTEST_F()
171 const int32_t accountId = 1; in HWTEST_F() local
175 sptr<AccessibilityAccountData> accountData = new AccessibilityAccountData(accountId); in HWTEST_F()
201 const int32_t accountId = 1; HWTEST_F() local
226 const int32_t accountId = 1; HWTEST_F() local
244 const int32_t accountId = 1; HWTEST_F() local
273 const int32_t accountId = 1; HWTEST_F() local
290 const int32_t accountId = 1; HWTEST_F() local
316 const int32_t accountId = 1; HWTEST_F() local
345 const int32_t accountId = 1; HWTEST_F() local
372 const int32_t accountId = 1; HWTEST_F() local
396 const int32_t accountId = 1; HWTEST_F() local
430 const int32_t accountId = 1; HWTEST_F() local
451 const int32_t accountId = 1; HWTEST_F() local
475 const int32_t accountId = 1; HWTEST_F() local
499 const int32_t accountId = 1; HWTEST_F() local
525 const int32_t accountId = 1; HWTEST_F() local
547 const int32_t accountId = 1; HWTEST_F() local
573 const int32_t accountId = 1; HWTEST_F() local
595 const int32_t accountId = 1; HWTEST_F() local
614 const int32_t accountId = 1; HWTEST_F() local
644 const int32_t accountId = 1; HWTEST_F() local
672 const int32_t accountId = 1; HWTEST_F() local
718 const int32_t accountId = 1; HWTEST_F() local
765 const int32_t accountId = 1; HWTEST_F() local
790 const int32_t accountId = 1; HWTEST_F() local
810 const int32_t accountId = 1; HWTEST_F() local
830 const int32_t accountId = 1; HWTEST_F() local
856 const int32_t accountId = 1; HWTEST_F() local
876 const int32_t accountId = 1; HWTEST_F() local
950 const int32_t accountId = 1; HWTEST_F() local
967 const int32_t accountId = 1; HWTEST_F() local
984 const int32_t accountId = 1; HWTEST_F() local
1001 const int32_t accountId = 1; HWTEST_F() local
1018 const int32_t accountId = 1; HWTEST_F() local
1031 const int32_t accountId = 1; HWTEST_F() local
1051 const int32_t accountId = 1; HWTEST_F() local
1069 const int32_t accountId = 1; HWTEST_F() local
1632 const int32_t accountId = 1; HWTEST_F() local
1654 const int32_t accountId = 1; HWTEST_F() local
1670 const int32_t accountId = 1; HWTEST_F() local
1686 const int32_t accountId = 1; HWTEST_F() local
1702 const int32_t accountId = -1; HWTEST_F() local
1718 const int32_t accountId = 1; HWTEST_F() local
1758 const int32_t accountId = 1; HWTEST_F() local
1772 const int32_t accountId = 0; HWTEST_F() local
1811 const int32_t accountId = 1; HWTEST_F() local
1827 const int32_t accountId = 1; HWTEST_F() local
1843 const int32_t accountId = 1; HWTEST_F() local
1861 const int32_t accountId = 1; HWTEST_F() local
[all...]
/foundation/barrierfree/accessibility/services/aams/test/unittest/
H A Daccessibility_account_data_test.cpp90 int32_t accountId = 1; in HWTEST_F() local
91 sptr<AccessibilityAccountData> accountData = new AccessibilityAccountData(accountId); in HWTEST_F()
110 const int32_t accountId = 1; in HWTEST_F() local
116 new MockAccessibleAbilityConnection(accountId, connectCounter++, *abilityInfo); in HWTEST_F()
117 sptr<AccessibilityAccountData> accountData = new AccessibilityAccountData(accountId); in HWTEST_F()
141 const int32_t accountId = 1; in HWTEST_F() local
145 sptr<AccessibilityAccountData> accountData = new AccessibilityAccountData(accountId); in HWTEST_F()
147 new MockAccessibleAbilityConnection(accountId, connectCounter++, *abilityInfo); in HWTEST_F()
171 const int32_t accountId = 1; in HWTEST_F() local
175 sptr<AccessibilityAccountData> accountData = new AccessibilityAccountData(accountId); in HWTEST_F()
201 const int32_t accountId = 1; HWTEST_F() local
226 const int32_t accountId = 1; HWTEST_F() local
244 const int32_t accountId = 1; HWTEST_F() local
273 const int32_t accountId = 1; HWTEST_F() local
290 const int32_t accountId = 1; HWTEST_F() local
316 const int32_t accountId = 1; HWTEST_F() local
345 const int32_t accountId = 1; HWTEST_F() local
372 const int32_t accountId = 1; HWTEST_F() local
396 const int32_t accountId = 1; HWTEST_F() local
430 const int32_t accountId = 1; HWTEST_F() local
451 const int32_t accountId = 1; HWTEST_F() local
475 const int32_t accountId = 1; HWTEST_F() local
499 const int32_t accountId = 1; HWTEST_F() local
525 const int32_t accountId = 1; HWTEST_F() local
547 const int32_t accountId = 1; HWTEST_F() local
573 const int32_t accountId = 1; HWTEST_F() local
595 const int32_t accountId = 1; HWTEST_F() local
614 const int32_t accountId = 1; HWTEST_F() local
644 const int32_t accountId = 1; HWTEST_F() local
672 const int32_t accountId = 1; HWTEST_F() local
718 const int32_t accountId = 1; HWTEST_F() local
765 const int32_t accountId = 1; HWTEST_F() local
790 const int32_t accountId = 1; HWTEST_F() local
810 const int32_t accountId = 1; HWTEST_F() local
830 const int32_t accountId = 1; HWTEST_F() local
856 const int32_t accountId = 1; HWTEST_F() local
876 const int32_t accountId = 1; HWTEST_F() local
950 const int32_t accountId = 1; HWTEST_F() local
967 const int32_t accountId = 1; HWTEST_F() local
984 const int32_t accountId = 1; HWTEST_F() local
1001 const int32_t accountId = 1; HWTEST_F() local
1018 const int32_t accountId = 1; HWTEST_F() local
1031 const int32_t accountId = 1; HWTEST_F() local
1051 const int32_t accountId = 1; HWTEST_F() local
1069 const int32_t accountId = 1; HWTEST_F() local
1632 const int32_t accountId = 1; HWTEST_F() local
1654 const int32_t accountId = 1; HWTEST_F() local
1670 const int32_t accountId = 1; HWTEST_F() local
1686 const int32_t accountId = 1; HWTEST_F() local
1702 const int32_t accountId = -1; HWTEST_F() local
1718 const int32_t accountId = 1; HWTEST_F() local
1758 const int32_t accountId = 1; HWTEST_F() local
1772 const int32_t accountId = 0; HWTEST_F() local
1811 const int32_t accountId = 1; HWTEST_F() local
1827 const int32_t accountId = 1; HWTEST_F() local
1843 const int32_t accountId = 1; HWTEST_F() local
1861 const int32_t accountId = 1; HWTEST_F() local
[all...]
H A Daccessibility_circle_drawing_manager_test.cpp85 int32_t accountId = 1; in HWTEST_F() local
86 sptr<AccessibilityCircleDrawingManager> accountData = new AccessibilityCircleDrawingManager(accountId); in HWTEST_F()
105 const int32_t accountId = 1; in HWTEST_F() local
111 new MockAccessibleAbilityConnection(accountId, connectCounter++, *abilityInfo); in HWTEST_F()
112 sptr<AccessibilityCircleDrawingManager> accountData = new AccessibilityCircleDrawingManager(accountId); in HWTEST_F()
136 const int32_t accountId = 1; in HWTEST_F() local
140 sptr<AccessibilityCircleDrawingManager> accountData = new AccessibilityCircleDrawingManager(accountId); in HWTEST_F()
142 new MockAccessibleAbilityConnection(accountId, connectCounter++, *abilityInfo); in HWTEST_F()
162 const int32_t accountId = 1; in HWTEST_F() local
166 sptr<AccessibilityCircleDrawingManager> accountData = new AccessibilityCircleDrawingManager(accountId); in HWTEST_F()
186 const int32_t accountId = 1; HWTEST_F() local
210 const int32_t accountId = 1; HWTEST_F() local
227 const int32_t accountId = 1; HWTEST_F() local
252 const int32_t accountId = 0; HWTEST_F() local
269 const int32_t accountId = 1; HWTEST_F() local
294 const int32_t accountId = 2; HWTEST_F() local
323 const int32_t accountId = 1; HWTEST_F() local
346 const int32_t accountId = 1; HWTEST_F() local
[all...]
/foundation/ability/dmsfwk/services/dtbschedmgr/src/
H A Dcommon_event_listener.cpp95 int32_t accountId = INVALID_ID; in GetForegroundOsAccountLocalId() local
96 ErrCode err = AccountSA::OsAccountManager::GetForegroundOsAccountLocalId(accountId); in GetForegroundOsAccountLocalId()
97 if (err != ERR_OK || accountId == INVALID_ID) { in GetForegroundOsAccountLocalId()
101 HILOGD("GetForegroundOsAccountLocalId accountId is: %{public}d", accountId); in GetForegroundOsAccountLocalId()
102 return accountId; in GetForegroundOsAccountLocalId()
105 AccountSA::OsAccountType CommonEventListener::GetOsAccountType(int32_t& accountId) in GetOsAccountType() argument
108 ErrCode err = AccountSA::OsAccountManager::GetOsAccountType(accountId, type); in GetOsAccountType()
117 int32_t accountId = GetForegroundOsAccountLocalId(); in OnUserSwitched() local
118 AccountSA::OsAccountType type = GetOsAccountType(accountId); in OnUserSwitched()
[all...]
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/
H A Dservice_extension_context.cpp81 const AAFwk::Want& want, const std::shared_ptr<CallerCallBack> &callback, int32_t accountId) in StartAbilityByCall()
91 return localCallContainer_->StartAbilityByCallInner(want, callback, token_, accountId); in StartAbilityByCall()
125 ErrCode ServiceExtensionContext::StartAbilityWithAccount(const AAFwk::Want &want, int32_t accountId) const in StartAbilityWithAccount()
131 TAG_LOGI(AAFwkTag::APPKIT, "accountId: %{public}d, ability: %{public}s, caller: %{public}s", in StartAbilityWithAccount()
132 accountId, want.GetElement().GetURI().c_str(), callerName.c_str()); in StartAbilityWithAccount()
138 want, token_, ILLEGAL_REQUEST_CODE, accountId); in StartAbilityWithAccount()
147 const AAFwk::Want &want, int32_t accountId, const AAFwk::StartOptions &startOptions) const in StartAbilityWithAccount()
152 ILLEGAL_REQUEST_CODE, accountId); in StartAbilityWithAccount()
160 ErrCode ServiceExtensionContext::StartServiceExtensionAbility(const AAFwk::Want &want, int32_t accountId) const in StartServiceExtensionAbility()
164 want, token_, accountId, AppExecFw in StartServiceExtensionAbility()
80 StartAbilityByCall( const AAFwk::Want& want, const std::shared_ptr<CallerCallBack> &callback, int32_t accountId) StartAbilityByCall() argument
146 StartAbilityWithAccount( const AAFwk::Want &want, int32_t accountId, const AAFwk::StartOptions &startOptions) const StartAbilityWithAccount() argument
193 ConnectAbilityWithAccount( const AAFwk::Want &want, int32_t accountId, const sptr<AbilityConnectCallback> &connectCallback) const ConnectAbilityWithAccount() argument
[all...]
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/
H A Dservice_extension_context.h71 * @param accountId Indicates the account to start.
76 int32_t accountId = DEFAULT_INVAL_VALUE);
117 * @param accountId caller user.
121 ErrCode StartAbilityWithAccount(const AAFwk::Want &want, int accountId) const;
124 const AAFwk::Want &want, int accountId, const AAFwk::StartOptions &startOptions) const;
126 ErrCode StartServiceExtensionAbility(const AAFwk::Want &want, int32_t accountId = -1) const;
128 ErrCode StartUIServiceExtensionAbility(const AAFwk::Want &want, int32_t accountId = -1) const;
130 ErrCode StopServiceExtensionAbility(const AAFwk::Want& want, int32_t accountId = -1) const;
137 * @param accountId caller user.
144 const AAFwk::Want &want, int accountId, cons
[all...]
/foundation/resourceschedule/memmgr/services/memmgrservice/include/reclaim_priority_manager/
H A Dmulti_account_manager.h35 bool SetAccountPriority(int accountId, std::string accountName,
37 int RecalcBundlePriority(int accountId, int bundlePriority);
38 std::shared_ptr<AccountPriorityInfo> GetAccountPriorityInfo(int accountId);
44 bool HandleOsAccountsChanged(int accountId, AccountSA::OS_ACCOUNT_SWITCH_MOD switchMod,
58 std::shared_ptr<AccountBundleInfo> GetAccountBundleInfo(int accountId,
60 void KillProcessesOfAccount(int accountId, std::map<int, std::shared_ptr<AccountBundleInfo>> &osAccountsInfoMap_);
/foundation/resourceschedule/memmgr/services/memmgrservice/include/reclaim_strategy_manager/
H A Dreclaim_strategy_manager.h32 void NotifyAccountDied(int accountId);
33 void NotifyAccountPriorityChanged(int accountId, int priority);
52 bool HandleAccountDied_(int accountId);
53 bool HandleAccountPriorityChanged_(int accountId, int priority);
/foundation/resourceschedule/work_scheduler/frameworks/extension/src/
H A Dwork_scheduler_extension_context.cpp25 ErrCode WorkSchedulerExtensionContext::StartServiceExtensionAbility(const AAFwk::Want &want, int32_t accountId) const in StartServiceExtensionAbility()
29 want, token_, accountId, AppExecFwk::ExtensionAbilityType::SERVICE); in StartServiceExtensionAbility()
36 ErrCode WorkSchedulerExtensionContext::StopServiceExtensionAbility(const AAFwk::Want& want, int32_t accountId) const in StopServiceExtensionAbility()
40 want, token_, accountId, AppExecFwk::ExtensionAbilityType::SERVICE); in StopServiceExtensionAbility()
/foundation/ability/ability_runtime/test/unittest/service_extension_context_test/
H A Dservice_extension_context_test.cpp178 int accountId = 1; in HWTEST_F() local
179 ErrCode result = serviceExtensionContextTest.StartAbilityWithAccount(want, accountId); in HWTEST_F()
195 int accountId = 1; in HWTEST_F() local
197 ErrCode result = serviceExtensionContextTest.StartAbilityWithAccount(want, accountId, startOptions); in HWTEST_F()
213 int32_t accountId = 1; in HWTEST_F() local
215 ErrCode result = serviceExtensionContextTest.StartServiceExtensionAbility(want, accountId); in HWTEST_F()
231 int32_t accountId = 1; in HWTEST_F() local
233 ErrCode result = serviceExtensionContextTest.StopServiceExtensionAbility(want, accountId); in HWTEST_F()
249 int32_t accountId = 1; in HWTEST_F() local
251 ErrCode result = serviceExtensionContextTest.ConnectAbilityWithAccount(want, accountId, connectCallbac in HWTEST_F()
267 int32_t accountId = 1; HWTEST_F() local
356 int32_t accountId = 1; HWTEST_F() local
379 int32_t accountId = 1; HWTEST_F() local
402 int32_t accountId = 1; HWTEST_F() local
454 int32_t accountId = 1; HWTEST_F() local
475 int32_t accountId = 1; HWTEST_F() local
[all...]
/foundation/barrierfree/accessibility/services/test/xts/src/asac_register_elemnt_operator_test/
H A Dasac_ability_channel_benchmark.cpp44 AccessibleAbilityChannel::AccessibleAbilityChannel(const int32_t accountId, const std::string &clientName) in AccessibleAbilityChannel() argument
45 : clientName_(clientName), accountId_(accountId) in AccessibleAbilityChannel()
67 int32_t accountId = accountId_; in SearchElementInfoByA11yBenchmarkId() local
71 eventHandler_->PostTask([accountId, clientName, syncPromise, windowId, elementId, treeId, requestId, in SearchElementInfoByA11yBenchmarkId()
73 HILOG_DEBUG("search element accountId[%{public}d], name[%{public}s]", accountId, clientName.c_str()); in SearchElementInfoByA11yBenchmarkId()
75 RetError ret = GetElementOperator(accountId, windowId, FOCUS_TYPE_INVALID, clientName, in SearchElementInfoByA11yBenchmarkId()
127 int32_t accountId = accountId_; in SearchElementInfosByText() local
131 eventHandler_->PostTask([accountId, clientName, syncPromise, a11y_benchmarkWindowId, elementId, treeId, text, in SearchElementInfosByText()
133 HILOG_DEBUG("accountId[ in SearchElementInfosByText()
182 int32_t accountId = accountId_; FindFocusedElementInfo() local
234 int32_t accountId = accountId_; FocusMoveSearch() local
351 int32_t accountId = accountId_; ExecuteAction() local
402 int32_t accountId = accountId_; GetWindow() local
468 int32_t accountId = accountId_; GetWindows() local
521 int32_t accountId = accountId_; SetOnKeyPressEventResult() local
553 int32_t accountId = accountId_; GetCursorPosition() local
593 int32_t accountId = accountId_; SendSimulateGesture() local
[all...]
/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Duser_callback_stub.cpp26 auto accountId = data.ReadInt32(); in OnStopUserDoneInner() local
28 OnStopUserDone(accountId, errCode); in OnStopUserDoneInner()
34 auto accountId = data.ReadInt32(); in OnStartUserDoneInner() local
36 OnStartUserDone(accountId, errCode); in OnStartUserDoneInner()
/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/ability_runtime/
H A Dcj_ability_context.h41 int32_t StartAbilityWithAccount(const AAFwk::Want& want, int32_t accountId);
43 const AAFwk::Want& want, int32_t accountId, const AAFwk::StartOptions& startOptions);
45 int32_t StartServiceExtensionAbilityWithAccount(const AAFwk::Want& want, int32_t accountId);
47 int32_t StopServiceExtensionAbilityWithAccount(const AAFwk::Want& want, int32_t accountId);
53 const AAFwk::Want& want, int32_t accountId, int64_t connectionId);
59 const AAFwk::Want& want, int32_t accountId, int32_t requestCode, RuntimeTask&& task);
60 int32_t StartAbilityForResultWithAccount(const AAFwk::Want& want, int32_t accountId,
H A Dcj_ability_context_broker.h41 int32_t (*startAbilityWithAccount)(int64_t id, WantHandle wantHandle, int32_t accountId);
43 int64_t id, WantHandle wantHandle, int32_t accountId, CJStartOptions* startOption);
45 int32_t (*startServiceExtensionAbilityWithAccount)(int64_t id, WantHandle want, int32_t accountId);
47 int32_t (*stopServiceExtensionAbilityWithAccount)(int64_t id, WantHandle want, int32_t accountId);
54 int32_t (*connectAbilityWithAccount)(int64_t id, WantHandle want, int32_t accountId, int64_t connection);
60 int64_t id, WantHandle want, int32_t accountId, int32_t requestCode, int64_t lambdaId);
61 int32_t (*startAbilityForResultWithAccountAndOption)(int64_t id, WantHandle want, int32_t accountId,
/foundation/ability/ability_runtime/frameworks/native/ability/native/ability_runtime/
H A Dcj_ability_context.cpp108 // -1 is default accountId which is the same as js. in StartAbility()
121 int32_t CJAbilityContext::StartAbilityWithAccount(const AAFwk::Want& want, int32_t accountId) in StartAbilityWithAccount() argument
127 return context_->StartAbilityWithAccount(want, accountId, -1); in StartAbilityWithAccount()
131 const AAFwk::Want& want, int32_t accountId, const AAFwk::StartOptions& startOptions) in StartAbilityWithAccount()
137 return context_->StartAbilityWithAccount(want, accountId, startOptions, -1); in StartAbilityWithAccount()
149 int32_t CJAbilityContext::StartServiceExtensionAbilityWithAccount(const Want& want, int32_t accountId) in StartServiceExtensionAbilityWithAccount() argument
155 return context_->StartServiceExtensionAbility(want, accountId); in StartServiceExtensionAbilityWithAccount()
167 int32_t CJAbilityContext::StopServiceExtensionAbilityWithAccount(const Want& want, int32_t accountId) in StopServiceExtensionAbilityWithAccount() argument
173 return context_->StopServiceExtensionAbility(want, accountId); in StopServiceExtensionAbilityWithAccount()
214 const AAFwk::Want& want, int32_t accountId, int64_ in ConnectAbilityWithAccount()
130 StartAbilityWithAccount( const AAFwk::Want& want, int32_t accountId, const AAFwk::StartOptions& startOptions) StartAbilityWithAccount() argument
213 ConnectAbilityWithAccount( const AAFwk::Want& want, int32_t accountId, int64_t connectionId) ConnectAbilityWithAccount() argument
253 StartAbilityForResultWithAccount( const AAFwk::Want& want, int32_t accountId, int32_t requestCode, RuntimeTask&& task) StartAbilityForResultWithAccount() argument
263 StartAbilityForResultWithAccount(const AAFwk::Want& want, int32_t accountId, const AAFwk::StartOptions& startOptions, int32_t requestCode, RuntimeTask&& task) StartAbilityForResultWithAccount() argument
[all...]
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/cloud_data/include/
H A Dcloud_types.h66 std::string accountId; member
71 if (accountId < queryKey.accountId) { in operator <()
73 } else if (accountId == queryKey.accountId) { in operator <()

Completed in 15 milliseconds

1234567891011