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

123

/packages/apps/LegacyCamera/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...]
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
H A DTestResultLogger.java42 Result last = mResults.get(mResults.size()-1);
45 return (int) ((1000*(last.receivedBytes + first.receivedBytes))/
46 (last.timeStamp - first.timeStamp+1));
50 * Optimized to perform best when period is closest to the last
63 Result last = mResults.get(i--);
64 long firstTimeStamp = last.timeStamp - period;
76 long timeError = period - (last.timeStamp-first.timeStamp);
84 return (int) ((1000*(errorBytes+last.receivedBytes-first.receivedBytes))/period);
/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/UnifiedEmail/src/com/android/mail/utils/
H A DInputSmoother.java53 final Sample last = mRecentSamples.peekLast();
54 if (last != null && nowMs - last.millis > MAX_SAMPLE_INTERVAL_MS) {
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DBinaryDictDecoderUtils.java175 * @return the index after the last character.
335 PtNodeInfo last = null;
346 if (null == last) continue;
347 builder.append(new String(last.mCharacters, 0, last.mCharacters.length));
348 dictDecoder.setPosition(last.mChildrenAddress);
350 groupPos = last.mChildrenAddress + BinaryDictIOUtils.getPtNodeCountSize(i);
351 last = null;
354 last = info;
356 if (0 == i && BinaryDictIOUtils.hasChildrenAddress(last
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DStopWatch.java74 long last = start;
79 sb.append((current - last));
81 last = current;
/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
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
H A Ditoatest.cpp78 T i = 1, last; local
86 last = i;
88 } while (last < i);
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DConversationInfo.java47 String last) {
51 set(messageCount, draft, first, firstUnread, last);
112 public void set(int count, int draft, String first, String firstUnread, String last) { argument
118 lastSnippet = last;
46 ConversationInfo(int messageCount, int draft, String first, String firstUnread, String last) argument
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
H A DAttachmentsView.java365 int last = 0;
367 last = mTileGrid.getChildCount() - 1;
368 if (last > 0) {
369 lastView = mTileGrid.getChildAt(last);
372 last = mAttachmentLayout.getChildCount() - 1;
373 if (last > 0) {
374 lastView = mAttachmentLayout.getChildAt(last);
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DIconNormalizer.java108 // the first and the last non-transparent pixel. Set those values to mLeftBorder and
115 // first and last position for any row.
194 * @param bottomY the last Y position (inclusive) with a valid value.
203 int last = -1; // Last valid y coordinate which didn't have a missing value
216 float currentAngle = (xCordinates[i] - xCordinates[last]) / (i - last);
217 start = last;
231 // Reset from last check
238 last = i;
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DCharMatcher.java802 * Returns the index of the last matching character in a character sequence,
981 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 >
[all...]
H A DUnicodeEscaper.java104 * @param end the index immediately after the last character to be scanned
238 * determine when the last characters have been appended.
288 char last = csq.charAt(end - 1);
289 if (Character.isHighSurrogate(last)) {
290 pendingHighSurrogate = last;
325 * Our last append operation ended halfway through a surrogate pair so we
385 * @param end the index beyond the last valid character to decode
397 // If the high surrogate was the last character, return its inverse
/packages/apps/LegacyCamera/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);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DSuggestionResults.java62 if (comparator().compare(e, last()) > 0) return false;
64 pollLast(); // removes the last element
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DNinePatchTexture.java91 V old = mValue[CACHE_SIZE - 1]; // remove the last item
298 // the last fixed segment
303 int last = 0;
305 if ((x[i] - x[last]) < 1f) continue;
306 x[++last] = x[i];
307 u[last] = u[i];
309 return last + 1;
/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);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DSplineMath.java32 int last = curve.length - 1;
33 curve[last][0] = (float) (points[points.length - 1][0]);
34 curve[last][1] = (float) (points[points.length - 1][1]);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/
H A DHistogramView.java113 float last = 0;
125 last = x;
128 mHistoPath.lineTo(last, h);
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
H A DCarPowerManagementTest.java145 int[] last = setEvents.getLast();
146 assertEquals(expectedResponseState, last[0]);
147 assertEquals(expectedResponseParam, last[1]);
/packages/apps/TV/usbtuner/src/com/android/usbtuner/cc/
H A DCaptionWindowLayout.java534 int start = 0, last = mBuilder.length() - 1;
535 int end = last;
542 if (start == 0 && end == last) {
547 if (end < last) {
548 trim.delete(end + 1, last + 1);
/packages/apps/TV/tests/unit/src/com/android/tv/data/
H A 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;

Completed in 739 milliseconds

123