/build/soong/symbol_inject/ |
D | elf_test.go | 26 offset, size uint64 31 offset: 0x1030, 37 offset: 0x1030, 43 offset: 0x10b0, 54 offset, size, err := findSymbol(file, testCase.symbol) 58 if offset != testCase.offset || size != testCase.size { 59 t.Errorf("expected %x:%x, got %x:%x", testCase.offset, testCase.size, offset, size)
|
D | macho_test.go | 27 offset, size uint64 32 offset: 0x1020, 38 offset: 0x1020, 44 offset: 0x10a0, 55 offset, size, err := findSymbol(file, testCase.symbol) 59 if offset != testCase.offset || size != testCase.size { 60 t.Errorf("expected %x:%x, got %x:%x", testCase.offset, testCase.size, offset, size)
|
D | symbol_inject_test.go | 26 offset uint64 31 offset: 0, 36 offset: 1, 41 offset: 25, 51 copyAndInject(in, out, testCase.offset, []byte(testCase.buf))
|
D | pe_test.go | 27 offset, size uint64 32 offset: 0x2420, 38 offset: 0x2420, 44 offset: 0x24a0, 64 offset: 0x15f020, 82 offset: 0x2420, 102 offset: 0x2420, 121 offset: 0x2420, 132 offset, size, err := findSymbol(file, testCase.symbol) 136 if offset != testCase.offset || size != testCase.size { [all …]
|
D | symbol_inject.go | 55 offset, size, err := findSymbol(file, symbol) 69 _, err := file.r.ReadAt(existing, int64(offset)) 82 return copyAndInject(file.r, w, offset, buf) 86 offset, size, err := findSymbol(file, symbol) 98 return copyAndInject(file.r, w, offset, buf) 101 func copyAndInject(r io.ReaderAt, w io.Writer, offset uint64, buf []byte) (err error) { 103 _, err = io.Copy(w, io.NewSectionReader(r, 0, int64(offset))) 111 pos := int64(offset) + int64(len(buf)) 154 offset := symbol.Section.Offset + symbol.Addr 156 return uint64(offset), uint64(size), nil
|
/build/make/tools/aconfig/aconfig_storage_write_api/tests/ |
D | storage_write_api_test.cpp | 81 for (int offset = 0; offset < 8; ++offset) { in TEST_F() local 82 auto update_result = api::set_boolean_flag_value(*mapped_file, offset, true); in TEST_F() 84 auto value = api::get_boolean_flag_value(*mapped_file, offset); in TEST_F() 107 for (int offset = 0; offset < 8; ++offset) { in TEST_F() local 109 *mapped_file, api::FlagValueType::Boolean, offset, true); in TEST_F() 112 *mapped_file, api::FlagValueType::Boolean, offset); in TEST_F() 117 *mapped_file, api::FlagValueType::Boolean, offset, false); in TEST_F() 120 *mapped_file, api::FlagValueType::Boolean, offset); in TEST_F() 132 for (int offset = 0; offset < 8; ++offset) { in TEST_F() local 134 *mapped_file, api::FlagValueType::Boolean, offset, true); in TEST_F() [all …]
|
D | storage_write_api_test.rs | 23 fn get_boolean_flag_value_at_offset(file: &str, offset: u32) -> bool { in get_boolean_flag_value_at_offset() 27 find_boolean_flag_value(&bytes, offset).unwrap() in get_boolean_flag_value_at_offset() 31 fn get_flag_attribute_at_offset(file: &str, value_type: FlagValueType, offset: u32) -> u8 { in get_flag_attribute_at_offset() 35 find_flag_attribute(&bytes, value_type, offset).unwrap() in get_flag_attribute_at_offset()
|
/build/make/tools/aconfig/aconfig_storage_read_api/src/ |
D | flag_info_query.rs | 62 for offset in 0..8 { in test_is_flag_sticky() 64 find_flag_attribute(&flag_info_list[..], FlagValueType::Boolean, offset).unwrap(); in test_is_flag_sticky() 74 for offset in 0..8 { in test_is_flag_readwrite() 76 find_flag_attribute(&flag_info_list[..], FlagValueType::Boolean, offset).unwrap(); in test_is_flag_readwrite() 79 baseline[offset as usize] in test_is_flag_readwrite() 88 for offset in 0..8 { in test_flag_has_override() 90 find_flag_attribute(&flag_info_list[..], FlagValueType::Boolean, offset).unwrap(); in test_flag_has_override()
|
D | lib.rs | 227 pub fn get_boolean_flag_value_cxx(file: &[u8], offset: u32) -> BooleanFlagValueQueryCXX; in get_boolean_flag_value_cxx() 244 Some(offset) => Self { in new() 248 package_id: offset.package_id, in new() 249 boolean_start_index: offset.boolean_start_index, in new() 275 Some(offset) => Self { in new() 279 flag_type: offset.flag_type as u16, in new() 280 flag_index: offset.flag_index, in new() 367 pub fn get_boolean_flag_value_cxx(file: &[u8], offset: u32) -> ffi::BooleanFlagValueQueryCXX { in get_boolean_flag_value_cxx() 368 ffi::BooleanFlagValueQueryCXX::new(find_boolean_flag_value(file, offset)) in get_boolean_flag_value_cxx() 485 for (offset, expected_value) in baseline.into_iter().enumerate() { in test_flag_value_query() [all …]
|
D | flag_value_query.rs | 56 for (offset, expected_value) in baseline.into_iter().enumerate() { in test_flag_value_query() 57 let flag_value = find_boolean_flag_value(&flag_value_list[..], offset as u32).unwrap(); in test_flag_value_query()
|
D | package_table_query.rs | 66 Some(offset) => package_node_offset = offset as usize, in find_package_read_context()
|
D | flag_table_query.rs | 67 Some(offset) => flag_node_offset = offset as usize, in find_flag_read_context()
|
/build/blueprint/parser/ |
D | modify.go | 117 var offset int64 119 toWrite := int64(patch.Start) - offset 120 written, err := io.Copy(out, io.NewSectionReader(in, offset, toWrite)) 124 offset += toWrite 126 return fmt.Errorf("unexpected EOF at %d", offset) 134 offset += int64(patch.End - patch.Start) 136 _, err := io.Copy(out, io.NewSectionReader(in, offset, math.MaxInt64-offset))
|
/build/make/tools/aconfig/aconfig_storage_write_api/include/aconfig_storage/ |
D | aconfig_storage_write_api.hpp | 22 uint32_t offset, 29 uint32_t offset, 36 uint32_t offset,
|
/build/make/tools/aconfig/aconfig_storage_write_api/ |
D | aconfig_storage_write_api.cpp | 50 uint32_t offset, in set_boolean_flag_value() argument 54 auto update_cxx = update_boolean_flag_value_cxx(content, offset, value); in set_boolean_flag_value() 65 uint32_t offset, in set_flag_has_server_override() argument 70 content, static_cast<uint16_t>(value_type), offset, value); in set_flag_has_server_override() 81 uint32_t offset, in set_flag_has_local_override() argument 86 content, static_cast<uint16_t>(value_type), offset, value); in set_flag_has_local_override()
|
/build/make/tools/zipalign/ |
D | ZipAlign.cpp | 183 off_t offset = pEntry->getFileOffset(); in verify() local 186 if ((offset % alignTo) != 0) { in verify() 189 (intmax_t) offset, pEntry->getFileName(), in verify() 190 (intmax_t) (offset % alignTo)); in verify() 196 (intmax_t) offset, pEntry->getFileName()); in verify()
|
/build/make/tools/releasetools/ |
D | test_ota_utils.py | 54 (offset, size) = ota_utils.GetZipEntryOffset(zfp, zinfo) 56 self.assertEqual(offset, zipfile.sizeFileHeader+len(zinfo.filename) + 28)
|
/build/make/tools/aconfig/aconfig_storage_write_api/src/ |
D | lib.rs | 222 offset: u32, in update_boolean_flag_value_cxx() 229 offset: u32, in update_flag_has_server_override_cxx() 236 offset: u32, in update_flag_has_local_override_cxx() 250 offset: u32, in update_boolean_flag_value_cxx() 253 match crate::flag_value_update::update_boolean_flag_value(file, offset, value) { in update_boolean_flag_value_cxx() 267 offset: u32, in update_flag_has_server_override_cxx() 273 file, value_type, offset, value, in update_flag_has_server_override_cxx() 295 offset: u32, in update_flag_has_local_override_cxx() 301 file, value_type, offset, value, in update_flag_has_local_override_cxx() 349 fn get_boolean_flag_value_at_offset(file: &str, offset: u32) -> bool { in get_boolean_flag_value_at_offset() [all …]
|
D | flag_value_update.rs | 64 let offset = (value_offset + i) as usize; in test_boolean_flag_value_update() localVariable 66 assert_eq!(content[offset], true_byte); in test_boolean_flag_value_update() 68 assert_eq!(content[offset], false_byte); in test_boolean_flag_value_update()
|
/build/soong/third_party/zip/ |
D | writer.go | 29 offset uint64 member 81 if h.isZip64() || h.offset >= uint32max { 95 eb.uint64(h.offset) 106 if h.offset > uint32max { 109 b.uint32(uint32(h.offset)) 128 offset := uint64(start) 130 if records > uint16max || size > uint32max || offset > uint32max { 144 …b.uint64(offset) // offset of start of central directory with respect to the start… 172 if offset > uint32max { 173 offset = uint32max [all …]
|
/build/make/tools/aconfig/aconfig/src/storage/ |
D | package_table.rs | 78 let mut offset = header.node_offset; in create_package_table() localVariable 88 buckets[node_bucket_idx as usize] = Some(offset); in create_package_table() 90 offset += node_wrappers[i].node.into_bytes().len() as u32; in create_package_table() 94 node_wrappers[i].node.next_offset = Some(offset); in create_package_table()
|
D | flag_table.rs | 112 let mut offset = header.node_offset; in create_flag_table() localVariable 122 buckets[node_bucket_idx as usize] = Some(offset); in create_flag_table() 124 offset += node_wrappers[i].node.into_bytes().len() as u32; in create_flag_table() 128 node_wrappers[i].node.next_offset = Some(offset); in create_flag_table()
|
/build/bazel/rules/ |
D | prebuilt_xml_test.bzl | 35 offset = 0 39 offset = 2 50 asserts.equals(env, SRC, paths.basename(args[1 + offset])) 51 asserts.equals(env, ">", args[2 + offset]) 52 asserts.equals(env, "/dev/null", args[3 + offset]) 53 asserts.equals(env, "&&", args[4 + offset]) 54 asserts.equals(env, "touch", args[5 + offset]) 55 asserts.equals(env, "-a", args[6 + offset])
|
/build/make/tools/aconfig/aconfig_storage_read_api/tests/ |
D | storage_read_api_test.rs | 150 for (offset, expected_value) in baseline.into_iter().enumerate() { in test_boolean_flag_value_query() 151 let flag_value = get_boolean_flag_value(&flag_value_file, offset as u32).unwrap(); in test_boolean_flag_value_query() 178 for (offset, expected_value) in is_rw.into_iter().enumerate() { in test_flag_info_query() 180 get_flag_attribute(&flag_info_file, FlagValueType::Boolean, offset as u32).unwrap(); in test_flag_info_query()
|
/build/soong/cmd/host_bionic_verify/ |
D | host_bionic_verify_test.go | 24 func prog(flags elf.ProgFlag, offset, addr, filesz, memsz uint64) *elf.Prog { argument 29 Off: offset,
|