Home
last modified time | relevance | path

Searched refs:token_ (Results 1 – 12 of 12) sorted by relevance

/base/powermgr/power_manager/frameworks/native/
Drunning_lock.cpp42 if (token_ != nullptr) { in ~RunningLock()
49 token_ = new (std::nothrow)RunningLockTokenStub(); in Init()
50 if (token_ == nullptr) { in Init()
67 proxy->Lock(token_, timeOutMs); in Lock()
80 proxy->UnLock(token_); in UnLock()
91 bool ret = proxy->IsUsed(token_); in CheckUsedNoLock()
110 return proxy->CreateRunningLock(token_, runningLockInfo_); in Create()
121 proxy->ReleaseRunningLock(token_); in Release()
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/
Dwallpaper_extension_context.cpp30 …ErrCode err = AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, token_, ILLEGAL_REQUE… in StartAbility()
42 …AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, startOptions, token_, ILLEGAL_REQUE… in StartAbility()
54 ErrCode ret = ConnectionManager::GetInstance().ConnectAbility(token_, want, connectCallback); in ConnectAbility()
64 …AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, token_, ILLEGAL_REQUEST_CODE, accou… in StartAbilityWithAccount()
76 … ErrCode err = AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, startOptions, token_, in StartAbilityWithAccount()
89 …ErrCode ret = ConnectionManager::GetInstance().ConnectAbilityWithAccount(token_, want, accountId, … in ConnectAbilityWithAccount()
98 …ErrCode ret = ConnectionManager::GetInstance().DisconnectAbility(token_, want.GetElement(), connec… in DisconnectAbility()
109 ErrCode err = AAFwk::AbilityManagerClient::GetInstance()->TerminateAbility(token_, -1, nullptr); in TerminateAbility()
/base/inputmethod/imf/frameworks/kits/extension/src/
Dinputmethod_extension_context.cpp30 …ErrCode err = AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, token_, ILLEGAL_REQUE… in StartAbility()
43 …AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, startOptions, token_, ILLEGAL_REQUE… in StartAbility()
55 ErrCode ret = ConnectionManager::GetInstance().ConnectAbility(token_, want, connectCallback); in ConnectAbility()
64 …AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, token_, ILLEGAL_REQUEST_CODE, accou… in StartAbilityWithAccount()
77 want, startOptions, token_, ILLEGAL_REQUEST_CODE, accountId); in StartAbilityWithAccount()
89 …ErrCode ret = ConnectionManager::GetInstance().ConnectAbilityWithAccount(token_, want, accountId, … in ConnectAbilityWithAccount()
98 …ErrCode ret = ConnectionManager::GetInstance().DisconnectAbility(token_, want.GetElement(), connec… in DisconnectAbility()
109 ErrCode err = AAFwk::AbilityManagerClient::GetInstance()->TerminateAbility(token_, -1, nullptr); in TerminateAbility()
/base/print/print_fwk/frameworks/kits/extension/src/
Dprint_extension_context.cpp30 …ErrCode err = AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, token_, ILLEGAL_REQUE… in StartAbility()
42 …AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, startOptions, token_, ILLEGAL_REQUE… in StartAbility()
54 ErrCode ret = ConnectionManager::GetInstance().ConnectAbility(token_, want, connectCallback); in ConnectAbility()
64 …AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, token_, ILLEGAL_REQUEST_CODE, accou… in StartAbilityWithAccount()
77 want, startOptions, token_, ILLEGAL_REQUEST_CODE, accountId); in StartAbilityWithAccount()
89 …ErrCode ret = ConnectionManager::GetInstance().ConnectAbilityWithAccount(token_, want, accountId, … in ConnectAbilityWithAccount()
98 …ErrCode ret = ConnectionManager::GetInstance().DisconnectAbility(token_, want.GetElement(), connec… in DisconnectAbility()
109 ErrCode err = AAFwk::AbilityManagerClient::GetInstance()->TerminateAbility(token_, -1, nullptr); in TerminateAbility()
/base/account/os_account/frameworks/appaccount/extension/src/
Dauthorization_extension_context.cpp32 ConnectionManager::GetInstance().ConnectAbility(token_, want, connectCallback); in ConnectAbility()
41 … ConnectionManager::GetInstance().DisconnectAbility(token_, want.GetElement(), connectCallback); in DisconnectAbility()
/base/notification/common_event_service/frameworks/native/src/
Dasync_common_event_result.cpp31 token_ = token; in AsyncCommonEventResult()
128 …return DelayedSingleton<CommonEvent>::GetInstance()->FinishReceiver(token_, resultCode_, resultDat… in FinishCommonEvent()
/base/powermgr/power_manager/interfaces/inner_api/native/include/
Drunning_lock.h63 sptr<IRemoteObject> token_; variable
/base/notification/common_event_service/interfaces/inner_api/
Dasync_common_event_result.h132 sptr<IRemoteObject> token_; variable
/base/powermgr/power_manager/services/native/src/
Dpower_mgr_service.cpp852 sptr<RunningLockTokenStub> PowerMgrService::WakeupRunningLock::token_; member in OHOS::PowerMgr::PowerMgrService::WakeupRunningLock
856 token_ = new (std::nothrow) RunningLockTokenStub(); in Create()
857 if (!token_) { in Create()
862 pms->CreateRunningLock(token_->AsObject(), info); in Create()
867 if (!token_) { in Lock()
870 pms->Lock(token_->AsObject(), TIMEOUT); in Lock()
875 if (!token_) { in Unlock()
878 if (pms->IsUsed(token_)) { in Unlock()
879 pms->UnLock(token_->AsObject()); in Unlock()
/base/notification/common_event_service/frameworks/extension/src/
Dstatic_subscriber_extension_context.cpp73 err = AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, token_); in StartAbility()
/base/powermgr/power_manager/services/native/include/
Dpower_mgr_service.h177 static sptr<RunningLockTokenStub> token_; variable
/base/powermgr/power_manager/test/unittest/src/
Dpower_getcontroller_mock_test.cpp188 static sptr<RunningLockTokenStub> token_; member in OHOS::PowerMgr::PowerMgrService::WakeupRunningLock