Home
last modified time | relevance | path

Searched refs:mPosition (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/av/media/libaaudio/src/utility/
DFixedBlockReader.cpp27 mPosition = mSize; in FixedBlockReader()
32 mPosition = mSize; // Indicate no data in storage. in open()
38 int32_t dataAvailable = mSize - mPosition; in readFromStorage()
42 memcpy(buffer, mStorage + mPosition, bytesToRead); in readFromStorage()
43 mPosition += bytesToRead; in readFromStorage()
51 if (mPosition < mSize) { in processVariableBlock()
64 mPosition = 0; in processVariableBlock()
DFixedBlockWriter.cpp29 int32_t roomAvailable = mSize - mPosition; in writeToStorage()
33 memcpy(mStorage + mPosition, buffer, bytesToStore); in writeToStorage()
34 mPosition += bytesToStore; in writeToStorage()
43 if (mPosition > 0) { in processVariableBlock()
48 if (mPosition == mSize) { in processVariableBlock()
50 mPosition = 0; in processVariableBlock()
DFixedBlockAdapter.cpp29 mPosition = 0; in open()
38 mPosition = 0; in close()
/frameworks/av/include/media/
DAudioTimestamp.h28 AudioTimestamp() : mPosition(0) { in AudioTimestamp()
33 uint32_t mPosition; // a frame position in AudioTrack::getPosition() units variable
68 int64_t mPosition[LOCATION_MAX]; member
91 memset(mPosition, 0, sizeof(mPosition)); // actually not necessary if time is -1 in clear()
113 *position = mPosition[i];
130 timestamp->mPosition = position;
145 << mPosition[i] << " time: " << mTimeNs[i] << "\n"; in toString()
/frameworks/av/media/libaudioclient/include/media/
DAudioTimestamp.h28 AudioTimestamp() : mPosition(0) { in AudioTimestamp()
33 uint32_t mPosition; // a frame position in AudioTrack::getPosition() units variable
68 int64_t mPosition[LOCATION_MAX]; member
91 memset(mPosition, 0, sizeof(mPosition)); // actually not necessary if time is -1 in clear()
113 *position = mPosition[i];
130 timestamp->mPosition = position;
145 << mPosition[i] << " time: " << mTimeNs[i] << "\n"; in toString()
/frameworks/base/wifi/java/android/net/wifi/aware/
DTlvBufferUtils.java67 private int mPosition; field in TlvBufferUtils.TlvConstructor
153 mArray[mPosition++] = b; in putByte()
175 System.arraycopy(array, offset, mArray, mPosition, length); in putByteArray()
177 mPosition += length; in putByteArray()
224 Memory.pokeShort(mArray, mPosition, data, ByteOrder.BIG_ENDIAN); in putShort()
225 mPosition += 2; in putShort()
242 Memory.pokeInt(mArray, mPosition, data, ByteOrder.BIG_ENDIAN); in putInt()
243 mPosition += 4; in putInt()
288 return mPosition; in getActualLength()
292 if (mPosition + mTypeSize + mLengthSize + dataLength > mArrayLength) { in checkLength()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DCompletionInfo.java53 private final int mPosition; field in CompletionInfo
68 mPosition = index; in CompletionInfo()
89 mPosition = index; in CompletionInfo()
96 mPosition = source.readInt(); in CompletionInfo()
114 return mPosition; in getPosition()
136 return "CompletionInfo{#" + mPosition + " \"" + mText in toString()
148 dest.writeInt(mPosition); in writeToParcel()
/frameworks/support/transition/api14/android/support/transition/
DPathProperty.java40 private final float[] mPosition = new float[2]; field in PathProperty
59 mPathMeasure.getPosTan(mPathLength * fraction, mPosition, null); in set()
60 mPointF.x = mPosition[0]; in set()
61 mPointF.y = mPosition[1]; in set()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DDocumentLoader.java252 int mPosition; field in DocumentLoader.LoaderTask
265 mPosition = 0; in LoaderTask()
271 mPosition = 0; in loadObjectHandles()
318 if (mPosition == 0) { in loadObjectInfoList()
329 for (int chunkEnd = mPosition + count; in loadObjectInfoList()
330 mPosition < mObjectHandles.length && mPosition < chunkEnd; in loadObjectInfoList()
331 mPosition++) { in loadObjectInfoList()
334 mIdentifier.mDeviceId, mObjectHandles[mPosition])); in loadObjectInfoList()
391 if (mPosition >= mObjectHandles.length) { in loadObjectInfoList()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
DFragmentRetainInstanceSupport.java102 int mPosition; field in FragmentRetainInstanceSupport.RetainedFragment
123 while (!mReady || mPosition >= max) {
136 mPosition++;
138 mProgressBar.setProgress(mPosition);
229 mPosition = 0; in restart()
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
DPduComposer.java98 protected int mPosition = 0; field in PduComposer
141 mPosition = 0; in PduComposer()
189 mPosition = mPosition + length; in arraycopy()
197 mPosition ++; in append()
654 mPosition = 0; in makeReadRecInd()
702 mPosition = 0; in makeNotifyResp()
734 mPosition = 0; in makeAckInd()
763 mPosition = 0; in makeSendReqPdu()
995 mPosition += len; in makeMessageBody()
1052 return mPosition - c_pos; in getLength()
[all …]
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp543 mPosition = 0; in set()
554 mStartTs.mPosition = 0; in set()
586 mStartTs.mPosition = 0; in start()
595 mPosition = 0; in start()
608 + mStartEts.mPosition[ExtendedTimestamp::LOCATION_SERVER]), in start()
611 mFramesWrittenServerOffset = -mStartEts.mPosition[ExtendedTimestamp::LOCATION_SERVER]; in start()
627 mNewPosition = mPosition + mUpdatePeriod; in start()
1187 mPosition = 0; in reload()
2247 mPosition = mReleased; in restoreTrack_l()
2313 mPosition += delta; in updateAndGetPosition_l()
[all …]
DAudioTrackShared.cpp568 mState.mPosition = (uint32_t) position; in setBufferPosition()
910 size_t position = localState->mPosition; in updateStateWithLoop()
927 localState->mPosition = position; in updateStateWithLoop()
940 if (update.mPosition > mFrameCount) { in updateStateWithPosition()
942 } else if (localState->mLoopCount != 0 && update.mPosition >= localState->mLoopEnd) { in updateStateWithPosition()
945 localState->mPosition = update.mPosition; in updateStateWithPosition()
977 mFramesReady = mFrameCount - mState.mPosition; in pollPosition()
982 + mFrameCount - mState.mPosition; in pollPosition()
989 posLoop.mBufferPosition = (uint32_t) mState.mPosition; in pollPosition()
993 return (ssize_t) mState.mPosition; in pollPosition()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPagedTileLayout.java34 private int mPosition; field in PagedTileLayout
90 setPageListening(mPosition, true); in setListening()
92 setPageListening(mPosition + 1, true); in setListening()
108 if (mPosition == position && mOffPage == offPage) return; in setCurrentPage()
110 if (mPosition != position) { in setCurrentPage()
112 setPageListening(mPosition, false); in setCurrentPage()
114 setPageListening(mPosition + 1, false); in setCurrentPage()
123 setPageListening(mPosition + 1, offPage); in setCurrentPage()
127 mPosition = position; in setCurrentPage()
DPageIndicator.java35 private int mPosition = -1; field in PageIndicator
66 setIndex(mPosition >> 1); in setNumPages()
76 int lastPosition = mPosition; in setLocation()
91 if (isVisibleToUser() && Math.abs(mPosition - position) == 1) { in setPosition()
92 animate(mPosition, position); in setPosition()
94 if (DEBUG) Log.d(TAG, "Skipping animation " + isVisibleToUser() + " " + mPosition in setPosition()
98 mPosition = position; in setPosition()
/frameworks/base/media/java/android/media/session/
DPlaybackState.java285 private final long mPosition; field in PlaybackState
300 mPosition = position; in PlaybackState()
313 mPosition = in.readLong(); in PlaybackState()
328 bob.append(", position=").append(mPosition); in toString()
348 dest.writeLong(mPosition); in writeToParcel()
385 return mPosition; in getPosition()
820 private long mPosition;
846 mPosition = from.mPosition;
899 mPosition = position;
1074 return new PlaybackState(mState, mPosition, mUpdateTime, mSpeed, mBufferedPosition,
/frameworks/support/media-compat/java/android/support/v4/media/session/
DPlaybackStateCompat.java517 final long mPosition; field in PlaybackStateCompat
535 mPosition = position; in PlaybackStateCompat()
549 mPosition = in.readLong(); in PlaybackStateCompat()
566 bob.append(", position=").append(mPosition); in toString()
587 dest.writeLong(mPosition); in writeToParcel()
625 return mPosition; in getPosition()
813 mStateObj = PlaybackStateCompatApi22.newInstance(mState, mPosition, in getPlaybackState()
819 mStateObj = PlaybackStateCompatApi21.newInstance(mState, mPosition, in getPlaybackState()
1064 private long mPosition; field in PlaybackStateCompat.Builder
1088 mPosition = source.mPosition; in Builder()
[all …]
/frameworks/wilhelm/src/itf/
DIMIDITime.cpp49 thiz->mPosition = position; in IMIDITime_SetPosition()
67 SLuint32 position = thiz->mPosition; in IMIDITime_GetPosition()
133 thiz->mPosition = 0; in IMIDITime_init()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DCacheUtils.java43 if (view.mRecycler.mCachedViews.get(i).mPosition == position) return; in verifyCacheContainsPosition()
78 (int) position, view.mRecycler.mCachedViews.get(i).mPosition); in verifyCacheDoesNotContainPositions()
86 if (holder.mPosition == position) { in peekAtCachedViewForPosition()
/frameworks/support/emoji/core/src/android/support/text/emoji/
DMetadataListReader.java239 private long mPosition = 0; field in MetadataListReader.InputStreamOpenTypeReader
283 mPosition += skipped; in skip()
289 return mPosition; in getPosition()
297 mPosition += numOfBytes; in read()
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/
DAdapterHelperTest.java86 if (vh.mPosition == position && !vh.isRemoved()) { in cleanState()
97 if (holder.mPosition >= positionEnd) { in cleanState()
99 } else if (holder.mPosition >= positionStart) { in cleanState()
110 if (holder.mPosition >= positionEnd) { in cleanState()
112 } else if (holder.mPosition >= positionStart) { in cleanState()
122 if (holder.mPosition >= positionStart && holder.mPosition < positionEnd) { in cleanState()
156 if (holder != null && holder.mPosition >= positionStart) { in cleanState()
175 if (holder == null || holder.mPosition < start || holder.mPosition > end) { in cleanState()
178 if (holder.mPosition == from) { in cleanState()
210 viewHolder.mPosition = position; in addViewHolder()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DStaggeredGridLayoutManager.java302 .getFirstFullSpanItemInRange(minPos, invalidFsi.mPosition, in checkForGaps()
305 mLazySpanLookup.forceInvalidateAfter(invalidFsi.mPosition); in checkForGaps()
307 mLazySpanLookup.forceInvalidateAfter(validFsi.mPosition + 1); in checkForGaps()
670 updateLayoutState(anchorInfo.mPosition, state);
677 mLayoutState.mCurrentPosition = anchorInfo.mPosition + mLayoutState.mItemDirection;
685 mLayoutState.mCurrentPosition = anchorInfo.mPosition + mLayoutState.mItemDirection;
831 anchorInfo.mPosition = 0;
839 anchorInfo.mPosition = mLastLayoutFromEnd
865 anchorInfo.mPosition = mShouldReverseLayout ? getLastChildPosition()
907 anchorInfo.mPosition = mPendingScrollPosition;
[all …]
/frameworks/av/services/audioflinger/
DFastMixer.cpp361 perTrackTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = in onWork()
364 perTrackTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = 0; in onWork()
367 perTrackTimestamp.mPosition[ExtendedTimestamp::LOCATION_SERVER] = trackFramesWritten; in onWork()
475 timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL]; in onWork()
479 mTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = in onWork()
480 timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL]; in onWork()
498 mTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = 0; in onWork()
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/
DPhotoViewFragment.java109 protected int mPosition; field in PhotoViewFragment
199 mPosition = bundle.getInt(ARG_POSITION); in onCreate()
252 mCallback.addScreenListener(mPosition, this); in onResume()
295 mCallback.removeScreenListener(mPosition); in onPause()
392 mCallback.onNewPhotoLoaded(mPosition); in onLoadFinished()
535 if (cursor.moveToPosition(mPosition) && !isPhotoBound()) { in onCursorChanged()
563 return mPosition; in getPosition()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java193 private final int mPosition;
196 this.mPosition = position;
212 switch (mPosition) {

1234