/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
D | svc_test.cc | 50 const vpx_codec_err_t res = in SetUp() local 52 EXPECT_EQ(VPX_CODEC_OK, res); in SetUp() 84 vpx_codec_err_t res = vpx_svc_init(NULL, &codec_, codec_iface_, &codec_enc_); in TEST_F() local 85 EXPECT_EQ(VPX_CODEC_INVALID_PARAM, res); in TEST_F() 86 res = vpx_svc_init(&svc_, NULL, codec_iface_, &codec_enc_); in TEST_F() 87 EXPECT_EQ(VPX_CODEC_INVALID_PARAM, res); in TEST_F() 88 res = vpx_svc_init(&svc_, &codec_, NULL, &codec_enc_); in TEST_F() 89 EXPECT_EQ(VPX_CODEC_INVALID_PARAM, res); in TEST_F() 91 res = vpx_svc_init(&svc_, &codec_, codec_iface_, NULL); in TEST_F() 92 EXPECT_EQ(VPX_CODEC_INVALID_PARAM, res); in TEST_F() [all …]
|
D | encode_test_driver.cc | 39 vpx_codec_err_t res; in EncodeFrameInternal() local 48 res = vpx_codec_enc_init(&encoder_, CodecInterface(), &cfg_, in EncodeFrameInternal() 50 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); in EncodeFrameInternal() 57 res = vpx_codec_enc_config_set(&encoder_, &cfg_); in EncodeFrameInternal() 58 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); in EncodeFrameInternal() 63 res = vpx_codec_encode(&encoder_, in EncodeFrameInternal() 66 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); in EncodeFrameInternal() 70 const vpx_codec_err_t res = vpx_codec_encode(&encoder_, NULL, 0, 0, 0, in Flush() local 72 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); in Flush() 76 const vpx_codec_err_t res = codec_->DefaultEncoderConfig(&cfg_, 0); in InitializeConfig() local [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/src/ |
D | vpx_decoder.c | 27 vpx_codec_err_t res; in vpx_codec_dec_init_ver() local 31 res = VPX_CODEC_ABI_MISMATCH; in vpx_codec_dec_init_ver() 34 res = VPX_CODEC_INVALID_PARAM; in vpx_codec_dec_init_ver() 36 res = VPX_CODEC_ABI_MISMATCH; in vpx_codec_dec_init_ver() 39 res = VPX_CODEC_INCAPABLE; in vpx_codec_dec_init_ver() 41 res = VPX_CODEC_INCAPABLE; in vpx_codec_dec_init_ver() 44 res = VPX_CODEC_INCAPABLE; in vpx_codec_dec_init_ver() 47 res = VPX_CODEC_INCAPABLE; in vpx_codec_dec_init_ver() 49 res = VPX_CODEC_INCAPABLE; in vpx_codec_dec_init_ver() 57 res = VPX_CODEC_OK; in vpx_codec_dec_init_ver() [all …]
|
D | vpx_encoder.c | 28 vpx_codec_err_t res; in vpx_codec_enc_init_ver() local 31 res = VPX_CODEC_ABI_MISMATCH; in vpx_codec_enc_init_ver() 33 res = VPX_CODEC_INVALID_PARAM; in vpx_codec_enc_init_ver() 35 res = VPX_CODEC_ABI_MISMATCH; in vpx_codec_enc_init_ver() 37 res = VPX_CODEC_INCAPABLE; in vpx_codec_enc_init_ver() 39 res = VPX_CODEC_INCAPABLE; in vpx_codec_enc_init_ver() 42 res = VPX_CODEC_INCAPABLE; in vpx_codec_enc_init_ver() 45 res = VPX_CODEC_INCAPABLE; in vpx_codec_enc_init_ver() 52 res = ctx->iface->init(ctx, NULL); in vpx_codec_enc_init_ver() 54 if (res) { in vpx_codec_enc_init_ver() [all …]
|
D | vpx_codec.c | 84 vpx_codec_err_t res; in vpx_codec_destroy() local 87 res = VPX_CODEC_INVALID_PARAM; in vpx_codec_destroy() 89 res = VPX_CODEC_ERROR; in vpx_codec_destroy() 97 res = VPX_CODEC_OK; in vpx_codec_destroy() 100 return SAVE_STATUS(ctx, res); in vpx_codec_destroy() 112 vpx_codec_err_t res; in vpx_codec_control_() local 115 res = VPX_CODEC_INVALID_PARAM; in vpx_codec_control_() 117 res = VPX_CODEC_ERROR; in vpx_codec_control_() 121 res = VPX_CODEC_ERROR; in vpx_codec_control_() 128 res = entry->fn(ctx->priv->alg_priv, ctrl_id, ap); in vpx_codec_control_() [all …]
|
/hardware/libhardware/modules/usbcamera/ |
D | UsbCamera.cpp | 199 int res = sync_wait(in->acquire_fence, CAMERA_SYNC_TIMEOUT_MS); in processCaptureBuffer() local 200 if (res == -ETIME) { in processCaptureBuffer() 203 return res; in processCaptureBuffer() 204 } else if (res) { in processCaptureBuffer() 206 __func__, mId, strerror(-res), res); in processCaptureBuffer() 207 return res; in processCaptureBuffer() 223 int res; in initDevice() local 227 res = base.add1UInt8(ANDROID_CONTROL_MODE, ANDROID_CONTROL_MODE_OFF); in initDevice() 228 if (res) in initDevice() 229 return res; in initDevice() [all …]
|
/hardware/libhardware/modules/camera/ |
D | ExampleCamera.cpp | 182 int res; in initDevice() local 187 res = base.add1UInt8(ANDROID_CONTROL_MODE, ANDROID_CONTROL_MODE_OFF); in initDevice() 188 if (res) in initDevice() 189 return res; in initDevice() 192 res = setPreviewTemplate(base); in initDevice() 193 if (res) in initDevice() 194 return res; in initDevice() 195 res = setStillTemplate(base); in initDevice() 196 if (res) in initDevice() 197 return res; in initDevice() [all …]
|
/hardware/qcom/display/msm8996/sdm/libs/utils/ |
D | rect.cpp | 62 LayerRect res; in Intersection() local 68 res.left = MAX(rect1.left, rect2.left); in Intersection() 69 res.top = MAX(rect1.top, rect2.top); in Intersection() 70 res.right = MIN(rect1.right, rect2.right); in Intersection() 71 res.bottom = MIN(rect1.bottom, rect2.bottom); in Intersection() 73 if (!IsValid(res)) { in Intersection() 77 return res; in Intersection() 81 LayerRect res; in Reposition() local 87 res.left = rect.left + FLOAT(x_offset); in Reposition() 88 res.top = rect.top + FLOAT(y_offset); in Reposition() [all …]
|
/hardware/libhardware/tests/camera2/ |
D | camera2_utils.cpp | 139 status_t res; in waitForBuffer() local 141 res = notEmpty.waitRelative(mMutex,timeout); in waitForBuffer() 142 if (res != OK) return res; in waitForBuffer() 343 status_t res; in connectToDevice() local 355 res = d->ops->allocate_stream(d, in connectToDevice() 358 if (res != OK) { in connectToDevice() 360 __FUNCTION__, strerror(-res), res); in connectToDevice() 362 return res; in connectToDevice() 372 res = native_window_api_connect(mConsumerInterface.get(), in connectToDevice() 374 if (res != OK) { in connectToDevice() [all …]
|
/hardware/invensense/65xx/libsensors_iio/ |
D | MPLSensor.cpp | 1073 int res = 0; in setGyroInitialState() local 1078 res = errno; in setGyroInitialState() 1081 mpu.gyro_rate, strerror(res), res); in setGyroInitialState() 1082 return res; in setGyroInitialState() 1084 res = write_attribute_sensor(fd, HW_GYRO_RATE_HZ); in setGyroInitialState() 1085 if(res < 0) { in setGyroInitialState() 1088 return res; in setGyroInitialState() 1123 int res = -1; in onDmp() local 1149 res = 0; //Indicate write successful in onDmp() 1166 res = -1; in onDmp() [all …]
|
D | MPLSupport.cpp | 148 int res=0; in read_sysfs_int() local 154 res = errno; in read_sysfs_int() 155 LOGE("HAL:ERR open file %s to read with error %d", filename, res); in read_sysfs_int() 158 return -res; in read_sysfs_int() 163 int res=0; in read_sysfs_int64() local 169 res = errno; in read_sysfs_int64() 170 LOGE("HAL:ERR open file %s to read with error %d", filename, res); in read_sysfs_int64() 173 return -res; in read_sysfs_int64() 191 int res=0; in write_sysfs_int() local 197 res = errno; in write_sysfs_int() [all …]
|
D | CompassSensor.IIO.primary.cpp | 167 int res = errno; in enable_iio_sysfs() local 171 compass, iio_device_node, strerror(res), res); in enable_iio_sysfs() 248 int res = 0; in enable() local 251 res = masterEnable(0); in enable() 252 if (res < 0) { in enable() 253 return res; in enable() 259 res = write_sysfs_int(compassSysFs.compass_x_fifo_enable, en); in enable() 262 res += write_sysfs_int(compassSysFs.compass_y_fifo_enable, en); in enable() 265 res += write_sysfs_int(compassSysFs.compass_z_fifo_enable, en); in enable() 267 res = masterEnable(en); in enable() [all …]
|
/hardware/broadcom/wlan/bcmdhd/wifi_hal/ |
D | cpp_bindings.cpp | 555 int res = create(NL80211_CMD_VENDOR); in create() local 556 if (res < 0) { in create() 557 return res; in create() 560 res = put_u32(NL80211_ATTR_VENDOR_ID, id); in create() 561 if (res < 0) { in create() 562 return res; in create() 565 res = put_u32(NL80211_ATTR_VENDOR_SUBCMD, subcmd); in create() 566 if (res < 0) { in create() 567 return res; in create() 571 res = set_iface_id(mIface); in create() [all …]
|
/hardware/invensense/6515/libsensors_iio/ |
D | MPLSensor.cpp | 166 int res; in MPLSensor() local 385 res = write_sysfs_int(mpu.smd_threshold, motionThreshold); in MPLSensor() 391 res = write_sysfs_int(mpu.pedometer_step_thresh, StepCounterThreshold); in MPLSensor() 838 int res, fd; in loadDMP() local 1047 int res = -1; in onDmp() local 1073 res = 0; //Indicate write successful in onDmp() 1090 res = -1; in onDmp() 1096 res = 0; //DMP already set as requested in onDmp() 1104 return res; in onDmp() 1109 int res = 0; in setDmpFeature() local [all …]
|
D | MPLSupport.cpp | 148 int res=0; in read_sysfs_int() local 154 res = errno; in read_sysfs_int() 155 LOGE("HAL:ERR open file %s to read with error %d", filename, res); in read_sysfs_int() 158 return -res; in read_sysfs_int() 163 int res=0; in read_sysfs_int64() local 169 res = errno; in read_sysfs_int64() 170 LOGE("HAL:ERR open file %s to read with error %d", filename, res); in read_sysfs_int64() 173 return -res; in read_sysfs_int64() 191 int res=0; in write_sysfs_int() local 197 res = errno; in write_sysfs_int() [all …]
|
D | CompassSensor.IIO.primary.cpp | 167 int res = errno; in enable_iio_sysfs() local 171 compass, iio_device_node, strerror(res), res); in enable_iio_sysfs() 248 int res = 0; in enable() local 251 res = masterEnable(0); in enable() 252 if (res < 0) { in enable() 253 return res; in enable() 259 res = write_sysfs_int(compassSysFs.compass_x_fifo_enable, en); in enable() 262 res += write_sysfs_int(compassSysFs.compass_y_fifo_enable, en); in enable() 265 res += write_sysfs_int(compassSysFs.compass_z_fifo_enable, en); in enable() 267 res = masterEnable(en); in enable() [all …]
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/ |
D | mlos_linux.c | 73 int res; in inv_create_mutex() local 78 res = pthread_mutex_init(pm, NULL); in inv_create_mutex() 79 if(res == -1) { in inv_create_mutex() 97 int res; in inv_lock_mutex() local 100 res = pthread_mutex_lock(pm); in inv_lock_mutex() 101 if(res == -1) in inv_lock_mutex() 115 int res; in inv_unlock_mutex() local 118 res = pthread_mutex_unlock(pm); in inv_unlock_mutex() 119 if(res == -1) in inv_unlock_mutex()
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/ |
D | mlos_linux.c | 73 int res; in inv_create_mutex() local 78 res = pthread_mutex_init(pm, NULL); in inv_create_mutex() 79 if(res == -1) { in inv_create_mutex() 97 int res; in inv_lock_mutex() local 100 res = pthread_mutex_lock(pm); in inv_lock_mutex() 101 if(res == -1) in inv_lock_mutex() 115 int res; in inv_unlock_mutex() local 118 res = pthread_mutex_unlock(pm); in inv_unlock_mutex() 119 if(res == -1) in inv_unlock_mutex()
|
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/h264/parser/ |
D | h264parse_math.c | 26 register unsigned long res = 0; in ldiv_mod_u() local 51 res |= bit; in ldiv_mod_u() 58 return res; in ldiv_mod_u() 65 register unsigned res = 0; in ldiv_u() local 74 res |= bit; in ldiv_u() 79 return res; in ldiv_u()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/ |
D | vp8_dx_iface.c | 123 vpx_codec_err_t res = VPX_CODEC_OK; in vp8_init() local 141 res = vpx_mmap_alloc(&mmap); in vp8_init() 142 if (res != VPX_CODEC_OK) return res; in vp8_init() 172 res = VPX_CODEC_INVALID_PARAM; in vp8_init() 175 return res; in vp8_init() 199 vpx_codec_err_t res = VPX_CODEC_OK; in vp8_peek_si_internal() local 203 res = VPX_CODEC_INVALID_PARAM; in vp8_peek_si_internal() 229 res = VPX_CODEC_UNSUP_BITSTREAM; in vp8_peek_si_internal() 236 res = VPX_CODEC_UNSUP_BITSTREAM; in vp8_peek_si_internal() 240 res = VPX_CODEC_UNSUP_BITSTREAM; in vp8_peek_si_internal() [all …]
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
D | cpp_bindings.cpp | 562 int res = create(NL80211_CMD_VENDOR); in create() local 563 if (res < 0) { in create() 564 return res; in create() 567 res = put_u32(NL80211_ATTR_VENDOR_ID, id); in create() 568 if (res < 0) { in create() 569 return res; in create() 572 res = put_u32(NL80211_ATTR_VENDOR_SUBCMD, subcmd); in create() 573 if (res < 0) { in create() 574 return res; in create() 578 res = set_iface_id(mIface); in create() [all …]
|
D | wificonfig.cpp | 383 int res = -1; in requestEvent() local 389 res = -1; in requestEvent() 393 res = nl_send_auto_complete(mInfo->cmd_sock, mMsg.getMessage()); in requestEvent() 394 if (res < 0) in requestEvent() 396 res = 1; in requestEvent() 398 nl_cb_err(cb, NL_CB_CUSTOM, error_handler_wifi_config, &res); in requestEvent() 400 &res); in requestEvent() 401 nl_cb_set(cb, NL_CB_ACK, NL_CB_CUSTOM, ack_handler_wifi_config, &res); in requestEvent() 404 while (res > 0){ in requestEvent() 409 if (!res && (mWaitforRsp == true)) { in requestEvent() [all …]
|
/hardware/bsp/intel/peripheral/libmraa/api/mraa/ |
D | iio.hpp | 136 mraa_result_t res = mraa_iio_read_int(m_iio, attributeName.c_str(), &value); in readInt() local 137 if (res != MRAA_SUCCESS) { in readInt() 158 mraa_result_t res = mraa_iio_read_float(m_iio, attributeName.c_str(), &value); in readFloat() local 159 if (res != MRAA_SUCCESS) { in readFloat() 178 mraa_result_t res = mraa_iio_write_int(m_iio, attributeName.c_str(), value); in writeInt() local 179 if (res != MRAA_SUCCESS) { in writeInt() 198 mraa_result_t res = mraa_iio_write_float(m_iio, attributeName.c_str(), value); in writeFloat() local 199 if (res != MRAA_SUCCESS) { in writeFloat() 217 mraa_result_t res = mraa_iio_event_setup_callback(m_iio, private_event_handler, handler); in registerEventHandler() local 218 if (res != MRAA_SUCCESS) { in registerEventHandler()
|
/hardware/qcom/display/msm8996/libgralloc/ |
D | mapper.cpp | 296 int res = -EINVAL; in gralloc_perform() local 299 return res; in gralloc_perform() 328 res = 0; in gralloc_perform() 342 res = 0; in gralloc_perform() 350 return res; in gralloc_perform() 357 res = 0; in gralloc_perform() 366 return res; in gralloc_perform() 374 res = 0; in gralloc_perform() 390 res = 0; in gralloc_perform() 398 return res; in gralloc_perform() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
D | vpxstats.c | 20 int res; in stats_open_file() local 27 res = (stats->file != NULL); in stats_open_file() 38 res = (stats->buf.buf != NULL); in stats_open_file() 57 res = (nbytes == stats->buf.sz); in stats_open_file() 61 return res; in stats_open_file() 65 int res; in stats_open_mem() local 75 res = (stats->buf.buf != NULL); in stats_open_mem() 76 return res; in stats_open_mem()
|