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

1234567

/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/TV/common/src/com/android/tv/common/
H A DCollectionUtils.java32 public static <T> T[] concatAll(T[] first, T[]... rest) { argument
33 int totalLength = first.length;
37 T[] result = Arrays.copyOf(first, totalLength);
38 int offset = first.length;
/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.java376 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB,
382 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first);
387 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB,
393 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED);
396 assertDiffPattern(first,
403 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first);
412 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB,
418 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED);
421 assertDiffPattern(first,
429 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first);
[all...]
/packages/apps/Dialer/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/TV/tests/unit/src/com/android/tv/common/
H A DTvContentRatingCacheTest.java65 TvContentRating[] first = mCache.getRatings(TvContentRatingConstants.STRING_US_TV_MA);
67 assertSame(first, second);
71 TvContentRating[] first = mCache.getRatings(TvContentRatingConstants.STRING_US_TV_MA);
74 assertNotSame(first, second);
78 TvContentRating[] first = mCache.getRatings(MA_AND_Y7);
80 assertSame(first, second);
/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/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DThreadingTest.java68 d.first.waitForStatus(DownloadManager.STATUS_SUCCESSFUL, startMillis);
76 final String file = d.first.getStringField(DownloadManager.COLUMN_LOCAL_FILENAME);
82 final String actual = d.first.getContents();
/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/LegacyCamera/jni/feature_mos/src/mosaic/
H A DCSite.h28 short first; member in struct:__anon5
/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/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/apps/Contacts/tests/src/com/android/contacts/editor/
H A DEditorUiUtilsTest.java75 assertEquals(ACCOUNT_NAME, pair.first);
85 assertNull(pair.first);
96 pair.first); // somebody@lunkedin.com
109 pair.first); // somebody@gmail.com
121 pair.first); // somebody@lunkedin.com
133 assertNull(pair.first);
143 assertNull(pair.first);
/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/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/ac3/
H A DAudioTrackMonitor.java84 if (mPtsList.isEmpty() || mPtsList.get(mPtsList.size() - 1).first != pts) {
89 mPtsList.set(mPtsList.size() - 1, Pair.create(pair.first, pair.second + 1));
109 ptsBuilder.append('[').append(pair.first).append(':').append(pair.second)
/packages/apps/Messaging/src/com/android/messaging/util/
H A DConversationIdSet.java38 public String first() { method in class:ConversationIdSet

Completed in 7554 milliseconds

1234567