HomeSort by relevance Sort by last modified time
    Searched defs:cursor (Results 1 - 25 of 973) 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
132 MatrixCursor cursor = newMatrixCursor(); 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...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
AbstractCursorTest.java 24 private TestCursor cursor; field in class:AbstractCursorTest
28 cursor = new TestCursor();
33 cursor.theTable.add("Foobar");
34 assertThat(cursor.moveToFirst(), equalTo(true));
35 assertThat(cursor.getCount(), equalTo(1));
40 assertThat(cursor.moveToFirst(), equalTo(false));
41 assertThat(cursor.getCount(), equalTo(0));
46 cursor.theTable.add("Foobar");
47 cursor.theTable.add("Bletch");
49 assertThat(cursor.moveToLast(), equalTo(true))
    [all...]
MatrixCursorTest.java 32 MatrixCursor cursor = new MatrixCursor(new String[]{"a", "b", "c"}); local
33 cursor.addRow(new Object[]{"foo", 10L, 0.1f});
34 cursor.addRow(new Object[]{"baz", 20L, null});
35 assertThat(cursor.getCount(), equalTo(2));
37 assertTrue(cursor.moveToFirst());
39 assertThat(cursor.getString(0), equalTo("foo"));
40 assertThat(cursor.getLong(1), equalTo(10L));
41 assertThat(cursor.getFloat(2), equalTo(0.1f));
43 assertTrue(cursor.moveToNext());
45 assertThat(cursor.getString(0), equalTo("baz"))
54 MatrixCursor cursor = new MatrixCursor(new String[]{"a", "b", "c"}); local
72 MatrixCursor cursor = new MatrixCursor(new String[]{"a"}); local
81 MatrixCursor cursor = new MatrixCursor(new String[]{"a", "b", "c"}); local
102 MatrixCursor cursor = new MatrixCursor(new String[]{"a", "b", "c"}); local
108 MatrixCursor cursor = new MatrixCursor(new String[]{"a", "b", "c"}); local
114 MatrixCursor cursor = new MatrixCursor(new String[]{"a", "b", "c"}); local
121 MatrixCursor cursor = new MatrixCursor(new String[]{"a", "b", "c"}); local
    [all...]
  /external/antlr/antlr-3.4/runtime/ObjC/Framework/
ANTLRRewriteRuleElementStream.h 32 NSInteger cursor; variable
42 @property (assign) NSInteger cursor; variable
  /external/chromium_org/third_party/skia/third_party/harfbuzz/src/
harfbuzz-stream.h 39 HB_Byte* cursor; member in struct:HB_StreamRec_
  /external/libunwind/src/mi/
backtrace.c 38 unw_cursor_t cursor; local
42 if (unlikely (unw_init_local (&cursor, uc) < 0))
45 while (unw_step (&cursor) > 0)
50 if (unw_get_reg (&cursor, UNW_REG_IP, &ip) < 0)
60 unw_cursor_t cursor; local
66 if (unlikely (unw_init_local (&cursor, &uc) < 0))
69 if (unlikely (tdep_trace (&cursor, buffer, &n) < 0))
  /development/samples/BusinessCard/src/com/example/android/businesscard/
