Home
last modified time | relevance | path

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

12345678

/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 …]
/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/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/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/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/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DBlend.cpp1132 double dx = (m_AllSites[ce->second].getVCenter().x - m_AllSites[ce->first].getVCenter().x); in ClipBlendRect()
1133 double dy = (m_AllSites[ce->second].getVCenter().y - m_AllSites[ce->first].getVCenter().y); in ClipBlendRect()
1134 double xmid = m_AllSites[ce->first].getVCenter().x + dx/2.0; in ClipBlendRect()
1135 double ymid = m_AllSites[ce->first].getVCenter().y + dy/2.0; in ClipBlendRect()
1195 MosaicFrame *first = frames[0]; in SelectRelevantFrames() local
1199 double fxpos = first->trs[0][2], fypos = first->trs[1][2]; in SelectRelevantFrames()
1203 double z = ProjZ(first->trs, midX, midY, 1.0); in SelectRelevantFrames()
1205 double prevX = firstX = ProjX(first->trs, midX, midY, z, 1.0); in SelectRelevantFrames()
1206 double prevY = firstY = ProjY(first->trs, midX, midY, z, 1.0); in SelectRelevantFrames()
1208 relevant_frames[0] = first; // Add first frame by default in SelectRelevantFrames()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dvaluetest.cpp865 for (unsigned first = 0; first < n; first++) { in TEST() local
866 for (unsigned last = first; last <= n; last++) { in TEST()
871 itr = x.Erase(x.Begin() + first, x.Begin() + last); in TEST()
875 EXPECT_EQ(x.Begin() + first, itr); in TEST()
877 size_t removeCount = last - first; in TEST()
879 for (unsigned i = 0; i < first; i++) in TEST()
881 for (unsigned i = first; i < n - removeCount; i++) in TEST()
1159 for (unsigned first = 0; first < n; first++) { in TEST() local
1160 for (unsigned last = first; last <= n; last++) { in TEST()
1165 itr = x.EraseMember(x.MemberBegin() + first, x.MemberBegin() + last); in TEST()
[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/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/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/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/apps/Music/src/com/android/music/
DMediaPlaybackService.java1581 public int removeTracks(int first, int last) { in removeTracks() argument
1582 int numremoved = removeTracksInternal(first, last); in removeTracks()
1589 private int removeTracksInternal(int first, int last) { in removeTracksInternal() argument
1591 if (last < first) return 0; in removeTracksInternal()
1592 if (first < 0) first = 0; in removeTracksInternal()
1596 if (first <= mPlayPos && mPlayPos <= last) { in removeTracksInternal()
1597 mPlayPos = first; in removeTracksInternal()
1600 mPlayPos -= (last - first + 1); in removeTracksInternal()
1604 mPlayList[first + i] = mPlayList[last + 1 + i]; in removeTracksInternal()
1606 mPlayListLen -= last - first + 1; in removeTracksInternal()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java455 Log.d(TAG, "updateCallSetupIndicator " + callsetup + " " + mPendingAction.first); in updateCallSetupIndicator()
468 switch (mPendingAction.first) { in updateCallSetupIndicator()
529 mPendingAction.first); in updateCallSetupIndicator()
537 if (mPendingAction.first == DIAL_NUMBER) { in updateCallSetupIndicator()
547 switch (mPendingAction.first) { in updateCallSetupIndicator()
558 if (mPendingAction.first == DIAL_NUMBER) { in updateCallSetupIndicator()
595 switch (mPendingAction.first) { in updateCallHeldIndicator()
628 Log.e(TAG, "Unexpected callheld=0 while in action " + mPendingAction.first); in updateCallHeldIndicator()
633 switch (mPendingAction.first) { in updateCallHeldIndicator()
687 Log.e(TAG, "Unexpected callheld=0 while in action " + mPendingAction.first); in updateCallHeldIndicator()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DCompactRawContactsEditorView.java660 mPrimaryNameKindSectionData.first.getRawContactDelta(); in setState()
739 mPrimaryNameKindSectionData.first.getRawContactDelta(); in addAccountInfo()
818 final String accountName = TextUtils.isEmpty(accountInfo.first) in addAccountHeader()
819 ? accountInfo.second : accountInfo.first; in addAccountHeader()
831 mPrimaryNameKindSectionData.first.getRawContactDelta(); in addAccountHeader()
848 if (TextUtils.isEmpty(accountInfo.first)) { in addAccountSelector()
853 mAccountSelectorName.setText(accountInfo.first); in addAccountSelector()
861 R.string.compact_editor_account_selector_description, accountInfo.first)); in addAccountSelector()
959 mPhotoRawContactId = photoToWrite.first.getRawContactDelta().getRawContactId(); in addPhotoView()
983 kindSectionDataList.add(mPrimaryNameKindSectionData.first); in addKindSectionViews()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DGlobalDismissManager.java235 if (GOOGLE_ACCOUNT_TYPE.equals(accountPair.first)) { in processEventIds()
372 if (GOOGLE_ACCOUNT_TYPE.equals(account.first)) { in dismissGlobally()
373 LocalDismissId dismissId = new LocalDismissId(account.first, account.second, in dismissGlobally()
401 boolean first = true; in buildMultipleIdQuery()
403 if (first) { in buildMultipleIdQuery()
404 first = false; in buildMultipleIdQuery()
530 Context context = params[0].first; in onReceive()
/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/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/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp340 NearKeysDistanceMap::const_iterator itPP = prevPrevNearKeysDistances->find(it->first); in isPrevLocalMin()
341 NearKeysDistanceMap::const_iterator itC = currentNearKeysDistances->find(it->first); in isPrevLocalMin()
768 if (it->first == NOT_AN_INDEX) { in updateAlignPointProbabilities()
769 sstream << it->first in updateAlignPointProbabilities()
774 sstream << it->first in updateAlignPointProbabilities()
843 if (charProbability.first == NOT_AN_INDEX) { in updateSampledSearchKeySets()
846 (*sampledSearchKeySets)[i].set(charProbability.first); in updateSampledSearchKeySets()
884 std::unordered_map<int, float>::iterator it2 = (*charProbabilities)[index1].find(it->first); in suppressCharProbabilities()
948 const float logProbability = (it->first != NOT_AN_INDEX) in getMostProbableString()
952 character = it->first; in getMostProbableString()
/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()

12345678