Home
last modified time | relevance | path

Searched refs:unlock_path_ (Results 1 – 5 of 5) sorted by relevance

/system/nativepower/daemon/
Dwake_lock_manager_unittest.cc35 unlock_path_ = temp_dir_.path().Append("unlock"); in WakeLockManagerTest()
38 manager_.set_paths_for_testing(lock_path_, unlock_path_); in WakeLockManagerTest()
54 CHECK(base::WriteFile(unlock_path_, "", 0) == 0); in ClearFiles()
61 base::FilePath unlock_path_; member in android::WakeLockManagerTest
74 EXPECT_EQ("", ReadFile(unlock_path_)); in TEST_F()
81 EXPECT_EQ("", ReadFile(unlock_path_)); in TEST_F()
87 EXPECT_EQ("", ReadFile(unlock_path_)); in TEST_F()
93 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(unlock_path_)); in TEST_F()
100 EXPECT_EQ("", ReadFile(unlock_path_)); in TEST_F()
107 EXPECT_EQ("", ReadFile(unlock_path_)); in TEST_F()
[all …]
Dwake_lock_manager.cc65 unlock_path_(kUnlockPath) {} in WakeLockManager()
74 !base::PathIsWritable(unlock_path_)) { in Init()
75 LOG(ERROR) << lock_path_.value() << " and/or " << unlock_path_.value() in Init()
119 if (requests_.empty() && !WriteToFile(unlock_path_, kLockName)) in RemoveRequest()
Dwake_lock_manager.h69 unlock_path_ = unlock_path; in set_paths_for_testing()
85 base::FilePath unlock_path_; variable
/system/bt/osi/test/
DAlarmTestHarness.cpp70 unlock_path_ = tmp_dir_ + "/wake_unlock"; in SetUp()
73 creat(unlock_path_.c_str(), S_IRWXU); in SetUp()
75 wakelock_set_paths(lock_path_.c_str(), unlock_path_.c_str()); in SetUp()
84 unlink(unlock_path_.c_str()); in TearDown()
98 int unlock_fd = open(unlock_path_.c_str(), O_RDONLY); in WakeLockHeld()
DAlarmTestHarness.h32 std::string unlock_path_; variable