/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/modules/StatsD/statsd/src/condition/ |
D | SimpleConditionTracker.cpp | 149 conditionChangedCache[mIndex] = in handleStopAll() 162 conditionCache[mIndex] = ConditionState::kFalse; in handleStopAll() 263 conditionChangedCache[mIndex] == true); in handleConditionEvent() 272 if (conditionCache[mIndex] != ConditionState::kNotEvaluated) { in evaluateCondition() 275 (long long)mConditionId, conditionCache[mIndex]); in evaluateCondition() 302 conditionChangedCache[mIndex] = false; in evaluateCondition() 306 conditionCache[mIndex] = mInitialValue; in evaluateCondition() 309 conditionCache[mIndex] = ConditionState::kTrue; in evaluateCondition() 318 conditionCache[mIndex] = mInitialValue; in evaluateCondition() 321 conditionCache[mIndex] = in evaluateCondition() [all …]
|
D | CombinationConditionTracker.cpp | 57 conditionCache[mIndex] = in init() 63 stack[mIndex] = true; in init() 65 Predicate_Combination combinationCondition = allConditionConfig[mIndex].combination(); in init() 115 conditionCache[mIndex] = in init() 119 stack[mIndex] = false; in init() 137 Predicate_Combination combinationCondition = allConditionProtos[mIndex].combination(); in onConfigUpdated() 181 conditionCache[mIndex] = in isConditionMet() 191 if (nonSlicedConditionCache[mIndex] != ConditionState::kNotEvaluated) { in evaluateCondition() 210 nonSlicedConditionCache[mIndex] = mUnSlicedPartCondition; in evaluateCondition() 211 conditionChangedCache[mIndex] = nonSlicedChanged; in evaluateCondition() [all …]
|
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/table/packed/read/ |
D | PackedTableReader.java | 248 final int mIndex; field in PackedTableReader.Entry 257 mIndex = index; in Entry() 263 if (mIndex >= mEntryCount - 1) { in getNext() 266 int nextIndex = mIndex + 1; in getNext() 272 if (mIndex == 0) { in getPrevious() 275 int previousIndex = mIndex - 1; in getPrevious() 304 upper = mIndex; in findNearbyEntry() 306 lower = mIndex; in findNearbyEntry() 322 return mIndex; in getIndex() 350 return mIndex == entry.mIndex in equals() [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/modules/StatsD/statsd/src/matchers/ |
D | CombinationAtomMatchingTracker.cpp | 48 stack[mIndex] = true; in init() 50 AtomMatcher_Combination matcher = allAtomMatchers[mIndex].combination(); in init() 92 stack[mIndex] = false; in init() 99 mIndex = index; in onConfigUpdated() 117 if (matcherResults[mIndex] != MatchingState::kNotComputed) { in onLogEvent() 122 matcherResults[mIndex] = MatchingState::kNotMatched; in onLogEvent() 135 matcherResults[mIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
|
D | SimpleAtomMatchingTracker.cpp | 56 mIndex = index; in onConfigUpdated() 64 if (matcherResults[mIndex] != MatchingState::kNotComputed) { in onLogEvent() 70 matcherResults[mIndex] = MatchingState::kNotMatched; in onLogEvent() 75 matcherResults[mIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
|
/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/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | IntCounter.java | 93 private int mIndex = 0; in iterator() 97 return mIndex < size(); in iterator() 102 KeyCount kc = new KeyCount(keyAt(mIndex), valueAt(mIndex)); in iterator() 103 mIndex++; in iterator()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/matchers/ |
D | IndexMatcher.java | 32 private final int mIndex; field in IndexMatcher 37 mIndex = index; in IndexMatcher() 43 description.appendValue(mIndex); in describeTo() 49 return mMatcher.matches(view) && mCurrentIndex++ == mIndex; in matchesSafely()
|
/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/services/Car/service/src/com/android/car/garagemode/ |
D | WakeupPolicy.java | 48 @VisibleForTesting protected int mIndex; field in WakeupPolicy 52 mIndex = 0; in WakeupPolicy() 76 int index = mIndex; in getNextWakeUpInterval() 160 mIndex++; in incrementCounter() 164 mIndex = 0; in resetCounter()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | AllAppsList.java | 72 private AlphabeticIndexCompat mIndex; field in AllAppsList 87 mIndex = new AlphabeticIndexCompat(LocaleList.getDefault()); in AllAppsList() 140 info.sectionName = mIndex.computeSectionName(info.title); in add() 152 info.sectionName = mIndex.computeSectionName(info.title); in addPromiseApp() 198 mIndex = new AlphabeticIndexCompat(LocaleList.getDefault()); in clear() 247 info.sectionName = mIndex.computeSectionName(info.title); in updateIconsAndLabels() 284 applicationInfo.sectionName = mIndex.computeSectionName(applicationInfo.title); in updatePackage()
|
/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 …]
|
/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/services/Car/tests/carservice_test/src/com/android/car/garagemode/ |
D | ControllerTest.java | 143 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(0); in testOnShutdownCancelled_shouldCancelGarageMode() 173 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(2); in testWakeupTimeProgression() 185 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(i + 3); in testWakeupTimeProgression() 210 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(0); in startAndAssertGarageModeWithSignal() 217 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(1); in startAndAssertGarageModeWithSignal()
|
/packages/apps/Launcher3/src/com/android/launcher3/settings/ |
D | PreferenceHighlighter.java | 66 private final int mIndex; field in PreferenceHighlighter 75 mIndex = index; in PreferenceHighlighter() 82 mRv.smoothScrollToPosition(mIndex); in run() 87 ViewHolder holder = parent.findViewHolderForAdapterPosition(mIndex); in onDraw()
|
/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/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()
|