/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/sdk/ |
H A D | subscriber_lookup.ts | 76 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 D | driver_os_account_subscriber.cpp | 33 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 D | account.cpp | 30 …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 D | bundle_resource_event_subscriber.cpp | 43 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 D | account.h | 38 …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 D | os_account_subscribe_manager.cpp | 142 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 D | os_account_interface.cpp | 297 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 D | inner_os_account_manager.cpp | 1767 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 D | os_account_event_stub.cpp | 51 int oldId; in OnRemoteRequest() local 52 if (!data.ReadInt32(oldId)) { in OnRemoteRequest() 56 OnAccountsSwitch(newId, oldId); in OnRemoteRequest()
|
H A D | os_account_event_listener.cpp | 38 void OsAccountEventListener::OnAccountsSwitch(const int &newId, const int &oldId) in OnAccountsSwitch() argument 45 osAccountSubscriber_->OnAccountsSwitch(newId, oldId); in OnAccountsSwitch()
|
H A D | os_account_event_proxy.cpp | 51 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 D | hitracechainc_test.cpp | 721 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 D | hitracechaincpp_test.cpp | 780 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 D | foreach_element.cpp | 88 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 D | account_hisysevent_adapter.cpp | 150 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 D | driver_os_account_subscriber.h | 31 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 D | os_account_subscribe_manager.h | 38 …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 D | multi_account_manager.cpp | 182 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 D | for_each_node.cpp | 84 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 D | ios_account_event.h | 30 virtual void OnAccountsSwitch(const int &newId, const int &oldId) = 0;
|
H A D | os_account_event_listener.h | 30 void OnAccountsSwitch(const int &newId, const int &oldId) override;
|
H A D | os_account_event_proxy.h | 30 void OnAccountsSwitch(const int &newId, const int &oldId) override;
|
/ohos5.0/foundation/multimedia/player_framework/services/services/observer/ |
H A D | account_listener.h | 30 void OnAccountsSwitch(const int &newId, const int &oldId) override;
|
H A D | account_listener.cpp | 35 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 D | os_account_subscriber.h | 31 virtual void OnAccountsSwitch(const int &newId, const int &oldId) {}; in OnAccountsSwitch() argument
|