Searched refs:GuardState (Results 1 – 2 of 2) sorted by relevance
/aosp12/art/libartbase/base/unix_file/ |
H A D | fd_file.cc | 153 : guard_state_(check_usage ? GuardState::kBase : GuardState::kNoCheck), in FdFile() 168 guard_state_ = GuardState::kNoCheck; in FdFile() 234 guard_state_ = GuardState::kNoCheck; in Release() 258 guard_state_ = fd == kInvalidFd ? GuardState::kNoCheck : GuardState::kBase; in Reset() 260 guard_state_ = GuardState::kNoCheck; in Reset() 264 void FdFile::moveTo(GuardState target, GuardState warn_threshold, const char* warning) { in moveTo() 307 guard_state_ = GuardState::kBase; in Open() 378 moveTo(GuardState::kBase, GuardState::kClosed, "Truncating closed file."); in SetLength() 395 moveTo(GuardState::kBase, GuardState::kClosed, "Writing into closed file."); in Write() 448 moveTo(GuardState::kBase, GuardState::kClosed, "Writing into closed file."); in WriteFullyGeneric() [all …]
|
H A D | fd_file.h | 122 enum class GuardState { enum 144 void moveTo(GuardState target, GuardState warn_threshold, const char* warning); 149 void moveUp(GuardState target, const char* warning); 152 void resetGuard(GuardState new_state) { in resetGuard() 158 GuardState guard_state_ = GuardState::kClosed; 177 std::ostream& operator<<(std::ostream& os, FdFile::GuardState kind);
|