Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DTlvBufferUtils.java66 private int mPosition; field in TlvBufferUtils.TlvConstructor
86 mPosition = 0; in TlvConstructor()
112 mPosition = 0; in wrap()
126 mPosition = 0; in allocate()
168 mArray[mPosition++] = b; in putByte()
180 mArray[mPosition++] = b; in putRawByte()
202 System.arraycopy(array, offset, mArray, mPosition, length); in putByteArray()
204 mPosition += length; in putByteArray()
233 System.arraycopy(array, 0, mArray, mPosition, array.length); in putRawByteArray()
234 mPosition += array.length; in putRawByteArray()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DVer2DictEncoder.java48 private int mPosition; field in Ver2DictEncoder
181 mOutStream.write(mBuffer, 0, mPosition); in writeDictionary()
190 mPosition = position; in setPosition()
195 return mPosition; in getPosition()
206 mPosition = BinaryDictEncoderUtils.writeUIntToBuffer(mBuffer, mPosition, encodedPtNodeCount, in writePtNodeCount()
214 mPosition = BinaryDictEncoderUtils.writeUIntToBuffer(mBuffer, mPosition, in writePtNodeFlags()
221 mPosition = CharEncoding.writeCharArray(codePoints, mBuffer, mPosition, in writeCharacters()
224 mBuffer[mPosition++] = FormatSpec.PTNODE_CHARACTERS_TERMINATOR; in writeCharacters()
230 mPosition = BinaryDictEncoderUtils.writeUIntToBuffer(mBuffer, mPosition, frequency, in writeFrequency()
239 mPosition += BinaryDictEncoderUtils.writeChildrenPosition(mBuffer, mPosition, in writeChildrenPosition()
[all …]
DBinaryDictIOUtils.java64 public int mPosition; field in BinaryDictIOUtils.Position
94 p.mNumOfPtNode + ", position=" + p.mPosition + ", length=" + p.mLength); in readUnigramsAndBigramsBinaryInner()
103 p.mPosition = 0; in readUnigramsAndBigramsBinaryInner()
113 p.mPosition++; in readUnigramsAndBigramsBinaryInner()
123 if (p.mPosition == p.mNumOfPtNode) { in readUnigramsAndBigramsBinaryInner()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DTestItemDetails.java31 private int mPosition; field in TestItemDetails
37 mPosition = RecyclerView.NO_POSITION; in TestItemDetails()
41 mPosition = source.mPosition; in TestItemDetails()
53 mPosition = position; // this is both "adapter position" and "item position". in at()
78 return mPosition; in hashCode()
92 return mPosition == other.mPosition in equals()
99 return mPosition; in getPosition()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DDebugHelper.java56 private int mPosition; field in DebugHelper
91 if (mPosition == 0) { in debugCheck()
100 if (keyCode == sCode[mCodeIndex][mPosition]) { in debugCheck()
101 mPosition++; in debugCheck()
102 } else if (mPosition > 2 || (mPosition == 2 && keyCode != sCode[mCodeIndex][0])) { in debugCheck()
103 mPosition = 0; in debugCheck()
106 if (mPosition == sCode[mCodeIndex].length) { in debugCheck()
107 mPosition = 0; in debugCheck()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DFace.java28 private Rect mPosition; field in Face
35 mPosition = new Rect(); in Face()
37 mPosition.left = Integer.parseInt(tokenizer.nextToken()); in Face()
38 mPosition.top = Integer.parseInt(tokenizer.nextToken()); in Face()
39 mPosition.right = Integer.parseInt(tokenizer.nextToken()); in Face()
40 mPosition.bottom = Integer.parseInt(tokenizer.nextToken()); in Face()
45 return mPosition; in getPosition()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DByteArrayDictBuffer.java27 private int mPosition; field in ByteArrayDictBuffer
31 mPosition = 0; in ByteArrayDictBuffer()
36 return mBuffer[mPosition++] & 0xFF; in readUnsignedByte()
59 return mPosition; in position()
64 mPosition = position; in position()
69 mBuffer[mPosition++] = b; in put()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/pose/
DIntegPoseSource.java70 private Vector3 mPosition = new Vector3(0, 0, 0); field in IntegPoseSource
147 mPosition = new Vector3( in onSensorChanged()
148 (mPosition.x + mSpeed.x * dur) * POS_DAMPED_COEFFICIENT, in onSensorChanged()
149 (mPosition.y + mSpeed.y * dur) * POS_DAMPED_COEFFICIENT, in onSensorChanged()
150 (mPosition.z + mSpeed.z * dur) * POS_DAMPED_COEFFICIENT in onSensorChanged()
152 if (mPosition.lengthSquared() > POS_RESET_DISTANCE_METERS * POS_RESET_DISTANCE_METERS) { in onSensorChanged()
153 mPosition = Vector3.ORIGIN; in onSensorChanged()
162 publish(new Pose(mPosition, Quaternion.multiply(mRotator, base))); in onSensorChanged()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DAnimationView.java54 private float mPosition = 0f; field in AnimationView
72 setPosition(mPosition); in onSizeChanged()
76 return mPosition; in getPosition()
80 mPosition = position; in setPosition()
83 setY((mSpan > 0) ? (mPosition * mSpan) : 0); in setPosition()
85 if (mPosition != 0) { in setPosition()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpFullscreenView.java37 private int mPosition = -1; field in MtpFullscreenView
86 return mPosition; in getPosition()
93 mPosition = position; in setPositionAndBroker()
104 mBroker.setItemChecked(mPosition, isChecked); in onCheckedChanged()
110 if (position == mPosition) { in onCheckedChanged()
118 setChecked(mBroker.isItemChecked(mPosition)); in onBulkCheckedChanged()
/packages/services/Mtp/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()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduComposer.java100 protected int mPosition = 0; field in PduComposer
143 mPosition = 0; in PduComposer()
196 mPosition = mPosition + length; in arraycopy()
204 mPosition++; in append()
663 mPosition = 0; in makeReadRecInd()
711 mPosition = 0; in makeNotifyResp()
743 mPosition = 0; in makeAckInd()
772 mPosition = 0; in makeNotificationInd()
826 mPosition = 0; in makeSendReqPdu()
1062 mPosition += len; in makeMessageBody()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DSafetyEntryPreference.java38 private final PositionInCardList mPosition; field in SafetyEntryPreference
52 mPosition = position; in SafetyEntryPreference()
63 ((SafetyEntryView) holder.itemView).showEntry(mEntry, mPosition, mLaunchTaskId, mViewModel); in onBindViewHolder()
76 return mEntry.equals(o.mEntry) && mPosition == o.mPosition; in hasSameContents()
/packages/apps/Settings/src/com/android/settings/datausage/
DSpinnerPreference.java35 private int mPosition; field in SpinnerPreference
61 mPosition = position; in setSelection()
62 mCurrentObject = mAdapter.getItem(mPosition); in setSelection()
73 spinner.setSelection(mPosition); in onBindViewHolder()
97 mPosition = position;
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DPageIndicator.java58 private int mPosition = -1; field in PageIndicator
111 setIndex(mPosition >> 1); in setNumPages()
123 int lastPosition = mPosition; in setLocation()
143 if (mPosition >= 0 && Math.abs(mPosition - position) == 1) { in setPosition()
144 animate(mPosition, position); in setPosition()
147 Log.d(TAG, "Skipping animation " + mPosition in setPosition()
152 mPosition = position; in setPosition()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DWorkEduCard.java44 private int mPosition = -1; field in WorkEduCard
100 if (mPosition == -1) { in removeCard()
105 rv.getApps().getAdapterItems().remove(mPosition); in removeCard()
108 rv.getAdapter().notifyItemRemoved(mPosition); in removeCard()
120 mPosition = position; in setPosition()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DRenderOverlay.java46 private int[] mPosition = new int[2]; field in RenderOverlay
106 getLocationInWindow(mPosition); in adjustPosition()
110 return mPosition[0]; in getWindowPositionX()
114 return mPosition[1]; in getWindowPositionY()
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortingCursorWrapper.java38 private final int[] mPosition; field in SortingCursorWrapper
45 mPosition = new int[count]; in SortingCursorWrapper()
63 mPosition[i] = i; in SortingCursorWrapper()
85 binarySort(stringValues, isDirs, mPosition, ids, dimension.getSortDirection()); in SortingCursorWrapper()
88 binarySort(longValues, isDirs, mPosition, ids, dimension.getSortDirection()); in SortingCursorWrapper()
101 return mCursor.moveToPosition(mPosition[newPosition]); in onMove()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DSliderPreferenceControllerTest.java73 private int mPosition; field in SliderPreferenceControllerTest.FakeSlider
81 return mPosition; in getSliderPosition()
86 mPosition = position; in setSliderPosition()
/packages/apps/Settings/tests/unit/src/com/android/settings/core/
DSettingsSliderPreferenceControllerTest.java77 private int mPosition; field in SettingsSliderPreferenceControllerTest.FakeSliderPreferenceController
85 return mPosition; in getSliderPosition()
90 mPosition = position; in setSliderPosition()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterDraw.java189 float[] mPosition = new float[2]; in draw() local
206 mPathMeasure.getPosTan(i, mPosition, mTan); in draw()
208 canvas.drawBitmap(brush, mPosition[0] - s2, mPosition[1] - s2, paint); in draw()
DFilterDrawRepresentation.java321 float[] mPosition = new float[2]; in serializeRepresentation() local
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DChannelDataManagerTest.java584 private int mPosition; field in ChannelDataManagerTest.FakeCursor
588 mPosition = -1; in FakeCursor()
611 return mContentProvider.keyAt(mPosition); in getLong()
623 ChannelInfoWrapper channel = mContentProvider.get(mPosition); in getString()
644 ChannelInfoWrapper channel = mContentProvider.get(mPosition); in getInt()
667 return ++mPosition < mContentProvider.getCount(); in moveToNext()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabs.java277 final int mPosition; field in ViewPagerTabs.OnTabLongClickListener
280 mPosition = position; in OnTabLongClickListener()
294 Toast.makeText(context, mPager.getAdapter().getPageTitle(mPosition), Toast.LENGTH_SHORT); in onLongClick()
/packages/apps/Camera2/src/com/android/camera/ui/
DModeListView.java972 private final float mPosition; field in ModeListView.TimeBasedPosition
975 mPosition = position; in TimeBasedPosition()
980 return mPosition; in getPosition()

12