Home
last modified time | relevance | path

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

12345678910>>...14

/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/android/
Dbase_module_context.go237 func (b *baseModuleContext) OtherModuleName(m blueprint.Module) string {
238 return b.bp.OtherModuleName(m)
240 func (b *baseModuleContext) OtherModuleDir(m blueprint.Module) string { return b.bp.OtherModuleDir(…
241 func (b *baseModuleContext) OtherModuleErrorf(m blueprint.Module, fmt string, args ...interface{}) {
242 b.bp.OtherModuleErrorf(m, fmt, args...)
244 func (b *baseModuleContext) OtherModuleDependencyTag(m blueprint.Module) blueprint.DependencyTag {
245 return b.bp.OtherModuleDependencyTag(m)
247 func (b *baseModuleContext) OtherModuleExists(name string) bool { return b.bp.OtherModuleExists(nam…
248 func (b *baseModuleContext) OtherModuleDependencyVariantExists(variations []blueprint.Variation, na…
249 return b.bp.OtherModuleDependencyVariantExists(variations, name)
[all …]
Doverride_module.go170 func (b *OverridableModuleBase) setOverridableProperties(prop []interface{}) {
171 b.overridableProperties = prop
174 func (b *OverridableModuleBase) addOverride(o OverrideModule) {
175 b.overridesLock.Lock()
176 b.overrides = append(b.overrides, o)
177 b.overridesLock.Unlock()
181 func (b *OverridableModuleBase) getOverrides() []OverrideModule {
182 b.overridesLock.Lock()
183 sort.Slice(b.overrides, func(i, j int) bool {
184 return b.overrides[i].Name() < b.overrides[j].Name()
[all …]
Ddepset_generic.go115 func (b *DepSetBuilder[T]) DirectSlice(direct []T) *DepSetBuilder[T] {
116 b.direct = append(b.direct, direct...)
117 return b
122 func (b *DepSetBuilder[T]) Direct(direct ...T) *DepSetBuilder[T] {
123 b.direct = append(b.direct, direct...)
124 return b
129 func (b *DepSetBuilder[T]) Transitive(transitive ...*DepSet[T]) *DepSetBuilder[T] {
131 if t.order != b.order {
133 b.order, t.order))
136 b.transitive = append(b.transitive, transitive...)
[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 …]
Dsdk.go182 func (b BpPrintableBase) bpPrintable() {
312 func (b *SdkMemberTraitBase) SdkPropertyName() string {
313 return b.PropertyName
652 func (b *SdkMemberTypeBase) SdkPropertyName() string {
653 return b.PropertyName
656 func (b *SdkMemberTypeBase) RequiresBpProperty() bool {
657 return !b.BpPropertyNotRequired
660 func (b *SdkMemberTypeBase) SupportedBuildReleases() string {
661 return b.SupportedBuildReleaseSpecification
664 func (b *SdkMemberTypeBase) UsableWithSdkAndSdkSnapshot() bool {
[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/tests/
Db_tests.sh26 if b build //build/bazel:nonexistent_module &>/dev/null ; then
30 b build "$test_target"
31 b build -- "$test_target"
32 b build "$test_target" --run-soong-tests
33 b build --run-soong-tests "$test_target"
34 b --run-soong-tests build "$test_target"
38 b shutdown
39 b cquery 'kind(test, //build/bazel/examples/android_app/...)' --config=android
40 b run $test_target -- --help >/dev/null
44 b run $(bmod fastboot) -- help
[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/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 …]
Dtest_extract_kernel.py23 b'Linux version 4.9.100-a123 (a@a) (a) a\n\x00'))
25 b'Linux version 4.9.123 (@) () \n\x00'))
29 b"trash\x00Linux version 4.8.8\x00trash\x00"
30 b"other trash Linux version 4.9.1-g3 (2@s) (2) a\n\x00"))
/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/rust/
Dbindgen.go125 func (b *bindgenDecorator) getStdVersion(ctx ModuleContext, src android.Path) (string, bool) {
135 if String(b.ClangProperties.Cpp_std) != "" && String(b.ClangProperties.C_std) != "" {
139 if b.ClangProperties.Cpp_std != nil {
141 if String(b.ClangProperties.Cpp_std) == "experimental" {
143 …} else if String(b.ClangProperties.Cpp_std) == "default" || String(b.ClangProperties.Cpp_std) == "…
146 stdVersion = String(b.ClangProperties.Cpp_std)
148 } else if b.ClangProperties.C_std != nil {
150 if String(b.ClangProperties.C_std) == "experimental" {
152 } else if String(b.ClangProperties.C_std) == "default" || String(b.ClangProperties.C_std) == "" {
155 stdVersion = String(b.ClangProperties.C_std)
[all …]
/build/soong/java/
Dplatform_bootclasspath.go81 func (b *platformBootclasspathModule) AndroidMkEntries() (entries []android.AndroidMkEntries) {
85 OutputFile: android.OptionalPathForPath(b.hiddenAPIFlagsCSV),
88 entries = append(entries, b.classpathFragmentBase().androidMkEntries()...)
93 func (b *platformBootclasspathModule) OutputFiles(tag string) (android.Paths, error) {
96 return android.Paths{b.hiddenAPIFlagsCSV}, nil
98 return android.Paths{b.hiddenAPIIndexCSV}, nil
100 return android.Paths{b.hiddenAPIMetadataCSV}, nil
102 return android.Paths{b.srcjar}, nil
108 func (b *platformBootclasspathModule) DepsMutator(ctx android.BottomUpMutatorContext) {
112 b.hiddenAPIDepsMutator(ctx)
[all …]
Dbootclasspath_fragment.go63 func (b bootclasspathFragmentContentDependencyTag) ExcludeFromVisibilityEnforcement() {
67 func (b bootclasspathFragmentContentDependencyTag) ReplaceSourceWithPrebuilt() bool {
73 func (b bootclasspathFragmentContentDependencyTag) SdkMemberType(child android.Module) android.SdkM…
83 func (b bootclasspathFragmentContentDependencyTag) ExportMember() bool {
89 func (b bootclasspathFragmentContentDependencyTag) CopyDirectlyInAnyApex() {}
92 func (b bootclasspathFragmentContentDependencyTag) RequiresFilesFromPrebuiltApex() {}
402 func (b *BootclasspathFragmentModule) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Mo…
417 …panic(fmt.Errorf("boot_image module %q should not have a dependency on %q via tag %s", b, dep, and…
420 func (b *BootclasspathFragmentModule) ShouldSupportSdkVersion(ctx android.BaseModuleContext, sdkVer…
428 func (b *BootclasspathFragmentModule) ComponentDepsMutator(ctx android.BottomUpMutatorContext) {
[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/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.go323 func Benchmark_parseNinjaString(b *testing.B) {
324 b.Run("constant", func(b *testing.B) {
326 b.Run(strconv.Itoa(l), func(b *testing.B) {
327 b.ReportAllocs()
328 for n := 0; n < b.N; n++ {
334 b.Run("variable", func(b *testing.B) {
338 b.Run(strconv.Itoa(l), func(b *testing.B) {
339 b.ReportAllocs()
340 for n := 0; n < b.N; n++ {
346 b.Run("variables", func(b *testing.B) {
[all …]
Dninja_defs.go295 b := &buildDef{
301 if b.Variables == nil {
302 b.Variables = make(map[string]*ninjaString)
304 b.Variables[name] = value
316 b.Outputs, b.OutputStrings, err = parseNinjaOrSimpleStrings(scope, params.Outputs)
321b.ImplicitOutputs, b.ImplicitOutputStrings, err = parseNinjaOrSimpleStrings(scope, params.Implicit…
326 b.Inputs, b.InputStrings, err = parseNinjaOrSimpleStrings(scope, params.Inputs)
331 b.Implicits, b.ImplicitStrings, err = parseNinjaOrSimpleStrings(scope, params.Implicits)
336 b.OrderOnly, b.OrderOnlyStrings, err = parseNinjaOrSimpleStrings(scope, params.OrderOnly)
341 b.Validations, b.ValidationStrings, err = parseNinjaOrSimpleStrings(scope, params.Validations)
[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/soong/scripts/
Djar-args.sh38 a/b
39 a/b/'
47 -C 'a' 'b'
48 -C 'a' 'b/\\''
51 -C 'a' 'b/#'
/build/soong/bazel/
Dbazel_proxy.go100 func (b *ProxyClient) IssueCommand(req CmdRequest) (CmdResponse, error) {
108 conn, err = d.Dial("unix", unixSocketPath(b.outDir))
156 func (b *ProxyServer) handleRequest(conn net.Conn) error {
165 if len(b.bazeliskVersion) > 0 {
166 req.Env = append(req.Env, "USE_BAZEL_VERSION="+b.bazeliskVersion)
168 stdout, stderr, cmdErr := ExecBazel("./build/bazel/bin/bazel", b.workspaceDir, req)
182 func (b *ProxyServer) listenUntilClosed(listener net.Listener) error {
192 case <-b.done:
203 b.logger.Fatalf("Listener error: %s", err)
207 err = b.handleRequest(conn)
[all …]

12345678910>>...14