Home
last modified time | relevance | path

Searched refs:arr (Results 1 – 12 of 12) sorted by relevance

/device/moto/shamu/camera/QCamera/HAL/core/src/
DQCameraParameters.cpp399 int arr[5] = {-2000, -2000, -2000, -2000, 0}; in getMeteringAreaCenter() local
400 parseNDimVector(p, arr, 5); //p = "(x1, y1, x2, y2, weight)" in getMeteringAreaCenter()
401 *x = (arr[0] + arr[2])/2; //center_x = (x1+x2)/2 in getMeteringAreaCenter()
402 *y = (arr[1] + arr[3])/2; //center_y = (y1+y2)/2 in getMeteringAreaCenter()
DQCameraHWI_Parm.cpp390 static int attr_lookup(const str_map arr[], int len, const char *name) in attr_lookup() argument
394 if (!strcmp(arr[i].desc, name)) in attr_lookup()
395 return arr[i].val; in attr_lookup()
605 static String8 create_str(int16_t *arr, int length){ in create_str() argument
610 snprintf(buffer, sizeof(buffer), "%d", arr[0]); in create_str()
615 snprintf(buffer, sizeof(buffer), ",%d",arr[i]); in create_str()
/device/google/contexthub/util/nanotool/
Dcontexthub.h33 #define ARRAY_LEN(arr) (sizeof(arr) / sizeof(arr[0])) argument
/device/moto/shamu/camera/QCamera2/HAL3/
DQCamera3HWI.h200 static int8_t lookupHalName(const QCameraMap arr[],
202 static int32_t lookupFwkName(const QCameraMap arr[],
204 static cam_cds_mode_type_t lookupProp(const QCameraPropMap arr[],
DQCamera3HWI.cpp5476 int32_t QCamera3HardwareInterface::lookupFwkName(const QCameraMap arr[], in lookupFwkName() argument
5481 if (arr[i].hal_name == hal_name) in lookupFwkName()
5482 return arr[i].fwk_name; in lookupFwkName()
5507 int8_t QCamera3HardwareInterface::lookupHalName(const QCameraMap arr[], in lookupHalName() argument
5511 if (arr[i].fwk_name == fwk_name) in lookupHalName()
5512 return arr[i].hal_name; in lookupHalName()
5531 cam_cds_mode_type_t QCamera3HardwareInterface::lookupProp(const QCameraPropMap arr[], in lookupProp() argument
5536 if (!strcmp(arr[i].desc, name)) { in lookupProp()
5537 return arr[i].val; in lookupProp()
/device/google/dragon/recovery/updater/
Dvboot_interface.c492 #define ARRAY_SIZE(arr) (sizeof(arr)/sizeof(arr[0])) argument
/device/moto/shamu/camera/QCamera2/HAL/
DQCameraParameters.h752 int lookupAttr(const QCameraMap arr[], int len, const char *name);
753 const char *lookupNameByValue(const QCameraMap arr[], int len, int value);
DQCameraParameters.cpp1061 int QCameraParameters::lookupAttr(const QCameraMap arr[], int len, const char *name) in lookupAttr() argument
1065 if (!strcmp(arr[i].desc, name)) in lookupAttr()
1066 return arr[i].val; in lookupAttr()
1084 const char *QCameraParameters::lookupNameByValue(const QCameraMap arr[], int len, int value) in lookupNameByValue() argument
1087 if (arr[i].val == value) { in lookupNameByValue()
1088 return arr[i].desc; in lookupNameByValue()
/device/huawei/angler/camera/QCamera2/HAL3/
DQCamera3HWI.cpp4107 template <typename halType, class mapType> int lookupFwkName(const mapType *arr, in lookupFwkName() argument
4112 if (arr[i].hal_name == hal_name) { in lookupFwkName()
4113 return arr[i].fwk_name; in lookupFwkName()
4139 template <typename fwkType, class mapType> int lookupHalName(const mapType *arr, in lookupHalName() argument
4143 if (arr[i].fwk_name == fwk_name) { in lookupHalName()
4144 return arr[i].hal_name; in lookupHalName()
4165 template <class mapType> cam_cds_mode_type_t lookupProp(const mapType *arr, in lookupProp() argument
4170 if (!strcmp(arr[i].desc, name)) { in lookupProp()
4171 return arr[i].val; in lookupProp()
/device/lge/bullhead/camera/QCamera2/HAL3/
DQCamera3HWI.cpp4104 template <typename halType, class mapType> int lookupFwkName(const mapType *arr, in lookupFwkName() argument
4109 if (arr[i].hal_name == hal_name) { in lookupFwkName()
4110 return arr[i].fwk_name; in lookupFwkName()
4136 template <typename fwkType, class mapType> int lookupHalName(const mapType *arr, in lookupHalName() argument
4140 if (arr[i].fwk_name == fwk_name) { in lookupHalName()
4141 return arr[i].hal_name; in lookupHalName()
4162 template <class mapType> cam_cds_mode_type_t lookupProp(const mapType *arr, in lookupProp() argument
4167 if (!strcmp(arr[i].desc, name)) { in lookupProp()
4168 return arr[i].val; in lookupProp()
/device/lge/bullhead/camera/QCamera2/HAL/
DQCameraParameters.cpp1254 template <class mapType> int lookupAttr(const mapType *arr, in lookupAttr() argument
1259 if (!strcmp(arr[i].desc, name)) in lookupAttr()
1260 return arr[i].val; in lookupAttr()
1278 template <class mapType> const char *lookupNameByValue(const mapType *arr, in lookupNameByValue() argument
1282 if (arr[i].val == value) { in lookupNameByValue()
1283 return arr[i].desc; in lookupNameByValue()
/device/huawei/angler/camera/QCamera2/HAL/
DQCameraParameters.cpp1254 template <class mapType> int lookupAttr(const mapType *arr, in lookupAttr() argument
1259 if (!strcmp(arr[i].desc, name)) in lookupAttr()
1260 return arr[i].val; in lookupAttr()
1278 template <class mapType> const char *lookupNameByValue(const mapType *arr, in lookupNameByValue() argument
1282 if (arr[i].val == value) { in lookupNameByValue()
1283 return arr[i].desc; in lookupNameByValue()