Searched refs:last (Results 1 - 23 of 23) sorted by relevance

/packages/apps/Camera/jni/feature_stab/db_vlvm/
H A Ddb_utilities_indexing.cpp36 void db_LeanPartitionOnPivot(double pivot,double *dest,const double *source,long first,long last,long *first_equal,long *last_equal) argument
45 s_top=source+last;
47 d_top=dest+last;
62 long last=nr_elements-1; local
76 for(;last-first>2;)
78 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]);
79 db_LeanPartitionOnPivot(pivot,dest,source,first,last,&first_equal,&last_equal);
81 if(first_equal>pos) last=first_equal-1;
95 pivot=db_TripleMedian(source[first],source[last],sourc
[all...]
H A Ddb_feature_detection.cpp706 int x,next_x,last,right; local
708 last=w-4;
709 for(x=3;x<=last;x=next_x)
713 if(right>last) right=last;
729 int x,next_x,last; local
732 last=w-4;
733 for(x=3;x<=last;x=next_x)
738 nc = db_mini(128,last-x+1);
/packages/experimental/procstatlog/
H A 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
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/
H A DDoodle.java63 PointF last = points.lastElement();
64 normalizedPath.quadTo(last.x, last.y, (last.x + point.x) / 2, (last.y + point.y) / 2);
/packages/apps/Music/src/com/android/music/
H A DIMediaPlaybackService.aidl49 int removeTracks(int first, int last);
H A DRepeatingImageButton.java121 private void doRepeat(boolean last) { argument
124 mListener.onRepeat(this, now - mStartTime, last ? -1 : mRepeatCount++);
136 * If this is going to be the last call in this sequence (i.e. the user
H A DMediaPlaybackService.java770 * the last file in the list has been played,
1494 * @param last The last file to be removed
1497 public int removeTracks(int first, int last) { argument
1498 int numremoved = removeTracksInternal(first, last);
1505 private int removeTracksInternal(int first, int last) { argument
1507 if (last < first) return 0;
1509 if (last >= mPlayListLen) last = mPlayListLen - 1;
1512 if (first <= mPlayPos && mPlayPos <= last) {
1998 removeTracks(int first, int last) argument
[all...]
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
H A DSimpleIcsWriterTests.java61 for (String last : new String[] {UTF8_1_BYTE, UTF8_2_BYTES, UTF8_3_BYTES, UTF8_4_BYTES}) {
63 String input = stringOfLength(i) + last;
/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DPyramid.h42 static void createPyramid(ImageType image, PyramidShort *pyramid, int last = 3 );
H A DBlend.cpp1196 MosaicFrame *last = frames[frames_size-1]; local
1201 double midX = last->width / 2.0;
1202 double midY = last->height / 2.0;
1233 // Add last frame by default
1234 relevant_frames[relevant_frames_size] = last;
1249 MosaicFrame *last = frames[frames_size-1]; local
1252 double lxpos = last->trs[0][2], lypos = last->trs[1][2];
1257 double midX = last->width / 2.0;
1258 double midY = last
[all...]
H A DDelaunay.cpp253 continue; // the one deleted was the last one anyway
590 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);
H A DPyramid.cpp38 PyramidShort *curr, *last; local
41 for (last = (curr = img) + levels; curr < last; curr++) {
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DNinePatchTexture.java259 // the last fixed segment
264 int last = 0;
266 if ((x[i] - x[last]) < 1f) continue;
267 x[++last] = x[i];
268 u[last] = u[i];
270 return last + 1;
/packages/inputmethods/LatinIME/tools/makedict/src/com/android/inputmethod/latin/
H A DBinaryDictInputOutput.java213 * @return the index after the last character.
696 + " last terminal at " + lastTerminalAddress + "\n"
871 CharGroupInfo last = null;
882 if (null == last) continue;
883 builder.append(new String(last.mCharacters, 0, last.mCharacters.length));
884 source.seek(last.mChildrenAddress + headerSize);
885 groupOffset = last.mChildrenAddress + 1;
887 last = null;
890 last
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DComposingText.java177 StrSegment last = strUplayer.get(strUplayer.size() - 1);
178 if (last.to < mod_from) {
180 last.to = mod_to;
181 last.string = toString(layer, last.from, last.to);
H A DUserDictionaryToolsList.java690 int last = (start + MAX_LIST_WORD_COUNT);
691 t.setText((start + 1) + " - " + Math.min(last, size));
694 mRightButton.setEnabled(last < size);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DTextUtilities.java377 // Start with space as last character to avoid leading whitespace
378 char last = ' ';
435 if (last == ' ') {
441 } else if ((c == '-' || c == '=') && (last == c)) {
449 last = c;
453 if ((bufferCount > 0) && (last == ' ')) {
587 // The position of the last input character copied to output
/packages/apps/Camera/jni/feature_stab/src/dbreg/
H A Ddbreg.cpp473 ///// IF BAD, then update reference to the last correctly aligned inspection frame;
482 ///// IF GOOD, then update the last correctly aligned inspection frame to be this;
658 int i = 0, last=0; local
661 if ( last > m_cost_histogram[i] )
663 last = m_cost_histogram[i];
673 //if ( last < m_cost_histogram[i] )
675 last = m_cost_histogram[i];
/packages/apps/Calendar/src/com/android/calendar/agenda/
H A DAgendaWindowAdapter.java148 /** Cached value of the last used adapter */
1068 DayAdapterInfo last = mAdapterInfos.getLast();
1074 if (querySpec.start <= last.end + 1 && last.end < querySpec.end) {
1075 last.end = querySpec.end;
1079 totalAgendaRangeEnd = last.end;
/packages/apps/Camera/src/com/android/camera/panorama/
H A DPanoramaActivity.java210 // We keep the last known orientation. So if the user first orient
388 int last = frameRates.size() - 1;
389 int minFps = (frameRates.get(last))[Parameters.PREVIEW_FPS_MIN_INDEX];
390 int maxFps = (frameRates.get(last))[Parameters.PREVIEW_FPS_MAX_INDEX];
791 // Update last image if URI is invalid and the storage is ready.
/packages/apps/Email/tests/src/com/android/email/mail/store/
H A DImapStoreUnitTests.java653 String last = imapIdResponse[imapIdResponse.length-1];
654 last = expectedNextTag + " " + last;
655 imapIdResponse[imapIdResponse.length-1] = last;
/packages/apps/Settings/src/com/android/settings/
H A DAccessibilityTutorialActivity.java393 final int last = mAllApps.getLastVisiblePosition();
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarProvider2.java1028 // Convert the first and last Julian day range to a range that uses
1033 // Julian day and we want to include all the events on the last day.
1209 // Convert the first and last Julian day range to a range that uses
1214 // Julian day and we want to include all the events on the last day.
1249 // Convert the first and last Julian day range to a range that uses
1254 // Julian day and we want to include all the events on the last day.
2061 // updateLastDate must be after validation, to ensure proper last date computation
2378 // lastDate is the end of the last event or null if it repeats forever
2735 * Calculates the "last date" of the event. For a regular event this is the start time
2736 * plus the duration. For a recurring event this is the start date of the last even
[all...]

Completed in 447 milliseconds