Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 253) sorted by relevance

1234567891011

/build/blueprint/proptools/
Dhash_provider_test.go8 func mustHash(t *testing.T, data interface{}) uint64 {
10 result, err := CalculateHash(data)
18 data := map[string]string{"foo": "bar", "baz": "qux"}
19 first := mustHash(t, data)
20 second := mustHash(t, data)
21 third := mustHash(t, data)
22 fourth := mustHash(t, data)
31 data interface{}
35 data: []func(){nil},
39 data: []chan int{make(chan int)},
[all …]
/build/make/tools/releasetools/
Drangelib.py33 def __init__(self, data=None): argument
36 if isinstance(data, str):
37 self._parse_internal(data)
38 elif data:
39 assert len(data) % 2 == 0
40 self.data = tuple(self._remove_pairs(data))
41 self.monotonic = all(x < y for x, y in zip(self.data, self.data[1:]))
43 self.data = ()
46 for i in range(0, len(self.data), 2):
47 yield self.data[i:i+2]
[all …]
Dimages.py68 def __init__(self, data, trim=False, pad=False): argument
69 self.data = data
74 partial = len(self.data) % self.blocksize
78 self.data = self.data[:-partial]
80 self.data += '\0' * (self.blocksize - partial)
87 assert len(self.data) % self.blocksize == 0
89 self.total_blocks = len(self.data) // self.blocksize
90 self.care_map = RangeSet(data=(0, self.total_blocks))
108 d = self.data[i*self.blocksize : (i+1)*self.blocksize]
120 self.file_map["__ZERO"] = RangeSet(data=zero_blocks)
[all …]
Dsparse_img.py81 self.clobbered_blocks = rangelib.RangeSet(data=clobbered_blocks)
136 all_blocks = rangelib.RangeSet(data=(0, self.total_blocks))
146 def AppendFillChunk(self, data, blocks): argument
151 f.write(struct.pack("<2H3I", 0xCAC2, 0, blocks, 16, data))
162 for data in self._GetRangeData(ranges):
163 h.update(data)
185 for data in self._GetRangeData(ranges):
186 fd.write(data)
307 data = f.read(self.blocksize)
310 data = reference
[all …]
/build/soong/cc/
Dtest_data_test.go34 data []dataFile
41 data: [
46 data: []dataFile{
64 data: [":fg"],
66 data: []dataFile{
84 data: [":fg"],
86 data: []dataFile{
103 data: [":fg"],
105 data: []dataFile{
137 got := foo.Module().(*testDataTest).data
[all …]
/build/soong/cmd/extract_jar_packages/
Dextract_jar_packages.go80 var data []byte
82 data = append(data, *prefix...)
83 data = append(data, pkg...)
84 data = append(data, "\n"...)
87 must(ioutil.WriteFile(*outputFile, data, 0666))
/build/soong/bazel/
Daquery_test.go136 data, err := JsonToActionGraphContainer(inputString)
141 actualbuildStatements, actualDepsets, _ := AqueryBuildStatements(data, &metrics.EventHandler{})
195 data, err := JsonToActionGraphContainer(inputString)
200 _, _, err = AqueryBuildStatements(data, &metrics.EventHandler{})
230 data, err := JsonToActionGraphContainer(inputString)
235 _, _, err = AqueryBuildStatements(data, &metrics.EventHandler{})
261 data, err := JsonToActionGraphContainer(inputString)
266 _, _, err = AqueryBuildStatements(data, &metrics.EventHandler{})
292 data, err := JsonToActionGraphContainer(inputString)
297 _, _, err = AqueryBuildStatements(data, &metrics.EventHandler{})
[all …]
/build/bazel_common_rules/exec/tests/
DBUILD23 "--args_expanded=$(rootpath data.txt)",
25 data = [":data.txt"],
34 "--args_expanded=$(rootpath data.txt)",
36 data = [":data.txt"],
39 "SCRIPT_B_ENV_EXPANDED": "$(rootpath data.txt)",
45 data = [":data.txt"],
46 script = "cat $(rootpath :data.txt)",
62 data = [
79 data = [":combined"],
/build/bazel/utils/
Dschema_validation_test.bzl44 data = "hello, world"
46 message = validate(data, schema, fail_on_error = False)
56 data = "bar"
65 message = validate(data, schema, fail_on_error = False)
75 data = "qux"
84 message = validate(data, schema, fail_on_error = False)
94 data = "bar"
99 message = validate(data, schema, fail_on_error = False)
109 data = "qux"
114 message = validate(data, schema, fail_on_error = False)
[all …]
/build/soong/shared/
Denv.go48 data, err := json.MarshalIndent(contents, "", " ")
53 data = append(data, '\n')
55 return data, nil
65 data, err := ioutil.ReadFile(filepath)
72 err = json.Unmarshal(data, &contents)
103 data, err := ioutil.ReadFile(envFile)
109 err = json.Unmarshal(data, &contents)
Dproto.go27 data, err := proto.Marshal(pb)
32 if err := ioutil.WriteFile(tempFilepath, []byte(data), 0644 /* rw-r--r-- */); err != nil {
/build/bazel/examples/gensrcs/
DAndroid.bp14 "&& touch $(genDir)/out_dir/data.text " +
15 "&& cat $(genDir)/out_dir/data.text > $(out)",
20 // * $(genDir)/build/bazel/examples/gensrcs/data/data2.out is equivalent to $(out) both Soong and …
21 // * The output path (i.e. data/data2.txt) is nestedly intact with input path (i.e. data/data2.out)
24 srcs: ["data/data2.txt"],
27 "&& cat $(genDir)/build/bazel/examples/gensrcs/data/data2.out",
/build/make/tools/zipalign/
DAndroid.bp72 data: [
73 "tests/data/apkWithUncompressedSharedLibs.zip",
74 "tests/data/archiveWithOneDirectoryEntry.zip",
75 "tests/data/diffOrders.zip",
76 "tests/data/holes.zip",
77 "tests/data/unaligned.zip",
/build/soong/cmd/symbols_map/
Dr8_test.go26 data string
33 data: `# compiler: R8
47 data: ``,
52 data: `# compiler: R8
66 data: `# pg_map_hash: foobar 7fe8b95ae71f179f63d2a585356fb9cf2c8fb94df9c9dd50621ffa6d9e9e88da`,
73 hash, err := extractR8CompilerHash(bytes.NewBufferString(tt.data))
/build/make/core/
Dlayoutlib_data.mk6 font_config := $(sort $(wildcard frameworks/base/data/fonts/*.xml))
10 frameworks/base/data/fonts/%.xml
27 keyboards := $(sort $(wildcard frameworks/base/data/keyboards/*.kcm))
30 $(keyboards): $(KEYBOARD_TEMP)/%.kcm: frameworks/base/data/keyboards/%.kcm
73 rm -rf $(LAYOUTLIB_RES)/data && unzip -q -d $(LAYOUTLIB_RES)/data $(LAYOUTLIB_RES)/temp.zip
74 …B_RES)/compiled && $(HOST_OUT_EXECUTABLES)/aapt2 compile $(LAYOUTLIB_RES)/data/res/**/*.9.png -o $…
80 cp -r $(LAYOUTLIB_RES)/compiled_apk/res $(LAYOUTLIB_RES)/data
81 $(SOONG_ZIP) -C $(LAYOUTLIB_RES)/data -D $(LAYOUTLIB_RES)/data/res -o $@
87 _layoutlib_font_config_files := $(sort $(wildcard frameworks/base/data/fonts/*.xml))
89 _layoutlib_keyboard_files := $(sort $(wildcard frameworks/base/data/keyboards/*.kcm))
[all …]
/build/make/tools/
Dfileslist_util.py24 data = json.load(jf)
25 for line in data:
30 data = json.load(jf)
31 for line in data:
/build/make/tools/droiddoc/templates-pdk/assets/
Dmicrotemplate.js6 this.tmpl = function tmpl(str, data){ argument
33 return data ? fn( data ) : fn;
/build/make/tools/perf/
Dpretty.py22 def FormatTable(data, prefix="", alignments=[]): argument
27 if not data:
30 in zip(*[d for d in data if not isinstance(d, Sentinel)])]
33 for row in data:
/build/soong/symbol_inject/
Dmacho.go132 data := l.Raw()
133 cmd := machoFile.ByteOrder.Uint32(data)
135 codeSignSectionOffset = machoFile.ByteOrder.Uint32(data[8:])
136 codeSignSectionSize = machoFile.ByteOrder.Uint32(data[12:])
143 data := make([]byte, codeSignSectionSize)
144 _, err = f.ReadAt(data, int64(codeSignSectionOffset))
150 blobCount := binary.BigEndian.Uint32(data[8:])
154 blobType := binary.BigEndian.Uint32(data[off:])
156 codeDirectoryOff = binary.BigEndian.Uint32(data[off+4:])
/build/soong/cmd/release_config/release_config_lib/
Dutil.go86 var data []byte
94 data, err = json.MarshalIndent(message, "", " ")
96 data, err = proto.Marshal(message)
98 data, err = prototext.MarshalOptions{Multiline: true}.Marshal(message)
105 return pathtools.WriteFileIfChanged(path, data, 0644)
121 data, err := os.ReadFile(path)
127 return json.Unmarshal(data, message)
129 return proto.Unmarshal(data, message)
131 return prototext.Unmarshal(data, message)
/build/soong/ui/build/
Dutil_test.go61 data := []byte("fake data")
63 if err := ioutil.WriteFile(src, data, 0755); err != nil {
74 if l != int64(len(data)) {
75 t.Errorf("got %d, expecting %d for copied bytes", l, len(data))
83 if bytes.Compare(data, dstData) != 0 {
84 t.Errorf("got %q, expecting data %q from dst %q text file", string(data), string(dstData), dst)
/build/bazel/scripts/incremental_build/
Dplot_metrics.template.txt12 set timefmt "%M:%S" # assume no data point exceeds 59:59
14 $$data << EOD
15 $data
24 plot for[i=3:$column_count] $$data using (column(0)):i:xticlabels(@xl) \
/build/make/tools/aconfig/aconfig_storage_read_api/include/aconfig_storage/
Daconfig_storage_read_api.hpp67 : data() in Result()
73 : data(value) in Result()
84 return data; in operator *()
89 return &data; in operator ->()
97 T data; member in aconfig_storage::Result
/build/soong/android/
Dandroidmk.go76 Custom func(w io.Writer, name, prefix, moduleDir string, data AndroidMkData)
831 func (data *AndroidMkData) fillInData(ctx fillInEntriesContext, mod blueprint.Module) {
833 data.Entries = AndroidMkEntries{
834 Class: data.Class,
835 SubName: data.SubName,
836 DistFiles: data.DistFiles,
837 OutputFile: data.OutputFile,
838 Disabled: data.Disabled,
839 Include: data.Include,
840 Required: data.Required,
[all …]
/build/release/flag_declarations/
DRELEASE_SELINUX_DATA_DATA_IGNORE.textproto3 description: "Ignore /data/data relabelling in libselinux."

1234567891011