Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 171) sorted by relevance

1234567

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactDeltaListTests.java376 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataRemoteInsert() local
382 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first); in testMergeDataRemoteInsert()
387 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataLocalUpdateRemoteInsert() local
393 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteInsert()
396 assertDiffPattern(first, in testMergeDataLocalUpdateRemoteInsert()
403 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first); in testMergeDataLocalUpdateRemoteInsert()
412 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataLocalUpdateRemoteDelete() local
418 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteDelete()
421 assertDiffPattern(first, in testMergeDataLocalUpdateRemoteDelete()
429 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first); in testMergeDataLocalUpdateRemoteDelete()
[all …]
DRawContactModifierTests.java634 final ContentValues first = new ContentValues(); in testTrimUpdateRemain() local
635 first.put(Data._ID, TEST_ID); in testTrimUpdateRemain()
636 first.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimUpdateRemain()
637 first.put(kindPhone.typeColumn, typeHome.rawValue); in testTrimUpdateRemain()
638 first.put(Phone.NUMBER, TEST_PHONE); in testTrimUpdateRemain()
646 final RawContactDelta state = getRawContact(TEST_ID, first, second); in testTrimUpdateRemain()
712 final ContentValues first = new ContentValues(); in testTrimUpdateUpdate() local
713 first.put(Data._ID, TEST_ID); in testTrimUpdateUpdate()
714 first.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimUpdateUpdate()
715 first.put(kindPhone.typeColumn, typeHome.rawValue); in testTrimUpdateUpdate()
[all …]
DContactsUtilsTests.java91 final Intent imIntent = intents.first; in testImIntentCustom()
113 final Intent imIntent = intents.first; in testImIntent()
132 final Intent imIntent = intents.first; in testImIntentWithAudio()
154 final Intent imIntent = intents.first; in testImIntentWithVideo()
179 final Intent imIntent = intents.first; in testImEmailIntent()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_indexing.cpp36 void db_LeanPartitionOnPivot(double pivot,double *dest,const double *source,long first,long last,lo… in db_LeanPartitionOnPivot() argument
44 s_point=source+first; in db_LeanPartitionOnPivot()
46 d_bottom=dest+first; in db_LeanPartitionOnPivot()
61 long first=0; in db_LeanQuickSelect() local
76 for(;last-first>2;) in db_LeanQuickSelect()
78 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]); in db_LeanQuickSelect()
79 db_LeanPartitionOnPivot(pivot,dest,source,first,last,&first_equal,&last_equal); in db_LeanQuickSelect()
82 else if(last_equal<pos) first=last_equal+1; in db_LeanQuickSelect()
95 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]); in db_LeanQuickSelect()
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DTestResultLogger.java41 Result first = mResults.get(0); in getAverageSpeed() local
45 return (int) ((1000*(last.receivedBytes + first.receivedBytes))/ in getAverageSpeed()
46 (last.timeStamp - first.timeStamp+1)); in getAverageSpeed()
61 Result first = mResults.get(0); in getAverageSpeed() local
65 if(first.timeStamp > firstTimeStamp || mResults.size() < 3) { in getAverageSpeed()
72 first = mResults.get(i+1); in getAverageSpeed()
76 long timeError = period - (last.timeStamp-first.timeStamp); in getAverageSpeed()
80 errorBytes = (timeError*(preFirst.receivedBytes - first.receivedBytes)) in getAverageSpeed()
81 /(preFirst.timeStamp - first.timeStamp+1); in getAverageSpeed()
84 return (int) ((1000*(errorBytes+last.receivedBytes-first.receivedBytes))/period); in getAverageSpeed()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/
DViewModeTests.java35 ViewMode first = new ViewMode(); in testBundleSaveRestorePreserveState() local
37 first.enterConversationListMode(); in testBundleSaveRestorePreserveState()
38 first.handleSaveInstanceState(state); in testBundleSaveRestorePreserveState()
74 ViewMode first = new ViewMode(); in testMultipleTransitionsFail() local
76 first.enterConversationListMode(); in testMultipleTransitionsFail()
77 assertEquals(ViewMode.CONVERSATION_LIST, first.getMode()); in testMultipleTransitionsFail()
79 first.enterConversationListMode(); in testMultipleTransitionsFail()
80 assertEquals(ViewMode.CONVERSATION_LIST, first.getMode()); in testMultipleTransitionsFail()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DCharMatcher.java980 int first;
983 for (first = 0; first < len; first++) {
984 if (!matches(sequence.charAt(first))) {
988 for (last = len - 1; last > first; last--) {
994 return sequence.subSequence(first, last + 1).toString();
1008 int first;
1010 for (first = 0; first < len; first++) {
1011 if (!matches(sequence.charAt(first))) {
1016 return sequence.subSequence(first, len).toString();
1061 int first = indexIn(sequence);
[all …]
/packages/apps/Camera2/src/com/android/camera/widget/
DPreloader.java87 private void preload(int first, boolean increasing) { in preload() argument
91 start = Math.max(first, mLastEnd); in preload()
92 end = Math.min(first + mLoadAheadItems, mItemSource.getCount()); in preload()
94 start = Math.max(0, first - mLoadAheadItems); in preload()
95 end = Math.min(first, mLastStart); in preload()
98 Log.v(TAG, "preload first=" + first + " increasing=" + increasing + " start=" + start + in preload()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DInCallAnimationUtils.java80 Drawable first = getDrawable(0); in draw() local
84 first.setAlpha(mCrossFadeAlpha); in draw()
85 first.draw(canvas); in draw()
86 first.setAlpha(255); in draw()
97 private static CrossFadeDrawable newCrossFadeDrawable(Drawable first, Drawable second) { in newCrossFadeDrawable() argument
99 layers[0] = first; in newCrossFadeDrawable()
DInCallContactInteractions.java164 if (hours.first.compareTo(currentTime) <= 0 in constructHoursInfo()
171 if (currentTime.get(Calendar.DAY_OF_YEAR) == hours.first.get(Calendar.DAY_OF_YEAR)) { in constructHoursInfo()
216 getFormattedTimeForCalendar(openingHours.get(0).first)); in constructHoursInfo()
224 openingHours.get(todaysIntervalCount).first)); in constructHoursInfo()
238 getFormattedTimeForCalendar(openingHours.get(afterInterval).first)); in constructHoursInfo()
251 getFormattedTimeForCalendar(hours.first), in getTimeSpanStringForHours()
/packages/apps/Contacts/tests/src/com/android/contacts/editor/
DEditorUiUtilsTest.java75 assertEquals(ACCOUNT_NAME, pair.first); in testGetProfileAccountInfo_AccountName()
85 assertNull(pair.first); in testGetProfileAccountInfo_NoAccountName()
96 pair.first); // somebody@lunkedin.com in testGetAccountInfo_AccountName_DisplayLabel()
109 pair.first); // somebody@gmail.com in testGetAccountInfo_AccountName_DisplayLabel_GoogleAccountType()
121 pair.first); // somebody@lunkedin.com in testGetAccountInfo_AccountName_NoDisplayLabel()
133 assertNull(pair.first); in testGetAccountInfo_NoAccountName_DisplayLabel()
143 assertNull(pair.first); in testGetAccountInfo_NoAccountName_NoDisplayLabel()
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dtrie_map_test.cpp109 EXPECT_EQ(v.second, trieMap.getRoot(v.first).mValue); in TEST()
159 const int secondLevel = trieMap.getNextLevelBitmapEntryIndex(secondLevelKey.first); in TEST()
165 threeLevelMap[secondLevelKey.first][secondLevelKey.second][key] = value; in TEST()
169 EXPECT_EQ(firstLevelEntry.second, trieMap.getRoot(firstLevelEntry.first).mValue); in TEST()
173 const int secondLevel = trieMap.getNextLevelBitmapEntryIndex(firstLevelEntry.first); in TEST()
177 trieMap.get(secondLevelEntry.first, secondLevel).mValue); in TEST()
182 const int secondLevel = trieMap.getNextLevelBitmapEntryIndex(firstLevelEntry.first); in TEST()
186 trieMap.getNextLevelBitmapEntryIndex(secondLevelEntry.first, secondLevel); in TEST()
190 trieMap.get(thirdLevelEntry.first, thirdLevel).mValue); in TEST()
/packages/apps/TV/common/src/com/android/tv/common/
DCollectionUtils.java32 public static <T> T[] concatAll(T[] first, T[]... rest) { in concatAll() argument
33 int totalLength = first.length; in concatAll()
37 T[] result = Arrays.copyOf(first, totalLength); in concatAll()
38 int offset = first.length; in concatAll()
/packages/apps/TV/tests/unit/src/com/android/tv/common/
DTvContentRatingCacheTest.java65 TvContentRating[] first = mCache.getRatings(TvContentRatingConstants.STRING_US_TV_MA); in testGetRatings_US_TV_MA_same() local
67 assertSame(first, second); in testGetRatings_US_TV_MA_same()
71 TvContentRating[] first = mCache.getRatings(TvContentRatingConstants.STRING_US_TV_MA); in testGetRatings_US_TV_MA_diffAfterClear() local
74 assertNotSame(first, second); in testGetRatings_US_TV_MA_diffAfterClear()
78 TvContentRating[] first = mCache.getRatings(MA_AND_Y7); in testGetRatings_TWO_orderDoesNotMatter() local
80 assertSame(first, second); in testGetRatings_TWO_orderDoesNotMatter()
/packages/services/Telephony/src/com/android/phone/common/mail/store/imap/
DImapUtility.java106 int first = Integer.parseInt(range.substring(0, colonPos)); in getImapRangeValues() local
108 if (first < second) { in getImapRangeValues()
109 for (int i = first; i <= second; i++) { in getImapRangeValues()
113 for (int i = first; i >= second; i--) { in getImapRangeValues()
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
DImapUtility.java107 int first = Integer.parseInt(range.substring(0, colonPos)); in getImapRangeValues() local
109 if (first < second) { in getImapRangeValues()
110 for (int i = first; i <= second; i++) { in getImapRangeValues()
114 for (int i = first; i >= second; i--) { in getImapRangeValues()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DConversationInfo.java46 public ConversationInfo(int messageCount, int draft, String first, String firstUnread, in ConversationInfo() argument
51 set(messageCount, draft, first, firstUnread, last); in ConversationInfo()
112 public void set(int count, int draft, String first, String firstUnread, String last) { in set() argument
116 firstSnippet = first; in set()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/cache/
DCacheManager.java466 mStorageManager.writeTrackInfoFile(audio.first, audio.second, true); in writeMetaFiles()
467 SortedMap<Long, SampleCache> map = mCacheMap.get(audio.first); in writeMetaFiles()
471 mStorageManager.writeIndexFile(audio.first, map); in writeMetaFiles()
474 mStorageManager.writeTrackInfoFile(video.first, video.second, false); in writeMetaFiles()
475 SortedMap<Long, SampleCache> map = mCacheMap.get(video.first); in writeMetaFiles()
479 mStorageManager.writeIndexFile(video.first, map); in writeMetaFiles()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
DFilterStackDBHelper.java72 boolean first = true; in createTable()
74 if (!first) { in createTable()
77 first = false; in createTable()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
DMimeBoundaryInputStream.java41 private boolean first = true; field in MimeBoundaryInputStream
121 if (first) { in read()
122 first = false; in read()
/packages/services/Telephony/src/org/apache/james/mime4j/
DMimeBoundaryInputStream.java41 private boolean first = true; field in MimeBoundaryInputStream
121 if (first) { in read()
122 first = false; in read()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DThreadingTest.java68 d.first.waitForStatus(DownloadManager.STATUS_SUCCESSFUL, startMillis); in testFilenameRace()
76 final String file = d.first.getStringField(DownloadManager.COLUMN_LOCAL_FILENAME); in testFilenameRace()
82 final String actual = d.first.getContents(); in testFilenameRace()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduParser.java1004 int first = temp & 0xFF; in parseValueLength() local
1006 if (first <= SHORT_LENGTH_MAX) { in parseValueLength()
1007 return first; in parseValueLength()
1008 } else if (first == LENGTH_QUOTE) { in parseValueLength()
1032 int first = temp & 0xFF; in parseEncodedStringValue() local
1033 if (first == 0) { in parseEncodedStringValue()
1038 if (first < TEXT_MIN) { in parseEncodedStringValue()
1385 int first = extractByteValue(pduDataStream); in parseContentTypeParams() local
1387 if (first > TEXT_MAX) { in parseContentTypeParams()
1545 int first = (temp & 0xFF); in parseContentType() local
[all …]
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduParser.java1038 int first = temp & 0xFF; in parseValueLength() local
1040 if (first <= SHORT_LENGTH_MAX) { in parseValueLength()
1041 return first; in parseValueLength()
1042 } else if (first == LENGTH_QUOTE) { in parseValueLength()
1067 int first = temp & 0xFF; in parseEncodedStringValue() local
1068 if (first == 0) { in parseEncodedStringValue()
1073 if (first < TEXT_MIN) { in parseEncodedStringValue()
1422 int first = extractByteValue(pduDataStream); in parseContentTypeParams() local
1424 if (first > TEXT_MAX) { in parseContentTypeParams()
1582 int first = (temp & 0xFF); in parseContentType() local
[all …]
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/ac3/
DAudioTrackMonitor.java84 if (mPtsList.isEmpty() || mPtsList.get(mPtsList.size() - 1).first != pts) { in addPts()
89 mPtsList.set(mPtsList.size() - 1, Pair.create(pair.first, pair.second + 1)); in addPts()
109 ptsBuilder.append('[').append(pair.first).append(':').append(pair.second) in maybeLog()

1234567