/system/bt/osi/test/ |
AlarmTestHarness.h | 32 std::string unlock_path_; member in class:AlarmTestHarness
|
AlarmTestHarness.cpp | 70 unlock_path_ = tmp_dir_ + "/wake_unlock"; 73 creat(unlock_path_.c_str(), S_IRWXU); 75 wakelock_set_paths(lock_path_.c_str(), unlock_path_.c_str()); 84 unlink(unlock_path_.c_str()); 98 int unlock_fd = open(unlock_path_.c_str(), O_RDONLY);
|
/system/nativepower/daemon/ |
wake_lock_manager_unittest.cc | 35 unlock_path_ = temp_dir_.path().Append("unlock"); 38 manager_.set_paths_for_testing(lock_path_, unlock_path_); 51 // Clears |lock_path_| and |unlock_path_|. 54 CHECK(base::WriteFile(unlock_path_, "", 0) == 0); 61 base::FilePath unlock_path_; member in class:android::WakeLockManagerTest 74 EXPECT_EQ("", ReadFile(unlock_path_)); 81 EXPECT_EQ("", ReadFile(unlock_path_)); 87 EXPECT_EQ("", ReadFile(unlock_path_)); 93 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(unlock_path_)); 100 EXPECT_EQ("", ReadFile(unlock_path_)); [all...] |
wake_lock_manager.cc | 65 unlock_path_(kUnlockPath) {} 74 !base::PathIsWritable(unlock_path_)) { 75 LOG(ERROR) << lock_path_.value() << " and/or " << unlock_path_.value() 119 if (requests_.empty() && !WriteToFile(unlock_path_, kLockName))
|
wake_lock_manager.h | 69 unlock_path_ = unlock_path; 85 base::FilePath unlock_path_; member in class:android::WakeLockManager
|