Home
last modified time | relevance | path

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

123456

/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/make/tools/droiddoc/templates-ndk/assets/js/
Dandroid_3p-bundle.js325 sortedAttrs.sort(function (a, b) { argument
326 return (a.name < b.name) ? -1 : a.name === b.name ? 0 : 1;
452 ranges.sort(function (a, b) { return (a[0] - b[0]) || (b[1] - a[1]); }); argument
2049 …lseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/, null],
2108 …bal|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/],
2323 …til|Variant|Wend|When|While|With|WithEvents|WriteOnly|Xor|EndIf|GoSub|Let|Variant|Wend)\b/i, null],
2328 …/^(?:True\b|False\b|Nothing\b|\d+(?:E[+\-]?\d+[FRD]?|[FRDSIL])?|(?:&H[0-9A-F]+|&O[0-7]+)[SIL]?|\d*…
2478b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,… argument
2614b,a,c){b.fn.jScrollPane=function(e){function d(D,O){var ay,Q=this,Y,aj,v,al,T,Z,y,q,az,aE,au,i,I,h… argument
2615b("html").bind("dragstart.jsp selectstart.jsp",aB);h.addClass("jspActive");var s=aI.pageX-h.positi…
[all …]
Dprettify.js2 …arCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substr…
3b=[],o=f[0]==="^",c=o?1:0,i=f.length;c<i;++c){var j=f[c];if(/\\[bdsw]/i.test(j))a.push(j);else{var…
4b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join(""…
5 …1))&&j<=i&&(f[c]="\\"+d[i]);for(i=c=0;c<b;++c)"^"===f[c]&&"^"!==f[c+1]&&(f[c]="");if(a.ignoreCase&…
6 {b:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Er… property
7 …n"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n<z;++n){var f=g[n],b=r[f],o=void 0,c;if(typeof b===
8b=i[0];else{for(c=0;c<t;++c)if(i=m[c],o=f.match(i[1])){b=i[0];break}o||(b="pln")}if((c=b.length>=5…
10 …efine|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e…
12 …ush(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z…
/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
Dprettify.js11 …,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb],b=mb,c=0;c<a.length;++c)b+=O+a[c].replace(/([^=<>:&a-z])/g,n…
12b=a.indexOf(G);if(b<0)return a;for(--b;(b=a.indexOf(tb,b+1))>=0;){var c=a.indexOf(va,b);if(c>=0){v… argument
13b.push(I,c);for(var d=0;d<a.attributes.length;++d){var g=a.attributes[d];if(g.specified){b.push(xb…
17 k[e])k[e]=++b;for(h=e=0;e<s;++e){p=f[e];if(p===H){++h;if(k[h]===undefined)f[e]=dc}else if(Q===p.cha…
18b=document.createElement(gc);b.appendChild(document.createTextNode(hc));ha=!/</.test(b.innerHTML)}…
19b=0;break;default:++b}}if(!d)return c;d.push(c.substring(g));return d.join(P)}}var Vd=new RegExp(k…
20b[v].match(Qa);if(w&&w[2]===n)if(w[1]===ra){if(--q===0)break a}else++q}if(v<m){g.push(d,b.slice(i,… argument
21b.length,i=function(m){for(var l=m.source,n=m.b,q=[n,S],v=0,w=l.match(d)||[],j={},f=0,s=w.length;f…
22 …i,q)}else q.push(n+x,h)}m.c=q};return i}function C(a){var b=[],c=[];if(a.tripleQuotedStrings)b.pus…
/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 …]
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.go351 func (b *bottomUpMutatorContext) MutatorName() string {
352 return b.bp.MutatorName()
355 func (b *bottomUpMutatorContext) Rename(name string) {
356 b.bp.Rename(name)
357 b.Module().base().commonProperties.DebugName = name
360 func (b *bottomUpMutatorContext) AddDependency(module blueprint.Module, tag blueprint.DependencyTag…
361 b.bp.AddDependency(module, tag, name...)
364 func (b *bottomUpMutatorContext) AddReverseDependency(module blueprint.Module, tag blueprint.Depend…
365 b.bp.AddReverseDependency(module, tag, name)
368 func (b *bottomUpMutatorContext) CreateVariations(variations ...string) []Module {
[all …]
Ddepset_test.go26 b := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("b")).Transitive(a).Build()
28 d := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("d")).Transitive(b, c).Build()
36 b := NewDepSetBuilder(PREORDER).Direct(PathForTesting("b")).Transitive(a).Build()
38 d := NewDepSetBuilder(PREORDER).Direct(PathForTesting("d")).Transitive(b, c).Build()
46 b := NewDepSetBuilder(TOPOLOGICAL).Direct(PathForTesting("b")).Transitive(a).Build()
48 d := NewDepSetBuilder(TOPOLOGICAL).Direct(PathForTesting("d")).Transitive(b, c).Build()
56 b := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("b")).Transitive(a).Build()
58 d := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("d")).Transitive(b, c).Build()
68 b := PathForTesting("b")
82 return NewDepSet(order, Paths{c, a, b}, nil)
[all …]
Ddepset.go110 func (b *DepSetBuilder) Direct(direct ...Path) *DepSetBuilder {
111 b.direct = append(b.direct, direct...)
112 return b
117 func (b *DepSetBuilder) Transitive(transitive ...*DepSet) *DepSetBuilder {
118 b.transitive = append(b.transitive, transitive...)
119 return b
124 func (b *DepSetBuilder) Build() *DepSet {
125 return NewDepSet(b.order, b.direct, b.transitive)
/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 …]
Dcommands.pb.go113 func (m *BuildApksResult) XXX_Unmarshal(b []byte) error {
114 return xxx_messageInfo_BuildApksResult.Unmarshal(m, b)
116 func (m *BuildApksResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
117 return xxx_messageInfo_BuildApksResult.Marshal(b, m, deterministic)
192 func (m *Variant) XXX_Unmarshal(b []byte) error {
193 return xxx_messageInfo_Variant.Unmarshal(m, b)
195 func (m *Variant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
196 return xxx_messageInfo_Variant.Marshal(b, m, deterministic)
249 func (m *ApkSet) XXX_Unmarshal(b []byte) error {
250 return xxx_messageInfo_ApkSet.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.go273 b := &buildDef{
279 if b.Variables == nil {
280 b.Variables = make(map[string]ninjaString)
282 b.Variables[name] = value
294 b.Outputs, err = parseNinjaStrings(scope, params.Outputs)
299 b.ImplicitOutputs, err = parseNinjaStrings(scope, params.ImplicitOutputs)
304 b.Inputs, err = parseNinjaStrings(scope, params.Inputs)
309 b.Implicits, err = parseNinjaStrings(scope, params.Implicits)
314 b.OrderOnly, err = parseNinjaStrings(scope, params.OrderOnly)
319 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/blueprint/proptools/
Dunpack_test.go736 func BenchmarkUnpackProperties(b *testing.B) {
737 run := func(b *testing.B, props []interface{}, input string) {
738 b.ReportAllocs()
739 b.StopTimer()
743 b.Errorf("test case: %s", input)
744 b.Errorf("unexpected parse errors:")
746 b.Errorf(" %s", err)
748 b.FailNow()
751 for i := 0; i < b.N; i++ {
763 b.StartTimer()
[all …]
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)
/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/rust/
Dbindgen.go88 func (b *bindgenDecorator) generateSource(ctx android.ModuleContext, deps PathDeps) android.Path {
117 cflags = append(cflags, b.Properties.Cflags...)
118 for _, include := range b.Properties.Local_include_dirs {
124 bindgenFlags = append(bindgenFlags, strings.Join(b.Properties.Flags, " "))
126 wrapperFile := android.OptionalPathForModuleSrc(ctx, b.Properties.Wrapper_src)
131 outputFile := android.PathForModuleOut(ctx, b.baseSourceProvider.getStem(ctx)+".rs")
144 b.baseSourceProvider.outputFile = outputFile
148 func (b *bindgenDecorator) sourceProviderProps() []interface{} {
149 return append(b.baseSourceProvider.sourceProviderProps(),
150 &b.Properties)
[all …]

123456