/cts/suite/audio_quality/lib/src/task/ |
TaskInput.cpp | 52 android::sp<AudioHardware> hw = AudioHardware::createAudioHw(localDevice, false, local 54 if (hw.get() == NULL) { 69 if (!hw->prepare(AudioHardware::ESampleRate_44100, mVolume, mMode)) { 73 if (!hw->startPlaybackOrRecord(buffer)) { 78 mHw = hw;
|
TaskOutput.cpp | 48 android::sp<AudioHardware> hw = AudioHardware::createAudioHw(localDevice, true, getTestCase()); local 49 if (hw.get() == NULL) { 50 LOGE("cannot create Audio HW"); 53 if (!hw->prepare(AudioHardware::ESampleRate_44100, mVolume, mMode)) { 64 if (!hw->startPlaybackOrRecord(buffer)) { 73 AudioRemotePlayback* remote = reinterpret_cast<AudioRemotePlayback*>(hw.get()); 79 mHw = hw;
|
/cts/suite/audio_quality/lib/src/audio/ |
AudioHardware.cpp | 75 android::sp<AudioHardware> hw; local 84 hw = new AudioPlaybackLocal(mHwId); 86 hw = new AudioRecordingLocal(mHwId); 91 hw = new AudioRemotePlayback(testCase->getRemoteAudio()); 93 hw = new AudioRemoteRecording(testCase->getRemoteAudio()); 97 return hw;
|
/external/dhcpcd/ |
duid.c | 46 uint16_t hw = 0; local 79 hw = htons(iface->family); 80 memcpy(p, &hw, 2);
|
bpf.c | 142 struct ether_header hw; local 145 memset(&hw, 0, ETHER_HDR_LEN); 146 memset(&hw.ether_dhost, 0xff, ETHER_ADDR_LEN); 147 hw.ether_type = htons(protocol); 148 iov[0].iov_base = &hw;
|
/external/qemu/audio/ |
audio_template.h | 27 #define HWBUF hw->mix_buf 29 #define HW HWVoiceOut 34 #define HW HWVoiceIn 36 #define HWBUF hw->conv_buf 72 static void glue (audio_pcm_hw_free_resources_, TYPE) (HW *hw) 81 static int glue (audio_pcm_hw_alloc_resources_, TYPE) (HW *hw) 83 HWBUF = audio_calloc (AUDIO_FUNC, hw->samples, sizeof (struct st_sample)); 86 hw->samples) 198 HW *hw = *hwp; local 246 HW *hw; local 320 HW *hw; local 348 HW *hw; local 474 HW *hw = sw->hw; local [all...] |
noaudio.c | 32 HWVoiceOut hw; member in struct:NoVoiceOut 37 HWVoiceIn hw; member in struct:NoVoiceIn 41 static int no_run_out (HWVoiceOut *hw, int live) 43 NoVoiceOut *no = (NoVoiceOut *) hw; 51 bytes = muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ()); 53 samples = bytes >> hw->info.shift; 57 hw->rpos = (hw->rpos + decr) % hw->samples; 66 static int no_init_out (HWVoiceOut *hw, struct audsettings *as [all...] |
paaudio.c | 44 HWVoiceOut hw; member in struct:__anon10552 55 HWVoiceIn hw; member in struct:__anon10553 90 HWVoiceOut *hw = &pa->hw; local 93 threshold = conf.divisor ? hw->samples / conf.divisor : 0; 117 rpos = hw->rpos; 125 int chunk = audio_MIN (to_mix, hw->samples - rpos); 126 struct st_sample *src = hw->mix_buf + rpos; 128 hw->clip (pa->pcm_buf, src, chunk); 131 chunk << hw->info.shift, &error) < 0) 185 HWVoiceIn *hw = &pa->hw; local [all...] |
wavaudio.c | 25 #include "hw/hw.h" 38 HWVoiceOut hw; member in struct:WAVVoiceOut 58 static int wav_out_run (HWVoiceOut *hw, int live) 60 WAVVoiceOut *wav = (WAVVoiceOut *) hw; 67 muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ()); 70 samples = INT_MAX >> hw->info.shift; 73 samples = bytes >> hw->info.shift; 79 rpos = hw->rpos; 81 int left_till_end_samples = hw->samples - rpos 225 HWVoiceIn hw; member in struct:WAVVoiceIn [all...] |
coreaudio.c | 286 void* hw, 309 // TODO: audio_pcm_init_info (&hw->info, as); 389 // TODO: hw->samples = *pNBuffers * core->bufferFrameSize; 427 status = AudioDeviceAddIOProc(core->deviceID, ioproc, hw); 458 HWVoiceOut hw; member in struct:coreaudioVoiceOut 462 #define CORE_OUT(hw) ((coreaudioVoiceOut*)(hw))->core 465 static int coreaudio_run_out (HWVoiceOut *hw, int live) 468 coreaudioVoice *core = CORE_OUT(hw); 485 hw->rpos = core->pos 503 HWVoiceOut *hw = hwptr; local 603 HWVoiceIn hw; member in struct:coreaudioVoiceIn 641 HWVoiceIn *hw = hwptr; local [all...] |
dsoundaudio.c | 76 HWVoiceOut hw; member in struct:__anon10543 88 HWVoiceIn hw; member in struct:__anon10544 352 static void dsound_write_sample (HWVoiceOut *hw, uint8_t *dst, int dst_len) 356 int pos = hw->rpos + dst_len; 357 struct st_sample *src1 = hw->mix_buf + hw->rpos; 360 if (pos > hw->samples) { 361 src_len1 = hw->samples - hw->rpos; 362 src2 = hw->mix_buf [all...] |
esdaudio.c | 71 HWVoiceOut hw; member in struct:__anon10545 82 HWVoiceIn hw; member in struct:__anon10546 117 HWVoiceOut *hw = &esd->hw; local 120 threshold = conf.divisor ? hw->samples / conf.divisor : 0; 144 rpos = hw->rpos; 152 int chunk = audio_MIN (to_mix, hw->samples - rpos); 153 struct st_sample *src = hw->mix_buf + rpos; 155 hw->clip (esd->pcm_buf, src, chunk); 158 written = write (esd->fd, esd->pcm_buf, chunk << hw->info.shift) 326 HWVoiceIn *hw = &esd->hw; local [all...] |
fmodaudio.c | 33 HWVoiceOut hw; member in struct:FMODVoiceOut 40 HWVoiceIn hw; member in struct:FMODVoiceIn 94 HWVoiceOut *hw = &fmd->hw; local 102 hw->samples << hw->info.shift, 114 if ((len1 & hw->info.align) || (len2 & hw->info.align)) { 116 len1, len2, hw->info.align + 1); 120 if ((len1 + len2) - (hw->samples << hw->info.shift)) [all...] |
winaudio.c | 91 HWVoiceOut hw;
member in struct:WinAudioOut 128 winaudio_out_fini (HWVoiceOut *hw)
130 WinAudioOut* s = (WinAudioOut*) hw;
159 winaudio_out_init (HWVoiceOut *hw, struct audsettings *as)
161 WinAudioOut* s = (WinAudioOut*) hw;
199 (DWORD_PTR)winaudio_out_buffer_done, (DWORD_PTR) hw,
242 audio_pcm_init_info (&hw->info, as);
243 hw->samples = conf.nb_samples*2;
254 winaudio_out_run (HWVoiceOut *hw, int live)
256 WinAudioOut* s = (WinAudioOut*) hw;
343 HWVoiceIn hw; member in struct:WinAudioIn [all...] |
audio_int.h | 120 HWVoiceOut *hw; member in struct:SWVoiceOut 136 HWVoiceIn *hw; member in struct:SWVoiceIn 158 int (*init_out)(HWVoiceOut *hw, struct audsettings *as); 159 void (*fini_out)(HWVoiceOut *hw); 160 int (*run_out) (HWVoiceOut *hw, int live); 162 int (*ctl_out) (HWVoiceOut *hw, int cmd, ...); 164 int (*init_in) (HWVoiceIn *hw, struct audsettings *as); 165 void (*fini_in) (HWVoiceIn *hw); 166 int (*run_in) (HWVoiceIn *hw); 168 int (*ctl_in) (HWVoiceIn *hw, int cmd, ...) 178 HWVoiceOut hw; member in struct:CaptureVoiceOut [all...] |
ossaudio.c | 46 HWVoiceOut hw; member in struct:OSSVoiceOut 57 HWVoiceIn hw; member in struct:OSSVoiceIn 145 static int oss_poll_out (HWVoiceOut *hw) 147 OSSVoiceOut *oss = (OSSVoiceOut *) hw; 152 static int oss_poll_in (HWVoiceIn *hw) 154 OSSVoiceIn *oss = (OSSVoiceIn *) hw; 386 HWVoiceOut *hw = &oss->hw; local 395 int samples_till_end = hw->samples - oss->wpos; 397 int bytes_to_write = samples_to_write << hw->info.shift [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldCharArrayReaderTest.java | 25 char[] hw = { 'H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd' }; field in class:OldCharArrayReaderTest 36 cr = new CharArrayReader(hw); 54 cr = new CharArrayReader(hw, -1, 0); 60 cr = new CharArrayReader(hw, 0, -1); 66 cr = new CharArrayReader(hw, hw.length + 1, 1); 72 cr = new CharArrayReader(hw, 5, 5); 82 cr = new CharArrayReader(hw); 97 cr = new CharArrayReader(hw); 118 cr = new CharArrayReader(hw); [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
CharArrayReaderTest.java | 25 char[] hw = { 'H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd' }; field in class:CharArrayReaderTest 33 cr = new CharArrayReader(hw); 41 cr = new CharArrayReader(hw, 5, 5); 53 cr = new CharArrayReader(hw); 70 cr = new CharArrayReader(hw); 82 cr = new CharArrayReader(hw); 90 cr = new CharArrayReader(hw); 101 cr = new CharArrayReader(hw); 104 .equals(new String(hw, 0, 10))); 111 cr = new CharArrayReader(hw); [all...] |
CharArrayWriterTest.java | 27 char[] hw = { 'H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd' }; field in class:CharArrayWriterTest 82 cw.write(hw, 5, 5); 111 cw.write(hw, 5, 5);
|
/external/wpa_supplicant_8/src/ap/ |
hw_features.c | 474 u16 hw = iface->current_mode->ht_capab; local 478 !(hw & HT_CAP_INFO_LDPC_CODING_CAP)) { 485 !(hw & HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET)) { 491 if ((conf & HT_CAP_INFO_SMPS_MASK) != (hw & HT_CAP_INFO_SMPS_MASK) && 499 !(hw & HT_CAP_INFO_GREEN_FIELD)) { 506 !(hw & HT_CAP_INFO_SHORT_GI20MHZ)) { 513 !(hw & HT_CAP_INFO_SHORT_GI40MHZ)) { 519 if ((conf & HT_CAP_INFO_TX_STBC) && !(hw & HT_CAP_INFO_TX_STBC)) { 526 (hw & HT_CAP_INFO_RX_STBC_MASK)) { 533 !(hw & HT_CAP_INFO_DELAYED_BA)) [all...] |
/system/core/init/ |
util.c | 397 char *x, *hw, *rev; local 411 hw = strstr(data, "\nHardware"); 414 if (hw) { 415 x = strstr(hw, ": ");
|
/external/qemu/android/ |
main.c | 48 #include "hw/goldfish_nand.h" 174 AndroidHwConfig* hw; local 323 /* update the avd hw config from this new skin */ 328 hw = android_hw; 329 if (avdInfo_initHwConfig(avd, hw) < 0) { 370 parse_skin_files(opts->skindir, opts->skin, opts, hw, 402 /* Update CPU architecture for HW configs created from build dir. */ 432 hw->kernel_path = kernelFile; 504 AFREE(hw->disk_ramdisk_path); 505 hw->disk_ramdisk_path = ASTRDUP(opts->ramdisk) [all...] |
hw-sensors.c | 14 #include "android/hw-sensors.h" 18 #include "android/hw-qemud.h" 20 #include "hw/hw.h" 291 HwSensors* hw = cl->sensors; local 299 sensor = &hw->sensors[ANDROID_SENSOR_ACCELERATION]; 308 sensor = &hw->sensors[ANDROID_SENSOR_MAGNETIC_FIELD]; 318 sensor = &hw->sensors[ANDROID_SENSOR_ORIENTATION]; 327 sensor = &hw->sensors[ANDROID_SENSOR_TEMPERATURE]; 334 sensor = &hw->sensors[ANDROID_SENSOR_PROXIMITY] 362 HwSensors* hw = cl->sensors; local 712 HwSensors* hw = _sensorsState; local 742 HwSensors* hw = _sensorsState; local 765 HwSensors* hw = _sensorsState; local 792 HwSensors* hw = _sensorsState; local 812 HwSensors* hw = _sensorsState; local [all...] |
/external/qemu/distrib/sdl-1.2.12/src/joystick/bsd/ |
SDL_sysjoystick.c | 244 struct joystick_hwdata *hw; local 257 hw = (struct joystick_hwdata *)SDL_malloc(sizeof(struct joystick_hwdata)); 258 if (hw == NULL) { 263 joy->hwdata = hw; 264 hw->fd = fd; 265 hw->path = strdup(path); 266 hw->x = 0; 267 hw->y = 0; 268 hw->xmin = 0xffff; 269 hw->ymin = 0xffff [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/sound/ |
timer.h | 85 struct snd_timer_hardware hw; member in struct:snd_timer
|