pub struct Features {Show 29 fields
pub kernel: KernelFeatures,
pub selinux: SELinuxFeature,
pub system_limits: SystemLimits,
pub ashmem: bool,
pub boot_notifier: bool,
pub boot_notifier_cpu_boost: Option<MonotonicDuration>,
pub framebuffer: bool,
pub aspect_ratio: Option<AspectRatio>,
pub enable_visual_debugging: bool,
pub gralloc: bool,
pub kgsl: bool,
pub magma_supported_vendors: Option<Vec<u16>>,
pub gfxstream: bool,
pub container: bool,
pub test_data: bool,
pub custom_artifacts: bool,
pub android_serialno: bool,
pub perfetto: Option<FsString>,
pub rootfs_rw: bool,
pub network_manager: bool,
pub nanohub: bool,
pub fastrpc: bool,
pub enable_utc_time_adjustment: bool,
pub thermal: bool,
pub cooling: Option<Vec<String>>,
pub android_bootreason: bool,
pub hvdcp_opti: bool,
pub additional_mounts: Option<Vec<String>>,
pub wakeup_test: bool,
}Expand description
A collection of parsed features, and their arguments.
Fields§
§kernel: KernelFeaturesFeatures that must be available to the kernel after initialization.
selinux: SELinuxFeatureSELinux configuration.
system_limits: SystemLimitsLimits value passed to the kernel during the initialization.
ashmem: boolWhether to enable ashmem.
boot_notifier: boolWhether to enable a boot notifier device.
boot_notifier_cpu_boost: Option<MonotonicDuration>Whether to boost CPU for a fixed duration.
framebuffer: boolWhether to enable a framebuffer device.
aspect_ratio: Option<AspectRatio>Display aspect ratio.
enable_visual_debugging: boolThis controls whether or not the default framebuffer background is black or colorful, to aid debugging.
gralloc: boolWhether to enable gralloc.
kgsl: boolWhether to enable the Kernel Graphics Support Layer (kgsl) device used by Adreno GPUs.
magma_supported_vendors: Option<Vec<u16>>Supported magma vendor IDs.
gfxstream: boolWhether to enable gfxstream.
container: boolInclude the /container directory in the root file system.
test_data: boolInclude the /test_data directory in the root file system.
custom_artifacts: boolInclude the /custom_artifacts directory in the root file system.
android_serialno: boolWhether to provide android with a serial number.
perfetto: Option<FsString>Optional perfetto configuration.
rootfs_rw: boolWhether to allow the root filesystem to be read/write.
network_manager: boolWhether to enable network manager and its filesystem.
nanohub: boolWhether to enable the nanohub module.
fastrpc: boolWhether to enable the fastrpc module.
enable_utc_time_adjustment: bool§thermal: bool§cooling: Option<Vec<String>>Optional cooling features to enable. See cooling_device_init for a list of possible
values and their parameters.
android_bootreason: boolWhether to add android bootreason to kernel cmdline.
hvdcp_opti: bool§additional_mounts: Option<Vec<String>>§wakeup_test: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Features
impl !RefUnwindSafe for Features
impl Send for Features
impl Sync for Features
impl Unpin for Features
impl UnwindSafe for Features
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more