Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 213) sorted by relevance

123456789

/build/blueprint/parser/
Dsort_test.go22 b string
25 a, b string
46 oneTest := func(a, b string, want bool) {
48 if got := numericStringLess(a, b); got != want {
49 t.Errorf("want numericStringLess(%v, %v) = %v, got %v", a, b, want, got)
54 t.Run(tt.a+"<"+tt.b, func(t *testing.T) {
56 oneTest(tt.a, tt.b, true)
58 oneTest(tt.b, tt.a, false)
62 oneTest(tt.b, tt.b, false)
65 oneTest("a"+tt.a, "a"+tt.b, true)
[all …]
/build/soong/third_party/zip/
Dwriter.go72 b := writeBuf(buf[:])
73 b.uint32(uint32(directoryHeaderSignature))
74 b.uint16(h.CreatorVersion)
75 b.uint16(h.ReaderVersion)
76 b.uint16(h.Flags)
77 b.uint16(h.Method)
78 b.uint16(h.ModifiedTime)
79 b.uint16(h.ModifiedDate)
80 b.uint32(h.CRC32)
85 b.uint32(uint32max) // compressed size
[all …]
Dreader.go190 func (r *checksumReader) Read(b []byte) (n int, err error) {
194 n, err = r.rc.Read(b)
195 r.hash.Write(b[:n])
236 b := readBuf(buf[:])
237 if sig := b.uint32(); sig != fileHeaderSignature {
240 b = b[22:] // skip over most of the header
241 filenameLen := int(b.uint16())
242 extraLen := int(b.uint16())
254 b := readBuf(buf[:])
255 if sig := b.uint32(); sig != directoryHeaderSignature {
[all …]
Dreader_test.go408 var b bytes.Buffer
409 _, err = io.Copy(&b, r)
418 if g := uint64(b.Len()); g != size {
430 if b.Len() != len(c) {
431 t.Errorf("%s: len=%d, want %d", f.Name, b.Len(), len(c))
435 for i, b := range b.Bytes() {
436 if b != c[i] {
437 t.Errorf("%s: content[%d]=%q want %q", f.Name, i, b, c[i])
454 b := make([]byte, size)
457 _, err := NewReader(bytes.NewReader(b), size)
[all …]
/build/soong/filesystem/
Dbootimg.go99 func (b *bootimg) DepsMutator(ctx android.BottomUpMutatorContext) {
100 ramdisk := proptools.String(b.properties.Ramdisk_module)
106 func (b *bootimg) installFileName() string {
107 return proptools.StringDefault(b.properties.Stem, b.BaseModuleName()+".img")
110 func (b *bootimg) partitionName() string {
111 return proptools.StringDefault(b.properties.Partition_name, b.BaseModuleName())
114 func (b *bootimg) GenerateAndroidBuildActions(ctx android.ModuleContext) {
115 vendor := proptools.Bool(b.properties.Vendor_boot)
116 unsignedOutput := b.buildBootImage(ctx, vendor)
118 if proptools.Bool(b.properties.Use_avb) {
[all …]
/build/make/tools/droiddoc/templates-pdk/assets/
Djquery-1.6.2.min.js16b){function cv(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function … argument
17b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3|… argument
/build/make/tools/
Dgenerate-notice-files.py38 b"&": b"&amp;",
39 b'"': b"&quot;",
40 b"'": b"&apos;",
41 b">": b"&gt;",
42 b"<": b"&lt;",
68 return b"".join(HTML_ESCAPE_TABLE.get(i,i) for i in struct.unpack(str(len(text)) + 'c', text))
70 HTML_OUTPUT_CSS=b"""
97 output_file.write(b"<html><head>\n")
99 …output_file.write(b'</head><body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">\n')
102 output_file.write(b'<div class="toc">\n')
[all …]
/build/soong/bp2build/
Dperformance_test.go140 func BenchmarkManyModulesFull(b *testing.B) {
143 b.Run(fmt.Sprintf("pctConverted %f", tcSize), func(b *testing.B) {
144 for n := 0; n < b.N; n++ {
145 b.StopTimer()
148 b.StartTimer()
151 b.Fatalf("Unexpected errors: %s", errs)
156 b.Fatalf("Unexpected errors: %s", errs)
160 b.StopTimer()
166 func BenchmarkManyModulesResolveDependencies(b *testing.B) {
169 b.Run(fmt.Sprintf("pctConverted %f", tcSize), func(b *testing.B) {
[all …]
/build/soong/android/
Doverride_module.go153 func (b *OverridableModuleBase) setOverridableProperties(prop []interface{}) {
154 b.overridableProperties = prop
157 func (b *OverridableModuleBase) addOverride(o OverrideModule) {
158 b.overridesLock.Lock()
159 b.overrides = append(b.overrides, o)
160 b.overridesLock.Unlock()
164 func (b *OverridableModuleBase) getOverrides() []OverrideModule {
165 b.overridesLock.Lock()
166 sort.Slice(b.overrides, func(i, j int) bool {
167 return b.overrides[i].Name() < b.overrides[j].Name()
[all …]
Ddepset_test.go27 b := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("b")).Transitive(a).Build()
29 d := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("d")).Transitive(b, c).Build()
37 b := NewDepSetBuilder(PREORDER).Direct(PathForTesting("b")).Transitive(a).Build()
39 d := NewDepSetBuilder(PREORDER).Direct(PathForTesting("d")).Transitive(b, c).Build()
47 b := NewDepSetBuilder(TOPOLOGICAL).Direct(PathForTesting("b")).Transitive(a).Build()
49 d := NewDepSetBuilder(TOPOLOGICAL).Direct(PathForTesting("d")).Transitive(b, c).Build()
57 b := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("b")).Transitive(a).Build()
59 d := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("d")).Transitive(b, c).Build()
69 b := PathForTesting("b")
83 return NewDepSet(order, Paths{c, a, b}, nil)
[all …]
Dbazel.go132 func (b *BazelModuleBase) bazelProps() *properties {
133 return &b.bazelProperties
136 func (b *BazelModuleBase) namespacedVariableProps() namespacedVariableProperties {
137 return b.namespacedVariableProperties
140 func (b *BazelModuleBase) setNamespacedVariableProps(props namespacedVariableProperties) {
141 b.namespacedVariableProperties = props
144 func (b *BazelModuleBase) BaseModuleType() string {
145 return b.baseModuleType
148 func (b *BazelModuleBase) SetBaseModuleType(baseModuleType string) {
149 b.baseModuleType = baseModuleType
[all …]
Donceper_test.go27 b := once.Once(key, func() interface{} { return "b" }).(string)
33 if b != "a" {
34 t.Errorf(`second call to Once with the same key should return "a": %q`, b)
58 b := once.Get(key).(string)
64 if b != "a" {
65 t.Errorf(`Get with the same key should return "a": %q`, b)
104 b := once.OnceStringSlice(key, func() []string { return []string{"a"} })
110 if b[0] != "a" {
111 t.Errorf(`second call to OnceStringSlice with the same key should return ["a"]: %q`, b)
119 …a, b := once.Once2StringSlice(key, func() ([]string, []string) { return []string{"a"}, []string{"b…
[all …]
Dmutator.go582 func (b *bottomUpMutatorContext) MutatorName() string {
583 return b.bp.MutatorName()
586 func (b *bottomUpMutatorContext) Rename(name string) {
587 b.bp.Rename(name)
588 b.Module().base().commonProperties.DebugName = name
591 func (b *bottomUpMutatorContext) AddDependency(module blueprint.Module, tag blueprint.DependencyTag…
592 return b.bp.AddDependency(module, tag, name...)
595 func (b *bottomUpMutatorContext) AddReverseDependency(module blueprint.Module, tag blueprint.Depend…
596 b.bp.AddReverseDependency(module, tag, name)
599 func (b *bottomUpMutatorContext) CreateVariations(variations ...string) []Module {
[all …]
Ddepset_paths.go53 func (b *DepSetBuilder) Direct(direct ...Path) *DepSetBuilder {
54 b.depSetBuilder.DirectSlice(direct)
55 return b
60 func (b *DepSetBuilder) Transitive(transitive ...*DepSet) *DepSetBuilder {
61 b.depSetBuilder.Transitive(transitive)
62 return b
67 func (b *DepSetBuilder) Build() *DepSet {
68 return &DepSet{*b.depSetBuilder.Build()}
/build/soong/java/
Dplatform_bootclasspath.go78 func (b *platformBootclasspathModule) AndroidMkEntries() (entries []android.AndroidMkEntries) {
82 OutputFile: android.OptionalPathForPath(b.hiddenAPIFlagsCSV),
85 entries = append(entries, b.classpathFragmentBase().androidMkEntries()...)
90 func (b *platformBootclasspathModule) OutputFiles(tag string) (android.Paths, error) {
93 return android.Paths{b.hiddenAPIFlagsCSV}, nil
95 return android.Paths{b.hiddenAPIIndexCSV}, nil
97 return android.Paths{b.hiddenAPIMetadataCSV}, nil
103 func (b *platformBootclasspathModule) DepsMutator(ctx android.BottomUpMutatorContext) {
104 b.hiddenAPIDepsMutator(ctx)
115 func (b *platformBootclasspathModule) hiddenAPIDepsMutator(ctx android.BottomUpMutatorContext) {
[all …]
Dbootclasspath_fragment.go57 func (b bootclasspathFragmentContentDependencyTag) ExcludeFromVisibilityEnforcement() {
61 func (b bootclasspathFragmentContentDependencyTag) ReplaceSourceWithPrebuilt() bool {
67 func (b bootclasspathFragmentContentDependencyTag) SdkMemberType(child android.Module) android.SdkM…
77 func (b bootclasspathFragmentContentDependencyTag) ExportMember() bool {
83 func (b bootclasspathFragmentContentDependencyTag) CopyDirectlyInAnyApex() {}
86 func (b bootclasspathFragmentContentDependencyTag) RequiresFilesFromPrebuiltApex() {}
369 func (b *BootclasspathFragmentModule) bootclasspathImageNameContentsConsistencyCheck(ctx android.Ba…
370 imageName := proptools.String(b.properties.Image_name)
373 if android.IsModuleInVersionedSdk(b) {
386 modules := b.getImageConfig(ctx).modules
[all …]
/build/soong/rust/
Dbindgen.go93 func (b *bindgenDecorator) getStdVersion(ctx ModuleContext, src android.Path) (string, bool) {
103 if String(b.ClangProperties.Cpp_std) != "" && String(b.ClangProperties.C_std) != "" {
107 if String(b.ClangProperties.Cpp_std) != "" {
108 if String(b.ClangProperties.Cpp_std) == "experimental" {
110 } else if String(b.ClangProperties.Cpp_std) == "default" {
113 stdVersion = String(b.ClangProperties.Cpp_std)
115 } else if b.ClangProperties.C_std != nil {
116 if String(b.ClangProperties.C_std) == "experimental" {
118 } else if String(b.ClangProperties.C_std) == "default" {
121 stdVersion = String(b.ClangProperties.C_std)
[all …]
/build/soong/finder/fs/
Dreaddir.go146 func readInt(b []byte, off, size uintptr) (u uint64, ok bool) {
147 if len(b) < int(off+size) {
150 return readIntLE(b[off:], size), true
153 func readIntLE(b []byte, size uintptr) uint64 {
156 return uint64(b[0])
158 _ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
159 return uint64(b[0]) | uint64(b[1])<<8
161 _ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
162 return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24
164 _ = b[7] // bounds check hint to compiler; see golang.org/issue/14808
[all …]
/build/make/tools/releasetools/
Dtest_ota_utils.py39 magic_zip = b'PK\x03\x04\n\x00\x00\x00\x00\x00nY\xfcR\x00\x00\x00\x00\x00\x00\x00' +\
40 b'\x00\x00\x00\x00\x00\x08\x00\x1c\x00file.txtUT\t\x00\x03' +\
41 b'\xa0s\x01a\xa0s\x01aux\x0b\x00\x01\x04\x88\xc4\t\x00\x04S_\x01\x00' +\
42 b'PK\x01\x02\x1e\x03\n\x00\x00\x00\x00\x00nY\xfcR\x00\x00\x00\x00' +\
43 b'\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x18\x00\x00\x00\x00\x00' +\
44 b'\x00\x00\x00\x00\x80\x81\x00\x00\x00\x00file.txt' +\
45 b'UT\x05\x00\x03\xa0s\x01aux\x0b\x00\x01\x04\x88\xc4\t\x00\x04' +\
46 b'S_\x01\x00PK\x05\x06\x00\x00\x00\x00\x01\x00\x01\x00N\x00\x00' +\
47 b'\x00B\x00\x00\x00\x00\x00'
/build/soong/cmd/sbox/
Dsbox_test.go30 b string
39 b: "",
45 b: "foo",
51 b: "bar",
57 b: "foobar",
63 b: strings.Repeat("a", 2*1024*1024),
69 b: strings.Repeat("a", 2*1024*1024+10),
75 b: strings.Repeat("a", 2*1024*1024-1) + "b",
81 b: strings.Repeat("a", 2*1024*1024+9) + "b",
87 b: "foo",
[all …]
/build/blueprint/
Dninja_strings_test.go181 func BenchmarkNinjaString_Value(b *testing.B) {
182 b.Run("constant", func(b *testing.B) {
185 b.Run(strconv.Itoa(l), func(b *testing.B) {
186 for n := 0; n < b.N; n++ {
192 b.Run("variable", func(b *testing.B) {
197 b.Run(strconv.Itoa(l), func(b *testing.B) {
198 for n := 0; n < b.N; n++ {
204 b.Run("variables", func(b *testing.B) {
213 b.Run(strconv.Itoa(l), func(b *testing.B) {
214 for n := 0; n < b.N; n++ {
Dninja_defs.go284 b := &buildDef{
290 if b.Variables == nil {
291 b.Variables = make(map[string]ninjaString)
293 b.Variables[name] = value
305 b.Outputs, err = parseNinjaStrings(scope, params.Outputs)
310 b.ImplicitOutputs, err = parseNinjaStrings(scope, params.ImplicitOutputs)
315 b.Inputs, err = parseNinjaStrings(scope, params.Inputs)
320 b.Implicits, err = parseNinjaStrings(scope, params.Implicits)
325 b.OrderOnly, err = parseNinjaStrings(scope, params.OrderOnly)
330 b.Validations, err = parseNinjaStrings(scope, params.Validations)
[all …]
/build/soong/cmd/diff_target_files/
Dallow_list.go150 func diffIgnoringMatchingLines(a *ZipArtifactFile, b *ZipArtifactFile, ignoreMatchingLines []string…
151 lineMatchesIgnores := func(b []byte) (bool, error) {
153 if match, err := regexp.Match(m, b); err != nil {
187 bufB, err := filter(b)
222 b []byte member
227 for len(j.b) == 0 {
232 j.b, j.err = j.r.ReadBytes('\n')
234 if isComment(j.b) {
235 j.b = nil
239 n := copy(buf, j.b)
[all …]
Dcompare_test.go47 a, b []*ZipArtifactFile
53 b: []*ZipArtifactFile{x0, y0, z0},
59 b: []*ZipArtifactFile{y0, z0},
65 b: []*ZipArtifactFile{x0, z0},
71 b: []*ZipArtifactFile{x0, y0},
78 b: []*ZipArtifactFile{x0, y0, z0},
84 b: []*ZipArtifactFile{x0, y0, z0},
90 b: []*ZipArtifactFile{x0, y0, z0},
97 b: []*ZipArtifactFile{x1},
103 b: []*ZipArtifactFile{x1, z0},
[all …]
/build/make/tools/signapk/src/com/android/signapk/
DCountingOutputStream.java39 public void write(byte[] b) throws IOException { in write() argument
40 mBase.write(b); in write()
41 mWrittenBytes += b.length; in write()
45 public void write(byte[] b, int off, int len) throws IOException { in write() argument
46 mBase.write(b, off, len); in write()
51 public void write(int b) throws IOException { in write() argument
52 mBase.write(b); in write()

123456789