/frameworks/support/car/src/main/java/androidx/car/utils/ |
D | ListItemBackgroundResolver.java | 44 public static void setBackground(View view, int currentPosition, int totalItems) { in setBackground() argument 45 if (currentPosition < 0) { in setBackground() 49 if (currentPosition >= totalItems) { in setBackground() 50 throw new IndexOutOfBoundsException("currentPosition: " + currentPosition + "; " in setBackground() 58 } else if (currentPosition == 0) { in setBackground() 61 } else if (currentPosition == totalItems - 1) { in setBackground()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CodecTest.java | 114 int currentPosition = 0; in getCurrentPosition() local 131 currentPosition = mp.getCurrentPosition(); in getCurrentPosition() 134 Log.v(TAG, "mp currentPositon = " + currentPosition + " play duration = " + (t2-t1)); in getCurrentPosition() 138 if (currentPosition < 1000 ) in getCurrentPosition() 141 if ((currentPosition < ((t2-t1) *1.2)) && (currentPosition > 0)) in getCurrentPosition() 149 int currentPosition = 0; in seekTo() local 157 currentPosition = mp.getCurrentPosition(); in seekTo() 163 Log.v(TAG, "CurrentPosition = " + currentPosition); in seekTo() 165 if ((currentPosition > MediaNames.SEEK_TIME *0.8)) in seekTo() 172 int currentPosition = 0; in setLooping() local [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediaplayback/ |
D | MediaPlayerApiTest.java | 109 boolean currentPosition = CodecTest.getCurrentPosition(MediaNames.MP3CBR); in testMP3CBRGetCurrentPosition() 110 assertTrue("MP3CBR GetCurrentPosition", currentPosition); in testMP3CBRGetCurrentPosition() 115 boolean currentPosition = CodecTest.getCurrentPosition(MediaNames.MP3VBR); in testMP3VBRGetCurrentPosition() 116 assertTrue("MP3VBR GetCurrentPosition", currentPosition); in testMP3VBRGetCurrentPosition() 121 boolean currentPosition = CodecTest.getCurrentPosition(MediaNames.MIDI); in testMIDIGetCurrentPosition() 122 assertTrue("MIDI GetCurrentPosition", currentPosition); in testMIDIGetCurrentPosition() 127 boolean currentPosition = CodecTest.getCurrentPosition(MediaNames.AMR); in testAMRGetCurrentPosition() 128 assertTrue("AMR GetCurrentPosition", currentPosition); in testAMRGetCurrentPosition()
|
/frameworks/base/core/java/android/speech/tts/ |
D | BlockingAudioTrack.java | 277 int currentPosition = 0; in blockUntilCompletion() local 280 while ((currentPosition = audioTrack.getPlaybackHeadPosition()) < lengthInFrames && in blockUntilCompletion() 283 final long estimatedTimeMs = ((lengthInFrames - currentPosition) * 1000) / in blockUntilCompletion() 290 if (currentPosition == previousPosition) { in blockUntilCompletion() 303 previousPosition = currentPosition; in blockUntilCompletion() 307 " Playback position : " + currentPosition + ", Length in frames : " in blockUntilCompletion()
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/media/ |
D | MediaControllerAdapterTest.java | 674 long currentPosition = position; in createPlaybackStatePlaying() local 675 playbackStateBuilder.setState(playState, currentPosition, (float) 1.0).setActions( in createPlaybackStatePlaying() 689 long currentPosition = position; in createPlaybackStateNotPlaying() local 690 playbackStateBuilder.setState(playState, currentPosition, (float) 1.0).setActions( in createPlaybackStateNotPlaying() 707 long currentPosition = position; in createPlaybackStatePlayingWithBufferedPosition() local 708 playbackStateBuilder.setState(playState, currentPosition, (float) 1.0).setActions( in createPlaybackStatePlayingWithBufferedPosition() 726 long currentPosition = position; in createPlaybackStateNotPlayingWithBufferedPosition() local 727 playbackStateBuilder.setState(playState, currentPosition, (float) 1.0).setActions( in createPlaybackStateNotPlayingWithBufferedPosition() 780 long currentPosition = 0L; in createPlaybackStateForTesting() local 783 builder.setState(playbackStateCompat, currentPosition, playbackSpeed); in createPlaybackStateForTesting()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | SmsMessageBase.java | 362 int currentPosition, int byteLimit, CharSequence msgBody) { in findNextUnicodePosition() argument 363 int nextPos = Math.min(currentPosition + byteLimit / 2, msgBody.length()); in findNextUnicodePosition() 380 if (breakPos > currentPosition) { in findNextUnicodePosition()
|
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
D | PlaybackTransportControlGlueSample.java | 357 long currentPosition = getCurrentPosition(); in createPlaybackStateBasedOnAdapterState() local 375 .setState(PlaybackStateCompat.STATE_STOPPED, currentPosition, playbackSpeed) in createPlaybackStateBasedOnAdapterState() 379 .setState(PlaybackStateCompat.STATE_PLAYING, currentPosition, playbackSpeed) in createPlaybackStateBasedOnAdapterState() 383 .setState(PlaybackStateCompat.STATE_PAUSED, currentPosition, playbackSpeed) in createPlaybackStateBasedOnAdapterState()
|
D | MediaSessionService.java | 596 long currentPosition = getCurrentPosition(); in createPlaybackStateBuilder() local 607 playbackStateBuilder.setState(playState, currentPosition, playbackSpeed in createPlaybackStateBuilder()
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
D | PduComposer.java | 1032 public int currentPosition = 0; field in PduComposer.LengthRecordNode 1081 temp.currentPosition = mPosition; in newbuf() 1097 int currentPosition = mPosition; in pop() local 1100 mPosition = stack.currentPosition; in pop() 1109 toCopy.currentPosition = currentPosition; in pop() 1117 toCopy.currentPosition); in copy()
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
D | LinearSnapHelper.java | 80 final int currentPosition = layoutManager.getPosition(currentView); in findTargetSnapPosition() local 81 if (currentPosition == RecyclerView.NO_POSITION) { in findTargetSnapPosition() 121 int targetPos = currentPosition + deltaJump; in findTargetSnapPosition()
|
/frameworks/support/media-widget/src/main/java/androidx/media/widget/ |
D | MediaControlView2.java | 847 int currentPosition = getCurrentPosition(); in setProgress() local 849 positionOnProgressBar = (int) (MAX_PROGRESS * (long) currentPosition / mDuration); in setProgress() 851 if (mProgress != null && currentPosition != mDuration) { in setProgress() 867 mCurrentTime.setText(stringForTime(currentPosition)); in setProgress() 874 if (currentPosition <= AD_SKIP_WAIT_TIME_MS) { in setProgress() 880 ((AD_SKIP_WAIT_TIME_MS - currentPosition) / 1000 + 1)); in setProgress() 893 (mDuration - currentPosition < 0) ? 0 : (mDuration - currentPosition); in setProgress() 900 return currentPosition; in setProgress()
|
/frameworks/av/packages/MediaComponents/src/com/android/widget/ |
D | MediaControlView2Impl.java | 706 int currentPosition = getCurrentPosition(); in setProgress() local 708 positionOnProgressBar = (int) (MAX_PROGRESS * (long) currentPosition / mDuration); in setProgress() 710 if (mProgress != null && currentPosition != mDuration) { in setProgress() 726 mCurrentTime.setText(stringForTime(currentPosition)); in setProgress() 733 if (currentPosition <= AD_SKIP_WAIT_TIME_MS) { in setProgress() 739 ((AD_SKIP_WAIT_TIME_MS - currentPosition) / 1000 + 1)); in setProgress() 752 (mDuration - currentPosition < 0) ? 0 : (mDuration - currentPosition); in setProgress() 759 return currentPosition; in setProgress()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
D | DividerView.java | 227 int currentPosition = getCurrentPosition(); 248 stopDragging(currentPosition, nextTarget, 250, Interpolators.FAST_OUT_SLOW_IN);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayContent.java | 3408 final int currentPosition = mChildren.indexOf(child); in positionChildAt() local 3409 super.positionChildAt(currentPosition, child, false /* includingParents */); in positionChildAt()
|