Home
last modified time | relevance | path

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

123

/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/Camera/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/Contacts/tests/src/com/android/contacts/
DEntityDeltaListTests.java360 final EntityDeltaList first = buildSet(buildBeforeEntity(CONTACT_BOB, VER_FIRST, in testMergeDataRemoteInsert() local
366 final EntityDeltaList merged = EntityDeltaList.mergeAfter(second, first); in testMergeDataRemoteInsert()
371 final EntityDeltaList first = buildSet(buildBeforeEntity(CONTACT_BOB, VER_FIRST, in testMergeDataLocalUpdateRemoteInsert() local
377 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteInsert()
380 assertDiffPattern(first, in testMergeDataLocalUpdateRemoteInsert()
387 final EntityDeltaList merged = EntityDeltaList.mergeAfter(second, first); in testMergeDataLocalUpdateRemoteInsert()
396 final EntityDeltaList first = buildSet(buildBeforeEntity(CONTACT_BOB, VER_FIRST, in testMergeDataLocalUpdateRemoteDelete() local
402 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteDelete()
405 assertDiffPattern(first, in testMergeDataLocalUpdateRemoteDelete()
413 final EntityDeltaList merged = EntityDeltaList.mergeAfter(second, first); in testMergeDataLocalUpdateRemoteDelete()
[all …]
DEntityModifierTests.java582 final ContentValues first = new ContentValues(); in testTrimUpdateRemain() local
583 first.put(Data._ID, TEST_ID); in testTrimUpdateRemain()
584 first.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimUpdateRemain()
585 first.put(kindPhone.typeColumn, typeHome.rawValue); in testTrimUpdateRemain()
586 first.put(Phone.NUMBER, TEST_PHONE); in testTrimUpdateRemain()
594 final EntityDelta state = getEntity(TEST_ID, first, second); in testTrimUpdateRemain()
653 final ContentValues first = new ContentValues(); in testTrimUpdateUpdate() local
654 first.put(Data._ID, TEST_ID); in testTrimUpdateUpdate()
655 first.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimUpdateUpdate()
656 first.put(kindPhone.typeColumn, typeHome.rawValue); in testTrimUpdateUpdate()
[all …]
/packages/apps/Email/src/com/android/email/mail/store/imap/
DImapUtility.java108 int first = Integer.parseInt(range.substring(0, colonPos)); in getImapRangeValues() local
110 if (first < second) { in getImapRangeValues()
111 for (int i = first; i <= second; i++) { in getImapRangeValues()
115 for (int i = first; i >= second; i--) { in getImapRangeValues()
/packages/apps/Phone/src/com/android/phone/
DAnimationUtils.java181 Drawable first = getDrawable(0); in draw() local
185 first.setAlpha(mCrossFadeAlpha); in draw()
186 first.draw(canvas); in draw()
187 first.setAlpha(255); in draw()
198 private static CrossFadeDrawable newCrossFadeDrawable(Drawable first, Drawable second) { in newCrossFadeDrawable() argument
200 layers[0] = first; in newCrossFadeDrawable()
/packages/apps/Email/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/apps/Gallery2/tests/src/com/android/gallery3d/ui/
DGLCanvasTest.java174 public void glDrawArrays(int mode, int first, int count) { in glDrawArrays() argument
181 mGLVertexPointer.getArrayElement(first, coord); in glDrawArrays()
184 mGLVertexPointer.getArrayElement(first + 1, coord); in glDrawArrays()
218 public void glDrawArrays(int mode, int first, int count) { in glDrawArrays() argument
226 mGLVertexPointer.getArrayElement(first + i, coord); in glDrawArrays()
287 public void glDrawArrays(int mode, int first, int count) { in glDrawArrays() argument
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
DLocalDataTest.java150 MediaSet first = mAlbumSet.getSubMediaSet(0); in verifyResult() local
151 assertEquals(1, first.getMediaItemCount()); in verifyResult()
152 LocalMediaItem item = (LocalMediaItem) first.getMediaItem(0, 1).get(0); in verifyResult()
329 MediaSet first = mAlbumSet.getSubMediaSet(0); in verifyResult() local
330 assertEquals(1, first.getMediaItemCount()); in verifyResult()
331 LocalMediaItem item = (LocalMediaItem) first.getMediaItem(0, 1).get(0); in verifyResult()
/packages/inputmethods/OpenWnn/
DChangeLog.txt72 The first release implemented following features:
87 The first release implemented following features:
94 The first release implemented following features:
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DBlend.cpp1152 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 …]
DCSite.h28 short first; member
DDelaunay.cpp310 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/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 …]
DCSite.h28 short first; member
DDelaunay.cpp310 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/Music/src/com/android/music/
DMediaPlaybackService.java1555 public int removeTracks(int first, int last) { in removeTracks() argument
1556 int numremoved = removeTracksInternal(first, last); in removeTracks()
1563 private int removeTracksInternal(int first, int last) { in removeTracksInternal() argument
1565 if (last < first) return 0; in removeTracksInternal()
1566 if (first < 0) first = 0; in removeTracksInternal()
1570 if (first <= mPlayPos && mPlayPos <= last) { in removeTracksInternal()
1571 mPlayPos = first; in removeTracksInternal()
1574 mPlayPos -= (last - first + 1); in removeTracksInternal()
1578 mPlayList[first + i] = mPlayList[last + 1 + i]; in removeTracksInternal()
1580 mPlayListLen -= last - first + 1; in removeTracksInternal()
[all …]
DIMediaPlaybackService.aidl49 int removeTracks(int first, int last); in removeTracks() argument
DTouchInterceptor.java256 View first = getChildAt(mSrcDragPos - getFirstVisiblePosition()); in doExpansion() local
268 if (vv.equals(first)) { in doExpansion()
273 } else if (vv.equals(first)) { in doExpansion()
/packages/apps/Nfc/src/com/android/nfc/
DEventLogTags.logtags5 # logged on the first P2P sharing event
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPositionController.java1075 int first, last; in moveBox() local
1076 for (first = -BOX_MAX; first <= BOX_MAX; first++) { in moveBox()
1077 if (from.get(first) != Integer.MAX_VALUE) break; in moveBox()
1084 if (first > BOX_MAX) { in moveBox()
1086 first = last = 0; in moveBox()
1094 for (int i = Math.max(0, first + 1); i < last; i++) { in moveBox()
1110 for (int i = Math.min(-1, last - 1); i > first; i--) { in moveBox()
1137 if (i >= first && i < last) { in moveBox()
1147 for (int i = first - 1; i >= -BOX_MAX; i--) { in moveBox()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppManager.java162 if (V) Log.v(TAG, "Cleaning out whitelist entry " + entry.first); in cleanupWhitelist()
173 if (entry.first.equals(address)) { in addToWhitelist()
183 if (entry.first.equals(address)) return true; in isWhitelisted()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DAdditionalSubtypeSettings.java83 return first.compareTo(o.first); in compareTo()
272 locale.first, layout.first, ASCII_CAPABLE); in onClick()
/packages/apps/Camera/perftests/panorama/
DREADME.txt21 The first number in the parenthesis is the time to align the frames; the second
/packages/apps/Email/src/com/android/email/mail/store/
DPop3Store.java568 char first = response.charAt(0); in parseSingleLine() local
569 if (first == '+') { in parseSingleLine()
581 } else if (first == '-') { in parseSingleLine()
600 char first = response.charAt(0); in parseMultiLine() local
601 if (first == '.') { in parseMultiLine()

123