Home
last modified time | relevance | path

Searched refs:currentPosition (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/
DComplicationLayoutParams.java239 for (int currentPosition = FIRST_POSITION; currentPosition <= LAST_POSITION; in validateDirection()
240 currentPosition <<= 1) { in validateDirection()
241 if ((position & currentPosition) == currentPosition in validateDirection()
242 && INVALID_DIRECTIONS.containsKey(currentPosition) in validateDirection()
243 && (direction & INVALID_DIRECTIONS.get(currentPosition)) != 0) { in validateDirection()
264 for (int currentPosition = FIRST_POSITION; currentPosition <= LAST_POSITION; in iteratePositions()
265 currentPosition <<= 1) { in iteratePositions()
266 if ((position & currentPosition) == currentPosition) { in iteratePositions()
267 consumer.accept(currentPosition); in iteratePositions()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCodecTest.java105 int currentPosition = 0; in getCurrentPosition() local
122 currentPosition = mp.getCurrentPosition(); in getCurrentPosition()
125 Log.v(TAG, "mp currentPositon = " + currentPosition + " play duration = " + (t2-t1)); in getCurrentPosition()
129 if (currentPosition < 1000 ) in getCurrentPosition()
132 if ((currentPosition < ((t2-t1) *1.2)) && (currentPosition > 0)) in getCurrentPosition()
140 int currentPosition = 0; in seekTo() local
148 currentPosition = mp.getCurrentPosition(); in seekTo()
154 Log.v(TAG, "CurrentPosition = " + currentPosition); in seekTo()
156 if ((currentPosition > MediaNames.SEEK_TIME *0.8)) in seekTo()
163 int currentPosition = 0; in setLooping() local
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediaplayback/
DMediaPlayerApiTest.java107 boolean currentPosition = CodecTest.getCurrentPosition(MediaNames.MP3CBR); in testMP3CBRGetCurrentPosition()
108 assertTrue("MP3CBR GetCurrentPosition", currentPosition); in testMP3CBRGetCurrentPosition()
113 boolean currentPosition = CodecTest.getCurrentPosition(MediaNames.MP3VBR); in testMP3VBRGetCurrentPosition()
114 assertTrue("MP3VBR GetCurrentPosition", currentPosition); in testMP3VBRGetCurrentPosition()
119 boolean currentPosition = CodecTest.getCurrentPosition(MediaNames.MIDI); in testMIDIGetCurrentPosition()
120 assertTrue("MIDI GetCurrentPosition", currentPosition); in testMIDIGetCurrentPosition()
125 boolean currentPosition = CodecTest.getCurrentPosition(MediaNames.AMR); in testAMRGetCurrentPosition()
126 assertTrue("AMR GetCurrentPosition", currentPosition); in testAMRGetCurrentPosition()
/frameworks/base/core/java/android/speech/tts/
DBlockingAudioTrack.java282 int currentPosition = 0; in blockUntilCompletion() local
285 while ((currentPosition = audioTrack.getPlaybackHeadPosition()) < lengthInFrames && in blockUntilCompletion()
288 final long estimatedTimeMs = ((lengthInFrames - currentPosition) * 1000) / in blockUntilCompletion()
295 if (currentPosition == previousPosition) { in blockUntilCompletion()
308 previousPosition = currentPosition; in blockUntilCompletion()
312 " Playback position : " + currentPosition + ", Length in frames : " in blockUntilCompletion()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/viewmodel/
DSeekBarViewModel.kt62 var currentPosition = this.position in computePosition() variable
74 currentPosition = position in computePosition()
77 return currentPosition in computePosition()
305 val currentPosition = playbackState?.computePosition(duration.toLong())?.toInt() in checkPlaybackPosition() constant
306 if (currentPosition != null && _data.elapsedTime != currentPosition) { in checkPlaybackPosition()
307 _data = _data.copy(elapsedTime = currentPosition) in checkPlaybackPosition()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DMirrorWindowControlTest.java113 Point currentPosition = new Point(lp.x, lp.y); in move_offsetIsCorrect() local
114 assertEquals(-10, currentPosition.x - startPosition.x); in move_offsetIsCorrect()
115 assertEquals(-20, currentPosition.y - startPosition.y); in move_offsetIsCorrect()
/frameworks/base/telephony/common/com/google/android/mms/pdu/
DPduComposer.java1071 public int currentPosition = 0; field in PduComposer.LengthRecordNode
1122 temp.currentPosition = mPosition; in newbuf()
1139 int currentPosition = mPosition; in pop() local
1142 mPosition = stack.currentPosition; in pop()
1151 toCopy.currentPosition = currentPosition; in pop()
1160 toCopy.currentPosition); in copy()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsMessageBase.java437 int currentPosition, int byteLimit, CharSequence msgBody) { in findNextUnicodePosition() argument
438 int nextPos = Math.min(currentPosition + byteLimit / 2, msgBody.length()); in findNextUnicodePosition()
455 if (breakPos > currentPosition) { in findNextUnicodePosition()
/frameworks/base/media/java/android/media/
DAudioMetadata.java769 int currentPosition = output.position(); in pack() local
771 output.putInt(currentPosition - payloadIdx); in pack()
772 output.position(currentPosition); in pack()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
DBiometricViewSizeBinder.kt113 var currentPosition: PromptPosition = PromptPosition.Bottom in <lambda>() variable
117 when (currentPosition) { in <lambda>()
483 currentPosition = position in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DDividerSnapAlgorithm.java449 public int calculateNearestSnapPosition(int currentPosition) { in calculateNearestSnapPosition() argument
450 return snap(currentPosition, /* hardDismiss */ true).snapPosition; in calculateNearestSnapPosition()
DSplitLayout.java552 public void snapToTarget(int currentPosition, DividerSnapAlgorithm.SnapTarget snapTarget) { in snapToTarget() argument
555 flingDividerPosition(currentPosition, snapTarget.position, FLING_RESIZE_DURATION, in snapToTarget()
560 flingDividerPosition(currentPosition, snapTarget.position, FLING_RESIZE_DURATION, in snapToTarget()
565 flingDividerPosition(currentPosition, snapTarget.position, FLING_RESIZE_DURATION, in snapToTarget()