/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
H A D | db_utilities_indexing.cpp | 36 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 D | TestResultLogger.java | 42 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 D | procstatreport.py | 178 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 D | InputSmoother.java | 53 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 D | BinaryDictDecoderUtils.java | 175 * @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 D | StopWatch.java | 74 long last = start; 79 sb.append((current - last)); 81 last = current;
|
/packages/apps/Music/src/com/android/music/ |
H A D | IMediaPlaybackService.aidl | 49 int removeTracks(int first, int last);
|
H A D | RepeatingImageButton.java | 121 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 D | itoatest.cpp | 78 T i = 1, last; local 86 last = i; 88 } while (last < i);
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
H A D | ConversationInfo.java | 47 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 D | AttachmentsView.java | 365 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 D | IconNormalizer.java | 108 // 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 D | CharMatcher.java | 802 * 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 D | UnicodeEscaper.java | 104 * @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 D | Pyramid.h | 42 static void createPyramid(ImageType image, PyramidShort *pyramid, int last = 3 );
|
H A D | Blend.cpp | 1196 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 D | Delaunay.cpp | 253 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 D | SuggestionResults.java | 62 if (comparator().compare(e, last()) > 0) return false; 64 pollLast(); // removes the last element
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | NinePatchTexture.java | 91 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 D | ComposingText.java | 177 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 D | SplineMath.java | 32 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 D | HistogramView.java | 113 float last = 0; 125 last = x; 128 mHistoPath.lineTo(last, h);
|
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
H A D | CarPowerManagementTest.java | 145 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 D | CaptionWindowLayout.java | 534 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 D | ProgramDataManagerTest.java | 341 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;
|