Home
last modified time | relevance | path

Searched refs:oldId (Results 1 – 25 of 44) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/sdk/
H A Dsubscriber_lookup.ts76 public static UpdateRecycleElmtId(oldId: number, newId: number): boolean {
77 return SubscriberManager.GetInstance().updateRecycleElmtId(oldId, newId);
196 public updateRecycleElmtId(oldId: number, newId: number): boolean {
197 if (!this.has(oldId)) {
200 const subscriber = this.get(oldId);
201 this.subscriberById_.delete(oldId);
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/src/drivers_pkg_manager/
H A Ddriver_os_account_subscriber.cpp33 void DriverOsAccountSwitched::OnAccountsSwitch(const int &newId, const int &oldId) in OnAccountsSwitch() argument
35 … EDM_LOGI(MODULE_PKG_MGR, "OnAccountsSwitched, newId=%{public}d, oldId=%{public}d", newId, oldId); in OnAccountsSwitch()
56 void DriverOsAccountSwitching::OnAccountsSwitch(const int &newId, const int &oldId) in OnAccountsSwitch() argument
58 … EDM_LOGI(MODULE_PKG_MGR, "OnAccountsSwitching, newId=%{public}d, oldId=%{public}d", newId, oldId); in OnAccountsSwitch()
63 bundleStateCallback_->ResetMatchedBundles(oldId); in OnAccountsSwitch()
/ohos5.0/base/request/request/services/src/cxx/
H A Daccount.cpp30 …rust::fn<void(const int &newId, const int &oldId, const TaskManagerTx &task_manager)> on_accounts_… in SubscriberWrapper() argument
49 void SubscriberWrapper::OnAccountsSwitch(const int &newId, const int &oldId) in OnAccountsSwitch() argument
51 REQUEST_HILOGI("AccountsSwitch newAccount=%{public}d, oldAccount=%{public}d", newId, oldId); in OnAccountsSwitch()
52 on_accounts_switch_(newId, oldId, *task_manager_); in OnAccountsSwitch()
57 …rust::fn<void(const int &newId, const int &oldId, const TaskManagerTx &task_manager)> on_accounts_… in RegistryAccountSubscriber() argument
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/
H A Dbundle_resource_event_subscriber.cpp43 std::string oldId = data.GetWant().GetStringParam(OLD_USER_ID); in OnReceiveEvent() local
44 if (oldId.empty() || !OHOS::StrToInt(oldId, oldUserId)) { in OnReceiveEvent()
45 APP_LOGE("oldId:%{public}s parse failed", oldId.c_str()); in OnReceiveEvent()
/ohos5.0/base/request/request/services/include/
H A Daccount.h38 …rust::fn<void(const int &newId, const int &oldId, const TaskManagerTx &task_manager)> on_accounts_…
43 virtual void OnAccountsSwitch(const int &newId, const int &oldId) override;
48 …rust::fn<void(const int &newId, const int &oldId, const TaskManagerTx &task_manager)> on_accounts_…
53 …rust::fn<void(const int &newId, const int &oldId, const TaskManagerTx &task_manager)> on_accounts_…
/ohos5.0/base/account/os_account/services/accountmgr/src/osaccount/
H A Dos_account_subscribe_manager.cpp142 const int oldId) in OnAccountsSwitch() argument
148 eventProxy->OnAccountsSwitch(newId, oldId); in OnAccountsSwitch()
187 ErrCode OsAccountSubscribeManager::Publish(const int newId, const int oldId, OS_ACCOUNT_SUBSCRIBE_T… in Publish() argument
209 …auto task = [this, eventProxy, newId, oldId] { this->OnAccountsSwitch(eventProxy, newId, oldId); }; in Publish()
218 subscribeType, newId, oldId, sendCnt); in Publish()
H A Dos_account_interface.cpp297 void OsAccountInterface::SendToCESAccountSwitched(int newId, int oldId) in SendToCESAccountSwitched() argument
303 want.SetParam("oldId", std::to_string(oldId)); in SendToCESAccountSwitched()
308 … ACCOUNT_LOGE("PublishCommonEvent failed, account switched:%{public}d->%{public}d", oldId, newId); in SendToCESAccountSwitched()
311 …COUNT_LOGI("PublishCommonEvent successful, account switched:%{public}d->%{public}d", oldId, newId); in SendToCESAccountSwitched()
315 …("No common event part, do not publish for account switched:%{public}d->%{public}d", oldId, newId); in SendToCESAccountSwitched()
H A Dinner_os_account_manager.cpp1767 int32_t oldId = -1; in RetryToGetAccount() local
1768 bool oldIdExist = foregroundAccountMap_.Find(displayId, oldId); in RetryToGetAccount()
1776 RollBackToEarlierAccount(localId, oldId); in RetryToGetAccount()
1782 RollBackToEarlierAccount(localId, oldId); in RetryToGetAccount()
1785 if (oldId != localId) { in RetryToGetAccount()
1794 if (oldIdExist && (oldId != localId)) { in RetryToGetAccount()
1795 if ((errCode = UpdateAccountToBackground(oldId)) != ERR_OK) { in RetryToGetAccount()
1800 OsAccountInterface::SendToCESAccountSwitched(localId, oldId); in RetryToGetAccount()
1807 ReportOsAccountSwitch(localId, oldId); in RetryToGetAccount()
2332 if (oldId == Constants::START_USER_ID) { in RetryToGetAccount()
[all …]
/ohos5.0/base/account/os_account/frameworks/osaccount/core/src/
H A Dos_account_event_stub.cpp51 int oldId; in OnRemoteRequest() local
52 if (!data.ReadInt32(oldId)) { in OnRemoteRequest()
56 OnAccountsSwitch(newId, oldId); in OnRemoteRequest()
H A Dos_account_event_listener.cpp38 void OsAccountEventListener::OnAccountsSwitch(const int &newId, const int &oldId) in OnAccountsSwitch() argument
45 osAccountSubscriber_->OnAccountsSwitch(newId, oldId); in OnAccountsSwitch()
H A Dos_account_event_proxy.cpp51 void OsAccountEventProxy::OnAccountsSwitch(const int &newId, const int &oldId) in OnAccountsSwitch() argument
64 if (!data.WriteInt32(oldId)) { in OnAccountsSwitch()
/ohos5.0/base/hiviewdfx/hitrace/test/unittest/common/native/
H A Dhitracechainc_test.cpp721 HiTraceIdStruct oldId = HiTraceChainSaveAndSetId(&newId); variable
722 PRINT_ID(&oldId);
734 HiTraceChainRestoreId(&oldId);
790 PRINT_ID(&oldId);
802 HiTraceChainRestoreId(&oldId);
855 PRINT_ID(&oldId);
867 HiTraceChainRestoreId(&oldId);
921 PRINT_ID(&oldId);
933 HiTraceChainRestoreId(&oldId);
989 PRINT_ID(&oldId);
[all …]
H A Dhitracechaincpp_test.cpp780 HiTraceId oldId = HiTraceChain::SaveAndSet(newId); variable
792 HiTraceChain::Restore(oldId);
846 HiTraceId oldId = HiTraceChain::SaveAndSet(newId); variable
858 HiTraceChain::Restore(oldId);
911 HiTraceId oldId = HiTraceChain::SaveAndSet(newId); variable
924 HiTraceChain::Restore(oldId);
978 HiTraceId oldId = HiTraceChain::SaveAndSet(newId); variable
990 HiTraceChain::Restore(oldId);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_part_upd/foreach/
H A Dforeach_element.cpp88 for (const auto& oldId : oldIds) { in RemoveUnusedChildElementsFromRegistery() local
90 if (newIdsSet.find(oldId) == newIdsSet.end()) { in RemoveUnusedChildElementsFromRegistery()
171 for (const auto& oldId : oldIds) { in LocalizedUpdate() local
173 if (newIdsSet.find(oldId) == newIdsSet.end()) { in LocalizedUpdate()
175 auto iter = oldElmtsByIdMap.find(oldId); in LocalizedUpdate()
/ohos5.0/base/account/os_account/dfx/hisysevent_adapter/
H A Daccount_hisysevent_adapter.cpp150 void ReportOsAccountSwitch(int32_t currentId, int32_t oldId) in ReportOsAccountSwitch() argument
156 "OLD_ID", oldId); in ReportOsAccountSwitch()
159 ret, currentId, oldId); in ReportOsAccountSwitch()
163 (void)oldId; in ReportOsAccountSwitch()
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/include/drivers_pkg_manager/
H A Ddriver_os_account_subscriber.h31 void OnAccountsSwitch(const int &newId, const int &oldId) override;
42 void OnAccountsSwitch(const int &newId, const int &oldId) override;
/ohos5.0/base/account/os_account/services/accountmgr/include/osaccount/
H A Dos_account_subscribe_manager.h38 …ErrCode Publish(const int newId, const int oldId, OS_ACCOUNT_SUBSCRIBE_TYPE subscribeType) overrid…
40 … bool OnAccountsSwitch(const sptr<IOsAccountEvent> &eventProxy, const int newId, const int oldId);
/ohos5.0/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_priority_manager/
H A Dmulti_account_manager.cpp182 for (int oldId : oldActiveAccountIds_) { in GetSwitchedAccountIds() local
183 …if (std::find(newActiveAccountIds.begin(), newActiveAccountIds.end(), oldId) == newActiveAccountId… in GetSwitchedAccountIds()
184 accountIds.push_back(oldId); in GetSwitchedAccountIds()
185 HILOGI("Get the switched account succeed, accountId = %{public}d.", oldId); in GetSwitchedAccountIds()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/
H A Dfor_each_node.cpp84 for (const auto& oldId : tempOldIdsSet_) { in CollectRemovingIds() local
85 auto iter = oldNodeByIdMap_.find(oldId); in CollectRemovingIds()
116 for (const auto& oldId : tempOldIdsSet_) { in CompareAndUpdateChildren() local
117 auto iter = oldNodeByIdMap_.find(oldId); in CompareAndUpdateChildren()
/ohos5.0/base/account/os_account/frameworks/osaccount/core/include/
H A Dios_account_event.h30 virtual void OnAccountsSwitch(const int &newId, const int &oldId) = 0;
H A Dos_account_event_listener.h30 void OnAccountsSwitch(const int &newId, const int &oldId) override;
H A Dos_account_event_proxy.h30 void OnAccountsSwitch(const int &newId, const int &oldId) override;
/ohos5.0/foundation/multimedia/player_framework/services/services/observer/
H A Daccount_listener.h30 void OnAccountsSwitch(const int &newId, const int &oldId) override;
H A Daccount_listener.cpp35 void AccountListener::OnAccountsSwitch(const int &newId, const int &oldId) in OnAccountsSwitch() argument
/ohos5.0/base/account/os_account/interfaces/innerkits/osaccount/native/include/
H A Dos_account_subscriber.h31 virtual void OnAccountsSwitch(const int &newId, const int &oldId) {}; in OnAccountsSwitch() argument

12