/hardware/bsp/intel/peripheral/libupm/examples/python/ |
H A D | tp401.py | 26 # Give a qualitative meaning to the value from the sensor 27 def airQuality(value): 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() 51 print "raw: %4d" % value , " ppm: %5.2f " % ppm , airQuality(value)
|
H A D | grovebutton.py | 31 print button.name(), ' value is ', button.value()
|
/hardware/qcom/display/msm8996/sdm/libs/utils/ |
H A D | debug.cpp | 42 int value = 0; local 43 debug_.debug_handler_->GetProperty("sdm.composition_simulation", &value); 45 return value; 49 int value = 0; local 50 debug_.debug_handler_->GetProperty("hw.hdmi.resolution", &value); 52 return value; 56 int value = IDLE_TIMEOUT_DEFAULT_MS; local 57 debug_.debug_handler_->GetProperty("sdm.idle_time", &value); 59 return UINT32(value); 63 int value local 70 int value = 0; local 77 int value = 0; local 84 int value = -1; local 103 int value = 0; local 110 int value = 0; local 117 int value = 0; local 124 int value = 0; local 143 GetProperty(const char* property_name, char* value) argument [all...] |
/hardware/bsp/intel/peripheral/libmraa/examples/ |
H A D | cycle-pwm3.c | 42 float value = 0.0f; local 45 value = value + 0.01f; 46 mraa_pwm_write(pwm, value); 48 if (value >= 1.0f) { 49 value = 0.0f;
|
/hardware/bsp/intel/peripheral/libmraa/examples/python/ |
H A D | cycle-pwm3.py | 31 value= 0.0 variable 34 x.write(value) 36 value = value + 0.01 variable 37 if value >= 1: 38 value = 0.0 variable
|
/hardware/bsp/intel/peripheral/libupm/examples/c++/ |
H A D | tp401.cxx | 33 // Give a qualitative meaning to the value from the sensor 35 airQuality(uint16_t value) argument 37 if(value < 50) return "Fresh Air"; 38 if(value < 200) return "Normal Indoor Air"; 39 if(value < 400) return "Low Pollution"; 40 if(value < 600) return "High Pollution - Action Recommended"; 61 uint16_t value = airSensor->getSample(); // Read raw value local 63 fprintf(stdout, "raw: %4d ppm: %5.2f %s\n", value, ppm, airQuality(value) [all...] |
/hardware/bsp/intel/peripheral/libupm/examples/javascript/ |
H A D | tp401.js | 28 //give a qualitative meaning to the value from the sensor 29 function airQuality(value) 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) + " " + airQuality(value));
|
H A D | grovebutton.js | 33 console.log(button.name() + " value is " + button.value());
|
/hardware/bsp/intel/peripheral/libmraa/examples/java/ |
H A D | CyclePwm3.java | 46 float value = 0; 48 value += 0.01; 49 pwm.write(value); 51 if (value >= 1) { 52 value = 0;
|
/hardware/libhardware/tests/vehicle/ |
H A D | vehicle-hal-tool.c | 36 "Depending on the type pass the value:\n" 56 "with preset value set to 3.\n\n" 95 printf("Value type: STRING\n Size: %d\n", data->value.str_value.len); 97 char *ascii_out = (char *) malloc((data->value.str_value.len + 1) * sizeof(char)); 98 memcpy(ascii_out, data->value.str_value.data, data->value.str_value.len); 99 ascii_out[data->value.str_value.len] = '\0'; 103 printf("Value type: BYTES\n Size: %d", data->value.bytes_value.len); 104 for (int i = 0; i < data->value.bytes_value.len; i++) { 108 printf("%02X ", data->value 252 float value = 0.0; local 447 char value[100] = ""; local [all...] |
/hardware/bsp/intel/peripheral/libmraa/examples/c++/ |
H A D | Pwm3-cycle.cpp | 55 float value = 0.0f; local 57 value = value + 0.01f; 58 pwm->write(value); 60 if (value >= 1.0f) { 61 value = 0.0f;
|
/hardware/bsp/intel/peripheral/libupm/examples/java/ |
H A D | TP401Sample.java | 35 private static String airQuality(int value) { argument 36 if (value < 50) 38 if (value < 200) 40 if (value < 400) 42 if (value < 600) 64 int value = airSensor.getSample(); // Read raw value 68 System.out.println("raw: " + value + " ppm: " + ppm + " " + airQuality(value));
|
H A D | BISS0001Sample.java | 42 boolean value = motion.value(); 44 if(value)
|
H A D | GUVAS12DSample.java | 45 float value = volts.value(GUVAS12D_AREF, SAMPLES_PER_QUERY); 48 + ", Voltage value (higher means more UV): " + value);
|
H A D | GroveLightSample.java | 41 float value = gl.value(); 43 System.out.println("raw value: " + raw_value); 44 System.out.println("value: " + value);
|
/hardware/qcom/display/msm8084/libqdutils/ |
H A D | cb_swap_rect.cpp | 39 void cb_swap_rect::setSwapRectFeature_on( bool value){ argument 40 swap_rect_feature_on = value ;
|
/hardware/qcom/display/msm8226/libqdutils/ |
H A D | cb_swap_rect.cpp | 39 void cb_swap_rect::setSwapRectFeature_on( bool value){ argument 40 swap_rect_feature_on = value ;
|
/hardware/qcom/display/msm8909/libqdutils/ |
H A D | cb_swap_rect.cpp | 39 void cb_swap_rect::setSwapRectFeature_on( bool value){ argument 40 swap_rect_feature_on = value ;
|
/hardware/qcom/display/msm8994/libqdutils/ |
H A D | cb_swap_rect.cpp | 39 void cb_swap_rect::setSwapRectFeature_on( bool value){ argument 40 swap_rect_feature_on = value ;
|
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/vc1/parser/ |
H A D | vc1parse_huffman.c | 22 int32_t i, j, maxBits, loopCount, totalBits, value;
local 33 value = 0;
37 value = (value << 1) | tempValue;
43 if (value == *pTable++)
64 int32_t i, j, maxBits, loopCount, totalBits, value;
local 75 value = 0;
79 value = (value << 1) | tempValue;
85 if (value [all...] |
/hardware/intel/common/libva/test/basic/ |
H A D | test_vaSurfaceAttrib.c | 76 if ((attrib[0].value & VA_RT_FORMAT_YUV420) == 0) { 81 if ((attrib[1].value & VA_RC_VBR) == 0) { 87 attrib[0].value = VA_RT_FORMAT_YUV420; /* set to desired RT format */ 88 attrib[1].value = VA_RC_VBR; /* set to desired RC mode */ 100 if (attrib_list[0].value.value.i & VA_SURFACE_ATTRIB_MEM_TYPE_VA) 102 if (attrib_list[0].value.value.i & VA_SURFACE_ATTRIB_MEM_TYPE_V4L2) 104 if (attrib_list[0].value.value [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/ |
H A D | vp9_read_bit_buffer.c | 31 int value = 0, bit; local 33 value |= vp9_rb_read_bit(rb) << bit; 34 return value; 39 const int value = vp9_rb_read_literal(rb, bits); local 40 return vp9_rb_read_bit(rb) ? -value : value;
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/ |
H A D | vp9_common.h | 30 #define ROUND_POWER_OF_TWO(value, n) \ 31 (((value) + (1 << ((n) - 1))) >> (n)) 33 #define ALIGN_POWER_OF_TWO(value, n) \ 34 (((value) + ((1 << (n)) - 1)) & ~((1 << (n)) - 1)) 55 static INLINE int clamp(int value, int low, int high) { argument 56 return value < low ? low : (value > high ? high : value); 59 static INLINE double fclamp(double value, double low, double high) { argument 60 return value < lo [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/libwebm/ |
H A D | mkvmuxerutil.hpp | 21 // Writes out |value| in Big Endian order. Returns 0 on success. 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, uint6 [all...] |
/hardware/qcom/audio/msm8909/hal/audio_extn/ |
H A D | audio_extn.c | 94 char value[32]={0}; local 100 ret = str_parms_get_str(parms, AUDIO_PARAMETER_CUSTOM_STEREO, value, 101 sizeof(value)); 103 if (!strncmp("true", value, sizeof("true")) || atoi(value)) 165 char value[32] ={0}; local 169 ret = str_parms_get_str(parms, AUDIO_PARAMETER_KEY_ANC, value, 170 sizeof(value)); 172 if (strcmp(value, "true") == 0) 204 char value[3 local 233 char value[256] = {0}; local 377 char value[32]={0}; local 394 char value[32]={0}; local 450 char value[32]={0}; local 477 char value[32] = {0}; local 532 char value[32] = {0}; local 607 char value[32]; local [all...] |