Searched defs:err (Results 1 - 19 of 19) sorted by relevance

/device/moto/stingray/sensors/
H A DAccelerationSensor.cpp64 int err = 0; local
75 err = ioctl(dev_fd, KXTF9_IOCTL_SET_ENABLE, &flags);
76 err = err<0 ? -errno : 0;
77 ALOGE_IF(err, "KXTF9_IOCTL_SET_ENABLE failed (%s)", strerror(-err));
78 if (!err) {
85 return err;
91 int err = 0;
102 err
[all...]
H A DGyroSensor.cpp65 int err = 0; local
70 err = ioctl(dev_fd, L3G4200D_IOCTL_SET_ENABLE, &flags);
71 err = err<0 ? -errno : 0;
72 ALOGE_IF(err, "L3G4200D_IOCTL_SET_ENABLE failed (%s)", strerror(-err));
73 if (!err) {
80 return err;
H A DLightSensor.cpp49 int err; local
55 err = ioctl(dev_fd, MAX9635_IOCTL_SET_ENABLE,&en);
56 err = err<0 ? -errno : 0;
57 ALOGE_IF(err, "MAX9635_IOCTL_SET_ENABLE failed (%s)", strerror(-err));
58 if (!err) {
H A DPressureSensor.cpp68 int err = 0; local
73 err = ioctl(dev_fd, BMP085_IOCTL_SET_ENABLE, &flags);
74 err = err<0 ? -errno : 0;
75 ALOGE_IF(err, "BMP085_IOCTL_SET_ENABLE failed (%s)", strerror(-err));
76 if (!err) {
83 return err;
H A DAkmSensor.cpp101 int err = 0; local
114 err = ioctl(dev_fd, cmd, &flags);
115 err = err<0 ? -errno : 0;
116 ALOGE_IF(err, "ECS_IOCTL_APP_SET_XXX failed (%s)", strerror(-err));
117 if (!err) {
126 return err;
/device/samsung/crespo/libstagefrighthw/
H A DSEC_OMX_Plugin.cpp110 OMX_ERRORTYPE err = (*mGetRolesOfComponentHandle)( local
113 if (err != OMX_ErrorNone) {
114 return err;
124 err = (*mGetRolesOfComponentHandle)(
127 if (err == OMX_ErrorNone && numRoles != numRoles2) {
128 err = OMX_ErrorUndefined;
132 if (err == OMX_ErrorNone) {
145 return err;
/device/samsung/crespo/liblight/
H A Dlights.c69 int err = 0; local
73 err = write_int(LCD_FILE, brightness);
76 return err;
/device/samsung/crespo/libsensors/
H A DGyroSensor.cpp86 int err; local
94 err = write(fd, buf, sizeof(buf));
H A DLightSensor.cpp80 int err; local
87 err = write(fd, buf, sizeof(buf));
H A DAkmSensor.cpp151 int err = 0; local
162 err = akm_enable_sensor(sensor_type);
164 err = akm_disable_sensor(sensor_type);
166 ALOGE_IF(err, "Could not change sensor state (%s)", strerror(-err));
167 if (!err) {
172 return err;
/device/samsung/crespo4g/recovery/
H A Drecovery_updater.c63 int err = -1; local
98 err = ioctl(ofd, IOCTL_MODEM_FW_UPDATE, &fw);
100 if (err < 0) {
101 printf("ioctl failed with %d\n", err);
106 err = ioctl(ofd, IOCTL_MODEM_CHK_STAT, &st);
113 if (err < 0) {
115 printf("Update error %d\n", err);
121 } while (err);
130 return StringValue(strdup(err == 0 ? "t" : ""));
/device/samsung/tuna/libsensors/
H A DSamsungSensorBase.cpp100 int err = 0; local
106 err = write(fd, en ? "1" : "0", 2);
108 if (err < 0) {
112 err = handleEnable(en);
114 err = -1;
119 return err;
H A Dsensors.cpp248 int err = mSensors[index]->enable(handle, enabled); local
249 if (!err) {
254 return err;
/device/asus/grouper/liblights/
H A Dlights.c67 int err = 0; local
95 err = write_int("/sys/class/backlight/pwm-backlight/brightness",
99 return err;
/device/google/accessory/arduino/AndroidAccessory/
H A DAndroidAccessory.cpp118 byte err; local
121 err = usb.getConfDescr(addr, 0, 4, 0, (char *)descBuff);
122 if (err) {
135 err = usb.getConfDescr(addr, 0, len, 0, (char *)descBuff);
136 if (err) {
194 byte err; local
215 err = usb.setConf( 1, 0, 1 );
216 if (err) {
229 byte err; local
240 err
[all...]
/device/moto/stingray/liblights/
H A Dlights.c123 int err = 0; local
127 err = write_int("/sys/class/leds/lcd-backlight/brightness", brightness);
130 return err;
/device/samsung/crespo/libhwcomposer/
H A DSecHWC.cpp464 int err = ioctl(ctx->global_lcd_win.fd, S3CFB_SET_VSYNC_INT, &val); local
465 if (err < 0)
555 int err; local
597 goto err;
605 goto err;
613 goto err;
633 goto err;
640 goto err;
648 goto err;
661 goto err;
[all...]
/device/samsung/crespo/sec_mm/sec_omx/sec_osal/
H A DSEC_OSAL_Buffer.cpp408 int err = 0; local
415 err = hw_get_module(GRALLOC_HARDWARE_MODULE_ID, (const hw_module_t **)&module);
416 if(err) {
417 SEC_OSAL_Log(SEC_LOG_ERROR, "hw_get_module failed (err=%d)\n", err);
429 err = module->Blit(module, buf, pVirAddrs, HAL_PIXEL_FORMAT_C110_NV12);
430 if(err) {
431 SEC_OSAL_Log(SEC_LOG_ERROR, "module->Blit() failed (err=%d)\n", err);
/device/samsung/tuna/liblight/
H A Dlights.c86 int err = 0; local
90 err = write_int(LCD_FILE, brightness);
93 return err;
108 int err = 0; local
116 err = ioctl(fd, AN30259A_PR_SET_IMAX, &imax);
117 if (err)
120 err = ioctl(fd, AN30259A_PR_SET_LED, led);
121 if (err < 0)
127 err = -errno;
132 return err;
[all...]

Completed in 22 milliseconds