/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/ |
D | FakeCursor.java | 31 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/ |
D | AsyncQueryServiceTest.java | 471 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/ |
D | Evaluator.java | 505 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 …]
|
D | CalculatorResult.java | 62 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 …]
|
D | CalculatorExpr.java | 329 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/ |
D | MtpDeviceIndexRunnable.java | 70 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/ |
D | LocalMergeAlbum.java | 49 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/ |
D | InLineSettingKnob.java | 45 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()
|
D | InLineSettingItem.java | 41 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/ |
D | IntegerArrayStream.java | 27 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/ |
D | IngestService.java | 71 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/ |
D | PhotoView.java | 771 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 …]
|
D | DialogDetailsView.java | 55 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/ |
D | FocusManager.java | 419 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/ |
D | DeleteImage.java | 37 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/ |
D | City.java | 34 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/ |
D | DiagnosticEventBuilder.java | 78 private int mIndex = 0; in iterator() 82 return (mIndex >= 0) && (mIndex < mSize); in iterator() 87 int index = mIndex++; in iterator()
|
D | Utils.java | 39 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/ |
D | EmergencyListPreferenceTest.java | 121 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/ |
D | MessageAttachmentTile.java | 231 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/ |
D | ScrollController.java | 215 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/ |
D | GroupMemberPickerFragment.java | 72 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/ |
D | CalendarAppWidgetService.java | 236 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/ |
D | AlbumPage.java | 753 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/ |
D | FilmstripView.java | 160 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()
|