1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// WARNING: This file is machine generated by fidlgen.

#![warn(clippy::all)]
#![allow(unused_parens, unused_mut, unused_imports, nonstandard_style)]

use bitflags::bitflags;
use fidl::client::QueryResponseFut;
use fidl::encoding::ProxyChannelBox;
use fidl::endpoints::{ControlHandle as _, Responder as _};
use futures::future::{self, MaybeDone, TryFutureExt};
use zx_status;

/// Timestamp in nanos at which suspend was attempted.
pub const SUSPEND_ATTEMPTED_AT: &str = "attempted_at_ns";

/// Label of an inspect node tallying suspend events.
pub const SUSPEND_EVENTS_NODE: &str = "suspend_events";

/// Timestamp in nanos at which suspend failed.
pub const SUSPEND_FAILED_AT: &str = "failed_at_ns";

/// The number of failed suspends.
pub const SUSPEND_FAIL_COUNT: &str = "fail_count";

/// The duration of time last spent in operations leading to suspend,
/// excluding the time actually spent suspended.
///
/// TODO: b/354239403 - make this string also end with `_ns` to be consistent
/// with the conventions above.
pub const SUSPEND_LAST_DURATION: &str = "last_time_in_suspend_operations";

/// The error code related to the last suspend operation.
pub const SUSPEND_LAST_FAILED_ERROR: &str = "last_failed_error";

/// The duration of time last spent in suspend.
pub const SUSPEND_LAST_TIMESTAMP: &str = "last_time_in_suspend_ns";

/// The requested future system state.
pub const SUSPEND_REQUESTED_STATE: &str = "requested_power_state";

/// Timestamp in nanos at which a resume happened.
pub const SUSPEND_RESUMED_AT: &str = "resumed_at_ns";

/// Label of an inspect node keeping suspend statistics.
pub const SUSPEND_STATS_NODE: &str = "suspend_stats";

/// The number of successful suspends.
pub const SUSPEND_SUCCESS_COUNT: &str = "success_count";

/// The number of suspend failures observed.
pub const UNHANDLED_SUSPEND_FAILURES_COUNT: &str = "unhandled_suspend_failures_count";

mod internal {
    use super::*;
}