Lines Matching refs:StateKind
42 enum class StateKind { enum
51 std::ostream& operator<<(std::ostream& os, StateKind kind) { in operator <<()
53 case StateKind::kUncreated: in operator <<()
56 case StateKind::kCreated: in operator <<()
59 case StateKind::kStartedTracing: in operator <<()
62 case StateKind::kReadTracing: in operator <<()
65 case StateKind::kTimedOutDestroyed: in operator <<()
68 case StateKind::kDestroyed: in operator <<()
78 std::string ToString(StateKind kind) { in ToString()
97 StateKind kind_{StateKind::kUncreated}; // Our state. required for correctness.
202 UpdateHandleDescription(/*inout*/&handle_desc, StateKind::kCreated); in Create()
226 UpdateHandleDescription(/*inout*/&handle_desc, StateKind::kStartedTracing); in StartTracing()
254 UpdateHandleDescription(/*inout*/&handle_desc, StateKind::kReadTracing); in ReadTrace()
283 UpdateHandleDescription(/*inout*/&handle_desc, StateKind::kDestroyed); in TryDestroy()
309 UpdateHandleDescription(/*inout*/&state, StateKind::kDestroyed); in GetOrInferHandleDescription()
314 UpdateHandleDescription(/*inout*/&state, StateKind::kUncreated); in GetOrInferHandleDescription()
340 if (handle_desc.kind_ == StateKind::kStartedTracing) { in OnTraceMessage()
400 void UpdateHandleDescription(/*inout*/HandleDescription* handle_desc, StateKind kind) { in UpdateHandleDescription()
406 if (kind == StateKind::kStartedTracing) { in UpdateHandleDescription()
421 if (kind == StateKind::kReadTracing) { in UpdateHandleDescription()
436 if (kind == StateKind::kDestroyed && handle_desc->trace_cookie_ && !handle_desc->trace_ended_) { in UpdateHandleDescription()