Searched refs:nwr (Results 1 – 2 of 2) sorted by relevance
/hardware/libhardware_legacy/flashlight/ |
D | flashlight.c | 59 int nwr, ret, fd; in set_flashlight_enabled() local 68 nwr = sprintf(value, "%d\n", !!on); in set_flashlight_enabled() 69 ret = write(fd, value, nwr); in set_flashlight_enabled() 73 return (ret == nwr) ? 0 : -1; in set_flashlight_enabled() 78 int nwr, ret, fd; in enable_camera_flash() local 87 nwr = sprintf(value, "%d\n", milliseconds); in enable_camera_flash() 88 ret = write(fd, value, nwr); in enable_camera_flash() 92 return (ret == nwr) ? 0 : -1; in enable_camera_flash()
|
/hardware/libhardware_legacy/vibrator/ |
D | vibrator.c | 28 int nwr, ret, fd; in sendit() local 41 nwr = sprintf(value, "%d\n", timeout_ms); in sendit() 42 ret = write(fd, value, nwr); in sendit() 46 return (ret == nwr) ? 0 : -1; in sendit()
|