HomeSort by relevance Sort by last modified time
    Searched refs:cursor (Results 1 - 25 of 980) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/base/core/tests/coretests/src/android/database/
MatrixCursorTest.java 28 Cursor cursor = new MatrixCursor(new String[] { "a" }); local
29 assertEquals(0, cursor.getCount());
33 MatrixCursor cursor = new MatrixCursor(new String[] { "a" }); local
34 cursor.newRow().add(null);
35 cursor.moveToNext();
36 assertTrue(cursor.isNull(0));
37 assertNull(cursor.getString(0));
38 assertNull(cursor.getBlob(0));
39 assertEquals(0, cursor.getShort(0))
47 MatrixCursor cursor = newMatrixCursor(); local
79 MatrixCursor cursor = newMatrixCursor(); local
92 MatrixCursor cursor = newMatrixCursor(); local
111 MatrixCursor cursor = newMatrixCursor(); local
    [all...]
  /dalvik/dx/src/com/android/dx/io/instructions/
BaseCodeCursor.java 29 private int cursor; field in class:BaseCodeCursor
36 this.cursor = 0;
40 public final int cursor() { method in class:BaseCodeCursor
41 return cursor;
46 int mapped = baseAddressMap.get(cursor);
47 return (mapped >= 0) ? mapped : cursor;
56 * Advance the cursor by the indicated amount.
59 cursor += amount;
  /external/dexmaker/src/dx/java/com/android/dx/io/instructions/
BaseCodeCursor.java 29 private int cursor; field in class:BaseCodeCursor
36 this.cursor = 0;
40 public final int cursor() { method in class:BaseCodeCursor
41 return cursor;
46 int mapped = baseAddressMap.get(cursor);
47 return (mapped >= 0) ? mapped : cursor;
56 * Advance the cursor by the indicated amount.
59 cursor += amount;
  /bionic/libc/bionic/
pthread-atfork.c 48 struct atfork_t *cursor; local
65 for (cursor = atfork_head.cqh_last;
66 cursor != (void*)&atfork_head;
67 cursor = cursor->entries.cqe_prev) {
68 if (cursor->prepare != NULL) {
69 cursor->prepare();
76 struct atfork_t *cursor; local
80 for (cursor = atfork_head.cqh_first;
81 cursor != (void*)&atfork_head
95 struct atfork_t *cursor; local
    [all...]
  /cts/tests/tests/database/src/android/database/cts/
MatrixCursor_RowBuilderTest.java 34 MatrixCursor cursor = new MatrixCursor(new String[] { "column0", "column1", "column2" }); local
35 assertEquals(0, cursor.getCount());
36 RowBuilder builder = cursor.newRow();
38 assertEquals(1, cursor.getCount());
39 cursor.moveToFirst();
40 assertTrue(cursor.isNull(COLUMN0_INDEX));
41 assertTrue(cursor.isNull(COLUMN1_INDEX));
42 assertTrue(cursor.isNull(COLUMN2_INDEX));
45 assertFalse(cursor.isNull(COLUMN0_INDEX));
46 assertEquals(Integer.MIN_VALUE, cursor.getInt(COLUMN0_INDEX))
    [all...]
DatabaseUtils_InsertHelperTest.java 22 import android.database.Cursor;
100 Cursor cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); local
101 assertNotNull(cursor);
102 assertEquals(0, cursor.getCount());
103 cursor.close();
125 cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null);
126 assertNotNull(cursor);
127 assertEquals(1, cursor.getCount());
128 cursor.moveToFirst()
202 Cursor cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); local
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
CloseUtils.java 18 import android.database.Cursor;
27 /** If the argument is non-null, close the cursor. */
28 public static void closeQuietly(Cursor cursor) {
29 if (cursor != null) {
30 cursor.close();
  /external/webkit/Source/WebKit/chromium/src/
WebCursorInfo.cpp 34 #include "Cursor.h"
40 WebCursorInfo::WebCursorInfo(const Cursor& cursor)
42 type = static_cast<Type>(cursor.impl().type());
43 hotSpot = cursor.impl().hotSpot();
44 customImage = cursor.impl().customImage();
  /external/webkit/Source/WebCore/inspector/front-end/
SourceHTMLTokenizer.js 36 // | sed 's|[*]cursor[+][+]|this._charAt(cursor++)|' \
37 // | sed 's|[[*][+][+]cursor|this._charAt(++cursor)|' \
38 // | sed 's|[*]cursor|this._charAt(cursor)|' \
120 _stringToken: function(cursor, stringEnds)
124 return cursor;
129 return cursor;
142 nextToken: function(cursor)
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
SuggestionPosition.java 30 public SuggestionPosition(SuggestionCursor cursor) {
31 this(cursor, cursor.getPosition());
34 public SuggestionPosition(SuggestionCursor cursor, int suggestionPos) {
35 mCursor = cursor;
44 * Gets the suggestion cursor, moved to point to the right suggestion.
  /packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
SyncCalendarTest.java 19 import android.database.Cursor;
74 Cursor cursor; local
75 cursor = mResolver.query(mEventsUri, null, null, null, null);
77 int countBeforeNewEvent = cursor.getCount();
78 cursor.moveToNext();
81 String newTitle = cursor.getString(cursor.getColumnIndex("title")) + time.toString();
82 long dtStart = cursor.getLong(cursor.getColumnIndex("dtstart"))
102 Cursor cursor; local
135 Cursor cursor; local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/util/
StreamItemPhotoEntry.java 19 import android.database.Cursor;
48 public StreamItemPhotoEntry(Cursor cursor) {
49 // This is expected to be populated via a cursor containing a join of all
51 mId = getLong(cursor, StreamItemPhotos._ID);
52 mSortIndex = getInt(cursor, StreamItemPhotos.SORT_INDEX, -1);
53 mPhotoFileId = getLong(cursor, StreamItemPhotos.PHOTO_FILE_ID);
54 mPhotoUri = getString(cursor, StreamItemPhotos.PHOTO_URI);
55 mHeight = getInt(cursor, PhotoFiles.HEIGHT, -1);
56 mWidth = getInt(cursor, PhotoFiles.WIDTH, -1)
    [all...]
DataStatus.java 21 import android.database.Cursor;
31 * {@link #possibleUpdate(Cursor)} to consider updating when a better status
46 public DataStatus(Cursor cursor) {
47 // When creating from cursor row, fill normally
48 fromCursor(cursor);
53 * current row of the given {@link Cursor}.
55 public void possibleUpdate(Cursor cursor) {
56 final boolean hasStatus = !isNull(cursor, Data.STATUS)
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/video/photon/
SDL_ph_mouse.c 34 void ph_FreeWMCursor(_THIS, WMcursor *cursor)
48 SDL_free(cursor);
53 WMcursor* cursor; local
57 /* Allocate and initialize the cursor memory */
58 if ((cursor = (WMcursor*)SDL_malloc(sizeof(WMcursor))) == NULL)
63 SDL_memset(cursor,0,sizeof(WMcursor));
65 cursor->ph_cursor = (PhCursorDef_t *) SDL_malloc(sizeof(PhCursorDef_t) + 32*4*2);
67 if (cursor->ph_cursor == NULL)
69 SDL_SetError("ph_CreateWMCursor(): cursor malloc failed !\n");
73 SDL_memset(cursor->ph_cursor,0,(sizeof(PhCursorDef_t) + 32*4*2))
    [all...]
  /packages/experimental/LoaderApp/src/com/android/loaderapp/util/
DataStatus.java 21 import android.database.Cursor;
29 * {@link #possibleUpdate(Cursor)} to consider updating when a better status
44 public DataStatus(Cursor cursor) {
45 // When creating from cursor row, fill normally
46 fromCursor(cursor);
51 * current row of the given {@link Cursor}.
53 public void possibleUpdate(Cursor cursor) {
54 final boolean hasStatus = !isNull(cursor, Data.STATUS)
    [all...]
  /frameworks/ex/common/java/com/android/common/io/
MoreCloseables.java 20 import android.database.Cursor;
26 * Closes the supplied cursor iff it is not null.
28 public static void closeQuietly(Cursor cursor) {
29 if (cursor != null) {
30 cursor.close();
  /libcore/luni/src/main/java/java/lang/
IntegralToString.java 147 int cursor = bufLen;
151 buf[--cursor] = DIGITS[radix * q - i];
156 buf[--cursor] = '-';
159 return new String(cursor, bufLen - cursor, buf);
217 int cursor = bufLen;
224 buf[--cursor] = ONES[r];
225 buf[--cursor] = TENS[r];
234 buf[--cursor] = DIGITS[r];
239 buf[--cursor] = '-'
431 int cursor = bufLen; local
448 int cursor = bufLen; local
486 int cursor = bufLen; local
504 int cursor = bufLen; local
516 int cursor = bufLen; local
532 int cursor = bufLen; local
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/video/maccommon/
SDL_macmouse.c 41 /* The implementation dependent data for the window manager cursor */
43 Cursor curs;
47 void Mac_FreeWMCursor(_THIS, WMcursor *cursor)
49 SDL_free(cursor);
55 WMcursor *cursor; local
58 /* Allocate the cursor memory */
59 cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor));
60 if ( cursor == NULL ) {
64 SDL_memset(cursor, 0, sizeof(*cursor));
    [all...]
  /cts/tests/tests/database/src/android/database/sqlite/cts/
SQLiteDatabaseTest.java 27 import android.database.Cursor;
92 public Cursor newCursor(SQLiteDatabase db, SQLiteCursorDriver masterQuery,
334 Cursor cursor = mDatabase.query("test", TEST_PROJECTION, null, null, null, null, null); local
335 assertNotNull(cursor);
336 assertEquals(0, cursor.getCount());
345 cursor.close();
347 cursor = mDatabase.query("test", TEST_PROJECTION, null, null, null, null, null);
348 assertNotNull(cursor);
349 assertEquals(1, cursor.getCount())
377 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, local
427 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, local
549 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, local
758 Cursor cursor = mDatabase.query(true, "employee", new String[] { "name", "sum(salary)" }, local
861 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, local
927 Cursor cursor = mDatabase.query("test", null, "_id=1", null, null, null, null); local
962 Cursor cursor = mDatabase.rawQuery(sql, null); local
1080 Cursor cursor = mDatabase.rawQuery("SELECT count(*) FROM test", null); local
1104 Cursor cursor = mDatabase.rawQuery("SELECT * FROM test", null); local
1171 Cursor cursor = mDatabase.rawQuery("SELECT * FROM test", null); local
1235 Cursor cursor = mDatabase.rawQuery("SELECT * FROM test", null); local
    [all...]
SQLiteCursorTest.java 22 import android.database.Cursor;
72 SQLiteCursor cursor = getCursor(); local
73 assertNotNull(cursor);
77 SQLiteCursor cursor = getCursor(); local
78 assertTrue(cursor.moveToFirst());
79 assertFalse(cursor.isClosed());
80 assertTrue(cursor.requery());
81 cursor.close();
82 assertFalse(cursor.requery());
84 cursor.moveToFirst()
92 SQLiteCursor cursor = getCursor(); local
149 SQLiteCursor cursor = getCursor(); local
192 SQLiteCursor cursor = getCursor(); local
205 SQLiteCursor cursor = (SQLiteCursor) mDatabase.query(TABLE_NAME, null, SELECTION, local
232 SQLiteCursor cursor = (SQLiteCursor) mDatabase.query(TABLE_NAME, null, null, local
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/video/nanox/
SDL_nxmouse.c 32 // The implementation dependent data for the window manager cursor
40 WMcursor * cursor ; local
44 cursor = (WMcursor *) SDL_malloc (sizeof (WMcursor)) ;
45 if (cursor == NULL) {
51 return cursor ;
54 void NX_FreeWMCursor (_THIS, WMcursor * cursor)
57 SDL_free (cursor) ;
75 int NX_ShowWMCursor (_THIS, WMcursor * cursor)
  /cts/tests/tests/provider/src/android/provider/cts/
BrowserTest.java 25 import android.database.Cursor;
76 Cursor cursor = mProvider.query(Bookmarks.CONTENT_URI, null, null, null, null, null); local
77 if (cursor.moveToFirst()) {
78 String[] colNames = cursor.getColumnNames();
79 while (!cursor.isAfterLast()) {
89 switch (cursor.getType(i)) {
90 case Cursor.FIELD_TYPE_BLOB:
91 value.put(colNames[i], cursor.getBlob(i));
93 case Cursor.FIELD_TYPE_FLOAT
166 Cursor cursor; local
218 Cursor cursor; local
250 Cursor cursor; local
287 Cursor cursor; local
    [all...]
  /external/linux-tools-perf/util/
callchain.h 60 * A callchain cursor is a single linked list that
99 struct callchain_cursor *cursor,
102 int callchain_merge(struct callchain_cursor *cursor,
108 * Initialize a cursor before adding entries inside, but keep
111 static inline void callchain_cursor_reset(struct callchain_cursor *cursor)
113 cursor->nr = 0;
114 cursor->last = &cursor->first;
117 int callchain_cursor_append(struct callchain_cursor *cursor, u64 ip,
120 /* Close a cursor writing session. Initialize for the reader *
    [all...]
  /external/smali/dexlib/src/main/java/org/jf/dexlib/Util/
ByteArrayInput.java 40 /** &gt;= 0; current read cursor */
41 private int cursor; field in class:ByteArrayInput
54 this.cursor = 0;
68 return cursor;
72 public void setCursor(int cursor) {
73 if (cursor < 0 || cursor >= data.length)
74 throw new IndexOutOfBoundsException("The provided cursor value " +
76 this.cursor = cursor;
    [all...]
  /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
AbstractPublicApiTest.java 20 import android.database.Cursor;
48 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); local
50 if (cursor.getCount() > 0) {
51 cursor.moveToFirst();
52 return (int) cursor.getLong(cursor.getColumnIndexOrThrow(
59 cursor.close();
64 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)) local
75 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); local
128 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); local
    [all...]

Completed in 1292 milliseconds

1 2 3 4 5 6 7 8 91011>>