Home
last modified time | relevance | path

Searched refs:mIndex (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DFakeCursor.java31 private int mIndex; field in FakeCursor
37 mIndex = -1; in FakeCursor()
56 return mIndex == 0; in isFirst()
61 return mIndex == mData.length - 1; in isLast()
69 mIndex = 0; in moveToFirst()
78 mIndex = position; in moveToPosition()
84 return mIndex; in getPosition()
89 if (mIndex <= 0) { in moveToPrevious()
92 mIndex--; in moveToPrevious()
98 if (mIndex == mData.length - 1) { in moveToNext()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/
DAsyncQueryServiceTest.java471 int mIndex = 0; field in AsyncQueryServiceTest.TestAsyncQueryService
497 Log.d(TAG, "mWork.length=" + mWork.length + " mIndex=" + mIndex); in onQueryComplete()
499 assertEquals(mWork[mIndex].op, Operation.EVENT_ARG_QUERY); in onQueryComplete()
500 assertEquals(mWork[mIndex].token, token); in onQueryComplete()
507 assertEquals(((Cursor) mWork[mIndex].result).getCount(), cursor.getCount()); in onQueryComplete()
509 mIndex++; in onQueryComplete()
516 Log.d(TAG, "mWork.length=" + mWork.length + " mIndex=" + mIndex); in onInsertComplete()
518 assertEquals(mWork[mIndex].op, Operation.EVENT_ARG_INSERT); in onInsertComplete()
519 assertEquals(mWork[mIndex].token, token); in onInsertComplete()
520 assertEquals(mWork[mIndex].result, uri); in onInsertComplete()
[all …]
/packages/apps/ExactCalculator/src/com/android/calculator2/
DEvaluator.java505 private long mIndex; // Expression index. field in Evaluator.AsyncEvaluator
510 mIndex = index; in AsyncEvaluator()
515 mQuiet = !required || mIndex != MAIN_INDEX; in AsyncEvaluator()
516 mExprInfo = mExprs.get(mIndex); in AsyncEvaluator()
526 mExprs.get(mIndex).mEvaluator = null; in handleTimeout()
527 if (mRequired && mIndex == MAIN_INDEX) { in handleTimeout()
543 if (mIndex != MAIN_INDEX) { in onPreExecute()
581 res = putResultIfAbsent(mIndex, res); in doInBackground()
643 if (mRequired && mIndex == MAIN_INDEX) { in onPostExecute()
644 displayTimeoutMessage(mExprs.get(mIndex).mLongTimeout); in onPostExecute()
[all …]
DCalculatorResult.java62 private long mIndex; // Index of expression we are displaying. field in CalculatorResult
260 mIndex = index; in setEvaluator()
353 final CalculatorExpr expr = mEvaluator.getExpr(mIndex); in onLayout()
356 mEvaluator.requireResult(mIndex, mEvaluationListener, this); in onLayout()
358 mEvaluator.evaluateAndNotify(mIndex, mEvaluationListener, this); in onLayout()
449 if (mEvaluator.hasResult(mIndex)) { in onMemoryStore()
450 mEvaluator.copyToMemory(mIndex); in onMemoryStore()
453 mEvaluator.requireResult(mIndex, this /* listener */, this /* CharMetricsInfo */); in onMemoryStore()
461 mEvaluator.addToMemory(mIndex); in onMemoryAdd()
468 mEvaluator.subtractFromMemory(mIndex); in onMemorySubtract()
[all …]
DCalculatorExpr.java329 public final long mIndex; field in CalculatorExpr.PreEval
332 mIndex = index; in PreEval()
341 if (mIndex > Integer.MAX_VALUE || mIndex < Integer.MIN_VALUE) { in write()
345 out.writeInt((int)mIndex); in write()
349 mIndex = in.readInt(); in PreEval()
377 if (pe.mIndex == -1) { in newToken()
729 final long index = ((PreEval)t).mIndex; in evalUnary()
1030 Long index = ((PreEval) t).mIndex; in addReferencedExprs()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpDeviceIndexRunnable.java70 protected final MtpDeviceIndex mIndex; field in MtpDeviceIndexRunnable
86 mIndex = index; in MtpDeviceIndexRunnable()
96 mIndex.onIndexFinish(false /*successful*/); in run()
104 mIndex.onSorting(); in indexDevice()
134 if (!mIndex.setIndexingResults(mDevice, mIndexGeneration, in indexDevice()
152 mIndex.onObjectIndexed(objectInfo, numObjects); in addObject()
159 if (!mIndex.isAtGeneration(mDevice, mIndexGeneration)) { in addAllObjects()
165 if (!mIndex.isAtGeneration(mDevice, mIndexGeneration)) { in addAllObjects()
176 } else if (mIndex.isFormatSupported(mtpObjectInfo)) { in addAllObjects()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalMergeAlbum.java49 private TreeMap<Integer, int[]> mIndex = new TreeMap<Integer, int[]>(); field in LocalMergeAlbum
81 mIndex.clear(); in updateData()
82 mIndex.put(0, new int[mSources.length]); in updateData()
89 mIndex.clear(); in invalidateCache()
90 mIndex.put(0, new int[mSources.length]); in invalidateCache()
123 SortedMap<Integer, int[]> head = mIndex.headMap(start + 1); in getMediaItem()
159 mIndex.put(i + 1, subPos.clone()); in getMediaItem()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DInLineSettingKnob.java45 if (changeIndex(mIndex - 1)) {
49 if (changeIndex(mIndex + 1)) {
65 if (!mNext && changeIndex(mIndex - 1)) {
82 if (!mPrevious && changeIndex(mIndex + 1)) {
118 mNextButton.setVisibility(mIndex == 0 ? View.INVISIBLE : View.VISIBLE); in updateView()
119 mPrevButton.setVisibility(mIndex == mPreference.getEntryValues().length - 1 in updateView()
DInLineSettingItem.java41 protected int mIndex; field in InLineSettingItem
68 mIndex = index; in changeIndex()
69 mPreference.setValueIndex(mIndex); in changeIndex()
80 mIndex = mPreference.findIndexOfValue(mPreference.getValue()); in reloadPreference()
/packages/services/Car/obd2-lib/src/com/android/car/obd2/
DIntegerArrayStream.java27 private int mIndex; field in IntegerArrayStream
31 mIndex = 0; in IntegerArrayStream()
35 return mData[mIndex]; in peek()
39 return mData[mIndex++]; in consume()
43 return mData.length - mIndex; in residualLength()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
DIngestService.java71 private MtpDeviceIndex mIndex; field in IngestService
93 mIndex = MtpDeviceIndex.getInstance(); in onCreate()
94 mIndex.setProgressListener(this); in onCreate()
107 mIndex.unsetProgressListener(this); in onDestroy()
125 mIndex.setDevice(mDevice); in setDevice()
134 new Thread(mIndex.getIndexRunnable()).start(); in setDevice()
147 return mIndex; in getIndex()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoView.java771 private int mIndex; field in PhotoView.ScreenNailPicture
783 mIndex = index; in ScreenNailPicture()
788 mIsCamera = mModel.isCamera(mIndex); in reload()
789 mIsPanorama = mModel.isPanorama(mIndex); in reload()
790 mIsStaticCamera = mModel.isStaticCamera(mIndex); in reload()
791 mIsVideo = mModel.isVideo(mIndex); in reload()
792 mIsDeletable = mModel.isDeletable(mIndex); in reload()
793 mLoadingState = mModel.getLoadingState(mIndex); in reload()
794 setScreenNail(mModel.getScreenNail(mIndex)); in reload()
808 if (mIndex >= mPrevBound && mIndex <= mNextBound) { in draw()
[all …]
DDialogDetailsView.java55 private int mIndex; field in DialogDetailsView
81 if (mIndex == index && mDetails == details) return; in reloadDetails()
82 mIndex = index; in reloadDetails()
92 mIndex + 1, mSource.size()); in setDetails()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DFocusManager.java419 private List<String> mIndex; field in FocusManager.TitleSearchHelper
508 if (mIndex == null) { in search()
515 for (int pos = 0; pos < mIndex.size(); pos++) { in search()
516 String title = mIndex.get(pos); in search()
548 mIndex = null; in endSearch()
571 mIndex = index; in buildIndex()
578 mIndex = null;
/packages/apps/Gallery/src/com/android/camera/
DDeleteImage.java37 private int mIndex = 0; // next image to delete field in DeleteImage
69 if (mIndex >= mUriList.size()) { in deleteNext()
73 Uri uri = mUriList.get(mIndex++); in deleteNext()
75 mProgressBar.setProgress(mIndex * 10000 / mUriList.size()); in deleteNext()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DCity.java34 private final int mIndex; field in City
59 mIndex = index; in City()
67 public int getIndex() { return mIndex; } in getIndex()
108 mId, mIndex, mIndexString, mName, mPhoneticName, mTimeZone.getID()); in toString()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
DDiagnosticEventBuilder.java78 private int mIndex = 0; in iterator()
82 return (mIndex >= 0) && (mIndex < mSize); in iterator()
87 int index = mIndex++; in iterator()
DUtils.java39 private int mIndex = 0; field in Utils.SparseArrayIterator
52 return mIndex < mArray.size(); in hasNext()
57 return new SparseArrayEntry<>(mArray, mIndex++); in next()
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/preferences/
DEmergencyListPreferenceTest.java121 private int mIndex; field in EmergencyListPreferenceTest.CyclingStringArrayAnswer
125 mIndex = 0; in CyclingStringArrayAnswer()
130 String value = (String) mValues[mIndex % mValues.length]; in answer()
131 mIndex++; in answer()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMessageAttachmentTile.java231 final private int mIndex; field in MessageAttachmentTile.ViewIndexDistanceComparator
236 mIndex = index; in ViewIndexDistanceComparator()
247 int lhsDistance = Math.abs(mIndex - lhsIndex); in compare()
248 int rhsDistance = Math.abs(mIndex - rhsIndex); in compare()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollController.java215 private int mIndex; field in ScrollController.Axis.Item
221 mIndex = -1; in Item()
237 return mIndex; in getIndex()
242 mIndex = index; in setValue()
249 return mIndex >= 0; in isValid()
254 return mIndex + "[" + mLow + "," + mHigh + "]"; in toString()
/packages/apps/Contacts/src/com/android/contacts/list/
DGroupMemberPickerFragment.java72 private int[] mIndex; field in GroupMemberPickerFragment.FilterCursorWrapper
80 mIndex = new int[mCount]; in FilterCursorWrapper()
99 mIndex[mPos++] = i; in FilterCursorWrapper()
152 mPos = mIndex[position]; in moveToPosition()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetService.java236 DayInfo dayInfo = mModel.mDayInfos.get(rowInfo.mIndex);
241 final EventInfo eventInfo = mModel.mEventInfos.get(rowInfo.mIndex);
348 return rowInfo.mIndex;
350 EventInfo eventInfo = mModel.mEventInfos.get(rowInfo.mIndex);
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DAlbumPage.java753 private int mIndex; field in AlbumPage.MyDetailsSource
763 mIndex = mAlbumDataAdapter.findItem(id); in setIndex()
764 return mIndex; in setIndex()
770 MediaObject item = mAlbumDataAdapter.get(mIndex); in getDetails()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java160 private int mIndex; field in FilmstripView.ViewItem
184 mIndex = index; in ViewItem()
208 Log.i(TAG, "[ViewItem:" + mIndex + "] mData.renderTiny()"); in renderTiny()
217 Log.i(TAG, "[ViewItem:" + mIndex + "] mData.renderThumbnail()"); in renderThumbnail()
226 Log.i(TAG, "[ViewItem:" + mIndex + "] mData.renderFullRes()"); in renderFullRes()
247 return mIndex; in getAdapterIndex()
255 mIndex = index; in setIndex()
438 mFilmstrip.recycleView(mView, mIndex); in removeViewFromHierarchy()
582 return "AdapterIndex = " + mIndex + "\n\t left = " + mLeftPosition in toString()

12