Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 174) sorted by relevance

1234567

/build/blueprint/parser/
Dprinter.go62 p := newPrinter(file)
64 for _, def := range p.defs {
65 p.printDef(def)
67 p.flush()
68 return p.output, nil
71 func (p *printer) Print() ([]byte, error) {
72 for _, def := range p.defs {
73 p.printDef(def)
75 p.flush()
76 return p.output, nil
[all …]
Dparser.go46 func parse(p *parser) (file *File, errs []error) {
50 errs = p.errors
57 defs := p.parseDefinitions()
58 p.accept(scanner.EOF)
59 errs = p.errors
60 comments := p.comments
63 Name: p.scanner.Filename,
71 p := newParser(r, scope)
72 p.eval = true
73 p.scanner.Filename = filename
[all …]
/build/soong/androidmk/parser/
Dparser.go24 func (p *parser) Parse() ([]MakeThing, []error) {
34 p.parseLines()
35 p.accept(scanner.EOF)
36 p.things = append(p.things, p.comments...)
37 sort.Sort(byPosition(p.things))
39 return p.things, p.errors
51 p := &parser{}
52 p.scanner.Init(r)
53 p.scanner.Error = func(sc *scanner.Scanner, msg string) {
54 p.errorf(msg)
[all …]
/build/tools/ijar/
Dcommon.h36 inline u1 get_u1(const u1 *&p) { in get_u1() argument
37 return *p++; in get_u1()
40 inline u2 get_u2be(const u1 *&p) { in get_u2be() argument
41 u4 x = (p[0] << 8) | p[1]; in get_u2be()
42 p += 2; in get_u2be()
46 inline u2 get_u2le(const u1 *&p) { in get_u2le() argument
47 u4 x = (p[1] << 8) | p[0]; in get_u2le()
48 p += 2; in get_u2le()
52 inline u4 get_u4be(const u1 *&p) { in get_u4be() argument
53 u4 x = (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]; in get_u4be()
[all …]
Dclassfile.cc136 virtual void Write(u1 *&p) = 0;
178 void ExtractClassNames(const std::string& desc, size_t* p);
187 void Write(u1 *&p) { in Write()
188 put_u1(p, tag_); in Write()
189 put_u2be(p, constant(name_index_)->slot()); in Write()
211 void Write(u1 *&p) { in Write()
212 put_u1(p, tag_); in Write()
213 put_u2be(p, constant(class_index_)->slot()); in Write()
214 put_u2be(p, constant(name_type_index_)->slot()); in Write()
238 void Write(u1 *&p) { in Write()
[all …]
Dzip.cc68 static bool ProcessCentralDirEntry(const u1 *&p,
116 const u1 *p; // input cursor member in devtools_ijar::InputZipFile
170 size_t in_offset = p - zipdata_in_; in EnsureRemaining()
317 if (offset != 0 && (p != (zipdata_in_ + in_offset_ + offset))) { in ProcessNext()
318 p = zipdata_in_ + offset; in ProcessNext()
324 u4 signature = get_u4le(p); in ProcessNext()
342 extract_version_ = get_u2le(p); in ProcessLocalFileEntry()
343 general_purpose_bit_flag_ = get_u2le(p); in ProcessLocalFileEntry()
350 compression_method_ = get_u2le(p); in ProcessLocalFileEntry()
359 p += 2 + 2 + 4; in ProcessLocalFileEntry()
[all …]
/build/kati/
Dparser.go68 p := &parser{
71 p.mk.filename = filename
72 p.outStmts = &p.mk.stmts
73 return p
76 func (p *parser) srcpos() srcpos {
78 filename: p.mk.filename,
79 lineno: p.lineno,
83 func (p *parser) addStatement(stmt ast) {
84 *p.outStmts = append(*p.outStmts, stmt)
87 p.inRecipe = true
[all …]
Dpathutil.go352 test, p := o.apply(w, path, ent)
353 if p {
411 if p, ok := seen[ent.id]; ok {
413 …rf("find: File system loop detected; `%s' is part of the same file system loop as `%s'.", lpath, p)
508 var p bool
510 test, p = op.apply(w, path, ent)
511 if p {
539 func (p *findCommandParser) parse() error {
540 p.fc.depth = 1<<31 - 1 // max int32
544 tok, err := p.token()
[all …]
Dfile_cache.cc40 for (auto p : cache_) { in ~MakefileCacheManagerImpl() local
41 delete p.second; in ~MakefileCacheManagerImpl()
47 auto p = cache_.emplace(filename, result); in ReadMakefile() local
48 if (p.second) { in ReadMakefile()
49 p.first->second = result = new Makefile(filename); in ReadMakefile()
51 result = p.first->second; in ReadMakefile()
57 for (const auto& p : cache_) in GetAllFilenames() local
58 out->insert(p.first); in GetAllFilenames()
Dvar.cc112 for (auto p : *this) { in ~Vars()
113 delete p.second; in ~Vars()
134 auto p = emplace(name, v); in Assign() local
135 if (!p.second) { in Assign()
136 Var* orig = p.first->second; in Assign()
145 delete p.first->second; in Assign()
146 p.first->second = v; in Assign()
154 auto p = vars->emplace(name, var); in ScopedVar() local
155 iter_ = p.first; in ScopedVar()
156 if (!p.second) { in ScopedVar()
Ddep.cc85 for (auto& p : children_) in ~RuleTrie() local
86 delete p.second; in ~RuleTrie()
95 auto p = children_.emplace(c, nullptr); in Add() local
96 if (p.second) { in Add()
97 p.first->second = new RuleTrie(); in Add()
99 p.first->second->Add(name.substr(1), rule); in Add()
223 DepNode::DepNode(Symbol o, bool p, bool r) in DepNode() argument
227 is_phony(p), in DepNode()
293 for (const char** p = kUnsupportedBuiltinTargets; *p; p++) { in HandleSpecialTargets() local
294 if (GetRuleInputs(Intern(*p), &targets, &loc)) { in HandleSpecialTargets()
[all …]
/build/soong/common/
Dpaths.go105 func GenPathWithExt(ctx AndroidModuleContext, p Path, ext string) ModuleGenPath {
106 if path, ok := p.(genPathProvider); ok {
109 …r(ctx, "Tried to create generated file from unsupported path: %s(%s)", reflect.TypeOf(p).Name(), p)
115 func ObjPathWithExt(ctx AndroidModuleContext, p Path, subdir, ext string) ModuleObjPath {
116 if path, ok := p.(objPathProvider); ok {
119 …ror(ctx, "Tried to create object file from unsupported path: %s (%s)", reflect.TypeOf(p).Name(), p)
126 func ResPathWithName(ctx AndroidModuleContext, p Path, name string) ModuleResPath {
127 if path, ok := p.(resPathProvider); ok {
130 …ror(ctx, "Tried to create object file from unsupported path: %s (%s)", reflect.TypeOf(p).Name(), p)
149 func (p OptionalPath) Valid() bool {
[all …]
Dpackage_ctx.go62 func (p AndroidPackageContext) SourcePathVariable(name, path string) blueprint.Variable {
63 return p.VariableFunc(name, func(config interface{}) (string, error) {
64 ctx := &configErrorWrapper{p, config.(Config), []error{}}
65 p := safePathForSource(ctx, path)
69 return p.String(), nil
77 func (p AndroidPackageContext) HostBinToolVariable(name, path string) blueprint.Variable {
78 return p.VariableFunc(name, func(config interface{}) (string, error) {
79 ctx := &configErrorWrapper{p, config.(Config), []error{}}
80 p := PathForOutput(ctx, "host", ctx.config.PrebuiltOS(), "bin", path)
84 return p.String(), nil
[all …]
/build/blueprint/
Dpackage_ctx.go85 func (p *packageContext) getScope() *basicScope {
86 return p.scope
111 p := &packageContext{
118 packageContexts[pkgPath] = p
120 return p
227 func (p *packageContext) Import(pkgPath string) {
234 err := p.scope.AddImport(importPkg.shortName, importPkg.scope)
243 func (p *packageContext) ImportAs(as, pkgPath string) {
255 err = p.scope.AddImport(as, importPkg.scope)
276 func (p *packageContext) StaticVariable(name, value string) Variable {
[all …]
/build/tools/atree/
Dfiles.cpp14 is_comment_line(const char* p) in is_comment_line() argument
16 while (*p && isspace(*p)) { in is_comment_line()
17 p++; in is_comment_line()
19 return *p == '#'; in is_comment_line()
34 is_whitespace_line(const char* p) in is_whitespace_line() argument
36 while (*p) { in is_whitespace_line()
37 if (!isspace(*p)) { in is_whitespace_line()
40 p++; in is_whitespace_line()
46 is_exclude_line(const char* p) { in is_exclude_line() argument
47 while (*p) { in is_exclude_line()
[all …]
/build/tools/
Ddiff_package_overlays.py65 for p in current_overlays:
66 if p not in previous_overlays:
67 result.append(p)
68 elif current_overlays[p] != previous_overlays[p]:
69 result.append(p)
70 for p in previous_overlays:
71 if p not in current_overlays:
72 if p in all_packages:
74 result.append(p)
77 carryon.append(p)
[all …]
/build/core/
Dpost_clean.mk31 $(foreach p, $(PACKAGES), $(if $(PACKAGES.$(p).RESOURCE_OVERLAYS), \
39 overlay_cleanup_cmd := $(strip rm -rf $(foreach p, $(packages_overlay_changed),\
40 $(TARGET_OUT_COMMON_INTERMEDIATES)/APPS/$(p)_intermediates))
69 $(foreach p, $(ALL_MODULES), \
70 $(eval gs := $(strip $(ALL_MODULES.$(p).AIDL_FILES)\
71 $(ALL_MODULES.$(p).PROTO_FILES)\
72 $(ALL_MODULES.$(p).RS_FILES)))\
74 $(eval modules_with_gen_java_files += $(p))\
76 $(if $(filter-out $(gs),$(GEN_SRC_FILES.$(p))),\
77 $(eval intermediates_to_clean += $(ALL_MODULES.$(p).INTERMEDIATE_SOURCE_DIR))))
[all …]
Dproduct.mk137 $(foreach p,$(PRODUCTS),$(call dump-product,$(p)))
185 $(foreach p,$(PRODUCTS), \
186 $(eval pn := $(strip $(PRODUCTS.$(p).PRODUCT_NAME))) \
187 $(if $(pn),,$(error $(p): PRODUCT_NAME must be defined.)) \
189 $(error $(p): PRODUCT_NAME must be unique; "$(pn)" already used by $(strip \
199 $(error $(p): PRODUCT_NAME must be a valid C identifier, not "$(pn)") \
201 $(eval pb := $(strip $(PRODUCTS.$(p).PRODUCT_BRAND))) \
202 $(if $(pb),,$(error $(p): PRODUCT_BRAND must be defined.)) \
203 $(foreach cf,$(strip $(PRODUCTS.$(p).PRODUCT_COPY_FILES)), \
205 $(error $(p): malformed COPY_FILE "$(cf)") \
[all …]
Dproduct-graph.mk19 $(sort $(foreach p, \
22 , $(if $(strip $(p)),$(strip $(p)),)) \
27 $(foreach p,$(1),\
28 $(if $(filter $(p),$(_all_products_visited)),, \
29 $(p) \
30 $(eval _all_products_visited += $(p)) \
31 $(call all-products-inner, $(PRODUCTS.$(strip $(p)).INHERITS_FROM))
/build/tools/droiddoc/templates-pdk/
Dsdkpage.cs25 <p>Redirecting to
31 </a> ...</p>
53 <p><strong>This is NOT the current Android SDK release.</strong></p>
54 <p><a href="/sdk/index.html">Download the current Android SDK</a></p>
76 <p>The Android NDK is a companion tool to the Android SDK that lets you build
82 does not change.</p>
84 <p>Using native code does not result in an automatic performance increase,
89 </p>
90 <p>
95 </p>
[all …]
/build/tools/releasetools/
Drangelib.py78 for p in text.split():
79 if "-" in p:
80 s, e = (int(x) for x in p.split("-"))
88 s = int(p)
140 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
143 out.append(p)
158 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
161 out.append(p)
177 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
180 out.append(p)
[all …]
Dedify_generator.py205 p = fstab[mount_point]
212 mount_flags = mount_dict.get(p.fs_type, "")
213 if p.context is not None:
214 mount_flags = p.context + ("," + mount_flags if mount_flags else "")
216 p.fs_type, common.PARTITION_TYPES[p.fs_type], p.device,
217 p.mount_point, mount_flags))
218 self.mounts.add(p.mount_point)
239 p = fstab[partition]
240 if p.fs_type not in ("ext2", "ext3", "ext4"):
245 p.device, common.ErrorCode.TUNE_PARTITION_FAILURE, partition))
[all …]
/build/tools/droiddoc/templates-sdk-dev/
Dfooter.cs25 <p class="dac-footer-copyright">
27 </p>
28 <p class="dac-footer-build">
30 </p>
32 <p class="dac-footer-copyright">
34 </p>
37 <p class="dac-footer-links">
58 </p>
75 <p class="dac-modal-header-subtitle" data-t="newsletter.requiredHint"></p>
173 <p class="newsletter-success-message" data-t="newsletter.successDetails"></p>
[all …]
/build/tools/droiddoc/templates-ndk/components/
Dmasthead.cs11 <p>You requested a page in English, would you like to proceed with this language setting?</p>
14 …<p>You requested a page in Spanish (Español), would you like to proceed with this language setting…
17 …<p>You requested a page in Japanese (日本語), would you like to proceed with this language setting?</
20 … <p>You requested a page in Korean (한국어), would you like to proceed with this language setting?</p>
23 …<p>You requested a page in Russian (Русский), would you like to proceed with this language setting…
26 …<p>You requested a page in Simplified Chinese (简体中文), would you like to proceed with this language…
29 …<p>You requested a page in Traditional Chinese (繁體中文), would you like to proceed with this languag…
/build/tools/droiddoc/templates-sdk-refonly/components/
Dmasthead.cs8 <p>You requested a page in English, would you like to proceed with this language setting?</p>
11 …<p>You requested a page in Spanish (Español), would you like to proceed with this language setting…
14 …<p>You requested a page in Japanese (日本語), would you like to proceed with this language setting?</
17 … <p>You requested a page in Korean (한국어), would you like to proceed with this language setting?</p>
20 …<p>You requested a page in Russian (Русский), would you like to proceed with this language setting…
23 …<p>You requested a page in Simplified Chinese (简体中文), would you like to proceed with this language…
26 …<p>You requested a page in Traditional Chinese (繁體中文), would you like to proceed with this languag…

1234567