/system/bt/osi/test/ |
AlarmTestHarness.h | 31 std::string lock_path_; member in class:AlarmTestHarness
|
AlarmTestHarness.cpp | 69 lock_path_ = tmp_dir_ + "/wake_lock"; 72 creat(lock_path_.c_str(), S_IRWXU); 75 wakelock_set_paths(lock_path_.c_str(), unlock_path_.c_str()); 83 unlink(lock_path_.c_str()); 95 int lock_fd = open(lock_path_.c_str(), O_RDONLY);
|
/system/nativepower/daemon/ |
wake_lock_manager_unittest.cc | 34 lock_path_ = temp_dir_.path().Append("lock"); 38 manager_.set_paths_for_testing(lock_path_, unlock_path_); 51 // Clears |lock_path_| and |unlock_path_|. 53 CHECK(base::WriteFile(lock_path_, "", 0) == 0); 60 base::FilePath lock_path_; member in class:android::WakeLockManagerTest 73 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(lock_path_)); 80 EXPECT_EQ("", ReadFile(lock_path_)); 86 EXPECT_EQ("", ReadFile(lock_path_)); 92 EXPECT_EQ("", ReadFile(lock_path_)); 99 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(lock_path_)); [all...] |
wake_lock_manager.cc | 64 : lock_path_(kLockPath), 73 if (!base::PathIsWritable(lock_path_) || 75 LOG(ERROR) << lock_path_.value() << " and/or " << unlock_path_.value() 103 if (first_request && !WriteToFile(lock_path_, kLockName))
|
wake_lock_manager.h | 68 lock_path_ = lock_path; 84 base::FilePath lock_path_; member in class:android::WakeLockManager
|