Home
last modified time | relevance | path

Searched refs:lastIndex (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/cmds/incident_helper/src/
Dih_util.cpp98 size_t lastIndex = 0; in getColumnIndices() local
102 lastIndex = line.find(s, lastIndex); in getColumnIndices()
103 if (lastIndex == std::string::npos) { in getColumnIndices()
107 lastIndex += s.length(); in getColumnIndices()
108 indices.push_back(lastIndex); in getColumnIndices()
117 int lastIndex = 0; in parseRecordByColumns() local
122 if (idx <= lastIndex) { in parseRecordByColumns()
125 idx = lastIndex + 1; in parseRecordByColumns()
128 if (lastIndex < idx && lastIndex < lineSize) { in parseRecordByColumns()
134 … fprintf(stderr, "index wrong: lastIndex: %d, idx: %d, lineSize: %d\n", lastIndex, idx, lineSize); in parseRecordByColumns()
[all …]
/frameworks/ml/nn/common/operations/
DMaximumMinimum.cpp44 bool lastIndex = false; in evalGeneric() local
56 NN_CHECK(outputShapeIndexed.nextIndexInplace(&curIndex, &lastIndex)); in evalGeneric()
57 } while (!lastIndex); in evalGeneric()
70 bool lastIndex = false; in evalQuant8() local
84 NN_CHECK(outputShapeIndexed.nextIndexInplace(&curIndex, &lastIndex)); in evalQuant8()
85 } while (!lastIndex); in evalQuant8()
DPow.cpp42 bool lastIndex = false; in evalGeneric() local
54 NN_CHECK(outputShapeIndexed.nextIndexInplace(&curIndex, &lastIndex)); in evalGeneric()
55 } while (!lastIndex); in evalGeneric()
DLogicalAndOr.cpp45 bool lastIndex = false; in compute() local
56 NN_RET_CHECK(outputShapeIndexed.nextIndexInplace(&curIndex, &lastIndex)); in compute()
57 } while (!lastIndex); in compute()
DPRelu.cpp53 bool lastIndex = false; in eval() local
64 NN_RET_CHECK(outputShapeIndexed.nextIndexInplace(&curIndex, &lastIndex)); in eval()
65 } while (!lastIndex); in eval()
DSlice.cpp66 bool lastIndex = false; in evalGeneric() local
77 NN_RET_CHECK(indexedOutput.nextIndexInplace(&outputIndex, &lastIndex)); in evalGeneric()
78 } while (!lastIndex); in evalGeneric()
DComparisons.cpp50 bool lastIndex = false; in compute() local
68 NN_RET_CHECK(outputShapeIndexed.nextIndexInplace(&curIndex, &lastIndex)); in compute()
69 } while (!lastIndex); in compute()
DBroadcast.cpp216 bool lastIndex = false; in executeInt32() local
227 NN_RET_CHECK(outputShapeIndexed.nextIndexInplace(&curIndex, &lastIndex)); in executeInt32()
228 } while (!lastIndex); in executeInt32()
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuUidBpfMapReader.java102 int lastIndex = mData.indexOfKey(endUid); in removeUidsInRange() local
103 if (lastIndex < 0) { in removeUidsInRange()
105 lastIndex = mData.indexOfKey(endUid); in removeUidsInRange()
107 mData.removeAtRange(firstIndex, lastIndex - firstIndex + 1); in removeUidsInRange()
DKernelCpuUidTimeReader.java164 int lastIndex = mLastTimes.indexOfKey(endUid); in removeUidsInRange() local
165 mLastTimes.removeAtRange(firstIndex, lastIndex - firstIndex + 1); in removeUidsInRange()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DVNodeBuilder.java93 int lastIndex = mVNodeList.size() - 1; in onEntryEnded() local
94 mVNodeList.remove(lastIndex--); in onEntryEnded()
95 mCurrentVNode = lastIndex >= 0 ? mVNodeList.get(lastIndex) : null; in onEntryEnded()
/frameworks/base/core/jni/android/graphics/
DGIFMovie.cpp384 int lastIndex = fCurrIndex; in onGetBitmap() local
385 if (lastIndex < 0) { in onGetBitmap()
387 lastIndex = 0; in onGetBitmap()
388 } else if (lastIndex > fGIF->ImageCount - 1) { in onGetBitmap()
390 lastIndex = fGIF->ImageCount - 1; in onGetBitmap()
400 for (int i = startIndex; i <= lastIndex; i++) { in onGetBitmap()
423 if (i == lastIndex || !checkIfWillBeCleared(cur)) { in onGetBitmap()
429 fLastDrawIndex = lastIndex; in onGetBitmap()
/frameworks/base/core/java/android/app/admin/
DFreezePeriod.java242 final int lastIndex = result.size() - 1; in canonicalizePeriods() local
243 if (lastIndex > 0 && result.get(lastIndex).mEndDay == DAYS_IN_YEAR in canonicalizePeriods()
245 FreezePeriod wrappedInterval = new FreezePeriod(result.get(lastIndex).mStartDay, in canonicalizePeriods()
247 result.set(lastIndex, wrappedInterval); in canonicalizePeriods()
/frameworks/base/test-runner/src/junit/textui/
DTestRunner.java164 int lastIndex= arg.lastIndexOf('.'); in start() local
165 testCase= arg.substring(0, lastIndex); in start()
166 method= arg.substring(lastIndex + 1); in start()
/frameworks/ml/nn/common/
DIndexedShapeWrapper.cpp32 bool IndexedShapeWrapper::nextIndexInplace(std::vector<uint32_t>* index, bool* lastIndex) const { in nextIndexInplace()
43 *lastIndex = true; in nextIndexInplace()
/frameworks/base/tests/net/java/com/android/internal/util/
DRingBufferTest.java105 int lastIndex = capacity - 1; in testRingBufferWithWrapping() local
126 expected2[lastIndex] = "a"; in testRingBufferWithWrapping()
/frameworks/ml/nn/common/include/
DIndexedShapeWrapper.h39 bool nextIndexInplace(std::vector<uint32_t>* index, bool* lastIndex) const;
/frameworks/base/libs/hwui/tests/scripts/
Dprep_generic.sh191 lastIndex=$(($index - 1))
198 chosenIndex=$(($lastIndex - $chosenIndex))
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java186 int lastIndex = viewGroup.getChildCount() - 1; in refresh() local
187 viewGroup.removeViewAt(lastIndex); in refresh()
/frameworks/base/services/core/java/com/android/server/am/
DProcessStatsService.java800 int lastIndex = 0;
897 lastIndex = Integer.parseInt(args[i]);
1064 } else if (lastIndex > 0) {
1065 pw.print("LAST STATS AT INDEX "); pw.print(lastIndex); pw.println(":");
1067 if (lastIndex >= files.size()) {
1071 AtomicFile file = new AtomicFile(new File(files.get(lastIndex)));
1076 pw.print("Failure reading "); pw.print(files.get(lastIndex));
DBroadcastQueue.java1931 int lastIndex = mHistoryNext; in writeToProto() local
1932 int ringIndex = lastIndex; in writeToProto()
1941 } while (ringIndex != lastIndex); in writeToProto()
1943 lastIndex = ringIndex = mSummaryHistoryNext; in writeToProto()
1960 } while (ringIndex != lastIndex); in writeToProto()
2008 int lastIndex = mHistoryNext; in dumpLocked() local
2009 int ringIndex = lastIndex; in dumpLocked()
2047 } while (ringIndex != lastIndex); in dumpLocked()
2050 lastIndex = ringIndex = mSummaryHistoryNext; in dumpLocked()
2057 j > 0 && ringIndex != lastIndex;) { in dumpLocked()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcher.java223 int lastIndex = mUserSwitcher.getChildCount() - 1; in refresh() local
224 mUserSwitcher.removeViewAt(lastIndex); in refresh()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java440 int lastIndex = 0; in parseCSV() local
443 while ((lastIndex = value.indexOf(",", lastIndex + 1)) > 0) { in parseCSV()
/frameworks/native/libs/binder/
DParcel.cpp387 int firstIndex = -1, lastIndex = -2; in appendFrom() local
413 lastIndex = i; in appendFrom()
416 int numObjects = lastIndex - firstIndex + 1; in appendFrom()
452 for (int i = firstIndex; i <= lastIndex; i++) { in appendFrom()
/frameworks/base/core/java/android/widget/
DListView.java3314 int lastIndex = getChildCount() - 1;
3315 View last = getChildAt(lastIndex);
3321 recycleBin.addScrapView(last, mFirstPosition+lastIndex);
3324 last = getChildAt(--lastIndex);

12