/hardware/qcom/display/msm8996/sdm/libs/utils/ |
D | debug.cpp | 42 int value = 0; in GetSimulationFlag() local 43 debug_.debug_handler_->GetProperty("sdm.composition_simulation", &value); in GetSimulationFlag() 45 return value; in GetSimulationFlag() 49 int value = 0; in GetHDMIResolution() local 50 debug_.debug_handler_->GetProperty("hw.hdmi.resolution", &value); in GetHDMIResolution() 52 return value; in GetHDMIResolution() 56 int value = IDLE_TIMEOUT_DEFAULT_MS; in GetIdleTimeoutMs() local 57 debug_.debug_handler_->GetProperty("sdm.idle_time", &value); in GetIdleTimeoutMs() 59 return UINT32(value); in GetIdleTimeoutMs() 63 int value = 0; in GetBootAnimLayerCount() local [all …]
|
/hardware/libhardware/tests/vehicle/ |
D | vehicle-hal-tool.c | 95 printf("Value type: STRING\n Size: %d\n", data->value.str_value.len); in print_property() 97 char *ascii_out = (char *) malloc((data->value.str_value.len + 1) * sizeof(char)); in print_property() 98 memcpy(ascii_out, data->value.str_value.data, data->value.str_value.len); in print_property() 99 ascii_out[data->value.str_value.len] = '\0'; in print_property() 103 printf("Value type: BYTES\n Size: %d", data->value.bytes_value.len); in print_property() 104 for (int i = 0; i < data->value.bytes_value.len; i++) { in print_property() 108 printf("%02X ", data->value.bytes_value.data[i]); in print_property() 113 printf("Value type: BOOLEAN\nValue: %d\n", data->value.boolean_value); in print_property() 117 printf("Value: %d\n", data->value.boolean_value); in print_property() 120 printf("Value type: INT64\nValue: %" PRId64 "\n", data->value.int64_value); in print_property() [all …]
|
/hardware/qcom/audio/msm8909/hal/audio_extn/ |
D | audio_extn.c | 94 char value[32]={0}; in audio_extn_customstereo_set_parameters() local 100 ret = str_parms_get_str(parms, AUDIO_PARAMETER_CUSTOM_STEREO, value, in audio_extn_customstereo_set_parameters() 101 sizeof(value)); in audio_extn_customstereo_set_parameters() 103 if (!strncmp("true", value, sizeof("true")) || atoi(value)) in audio_extn_customstereo_set_parameters() 165 char value[32] ={0}; in audio_extn_set_anc_parameters() local 169 ret = str_parms_get_str(parms, AUDIO_PARAMETER_KEY_ANC, value, in audio_extn_set_anc_parameters() 170 sizeof(value)); in audio_extn_set_anc_parameters() 172 if (strcmp(value, "true") == 0) in audio_extn_set_anc_parameters() 204 char value[32]; in audio_extn_set_fluence_parameters() local 209 value, sizeof(value)); in audio_extn_set_fluence_parameters() [all …]
|
D | source_track.c | 259 char *value = NULL; in parse_soundfocus_sourcetracking_keys() local 267 value = (char*)calloc(len, sizeof(char)); in parse_soundfocus_sourcetracking_keys() 268 if(value == NULL) { in parse_soundfocus_sourcetracking_keys() 276 value, len); in parse_soundfocus_sourcetracking_keys() 283 value, len); in parse_soundfocus_sourcetracking_keys() 290 value, len); in parse_soundfocus_sourcetracking_keys() 297 value, len); in parse_soundfocus_sourcetracking_keys() 304 value, len); in parse_soundfocus_sourcetracking_keys() 311 value, len); in parse_soundfocus_sourcetracking_keys() 318 value, len); in parse_soundfocus_sourcetracking_keys() [all …]
|
D | fm.c | 68 static int32_t fm_set_volume(struct audio_device *adev, float value) in fm_set_volume() argument 75 ALOGD("%s: (%f)\n", __func__, value); in fm_set_volume() 77 if (value < 0.0) { in fm_set_volume() 78 ALOGW("%s: (%f) Under 0.0, assuming 0.0\n", __func__, value); in fm_set_volume() 79 value = 0.0; in fm_set_volume() 80 } else if (value > 1.0) { in fm_set_volume() 81 ALOGW("%s: (%f) Over 1.0, assuming 1.0\n", __func__, value); in fm_set_volume() 82 value = 1.0; in fm_set_volume() 84 vol = lrint((value * 0x2000) + 0.5); in fm_set_volume() 85 fmmod.fm_volume = value; in fm_set_volume() [all …]
|
D | hfp.c | 89 static int32_t hfp_set_volume(struct audio_device *adev, float value) in hfp_set_volume() argument 96 ALOGD("%s: (%f)\n", __func__, value); in hfp_set_volume() 98 hfpmod.hfp_volume = value; in hfp_set_volume() 99 if (value < 0.0) { in hfp_set_volume() 100 ALOGW("%s: (%f) Under 0.0, assuming 0.0\n", __func__, value); in hfp_set_volume() 101 value = 0.0; in hfp_set_volume() 103 value = ((value > 15.000000) ? 1.0 : (value / 15)); in hfp_set_volume() 104 ALOGW("%s: Volume brought with in range (%f)\n", __func__, value); in hfp_set_volume() 106 vol = lrint((value * 0x2000) + 0.5); in hfp_set_volume() 312 char value[32]={0}; in audio_extn_hfp_set_parameters() local [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/libwebm/ |
D | mkvmuxerutil.cpp | 32 int32 GetCodedUIntSize(uint64 value) { in GetCodedUIntSize() argument 33 if (value < 0x000000000000007FULL) in GetCodedUIntSize() 35 else if (value < 0x0000000000003FFFULL) in GetCodedUIntSize() 37 else if (value < 0x00000000001FFFFFULL) in GetCodedUIntSize() 39 else if (value < 0x000000000FFFFFFFULL) in GetCodedUIntSize() 41 else if (value < 0x00000007FFFFFFFFULL) in GetCodedUIntSize() 43 else if (value < 0x000003FFFFFFFFFFULL) in GetCodedUIntSize() 45 else if (value < 0x0001FFFFFFFFFFFFULL) in GetCodedUIntSize() 50 int32 GetUIntSize(uint64 value) { in GetUIntSize() argument 51 if (value < 0x0000000000000100ULL) in GetUIntSize() [all …]
|
D | mkvmuxerutil.hpp | 22 int32 SerializeInt(IMkvWriter* writer, int64 value, int32 size); 25 int32 GetUIntSize(uint64 value); 26 int32 GetCodedUIntSize(uint64 value); 27 uint64 EbmlMasterElementSize(uint64 type, uint64 value); 28 uint64 EbmlElementSize(uint64 type, int64 value); 29 uint64 EbmlElementSize(uint64 type, uint64 value); 30 uint64 EbmlElementSize(uint64 type, float value); 31 uint64 EbmlElementSize(uint64 type, const char* value); 32 uint64 EbmlElementSize(uint64 type, const uint8* value, uint64 size); 37 int32 WriteUInt(IMkvWriter* writer, uint64 value); [all …]
|
/hardware/intel/common/libva/test/basic/ |
D | test_vaSurfaceAttrib.c | 76 if ((attrib[0].value & VA_RT_FORMAT_YUV420) == 0) { in test() 81 if ((attrib[1].value & VA_RC_VBR) == 0) { in test() 87 attrib[0].value = VA_RT_FORMAT_YUV420; /* set to desired RT format */ in test() 88 attrib[1].value = VA_RC_VBR; /* set to desired RC mode */ in test() 100 if (attrib_list[0].value.value.i & VA_SURFACE_ATTRIB_MEM_TYPE_VA) in test() 102 if (attrib_list[0].value.value.i & VA_SURFACE_ATTRIB_MEM_TYPE_V4L2) in test() 104 if (attrib_list[0].value.value.i & VA_SURFACE_ATTRIB_MEM_TYPE_USER_PTR) in test() 106 if (attrib_list[0].value.value.i & VA_SURFACE_ATTRIB_MEM_TYPE_ANDROID_GRALLOC) in test() 108 if (attrib_list[0].value.value.i & VA_SURFACE_ATTRIB_MEM_TYPE_ANDROID_ION) in test() 110 if (attrib_list[0].value.value.i & VA_SURFACE_ATTRIB_MEM_TYPE_KERNEL_DRM) in test() [all …]
|
/hardware/invensense/6515/libsensors_iio/ |
D | SensorBase.cpp | 59 char value[PROPERTY_VALUE_MAX]; in SensorBase() local 60 property_get("invn.hal.verbose.basic", value, "0"); in SensorBase() 61 if (atoi(value)) { in SensorBase() 64 property_get("invn.hal.verbose.extra", value, "0"); in SensorBase() 65 if (atoi(value)) { in SensorBase() 68 property_get("invn.hal.verbose.sysfs", value, "0"); in SensorBase() 69 if (atoi(value)) { in SensorBase() 72 property_get("invn.hal.verbose.engineering", value, "0"); in SensorBase() 73 if (atoi(value)) { in SensorBase() 76 property_get("invn.hal.entry.function", value, "0"); in SensorBase() [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/at42qt1070/ |
D | at42qt1070.cxx | 161 uint8_t value, ave; in getAVE() local 167 value = readByte(REG_AVE0 + key); in getAVE() 168 ave = (value & 0xFC) >> 2; in getAVE() 176 uint8_t value; in setAVE() local 195 value = readByte(REG_AVE0 + key); in setAVE() 196 value = value & 0x03; in setAVE() 197 value = value | (ave << 2); in setAVE() 198 writeByte(REG_AVE0 + key, value); in setAVE() 206 uint8_t value, aks; in getAKSGroup() local 212 value = readByte(REG_AVE0 + key); in getAKSGroup() [all …]
|
/hardware/invensense/65xx/libsensors_iio/ |
D | SensorBase.cpp | 57 char value[PROPERTY_VALUE_MAX]; in SensorBase() local 58 property_get("invn.hal.verbose.basic", value, "0"); in SensorBase() 59 if (atoi(value)) { in SensorBase() 62 property_get("invn.hal.verbose.extra", value, "0"); in SensorBase() 63 if (atoi(value)) { in SensorBase() 66 property_get("invn.hal.verbose.sysfs", value, "0"); in SensorBase() 67 if (atoi(value)) { in SensorBase() 70 property_get("invn.hal.verbose.engineering", value, "0"); in SensorBase() 71 if (atoi(value)) { in SensorBase() 74 property_get("invn.hal.entry.function", value, "0"); in SensorBase() [all …]
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
D | alsa_mixer.c | 137 unsigned max = mixer->ctl[n].info->value.enumerated.items; in mixer_close() 201 char **enames = calloc(ei->value.enumerated.items, sizeof(char*)); in mixer_open() 205 for (m = 0; m < ei->value.enumerated.items; m++) { in mixer_open() 208 tmp.value.enumerated.item = m; in mixer_open() 211 enames[m] = strdup(tmp.value.enumerated.name); in mixer_open() 258 ALOGV(ei->value.integer.step ? in mixer_dump() 260 ei->value.integer.min, in mixer_dump() 261 ei->value.integer.max, in mixer_dump() 262 ei->value.integer.step); in mixer_dump() 265 ALOGV(ei->value.integer64.step ? in mixer_dump() [all …]
|
/hardware/intel/common/libmix/mix_video/src/ |
D | mixdisplay.c | 26 static void mix_value_display_init (GValue * value); 27 static void mix_value_display_free (GValue * value); 30 static gpointer mix_value_display_peek_pointer (const GValue * value); 31 static gchar *mix_value_display_collect (GValue * value, 35 static gchar *mix_value_display_lcopy (const GValue * value, 237 mix_value_display_init (GValue * value) in mix_value_display_init() argument 239 value->data[0].v_pointer = NULL; in mix_value_display_init() 243 mix_value_display_free (GValue * value) in mix_value_display_free() argument 245 if (value->data[0].v_pointer) in mix_value_display_free() 247 mix_display_unref (MIX_DISPLAY_CAST (value->data[0].v_pointer)); in mix_value_display_free() [all …]
|
/hardware/bsp/intel/peripheral/libupm/examples/python/ |
D | tp401.py | 27 def airQuality(value): argument 28 if(value < 50): return "Fresh Air" 29 if(value < 200): return "Normal Indoor Air" 30 if(value < 400): return "Low Pollution" 31 if(value < 600): return "High Pollution - Action Recommended" 48 value = airSensor.getSample() variable 51 print "raw: %4d" % value , " ppm: %5.2f " % ppm , airQuality(value)
|
/hardware/qcom/audio/hal/audio_extn/ |
D | hfp.c | 70 static int32_t hfp_set_volume(struct audio_device *adev, float value) in hfp_set_volume() argument 81 ALOGD("%s: (%f)\n", __func__, value); in hfp_set_volume() 83 if (value < 0.0) { in hfp_set_volume() 84 ALOGW("%s: (%f) Under 0.0, assuming 0.0\n", __func__, value); in hfp_set_volume() 85 value = 0.0; in hfp_set_volume() 87 value = ((value > 15.000000) ? 1.0 : (value / 15)); in hfp_set_volume() 88 ALOGW("%s: Volume brought with in range (%f)\n", __func__, value); in hfp_set_volume() 90 vol = lrint((value * 0x2000) + 0.5); in hfp_set_volume() 91 hfpmod.hfp_volume = value; in hfp_set_volume() 286 char value[32]={0}; in audio_extn_hfp_set_parameters() local [all …]
|
/hardware/qcom/display/msm8996/sdm/include/utils/ |
D | constants.h | 53 #define SET_BIT(value, bit) (value |= (1 << (bit))) argument 54 #define CLEAR_BIT(value, bit) (value &= (~(1 << (bit)))) argument 55 #define IS_BIT_SET(value, bit) (value & (1 << (bit))) argument 62 #define ROUND_UP_ALIGN_DOWN(value, a) FLOAT(FloorToMultipleOf(UINT32(value + 0.5f), UINT32(a))) argument 63 #define ROUND_UP_ALIGN_UP(value, a) FLOAT(CeilToMultipleOf(UINT32(value + 0.5f), UINT32(a))) argument 81 inline T1 FloorToMultipleOf(const T1 &value, const T2 &factor) { in FloorToMultipleOf() argument 82 return (T1)(value & (~(factor - 1))); in FloorToMultipleOf() 86 inline T1 CeilToMultipleOf(const T1 &value, const T2 &factor) { in CeilToMultipleOf() argument 87 return (T1)((value + (factor - 1)) & (~(factor - 1))); in CeilToMultipleOf()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/ |
D | vp9_common.h | 30 #define ROUND_POWER_OF_TWO(value, n) \ argument 31 (((value) + (1 << ((n) - 1))) >> (n)) 33 #define ALIGN_POWER_OF_TWO(value, n) \ argument 34 (((value) + ((1 << (n)) - 1)) & ~((1 << (n)) - 1)) 55 static INLINE int clamp(int value, int low, int high) { in clamp() argument 56 return value < low ? low : (value > high ? high : value); in clamp() 59 static INLINE double fclamp(double value, double low, double high) { in fclamp() argument 60 return value < low ? low : (value > high ? high : value); in fclamp()
|
/hardware/bsp/intel/peripheral/libupm/examples/javascript/ |
D | tp401.js | 29 function airQuality(value) argument 31 if(value < 50) return "Fresh Air"; 32 if(value < 200) return "Normal Indoor Air"; 33 if(value < 400) return "Low Pollution"; 34 if(value < 600) return "High Pollution - Action Recommended"; 41 var value = airSensor.getSample(); 45 …console.log("raw: " + value + " ppm: " + (" " + ppm.toFixed(2)).substring(-5, 5) + " " + airQual…
|
/hardware/qcom/display/msm8909/libhwcomposer/ |
D | hwc_qdcm.cpp | 168 int value = 0; in qdcmSaveModeV2() local 171 (const void *)¶ms, (void *)&value); in qdcmSaveModeV2() 173 out->writeInt32(value); in qdcmSaveModeV2() 190 params.pa.data.value = in->readInt32(); in qdcmSetPaConfig() 208 struct disp_pa_config value; in qdcmGetPaConfig() local 211 (const void *)¶ms, (void *)&value); in qdcmGetPaConfig() 213 out->writeInt32(value.ops); in qdcmGetPaConfig() 214 out->writeInt32(value.data.hue); in qdcmGetPaConfig() 215 out->writeInt32(value.data.saturation); in qdcmGetPaConfig() 216 out->writeInt32(value.data.value); in qdcmGetPaConfig() [all …]
|
/hardware/bsp/intel/peripheral/libupm/examples/c++/ |
D | tp401.cxx | 35 airQuality(uint16_t value) in airQuality() argument 37 if(value < 50) return "Fresh Air"; in airQuality() 38 if(value < 200) return "Normal Indoor Air"; in airQuality() 39 if(value < 400) return "Low Pollution"; in airQuality() 40 if(value < 600) return "High Pollution - Action Recommended"; in airQuality() 61 uint16_t value = airSensor->getSample(); // Read raw value in main() local 63 fprintf(stdout, "raw: %4d ppm: %5.2f %s\n", value, ppm, airQuality(value).c_str()); in main()
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
D | cpp_bindings.h | 196 int put_u8(int attribute, uint8_t value) { in put_u8() argument 197 return nla_put(mMsg, attribute, sizeof(value), &value); in put_u8() 199 int put_u16(int attribute, uint16_t value) { in put_u16() argument 200 return nla_put(mMsg, attribute, sizeof(value), &value); in put_u16() 202 int put_u32(int attribute, uint32_t value) { in put_u32() argument 203 return nla_put(mMsg, attribute, sizeof(value), &value); in put_u32() 206 int put_u64(int attribute, uint64_t value) { in put_u64() argument 207 return nla_put(mMsg, attribute, sizeof(value), &value); in put_u64() 210 int put_s8(int attribute, s8 value) { in put_s8() argument 211 return nla_put(mMsg, attribute, sizeof(int8_t), &value); in put_s8() [all …]
|
/hardware/bsp/intel/peripheral/libupm/examples/java/ |
D | TP401Sample.java | 35 private static String airQuality(int value) { in airQuality() argument 36 if (value < 50) in airQuality() 38 if (value < 200) in airQuality() 40 if (value < 400) in airQuality() 42 if (value < 600) in airQuality() 64 int value = airSensor.getSample(); // Read raw value in main() local 68 System.out.println("raw: " + value + " ppm: " + ppm + " " + airQuality(value)); in main()
|
/hardware/bsp/intel/peripheral/libupm/src/mma7455/ |
D | mma7455.cxx | 76 xyz.value.x = xyz.value.y = xyz.value.z = 0; in calibrate() 79 error = readData (&xyz.value.x, &xyz.value.y, &xyz.value.z); in calibrate() 84 xyz.value.x += 2 * -xyz.value.x; in calibrate() 85 xyz.value.y += 2 * -xyz.value.y; in calibrate() 86 xyz.value.z += 2 * -(xyz.value.z - 64); in calibrate() 132 *ptrX = xyz.value.x; in readData() 133 *ptrY = xyz.value.y; in readData() 134 *ptrZ = xyz.value.z; in readData()
|
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/vc1/parser/ |
D | vc1parse_huffman.c | 22 int32_t i, j, maxBits, loopCount, totalBits, value; in vc1_DecodeHuffmanOne() local 33 value = 0; in vc1_DecodeHuffmanOne() 37 value = (value << 1) | tempValue; in vc1_DecodeHuffmanOne() 43 if (value == *pTable++) in vc1_DecodeHuffmanOne() 64 int32_t i, j, maxBits, loopCount, totalBits, value; in vc1_DecodeHuffmanPair() local 75 value = 0; in vc1_DecodeHuffmanPair() 79 value = (value << 1) | tempValue; in vc1_DecodeHuffmanPair() 85 if (value == *pTable++) in vc1_DecodeHuffmanPair()
|