Home
last modified time | relevance | path

Searched refs:rv (Results 1 – 25 of 60) sorted by relevance

123

/hardware/ti/omap4-aah/camera/
DCameraHal_Module.cpp96 int rv = -EINVAL; in camera_set_preview_window() local
100 return rv; in camera_set_preview_window()
104 rv = gCameraHals[ti_dev->cameraid]->setPreviewWindow(window); in camera_set_preview_window()
106 return rv; in camera_set_preview_window()
131 int rv = -EINVAL; in camera_set_buffer_source() local
135 return rv; in camera_set_buffer_source()
139 rv = gCameraHals[ti_dev->cameraid]->setBufferSource(tapin, tapout); in camera_set_buffer_source()
141 return rv; in camera_set_buffer_source()
150 int rv = -EINVAL; in camera_release_buffer_source() local
154 return rv; in camera_release_buffer_source()
[all …]
/hardware/ti/omap4xxx/camera/
DCameraHal_Module.cpp78 int rv = -EINVAL; in camera_set_preview_window() local
84 return rv; in camera_set_preview_window()
88 rv = gCameraHals[ti_dev->cameraid]->setPreviewWindow(window); in camera_set_preview_window()
90 return rv; in camera_set_preview_window()
156 int rv = -EINVAL; in camera_start_preview() local
162 return rv; in camera_start_preview()
166 rv = gCameraHals[ti_dev->cameraid]->startPreview(); in camera_start_preview()
168 return rv; in camera_start_preview()
187 int rv = -EINVAL; in camera_preview_enabled() local
193 return rv; in camera_preview_enabled()
[all …]
/hardware/bsp/intel/peripheral/libupm/examples/python/
Dzfm20-register.py84 rv = myFingerprintSensor.image2Tz(1) variable
86 if (rv != upmZfm20.ZFM20.ERR_OK):
87 print "Image conversion failed with error code %d" % rv
105 rv = myFingerprintSensor.image2Tz(2) variable
106 if (rv != upmZfm20.ZFM20.ERR_OK):
107 print "Image conversion failed with error code %d" % rv
116 rv = myFingerprintSensor.createModel() variable
117 if (rv != upmZfm20.ZFM20.ERR_OK):
118 if (rv == upmZfm20.ZFM20.ERR_FP_ENROLLMISMATCH):
121 print "createModel failed with error code %d" % rv
[all …]
Dzfm20.py65 rv = myFingerprintSensor.image2Tz(1) variable
66 if (rv != upmZfm20.ZFM20.ERR_OK):
67 print "Image conversion failed with error code %d" % rv
80 rv = myFingerprintSensor.search(1, myid, myscore) variable
81 if (rv != upmZfm20.ZFM20.ERR_OK):
82 if (rv == upmZfm20.ZFM20.ERR_FP_NOTFOUND):
86 print "Search failed with error code %d" % rv
/hardware/bsp/intel/peripheral/libupm/examples/javascript/
Dzfm20-register.js69 var rv = myFingerprintSensor.image2Tz(1); variable
71 if (rv != fingerprint_lib.ZFM20.ERR_OK)
73 console.log("Image conversion failed with error code " + rv);
92 rv = myFingerprintSensor.image2Tz(2)
93 if (rv != fingerprint_lib.ZFM20.ERR_OK)
95 console.log("Image conversion failed with error code %d" + rv);
105 rv = myFingerprintSensor.createModel()
106 if (rv != fingerprint_lib.ZFM20.ERR_OK)
108 if (rv == fingerprint_lib.ZFM20.ERR_FP_ENROLLMISMATCH)
111 console.log("createModel failed with error code " + rv);
[all …]
Dzfm20.js51 var rv = myFingerprintSensor.image2Tz(1); variable
52 if (rv != fingerprint_lib.ZFM20.ERR_OK)
54 console.log("Image conversion failed with error code " + rv);
68 rv = myFingerprintSensor.search(1, myid, myscore)
69 if (rv != fingerprint_lib.ZFM20.ERR_OK)
71 if (rv == fingerprint_lib.ZFM20.ERR_FP_NOTFOUND)
78 console.log("Search failed with error code " + rv);
/hardware/bsp/intel/peripheral/libupm/examples/c++/
Dzfm20-register.cxx73 uint8_t rv; in main() local
83 if ((rv = fp->image2Tz(1)) != ZFM20::ERR_OK) in main()
85 cerr << "Image conversion failed with error code " << int(rv) <<endl; in main()
104 if ((rv = fp->image2Tz(2)) != ZFM20::ERR_OK) in main()
106 cerr << "Image conversion failed with error code " << int(rv) <<endl; in main()
116 if ((rv = fp->createModel()) != ZFM20::ERR_OK) in main()
118 if (rv == ZFM20::ERR_FP_ENROLLMISMATCH) in main()
121 cerr << "createModel failed with error code " << int(rv) <<endl; in main()
127 if ((rv = fp->storeModel(1, 1)) != ZFM20::ERR_OK) in main()
129 cerr << "storeModel failed with error code " << int(rv) <<endl; in main()
Dzfm20.cxx76 uint8_t rv; in main() local
77 if ((rv = fp->image2Tz(1)) != ZFM20::ERR_OK) in main()
79 cerr << "Image conversion failed with error code " << int(rv) <<endl; in main()
91 if ((rv = fp->search(1, &id, &score)) != ZFM20::ERR_OK) in main()
93 if (rv == ZFM20::ERR_FP_NOTFOUND) in main()
100 cerr << "Search failed with error code " << int(rv) <<endl; in main()
Dublox6.cxx75 int rv = nmea->readData(nmeaBuffer, bufferLength); in main() local
77 if (rv > 0) in main()
78 write(1, nmeaBuffer, rv); in main()
80 if (rv < 0) // some sort of read error occured in main()
/hardware/bsp/intel/peripheral/libupm/src/ublox6/
Dublox6.cxx102 int rv = read(m_ttyFd, buffer, len); in readData() local
104 if (rv < 0) in readData()
110 return rv; in readData()
113 return rv; in readData()
121 int rv = write(m_ttyFd, buffer, len); in writeData() local
123 if (rv < 0) in writeData()
129 return rv; in writeData()
134 return rv; in writeData()
156 int rv; in setupTty() local
157 if ( (rv = tcsetattr(m_ttyFd, TCSAFLUSH, &termio)) < 0) in setupTty()
/hardware/bsp/intel/peripheral/libupm/src/hmtrp/
Dhmtrp.cxx113 int rv = read(m_ttyFd, buffer, len); in readData() local
115 if (rv < 0) in readData()
120 return rv; in readData()
123 return rv; in readData()
131 int rv = write(m_ttyFd, buffer, len); in writeData() local
133 if (rv < 0) in writeData()
138 return rv; in writeData()
143 return rv; in writeData()
180 int rv = readData(buf, 4, defaultDelay); in checkOK() local
182 if (rv != 4) in checkOK()
[all …]
/hardware/bsp/intel/peripheral/libupm/src/mhz16/
Dmhz16.cxx108 int rv = read(m_ttyFd, buffer, len); in readData() local
110 if (rv < 0) in readData()
115 return rv; in readData()
118 return rv; in readData()
129 int rv = write(m_ttyFd, buffer, len); in writeData() local
131 if (rv < 0) in writeData()
136 return rv; in writeData()
141 return rv; in writeData()
204 int rv; in getData() local
206 if ((rv = readData((char *)packet, 9)) != 9) in getData()
/hardware/bsp/intel/peripheral/libupm/src/mpr121/
Dmpr121.cxx89 mraa::Result rv; in configAN3944() local
95 if ((rv = writeBytes(0x5e, &eleConf, 1)) != mraa::SUCCESS) in configAN3944()
106 if ((rv = writeBytes(0x2b, sectA, 4)) != mraa::SUCCESS) in configAN3944()
117 if ((rv = writeBytes(0x2f, sectB, 4)) != mraa::SUCCESS) in configAN3944()
140 if ((rv = writeBytes(0x41, sectC, 24)) != mraa::SUCCESS) in configAN3944()
151 if ((rv = writeBytes(0x5d, &filterConf, 1)) != mraa::SUCCESS) in configAN3944()
162 if ((rv = writeBytes(0x7b, &sectF0, 1)) != mraa::SUCCESS) in configAN3944()
169 if ((rv = writeBytes(0x7d, sectF1, 3)) != mraa::SUCCESS) in configAN3944()
181 if ((rv = writeBytes(0x5e, &eleConf, 1)) != mraa::SUCCESS) in configAN3944()
193 uint8_t rv; in readButtons() local
/hardware/bsp/intel/peripheral/libupm/src/wt5001/
Dwt5001.cxx109 int rv = read(m_ttyFd, buffer, len); in readData() local
111 if (rv < 0) in readData()
116 return rv; in readData()
119 return rv; in readData()
130 int rv = write(m_ttyFd, buffer, len); in writeData() local
132 if (rv < 0) in writeData()
137 return rv; in writeData()
142 return rv; in writeData()
180 int rv = readData(&resp, 1); in checkResponse() local
183 if ((resp != fopcode) || rv == 0 ) in checkResponse()
[all …]
/hardware/bsp/intel/peripheral/libupm/src/hm11/
Dhm11.cxx103 int rv = read(m_ttyFd, buffer, len); in readData() local
105 if (rv < 0) in readData()
110 return rv; in readData()
113 return rv; in readData()
125 int rv = write(m_ttyFd, buffer, len); in writeData() local
127 if (rv < 0) in writeData()
132 return rv; in writeData()
137 return rv; in writeData()
/hardware/bsp/intel/peripheral/libupm/src/nunchuck/
Dnunchuck.cxx54 mraa_result_t rv; in NUNCHUCK() local
56 if ( (rv = mraa_i2c_address(m_i2c, addr)) != MRAA_SUCCESS ) in NUNCHUCK()
70 mraa_result_t rv; in writeByte() local
72 if ( (rv = mraa_i2c_write_byte_data(m_i2c, byte, reg)) != MRAA_SUCCESS ) in writeByte()
111 int rv; in update() local
113 rv = readBytes(0x00, buf, bufsize); in update()
115 if (rv != bufsize) in update()
/hardware/bsp/intel/peripheral/libupm/examples/java/
DZFM20Sample.java70 short rv = fp.image2Tz(1); in main() local
71 if (rv != upm_zfm20.ZFM20.ZFM20_ERRORS_T.ERR_OK.swigValue()) { in main()
72 System.err.println("Image conversion failed with error code " + rv); in main()
81 rv = fp.search(1, id, score); in main()
82 if (rv != upm_zfm20.ZFM20.ZFM20_ERRORS_T.ERR_OK.swigValue()) { in main()
83 if (rv == upm_zfm20.ZFM20.ZFM20_ERRORS_T.ERR_FP_NOTFOUND.swigValue()) { in main()
87 System.err.println("Search failed with error code " + rv); in main()
/hardware/bsp/intel/peripheral/libupm/src/lcd/
Dssd1327.cxx252 mraa::Result rv = mraa::SUCCESS; in writeChar() local
267 rv = m_i2c_lcd_control.writeReg(LCD_DATA, data); in writeChar()
271 return rv; in writeChar()
284 mraa::Result rv = mraa::SUCCESS; in setHorizontalMode() local
285 rv = m_i2c_lcd_control.writeReg(LCD_CMD, 0xA0); // remap to in setHorizontalMode()
287 rv = m_i2c_lcd_control.writeReg(LCD_CMD, 0x42); // horizontal mode in setHorizontalMode()
291 rv = m_i2c_lcd_control.writeReg(LCD_CMD, 0x75); // Set Row Address in setHorizontalMode()
293 rv = m_i2c_lcd_control.writeReg(LCD_CMD, 0x00); // Start 0 in setHorizontalMode()
295 rv = m_i2c_lcd_control.writeReg(LCD_CMD, 0x5f); // End 95 in setHorizontalMode()
299 rv = m_i2c_lcd_control.writeReg(LCD_CMD, 0x15); // Set Column Address in setHorizontalMode()
[all …]
/hardware/qcom/gps/msm8960/utils/
Dmsg_q.c187 msq_q_err_type rv; in msg_q_snd() local
211 rv = convert_linked_list_err_type(linked_list_add(p_msg_q->msg_list, msg_obj, dealloc)); in msg_q_snd()
220 return rv; in msg_q_snd()
230 msq_q_err_type rv; in msg_q_rcv() local
262 rv = convert_linked_list_err_type(linked_list_remove(p_msg_q->msg_list, msg_obj)); in msg_q_rcv()
266 LOC_LOGD("%s: Received message 0x%08X rv = %d\n", __FUNCTION__, *msg_obj, rv); in msg_q_rcv()
268 return rv; in msg_q_rcv()
278 msq_q_err_type rv; in msg_q_flush() local
292 rv = convert_linked_list_err_type(linked_list_flush(p_msg_q->msg_list)); in msg_q_flush()
298 return rv; in msg_q_flush()
/hardware/qcom/gps/msm8994/utils/
Dmsg_q.c187 msq_q_err_type rv; in msg_q_snd() local
211 rv = convert_linked_list_err_type(linked_list_add(p_msg_q->msg_list, msg_obj, dealloc)); in msg_q_snd()
220 return rv; in msg_q_snd()
230 msq_q_err_type rv; in msg_q_rcv() local
262 rv = convert_linked_list_err_type(linked_list_remove(p_msg_q->msg_list, msg_obj)); in msg_q_rcv()
266 LOC_LOGD("%s: Received message 0x%08X rv = %d\n", __FUNCTION__, *msg_obj, rv); in msg_q_rcv()
268 return rv; in msg_q_rcv()
278 msq_q_err_type rv; in msg_q_flush() local
292 rv = convert_linked_list_err_type(linked_list_flush(p_msg_q->msg_list)); in msg_q_flush()
298 return rv; in msg_q_flush()
/hardware/qcom/gps/utils/
Dmsg_q.c187 msq_q_err_type rv; in msg_q_snd() local
211 rv = convert_linked_list_err_type(linked_list_add(p_msg_q->msg_list, msg_obj, dealloc)); in msg_q_snd()
220 return rv; in msg_q_snd()
230 msq_q_err_type rv; in msg_q_rcv() local
262 rv = convert_linked_list_err_type(linked_list_remove(p_msg_q->msg_list, msg_obj)); in msg_q_rcv()
266 LOC_LOGD("%s: Received message 0x%08X rv = %d\n", __FUNCTION__, *msg_obj, rv); in msg_q_rcv()
268 return rv; in msg_q_rcv()
278 msq_q_err_type rv; in msg_q_flush() local
292 rv = convert_linked_list_err_type(linked_list_flush(p_msg_q->msg_list)); in msg_q_flush()
298 return rv; in msg_q_flush()
/hardware/qcom/gps/msm8996/utils/
Dmsg_q.c187 msq_q_err_type rv; in msg_q_snd() local
211 rv = convert_linked_list_err_type(linked_list_add(p_msg_q->msg_list, msg_obj, dealloc)); in msg_q_snd()
220 return rv; in msg_q_snd()
230 msq_q_err_type rv; in msg_q_rcv() local
262 rv = convert_linked_list_err_type(linked_list_remove(p_msg_q->msg_list, msg_obj)); in msg_q_rcv()
266 LOC_LOGV("%s: Received message 0x%08X rv = %d\n", __FUNCTION__, *msg_obj, rv); in msg_q_rcv()
268 return rv; in msg_q_rcv()
278 msq_q_err_type rv; in msg_q_flush() local
292 rv = convert_linked_list_err_type(linked_list_flush(p_msg_q->msg_list)); in msg_q_flush()
298 return rv; in msg_q_flush()
/hardware/qcom/gps/msm8084/utils/
Dmsg_q.c187 msq_q_err_type rv; in msg_q_snd() local
211 rv = convert_linked_list_err_type(linked_list_add(p_msg_q->msg_list, msg_obj, dealloc)); in msg_q_snd()
220 return rv; in msg_q_snd()
230 msq_q_err_type rv; in msg_q_rcv() local
262 rv = convert_linked_list_err_type(linked_list_remove(p_msg_q->msg_list, msg_obj)); in msg_q_rcv()
266 LOC_LOGD("%s: Received message 0x%p rv = %d\n", __FUNCTION__, *msg_obj, rv); in msg_q_rcv()
268 return rv; in msg_q_rcv()
278 msq_q_err_type rv; in msg_q_flush() local
292 rv = convert_linked_list_err_type(linked_list_flush(p_msg_q->msg_list)); in msg_q_flush()
298 return rv; in msg_q_flush()
/hardware/qcom/gps/msm8909/utils/
Dmsg_q.c187 msq_q_err_type rv; in msg_q_snd() local
211 rv = convert_linked_list_err_type(linked_list_add(p_msg_q->msg_list, msg_obj, dealloc)); in msg_q_snd()
220 return rv; in msg_q_snd()
230 msq_q_err_type rv; in msg_q_rcv() local
262 rv = convert_linked_list_err_type(linked_list_remove(p_msg_q->msg_list, msg_obj)); in msg_q_rcv()
266 LOC_LOGV("%s: Received message 0x%08X rv = %d\n", __FUNCTION__, *msg_obj, rv); in msg_q_rcv()
268 return rv; in msg_q_rcv()
278 msq_q_err_type rv; in msg_q_flush() local
292 rv = convert_linked_list_err_type(linked_list_flush(p_msg_q->msg_list)); in msg_q_flush()
298 return rv; in msg_q_flush()
/hardware/bsp/intel/peripheral/libupm/src/m24lr64e/
Dm24lr64e.cxx44 mraa::Result rv; in M24LR64E() local
45 if ( (rv = m_i2c.address(m_addr)) != mraa::SUCCESS) in M24LR64E()
216 mraa::Result rv; in EEPROM_Write_Byte() local
222 if ((rv = m_i2c.write(buf, pktLen))) in EEPROM_Write_Byte()
227 return rv; in EEPROM_Write_Byte()
235 mraa::Result rv; in EEPROM_Write_Bytes() local
243 if ((rv = m_i2c.write(buf, pktLen))) in EEPROM_Write_Bytes()
249 return rv; in EEPROM_Write_Bytes()
298 int rv = m_i2c.read(buffer, len); in EEPROM_Read_Bytes() local
299 if (rv != len) in EEPROM_Read_Bytes()
[all …]

123