Home
last modified time | relevance | path

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

1234

/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/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();
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorExpr.java495 Token last = mExpr.get(s-1); in add() local
496 if(!(last instanceof Constant)) { in add()
497 if (last instanceof PreEval) { in add()
554 Token last = mExpr.get(s-1); in append() local
556 if (!(first instanceof Operator) && !(last instanceof Operator)) { in append()
576 Token last = mExpr.get(s-1); in delete() local
577 if (last instanceof Constant) { in delete()
578 Constant c = (Constant)last; in delete()
976 Token last = mExpr.get(result - 1); in trailingBinaryOpsStart() local
977 if (!(last instanceof Operator)) break; in trailingBinaryOpsStart()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DAttachmentsView.java434 int last = 0; in focusLastAttachment() local
436 last = mTileGrid.getChildCount() - 1; in focusLastAttachment()
437 if (last > 0) { in focusLastAttachment()
438 lastView = mTileGrid.getChildAt(last); in focusLastAttachment()
441 last = mAttachmentLayout.getChildCount() - 1; in focusLastAttachment()
442 if (last > 0) { in focusLastAttachment()
443 lastView = mAttachmentLayout.getChildAt(last); in focusLastAttachment()
/packages/apps/Music/src/com/android/music/
DMediaPlaybackService.java1569 public int removeTracks(int first, int last) { in removeTracks() argument
1570 int numremoved = removeTracksInternal(first, last); in removeTracks()
1577 private int removeTracksInternal(int first, int last) { in removeTracksInternal() argument
1579 if (last < first) return 0; in removeTracksInternal()
1581 if (last >= mPlayListLen) last = mPlayListLen - 1; in removeTracksInternal()
1584 if (first <= mPlayPos && mPlayPos <= last) { in removeTracksInternal()
1587 } else if (mPlayPos > last) { in removeTracksInternal()
1588 mPlayPos -= (last - first + 1); in removeTracksInternal()
1590 int num = mPlayListLen - last - 1; in removeTracksInternal()
1592 mPlayList[first + i] = mPlayList[last + 1 + i]; in removeTracksInternal()
[all …]
/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/TV/tests/unit/src/com/android/tv/data/
DProgramDataManagerTest.java353 ProgramInfoWrapper last = programList.get(programList.size() - 1);
354 while (last.startTimeMs < endTimeMs) {
356 last.index + 1);
357 ProgramInfoWrapper next = new ProgramInfoWrapper(last.index + 1,
358 last.startTimeMs + last.programInfo.durationMs, nextProgramInfo);
360 last = next;
/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/DocumentsUI/src/com/android/documentsui/
DFocusManager.java306 int last = mScope.layout.findLastVisibleItemPosition(); in findPagedTargetPosition() local
308 int pageSize = last - first + 1; in findPagedTargetPosition()
322 if (current < last) { in findPagedTargetPosition()
324 return last; in findPagedTargetPosition()
585 long last = mLastEvent.getEventTime(); in run() local
587 if ((now - last) > SEARCH_TIMEOUT) { in run()
/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/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/services/Car/tools/io_analysis/
Dcheck_io_trace_all.py103 dev = sorted_r.popitem(last=False)
110 dev = sorted_w.popitem(last=False)
192 process = sorted_by_total_rw.popitem(last=False)
201 process = sorted_by_total_w.popitem(last=False)
210 dev = sorted_by_total_r.popitem(last=False)
217 dev = sorted_by_total_w.popitem(last=False)
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconNormalizer.java373 int last = -1; // Last valid y coordinate which didn't have a missing value
386 float currentAngle = (xCoordinates[i] - xCoordinates[last]) / (i - last);
387 start = last;
408 last = i;
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dvaluetest.cpp866 for (unsigned last = first; last <= n; last++) { in TEST() local
871 itr = x.Erase(x.Begin() + first, x.Begin() + last); in TEST()
872 if (last == n) in TEST()
877 size_t removeCount = last - first; in TEST()
1160 for (unsigned last = first; last <= n; last++) { in TEST() local
1165 itr = x.EraseMember(x.MemberBegin() + first, x.MemberBegin() + last); in TEST()
1166 if (last == n) in TEST()
1171 size_t removeCount = last - first; in TEST()
Ditoatest.cpp78 T i = 1, last; in Verify() local
86 last = i; in Verify()
88 } while (last < i); in Verify()
/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/Dialer/java/com/android/contacts/common/util/
DStopWatch.java65 long last = start; in stopAndLog() local
70 sb.append((current - last)); in stopAndLog()
72 last = current; in stopAndLog()
/packages/apps/Contacts/src/com/android/contacts/util/
DStopWatch.java74 long last = start; in stopAndLog() local
79 sb.append((current - last)); in stopAndLog()
81 last = current; in stopAndLog()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPositionController.java1077 int first, last; in moveBox() local
1081 for (last = BOX_MAX; last >= -BOX_MAX; last--) { in moveBox()
1082 if (from.get(last) != Integer.MAX_VALUE) break; in moveBox()
1088 first = last = 0; in moveBox()
1096 for (int i = Math.max(0, first + 1); i < last; i++) { in moveBox()
1112 for (int i = Math.min(-1, last - 1); i > first; i--) { in moveBox()
1139 if (i >= first && i < last) { in moveBox()
1158 for (int i = last + 1; i <= BOX_MAX; i++) { in moveBox()
/packages/apps/TV/src/com/android/tv/tuner/cc/
DCaptionWindowLayout.java566 int start = 0, last = mBuilder.length() - 1; in updateText() local
567 int end = last; in updateText()
577 if (start == 0 && end == last) { in updateText()
583 if (end < last) { in updateText()
584 trim.delete(end + 1, last + 1); in updateText()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/
DTextUtilities.java378 char last = ' '; in makeSnippetFromText() local
435 if (last == ' ') { in makeSnippetFromText()
441 } else if ((c == '-' || c == '=') && (last == c)) { in makeSnippetFromText()
449 last = c; in makeSnippetFromText()
453 if ((bufferCount > 0) && (last == ' ')) { in makeSnippetFromText()

1234