ContactAccessorSdk3_4.java 22 import android.database.Cursor;
57 Cursor cursor = contentResolver.query(contactUri, local
60 if (cursor.moveToFirst()) {
61 contactInfo.setDisplayName(cursor.getString(0));
64 cursor.close();
68 cursor = contentResolver.query(phoneUri,
72 if (cursor.moveToFirst()) {
73 contactInfo.setPhoneNumber(cursor.getString(0));
76 cursor.close()
    [all...]
ContactAccessorSdk5.java 21 import android.database.Cursor;
63 Cursor cursor = contentResolver.query(contactUri, local
66 if (cursor.moveToFirst()) {
67 contactId = cursor.getLong(0);
68 contactInfo.setDisplayName(cursor.getString(1));
71 cursor.close();
75 cursor = contentResolver.query(Phone.CONTENT_URI,
79 if (cursor.moveToFirst()) {
80 contactInfo.setPhoneNumber(cursor.getString(0))
    [all...]
  /frameworks/base/core/java/android/database/
BulkCursorDescriptor.java 44 public IBulkCursor cursor; field in class:BulkCursorDescriptor
57 out.writeStrongBinder(cursor.asBinder());
70 cursor = BulkCursorNative.asInterface(in.readStrongBinder());
  /packages/apps/Camera2/src/com/android/camera/data/
DataUtils.java 20 import android.database.Cursor;
33 Cursor cursor = contentResolver.query(contentUri, proj, null, null, null); local
34 if (cursor == null) {
38 int columnIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
39 if (!cursor.moveToFirst()) {
42 return cursor.getString(columnIndex);
45 cursor.close();
  /packages/apps/Mms/src/com/android/mms/util/
AddressUtils.java 20 import android.database.Cursor;
47 Cursor cursor = SqliteWrapper.query(context, context.getContentResolver(), local
51 if (cursor != null) {
53 if (cursor.moveToFirst()) {
54 String from = cursor.getString(0);
58 int charset = cursor.getInt(1);
64 cursor.close();
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/android/database/
SimpleTestCursorTest.java 21 private SimpleTestCursor cursor; field in class:SimpleTestCursorTest
29 cursor = new SimpleTestCursor();
30 shadowContentResolver.setCursor(uri, cursor);
34 cursor.setColumnNames(columnNames);
40 assertThat(cursor.uri, equalTo(uri));
41 assertThat(cursor.projection[0], equalTo("projection"));
42 assertThat(cursor.selection, equalTo("selection"));
43 assertThat(cursor.selectionArgs[0], equalTo("selection"));
44 assertThat(cursor.sortOrder, equalTo("sortOrder"));
49 cursor.setResults(new Object[][]{new Object[]{"aString", 1234L}})
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DirectoryTest.java 22 import android.database.Cursor;
85 Cursor cursor = mResolver.query(contentUri, local
87 assertNotNull(cursor);
88 assertEquals(1, cursor.getCount());
89 cursor.moveToFirst();
90 assertEquals(contactId, cursor.getLong(0));
91 assertEquals("John Doe", cursor.getString(1));
92 cursor.close();
111 Cursor cursor = mResolver.query(contentUri local
    [all...]
  /packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
CursorPhotoSource.java 20 import android.database.Cursor;
23 * Common implementation for sources that load images from a cursor.
27 // An invalid cursor position to represent the uninitialized state.
29 // An invalid cursor position to represent the error state.
42 if (current.cursor == null || current.cursor.isClosed()) {
46 current.cursor.moveToPosition(current.position);
47 current.cursor.moveToNext();
49 if (!current.cursor.isAfterLast()) {
50 data = unpackImageData(current.cursor, null)
    [all...]
  /dalvik/dx/src/com/android/dx/io/instructions/
CodeCursor.java 20 * Cursor over code units, for reading or writing out Dalvik bytecode.
24 * Gets the cursor. The cursor is the offset in code units from
29 public int cursor(); method in interface:CodeCursor
32 * Gets the base address associated with the current cursor. This
33 * differs from the cursor value when explicitly set (by {@link
  /external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/
ANTLRRewriteRuleElementStream.h 37 NSInteger cursor; variable
46 @property (assign, getter=GetCursor, setter=SetCursor:) NSInteger cursor; variable
  /external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/
ANTLRRewriteRuleElementStream.h 37 NSInteger cursor; variable
46 @property (assign, getter=GetCursor, setter=SetCursor:) NSInteger cursor; variable
  /external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/
ANTLRRewriteRuleElementStream.h 37 NSInteger cursor; variable
46 @property (assign, getter=GetCursor, setter=SetCursor:) NSInteger cursor; variable
  /external/chromium_org/third_party/WebKit/Tools/GardeningServer/scripts/
rollbot_unittests.js 32 "cursor": "long_string_we_call_cursor",
  /external/chromium_org/third_party/tcmalloc/chromium/src/
stacktrace_libunwind-inl.h 79 unw_cursor_t cursor; variable
91 int ret = unw_init_local(&cursor, &uc);
96 if (unw_step(&cursor) <= 0) {
100 if (unw_get_reg(&cursor, UNW_REG_SP, &next_sp)) {
107 if (unw_get_reg(&cursor, UNW_REG_IP, (unw_word_t *) &ip) < 0) {
114 if (unw_step(&cursor) <= 0) {
119 if (unw_get_reg(&cursor, UNW_REG_SP, &next_sp) , 0) {
  /external/chromium_org/third_party/tcmalloc/vendor/src/
stacktrace_libunwind-inl.h 79 unw_cursor_t cursor; variable
91 int ret = unw_init_local(&cursor, &uc);
96 if (unw_step(&cursor) <= 0) {
100 if (unw_get_reg(&cursor, UNW_REG_SP, &next_sp)) {
107 if (unw_get_reg(&cursor, UNW_REG_IP, (unw_word_t *) &ip) < 0) {
114 if (unw_step(&cursor) <= 0) {
119 if (unw_get_reg(&cursor, UNW_REG_SP, &next_sp) , 0) {
  /external/dexmaker/src/dx/java/com/android/dx/io/instructions/
CodeCursor.java 20 * Cursor over code units, for reading or writing out Dalvik bytecode.
24 * Gets the cursor. The cursor is the offset in code units from
29 public int cursor(); method in interface:CodeCursor
32 * Gets the base address associated with the current cursor. This
33 * differs from the cursor value when explicitly set (by {@link
  /external/libunwind/tests/
ia64-test-sig.c 41 unw_cursor_t cursor, cursor2; local
49 if (unw_init_local (&cursor, &uc) < 0)
52 /* get cursor for caller of sighandler: */
53 if (unw_step (&cursor) < 0)
56 cursor2 = cursor;
75 unw_resume (&cursor); /* update context & return to caller of sighandler() */
  /external/qemu/distrib/sdl-1.2.15/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)

Completed in 932 milliseconds

1 2 3 4 5 6 7 8 91011>>