Searched refs:lock_path_ (Results 1 – 5 of 5) sorted by relevance
/system/nativepower/daemon/ |
D | wake_lock_manager_unittest.cc | 34 lock_path_ = temp_dir_.path().Append("lock"); in WakeLockManagerTest() 38 manager_.set_paths_for_testing(lock_path_, unlock_path_); in WakeLockManagerTest() 53 CHECK(base::WriteFile(lock_path_, "", 0) == 0); in ClearFiles() 60 base::FilePath lock_path_; member in android::WakeLockManagerTest 73 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(lock_path_)); in TEST_F() 80 EXPECT_EQ("", ReadFile(lock_path_)); in TEST_F() 86 EXPECT_EQ("", ReadFile(lock_path_)); in TEST_F() 92 EXPECT_EQ("", ReadFile(lock_path_)); in TEST_F() 99 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(lock_path_)); in TEST_F() 106 EXPECT_EQ("", ReadFile(lock_path_)); in TEST_F() [all …]
|
D | wake_lock_manager.cc | 64 : lock_path_(kLockPath), in WakeLockManager() 73 if (!base::PathIsWritable(lock_path_) || in Init() 75 LOG(ERROR) << lock_path_.value() << " and/or " << unlock_path_.value() in Init() 103 if (first_request && !WriteToFile(lock_path_, kLockName)) in AddRequest()
|
D | wake_lock_manager.h | 68 lock_path_ = lock_path; in set_paths_for_testing() 84 base::FilePath lock_path_; variable
|
/system/bt/osi/test/ |
D | AlarmTestHarness.cpp | 69 lock_path_ = tmp_dir_ + "/wake_lock"; in SetUp() 72 creat(lock_path_.c_str(), S_IRWXU); in SetUp() 75 wakelock_set_paths(lock_path_.c_str(), unlock_path_.c_str()); in SetUp() 83 unlink(lock_path_.c_str()); in TearDown() 95 int lock_fd = open(lock_path_.c_str(), O_RDONLY); in WakeLockHeld()
|
D | AlarmTestHarness.h | 31 std::string lock_path_; variable
|