Home
last modified time | relevance | path

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

1234567

/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/soong/java/
Dplatform_bootclasspath.go79 func (b *platformBootclasspathModule) AndroidMkEntries() (entries []android.AndroidMkEntries) {
83 OutputFile: android.OptionalPathForPath(b.hiddenAPIFlagsCSV),
86 entries = append(entries, b.classpathFragmentBase().androidMkEntries()...)
91 func (b *platformBootclasspathModule) OutputFiles(tag string) (android.Paths, error) {
94 return android.Paths{b.hiddenAPIFlagsCSV}, nil
96 return android.Paths{b.hiddenAPIIndexCSV}, nil
98 return android.Paths{b.hiddenAPIMetadataCSV}, nil
104 func (b *platformBootclasspathModule) DepsMutator(ctx android.BottomUpMutatorContext) {
105 b.hiddenAPIDepsMutator(ctx)
116 func (b *platformBootclasspathModule) hiddenAPIDepsMutator(ctx android.BottomUpMutatorContext) {
[all …]
Dbootclasspath_fragment.go56 func (b bootclasspathFragmentContentDependencyTag) ExcludeFromVisibilityEnforcement() {
60 func (b bootclasspathFragmentContentDependencyTag) ReplaceSourceWithPrebuilt() bool {
66 func (b bootclasspathFragmentContentDependencyTag) SdkMemberType(child android.Module) android.SdkM…
76 func (b bootclasspathFragmentContentDependencyTag) ExportMember() bool {
82 func (b bootclasspathFragmentContentDependencyTag) CopyDirectlyInAnyApex() {}
85 func (b bootclasspathFragmentContentDependencyTag) RequiresFilesFromPrebuiltApex() {}
271 func (b *BootclasspathFragmentModule) bootclasspathImageNameContentsConsistencyCheck(ctx android.Ba…
272 imageName := proptools.String(b.properties.Image_name)
275 if android.IsModuleInVersionedSdk(b) {
288 modules := b.getImageConfig(ctx).modules
[all …]
/build/soong/rust/
Dbindgen.go92 func (b *bindgenDecorator) getStdVersion(ctx ModuleContext, src android.Path) (string, bool) {
102 if String(b.ClangProperties.Cpp_std) != "" && String(b.ClangProperties.C_std) != "" {
106 if String(b.ClangProperties.Cpp_std) != "" {
107 if String(b.ClangProperties.Cpp_std) == "experimental" {
109 } else if String(b.ClangProperties.Cpp_std) == "default" {
112 stdVersion = String(b.ClangProperties.Cpp_std)
114 } else if b.ClangProperties.C_std != nil {
115 if String(b.ClangProperties.C_std) == "experimental" {
117 } else if String(b.ClangProperties.C_std) == "default" {
120 stdVersion = String(b.ClangProperties.C_std)
[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 …]
Dbazel.go81 func (b *BazelModuleBase) bazelProps() *properties {
82 return &b.bazelProperties
86 func (b *BazelModuleBase) HasHandcraftedLabel() bool {
87 return b.bazelProperties.Bazel_module.Label != nil
91 func (b *BazelModuleBase) HandcraftedLabel() string {
92 return proptools.String(b.bazelProperties.Bazel_module.Label)
96 func (b *BazelModuleBase) GetBazelLabel(ctx BazelConversionPathContext, module blueprint.Module) st…
97 if b.HasHandcraftedLabel() {
98 return b.HandcraftedLabel()
100 if b.ConvertWithBp2build(ctx) {
[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 …]
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.go543 b := t.createModuleWithoutInheritance(factory, &nameProp, attrs).(BazelTargetModule)
544 b.SetBazelTargetModuleProperties(bazelProps)
545 return b
617 func (b *bottomUpMutatorContext) MutatorName() string {
618 return b.bp.MutatorName()
621 func (b *bottomUpMutatorContext) Rename(name string) {
622 b.bp.Rename(name)
623 b.Module().base().commonProperties.DebugName = name
626 func (b *bottomUpMutatorContext) AddDependency(module blueprint.Module, tag blueprint.DependencyTag…
627 return b.bp.AddDependency(module, tag, name...)
[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/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/blueprint/pathtools/
Dglob_test.go519 matches: []string{`*`, `**/`, `?`, `a/`, `b`, `**/*`, `**/a`, `**/b/`, `**/b/b`, `a/a`},
520 deps: []string{`.`, `**`, `**/b`, `a`},
525 deps: []string{`.`, `**`, `**/b`, `a`},
529 matches: []string{`**/*`, `**/a`, `**/b/`},
534 matches: []string{`**/*`, `**/a`, `**/b/`, `**/b/b`},
535 deps: []string{`.`, `**`, `**/b`},
544 `**/b/b`,
547 `b`,
765 {"a/**/*", "b/", false},
766 {"a/**/*", "b/a", false},
[all …]
/build/soong/cmd/extract_apks/bundle_proto/
Dconfig.pb.go112 func (m *BundleConfig) XXX_Unmarshal(b []byte) error {
113 return xxx_messageInfo_BundleConfig.Unmarshal(m, b)
115 func (m *BundleConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
116 return xxx_messageInfo_BundleConfig.Marshal(b, m, deterministic)
201 func (m *Bundletool) XXX_Unmarshal(b []byte) error {
202 return xxx_messageInfo_Bundletool.Unmarshal(m, b)
204 func (m *Bundletool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
205 return xxx_messageInfo_Bundletool.Marshal(b, m, deterministic)
244 func (m *Compression) XXX_Unmarshal(b []byte) error {
245 return xxx_messageInfo_Compression.Unmarshal(m, b)
[all …]
Dtargeting.pb.go208 func (m *VariantTargeting) XXX_Unmarshal(b []byte) error {
209 return xxx_messageInfo_VariantTargeting.Unmarshal(m, b)
211 func (m *VariantTargeting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
212 return xxx_messageInfo_VariantTargeting.Marshal(b, m, deterministic)
283 func (m *ApkTargeting) XXX_Unmarshal(b []byte) error {
284 return xxx_messageInfo_ApkTargeting.Unmarshal(m, b)
286 func (m *ApkTargeting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
287 return xxx_messageInfo_ApkTargeting.Marshal(b, m, deterministic)
375 func (m *ModuleTargeting) XXX_Unmarshal(b []byte) error {
376 return xxx_messageInfo_ModuleTargeting.Unmarshal(m, b)
[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()
/build/blueprint/proptools/
Dproptools.go57 func BoolPtr(b bool) *bool {
58 return &b
63 b := int64(i)
64 return &(b)
74 func BoolDefault(b *bool, def bool) bool {
75 if b != nil {
76 return *b
83 func Bool(b *bool) bool {
84 return BoolDefault(b, false)

1234567