Home
last modified time | relevance | path

Searched refs:endptr (Results 1 – 19 of 19) sorted by relevance

/system/vold/
DScryptParameters.cpp34 char* endptr; in parse_scrypt_parameters() local
35 params[i] = strtol(token, &endptr, 10); in parse_scrypt_parameters()
40 if ((*token == '\0') || (*endptr != '\0') || params[i] < 0 || params[i] > 255) { in parse_scrypt_parameters()
/system/core/libsysutils/src/
DFrameworkListener.cpp151 char *endptr; in dispatchCommand() local
152 int cmdNum = (int)strtol(tmp, &endptr, 0); in dispatchCommand()
153 if (endptr == nullptr || *endptr != '\0') { in dispatchCommand()
/system/netd/server/
DNetdConstants.cpp89 char *endptr; in parsePrefix() local
91 templen = strtoul(prefixlenString, &endptr, 10); in parsePrefix()
92 if (*endptr || templen > 255) { in parsePrefix()
/system/bt/btif/src/
Dbtif_config_cache.cc250 char* endptr; in GetInt() local
251 long ret_long = strtol(value->c_str(), &endptr, 0); in GetInt()
252 if (*endptr != '\0') { in GetInt()
276 char* endptr; in GetUint64() local
277 uint64_t ret = strtoull(value->c_str(), &endptr, 0); in GetUint64()
278 if (*endptr != '\0') { in GetUint64()
Dbtif_dm.cc2833 char* endptr; in btif_dm_get_smp_config() local
2840 p_cfg->ble_auth_req = (uint8_t)strtoul(pch, &endptr, 16); in btif_dm_get_smp_config()
2846 p_cfg->ble_io_cap = (uint8_t)strtoul(pch, &endptr, 16); in btif_dm_get_smp_config()
2852 p_cfg->ble_init_key = (uint8_t)strtoul(pch, &endptr, 16); in btif_dm_get_smp_config()
2858 p_cfg->ble_resp_key = (uint8_t)strtoul(pch, &endptr, 16); in btif_dm_get_smp_config()
2864 p_cfg->ble_max_key_size = (uint8_t)strtoul(pch, &endptr, 16); in btif_dm_get_smp_config()
/system/libufdt/sysdeps/
Dlibufdt_sysdeps_posix.c46 unsigned long int dto_strtoul(const char *nptr, char **endptr, int base) { in dto_strtoul() argument
47 return strtoul(nptr, endptr, base); in dto_strtoul()
Dlibufdt_sysdeps_vendor.c189 unsigned long int dto_strtoul(const char *nptr, char **endptr, int base) { in dto_strtoul() argument
190 return strtoul(nptr, endptr, base); in dto_strtoul()
/system/netd/libnetdutils/
DInternetAddresses.cpp139 char* endptr; in forString() local
140 unsigned long prefixlen = strtoul(prefixString, &endptr, 10); in forString()
141 if (*endptr != '\0') return false; in forString()
/system/memory/libmeminfo/
Dsysmeminfo.cpp156 char* endptr = nullptr; in ReadMemInfo() local
157 uint64_t val = strtoull(p, &endptr, 10); in ReadMemInfo()
158 if (p == endptr) { in ReadMemInfo()
163 p = endptr; in ReadMemInfo()
/system/bt/osi/src/
Dconfig.cc156 char* endptr; in config_get_int() local
157 int ret = strtol(entry->value.c_str(), &endptr, 0); in config_get_int()
158 return (*endptr == '\0') ? ret : def_value; in config_get_int()
166 char* endptr; in config_get_uint64() local
167 uint64_t ret = strtoull(entry->value.c_str(), &endptr, 0); in config_get_uint64()
168 return (*endptr == '\0') ? ret : def_value; in config_get_uint64()
/system/libufdt/sysdeps/include/
Dlibufdt_sysdeps.h61 unsigned long int dto_strtoul(const char *nptr, char **endptr, int base);
/system/extras/memory_replay/
DTraceBenchmark.cpp419 char* endptr; in main() local
420 int cpu = strtol(&argv[i][6], &endptr, 10); in main()
421 if (argv[i][0] == '\0' || endptr == nullptr || *endptr != '\0') { in main()
/system/extras/verity/fec/
Dmain.cpp120 char* endptr; in parse_arg() local
123 unsigned long long int value = strtoull(arg, &endptr, 0); in parse_arg()
125 if (arg[0] == '\0' || *endptr != '\0' || in parse_arg()
/system/libbase/include/android-base/
Dparsedouble.h31 template <typename T, T (*strtox)(const char* str, char** endptr)>
/system/extras/simpleperf/
Devent_type.cpp109 char* endptr; in GetTracepointEventTypesFromTraceFs() local
110 uint64_t id = strtoull(id_content.c_str(), &endptr, 10); in GetTracepointEventTypesFromTraceFs()
111 if (endptr == id_content.c_str()) { in GetTracepointEventTypesFromTraceFs()
/system/core/libcutils/
Dtrace-dev.inc157 char *endptr;
162 tags = strtoull(value, &endptr, 0);
163 if (value[0] == '\0' || *endptr != '\0') {
/system/sepolicy/tools/
Dcheck_seapp.c425 char *endptr; in validate_uint() local
427 longvalue = strtol(value, &endptr, 10); in validate_uint()
428 if (('\0' != *endptr) || (longvalue < 0) || (longvalue > INT32_MAX)) { in validate_uint()
/system/core/logcat/tests/
Dlogcat_test.cpp858 char* endptr; in TEST() local
860 strtol(rotated_log_filename_suffix, &endptr, 10); in TEST()
861 EXPECT_EQ(rotated_log_filename_suffix + 2, endptr); in TEST()
/system/memory/lmkd/
Dlmkd.cpp540 char* endptr; in parse_int64() local
541 long long val = strtoll(str, &endptr, 10); in parse_int64()
542 if (str == endptr || val > INT64_MAX) { in parse_int64()