Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 146) sorted by relevance

123456

/build/kati/
Dvar.go35 v Var member
39 func (v *targetSpecificVar) Append(ev *Evaluator, s string) (Var, error) {
40 nv, err := v.v.Append(ev, s)
45 v: nv,
46 op: v.op,
49 func (v *targetSpecificVar) AppendVar(ev *Evaluator, v2 Value) (Var, error) {
50 nv, err := v.v.AppendVar(ev, v2)
55 v: nv,
56 op: v.op,
59 func (v *targetSpecificVar) Flavor() string {
[all …]
Dexpr.go89 for _, v := range e {
90 s = append(s, v.String())
96 for _, v := range e {
98 err := v.Eval(w, ev)
108 for _, v := range e {
109 r.Children = append(r.Children, v.serialize())
116 for _, v := range e {
117 v.dump(d)
128 func toExpr(v Value) expr {
129 if v == nil {
[all …]
Devalcmd.go45 for k, v := range map[string]Var{
52 ev.vars[k] = v
83 func (v autoVar) Flavor() string { return "undefined" }
84 func (v autoVar) Origin() string { return "automatic" }
85 func (v autoVar) IsDefined() bool { return true }
86 func (v autoVar) Append(*Evaluator, string) (Var, error) {
89 func (v autoVar) AppendVar(*Evaluator, Value) (Var, error) {
92 func (v autoVar) serialize() serializableVar {
95 func (v autoVar) dump(d *dumpbuf) {
96 d.err = fmt.Errorf("cannot dump auto var: %v", v)
[all …]
Dio.cc21 void DumpInt(FILE* fp, int v) { in DumpInt() argument
22 size_t r = fwrite(&v, sizeof(v), 1, fp); in DumpInt()
33 int v; in LoadInt() local
34 size_t r = fread(&v, sizeof(v), 1, fp); in LoadInt()
37 return v; in LoadInt()
Dvar.cc102 SimpleVar::SimpleVar(const string& v, VarOrigin origin) : Var(origin), v_(v) {} in SimpleVar() argument
104 SimpleVar::SimpleVar(VarOrigin origin, Evaluator* ev, Value* v) : Var(origin) { in SimpleVar() argument
105 v->Eval(ev, &v_); in SimpleVar()
113 void SimpleVar::AppendVar(Evaluator* ev, Value* v) { in AppendVar() argument
115 v->Eval(ev, &buf); in AppendVar()
128 RecursiveVar::RecursiveVar(Value* v, VarOrigin origin, StringPiece orig) in RecursiveVar() argument
129 : Var(origin), v_(v), orig_(orig) {} in RecursiveVar()
136 void RecursiveVar::AppendVar(Evaluator* ev, Value* v) { in AppendVar() argument
138 v_ = Value::NewExpr(v_, Value::NewLiteral(" "), v); in AppendVar()
169 void Vars::add_used_env_vars(Symbol v) { in add_used_env_vars() argument
[all …]
Drule_parser_test.go194 t.Errorf(`r.parse(%q, %v)=_, <nil>, want _, %q`, tc.in, tc.rhs, tc.err)
198 t.Errorf(`r.parse(%q, %v)=_, %s, want %s`, tc.in, tc.rhs, got, want)
203 t.Errorf(`r.parse(%q, %v)=_, %v; want nil error`, tc.in, tc.rhs, err)
207 t.Errorf(`r.parse(%q, %v); r=%#v, want %#v`, tc.in, tc.rhs, *got, tc.want)
211 t.Errorf(`r.parse(%q, %v)=<nil>; want=%#v`, tc.in, tc.rhs, tc.assign)
215 t.Errorf(`r.parse(%q, %v)=%#v; want=%#v`, tc.in, tc.rhs, got, want)
220 t.Errorf(`r.parse(%q, %v)=%v; want=<nil>`, tc.in, tc.rhs, assign)
Drule.cc103 vector<string> v; in DebugString() local
104 v.push_back(StringPrintf("outputs=[%s]", JoinSymbols(outputs, ",").c_str())); in DebugString()
105 v.push_back(StringPrintf("inputs=[%s]", JoinSymbols(inputs, ",").c_str())); in DebugString()
107 v.push_back(StringPrintf("order_only_inputs=[%s]", in DebugString()
111 v.push_back(StringPrintf("output_patterns=[%s]", in DebugString()
115 v.push_back("is_double_colon"); in DebugString()
117 v.push_back("is_suffix_rule"); in DebugString()
119 v.push_back(StringPrintf("cmds=[%s]", JoinValues(cmds, ",").c_str())); in DebugString()
121 return JoinStrings(v, " "); in DebugString()
Deval.go97 for _, v := range ac.m {
98 r = append(r, v)
193 v := buf.Bytes()
197 buf.args = append(buf.args, v[s:p])
223 switch v := ast.lhs.(type) {
225 lhs = string(v)
227 lhs = string(v)
230 err := v.Eval(buf, ev)
258 vars.Assign(lhs, &targetSpecificVar{v: rhs, op: assign.op})
275 for i, v := range aexpr {
[all …]
Dstats.go66 name, v string member
72 func (t *traceEventT) begin(name string, v Value, tid int) event {
78 e.v = v.String()
104 e.v,
114 stats.add(e.name, e.v, e.t)
133 func (s *statsT) add(name, v string, t time.Time) {
138 key := fmt.Sprintf("%s:%s", name, v)
156 for k, v := range stats.data {
157 v.Name = k
158 sv = append(sv, v)
Dsymtab.cc45 Symbol::Symbol(int v) : v_(v) {} in Symbol() argument
58 Var* v = g_symbol_data[v_].gv; in GetGlobalVar() local
59 if (v->Origin() == VarOrigin::ENVIRONMENT || in GetGlobalVar()
60 v->Origin() == VarOrigin::ENVIRONMENT_OVERRIDE) { in GetGlobalVar()
63 return v; in GetGlobalVar()
66 void Symbol::SetGlobalVar(Var* v, bool is_override, bool* readonly) const { in SetGlobalVar() argument
85 v->Origin() == VarOrigin::FILE) { in SetGlobalVar()
93 g_symbol_data[v_].gv = v; in SetGlobalVar()
/build/soong/ui/logger/
Dlogger.go47 Print(v ...interface{})
49 Printf(format string, v ...interface{})
51 Println(v ...interface{})
55 Verbose(v ...interface{})
56 Verbosef(format string, v ...interface{})
57 Verboseln(v ...interface{})
62 Fatal(v ...interface{})
63 Fatalf(format string, v ...interface{})
64 Fatalln(v ...interface{})
67 Panic(v ...interface{})
[all …]
/build/soong/android/
Dpath_properties.go56 v := reflect.ValueOf(ps)
57 if v.Kind() != reflect.Ptr || v.Elem().Kind() != reflect.Struct {
58 panic(fmt.Errorf("type %s is not a pointer to a struct", v.Type()))
60 if v.IsNil() {
63 v = v.Elem()
70 sv := fieldByIndex(v, i)
88 v.Type().FieldByIndex(i).Name, v.Type(), sv.Type()))
97 func fieldByIndex(v reflect.Value, index []int) reflect.Value {
99 return v.Field(index[0])
102 if v.Kind() == reflect.Ptr {
[all …]
Dneverallow.go244 for _, v := range r.paths {
245 s += " dir:" + v + "*"
247 for _, v := range r.unlessPaths {
248 s += " -dir:" + v + "*"
250 for _, v := range r.moduleTypes {
251 s += " type:" + v
253 for _, v := range r.unlessModuleTypes {
254 s += " -type:" + v
256 for _, v := range r.props {
257 s += " " + strings.Join(v.fields, ".") + "=" + v.value
[all …]
Donceper.go46 if v, ok := once.values.Load(key); ok {
47 return once.maybeWaitFor(key, v)
52 if v, loaded := once.values.LoadOrStore(key, waiter); loaded {
54 return once.maybeWaitFor(key, v)
58 v := value()
59 once.values.Store(key, v)
62 return v
68 v, ok := once.values.Load(key)
73 return once.maybeWaitFor(key, v)
/build/blueprint/proptools/
Dtypeequal.go81 func concreteType(v reflect.Value) bool {
82 if v.Kind() == reflect.Interface {
86 if v.Kind() == reflect.Ptr {
87 if v.IsNil() {
90 v = v.Elem()
93 if v.Kind() != reflect.Struct {
97 for i := 0; i < v.NumField(); i++ {
98 v := v.Field(i)
100 switch kind := v.Kind(); kind {
102 if !concreteType(v) {
/build/soong/ui/metrics/
Dmetrics.go65 for k, v := range metadata {
68 m.metrics.BuildId = proto.String(v)
71 m.metrics.PlatformVersionCodename = proto.String(v)
74 m.metrics.TargetProduct = proto.String(v)
77 switch v {
88 m.metrics.TargetArch = m.getArch(v)
90 m.metrics.TargetArchVariant = proto.String(v)
92 m.metrics.TargetCpuVariant = proto.String(v)
94 m.metrics.HostArch = m.getArch(v)
96 m.metrics.Host_2NdArch = m.getArch(v)
[all …]
/build/make/core/
Dnode_fns.mk30 $(foreach v,$(1),$(eval $(v):=))
48 $(foreach v,$(2),$(eval $(strip $(1)).$(v):=$($(v))))
71 $(foreach v,$(3), \
72 $(eval $(2).$(v) := $($(1).$(v))) \
73 $(eval $(1).$(v) :=) \
132 $(foreach v,$(2),$($(1).$(v))) \
148 $(foreach v,$(3), \
150 $(eval _eiv_tv := $(1).$(2).$(v)) \
164 $(patsubst $(INHERIT_TAG)$(i),$($(1).$(i).$(v)), \
167 $(eval $(1).$(i).$(v) :=) \
Ddevice.mk24 $(foreach v,$(_device_var_list),\
25 $(info DEVICES.$(1).$(v) := $(DEVICES.$(1).$(v))))\
37 $(foreach v,$(_device_var_list), \
38 $(eval $(v) := $($(v)) $(INHERIT_TAG)$(strip $(1))))
/build/blueprint/
Dpackage_ctx.go273 v := &staticVariable{p, name, value}
274 err = p.scope.AddVariable(v)
279 return v
282 func (v *staticVariable) packageContext() *packageContext {
283 return v.pctx
286 func (v *staticVariable) name() string {
287 return v.name_
290 func (v *staticVariable) fullName(pkgNames map[*packageContext]string) string {
291 return packageNamespacePrefix(pkgNames[v.pctx]) + v.name_
294 func (v *staticVariable) value(interface{}) (*ninjaString, error) {
[all …]
Dninja_strings.go63 func (ps *parseState) pushVariable(v Variable) {
71 ps.result.variables = append(ps.result.variables, v)
183 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
188 state.pushVariable(v)
196 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
201 state.pushVariable(v)
211 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
216 state.pushVariable(v)
237 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
242 state.pushVariable(v)
[all …]
Dlive_tracker.go148 func (l *liveTracker) addVariable(v Variable) error {
149 _, ok := l.variables[v]
151 value, err := v.value(l.config)
162 l.variables[v] = value
184 for _, v := range str.variables {
185 err := l.addVariable(v)
193 func (l *liveTracker) RemoveVariableIfLive(v Variable) bool {
197 _, isLive := l.variables[v]
199 delete(l.variables, v)
/build/soong/java/
Dsdk.go49 func sdkVersionOrDefault(ctx android.BaseContext, v string) string {
50 switch v {
54 return v
60 func sdkVersionToNumber(ctx android.BaseContext, v string) (int, error) {
61 switch v {
65 n := android.GetNumericSdkVersion(v)
74 func sdkVersionToNumberAsString(ctx android.BaseContext, v string) (string, error) {
75 n, err := sdkVersionToNumber(ctx, v)
83 v := sdkContext.sdkVersion()
85 if ctx.Config().IsPdkBuild() && (v == "" || v == "current") {
[all …]
/build/soong/ui/status/
Dlog.go47 func (v *verboseLog) StartAction(action *Action, counts Counts) {}
49 func (v *verboseLog) FinishAction(result ActionResult, counts Counts) {
55 fmt.Fprintf(v.w, "[%d/%d] %s\n", counts.FinishedActions, counts.TotalActions, cmd)
58 fmt.Fprintf(v.w, "FAILED: %s\n", strings.Join(result.Outputs, " "))
62 fmt.Fprintln(v.w, result.Output)
66 func (v *verboseLog) Flush() {
67 v.w.Close()
70 func (v *verboseLog) Message(level MsgLevel, message string) {
71 fmt.Fprintf(v.w, "%s%s\n", level.Prefix(), message)
/build/soong/cc/
Dgenrule_test.go38 for k, v := range fs {
39 mockFS[k] = v
80 t.Errorf(`want arm inputs %v, got %v`, expected, gen.Inputs.Strings())
86 t.Errorf(`want arm64 inputs %v, got %v`, expected, gen.Inputs.Strings())
/build/blueprint/parser/
Dmodify.go25 for _, v := range list.Values {
26 if v.Type() != StringType {
27 panic(fmt.Errorf("expected string in list, got %s", v.Type()))
30 if sv, ok := v.(*String); ok && sv.Value == s {
45 for i, v := range list.Values {
46 if v.Type() != StringType {
47 panic(fmt.Errorf("expected string in list, got %s", v.Type()))
50 if sv, ok := v.(*String); ok && sv.Value == s {

123456