/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
D | RawContactDeltaListTests.java | 361 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataRemoteInsert() local 367 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first); in testMergeDataRemoteInsert() 372 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataLocalUpdateRemoteInsert() local 378 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteInsert() 381 assertDiffPattern(first, in testMergeDataLocalUpdateRemoteInsert() 388 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first); in testMergeDataLocalUpdateRemoteInsert() 397 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataLocalUpdateRemoteDelete() local 403 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteDelete() 406 assertDiffPattern(first, in testMergeDataLocalUpdateRemoteDelete() 414 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first); in testMergeDataLocalUpdateRemoteDelete() [all …]
|
D | RawContactModifierTests.java | 586 final ContentValues first = new ContentValues(); in testTrimUpdateRemain() local 587 first.put(Data._ID, TEST_ID); in testTrimUpdateRemain() 588 first.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimUpdateRemain() 589 first.put(kindPhone.typeColumn, typeHome.rawValue); in testTrimUpdateRemain() 590 first.put(Phone.NUMBER, TEST_PHONE); in testTrimUpdateRemain() 598 final RawContactDelta state = getRawContact(TEST_ID, first, second); in testTrimUpdateRemain() 658 final ContentValues first = new ContentValues(); in testTrimUpdateUpdate() local 659 first.put(Data._ID, TEST_ID); in testTrimUpdateUpdate() 660 first.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimUpdateUpdate() 661 first.put(kindPhone.typeColumn, typeHome.rawValue); in testTrimUpdateUpdate() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/lib/base/ |
D | CharMatcher.java | 980 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/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | CharMatcher.java | 980 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/Camera/jni/feature_stab/db_vlvm/ |
D | db_utilities_indexing.cpp | 36 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/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities_indexing.cpp | 36 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/Camera2/jni/feature_stab/db_vlvm/ |
D | db_utilities_indexing.cpp | 36 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/UnifiedEmail/tests/src/com/android/mail/ui/ |
D | ViewModeTests.java | 35 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/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Blend.cpp | 1132 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 …]
|
D | Delaunay.cpp | 310 return (ev[i].first - ev[j].first); in cmpev() 611 if ((int) fabs(sa[currv->first].getVCenter().x - sa[currv->second].getVCenter().x) <= width && 612 … (int) fabs(sa[currv->first].getVCenter().y - sa[currv->second].getVCenter().y) <= height) { 629 for (; edge->first == i && nedge; edge++, nedge--) {
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | Blend.cpp | 1152 double dx = (m_AllSites[ce->second].getVCenter().x - m_AllSites[ce->first].getVCenter().x); in ClipBlendRect() 1153 double dy = (m_AllSites[ce->second].getVCenter().y - m_AllSites[ce->first].getVCenter().y); in ClipBlendRect() 1154 double xmid = m_AllSites[ce->first].getVCenter().x + dx/2.0; in ClipBlendRect() 1155 double ymid = m_AllSites[ce->first].getVCenter().y + dy/2.0; in ClipBlendRect() 1215 MosaicFrame *first = frames[0]; in SelectRelevantFrames() local 1219 double fxpos = first->trs[0][2], fypos = first->trs[1][2]; in SelectRelevantFrames() 1223 double z = ProjZ(first->trs, midX, midY, 1.0); in SelectRelevantFrames() 1225 double prevX = firstX = ProjX(first->trs, midX, midY, z, 1.0); in SelectRelevantFrames() 1226 double prevY = firstY = ProjY(first->trs, midX, midY, z, 1.0); in SelectRelevantFrames() 1228 relevant_frames[0] = first; // Add first frame by default in SelectRelevantFrames() [all …]
|
/packages/apps/Camera2/jni/feature_mos/src/mosaic/ |
D | Blend.cpp | 1152 double dx = (m_AllSites[ce->second].getVCenter().x - m_AllSites[ce->first].getVCenter().x); in ClipBlendRect() 1153 double dy = (m_AllSites[ce->second].getVCenter().y - m_AllSites[ce->first].getVCenter().y); in ClipBlendRect() 1154 double xmid = m_AllSites[ce->first].getVCenter().x + dx/2.0; in ClipBlendRect() 1155 double ymid = m_AllSites[ce->first].getVCenter().y + dy/2.0; in ClipBlendRect() 1215 MosaicFrame *first = frames[0]; in SelectRelevantFrames() local 1219 double fxpos = first->trs[0][2], fypos = first->trs[1][2]; in SelectRelevantFrames() 1223 double z = ProjZ(first->trs, midX, midY, 1.0); in SelectRelevantFrames() 1225 double prevX = firstX = ProjX(first->trs, midX, midY, z, 1.0); in SelectRelevantFrames() 1226 double prevY = firstY = ProjY(first->trs, midX, midY, z, 1.0); in SelectRelevantFrames() 1228 relevant_frames[0] = first; // Add first frame by default in SelectRelevantFrames() [all …]
|
/packages/apps/InCallUI/src/com/android/incallui/ |
D | AnimationUtils.java | 180 Drawable first = getDrawable(0); in draw() local 184 first.setAlpha(mCrossFadeAlpha); in draw() 185 first.draw(canvas); in draw() 186 first.setAlpha(255); in draw() 197 private static CrossFadeDrawable newCrossFadeDrawable(Drawable first, Drawable second) { in newCrossFadeDrawable() argument 199 layers[0] = first; in newCrossFadeDrawable()
|
/packages/apps/Music/src/com/android/music/ |
D | MediaPlaybackService.java | 1579 public int removeTracks(int first, int last) { in removeTracks() argument 1580 int numremoved = removeTracksInternal(first, last); in removeTracks() 1587 private int removeTracksInternal(int first, int last) { in removeTracksInternal() argument 1589 if (last < first) return 0; in removeTracksInternal() 1590 if (first < 0) first = 0; in removeTracksInternal() 1594 if (first <= mPlayPos && mPlayPos <= last) { in removeTracksInternal() 1595 mPlayPos = first; in removeTracksInternal() 1598 mPlayPos -= (last - first + 1); in removeTracksInternal() 1602 mPlayList[first + i] = mPlayList[last + 1 + i]; in removeTracksInternal() 1604 mPlayListLen -= last - first + 1; in removeTracksInternal() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | GlobalDismissManager.java | 235 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/Gallery2/src/com/android/gallery3d/ui/ |
D | PositionController.java | 1077 int first, last; in moveBox() local 1078 for (first = -BOX_MAX; first <= BOX_MAX; first++) { in moveBox() 1079 if (from.get(first) != Integer.MAX_VALUE) break; in moveBox() 1086 if (first > BOX_MAX) { in moveBox() 1088 first = last = 0; in moveBox() 1096 for (int i = Math.max(0, first + 1); i < last; i++) { in moveBox() 1112 for (int i = Math.min(-1, last - 1); i > first; i--) { in moveBox() 1139 if (i >= first && i < last) { in moveBox() 1149 for (int i = first - 1; i >= -BOX_MAX; i--) { in moveBox()
|
/packages/apps/Email/src/com/android/email/mail/store/imap/ |
D | ImapUtility.java | 107 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/Exchange/src/com/android/exchange/eas/ |
D | EasSyncContacts.java | 406 boolean first = true; in sendChildren() 410 if (first) { in sendChildren() 412 first = false; in sendChildren() 417 if (!first) { in sendChildren() 730 boolean first = true; in setUpsyncCommands() 740 if (first) { in setUpsyncCommands() 743 first = false; in setUpsyncCommands() 856 if (!first) { in setUpsyncCommands()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | ConversationInfo.java | 47 public ConversationInfo(int count, int draft, String first, String firstUnread, String last) { in ConversationInfo() argument 49 set(count, draft, first, firstUnread, last); in ConversationInfo() 96 public void set(int count, int draft, String first, String firstUnread, String last) { in set() argument 100 firstSnippet = first; in set()
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
D | SendersFormattingTests.java | 34 String first = "snippet", firstUnread = first, last = first; in createConversationInfo() local 35 return new ConversationInfo(count, draftCount, first, firstUnread, last); in createConversationInfo()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_state_utils.cpp | 344 NearKeysDistanceMap::const_iterator itPP = prevPrevNearKeysDistances->find(it->first); in isPrevLocalMin() 345 NearKeysDistanceMap::const_iterator itC = currentNearKeysDistances->find(it->first); in isPrevLocalMin() 810 if (it->first == NOT_AN_INDEX) { in updateAlignPointProbabilities() 811 sstream << it->first in updateAlignPointProbabilities() 816 sstream << it->first in updateAlignPointProbabilities() 923 hash_map_compat<int, float>::iterator it2 = (*charProbabilities)[index1].find(it->first); in suppressCharProbabilities() 987 const float logProbability = (it->first != NOT_AN_INDEX) in getMostProbableString() 991 character = it->first; in getMostProbableString()
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchFragment.java | 382 int first = mLapsList.getFirstVisiblePosition(); in onCreateView() 385 if (last < first) { in onCreateView() 386 last = first; in onCreateView() 389 long offset = duration / (last - first + 1) / 5; in onCreateView() 390 for (int visibleIndex = first; visibleIndex <= last; visibleIndex++) { in onCreateView() 391 View lapView = mLapsList.getChildAt(visibleIndex - first); in onCreateView() 393 float toXValue = shiftX ? 1.0f * (visibleIndex - first + 1) : 0; in onCreateView() 394 float toYValue = shiftX ? 0 : 4.0f * (visibleIndex - first + 1); in onCreateView()
|
/packages/apps/UnifiedEmail/src/com/android/bitmap/ |
D | ContiguousFIFOAggregator.java | 186 T first; in maybeExecuteNow() local 190 first = mExpected.peek(); in maybeExecuteNow() 193 onFirstExpectedChanged(first); in maybeExecuteNow() 196 final int hash = first.hashCode(); in maybeExecuteNow()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ |
D | SenderInfoLoader.java | 186 String email = prev.first; in loadContactPhotos() 230 boolean first = true; in appendQuestionMarks() 232 if (first) { in appendQuestionMarks() 233 first = false; in appendQuestionMarks()
|
/packages/apps/Email/src/com/android/email/mail/store/ |
D | Pop3Store.java | 470 char first = response.charAt(0); in parseSingleLine() local 471 if (first == '+') { in parseSingleLine() 483 } else if (first == '-') { in parseSingleLine() 502 char first = response.charAt(0); in parseMultiLine() local 503 if (first == '.') { in parseMultiLine()
|