Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 149) 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 …]
Dandroid.go64 b := writeBuf(buf)
65 b.uint32(dataDescriptorSignature)
66 b.uint32(fh.CRC32)
68 b.uint64(fh.CompressedSize64)
69 b.uint64(fh.UncompressedSize64)
71 b.uint32(fh.CompressedSize)
72 b.uint32(fh.UncompressedSize)
212 b := writeBuf(buf)
213 b.uint32(dataDescriptorSignature) // de-facto standard, required by OS X
214 b.uint32(fh.CRC32)
[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/kati/
Dbuf.go31 func writeByte(w io.Writer, b byte) error {
33 return bw.WriteByte(b)
35 _, err := w.Write([]byte{b})
71 func (b *buffer) Write(data []byte) (int, error) {
72 b.buf = append(b.buf, data...)
76 func (b *buffer) WriteByte(c byte) error {
77 b.buf = append(b.buf, c)
81 func (b *buffer) WriteString(s string) (int, error) {
82 b.buf = append(b.buf, []byte(s)...)
86 func (b *buffer) Bytes() []byte { return b.buf }
[all …]
Dfunc_test.go19 func BenchmarkFuncStrip(b *testing.B) {
30 b.ReportAllocs()
31 b.ResetTimer()
32 for i := 0; i < b.N; i++ {
38 func BenchmarkFuncSort(b *testing.B) {
49 b.ReportAllocs()
50 b.ResetTimer()
51 for i := 0; i < b.N; i++ {
57 func BenchmarkFuncPatsubst(b *testing.B) {
70 b.ReportAllocs()
[all …]
Dshellutil_test.go68 for _, b := range shBuiltins {
69 if b.name != "shell-date" && b.name != "shell-date-quoted" {
72 m, ok := matchExpr(expr{tc.sharg}, b.pattern)
74 t.Logf("%s not match with %s", b.name, tc.sharg)
85 v := b.compact(f, m)
88 t.Errorf("%s: matched %s but not compacted", tc.sharg, b.name)
92 t.Errorf("%s: format=%q, want=%q - %s", tc.sharg, got, want, b.name)
/build/kati/testcase/
Dninja_normalized_path.mk5 mkdir a b
7 test2: a/b a/../a/b a/./b b/a b/../b/a b/./a
12 b/%:
Dfindstring.mk2 echo $(findstring a, a b c)
3 echo $(findstring b, a b c)
4 echo $(findstring b c, a b c)
5 echo $(findstring a, b c)
6 echo $(findstring a, b c, a)
Dmulti_implicit_output_patterns.mk5 all: a.h.x a.c.x a.h.z a.c.z b.h.x b.c.x b.h.z b.c.z
12 b.h.% b.c.%:
15 b.h.z: pass
19 b.c.z: fail
Dcolon_ws_in_target.mk3 test: a\ b
6 a\ b: a\:b
9 a\\\:b:
10 echo a\\\:b $@
Dstatic_pattern.mk1 srcs := a.cc b.cc c.cc
13 b.o: b.cc a.h b.h
14 c.o: b.cc a.h b.h c.h
/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/proptools/
Dproptools.go41 func BoolPtr(b bool) *bool {
42 return &b
47 b := int64(i)
48 return &(b)
58 func BoolDefault(b *bool, def bool) bool {
59 if b != nil {
60 return *b
67 func Bool(b *bool) bool {
68 return BoolDefault(b, false)
/build/soong/android/
Doverride_module.go114 func (b *OverridableModuleBase) setOverridableProperties(prop []interface{}) {
115 b.overridableProperties = prop
118 func (b *OverridableModuleBase) addOverride(o OverrideModule) {
119 b.overridesLock.Lock()
120 b.overrides = append(b.overrides, o)
121 b.overridesLock.Unlock()
125 func (b *OverridableModuleBase) getOverrides() []OverrideModule {
126 return b.overrides
129 func (b *OverridableModuleBase) setOverridesProperty(overridesProperty *[]string) {
130 b.overridesProperty = overridesProperty
[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 …]
/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/cmd/diff_target_files/
Dwhitelist.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/pathtools/
Dglob_test.go510 matches: []string{`*`, `**/`, `?`, `a/`, `b`, `**/*`, `**/a`, `**/b/`, `**/b/b`, `a/a`},
511 deps: []string{`.`, `**`, `**/b`, `a`},
516 deps: []string{`.`, `**`, `**/b`, `a`},
520 matches: []string{`**/*`, `**/a`, `**/b/`},
525 matches: []string{`**/*`, `**/a`, `**/b/`, `**/b/b`},
526 deps: []string{`.`, `**`, `**/b`},
535 `**/b/b`,
538 `b`,
756 {"a/**/*", "b/", false},
757 {"a/**/*", "b/a", false},
[all …]
/build/blueprint/
Dninja_defs.go271 b := &buildDef{
277 if b.Variables == nil {
278 b.Variables = make(map[string]*ninjaString)
280 b.Variables[name] = value
292 b.Outputs, err = parseNinjaStrings(scope, params.Outputs)
297 b.ImplicitOutputs, err = parseNinjaStrings(scope, params.ImplicitOutputs)
302 b.Inputs, err = parseNinjaStrings(scope, params.Inputs)
307 b.Implicits, err = parseNinjaStrings(scope, params.Implicits)
312 b.OrderOnly, err = parseNinjaStrings(scope, params.OrderOnly)
317 b.Optional = params.Optional
[all …]

123456