Searched refs:afd (Results 1 - 2 of 2) sorted by relevance
/system/extras/sound/ |
H A D | playwav.c | 44 int afd; local 46 afd = open("/dev/msm_pcm_out", O_RDWR); 47 if (afd < 0) { 52 if(ioctl(afd, AUDIO_GET_CONFIG, &config)) { 59 if (ioctl(afd, AUDIO_SET_CONFIG, &config)) { 73 if (write(afd, buf, sz) != sz) 78 ioctl(afd, AUDIO_START, 0); 82 if (ioctl(afd, AUDIO_GET_STATS, &stats) == 0) 87 if (write(afd, buf, sz) != sz) 92 close(afd); 197 int fd, afd; local 299 int fd, afd; local [all...] |
/system/core/toolbox/ |
H A D | alarm.c | 20 int afd; local 64 afd = open("/dev/alarm", O_RDWR); 65 if(afd < 0) { 114 res = ioctl(afd, ANDROID_ALARM_GET_TIME(alarmtype), &ts); 126 res = ioctl(afd, ANDROID_ALARM_SET(alarmtype), &ts); 153 res = ioctl(afd, ANDROID_ALARM_WAIT); 187 close(afd);
|
Completed in 219 milliseconds