/frameworks/support/v4/java/android/support/v4/media/session/ |
H A D | IMediaSession.aidl | 62 void rate(in RatingCompat rating);
|
H A D | PlaybackStateCompat.java | 302 float rate, long actions, CharSequence errorMessage, long updateTime, 308 mSpeed = rate; 840 * The rate is a multiple of normal playback and should be 0 when paused 841 * and negative when rewinding. Normal playback rate is 1.0. 861 * @param playbackSpeed The current rate of playback as a multiple of 875 * The rate is a multiple of normal playback and should be 0 when paused 876 * and negative when rewinding. Normal playback rate is 1.0. 301 PlaybackStateCompat(int state, long position, long bufferedPosition, float rate, long actions, CharSequence errorMessage, long updateTime, List<PlaybackStateCompat.CustomAction> customActions, long activeItemId, Bundle extras) argument
|
/frameworks/base/core/java/android/hardware/ |
H A D | SensorManager.java | 317 /** rate suitable for games */ 319 /** rate suitable for the user interface */ 321 /** rate (default) suitable for screen orientation changes */ 327 * had no contact with what it was measuring (for example, the heart rate 574 * @param rate 575 * rate of events. This is only a hint to the system. events may be 576 * received faster or slower than the specified rate. Usually events 585 public boolean registerListener(SensorListener listener, int sensors, int rate) { argument 586 return getLegacySensorManager().registerListener(listener, sensors, rate); 708 * @param samplingPeriodUs The rate { 1795 getDelay(int rate) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
H A D | InformationElementUtil.java | 622 * Use frequency, max supported rate, and the existence of VHT, HT & ERP fields in scan 740 int rate = getRateFromByte(data.get()); 741 if (rate > 0) { 742 mRates.add(rate); 759 for (Integer rate : mRates) { 760 sbuf.append(String.format("%.1f", (double) rate / 1000000) + ", ");
|
/frameworks/av/media/libstagefright/codecs/vorbis/dec/ |
H A D | SoftVorbis.cpp | 155 vorbisParams->nSampleRate = mVi->rate; 190 pcmParams->nSamplingRate = mVi->rate; 438 + (mNumFramesOutput * 1000000ll) / mVi->rate;
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioPort.cpp | 86 uint32_t rate = ratesToExport[rateIndex]; local 87 if (flatenedRates.indexOf(rate) < 0) { 88 flatenedRates.add(rate); 156 // For direct outputs, pick minimum sampling rate: this helps ensuring that the 157 // channel count / sampling rate combination chosen will be supported by the connected 171 // limit sampling rate otherwise 192 // channel count / sampling rate combination chosen will be supported by the connected 338 ALOGV("%s Port[nm:%s] profile rate=%d, format=%d, channels=%d", __FUNCTION__, mName.string(),
|
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmElement.h | 54 double rate,
|
H A D | WebmElement.cpp | 309 double rate, 331 audioInfo.push_back(new WebmFloat(kMkvSamplingFrequency, rate)); 307 AudioTrackEntry( int chans, double rate, const sp<ABuffer> &buf, int bps, uint64_t uid, bool lacing, const char *lang) argument
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
H A D | AudioPort.h | 147 void pickSamplingRate(uint32_t &rate,const SampleRateVector &samplingRates) const;
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaRecorder.cpp | 292 android_media_MediaRecorder_setVideoFrameRate(JNIEnv *env, jobject thiz, jint rate) argument 294 ALOGV("setVideoFrameRate(%d)", rate); 295 if (rate <= 0) { 296 jniThrowException(env, "java/lang/IllegalArgumentException", "invalid frame rate"); 300 process_media_recorder_call(env, mr->setVideoFrameRate(rate), "java/lang/RuntimeException", "setVideoFrameRate failed.");
|
H A D | android_media_MediaPlayer.cpp | 447 AudioPlaybackRate rate; local 448 status_t err = mp->getPlaybackSettings(&rate); 452 rate.mSpeed = pbp.audioRate.mSpeed; 456 rate.mPitch = pbp.audioRate.mPitch; 460 rate.mFallbackMode = pbp.audioRate.mFallbackMode; 464 rate.mStretchMode = pbp.audioRate.mStretchMode; 468 err = mp->setPlaybackSettings(rate);
|
/frameworks/av/media/libstagefright/ |
H A D | Utils.cpp | 692 msg->setInt32("sample-rate", sampleRate); 746 msg->setInt32("frame-rate", fps); 1325 if (msg->findInt32("sample-rate", &sampleRate)) { 1369 if (msg->findInt32("frame-rate", &fps) && fps > 0) { 1371 } else if (msg->findFloat("frame-rate", &fpsFloat) 1577 ALOGV("track of type '%s' does not publish sample rate", mime); 1612 // Check if offload is possible for given format, stream type, sample rate, 1613 // bit rate, duration, video and streaming 1701 void writeToAMessage(sp<AMessage> msg, const AudioPlaybackRate &rate) { argument 1702 msg->setFloat("speed", rate [all...] |
H A D | OggExtractor.cpp | 185 return granulePos * 1000000ll / mVi.rate; 741 timeUs = mCurrentPage.mPrevPacketPos * 1000000ll / mVi.rate; 746 timeUs = mCurrentPage.mPrevPacketPos * 1000000ll / mVi.rate; 1106 mMeta->setInt32(kKeySampleRate, mVi.rate);
|
/frameworks/base/core/jni/ |
H A D | android_media_AudioTrack.cpp | 817 AudioPlaybackRate rate = lpTrack->getPlaybackRate(); local 820 rate.mSpeed = pbp.audioRate.mSpeed; 824 rate.mPitch = pbp.audioRate.mPitch; 828 rate.mFallbackMode = pbp.audioRate.mFallbackMode; 832 rate.mStretchMode = pbp.audioRate.mStretchMode; 836 if (lpTrack->setPlaybackRate(rate) != OK) { 1065 ALOGE("AudioTrack::getMinFrameCount() for sample rate %d failed with status %d",
|
/frameworks/base/media/jni/audioeffect/ |
H A D | android_media_Visualizer.cpp | 648 android_media_setPeriodicCapture(JNIEnv *env, jobject thiz, jint rate, jboolean jWaveform, jboolean jFft) argument 660 ALOGV("setPeriodicCapture: rate %d, jWaveform %d jFft %d", 661 rate, 674 rate));
|
/frameworks/base/media/java/android/media/ |
H A D | MediaCodecInfo.java | 541 * frame rate}. Use 543 * to clear any existing frame rate setting in the format. 960 * Returns the array of supported sample rate ranges. The 1020 * Query whether the sample rate is supported by the codec. 1030 for (int rate: rates) { 1031 if (supports(rate, null /* channels */)) { 1032 ranges.add(Range.create(rate, rate)); 1142 if (info.containsKey("sample-rate-ranges")) { 1143 String[] rateStrings = info.getString("sample-rate 1511 supports(Integer width, Integer height, Number rate) argument [all...] |
H A D | AudioRecord.java | 173 * The audio data sampling rate in Hz. 255 * @param sampleRateInHz the sample rate expressed in Hertz. 44100Hz is currently the only 256 * rate that is guaranteed to work on all devices, but other rates such as 22050, 259 * which is usually the sample rate of the source. 260 * {@link #getSampleRate()} can be used to retrieve the actual sample rate chosen. 299 * configuring the audio format parameters such as encoding, channel mask and sample rate. 347 int rate = format.getSampleRate(); 348 if (rate == AudioFormat.SAMPLE_RATE_UNSPECIFIED) { 349 rate = 0; 358 audioParamCheck(attributes.getCapturePreset(), rate, encodin [all...] |
H A D | AudioTrack.java | 60 * (high sampling rate, bits per sample ...)</li> 250 * The audio data source sampling rate in Hz. 332 * @param sampleRateInHz the initial source sample rate expressed in Hz. 334 * which is usually the sample rate of the sink. 335 * {@link #getSampleRate()} can be used to retrieve the actual sample rate chosen. 386 * @param sampleRateInHz the initial source sample rate expressed in Hz. 388 * which is usually the sample rate of the sink. 439 * configuring the audio format parameters such as encoding, channel mask and sample rate. 480 int rate = format.getSampleRate(); 481 if (rate [all...] |
H A D | MediaRecorder.java | 502 * Set video frame capture rate. This can be used to set a different video frame capture 503 * rate than the recorded video's playback rate. This method also sets the recording mode 514 * given rate due to camera/encoder limitations. However it tries to be as close as 612 * Sets the frame rate of the video to be captured. Must be called 616 * @param rate the number of frames per second of video to capture 620 * NOTE: On some devices that have auto-frame rate, this sets the 621 * maximum frame rate, not a constant frame rate. Actual frame rate 624 setVideoFrameRate(int rate) argument [all...] |
/frameworks/base/cmds/bootanimation/ |
H A D | AudioPlayer.cpp | 271 config.rate = chunkFmt->sample_rate;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
H A D | Camera2RecordingTest.java | 221 mCollector.expectTrue("Unable to find the fixed frame rate fps range for " + 347 // Make sure camera output frame rate is set to correct value. 404 assertTrue("Frame rate range " + fpsRange + " (for profile ID " + profileId + 438 Log.v(TAG, "video frame rate: " + profile.videoFrameRate + 688 // For non-burst test, use number of frames to also double check video frame rate. 689 // Burst video snapshot is allowed to cause frame rate drop, so do not use number 759 * @param videoFrameRate The video frame rate 875 // Make sure camera output frame rate is set to correct value. 1059 ". Video frame rate might be too fast."); 1072 * Calculate a video bit rate base [all...] |
/frameworks/wilhelm/src/android/ |
H A D | AudioPlayer_to_android.cpp | 977 // checkDataFormat() already checked sample rate 1796 SLresult android_audioPlayer_setPlaybackRateAndConstraints(CAudioPlayer *ap, SLpermille rate, argument 1802 assert((AUDIOTRACK_MIN_PLAYBACKRATE_PERMILLE <= rate) && 1803 (rate <= AUDIOTRACK_MAX_PLAYBACKRATE_PERMILLE)); 1805 // get the content sample rate 1807 // apply the SL ES playback rate on the AudioTrack as a factor of its content sample rate 1809 ap->mAudioTrack->setSampleRate(contentRate * (rate/1000.0f)); 1814 assert((MEDIAPLAYER_MIN_PLAYBACKRATE_PERMILLE <= rate) && 1815 (rate < [all...] |
/frameworks/base/core/java/android/view/ |
H A D | DisplayInfo.java | 462 * Returns the id of the "default" mode with the given refresh rate, or {@code 0} if no suitable 493 for (Float rate : rates) { 494 result[i++] = rate;
|
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | WindowOrientationListener.java | 79 * @param rate at which sensor events are processed (see also 86 private WindowOrientationListener(Context context, Handler handler, int rate) { argument 89 mRate = rate;
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | RequestThreadManager.java | 653 for (int[] rate : frameRates) { 654 int minFps = rate[Camera.Parameters.PREVIEW_FPS_MIN_INDEX]; 655 int maxFps = rate[Camera.Parameters.PREVIEW_FPS_MAX_INDEX];
|