Lines Matching refs:buffer
88 char buffer[2]; in setEnable() local
96 buffer[0] = '\0'; in setEnable()
97 buffer[1] = '\0'; in setEnable()
100 if(enabled) buffer[0] = '0'; in setEnable()
102 if(!enabled) buffer[0] = '1'; in setEnable()
104 if (buffer[0] != '\0') { in setEnable()
106 err = write_sys_attribute(input_sysfs_path, buffer, 1); in setEnable()
110 ALOGD("AdxlSensor: Control set %s", buffer); in setEnable()
131 char buffer[16]; in setDelay() local
156 bytes = sprintf(buffer, "%d", rate_val); in setDelay()
157 err = write_sys_attribute(input_sysfs_path, buffer, bytes); in setDelay()