Home
last modified time | relevance | path

Searched refs:WakeLockManager (Results 1 – 4 of 4) sorted by relevance

/system/nativepower/daemon/
Dwake_lock_manager.cc50 const char WakeLockManager::kLockName[] = "nativepowerman";
52 WakeLockManager::Request::Request(const std::string& tag, in Request()
59 WakeLockManager::Request::Request(const Request& request) = default;
61 WakeLockManager::Request::Request() : uid(-1) {} in Request()
63 WakeLockManager::WakeLockManager() in WakeLockManager() function in android::WakeLockManager
67 WakeLockManager::~WakeLockManager() { in ~WakeLockManager()
72 bool WakeLockManager::Init() { in Init()
82 bool WakeLockManager::AddRequest(sp<IBinder> client_binder, in AddRequest()
96 base::Bind(&WakeLockManager::HandleBinderDeath, in AddRequest()
109 bool WakeLockManager::RemoveRequest(sp<IBinder> client_binder) { in RemoveRequest()
[all …]
Dwake_lock_manager_unittest.cc63 WakeLockManager manager_;
73 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(lock_path_)); in TEST_F()
93 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(unlock_path_)); in TEST_F()
99 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(lock_path_)); in TEST_F()
112 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(unlock_path_)); in TEST_F()
126 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(lock_path_)); in TEST_F()
133 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(unlock_path_)); in TEST_F()
138 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(lock_path_)); in TEST_F()
Dwake_lock_manager.h58 class WakeLockManager : public WakeLockManagerInterface {
63 WakeLockManager();
64 ~WakeLockManager() override;
90 DISALLOW_COPY_AND_ASSIGN(WakeLockManager);
Dpower_manager.cc50 wake_lock_manager_.reset(new WakeLockManager()); in Init()
51 if (!static_cast<WakeLockManager*>(wake_lock_manager_.get())->Init()) in Init()