Home
last modified time | relevance | path

Searched refs:last (Results 1 – 25 of 72) sorted by relevance

123

/packages/experimental/procstatlog/
Dprocstatreport.py178 last = last_state.get("/proc/stat:cpu", "").split()
180 if last and next:
181 stime = sum([int(next[x]) - int(last[x]) for x in [2, 5, 6]])
182 utime = sum([int(next[x]) - int(last[x]) for x in [0, 1]])
183 idle = sum([int(next[x]) - int(last[x]) for x in [3, 4]])
227 last = int(last_state.get(key, -1))
229 if last != -1 and next != -1:
231 total_time += next - last
232 total_cycles += (next - last) * speed
263 last = int(last_state.get("/proc/stat:ctxt", -1))
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_indexing.cpp36 void db_LeanPartitionOnPivot(double pivot,double *dest,const double *source,long first,long last,lo… in db_LeanPartitionOnPivot() argument
45 s_top=source+last; in db_LeanPartitionOnPivot()
47 d_top=dest+last; in db_LeanPartitionOnPivot()
62 long last=nr_elements-1; in db_LeanQuickSelect() local
76 for(;last-first>2;) in db_LeanQuickSelect()
78 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]); in db_LeanQuickSelect()
79 db_LeanPartitionOnPivot(pivot,dest,source,first,last,&first_equal,&last_equal); in db_LeanQuickSelect()
81 if(first_equal>pos) last=first_equal-1; in db_LeanQuickSelect()
95 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]); in db_LeanQuickSelect()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderUtils.java335 PtNodeInfo last = null; in getWordAtPositionWithoutParentAddress() local
346 if (null == last) continue; in getWordAtPositionWithoutParentAddress()
347 builder.append(new String(last.mCharacters, 0, last.mCharacters.length)); in getWordAtPositionWithoutParentAddress()
348 dictDecoder.setPosition(last.mChildrenAddress); in getWordAtPositionWithoutParentAddress()
350 groupPos = last.mChildrenAddress + BinaryDictIOUtils.getPtNodeCountSize(i); in getWordAtPositionWithoutParentAddress()
351 last = null; in getWordAtPositionWithoutParentAddress()
354 last = info; in getWordAtPositionWithoutParentAddress()
356 if (0 == i && BinaryDictIOUtils.hasChildrenAddress(last.mChildrenAddress)) { in getWordAtPositionWithoutParentAddress()
357 builder.append(new String(last.mCharacters, 0, last.mCharacters.length)); in getWordAtPositionWithoutParentAddress()
358 dictDecoder.setPosition(last.mChildrenAddress); in getWordAtPositionWithoutParentAddress()
[all …]
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DTestResultLogger.java42 Result last = mResults.get(mResults.size()-1); in getAverageSpeed() local
45 return (int) ((1000*(last.receivedBytes + first.receivedBytes))/ in getAverageSpeed()
46 (last.timeStamp - first.timeStamp+1)); in getAverageSpeed()
63 Result last = mResults.get(i--); in getAverageSpeed() local
64 long firstTimeStamp = last.timeStamp - period; in getAverageSpeed()
76 long timeError = period - (last.timeStamp-first.timeStamp); in getAverageSpeed()
84 return (int) ((1000*(errorBytes+last.receivedBytes-first.receivedBytes))/period); in getAverageSpeed()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DBlend.cpp1196 MosaicFrame *last = frames[frames_size-1]; in SelectRelevantFrames() local
1201 double midX = last->width / 2.0; in SelectRelevantFrames()
1202 double midY = last->height / 2.0; in SelectRelevantFrames()
1234 relevant_frames[relevant_frames_size] = last; in SelectRelevantFrames()
1249 MosaicFrame *last = frames[frames_size-1]; in ComputeBlendParameters() local
1252 double lxpos = last->trs[0][2], lypos = last->trs[1][2]; in ComputeBlendParameters()
1257 double midX = last->width / 2.0; in ComputeBlendParameters()
1258 double midY = last->height / 2.0; in ComputeBlendParameters()
1298 if (is360) m_wb.theta = asin(last->trs[1][0]); in ComputeBlendParameters()
1335 z = ProjZ(last->trs, 0.0, midY, 1.0); in ComputeBlendParameters()
[all …]
DDelaunay.cpp590 int CDelaunay::constructList(EdgePointer last, int width, int height) argument
596 c = (int) ((curr = (EdgePointer) ((last & ~3))) >> 1);
598 for (last -= 4; last >= 0; last -= 4) {
599 src = orig(last);
600 nex = dest(last);
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DCharMatcher.java981 int last;
988 for (last = len - 1; last > first; last--) {
989 if (!matches(sequence.charAt(last))) {
994 return sequence.subSequence(first, last + 1).toString();
1030 int last;
1032 for (last = len - 1; last >= 0; last--) {
1033 if (!matches(sequence.charAt(last))) {
1038 return sequence.subSequence(0, last + 1).toString();
DUnicodeEscaper.java288 char last = csq.charAt(end - 1); in escape() local
289 if (Character.isHighSurrogate(last)) { in escape()
290 pendingHighSurrogate = last; in escape()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DAttachmentsView.java365 int last = 0; in focusLastAttachment() local
367 last = mTileGrid.getChildCount() - 1; in focusLastAttachment()
368 if (last > 0) { in focusLastAttachment()
369 lastView = mTileGrid.getChildAt(last); in focusLastAttachment()
372 last = mAttachmentLayout.getChildCount() - 1; in focusLastAttachment()
373 if (last > 0) { in focusLastAttachment()
374 lastView = mAttachmentLayout.getChildAt(last); in focusLastAttachment()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DIconNormalizer.java192 int last = -1; // Last valid y coordinate which didn't have a missing value in convertToConvexArray() local
205 float currentAngle = (xCordinates[i] - xCordinates[last]) / (i - last); in convertToConvexArray()
206 start = last; in convertToConvexArray()
227 last = i; in convertToConvexArray()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DInputSmoother.java53 final Sample last = mRecentSamples.peekLast(); in onInput() local
54 if (last != null && nowMs - last.millis > MAX_SAMPLE_INTERVAL_MS) { in onInput()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DConversationInfo.java47 String last) { in ConversationInfo() argument
51 set(messageCount, draft, first, firstUnread, last); in ConversationInfo()
112 public void set(int count, int draft, String first, String firstUnread, String last) { in set() argument
118 lastSnippet = last; in set()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorExpr.java489 Token last = mExpr.get(s-1); in add() local
490 if(!(last instanceof Constant)) { in add()
491 if (last instanceof PreEval) { in add()
548 Token last = mExpr.get(s-1); in append() local
550 if (!(first instanceof Operator) && !(last instanceof Operator)) { in append()
570 Token last = mExpr.get(s-1); in delete() local
571 if (last instanceof Constant) { in delete()
572 Constant c = (Constant)last; in delete()
1141 Token last = mExpr.get(result - 1); in trailingBinaryOpsStart() local
1142 if (!(last instanceof Operator)) break; in trailingBinaryOpsStart()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DStopWatch.java74 long last = start; in stopAndLog() local
79 sb.append((current - last)); in stopAndLog()
81 last = current; in stopAndLog()
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DProgramDataManagerTest.java341 ProgramInfoWrapper last = programList.get(programList.size() - 1);
342 while (last.startTimeMs < endTimeMs) {
343 ProgramInfo nextProgramInfo = stub.build(getContext(), last.index + 1);
344 ProgramInfoWrapper next = new ProgramInfoWrapper(last.index + 1,
345 last.startTimeMs + last.programInfo.durationMs, nextProgramInfo);
347 last = next;
/packages/apps/Launcher3/protos/
Dbackup.proto55 // Total bytes written during the last backup
57 // and were not written in the last backup
60 // Total entries written during the last backup
62 // and were not written in the last backup
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DNinePatchTexture.java303 int last = 0; in stretch() local
305 if ((x[i] - x[last]) < 1f) continue; in stretch()
306 x[++last] = x[i]; in stretch()
307 u[last] = u[i]; in stretch()
309 return last + 1; in stretch()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Ditoatest.cpp78 T i = 1, last; in Verify() local
86 last = i; in Verify()
88 } while (last < i); in Verify()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DComposingText.java177 StrSegment last = strUplayer.get(strUplayer.size() - 1); in modifyUpper() local
178 if (last.to < mod_from) { in modifyUpper()
180 last.to = mod_to; in modifyUpper()
181 last.string = toString(layer, last.from, last.to); in modifyUpper()
/packages/apps/Music/src/com/android/music/
DMediaPlaybackService.java1581 public int removeTracks(int first, int last) { in removeTracks() argument
1582 int numremoved = removeTracksInternal(first, last); in removeTracks()
1589 private int removeTracksInternal(int first, int last) { in removeTracksInternal() argument
1591 if (last < first) return 0; in removeTracksInternal()
1593 if (last >= mPlayListLen) last = mPlayListLen - 1; in removeTracksInternal()
1596 if (first <= mPlayPos && mPlayPos <= last) { in removeTracksInternal()
1599 } else if (mPlayPos > last) { in removeTracksInternal()
1600 mPlayPos -= (last - first + 1); in removeTracksInternal()
1602 int num = mPlayListLen - last - 1; in removeTracksInternal()
1604 mPlayList[first + i] = mPlayList[last + 1 + i]; in removeTracksInternal()
[all …]
DRepeatingImageButton.java121 private void doRepeat(boolean last) { in doRepeat() argument
124 mListener.onRepeat(this, now - mStartTime, last ? -1 : mRepeatCount++); in doRepeat()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Ddocument.h1192 MemberIterator last(data_.o.members + (data_.o.size - 1));
1193 if (data_.o.size > 1 && m != last) {
1195 *m = *last;
1227 MemberIterator EraseMember(ConstMemberIterator first, ConstMemberIterator last) {
1232 RAPIDJSON_ASSERT(first <= last);
1233 RAPIDJSON_ASSERT(last <= MemberEnd());
1236 for (MemberIterator itr = pos; itr != last; ++itr)
1238 std::memmove(&*pos, &*last, (MemberEnd() - last) * sizeof(Member));
1239 data_.o.size -= (last - first);
1428 ValueIterator Erase(ConstValueIterator first, ConstValueIterator last) {
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/
DHistogramView.java113 float last = 0; in drawHistogram() local
125 last = x; in drawHistogram()
128 mHistoPath.lineTo(last, h); in drawHistogram()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/cc/
DCaptionWindowLayout.java534 int start = 0, last = mBuilder.length() - 1; in updateText() local
535 int end = last; in updateText()
542 if (start == 0 && end == last) { in updateText()
547 if (end < last) { in updateText()
548 trim.delete(end + 1, last + 1); in updateText()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DSplineMath.java32 int last = curve.length - 1; in calculatetCurve() local
33 curve[last][0] = (float) (points[points.length - 1][0]); in calculatetCurve()
34 curve[last][1] = (float) (points[points.length - 1][1]); in calculatetCurve()

123