Home
last modified time | relevance | path

Searched refs:last (Results 1 – 25 of 62) 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/Camera/jni/feature_mos/src/mosaic/
DBlend.cpp1216 MosaicFrame *last = frames[frames_size-1]; in SelectRelevantFrames() local
1221 double midX = last->width / 2.0; in SelectRelevantFrames()
1222 double midY = last->height / 2.0; in SelectRelevantFrames()
1254 relevant_frames[relevant_frames_size] = last; in SelectRelevantFrames()
1269 MosaicFrame *last = frames[frames_size-1]; in ComputeBlendParameters() local
1272 double lxpos = last->trs[0][2], lypos = last->trs[1][2]; in ComputeBlendParameters()
1277 double midX = last->width / 2.0; in ComputeBlendParameters()
1278 double midY = last->height / 2.0; in ComputeBlendParameters()
1318 if (is360) m_wb.theta = asin(last->trs[1][0]); in ComputeBlendParameters()
1355 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/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/Gallery2/jni_mosaic/feature_mos/src/mosaic/
DBlend.cpp1216 MosaicFrame *last = frames[frames_size-1]; in SelectRelevantFrames() local
1221 double midX = last->width / 2.0; in SelectRelevantFrames()
1222 double midY = last->height / 2.0; in SelectRelevantFrames()
1254 relevant_frames[relevant_frames_size] = last; in SelectRelevantFrames()
1269 MosaicFrame *last = frames[frames_size-1]; in ComputeBlendParameters() local
1272 double lxpos = last->trs[0][2], lypos = last->trs[1][2]; in ComputeBlendParameters()
1277 double midX = last->width / 2.0; in ComputeBlendParameters()
1278 double midY = last->height / 2.0; in ComputeBlendParameters()
1318 if (is360) m_wb.theta = asin(last->trs[1][0]); in ComputeBlendParameters()
1355 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/Gallery2/jni_mosaic/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()
Ddb_feature_detection.cpp706 int x,next_x,last,right; in db_HarrisStrength_f() local
708 last=w-4; in db_HarrisStrength_f()
709 for(x=3;x<=last;x=next_x) in db_HarrisStrength_f()
713 if(right>last) right=last; in db_HarrisStrength_f()
729 int x,next_x,last; in db_HarrisStrength_u() local
732 last=w-4; in db_HarrisStrength_u()
733 for(x=3;x<=last;x=next_x) in db_HarrisStrength_u()
738 nc = db_mini(128,last-x+1); in db_HarrisStrength_u()
/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()
Ddb_feature_detection.cpp706 int x,next_x,last,right; in db_HarrisStrength_f() local
708 last=w-4; in db_HarrisStrength_f()
709 for(x=3;x<=last;x=next_x) in db_HarrisStrength_f()
713 if(right>last) right=last; in db_HarrisStrength_f()
729 int x,next_x,last; in db_HarrisStrength_u() local
732 last=w-4; in db_HarrisStrength_u()
733 for(x=3;x<=last;x=next_x) in db_HarrisStrength_u()
738 nc = db_mini(128,last-x+1); in db_HarrisStrength_u()
/packages/apps/Camera/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()
Ddb_feature_detection.cpp706 int x,next_x,last,right; in db_HarrisStrength_f() local
708 last=w-4; in db_HarrisStrength_f()
709 for(x=3;x<=last;x=next_x) in db_HarrisStrength_f()
713 if(right>last) right=last; in db_HarrisStrength_f()
729 int x,next_x,last; in db_HarrisStrength_u() local
732 last=w-4; in db_HarrisStrength_u()
733 for(x=3;x<=last;x=next_x) in db_HarrisStrength_u()
738 nc = db_mini(128,last-x+1); in db_HarrisStrength_u()
/packages/apps/Music/src/com/android/music/
DMediaPlaybackService.java1573 public int removeTracks(int first, int last) { in removeTracks() argument
1574 int numremoved = removeTracksInternal(first, last); in removeTracks()
1581 private int removeTracksInternal(int first, int last) { in removeTracksInternal() argument
1583 if (last < first) return 0; in removeTracksInternal()
1585 if (last >= mPlayListLen) last = mPlayListLen - 1; in removeTracksInternal()
1588 if (first <= mPlayPos && mPlayPos <= last) { in removeTracksInternal()
1591 } else if (mPlayPos > last) { in removeTracksInternal()
1592 mPlayPos -= (last - first + 1); in removeTracksInternal()
1594 int num = mPlayListLen - last - 1; in removeTracksInternal()
1596 mPlayList[first + i] = mPlayList[last + 1 + i]; in removeTracksInternal()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DBinaryDictInputOutput.java1456 CharGroupInfo last = null; in getWordAtAddressWithoutParentAddress() local
1467 if (null == last) continue; in getWordAtAddressWithoutParentAddress()
1468 builder.append(new String(last.mCharacters, 0, last.mCharacters.length)); in getWordAtAddressWithoutParentAddress()
1469 buffer.position(last.mChildrenAddress + headerSize); in getWordAtAddressWithoutParentAddress()
1471 groupOffset = last.mChildrenAddress + getGroupCountSize(i); in getWordAtAddressWithoutParentAddress()
1472 last = null; in getWordAtAddressWithoutParentAddress()
1475 last = info; in getWordAtAddressWithoutParentAddress()
1477 if (0 == i && hasChildrenAddress(last.mChildrenAddress)) { in getWordAtAddressWithoutParentAddress()
1478 builder.append(new String(last.mCharacters, 0, last.mCharacters.length)); in getWordAtAddressWithoutParentAddress()
1479 buffer.position(last.mChildrenAddress + headerSize); in getWordAtAddressWithoutParentAddress()
[all …]
/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/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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserHistoryForgettingCurveUtils.java57 public ForgettingCurveParams(int fc, long now, long last) { in ForgettingCurveParams() argument
61 this(fc, now, last, fcToLevel((byte)fc) > 0); in ForgettingCurveParams()
64 private ForgettingCurveParams(int fc, long now, long last, boolean isValid) { in ForgettingCurveParams() argument
67 mLastTouchedTime = last; in ForgettingCurveParams()
/packages/apps/Browser/src/com/android/browser/view/
DPieMenu.java310 PieItem last = mCurrentItem; in onDraw() local
312 last = mOpenItem; in onDraw()
315 if (item != last) { in onDraw()
319 if (last != null) { in onDraw()
320 drawItem(canvas, last); in onDraw()
/packages/apps/Settings/src/com/android/settings/applications/
DAppOpsState.java409 AppOpEntry last = entries.get(entries.size()-1); in addOp() local
410 if (last.getAppEntry() == appEntry) { in addOp()
411 boolean lastExe = last.getTime() != 0; in addOp()
415 + pkgOps.getPackageName() + ": append to " + last); in addOp()
416 last.addOp(opEntry); in addOp()
/packages/apps/Email/emailcommon/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()
/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/LegacyCamera/jni/feature_stab/src/dbreg/
Ddbreg.cpp658 int i = 0, last=0; in SetOutlierThreshold() local
661 if ( last > m_cost_histogram[i] ) in SetOutlierThreshold()
663 last = m_cost_histogram[i]; in SetOutlierThreshold()
675 last = m_cost_histogram[i]; in SetOutlierThreshold()
/packages/apps/Gallery2/jni_mosaic/feature_stab/src/dbreg/
Ddbreg.cpp659 int i = 0, last=0; in SetOutlierThreshold() local
662 if ( last > m_cost_histogram[i] ) in SetOutlierThreshold()
664 last = m_cost_histogram[i]; in SetOutlierThreshold()
676 last = m_cost_histogram[i]; in SetOutlierThreshold()

123