Lines Matching refs:aidl_name
95 ($(#[$m:meta])* $name:ident from $aidl_name:ident with default ($($def:tt)*)
98 implement_permission_aidl!(@replace_use $($m)*, $name, $aidl_name, ($($def)*), [],
108 (@replace_use $($m:meta)*, $name:ident, $aidl_name:ident, ($($def:tt)*), [$($out:tt)*], ) => {
109 implement_permission_aidl!(@end $($m)*, $name, $aidl_name, ($($def)*) { $($out)* } );
115 (@replace_use $($m:meta)*, $name:ident, $aidl_name:ident, ($($def:tt)*), [$($out:tt)*],
118 implement_permission_aidl!(@replace_use $($m)*, $name, $aidl_name, ($($def)*),
125 (@replace_use $($m:meta)*, $name:ident, $aidl_name:ident, ($($def:tt)*), [$($out:tt)*],
128 implement_permission_aidl!(@replace_use $($m)*, $name, $aidl_name, ($($def)*),
132 (@end $($m:meta)*, $name:ident, $aidl_name:ident,
140 pub struct $name(pub $aidl_name);
142 impl From<$aidl_name> for $name {
143 fn from (p: $aidl_name) -> Self {
145 $aidl_name::$def_name => Self($aidl_name::$def_name),
146 $($aidl_name::$element_name => Self($aidl_name::$element_name),)*
147 _ => Self($aidl_name::$def_name),
152 impl From<$name> for $aidl_name {
153 fn from(p: $name) -> $aidl_name {
163 Self($aidl_name::$def_name) => stringify!($def_selinux_name),
164 $(Self($aidl_name::$element_name) => stringify!($selinux_name),)*
170 pub const fn $def_selinux_name() -> Self { Self($aidl_name::$def_name) }
173 pub const fn $element_identifier() -> Self { Self($aidl_name::$element_name) }