Searched refs:first (Results 1 - 25 of 132) sorted by relevance

123456

/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
H A DTestResultLogger.java41 Result first = mResults.get(0);
45 return (int) ((1000*(last.receivedBytes + first.receivedBytes))/
46 (last.timeStamp - first.timeStamp+1));
61 Result first = mResults.get(0);
65 if(first.timeStamp > firstTimeStamp || mResults.size() < 3) {
72 first = mResults.get(i+1);
76 long timeError = period - (last.timeStamp-first.timeStamp);
80 errorBytes = (timeError*(preFirst.receivedBytes - first.receivedBytes))
81 /(preFirst.timeStamp - first.timeStamp+1);
84 return (int) ((1000*(errorBytes+last.receivedBytes-first
[all...]
/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
44 s_point=source+first;
46 d_bottom=dest+first;
61 long first=0; 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);
82 else if(last_equal<pos) first=last_equal+1;
95 pivot=db_TripleMedian(source[first],sourc
[all...]
/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
44 s_point=source+first;
46 d_bottom=dest+first;
61 long first=0; 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);
82 else if(last_equal<pos) first=last_equal+1;
95 pivot=db_TripleMedian(source[first],sourc
[all...]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/
H A DViewModeTests.java35 ViewMode first = new ViewMode();
37 first.enterConversationListMode();
38 first.handleSaveInstanceState(state);
74 ViewMode first = new ViewMode();
76 first.enterConversationListMode();
77 assertEquals(ViewMode.CONVERSATION_LIST, first.getMode());
79 first.enterConversationListMode();
80 assertEquals(ViewMode.CONVERSATION_LIST, first.getMode());
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/
H A DPair.java25 public Pair(final T1 first, final T2 second) { argument
26 mFirst = first;
/packages/apps/Camera2/src/com/android/camera/widget/
H A DPreloader.java83 * @param first The source position to load from
87 private void preload(int first, boolean increasing) { argument
91 start = Math.max(first, mLastEnd);
92 end = Math.min(first + mLoadAheadItems, mItemSource.getCount());
94 start = Math.max(0, first - mLoadAheadItems);
95 end = Math.min(first, mLastStart);
98 Log.v(TAG, "preload first=" + first + " increasing=" + increasing + " start=" + start +
118 // strictly true because we may batch preload multiple items at once when we first start
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
H A DImapUtility.java107 int first = Integer.parseInt(range.substring(0, colonPos));
109 if (first < second) {
110 for (int i = first; i <= second; i++) {
114 for (int i = first; i >= second; i--) {
/packages/services/Telephony/src/com/android/phone/common/mail/store/imap/
H A DImapUtility.java106 int first = Integer.parseInt(range.substring(0, colonPos));
108 if (first < second) {
109 for (int i = first; i <= second; i++) {
113 for (int i = first; i >= second; i--) {
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
H A DRawContactDeltaListTests.java361 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB,
367 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first);
372 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB,
378 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED);
381 assertDiffPattern(first,
388 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first);
397 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB,
403 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED);
406 assertDiffPattern(first,
414 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first);
[all...]
/packages/apps/InCallUI/src/com/android/incallui/
H A DInCallAnimationUtils.java80 Drawable first = getDrawable(0);
84 first.setAlpha(mCrossFadeAlpha);
85 first.draw(canvas);
86 first.setAlpha(255);
97 private static CrossFadeDrawable newCrossFadeDrawable(Drawable first, Drawable second) { argument
99 layers[0] = first;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
H A DFilterStackDBHelper.java72 boolean first = true;
74 if (!first) {
77 first = false;
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
H A DMimeBoundaryInputStream.java41 private boolean first = true; field in class:MimeBoundaryInputStream
121 if (first) {
122 first = false;
/packages/services/Telephony/src/org/apache/james/mime4j/
H A DMimeBoundaryInputStream.java41 private boolean first = true; field in class:MimeBoundaryInputStream
121 if (first) {
122 first = false;
/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DCSite.h28 short first; member in struct:__anon1
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DCSite.h28 short first; member in struct:__anon32
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
H A Ddigraph_utils.h39 typedef struct { int first; int second; int compositeGlyph; } digraph_t; member in struct:latinime::DigraphUtils::__anon71
/packages/apps/Music/src/com/android/music/
H A DIMediaPlaybackService.aidl49 int removeTracks(int first, int last);
/packages/apps/Settings/src/com/android/settings/fingerprint/
H A DSetupFingerprintEnrollFindSensor.java42 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
44 super.onApplyThemeResource(theme, resid, first);
H A DSetupFingerprintEnrollIntroduction.java47 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
49 super.onApplyThemeResource(theme, resid, first);
H A DSetupFingerprintEnrollOnboard.java48 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
50 super.onApplyThemeResource(theme, resid, first);
/packages/inputmethods/LatinIME/native/jni/src/utils/
H A Dprofiler.h40 AKLOGI("(%d): Used %4.2f%%, %8.4f ms. Called %d times.", time.first,
41 time.second / totalTime * 100.0f, time.second, mCounters[time.first]);
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DCharMatcher.java755 * Returns the index of the first matching character in a character sequence,
775 * Returns the index of the first matching character in a character sequence,
783 * @param start the first index to examine; must be nonnegative and no
785 * @return the index of the first matching character, guaranteed to be no less
892 * the first matching character, then iterates the remainder of the sequence
980 int first;
983 for (first = 0; first < len; first++) {
984 if (!matches(sequence.charAt(first))) {
[all...]
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
H A Dtrie_map_test.cpp109 EXPECT_EQ(v.second, trieMap.getRoot(v.first).mValue);
159 const int secondLevel = trieMap.getNextLevelBitmapEntryIndex(secondLevelKey.first);
165 threeLevelMap[secondLevelKey.first][secondLevelKey.second][key] = value;
169 EXPECT_EQ(firstLevelEntry.second, trieMap.getRoot(firstLevelEntry.first).mValue);
173 const int secondLevel = trieMap.getNextLevelBitmapEntryIndex(firstLevelEntry.first);
177 trieMap.get(secondLevelEntry.first, secondLevel).mValue);
182 const int secondLevel = trieMap.getNextLevelBitmapEntryIndex(firstLevelEntry.first);
186 trieMap.getNextLevelBitmapEntryIndex(secondLevelEntry.first, secondLevel);
190 trieMap.get(thirdLevelEntry.first, thirdLevel).mValue);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DDeferredHandler.java48 r = p.first;
130 p.first.run();
137 Runnable peek = p.first;
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DThreadingTest.java83 d.first.waitForStatus(DownloadManager.STATUS_SUCCESSFUL, startMillis);
91 final String file = d.first.getStringField(DownloadManager.COLUMN_LOCAL_FILENAME);
97 final String actual = d.first.getContents();

Completed in 786 milliseconds

123456