Home
last modified time | relevance | path

Searched refs:defval (Results 1 – 16 of 16) sorted by relevance

/external/libtextclassifier/lang_id/common/fel/
Dtask-context.cc38 string TaskContext::Get(const string &name, const char *defval) const { in Get()
43 return defval; in Get()
46 int TaskContext::Get(const string &name, int defval) const { in Get()
48 int value = defval; in Get()
52 return defval; in Get()
55 float TaskContext::Get(const string &name, float defval) const { in Get()
57 float value = defval; in Get()
61 return defval; in Get()
64 bool TaskContext::Get(const string &name, bool defval) const { in Get()
66 return value.empty() ? defval : value == "true"; in Get()
Dtask-context.h53 string Get(const string &name, const char *defval) const;
54 int Get(const string &name, int defval) const;
55 float Get(const string &name, float defval) const;
56 bool Get(const string &name, bool defval) const;
/external/gflags/android/gflags/
Dgflags.h315 extern GFLAGS_DLL_DECL bool BoolFromEnv(const char *varname, bool defval);
316 extern GFLAGS_DLL_DECL int32 Int32FromEnv(const char *varname, int32 defval);
317 extern GFLAGS_DLL_DECL uint32 Uint32FromEnv(const char *varname, uint32 defval);
318 extern GFLAGS_DLL_DECL int64 Int64FromEnv(const char *varname, int64 defval);
319 extern GFLAGS_DLL_DECL uint64 Uint64FromEnv(const char *varname, uint64 defval);
320 extern GFLAGS_DLL_DECL double DoubleFromEnv(const char *varname, double defval);
321 extern GFLAGS_DLL_DECL const char *StringFromEnv(const char *varname, const char *defval);
/external/google-breakpad/src/third_party/linux/include/gflags/
Dgflags.h313 extern bool BoolFromEnv(const char *varname, bool defval);
314 extern int32 Int32FromEnv(const char *varname, int32 defval);
315 extern int64 Int64FromEnv(const char *varname, int64 defval);
316 extern uint64 Uint64FromEnv(const char *varname, uint64 defval);
317 extern double DoubleFromEnv(const char *varname, double defval);
318 extern const char *StringFromEnv(const char *varname, const char *defval);
/external/libyuv/files/third_party/gflags/gen/posix/include/gflags/
Dgflags.h314 extern GFLAGS_DLL_DECL bool BoolFromEnv(const char *varname, bool defval);
315 extern GFLAGS_DLL_DECL int32 Int32FromEnv(const char *varname, int32 defval);
316 extern GFLAGS_DLL_DECL int64 Int64FromEnv(const char *varname, int64 defval);
317 extern GFLAGS_DLL_DECL uint64 Uint64FromEnv(const char *varname, uint64 defval);
318 extern GFLAGS_DLL_DECL double DoubleFromEnv(const char *varname, double defval);
319 extern GFLAGS_DLL_DECL const char *StringFromEnv(const char *varname, const char *defval);
/external/libyuv/files/third_party/gflags/gen/win/include/gflags/
Dgflags.h314 extern GFLAGS_DLL_DECL bool BoolFromEnv(const char *varname, bool defval);
315 extern GFLAGS_DLL_DECL int32 Int32FromEnv(const char *varname, int32 defval);
316 extern GFLAGS_DLL_DECL int64 Int64FromEnv(const char *varname, int64 defval);
317 extern GFLAGS_DLL_DECL uint64 Uint64FromEnv(const char *varname, uint64 defval);
318 extern GFLAGS_DLL_DECL double DoubleFromEnv(const char *varname, double defval);
319 extern GFLAGS_DLL_DECL const char *StringFromEnv(const char *varname, const char *defval);
/external/webrtc/third_party/gflags/gen/posix/include/gflags/
Dgflags.h335 extern bool BoolFromEnv(const char *varname, bool defval);
336 extern int32 Int32FromEnv(const char *varname, int32 defval);
337 extern int64 Int64FromEnv(const char *varname, int64 defval);
338 extern uint64 Uint64FromEnv(const char *varname, uint64 defval);
339 extern double DoubleFromEnv(const char *varname, double defval);
340 extern const char *StringFromEnv(const char *varname, const char *defval);
/external/webrtc/third_party/gflags/gen/win/include/gflags/
Dgflags.h357 extern GFLAGS_DLL_DECL bool BoolFromEnv(const char *varname, bool defval);
358 extern GFLAGS_DLL_DECL int32 Int32FromEnv(const char *varname, int32 defval);
359 extern GFLAGS_DLL_DECL int64 Int64FromEnv(const char *varname, int64 defval);
360 extern GFLAGS_DLL_DECL uint64 Uint64FromEnv(const char *varname, uint64 defval);
361 extern GFLAGS_DLL_DECL double DoubleFromEnv(const char *varname, double defval);
362 extern GFLAGS_DLL_DECL const char *StringFromEnv(const char *varname, const char *defval);
/external/u-boot/env/
Dflags.c543 const char *defval = env_get_default(name); in env_flags_validate() local
545 if (defval == NULL) in env_flags_validate()
546 defval = ""; in env_flags_validate()
547 printf("oldval: %s defval: %s\n", oldval, defval); in env_flags_validate()
548 if (strcmp(oldval, defval) != 0) { in env_flags_validate()
/external/libcups/cups/
Dadminutil.c49 ipp_attribute_t *defattr, int defval,
2290 int defval, /* I - Default value number */ in write_option() argument
2307 defattr->values[defval].integer); in write_option()
2324 else if (defval == 0) in write_option()
2326 else if (defval < (valcount - 1)) in write_option()
2345 else if (defval == 0) in write_option()
2348 else if (defval < (valcount - 1)) in write_option()
2362 defattr->values[defval].string.text); in write_option()
2372 else if (defval == 0) in write_option()
2375 else if (defval < (valcount - 1)) in write_option()
/external/curl/src/
Dtool_setopt.c638 long defval = 0L; in tool_setopt() local
642 defval = nv->value; in tool_setopt()
650 if(lval == defval) in tool_setopt()
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c3279 PyObject *defval; in _validate_paramflags() local
3281 if (!PyArg_ParseTuple(item, "i|ZO", &flag, &name, &defval)) { in _validate_paramflags()
3598 _get_arg(int *pindex, PyObject *name, PyObject *defval, PyObject *inargs, PyObject *kwds) in _get_arg() argument
3613 if (defval) { in _get_arg()
3614 Py_INCREF(defval); in _get_arg()
3615 return defval; in _get_arg()
3690 PyObject *defval = NULL; in _build_callargs() local
3698 defval = tsize > 2 ? PyTuple_GET_ITEM(item, 2) : NULL; in _build_callargs()
3704 if (defval == NULL) in _build_callargs()
3705 defval = _PyLong_Zero; in _build_callargs()
[all …]
/external/python/cpython2/Modules/_ctypes/
D_ctypes.c3390 PyObject *defval; in _validate_paramflags() local
3392 if (!PyArg_ParseTuple(item, "i|zO", &flag, &name, &defval)) { in _validate_paramflags()
3700 _get_arg(int *pindex, char *name, PyObject *defval, PyObject *inargs, PyObject *kwds) in _get_arg() argument
3715 if (defval) { in _get_arg()
3716 Py_INCREF(defval); in _get_arg()
3717 return defval; in _get_arg()
3792 PyObject *defval = NULL; in _build_callargs() local
3800 defval = tsize > 2 ? PyTuple_GET_ITEM(item, 2) : NULL; in _build_callargs()
3806 if (defval == NULL) { in _build_callargs()
3807 defval = PyInt_FromLong(0); in _build_callargs()
[all …]
/external/gflags/src/
Dgflags.h.in310 // return defval. If 'varname' does exist but is not valid
315 extern GFLAGS_DLL_DECL bool BoolFromEnv(const char *varname, bool defval);
316 extern GFLAGS_DLL_DECL int32 Int32FromEnv(const char *varname, int32 defval);
317 extern GFLAGS_DLL_DECL uint32 Uint32FromEnv(const char *varname, uint32 defval);
318 extern GFLAGS_DLL_DECL int64 Int64FromEnv(const char *varname, int64 defval);
319 extern GFLAGS_DLL_DECL uint64 Uint64FromEnv(const char *varname, uint64 defval);
320 extern GFLAGS_DLL_DECL double DoubleFromEnv(const char *varname, double defval);
321 extern GFLAGS_DLL_DECL const char *StringFromEnv(const char *varname, const char *defval);
/external/u-boot/tools/env/
Dfw_env.c574 const char *defval = fw_getdefenv(name); in fw_env_write() local
576 if (defval == NULL) in fw_env_write()
577 defval = ""; in fw_env_write()
578 if (strcmp(oldval, defval) in fw_env_write()
/external/v8/src/wasm/
Dwasm-interpreter.cc2429 #define ASMJS_LOAD_CASE(name, ctype, mtype, defval) \ in Execute() argument
2435 result = defval; \ in Execute()