/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/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/TV/tuner/src/com/android/tv/tuner/exoplayer2/ |
D | MpegTsMediaPeriod.java | 105 disable(stream.mIndex); in selectTracks() 210 private final int mIndex; field in MpegTsMediaPeriod.SampleStreamImpl 215 mIndex = index; in SampleStreamImpl() 238 Assertions.checkState(mTrackStates.get(mIndex) != TRACK_STATE_DISABLED); in readData() 239 if (mPendingDiscontinuities.get(mIndex)) { in readData() 242 if (requireFormat || mTrackStates.get(mIndex) != TRACK_STATE_FORMAT_SENT) { in readData() 243 mExtractor.getTrackMediaFormat(mIndex, formatHolder); in readData() 244 mTrackStates.set(mIndex, TRACK_STATE_FORMAT_SENT); in readData() 248 return mExtractor.readSample(mIndex, buffer); in readData()
|
/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/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/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/Launcher3/src/com/android/launcher3/model/ |
D | AllAppsList.java | 73 private AlphabeticIndexCompat mIndex; field in AllAppsList 81 mIndex = new AlphabeticIndexCompat(LocaleList.getDefault()); in AllAppsList() 107 info.sectionName = mIndex.computeSectionName(info.title); in add() 121 info.sectionName = mIndex.computeSectionName(info.title); in addPromiseApp() 160 mIndex = new AlphabeticIndexCompat(LocaleList.getDefault()); in clear() 207 info.sectionName = mIndex.computeSectionName(info.title); in updateIconsAndLabels() 242 applicationInfo.sectionName = mIndex.computeSectionName(applicationInfo.title); in updatePackage()
|
/packages/services/Car/service/src/com/android/car/garagemode/ |
D | WakeupPolicy.java | 44 @VisibleForTesting protected int mIndex; field in WakeupPolicy 48 mIndex = 0; in WakeupPolicy() 72 int index = mIndex; in getNextWakeUpInterval() 156 mIndex++; in incrementCounter() 160 mIndex = 0; in resetCounter()
|
/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/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/services/Car/tests/carservice_test/src/com/android/car/garagemode/ |
D | ControllerTest.java | 128 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(0); in testOnShutdownCancelled_shouldCancelGarageMode() 157 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(2); in testWakeupTimeProgression() 169 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(i + 3); in testWakeupTimeProgression() 194 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(0); in startAndAssertGarageModeWithSignal() 201 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(1); in startAndAssertGarageModeWithSignal()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | FocusManager.java | 446 private List<String> mIndex; field in FocusManager.TitleSearchHelper 535 if (mIndex == null) { in search() 542 for (int pos = 0; pos < mIndex.size(); pos++) { in search() 543 String title = mIndex.get(pos); in search() 575 mIndex = null; in endSearch() 598 mIndex = index; in buildIndex() 605 mIndex = null;
|
/packages/apps/Launcher3/src/com/android/launcher3/settings/ |
D | PreferenceHighlighter.java | 64 private final int mIndex; field in PreferenceHighlighter 72 mIndex = index; in PreferenceHighlighter() 78 mRv.smoothScrollToPosition(mIndex); in run() 83 ViewHolder holder = parent.findViewHolderForAdapterPosition(mIndex); in onDraw()
|
/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 | 116 private int mIndex; field in EmergencyListPreferenceTest.CyclingStringArrayAnswer 120 mIndex = 0; in CyclingStringArrayAnswer() 125 String value = (String) mValues[mIndex % mValues.length]; in answer() 126 mIndex++; in answer()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetClccResponse.java | 29 int mIndex; field in HeadsetClccResponse 69 mIndex = index; in HeadsetClccResponse() 85 .append(mIndex) in buildString()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/ |
D | FavoriteNumberEntity.java | 27 private int mIndex; field in FavoriteNumberEntity 41 mIndex = index; in setIndex() 45 return mIndex; in getIndex()
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | IpClientLinkObserver.java | 473 private HashMap<InetAddress, DnsServerEntry> mIndex; field in IpClientLinkObserver.DnsServerRepository 483 mIndex = new HashMap<>(NUM_SERVERS); in DnsServerRepository() 523 mIndex.put(address, entry); in addServers() 536 DnsServerEntry existing = mIndex.get(address); in updateExistingEntry() 552 mIndex.remove(removed.address); in updateCurrentServers()
|
/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()
|