Home
last modified time | relevance | path

Searched refs:flag_value_list (Results 1 – 5 of 5) sorted by relevance

/build/make/tools/aconfig/aconfig_storage_write_api/src/
Dflag_value_update.rs57 let flag_value_list = create_test_flag_value_list(); in test_boolean_flag_value_update() localVariable
58 let value_offset = flag_value_list.header.boolean_value_offset; in test_boolean_flag_value_update()
59 let mut content = flag_value_list.into_bytes(); in test_boolean_flag_value_update()
63 for i in 0..flag_value_list.header.num_flags { in test_boolean_flag_value_update()
75 let mut flag_value_list = create_test_flag_value_list().into_bytes(); in test_boolean_out_of_range() localVariable
76 let error = update_boolean_flag_value(&mut flag_value_list[..], 8, true).unwrap_err(); in test_boolean_out_of_range()
/build/make/tools/aconfig/aconfig_storage_file/src/
Dflag_value.rs139 let flag_value_list = create_test_flag_value_list(); in test_serialization() localVariable
141 let header: &FlagValueHeader = &flag_value_list.header; in test_serialization()
146 let flag_value_bytes = flag_value_list.into_bytes(); in test_serialization()
149 assert_eq!(&flag_value_list, &reinterpreted_value_list.unwrap()); in test_serialization()
157 let flag_value_list = create_test_flag_value_list(); in test_version_number() localVariable
158 let bytes = &flag_value_list.into_bytes(); in test_version_number()
167 let mut flag_value_list = create_test_flag_value_list(); in test_file_type_check() localVariable
168 flag_value_list.header.file_type = 123u8; in test_file_type_check()
169 let error = FlagValueList::from_bytes(&flag_value_list.into_bytes()).unwrap_err(); in test_file_type_check()
Dlib.rs298 let flag_value_list = FlagValueList::from_bytes(&read_file_to_bytes(flag_val)?)?; in list_flags() localVariable
309 let flag_value = flag_value_list.booleans[flag_index as usize]; in list_flags()
346 let flag_value_list = FlagValueList::from_bytes(&read_file_to_bytes(flag_val)?)?; in list_flags_with_info() localVariable
358 let flag_value = flag_value_list.booleans[flag_index as usize]; in list_flags_with_info()
517 let flag_value_list = in test_list_flag() localVariable
522 let flag_value_list_path = flag_value_list.path().display().to_string(); in test_list_flag()
585 let flag_value_list = in test_list_flag_with_info() localVariable
592 let flag_value_list_path = flag_value_list.path().display().to_string(); in test_list_flag_with_info()
/build/make/tools/aconfig/aconfig_storage_read_api/src/
Dflag_value_query.rs54 let flag_value_list = create_test_flag_value_list().into_bytes(); in test_flag_value_query() localVariable
57 let flag_value = find_boolean_flag_value(&flag_value_list[..], offset as u32).unwrap(); in test_flag_value_query()
65 let flag_value_list = create_test_flag_value_list().into_bytes(); in test_boolean_out_of_range() localVariable
66 let error = find_boolean_flag_value(&flag_value_list[..], 8).unwrap_err(); in test_boolean_out_of_range()
/build/make/tools/aconfig/aconfig/src/storage/
Dflag_value.rs76 let flag_value_list = create_test_flag_value_list_from_source(); in test_list_contents() localVariable
77 assert!(flag_value_list.is_ok()); in test_list_contents()
80 assert_eq!(flag_value_list.unwrap(), expected_flag_value_list); in test_list_contents()