aflags: read protos from all containers
Create one library for reading protos from all containers, instead of having numerous libraries perform the same logic. For Java, we will create a similar library reusing the same partition_aconfig_flags_paths.txt. Bug: 324436145 Test: adb shell aflags list # Confirm that various containers appear Change-Id: I924e281a50f9a609e1c07c03267eebe3dce52752
This commit is contained in:
@@ -443,10 +443,12 @@ files {{
|
||||
.unwrap();
|
||||
for i in 0..8 {
|
||||
set_flag_is_sticky(&mut file, FlagValueType::Boolean, i, true).unwrap();
|
||||
let attribute = get_flag_attribute_at_offset(&flag_info_path, FlagValueType::Boolean, i);
|
||||
let attribute =
|
||||
get_flag_attribute_at_offset(&flag_info_path, FlagValueType::Boolean, i);
|
||||
assert!((attribute & (FlagInfoBit::IsSticky as u8)) != 0);
|
||||
set_flag_is_sticky(&mut file, FlagValueType::Boolean, i, false).unwrap();
|
||||
let attribute = get_flag_attribute_at_offset(&flag_info_path, FlagValueType::Boolean, i);
|
||||
let attribute =
|
||||
get_flag_attribute_at_offset(&flag_info_path, FlagValueType::Boolean, i);
|
||||
assert!((attribute & (FlagInfoBit::IsSticky as u8)) == 0);
|
||||
}
|
||||
}
|
||||
@@ -485,10 +487,12 @@ files {{
|
||||
.unwrap();
|
||||
for i in 0..8 {
|
||||
set_flag_has_override(&mut file, FlagValueType::Boolean, i, true).unwrap();
|
||||
let attribute = get_flag_attribute_at_offset(&flag_info_path, FlagValueType::Boolean, i);
|
||||
let attribute =
|
||||
get_flag_attribute_at_offset(&flag_info_path, FlagValueType::Boolean, i);
|
||||
assert!((attribute & (FlagInfoBit::HasOverride as u8)) != 0);
|
||||
set_flag_has_override(&mut file, FlagValueType::Boolean, i, false).unwrap();
|
||||
let attribute = get_flag_attribute_at_offset(&flag_info_path, FlagValueType::Boolean, i);
|
||||
let attribute =
|
||||
get_flag_attribute_at_offset(&flag_info_path, FlagValueType::Boolean, i);
|
||||
assert!((attribute & (FlagInfoBit::HasOverride as u8)) == 0);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user