/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
miniopt.c | 60 char *p, *eq, *valstr, *endptr = NULL; local 67 t->valstr = NULL; 69 valstr = NULL; 91 valstr = p; 106 valstr = eq + 1; 107 if (*valstr == '\0') { 127 valstr = NULL; 135 valstr = *argv; 141 valstr = p; 144 /* parse valstr as int just in case * [all...] |
dhdu.c | 630 fprintf(stderr, "invalid integer %s\n", opts.valstr); 661 if (!strcmp(opts.valstr, "send")) 663 else if (!strcmp(opts.valstr, "echo")) 665 else if (!strcmp(opts.valstr, "burst")) 667 else if (!strcmp(opts.valstr, "recv")) 671 opts.valstr); 677 fprintf(stderr, "option parsing error (key %s valstr %s)\n", 678 opts.key, opts.valstr); [all...] |
/external/ppp/pppd/plugins/radius/ |
util.c | 33 void rc_str2tm (char *valstr, struct tm *tm) 40 if (strncmp (months[i], valstr, 3) == 0) 48 tm->tm_mday = atoi (&valstr[4]); 51 tm->tm_year = atoi (&valstr[7]) - 1900;
|
dict.c | 41 char valstr[AUTH_ID_LEN]; local 108 n = sscanf(buffer, "%s%s%s%s%s", dummystr, namestr, valstr, typestr, vendorstr); 136 if (!isdigit (*valstr)) 143 value = atoi (valstr); 212 namestr, valstr) != 4) 239 if (!isdigit (*valstr)) 246 value = atoi (valstr);
|
avpair.c | 526 char valstr[AUTH_ID_LEN]; local 578 rc_fieldcpy (valstr, &buffer); 600 strcpy (pair->strvalue, valstr); 601 pair->lvalue = strlen(valstr); 605 if (isdigit (*valstr)) 607 pair->lvalue = atoi (valstr); 611 if ((dval = rc_dict_findval (valstr)) 614 error("rc_avpair_parse: unknown attribute value: %s", valstr); 630 pair->lvalue = rc_get_ipaddr(valstr); 639 rc_str2tm (valstr, tm) [all...] |
/hardware/ti/omap4xxx/camera/ |
CameraHal.cpp | 250 const char *valstr = NULL; local 268 if ((valstr = params.getPreviewFormat()) != NULL) { 269 if ( isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_PREVIEW_FORMATS))) { 270 mParameters.setPreviewFormat(valstr); 278 valstr = params.get(TICameraParameters::KEY_VNF); 279 if ( valstr != NULL ) { 281 CAMHAL_LOGDB("VNF set %s", valstr); 284 CAMHAL_LOGEB("ERROR: Invalid VNF: %s", valstr); 289 if ((valstr = params.get(CameraParameters::KEY_VIDEO_STABILIZATION)) != NULL) { 294 CAMHAL_LOGDB("VSTAB %s",valstr); 1434 const char *valstr = NULL; local 1840 const char *valstr = NULL; local 1943 const char *valstr = NULL; local 2023 const char *valstr = NULL; local 2058 const char *valstr = NULL; local 2474 const char *valstr = NULL; local 2659 const char * valstr = NULL; local [all...] |
CameraHal_Module.cpp | 645 const char *valstr = NULL; local 666 valstr = properties->get(android::CameraProperties::FACING_INDEX); 667 if(valstr != NULL) 669 if (strcmp(valstr, (const char *) android::TICameraParameters::FACING_FRONT) == 0) 673 else if (strcmp(valstr, (const char *) android::TICameraParameters::FACING_BACK) == 0) 679 valstr = properties->get(android::CameraProperties::ORIENTATION_INDEX); 680 if(valstr != NULL) 682 orientation = atoi(valstr);
|
/hardware/ti/omap4-aah/camera/ |
CameraHal.cpp | 349 const char *valstr = NULL; local 369 if ((valstr = params.getPreviewFormat()) != NULL) { 370 if ( isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_PREVIEW_FORMATS))) { 371 mParameters.setPreviewFormat(valstr); 372 CAMHAL_LOGDB("PreviewFormat set %s", valstr); 374 CAMHAL_LOGEB("Invalid preview format: %s. Supported: %s", valstr, 380 if ((valstr = params.get(TICameraParameters::KEY_VNF)) != NULL) { 383 CAMHAL_LOGDB("VNF %s", valstr); 384 mParameters.set(TICameraParameters::KEY_VNF, valstr); 385 } else if (strcmp(valstr, android::CameraParameters::TRUE) == 0) 2558 const char *valstr = NULL; local 2665 const char *valstr = NULL; local 2747 const char *valstr = NULL; local 3191 const char *valstr = NULL; local 3560 const char * valstr = NULL; local 4461 const char *valstr; local [all...] |
CameraHal_Module.cpp | 784 const char *valstr = NULL; local 806 valstr = properties->get(CameraProperties::FACING_INDEX); 807 if(valstr != NULL) 809 if (strcmp(valstr, TICameraParameters::FACING_FRONT) == 0) 813 else if (strcmp(valstr, TICameraParameters::FACING_BACK) == 0) 819 valstr = properties->get(CameraProperties::ORIENTATION_INDEX); 820 if(valstr != NULL) 822 orientation = atoi(valstr);
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/ |
miniopt.h | 52 char* valstr; /* positional param, or value for the option, member in struct:miniopt 56 uint uval; /* strtol translation of valstr */ 57 int val; /* strtol translation of valstr */
|
/hardware/ti/omap4-aah/camera/OMXCameraAdapter/ |
OMXAlgo.cpp | 37 const char *valstr = NULL; local 48 if ( (valstr = params.get(TICameraParameters::KEY_CAP_MODE)) != NULL ) { 49 if (strcmp(valstr, (const char *) TICameraParameters::HIGH_PERFORMANCE_MODE) == 0) { 52 } else if (strcmp(valstr, (const char *) TICameraParameters::EXPOSURE_BRACKETING) == 0) { 55 } else if (strcmp(valstr, (const char *) TICameraParameters::ZOOM_BRACKETING) == 0) { 58 } else if (strcmp(valstr, (const char *) TICameraParameters::HIGH_QUALITY_MODE) == 0) { 61 } else if (strcmp(valstr, (const char *) TICameraParameters::HIGH_QUALITY_ZSL_MODE) == 0) { 64 } else if (strcmp(valstr, (const char *) TICameraParameters::VIDEO_MODE) == 0) { 67 } else if (strcmp(valstr, (const char *) TICameraParameters::VIDEO_MODE_HQ) == 0) { 70 } else if (strcmp(valstr, (const char *) TICameraParameters::CP_CAM_MODE) == 0) 670 const char* valstr = NULL; local [all...] |
OMXExif.cpp | 35 const char *valstr = NULL; local 40 if( ( valstr = params.get(android::CameraParameters::KEY_GPS_LATITUDE) ) != NULL ) 42 gpsPos = strtod(valstr, NULL); 72 if( ( valstr = params.get(android::CameraParameters::KEY_GPS_LONGITUDE) ) != NULL ) 74 gpsPos = strtod(valstr, NULL); 104 if( ( valstr = params.get(android::CameraParameters::KEY_GPS_ALTITUDE) ) != NULL ) 106 gpsPos = strtod(valstr, NULL); 120 if( (valstr = params.get(android::CameraParameters::KEY_GPS_TIMESTAMP)) != NULL ) 122 long gpsTimestamp = strtol(valstr, NULL, 10); 141 if( ( valstr = params.get(android::CameraParameters::KEY_GPS_TIMESTAMP) ) != NULL [all...] |
OMXReprocess.cpp | 40 const char* valstr; local 55 valstr = buffers[0].format; 56 if (valstr != NULL) { 57 if(strcmp(valstr, android::CameraParameters::PIXEL_FORMAT_YUV420SP) == 0) { 60 } else if (strcmp(valstr, android::CameraParameters::PIXEL_FORMAT_BAYER_RGGB) == 0) { 63 } else if (strcmp(valstr, android::CameraParameters::PIXEL_FORMAT_YUV422I) == 0) {
|
OMXCapture.cpp | 40 const char *valstr = NULL; local 73 if ((valstr = params.getPictureFormat()) != NULL) { 74 if (strcmp(valstr, android::CameraParameters::PIXEL_FORMAT_YUV422I) == 0) { 78 } else if(strcmp(valstr, android::CameraParameters::PIXEL_FORMAT_YUV420SP) == 0) { 82 } else if(strcmp(valstr, android::CameraParameters::PIXEL_FORMAT_RGB565) == 0) { 86 } else if (strcmp(valstr, android::CameraParameters::PIXEL_FORMAT_JPEG) == 0) { 91 } else if (strcmp(valstr, TICameraParameters::PIXEL_FORMAT_JPS) == 0) { 96 } else if (strcmp(valstr, TICameraParameters::PIXEL_FORMAT_MPO) == 0) { 101 } else if (strcmp(valstr, android::CameraParameters::PIXEL_FORMAT_BAYER_RGGB) == 0) { 122 valstr = params.get(TICameraParameters::KEY_CAP_MODE) [all...] |
OMXCameraAdapter.cpp | 521 void OMXCameraAdapter::setParamS3D(OMX_U32 port, const char *valstr) 528 if (valstr != NULL) 530 if (strcmp(valstr, TICameraParameters::S3D_TB_FULL) == 0) 534 else if (strcmp(valstr, TICameraParameters::S3D_SS_FULL) == 0) 538 else if (strcmp(valstr, TICameraParameters::S3D_TB_SUBSAMPLED) == 0) 542 else if (strcmp(valstr, TICameraParameters::S3D_SS_SUBSAMPLED) == 0) 567 const char *valstr = NULL; local 574 if ( (valstr = params.getPreviewFormat()) != NULL ) { 575 if(strcmp(valstr, android::CameraParameters::PIXEL_FORMAT_YUV420SP) == 0 || 576 strcmp(valstr, android::CameraParameters::PIXEL_FORMAT_YUV420P) == 0 | 801 const char *valstr = NULL; local 3596 const char *valstr = NULL; local [all...] |
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/ |
OMXAlgo.cpp | 40 const char *valstr = NULL; local 47 if ( (valstr = params.get(TICameraParameters::KEY_CAP_MODE)) != NULL ) 49 if (strcmp(valstr, (const char *) TICameraParameters::HIGH_PERFORMANCE_MODE) == 0) 53 else if (strcmp(valstr, (const char *) TICameraParameters::HIGH_QUALITY_MODE) == 0) 57 else if (strcmp(valstr, (const char *) TICameraParameters::HIGH_QUALITY_ZSL_MODE) == 0) 61 else if (strcmp(valstr, (const char *) TICameraParameters::VIDEO_MODE) == 0) 89 if ( (valstr = params.get(TICameraParameters::KEY_IPP)) != NULL ) 91 if (strcmp(valstr, (const char *) TICameraParameters::IPP_LDCNSF) == 0) 95 else if (strcmp(valstr, (const char *) TICameraParameters::IPP_LDC) == 0) 99 else if (strcmp(valstr, (const char *) TICameraParameters::IPP_NSF) == 0 640 const char* valstr = NULL; local [all...] |
OMXExif.cpp | 38 const char *valstr = NULL; local 43 if( ( valstr = params.get(CameraParameters::KEY_GPS_LATITUDE) ) != NULL ) 45 gpsPos = strtod(valstr, NULL); 75 if( ( valstr = params.get(CameraParameters::KEY_GPS_LONGITUDE) ) != NULL ) 77 gpsPos = strtod(valstr, NULL); 107 if( ( valstr = params.get(CameraParameters::KEY_GPS_ALTITUDE) ) != NULL ) 109 gpsPos = strtod(valstr, NULL); 123 if( (valstr = params.get(CameraParameters::KEY_GPS_TIMESTAMP)) != NULL ) 125 long gpsTimestamp = strtol(valstr, NULL, 10); 144 if( ( valstr = params.get(CameraParameters::KEY_GPS_TIMESTAMP) ) != NULL [all...] |
OMXCapture.cpp | 42 const char *valstr = NULL; local 66 if ((valstr = params.getPictureFormat()) != NULL) { 67 if (strcmp(valstr, (const char *) CameraParameters::PIXEL_FORMAT_YUV422I) == 0) { 71 } else if(strcmp(valstr, (const char *) CameraParameters::PIXEL_FORMAT_YUV420SP) == 0) { 75 } else if(strcmp(valstr, (const char *) CameraParameters::PIXEL_FORMAT_RGB565) == 0) { 79 } else if (strcmp(valstr, (const char *) CameraParameters::PIXEL_FORMAT_JPEG) == 0) { 84 } else if (strcmp(valstr, (const char *) TICameraParameters::PIXEL_FORMAT_JPS) == 0) { 89 } else if (strcmp(valstr, (const char *) TICameraParameters::PIXEL_FORMAT_MPO) == 0) { 94 } else if (strcmp(valstr, (const char *) TICameraParameters::PIXEL_FORMAT_RAW) == 0) { 112 valstr = params.get(TICameraParameters::KEY_CAP_MODE) [all...] |
OMXCameraAdapter.cpp | 425 const char *valstr = NULL; local 433 if ( (valstr = params.getPreviewFormat()) != NULL ) 435 if(strcmp(valstr, (const char *) CameraParameters::PIXEL_FORMAT_YUV420SP) == 0 || 436 strcmp(valstr, (const char *) CameraParameters::PIXEL_FORMAT_YUV420P) == 0 || 437 strcmp(valstr, (const char *) CameraParameters::PIXEL_FORMAT_YUV422I) == 0) 442 else if(strcmp(valstr, (const char *) CameraParameters::PIXEL_FORMAT_RGB565) == 0) 540 valstr = params.get(TICameraParameters::KEY_RECORDING_HINT); 541 if (!valstr || (valstr && (strcmp(valstr, CameraParameters::FALSE)))) 640 const char *valstr = NULL; local 3085 const char *valstr = NULL; local [all...] |
/hardware/ti/omap4-aah/test/CameraHal/ |
camera_test_menu.cpp | 1378 const char *valstr = NULL; local 2543 const char *valstr = NULL; local [all...] |
/system/connectivity/shill/test-scripts/ |
flimflam.py | 48 valstr = "{" 50 valstr += "\n" + spacer + " " + \ 52 valstr += "\n" + spacer + "}" 53 return valstr 55 valstr = "[" 57 valstr += "\n" + spacer + " " + \ 59 valstr += "\n" + spacer + "]" 60 return valstr
|
/external/toybox/toys/pending/ |
dhcp.c | 389 char *option, *valstr, *grp, *tp; local 423 valstr = strtok(NULL, "\n"); 424 if (!valstr) error_exit("option %s has no value defined.\n", option); 425 dbg(" value : %-20s \n ", valstr); 430 convtmp = strtou32(valstr); 431 if (convtmp < 0) error_exit("Invalid/wrong formated number %s", valstr); 438 convtmp = strtou32(valstr); 439 if (convtmp < 0) error_exit("Invalid/malformed number %s", valstr); 446 convtmp = strtou32(valstr); 447 if (convtmp < 0) error_exit("Invalid/malformed number %s", valstr); [all...] |
dhcpd.c | 544 char *option, *valstr, *grp, *tp; local 579 if (!(valstr = strtok(NULL, " \t"))) { 583 dbg(" value : %-20s : ", valstr); 588 strtou32(valstr, &convtmp); 594 strtou32(valstr, &convtmp); 600 strtou32(valstr, &convtmp); 606 striptovar(valstr, options_list[count].val); 609 options_list[count].len = strlen(valstr); 610 options_list[count].val = strdup(valstr); 613 while(valstr){ [all...] |
/external/iputils/Modules/ |
pg3.c | 553 char name[16], valstr[32]; local 641 char *v = valstr; 644 len = strn_len(&buffer[i], sizeof(valstr)-1); 645 memset(valstr, 0, sizeof(valstr)); 646 strncpy(valstr, &buffer[i], len);
|
/device/generic/goldfish/camera/ |
EmulatedCamera.cpp | 220 const char* valstr = NULL; local 222 valstr = mParameters.get(EmulatedCamera::FACING_KEY); 223 if (valstr != NULL) { 224 if (strcmp(valstr, EmulatedCamera::FACING_FRONT) == 0) { 227 else if (strcmp(valstr, EmulatedCamera::FACING_BACK) == 0) { 234 valstr = mParameters.get(EmulatedCamera::ORIENTATION_KEY); 235 if (valstr != NULL) { 236 info->orientation = atoi(valstr); [all...] |