ohos_abilitykit_sys/runtime/context_constant/
context_constant_ffi.rs

1// automatically generated by rust-bindgen 0.71.1
2
3#![allow(non_upper_case_globals)]
4#![allow(non_camel_case_types)]
5#![allow(non_snake_case)]
6
7#[cfg(feature = "api-13")]
8#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
9impl AbilityRuntime_AreaMode {
10    /// System level device encryption area.
11    pub const ABILITY_RUNTIME_AREA_MODE_EL1: AbilityRuntime_AreaMode = AbilityRuntime_AreaMode(0);
12    /// User credential encryption area.
13    pub const ABILITY_RUNTIME_AREA_MODE_EL2: AbilityRuntime_AreaMode = AbilityRuntime_AreaMode(1);
14    /// User credential encryption area.
15    /// when screen locked, can read/write, and create file.
16    pub const ABILITY_RUNTIME_AREA_MODE_EL3: AbilityRuntime_AreaMode = AbilityRuntime_AreaMode(2);
17    /// User credential encryption area.
18    /// when screen locked, FEB2.0 can read/write, FEB3.0 can't
19    /// read/write, and all can't create file.
20    pub const ABILITY_RUNTIME_AREA_MODE_EL4: AbilityRuntime_AreaMode = AbilityRuntime_AreaMode(3);
21    /// User privacy-sensitive encryption area.
22    /// when the screen locked, a closed file cannot be opened, read, or written,
23    /// a file can be created and then opened, read, or written.
24    pub const ABILITY_RUNTIME_AREA_MODE_EL5: AbilityRuntime_AreaMode = AbilityRuntime_AreaMode(4);
25}
26#[repr(transparent)]
27/// File area mode.
28///
29///
30/// Available since API-level: 13
31#[cfg(feature = "api-13")]
32#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
33#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
34pub struct AbilityRuntime_AreaMode(pub ::core::ffi::c_uint);
35#[cfg(feature = "api-17")]
36#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
37impl AbilityRuntime_StartVisibility {
38    /// Indicates that the ability will hide after process startup.
39    pub const ABILITY_RUNTIME_HIDE_UPON_START: AbilityRuntime_StartVisibility =
40        AbilityRuntime_StartVisibility(0);
41    /// Indicates that the ability will show after process startup.
42    pub const ABILITY_RUNTIME_SHOW_UPON_START: AbilityRuntime_StartVisibility =
43        AbilityRuntime_StartVisibility(1);
44}
45#[repr(transparent)]
46/// Start Visibility.
47///
48///
49/// Available since API-level: 17
50#[cfg(feature = "api-17")]
51#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
52#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
53pub struct AbilityRuntime_StartVisibility(pub ::core::ffi::c_uint);
54#[cfg(feature = "api-17")]
55#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
56impl AbilityRuntime_WindowMode {
57    /// The window mode is not defined.
58    pub const ABILITY_RUNTIME_WINDOW_MODE_UNDEFINED: AbilityRuntime_WindowMode =
59        AbilityRuntime_WindowMode(0);
60    /// Full screen mode.
61    pub const ABILITY_RUNTIME_WINDOW_MODE_FULL_SCREEN: AbilityRuntime_WindowMode =
62        AbilityRuntime_WindowMode(1);
63}
64#[repr(transparent)]
65/// Window mode.
66///
67///
68/// Available since API-level: 17
69#[cfg(feature = "api-17")]
70#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
71#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
72pub struct AbilityRuntime_WindowMode(pub ::core::ffi::c_uint);
73#[cfg(feature = "api-17")]
74#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
75impl AbilityRuntime_SupportedWindowMode {
76    /// Indicates supported window mode of full screen mode
77    pub const ABILITY_RUNTIME_SUPPORTED_WINDOW_MODE_FULL_SCREEN:
78        AbilityRuntime_SupportedWindowMode = AbilityRuntime_SupportedWindowMode(0);
79    /// Indicates supported window mode of split mode
80    pub const ABILITY_RUNTIME_SUPPORTED_WINDOW_MODE_SPLIT: AbilityRuntime_SupportedWindowMode =
81        AbilityRuntime_SupportedWindowMode(1);
82    /// Indicates supported window mode of floating mode
83    pub const ABILITY_RUNTIME_SUPPORTED_WINDOW_MODE_FLOATING: AbilityRuntime_SupportedWindowMode =
84        AbilityRuntime_SupportedWindowMode(2);
85}
86#[repr(transparent)]
87/// Support window mode
88///
89///
90/// Available since API-level: 17
91#[cfg(feature = "api-17")]
92#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
93#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
94pub struct AbilityRuntime_SupportedWindowMode(pub ::core::ffi::c_uint);