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

12

/packages/apps/Camera/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/Email/src/com/android/email/mail/store/imap/
H A DImapUtility.java108 int first = Integer.parseInt(range.substring(0, colonPos));
110 if (first < second) {
111 for (int i = first; i <= second; i++) {
115 for (int i = first; i >= second; i--) {
/packages/apps/Contacts/tests/src/com/android/contacts/
H A DEntityDeltaListTests.java360 final EntityDeltaList first = buildSet(buildBeforeEntity(CONTACT_BOB, VER_FIRST,
366 final EntityDeltaList merged = EntityDeltaList.mergeAfter(second, first);
371 final EntityDeltaList first = buildSet(buildBeforeEntity(CONTACT_BOB, VER_FIRST,
377 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED);
380 assertDiffPattern(first,
387 final EntityDeltaList merged = EntityDeltaList.mergeAfter(second, first);
396 final EntityDeltaList first = buildSet(buildBeforeEntity(CONTACT_BOB, VER_FIRST,
402 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED);
405 assertDiffPattern(first,
413 final EntityDeltaList merged = EntityDeltaList.mergeAfter(second, first);
[all...]
H A DEntityModifierTests.java216 // Add first home, first work
259 // Add first home, first work
296 // Add first home, should now suggest work
582 final ContentValues first = new ContentValues();
583 first.put(Data._ID, TEST_ID);
584 first.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE);
585 first.put(kindPhone.typeColumn, typeHome.rawValue);
586 first
[all...]
/packages/apps/Email/emailcommon/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/Camera/jni/feature_mos/src/mosaic/
H A DCSite.h28 short first; member in struct:__anon1
H A DBlend.cpp114 else // For WIDE strip mode, first select the relevant frames to blend.
437 // from the first image, then go to 50% contribution from each image at
1132 double dx = (m_AllSites[ce->second].getVCenter().x - m_AllSites[ce->first].getVCenter().x);
1133 double dy = (m_AllSites[ce->second].getVCenter().y - m_AllSites[ce->first].getVCenter().y);
1134 double xmid = m_AllSites[ce->first].getVCenter().x + dx/2.0;
1135 double ymid = m_AllSites[ce->first].getVCenter().y + dy/2.0;
1195 MosaicFrame *first = frames[0]; local
1199 double fxpos = first->trs[0][2], fypos = first->trs[1][2];
1203 double z = ProjZ(first
1248 MosaicFrame *first = frames[0]; local
[all...]
H A DDelaunay.cpp310 return (ev[i].first - ev[j].first);
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/
H A DIMediaPlaybackService.aidl49 int removeTracks(int first, int last);
H A DMediaPlaybackService.java858 * the first track.
859 * If the action is NOW, playback will switch to the first of
1098 // if we are at the end of the song, go to the next song first
1493 * @param first The first file to be removed
1497 public int removeTracks(int first, int last) { argument
1498 int numremoved = removeTracksInternal(first, last);
1505 private int removeTracksInternal(int first, int last) { argument
1507 if (last < first) return 0;
1508 if (first <
1998 removeTracks(int first, int last) argument
[all...]
H A DTouchInterceptor.java256 View first = getChildAt(mSrcDragPos - getFirstVisiblePosition());
268 if (vv.equals(first)) {
273 } else if (vv.equals(first)) {
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
H A DGLCanvasTest.java194 public void glDrawArrays(int mode, int first, int count) { argument
201 mGLVertexPointer.getArrayElement(first, coord);
204 mGLVertexPointer.getArrayElement(first + 1, coord);
238 public void glDrawArrays(int mode, int first, int count) { argument
246 mGLVertexPointer.getArrayElement(first + i, coord);
307 public void glDrawArrays(int mode, int first, int count) { argument
545 public void glDrawArrays(int mode, int first, int count) { argument
552 mGLVertexPointer.getArrayElement(first, coord);
555 mGLVertexPointer.getArrayElement(first + 1, coord);
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
H A DLocalDataTest.java141 insertImageData(db, 3000, 0xB001, "first"); // id 3
150 MediaSet first = mAlbumSet.getSubMediaSet(0);
151 assertEquals(1, first.getMediaItemCount());
152 LocalMediaItem item = (LocalMediaItem) first.getMediaItem(0, 1).get(0);
190 insertImageData(db, 3000, 0xB001, "first"); // id 3
320 insertVideoData(db, 3000, 0xB001, "first"); // id 3
329 MediaSet first = mAlbumSet.getSubMediaSet(0);
330 assertEquals(1, first.getMediaItemCount());
331 LocalMediaItem item = (LocalMediaItem) first.getMediaItem(0, 1).get(0);
/packages/inputmethods/LatinIME/native/src/
H A Dunigram_dictionary.h128 static const struct digraph_t { int first; int second; } GERMAN_UMLAUT_DIGRAPHS[]; member in struct:latinime::UnigramDictionary::digraph_t
/packages/apps/Settings/src/com/android/settings/vpn2/
H A DVpnDialog.java303 String first = (firstId == 0) ? "" : context.getString(firstId);
307 certificates = new String[] {first};
310 array[0] = first;
/packages/apps/Contacts/src/com/android/contacts/util/
H A DHtmlUtils.java150 public int getLeadingMargin(boolean first) { argument
/packages/apps/VideoEditor/src/com/android/videoeditor/
H A DExportOptionsDialog.java117 sizeAdapter.add(supportedSizes[i].first + "x" + supportedSizes[i].second);
/packages/apps/Calendar/src/com/android/calendar/
H A DAsyncQueryServiceHelper.java258 OperationInfo first = sWorkQueue.peek();
259 long waitTime = first.mScheduledTimeMillis - SystemClock.elapsedRealtime();
291 * filled, which will make the first access on the main
H A DCalendarController.java436 // Handle the 'first' one before handling the others
439 && !mToBeRemovedEventHandlers.contains(mFirstEventHandler.first)) {
448 if (mFirstEventHandler != null && key == mFirstEventHandler.first) {
449 // If this was the 'first' handler it was already handled
471 if (mFirstEventHandler != null && zombie.equals(mFirstEventHandler.first)) {
563 if (mFirstEventHandler != null && mFirstEventHandler.first == key) {
/packages/apps/Email/src/com/android/email/mail/store/
H A DPop3Store.java568 char first = response.charAt(0);
569 if (first == '+') {
581 } else if (first == '-') {
600 char first = response.charAt(0);
601 if (first == '.') {
/packages/apps/Email/src/com/android/email/activity/setup/
H A DAccountCheckSettingsFragment.java155 // If this is the first time, start the AsyncTask
639 boolean first = true;
641 if (first) {
642 first = false;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DSuggest.java263 private CharSequence capitalizeWord(boolean all, boolean first, CharSequence word) { argument
264 if (TextUtils.isEmpty(word) || !(all || first)) return word;
270 } else if (first) {
312 // At first character typed, search only the bigrams
331 // Word entered: return only bigrams that match the first char of the typed word
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/address/parser/
H A DAddressListParser.java803 if (c.gen < jj_gen) c.first = null;
948 jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
967 p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
972 Token first; field in class:AddressListParser.JJCalls
/packages/apps/Mms/src/com/android/mms/data/
H A DContact.java610 boolean first = true;
614 if (first) {
615 first = false;
623 if (first) return null;
658 // Do the quick check first.
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A Dndapi.c189 NJ_INT32 i, next, first; local
200 first= 0;
239 first = 1;
336 if ((!first) ||

Completed in 315 milliseconds

12