/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/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/Dialer/java/com/android/contacts/common/util/ |
H A D | StopWatch.java | 65 long last = start; 70 sb.append((current - last)); 72 last = current;
|
/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/Contacts/src/com/android/contacts/util/ |
H A D | StopWatch.java | 74 long last = start; 79 sb.append((current - last)); 81 last = current;
|
/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/Music/src/com/android/music/ |
H A D | RepeatingImageButton.java | 120 private void doRepeat(boolean last) { argument 123 mListener.onRepeat(this, now - mStartTime, last ? -1 : mRepeatCount++); 135 * If this is going to be the last call in this sequence (i.e. the user
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
H A D | AttachmentsView.java | 434 int last = 0; 436 last = mTileGrid.getChildCount() - 1; 437 if (last > 0) { 438 lastView = mTileGrid.getChildAt(last); 441 last = mAttachmentLayout.getChildCount() - 1; 442 if (last > 0) { 443 lastView = mAttachmentLayout.getChildAt(last);
|
/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/DocumentsUI/tests/common/com/android/documentsui/dirlist/ |
H A D | TestDocumentsAdapter.java | 55 int last = startPosition + itemCount; 56 for (int i = startPosition; i < last; i++) {
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/selection/testing/ |
H A D | TestAdapter.java | 52 int last = startPosition + itemCount; 53 for (int i = startPosition; i < last; i++) {
|
/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...] |
/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/apps/Launcher3/src/com/android/launcher3/graphics/ |
H A D | IconNormalizer.java | 233 // the first and the last non-transparent pixel. Set those values to mLeftBorder and 240 // first and last position for any row. 330 * @param bottomY the last Y position (inclusive) with a valid value. 339 int last = -1; // Last valid y coordinate which didn't have a missing value 352 float currentAngle = (xCoordinates[i] - xCoordinates[last]) / (i - last); 353 start = last; 367 // Reset from last check 374 last = i;
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
H A D | CalculatorExpr.java | 224 * Undo the last add or remove last exponent digit. 495 Token last = mExpr.get(s-1); 496 if(!(last instanceof Constant)) { 497 if (last instanceof PreEval) { 554 Token last = mExpr.get(s-1); 556 if (!(first instanceof Operator) && !(last instanceof Operator)) { 568 * Undo the last key addition, if any. 576 Token last = mExpr.get(s-1); 577 if (last instanceo [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
H A D | FocusManager.java | 258 // around to the last visible item. 264 // Stop forward focus search at the last item, otherwise focus will wrap 301 * <li>The first (or last) item, if paging up (or down) would go past those limits. 310 int last = mScope.layout.findLastVisibleItemPosition(); 312 int pageSize = last - first + 1; 326 if (current < last) { 327 // If the current item isn't the last item, target the last item. 328 return last; 330 // If the current item is the last ite [all...] |
/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/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/ |
H A D | MapClientTest.java | 147 BluetoothDevice last = makeBluetoothDevice("11:22:33:44:55:66"); 148 Assert.assertFalse(mService.connect(last));
|
/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);
|