Home
last modified time | relevance | path

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

/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/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.cpp1162 MosaicFrame *last = frames[frames_size-1]; in SelectRelevantFrames() local
1167 double midX = last->width / 2.0; in SelectRelevantFrames()
1168 double midY = last->height / 2.0; in SelectRelevantFrames()
1188 if (fabs(deltaX) > STRIP_SEPARATION_THRESHOLD * last->width || in SelectRelevantFrames()
1189 fabs(deltaY) > STRIP_SEPARATION_THRESHOLD * last->height) in SelectRelevantFrames()
1200 relevant_frames[relevant_frames_size] = last; in SelectRelevantFrames()
1215 MosaicFrame *last = frames[frames_size-1]; in ComputeBlendParameters() local
1218 double lxpos = last->trs[0][2], lypos = last->trs[1][2]; in ComputeBlendParameters()
1223 double midX = last->width / 2.0; in ComputeBlendParameters()
1224 double midY = last->height / 2.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);
DPyramid.h42 static void createPyramid(ImageType image, PyramidShort *pyramid, int last = 3 );
DPyramid.cpp38 PyramidShort *curr, *last; in allocatePyramidPacked() local
41 for (last = (curr = img) + levels; curr < last; curr++) { in allocatePyramidPacked()
/packages/inputmethods/LatinIME/tools/makedict/src/com/android/inputmethod/latin/
DBinaryDictInputOutput.java871 CharGroupInfo last = null; in getWordAtAddress() local
882 if (null == last) continue; in getWordAtAddress()
883 builder.append(new String(last.mCharacters, 0, last.mCharacters.length)); in getWordAtAddress()
884 source.seek(last.mChildrenAddress + headerSize); in getWordAtAddress()
885 groupOffset = last.mChildrenAddress + 1; in getWordAtAddress()
887 last = null; in getWordAtAddress()
890 last = info; in getWordAtAddress()
892 if (0 == i && hasChildrenAddress(last.mChildrenAddress)) { in getWordAtAddress()
893 builder.append(new String(last.mCharacters, 0, last.mCharacters.length)); in getWordAtAddress()
894 source.seek(last.mChildrenAddress + headerSize); in getWordAtAddress()
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
DSimpleIcsWriterTests.java61 for (String last : new String[] {UTF8_1_BYTE, UTF8_2_BYTES, UTF8_3_BYTES, UTF8_4_BYTES}) { in testWriteLine()
63 String input = stringOfLength(i) + last; in testWriteLine()
/packages/apps/Music/src/com/android/music/
DRepeatingImageButton.java121 private void doRepeat(boolean last) { in doRepeat() argument
124 mListener.onRepeat(this, now - mStartTime, last ? -1 : mRepeatCount++); in doRepeat()
DMediaPlaybackService.java1497 public int removeTracks(int first, int last) { in removeTracks() argument
1498 int numremoved = removeTracksInternal(first, last); in removeTracks()
1505 private int removeTracksInternal(int first, int last) { in removeTracksInternal() argument
1507 if (last < first) return 0; in removeTracksInternal()
1509 if (last >= mPlayListLen) last = mPlayListLen - 1; in removeTracksInternal()
1512 if (first <= mPlayPos && mPlayPos <= last) { in removeTracksInternal()
1515 } else if (mPlayPos > last) { in removeTracksInternal()
1516 mPlayPos -= (last - first + 1); in removeTracksInternal()
1518 int num = mPlayListLen - last - 1; in removeTracksInternal()
1520 mPlayList[first + i] = mPlayList[last + 1 + i]; in removeTracksInternal()
[all …]
DIMediaPlaybackService.aidl49 int removeTracks(int first, int last); in removeTracks() argument
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DNinePatchTexture.java264 int last = 0; in stretch() local
266 if ((x[i] - x[last]) < 1f) continue; in stretch()
267 x[++last] = x[i]; in stretch()
268 u[last] = u[i]; in stretch()
270 return last + 1; in stretch()
/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()
DUserDictionaryToolsList.java690 int last = (start + MAX_LIST_WORD_COUNT); in updateWordList() local
691 t.setText((start + 1) + " - " + Math.min(last, size)); in updateWordList()
694 mRightButton.setEnabled(last < size); in updateWordList()
/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/Camera/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/Calendar/src/com/android/calendar/agenda/
DAgendaWindowAdapter.java969 DayAdapterInfo last = mAdapterInfos.getLast(); in onQueryComplete() local
975 if (querySpec.start <= last.end + 1 && last.end < querySpec.end) { in onQueryComplete()
976 last.end = querySpec.end; in onQueryComplete()
980 totalAgendaRangeEnd = last.end; in onQueryComplete()
/packages/apps/Camera/src/com/android/camera/panorama/
DPanoramaActivity.java399 int last = frameRates.size() - 1; in setupCaptureParams() local
400 int minFps = (frameRates.get(last))[Parameters.PREVIEW_FPS_MIN_INDEX]; in setupCaptureParams()
401 int maxFps = (frameRates.get(last))[Parameters.PREVIEW_FPS_MAX_INDEX]; in setupCaptureParams()
/packages/apps/Email/tests/src/com/android/email/mail/store/
DImapStoreUnitTests.java653 String last = imapIdResponse[imapIdResponse.length-1]; in expectLogin() local
654 last = expectedNextTag + " " + last; in expectLogin()
655 imapIdResponse[imapIdResponse.length-1] = last; in expectLogin()
/packages/apps/Settings/src/com/android/settings/
DAccessibilityTutorialActivity.java393 final int last = mAllApps.getLastVisiblePosition(); in onShown() local
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java2708 long last = calculateLastDate(values); in updateLastDate() local
2709 if (last != -1) { in updateLastDate()
2710 values.put(Events.LAST_DATE, last); in updateLastDate()