Home
last modified time | relevance | path

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

123

/frameworks/base/libs/hwui/jni/
DByteBufferStreamAdaptor.cpp18 , mPosition(0) in ByteBufferStream()
55 if (size > mLength - mPosition) { in read()
56 size = mLength - mPosition; in read()
63 return this->setPosition(mPosition + size) ? size : 0; in read()
76 mPosition = mLength; in read()
85 mPosition = mLength; in read()
89 mPosition += requested; in read()
97 bool isAtEnd() const override { return mLength == mPosition; } in isAtEnd()
111 size_t getPosition() const override { return mPosition; } in getPosition()
118 long newPosition = mPosition + offset; in move()
[all …]
/frameworks/base/services/core/java/com/android/server/integrity/parser/
DRandomAccessInputStream.java27 private int mPosition; field in RandomAccessInputStream
31 mPosition = 0; in RandomAccessInputStream()
36 return mPosition; in getPosition()
42 mPosition = position; in seek()
47 return mRandomAccessObject.length() - mPosition; in available()
60 mPosition++; in read()
79 mPosition += result; in read()
93 mPosition += skipAmount; in skip()
94 mRandomAccessObject.seek(mPosition); in skip()
/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[location1] - mPosition[location2]; in getLatencyMs()
160 << mPosition[i] << " time: " << mTimeNs[i] << "\n"; in toString()
/frameworks/base/core/java/android/view/
DRoundedCorner.java72 private final @Position int mPosition; field in RoundedCorner
83 mPosition = position; in RoundedCorner()
103 mPosition = position; in RoundedCorner()
114 mPosition = rc.getPosition(); in RoundedCorner()
128 return mPosition; in getPosition()
185 return mPosition == r.mPosition && mRadius == r.mRadius in equals()
194 result = 31 * result + mPosition; in hashCode()
203 + "position=" + getPositionString(mPosition) in toString()
216 out.writeInt(mPosition); in writeToParcel()
/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()
DAAudioUtilities.h274 : mPosition(0) in Timestamp()
277 : mPosition(position) in Timestamp()
280 int64_t getPosition() const { return mPosition; } in getPosition()
286 int64_t mPosition;
DFixedBlockAdapter.cpp25 mPosition = 0; in open()
33 mPosition = 0; in close()
/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/base/telephony/java/com/android/internal/telephony/uicc/asn1/
DAsn1Decoder.java30 private int mPosition; field in Asn1Decoder
61 mPosition = offset; in Asn1Decoder()
67 return mPosition; in getPosition()
72 return mPosition < mEnd; in hasNextNode()
85 if (mPosition >= mEnd) { in nextNode()
89 int offset = mPosition; in nextNode()
148 mPosition = offset + dataLen; in nextNode()
/frameworks/base/packages/SettingsLib/SettingsSpinner/src/com/android/settingslib/widget/
DSettingsSpinnerPreference.java39 private int mPosition; field in SettingsSpinnerPreference
100 return mAdapter == null ? null : mAdapter.getItem(mPosition); in getSelectedItem()
105 if (mPosition == position) { in setSelection()
108 mPosition = position; in setSelection()
118 spinner.setSelection(mPosition); in onBindViewHolder()
131 if (mPosition == position) return;
132 mPosition = position;
/frameworks/base/telephony/java/android/telephony/euicc/
DEuiccRulesAuthTable.java60 private int mPosition; field in EuiccRulesAuthTable.Builder
78 if (mPosition != mPolicyRules.length) { in build()
83 + mPosition); in build()
95 if (mPosition >= mPolicyRules.length) { in add()
96 throw new ArrayIndexOutOfBoundsException(mPosition); in add()
98 mPolicyRules[mPosition] = policyRules; in add()
100 mCarrierIds[mPosition] = carrierId.toArray(new CarrierIdentifier[carrierId.size()]); in add()
102 mPolicyRuleFlags[mPosition] = policyRuleFlags; in add()
103 mPosition++; in add()
/frameworks/base/media/java/android/media/session/
DPlaybackState.java294 private final long mPosition; field in PlaybackState
309 mPosition = position; in PlaybackState()
322 mPosition = in.readLong(); in PlaybackState()
337 bob.append(", position=").append(mPosition); in toString()
357 dest.writeLong(mPosition); in writeToParcel()
394 return mPosition; in getPosition()
702 private long mPosition; field in PlaybackState.Builder
728 mPosition = from.mPosition; in Builder()
781 mPosition = position; in setState()
957 return new PlaybackState(mState, mPosition, mUpdateTime, mSpeed, mBufferedPosition, in build()
/frameworks/base/telephony/common/com/google/android/mms/pdu/
DPduComposer.java101 protected int mPosition = 0; field in PduComposer
149 mPosition = 0; in PduComposer()
200 mPosition = mPosition + length; in arraycopy()
208 mPosition ++; in append()
678 mPosition = 0; in makeReadRecInd()
726 mPosition = 0; in makeNotifyResp()
760 mPosition = 0; in makeAckInd()
789 mPosition = 0; in makeSendRetrievePdu()
1034 mPosition += len; in makeMessageBody()
1092 return mPosition - c_pos; in getLength()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPageIndicator.java44 private int mPosition = -1; field in PageIndicator
100 setIndex(mPosition >> 1); in setNumPages()
139 int lastPosition = mPosition; in setLocation()
154 if (isVisibleToUser() && Math.abs(mPosition - position) == 1) { in setPosition()
155 animate(mPosition, position); in setPosition()
157 if (DEBUG) Log.d(TAG, "Skipping animation " + isVisibleToUser() + " " + mPosition in setPosition()
161 mPosition = position; in setPosition()
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp642 mPosition = 0; in set()
657 mStartTs.mPosition = 0; in set()
745 mStartTs.mPosition = 0; in start()
755 mPosition = 0; in start()
772 + mStartEts.mPosition[ExtendedTimestamp::LOCATION_SERVER]), in start()
776 mFramesWrittenServerOffset -= mStartEts.mPosition[ExtendedTimestamp::LOCATION_SERVER]; in start()
799 mNewPosition = mPosition + mUpdatePeriod; in start()
1535 mPosition = 0; in reload()
2680 mPosition = mReleased; in restoreTrack_l()
2771 mPosition += delta; in updateAndGetPosition_l()
[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/base/services/core/java/com/android/server/wm/
DWindowAnimationSpec.java46 private final Point mPosition = new Point(); field in WindowAnimationSpec
66 mPosition.set(position.x, position.y); in WindowAnimationSpec()
92 tmp.transformation.getMatrix().postTranslate(mPosition.x, mPosition.y); in apply()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthPanelController.java52 @Position private int mPosition = POSITION_BOTTOM; field in AuthPanelController
66 final int left = getLeftBound(mPosition); in getOutline()
71 final int top = getTopBound(mPosition); in getOutline()
113 mPosition = position; in setPosition()
/frameworks/av/services/audioflinger/
DFastMixer.cpp398 perTrackTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = in onWork()
401 perTrackTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = 0; in onWork()
404 perTrackTimestamp.mPosition[ExtendedTimestamp::LOCATION_SERVER] = trackFramesWritten; in onWork()
524 timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL], in onWork()
528 timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL]; in onWork()
532 mTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = in onWork()
533 timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL]; in onWork()
559 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/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityFloatingMenuView.java121 private final Position mPosition; field in AccessibilityFloatingMenuView
206 mPosition = position; in AccessibilityFloatingMenuView()
207 mAlignment = transformToAlignment(mPosition.getPercentageX()); in AccessibilityFloatingMenuView()
227 mPosition.update(transformCurrentPercentageXToEdge(), in AccessibilityFloatingMenuView()
229 mAlignment = transformToAlignment(mPosition.getPercentageX()); in AccessibilityFloatingMenuView()
231 updateLocationWith(mPosition); in AccessibilityFloatingMenuView()
243 onDragEndListener -> onDragEndListener.onDragEnd(mPosition)); in AccessibilityFloatingMenuView()
389 updateLocationWith(mPosition); in setSizeType()
512 updateLocationWith(mPosition); in onWindowInsetsApplied()
637 final int currentLayoutY = (int) (mPosition.getPercentageY() * getMaxWindowY()); in createDefaultLayoutParams()
[all …]
/frameworks/base/media/java/android/media/
DMicrophoneInfo.java152 private Coordinate3F mPosition; field in MicrophoneInfo
180 mPosition = position; in MicrophoneInfo()
282 return mPosition; in getPosition()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java197 private final int mPosition;
200 this.mPosition = position;
216 switch (mPosition) {
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPositionListenerActivity.java94 Rect mPosition = new Rect(); field in PositionListenerActivity.MyPositionReporter
135 mCurrentCount, mPosition.toShortString(), mWidth, mHeight, in updateText()
144 mPosition.set(left, top, right, bottom); in positionChanged()

123