/frameworks/base/media/jni/ |
android_media_MediaSync.cpp | 81 status_t JMediaSync::setPlaybackParams(const AudioPlaybackRate& rate) { 82 return mSync->setPlaybackSettings(rate); 85 void JMediaSync::getPlaybackParams(AudioPlaybackRate* rate /* nonnull */) { 86 mSync->getPlaybackSettings(rate); 97 status_t JMediaSync::setVideoFrameRateHint(float rate) { 98 return mSync->setVideoFrameRateHint(rate); 331 AudioPlaybackRate rate; local 332 sync->getPlaybackParams(&rate); 335 rate.mSpeed = pbs.audioRate.mSpeed; 339 rate.mPitch = pbs.audioRate.mPitch [all...] |
/frameworks/native/services/sensorservice/ |
SensorDevice.cpp | 520 RateLevel rate; local 523 rate = RateLevel::STOP; 526 rate = RateLevel::NORMAL; 529 rate = RateLevel::FAST; 532 rate = RateLevel::VERY_FAST; 539 checkReturn(mSensors->configDirectReport(sensorHandle, channelHandle, rate, 540 [&ret, rate] (auto result, auto token) { 541 if (rate == RateLevel::STOP) {
|
/frameworks/wilhelm/tests/mimeUri/ |
slesTestSlowDownUri.cpp | 71 SLpermille minRate, maxRate, stepSize, rate = 1000; local 75 SLresult res = (*pRateItf)->GetRate(pRateItf, &rate); CheckErr(res); 78 fprintf(stdout, "old rate = %d, minRate=%d, maxRate=%d\n", rate, minRate, maxRate); 79 rate /= 2; 80 if (rate < minRate) { 81 rate = minRate; 83 fprintf(stdout, "new rate = %d\n", rate); 84 res = (*pRateItf)->SetRate(pRateItf, rate); CheckErr(res) 290 SLpermille rate = 1234; local [all...] |
/hardware/qcom/audio/hal/audio_extn/ |
hfp.c | 74 .rate = 8000, 427 int rate; local 444 rate = atoi(value); 445 if (rate == 8000){ 447 pcm_config_hfp.rate = rate; 448 } else if (rate == 16000){ 450 pcm_config_hfp.rate = rate; 452 ALOGE("Unsupported rate..") [all...] |
/hardware/qcom/display/msm8994/libhwcomposer/ |
hwc_qclient.cpp | 294 ALOGW("%s: Ignoring binder request to change refresh-rate", 297 uint32_t rate = roundOff(refresh_rate); local 298 if((rate >= mdpHw.getMinFpsSupported() && 299 rate <= mdpHw.getMaxFpsSupported())) { 300 setRefreshRate(ctx, dpy, rate); 302 ALOGE("%s: Requested refresh-rate should be between \ 305 mdpHw.getMaxFpsSupported(), rate);
|
/packages/services/Car/service/src/com/android/car/hal/ |
SensorHalService.java | 198 float rate = 1.0f; local 201 rate = prop.maxSampleRate; 204 rate = 10f; // every 100ms 207 rate = 5f; // every 200ms 212 if (rate > prop.maxSampleRate) { 213 rate = prop.maxSampleRate; 215 if (rate < prop.minSampleRate) { 216 rate = prop.minSampleRate; 218 return rate;
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/alsa/ |
pcm_ioplug.h | 46 SND_PCM_IOPLUG_HW_RATE, /**< rate */ 114 unsigned int rate; /**< rate; filled after hw_params is called */ member in struct:snd_pcm_ioplug
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/pulse/ |
sample.h | 67 * PulseAudio supports any sample rate between 1 Hz and 192000 Hz. There is no 68 * point trying to exceed the sample rate of the output device though as the 123 /** Maximum allowed sample rate */ 245 uint32_t rate; member in struct:pa_sample_spec 246 /**< The sample rate. (e.g. 44100) */
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/alsa/ |
pcm_ioplug.h | 46 SND_PCM_IOPLUG_HW_RATE, /**< rate */ 114 unsigned int rate; /**< rate; filled after hw_params is called */ member in struct:snd_pcm_ioplug
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/pulse/ |
sample.h | 66 * PulseAudio supports any sample rate between 1 Hz and 192000 Hz. There is no 67 * point trying to exceed the sample rate of the output device though as the 125 /** Maximum allowed sample rate */ 247 uint32_t rate; member in struct:pa_sample_spec 248 /**< The sample rate. (e.g. 44100) */
|
/system/extras/sound/ |
playwav.c | 38 int pcm_play(unsigned rate, unsigned channels, 60 config.sample_rate = rate; 137 void play_file(unsigned rate, unsigned channels, 150 pcm_play(rate, channels, fill_buffer, 0); 156 unsigned rate, channels; local 193 int wav_rec(const char *fn, unsigned channels, unsigned rate) 210 hdr.sample_rate = rate; 336 unsigned rate = 44100; local 349 } else if (!strcmp(argv[0],"-rate")) { 353 fprintf(stderr,"playwav: -rate requires a parameter\n") [all...] |
/device/google/contexthub/util/nanoapp_cmd/ |
nanoapp_cmd.c | 68 uint32_t rate; member in struct:ConfigCmd 116 cmd->rate = SENSOR_RATE_ONCHANGE; 119 cmd->rate = SENSOR_RATE_ONCHANGE; 122 cmd->rate = SENSOR_RATE_ONCHANGE; 125 cmd->rate = SENSOR_RATE_ONCHANGE; 128 cmd->rate = SENSOR_RATE_ONCHANGE; 131 cmd->rate = SENSOR_RATE_ONCHANGE; 134 cmd->rate = SENSOR_RATE_ONCHANGE; 137 cmd->rate = SENSOR_RATE_ONCHANGE; 140 cmd->rate = SENSOR_RATE_ONESHOT [all...] |
/external/iproute2/misc/ |
rtacct.c | 70 double rate[256*4]; member in struct:rtacct_data 132 static void format_rate(FILE *fp, double rate) 136 if (rate > 1024*1024) { 137 sprintf(temp, "%uM", (unsigned)rint(rate/(1024*1024))); 139 } else if (rate > 1024) { 140 sprintf(temp, "%uK", (unsigned)rint(rate/1024)); 143 fprintf(fp, " %-10u", (unsigned)rate); 185 double *rate; local 191 rate = &kern_db->rate[realm*4] 247 double *rate; local [all...] |
/external/iw/ |
mesh.c | 440 float rate; local 522 rate = strtod(value, &end); 523 rates[n_rates] = rate * 2; 527 rate*2 != rates[n_rates]) 539 /* multicast rate */ 540 if (argc > 1 && strcmp(argv[0], "mcast-rate") == 0) { 544 rate = strtod(argv[0], &end); 548 NLA_PUT_U32(msg, NL80211_ATTR_MCAST_RATE, (int)(rate * 10)); 606 " [basic-rates <rate in Mbps,rate2,...>]], [mcast-rate <rate in Mbps>] [all...] |
/external/libopus/tests/ |
test_opus_api.c | 289 int fp3s,rate; local 293 for(rate=0;rate<5;rate++) { 294 if((opus_rates[rate]*3/fp3s)!=opus_packet_get_samples_per_frame(packet,opus_rates[rate]))test_failed(); 1768 int rate,c,app,cfgs,err,useerr; local [all...] |
test_opus_encode.c | 241 int rate; local 245 rate=rates[j]+fast_rand()%rates[j]; 271 if(opus_encoder_ctl(enc, OPUS_SET_BITRATE(rate))!=OPUS_OK)test_failed(); 310 fprintf(stdout," Mode %s FB encode %s, %6d bps OK.\n",mstrings[modes[j]],rc==0?" VBR":rc==1?"CVBR":" CBR",rate); 327 int rate; local 333 rate=rates[j]+fast_rand()%rates[j]; 335 if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_BITRATE(rate))!=OPUS_OK)test_failed(); 386 fprintf(stdout," Mode %s NB dual-mono MS encode %s, %6d bps OK.\n",mstrings[modes[j]],rc==0?" VBR":rc==1?"CVBR":" CBR",rate);
|
/external/libvpx/libvpx/vp8/encoder/ |
encodemb.c | 128 int rate; member in struct:vp8_token_state 195 tokens[eob][0].rate = 0; 215 rate0 = tokens[next][0].rate; 216 rate1 = tokens[next][1].rate; 236 tokens[i][0].rate = base_bits + (best ? rate1 : rate0); 243 rate0 = tokens[next][0].rate; 244 rate1 = tokens[next][1].rate; 296 tokens[i][1].rate = base_bits + (best ? rate1 : rate0); 314 tokens[next][0].rate += mb->token_costs[type][band][0][t0]; 318 tokens[next][1].rate += mb->token_costs[type][band][0][t1] [all...] |
/external/libvpx/libvpx/vp9/encoder/ |
vp9_rd.h | 117 int rate; member in struct:RD_COST 122 // Reset the rate distortion cost values to maximum (invalid) value. 124 // Initialize the rate distortion cost values to zero. 142 unsigned int qstep, int *rate, int64_t *dist);
|
/external/speex/libspeex/ |
sb_celp.c | 1170 spx_int32_t i=10, rate, target; local 1221 spx_int32_t rate, target; local [all...] |
/external/tremolo/Tremolo/ |
codec_internal.h | 97 long rate; member in struct:__anon33984
|
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/source/ |
bandwidth_estimator.c | 47 /* Received header rate. First value is for 30 ms packets and second for 60 ms */ 129 * This function updates bottle neck rate received from other side in payload 240 /* store far-side transmission rate */ 375 /* don't allow it to be less than frame rate - 10 ms */ 380 /* compute inverse receiving rate for last packet, in Q19 */ 401 /* Limit inv rate. Note that minBwInv > maxBwInv! */ 408 /* update bottle neck rate estimate */ 440 /* Q9 (only shift arrTimeDiff by 5 to simulate divide by 16 (need to revisit if change sampling rate) DH */ 493 /* Limit to minimum or maximum bottle neck rate (in Q30) */ 504 /* store far-side transmission rate */ 616 int32_t rate; local [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/ |
bandwidth_estimator.c | 164 // We have to adjust the header-rate if the first packet has a 173 /* compute far-side transmission rate */ 189 /* store far-side transmission rate */ 374 /* don't allow it to be less than frame rate - 10 ms */ 378 /* compute inverse receiving rate for last packet */ 386 // don't allow inv rate to be larger than MAX 391 /* update bottle neck rate estimate */ 441 /* limit minimum bottle neck rate */ 460 /* store far-side transmission rate */ 509 /* This function updates the send bottle neck rate */ 612 float rate; local [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/test/ |
simpleKenny.c | 59 double rate; local 140 printf("-rlim rateLim... rate limit in bits/sec, default is the maximum\n"); 143 printf("-ave file....... record average rate of 3 sec intervales and\n"); 157 fprintf(stderr, "\nfixed bottleneck rate of %d bits/s\n\n", bottleneck); 180 printf("cannot open file to write rate %s", averageFileName); 289 printf("cannot set the maximum rate %d.\n", rateLimit); 437 rate = ((double)totalbits * (sampFreqKHz)) / (double)totalsmpls; 441 printf("Sampling Rate............... %d kHz\n", sampFreqKHz); 443 printf("Rate Limit.................. %d bits/sec \n", rateLimit); 454 sampFreqKHz, framecnt, bottleneck, rateLB, rateUB, rate); [all...] |
/frameworks/av/media/libaaudio/src/client/ |
AudioStreamInternal.cpp | 393 int64_t rate = (framesDelta * AAUDIO_NANOS_PER_SECOND) / nanosDelta; local 396 ALOGD("AudioStreamInternal() - measured rate = %lld", (long long) rate);
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
PlayerSession.java | 139 float rate = newState == PlaybackState.STATE_PLAYING ? 1 : 0; local 142 bob.setState(newState, position, rate, SystemClock.elapsedRealtime()); 186 float rate = 0; local 205 rate = 1; 213 bob.setState(pbState, position, rate, SystemClock.elapsedRealtime());
|