Home
last modified time | relevance | path

Searched refs:UpdateWorkSource (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/base/powermgr/power_manager/test/unittest/src/scenario_test/running_lock/
H A Drunning_lock_scenario_test.cpp55 EXPECT_TRUE(runningLock->UpdateWorkSource(workSource) == 0);
81 EXPECT_TRUE(runningLock->UpdateWorkSource(workSource1) == 0);
92 EXPECT_TRUE(runningLock->UpdateWorkSource(workSource0) == 0);
123 EXPECT_TRUE(runningLock->UpdateWorkSource(workSource10) == 0);
126 EXPECT_TRUE(runningLock->UpdateWorkSource(workSource11) == 0);
141 EXPECT_TRUE(runningLock->UpdateWorkSource(workSource01) == 0);
144 EXPECT_TRUE(runningLock->UpdateWorkSource(workSource00) == 0);
173 EXPECT_TRUE(runningLock->UpdateWorkSource(workSource10) == 0);
180 EXPECT_TRUE(runningLock->UpdateWorkSource(workSource11) == 0);
184 EXPECT_TRUE(runningLock->UpdateWorkSource(workSource10) == 0);
[all …]
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/test/unittest/audio_running_lock_manager_unit_test/src/
H A Daudio_running_lock_manager_unit_test.cpp43 virtual int32_t UpdateWorkSource(const std::vector<int32_t>&) = 0;
51 MOCK_METHOD(int32_t, UpdateWorkSource, (const std::vector<int32_t>&), (override));
68 EXPECT_CALL((*sharedPtrMockRunningLock), UpdateWorkSource(IsEmpty())).Times(1);
90 EXPECT_CALL((*sharedPtrMockRunningLock), UpdateWorkSource(IsEmpty())).Times(0);
100 EXPECT_CALL((*sharedPtrMockRunningLock), UpdateWorkSource(UnorderedElementsAreArray(
106 EXPECT_CALL((*sharedPtrMockRunningLock), UpdateWorkSource(UnorderedElementsAreArray(
112 EXPECT_CALL((*sharedPtrMockRunningLock), UpdateWorkSource(UnorderedElementsAreArray(
117 EXPECT_CALL((*sharedPtrMockRunningLock), UpdateWorkSource(IsEmpty())).Times(1);
123 EXPECT_CALL((*sharedPtrMockRunningLock), UpdateWorkSource(UnorderedElementsAreArray(
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/common/include/
H A Daudio_running_lock_manager.h60 auto ret = runningLock_->UpdateWorkSource({}); in UnLock()
99 auto ret = runningLock_->UpdateWorkSource(appsUid); in UpdateAppsUidToPowerMgr()
/ohos5.0/base/powermgr/power_manager/frameworks/native/
H A Drunning_lock.cpp77 ErrCode RunningLock::UpdateWorkSource(const std::vector<int32_t>& workSources) in UpdateWorkSource() function in OHOS::PowerMgr::RunningLock
89 if (!proxy->UpdateWorkSource(token_, wks)) { in UpdateWorkSource()
/ohos5.0/base/powermgr/power_manager/interfaces/inner_api/native/include/
H A Drunning_lock.h39 ErrCode UpdateWorkSource(const std::vector<int32_t>& workSources);
H A Dipower_mgr.h45 virtual bool UpdateWorkSource(const sptr<IRemoteObject>& remoteObj,
/ohos5.0/base/powermgr/power_manager/test/unittest/src/interface_test/
H A Drunning_lock_test.cpp447 EXPECT_TRUE(runningLock->UpdateWorkSource(workSource) == 0);
471 EXPECT_TRUE(runninglockProxy->UpdateWorkSource(pid, uid, remoteObj, {{0, {"test", false}}}));
493 EXPECT_TRUE(runninglockProxy->UpdateWorkSource(pid, uid, remoteObj, {{0, {"test019", false}}}));
/ohos5.0/base/powermgr/power_manager/services/native/src/runninglock/
H A Drunning_lock_proxy.h43 bool UpdateWorkSource(pid_t pid, pid_t uid, const sptr<IRemoteObject>& remoteObj,
H A Drunning_lock_mgr.h52 bool UpdateWorkSource(const sptr<IRemoteObject>& remoteObj,
H A Drunning_lock_proxy.cpp73 bool RunningLockProxy::UpdateWorkSource(pid_t pid, pid_t uid, const sptr<IRemoteObject>& remoteObj, in UpdateWorkSource() function in OHOS::PowerMgr::RunningLockProxy
H A Drunning_lock_mgr.cpp426 bool RunningLockMgr::UpdateWorkSource(const sptr<IRemoteObject>& remoteObj, in UpdateWorkSource() function in OHOS::PowerMgr::RunningLockMgr
437 …runninglockProxy_->UpdateWorkSource(lockInner->GetPid(), lockInner->GetUid(), remoteObj, workSourc… in UpdateWorkSource()
/ohos5.0/base/powermgr/power_manager/services/zidl/include/
H A Dpower_mgr_proxy.h51 virtual bool UpdateWorkSource(const sptr<IRemoteObject>& remoteObj,
/ohos5.0/base/powermgr/power_manager/services/native/include/
H A Dpower_mgr_service.h84 virtual bool UpdateWorkSource(const sptr<IRemoteObject>& remoteObj,
/ohos5.0/base/powermgr/power_manager/services/native/src/
H A Dpower_mgr_service.cpp1116 bool PowerMgrService::UpdateWorkSource(const sptr<IRemoteObject>& remoteObj, in UpdateWorkSource() function in OHOS::PowerMgr::PowerMgrService
1124 runningLockMgr_->UpdateWorkSource(remoteObj, workSources); in UpdateWorkSource()
1140 runningLockMgr_->UpdateWorkSource(remoteObj, {}); in Lock()
/ohos5.0/base/powermgr/power_manager/test/unittest/src/
H A Drunning_lock_native_test.cpp660 runningLockMgr->UpdateWorkSource(token, {{0, ""}});
/ohos5.0/base/powermgr/power_manager/services/zidl/src/
H A Dpower_mgr_stub.cpp264 UpdateWorkSource(remoteObj, workSources); in UpdateWorkSourceStub()
H A Dpower_mgr_proxy.cpp118 bool PowerMgrProxy::UpdateWorkSource(const sptr<IRemoteObject>& remoteObj, in UpdateWorkSource() function in OHOS::PowerMgr::PowerMgrProxy