Lines Matching refs:StatusCode
33 using StatusCode = WakelockNative::StatusCode; typedef
60 StatusCode last_acquired_error = StatusCode::SUCCESS;
61 StatusCode last_released_error = StatusCode::SUCCESS;
76 last_acquired_error = StatusCode::SUCCESS; in Reset()
77 last_released_error = StatusCode::SUCCESS; in Reset()
85 void UpdateAcquiredStats(StatusCode acquired_status) { in UpdateAcquiredStats()
87 if (acquired_status != StatusCode::SUCCESS) { in UpdateAcquiredStats()
106 void UpdateReleasedStats(StatusCode released_status) { in UpdateReleasedStats()
108 if (released_status != StatusCode::SUCCESS) { in UpdateReleasedStats()
204 StatusCode status; in Acquire()
209 status = StatusCode::SUCCESS; in Acquire()
214 if (status != StatusCode::SUCCESS) { in Acquire()
218 return status == StatusCode ::SUCCESS; in Acquire()
230 StatusCode status; in Release()
235 status = StatusCode ::SUCCESS; in Release()
240 if (status != StatusCode::SUCCESS) { in Release()
244 return status == StatusCode ::SUCCESS; in Release()