Home
last modified time | relevance | path

Searched refs:oldId (Results 1 - 25 of 28) sorted by relevance

12

/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_switch) in SubscriberWrapper()
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_switch) in RegistryAccountSubscriber()
28 SubscriberWrapper(OS_ACCOUNT_SUBSCRIBE_TYPE type, rust::box<TaskManagerTx> task_manager, rust::fn<void(const int &id, const TaskManagerTx &task_manager)> on_accounts_changed, rust::fn<void(const int &newId, const int &oldId, const TaskManagerTx &task_manager)> on_accounts_switch) SubscriberWrapper() argument
55 RegistryAccountSubscriber(OS_ACCOUNT_SUBSCRIBE_TYPE type, rust::box<TaskManagerTx> task_manager, rust::fn<void(const int &id, const TaskManagerTx &task_manager)> on_accounts_changed, rust::fn<void(const int &newId, const int &oldId, const TaskManagerTx &task_manager)> on_accounts_switch) RegistryAccountSubscriber() argument
/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()
53 ACCOUNT_LOGE("Read oldId failed."); 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()
65 ACCOUNT_LOGE("Write oldId failed."); in OnAccountsSwitch()
/base/request/request/services/include/
H A Daccount.h38 rust::fn<void(const int &newId, const int &oldId, const TaskManagerTx &task_manager)> on_accounts_switch);
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_switch_;
53 rust::fn<void(const int &newId, const int &oldId, const TaskManagerTx &task_manager)> on_accounts_switch);
/base/account/os_account/services/accountmgr/src/osaccount/
H A Dos_account_subscribe_manager.cpp142 const int oldId) in OnAccountsSwitch()
148 eventProxy->OnAccountsSwitch(newId, oldId); in OnAccountsSwitch()
187 ErrCode OsAccountSubscribeManager::Publish(const int newId, const int oldId, OS_ACCOUNT_SUBSCRIBE_TYPE subscribeType) in Publish() argument
209 auto task = [this, eventProxy, newId, oldId] { this->OnAccountsSwitch(eventProxy, newId, oldId); }; in Publish()
217 ACCOUNT_LOGI("Publish %{public}d successful, newId=%{public}d, oldId=%{public}d, sendCnt=%{public}u.", in Publish()
218 subscribeType, newId, oldId, sendCnt); in Publish()
141 OnAccountsSwitch(const sptr<IOsAccountEvent> &eventProxy, const int newId, const int oldId) OnAccountsSwitch() argument
H A Dos_account_interface.cpp305 void OsAccountInterface::SendToCESAccountSwitched(int newId, int oldId) in SendToCESAccountSwitched() argument
311 want.SetParam("oldId", std::to_string(oldId)); in SendToCESAccountSwitched()
316 ACCOUNT_LOGE("PublishCommonEvent failed, account switched:%{public}d->%{public}d", oldId, newId); in SendToCESAccountSwitched()
319 ACCOUNT_LOGI("PublishCommonEvent successful, account switched:%{public}d->%{public}d", oldId, newId); in SendToCESAccountSwitched()
323 ACCOUNT_LOGI("No common event part, do not publish for account switched:%{public}d->%{public}d", oldId, newId); in SendToCESAccountSwitched()
H A Dinner_os_account_manager.cpp1768 int32_t oldId = -1; in RetryToGetAccount() local
1769 bool oldIdExist = foregroundAccountMap_.Find(displayId, oldId); in RetryToGetAccount()
1772 if (oldId != localId) { in RetryToGetAccount()
1773 subscribeManager_.Publish(localId, oldId, OS_ACCOUNT_SUBSCRIBE_TYPE::SWITCHING); in RetryToGetAccount()
1802 if (oldIdExist && (oldId != localId)) { in RetryToGetAccount()
1803 errCode = UpdateAccountToBackground(oldId); in RetryToGetAccount()
1808 if (oldId != localId) { in RetryToGetAccount()
1810 OsAccountInterface::SendToCESAccountSwitched(localId, oldId); in RetryToGetAccount()
1812 subscribeManager_.Publish(localId, oldId, OS_ACCOUNT_SUBSCRIBE_TYPE::SWITCHED); in RetryToGetAccount()
1813 ReportOsAccountSwitch(localId, oldId); in RetryToGetAccount()
2295 UpdateAccountToBackground(int32_t oldId) RetryToGetAccount() argument
[all...]
/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) override;
40 bool OnAccountsSwitch(const sptr<IOsAccountEvent> &eventProxy, const int newId, const int oldId);
H A Dios_account_subscribe.h46 virtual ErrCode Publish(const int newId, const int oldId, OS_ACCOUNT_SUBSCRIBE_TYPE subscribeType) = 0;
H A Dos_account_interface.h47 static void SendToCESAccountSwitched(int newId, int oldId);
/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()
158 ACCOUNT_LOGE("ret %{public}d, currentId %{public}d, oldId %{public}d.", in ReportOsAccountSwitch()
159 ret, currentId, oldId); in ReportOsAccountSwitch()
163 (void)oldId; in ReportOsAccountSwitch()
H A Daccount_hisysevent_adapter.h32 void ReportOsAccountSwitch(int32_t currentId, int32_t oldId);
/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_proxy.h30 void OnAccountsSwitch(const int &newId, const int &oldId) override;
H A Dos_account_event_listener.h30 void OnAccountsSwitch(const int &newId, const int &oldId) override;
/base/hiviewdfx/hitrace/test/unittest/common/native/
H A Dhitracechainc_test.cpp721 HiTraceIdStruct oldId = HiTraceChainSaveAndSetId(&newId); in HWTEST_F() local
722 PRINT_ID(&oldId); in HWTEST_F()
734 HiTraceChainRestoreId(&oldId); in HWTEST_F()
789 HiTraceIdStruct oldId = HiTraceChainSaveAndSetId(&newId); in HWTEST_F() local
790 PRINT_ID(&oldId); in HWTEST_F()
802 HiTraceChainRestoreId(&oldId); in HWTEST_F()
854 HiTraceIdStruct oldId = HiTraceChainSaveAndSetId(&newId); in HWTEST_F() local
855 PRINT_ID(&oldId); in HWTEST_F()
867 HiTraceChainRestoreId(&oldId); in HWTEST_F()
919 HiTraceIdStruct oldId in HWTEST_F() local
988 HiTraceIdStruct oldId = HiTraceChainSaveAndSetId(&newId); HWTEST_F() local
[all...]
H A Dhitracechaincpp_test.cpp780 HiTraceId oldId = HiTraceChain::SaveAndSet(newId); in HWTEST_F() local
792 HiTraceChain::Restore(oldId); in HWTEST_F()
846 HiTraceId oldId = HiTraceChain::SaveAndSet(newId); in HWTEST_F() local
858 HiTraceChain::Restore(oldId); in HWTEST_F()
911 HiTraceId oldId = HiTraceChain::SaveAndSet(newId); in HWTEST_F() local
924 HiTraceChain::Restore(oldId); in HWTEST_F()
978 HiTraceId oldId = HiTraceChain::SaveAndSet(newId); in HWTEST_F() local
990 HiTraceChain::Restore(oldId); in HWTEST_F()
/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
/base/account/os_account/services/accountmgr/test/mock/os_account/
H A Dos_account_interface.h38 static void SendToCESAccountSwitched(int newId, int oldId);
H A Dos_account_interface.cpp81 void OsAccountInterface::SendToCESAccountSwitched(int newId, int oldId) in SendToCESAccountSwitched() argument
/base/account/os_account/interfaces/kits/napi/osaccount/include/
H A Dnapi_os_account.h41 void OnAccountsSwitch(const int &newId, const int &oldId) override;
47 void OnAccountsSubNotify(const int &newId, const int &oldId);
215 int oldId = 0; member
/base/hiviewdfx/hitrace/frameworks/native/
H A Dhitracechainc.c379 HiTraceIdStruct oldId = g_hiTraceId.id; in HiTraceChainSaveAndSetId() local
383 return oldId; in HiTraceChainSaveAndSetId()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace/
H A Dhitracechainc.h113 void HiTraceChainRestoreId(const HiTraceIdStruct* oldId);
/base/account/os_account/interfaces/kits/napi/osaccount/src/
H A Dnapi_os_account.cpp1528 void SubscriberPtr::OnAccountsSwitch(const int &newId, const int &oldId) in OnAccountsSwitch() argument
1530 OnAccountsSubNotify(newId, oldId); in OnAccountsSwitch()
1533 void SubscriberPtr::OnAccountsSubNotify(const int &newId, const int &oldId) in OnAccountsSubNotify() argument
1552 subscriberOAWorker->oldId = oldId; in OnAccountsSubNotify()
1573 NAPI_CALL(env, napi_create_int32(env, subscriberOAWorker->oldId, &fromAccountIdJs)); in CreateSwitchEventInfoObj()
1613 ACCOUNT_LOGI("Switch condition, return oldId=%{public}d and newId=%{public}d.", in UvQueueWorkOnAccountsSubNotify()
1614 subscriberOAWorkerData->oldId, subscriberOAWorkerData->newId); in UvQueueWorkOnAccountsSubNotify()

Completed in 15 milliseconds

12