HomeSort by relevance Sort by last modified time
    Searched refs:ParseInt (Results 1 - 25 of 129) sorted by null

1 2 3 4 5 6

  /system/core/base/
parseint_test.cpp 17 #include "android-base/parseint.h"
21 TEST(parseint, signed_smoke) {
23 ASSERT_FALSE(android::base::ParseInt("x", &i));
24 ASSERT_FALSE(android::base::ParseInt("123x", &i));
26 ASSERT_TRUE(android::base::ParseInt("123", &i));
28 ASSERT_TRUE(android::base::ParseInt("-123", &i));
32 ASSERT_TRUE(android::base::ParseInt("1234", &s));
35 ASSERT_TRUE(android::base::ParseInt("12", &i, 0, 15));
37 ASSERT_FALSE(android::base::ParseInt("-12", &i, 0, 15));
38 ASSERT_FALSE(android::base::ParseInt("16", &i, 0, 15))
    [all...]
  /system/core/base/include/android-base/
parseint.h 62 bool ParseInt(const char* s, T* out,
81 bool ParseInt(const std::string& s, T* out,
84 return ParseInt(s.c_str(), out, min, max);
  /external/protobuf/src/google/protobuf/stubs/
time.cc 147 const char* ParseInt(const char* data, int width, int min_value,
196 if ((data = ParseInt(data, 2, 0, 23, &hour)) == NULL) {
203 if ((data = ParseInt(data, 2, 0, 59, &minute)) == NULL) {
293 if ((data = ParseInt(data, 4, 1, 9999, &time.year)) == NULL) {
299 if ((data = ParseInt(data, 2, 1, 12, &time.month)) == NULL) {
305 if ((data = ParseInt(data, 2, 1, 31, &time.day)) == NULL) {
311 if ((data = ParseInt(data, 2, 0, 23, &time.hour)) == NULL) {
317 if ((data = ParseInt(data, 2, 0, 59, &time.minute)) == NULL) {
323 if ((data = ParseInt(data, 2, 0, 59, &time.second)) == NULL) {
  /prebuilts/go/darwin-x86/src/strconv/
atoi.go 17 Func string // the failing function (ParseBool, ParseInt, ParseUint, ParseFloat)
41 // ParseUint is like ParseInt but for unsigned numbers.
140 // ParseInt interprets a string s in the given base (2 to 36) and
149 // The errors that ParseInt returns have concrete type *NumError
156 func ParseInt(s string, base int, bitSize int) (i int64, err error) {
157 const fnParseInt = "ParseInt"
200 // Atoi returns the result of ParseInt(s, 10, 0) converted to type int.
203 i64, err := ParseInt(s, 10, 0)
atoi_test.go 215 test.err = &NumError{"ParseInt", test.in, test.err}
221 test.err = &NumError{"ParseInt", test.in, test.err}
233 test.err = &NumError{"ParseInt", test.in, test.err}
263 out, err := ParseInt(test.in, 10, 64)
274 out, err := ParseInt(test.in, test.base, 64)
276 t.Errorf("ParseInt(%q) = %v, %v want %v, %v",
310 out, err := ParseInt(test.in, 10, 0)
319 out, err := ParseInt(test.in, 10, 0)
343 ParseInt("12345678", 10, 0)
349 ParseInt("-12345678", 10, 0
    [all...]
doc.go 17 // ParseBool, ParseFloat, ParseInt, and ParseUint convert strings to values:
21 // i, err := strconv.ParseInt("-42", 10, 64)
29 // i64, err := strconv.ParseInt(s, 10, 32)
strconv_test.go 63 _, errInt64 := ParseInt("INVALID", 10, 64)
73 {errInt64, "ParseInt"},
example_test.go 217 if s, err := strconv.ParseInt(v32, 10, 32); err == nil {
220 if s, err := strconv.ParseInt(v32, 16, 32); err == nil {
225 if s, err := strconv.ParseInt(v64, 10, 64); err == nil {
228 if s, err := strconv.ParseInt(v64, 16, 64); err == nil {
  /prebuilts/go/linux-x86/src/strconv/
atoi.go 17 Func string // the failing function (ParseBool, ParseInt, ParseUint, ParseFloat)
41 // ParseUint is like ParseInt but for unsigned numbers.
140 // ParseInt interprets a string s in the given base (2 to 36) and
149 // The errors that ParseInt returns have concrete type *NumError
156 func ParseInt(s string, base int, bitSize int) (i int64, err error) {
157 const fnParseInt = "ParseInt"
200 // Atoi returns the result of ParseInt(s, 10, 0) converted to type int.
203 i64, err := ParseInt(s, 10, 0)
atoi_test.go 215 test.err = &NumError{"ParseInt", test.in, test.err}
221 test.err = &NumError{"ParseInt", test.in, test.err}
233 test.err = &NumError{"ParseInt", test.in, test.err}
263 out, err := ParseInt(test.in, 10, 64)
274 out, err := ParseInt(test.in, test.base, 64)
276 t.Errorf("ParseInt(%q) = %v, %v want %v, %v",
310 out, err := ParseInt(test.in, 10, 0)
319 out, err := ParseInt(test.in, 10, 0)
343 ParseInt("12345678", 10, 0)
349 ParseInt("-12345678", 10, 0
    [all...]
doc.go 17 // ParseBool, ParseFloat, ParseInt, and ParseUint convert strings to values:
21 // i, err := strconv.ParseInt("-42", 10, 64)
29 // i64, err := strconv.ParseInt(s, 10, 32)
strconv_test.go 63 _, errInt64 := ParseInt("INVALID", 10, 64)
73 {errInt64, "ParseInt"},
example_test.go 217 if s, err := strconv.ParseInt(v32, 10, 32); err == nil {
220 if s, err := strconv.ParseInt(v32, 16, 32); err == nil {
225 if s, err := strconv.ParseInt(v64, 10, 64); err == nil {
228 if s, err := strconv.ParseInt(v64, 16, 64); err == nil {
  /bootable/recovery/otautil/
ThermalUtil.cpp 28 #include <android-base/parseint.h>
72 if (!android::base::ParseInt(android::base::Trim(content), &temperature)) {
  /system/core/bootstat/
bootstat.cpp 36 #include <android-base/parseint.h>
65 if (android::base::ParseInt(value_str, &value)) {
206 if (!android::base::ParseInt(build_date_str, &build_date)) {
229 if (android::base::ParseInt(value, &time_in_ms)) {
258 if (android::base::ParseInt(stageTimingValues[1], &time_ms)) {
  /system/core/debuggerd/
debuggerd.cpp 27 #include <android-base/parseint.h>
65 if (!android::base::ParseInt(argv[argc - 1], &pid, 1, std::numeric_limits<pid_t>::max())) {
crash_dump.cpp 37 #include <android-base/parseint.h>
233 if (!android::base::ParseInt(argv[1], &main_tid, 1, std::numeric_limits<pid_t>::max())) {
237 if (!android::base::ParseInt(argv[2], &pseudothread_tid, 1, std::numeric_limits<pid_t>::max())) {
241 if (!android::base::ParseInt(argv[3], &dump_type, 0, 1)) {
  /bootable/recovery/edify/
expr.cpp 30 #include <android-base/parseint.h>
144 if (!android::base::ParseInt(val.c_str(), &v, 0)) {
266 if (!android::base::ParseInt(args[0].c_str(), &l_int)) {
272 if (!android::base::ParseInt(args[1].c_str(), &r_int)) {
294 if (!android::base::ParseInt(args[0].c_str(), &l_int)) {
300 if (!android::base::ParseInt(args[1].c_str(), &r_int)) {
  /frameworks/base/tools/aapt2/
ResourceUtils.h 88 Maybe<uint32_t> ParseInt(const android::StringPiece& str);
  /prebuilts/go/darwin-x86/src/bufio/
example_test.go 64 _, err = strconv.ParseInt(string(token), 10, 32)
81 // Invalid input: strconv.ParseInt: parsing "1234567901234567890": value out of range
  /prebuilts/go/linux-x86/src/bufio/
example_test.go 64 _, err = strconv.ParseInt(string(token), 10, 32)
81 // Invalid input: strconv.ParseInt: parsing "1234567901234567890": value out of range
  /system/core/libprocinfo/include/procinfo/
process.h 30 #include <android-base/parseint.h>
83 if (!android::base::ParseInt(dent->d_name, &tid, 1, std::numeric_limits<pid_t>::max())) {
  /system/core/adb/
adb_utils.cpp 32 #include <android-base/parseint.h>
213 if (!android::base::ParseInt(&source[4], &port) || port < 0) {
222 if (!android::base::ParseInt(&dest[4], &port) || port <= 0) {
socket_spec.cpp 23 #include <android-base/parseint.h>
79 if (android::base::ParseInt(&spec[4], &port_value)) {
80 // Do the range checking ourselves, because ParseInt rejects 'tcp:65536' and 'tcp:foo:1234'
  /frameworks/opt/net/wifi/libwifi_system/
hostapd_manager.cpp 26 #include <android-base/parseint.h>
35 using android::base::ParseInt;

Completed in 1834 milliseconds

1 2 3 4 5 6