HomeSort by relevance Sort by last modified time
    Searched full:cursor (Results 251 - 275 of 3722) sorted by null

<<11121314151617181920>>

  /development/samples/XmlAdapters/src/com/example/android/xmladapters/
Adapters.java 24 import android.database.Cursor;
56 * <li><a href="#xml-cursor-adapter">Cursor adapter</a>: a cursor adapter can be used
57 * to display the content of a cursor, most often coming from a content provider</li>
61 * <a name="xml-cursor-adapter"></a>
62 * <h2>Cursor adapter</h2>
63 * <p>A cursor adapter XML definition starts with the
64 * <a href="#xml-cursor-adapter-tag"><code>&lt;cursor-adapter /&gt;</code></a
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppService.java 48 import android.database.Cursor;
426 Cursor cursor = getContentResolver().query(BluetoothShare.CONTENT_URI, null, null, local
429 if (cursor == null) {
433 cursor.moveToFirst();
438 boolean isAfterLast = cursor.isAfterLast();
440 int idColumn = cursor.getColumnIndexOrThrow(BluetoothShare._ID);
442 * Walk the cursor and the local array to keep them in sync. The
444 * both in the cursor and in the array, so that they can be
449 * array contains an entry that's not in the cursor, remove th
927 Cursor cursor = contentResolver.query(BluetoothShare.CONTENT_URI, new String[] { local
    [all...]
  /external/qemu/distrib/sdl-1.2.15/include/
SDL_mouse.h 42 SDL_Rect area; /**< The area of the mouse cursor */
43 Sint16 hot_x, hot_y; /**< The "tip" of the cursor */
44 Uint8 *data; /**< B/W cursor data */
45 Uint8 *mask; /**< B/W cursor mask */
46 Uint8 *save[2]; /**< Place to save cursor area */
47 WMcursor *wm_cursor; /**< Window-manager cursor */
55 * current mouse cursor position. You can pass NULL for either x or y.
68 * Set the position of the mouse cursor (generates a mouse motion event)
73 * Create a cursor using the specified data and mask (in MSB format).
74 * The cursor width must be a multiple of 8 bits
    [all...]
  /external/qemu/distrib/sdl-1.2.15/src/video/gem/
SDL_gemmouse.c 46 void GEM_FreeWMCursor(_THIS, WMcursor *cursor)
49 printf("sdl:video:gem: free cursor\n");
52 if (cursor == NULL)
57 if (cursor->mform_p != NULL)
58 SDL_free(cursor->mform_p);
60 SDL_free(cursor);
66 WMcursor *cursor; local
73 printf("sdl:video:gem: create cursor\n");
83 /* Allocate the cursor memory */
84 cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor))
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/
CalendarColorPickerDialog.java 24 import android.database.Cursor;
81 protected void onQueryComplete(int token, Object cookie, Cursor cursor) {
82 // If the query didn't return a cursor for some reason return
83 if (cursor == null) {
87 // If the Activity is finishing, then close the cursor.
88 // Otherwise, use the new cursor in the adapter.
91 cursor.close();
97 if (!cursor.moveToFirst()) {
98 cursor.close()
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/content/
CursorCreator.java 19 import android.database.Cursor;
22 * An object that knows how to create its implementing class using a single row of a cursor alone.
28 * Creates an object using the current row of the cursor given here. The implementation should
29 * not advance/rewind the cursor, and is only allowed to read the existing row.
33 T createFromCursor(Cursor c);
  /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/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
DownloadAdapter.java 25 import android.database.Cursor;
47 private Cursor mCursor;
62 public DownloadAdapter(DownloadList downloadList, Cursor cursor) {
63 super(downloadList, cursor);
65 mCursor = cursor;
70 mIdColumnId = cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_ID);
71 mTitleColumnId = cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_TITLE);
72 mDescriptionColumnId = cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_DESCRIPTION);
73 mStatusColumnId = cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_STATUS)
    [all...]
  /prebuilts/tools/darwin-x86/sdl/include/SDL/
SDL_mouse.h 42 SDL_Rect area; /**< The area of the mouse cursor */
43 Sint16 hot_x, hot_y; /**< The "tip" of the cursor */
44 Uint8 *data; /**< B/W cursor data */
45 Uint8 *mask; /**< B/W cursor mask */
46 Uint8 *save[2]; /**< Place to save cursor area */
47 WMcursor *wm_cursor; /**< Window-manager cursor */
55 * current mouse cursor position. You can pass NULL for either x or y.
68 * Set the position of the mouse cursor (generates a mouse motion event)
73 * Create a cursor using the specified data and mask (in MSB format).
74 * The cursor width must be a multiple of 8 bits
    [all...]
  /prebuilts/tools/linux-x86/sdl/include/SDL/
SDL_mouse.h 42 SDL_Rect area; /**< The area of the mouse cursor */
43 Sint16 hot_x, hot_y; /**< The "tip" of the cursor */
44 Uint8 *data; /**< B/W cursor data */
45 Uint8 *mask; /**< B/W cursor mask */
46 Uint8 *save[2]; /**< Place to save cursor area */
47 WMcursor *wm_cursor; /**< Window-manager cursor */
55 * current mouse cursor position. You can pass NULL for either x or y.
68 * Set the position of the mouse cursor (generates a mouse motion event)
73 * Create a cursor using the specified data and mask (in MSB format).
74 * The cursor width must be a multiple of 8 bits
    [all...]
  /prebuilts/tools/windows/sdl/include/SDL/
SDL_mouse.h 42 SDL_Rect area; /**< The area of the mouse cursor */
43 Sint16 hot_x, hot_y; /**< The "tip" of the cursor */
44 Uint8 *data; /**< B/W cursor data */
45 Uint8 *mask; /**< B/W cursor mask */
46 Uint8 *save[2]; /**< Place to save cursor area */
47 WMcursor *wm_cursor; /**< Window-manager cursor */
55 * current mouse cursor position. You can pass NULL for either x or y.
68 * Set the position of the mouse cursor (generates a mouse motion event)
73 * Create a cursor using the specified data and mask (in MSB format).
74 * The cursor width must be a multiple of 8 bits
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/event/
CreateEventDialogFragment.java 25 import android.database.Cursor;
96 public void onQueryComplete(int token, Object cookie, Cursor cursor) {
97 setDefaultCalendarView(cursor);
98 if (cursor != null) {
99 cursor.close();
237 // Find the calendar position in the cursor that matches calendar in
239 private void setDefaultCalendarView(Cursor cursor) {
240 if (cursor == null || cursor.getCount() == 0)
    [all...]
  /packages/apps/Music/src/com/android/music/
ArtistAlbumBrowserActivity.java 33 import android.database.Cursor;
118 null, // cursor
171 // close its cursor, which we do by assigning a null cursor to it. Doing this
172 // instead of closing the cursor directly keeps the framework from accessing
173 // the closed cursor later.
233 public void init(Cursor c) {
269 intent.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/track");
271 Cursor c = (Cursor) getExpandableListAdapter().getChild(groupPosition, childPosition)
300 Cursor cursor; local
    [all...]
  /packages/apps/Dialer/src/com/android/dialer/voicemail/
VoicemailStatusHelperImpl.java 27 import android.database.Cursor;
156 public List<StatusMessage> getStatusMessages(Cursor cursor) {
159 cursor.moveToPosition(-1);
160 while(cursor.moveToNext()) {
161 MessageStatusWithPriority message = getMessageForStatusEntry(cursor);
171 public int getNumberActivityVoicemailSources(Cursor cursor) {
173 cursor.moveToPosition(-1);
174 while(cursor.moveToNext())
    [all...]
  /external/clang/test/Index/
cursor-ref-names.cpp 29 // CHECK: cursor-ref-names.cpp:17:5: DeclStmt= Extent=[17:5 - 17:14]
30 // CHECK: cursor-ref-names.cpp:17:9: VarDecl=inst:17:9 (Definition) Extent=[17:5 - 17:13]
31 // CHECK: cursor-ref-names.cpp:17:5: TypeRef=struct Sub:7:8 Extent=[17:5 - 17:8]
32 // CHECK: cursor-ref-names.cpp:17:9: CallExpr=Sub:7:8 Extent=[17:9 - 17:13]
33 // CHECK: cursor-ref-names.cpp:18:5: CallExpr=func:8:10 Extent=[18:5 - 18:16]
34 // CHECK: cursor-ref-names.cpp:18:10: MemberRefExpr=func:8:10 SingleRefName=[18:10 - 18:14] RefName=[18:10 - 18:14] Extent=[18:5 - 18:14]
35 // CHECK: cursor-ref-names.cpp:18:5: DeclRefExpr=inst:17:9 Extent=[18:5 - 18:9]
36 // CHECK: cursor-ref-names.cpp:19:5: CallExpr=operator[]:4:9 SingleRefName=[19:9 - 19:12] RefName=[19:9 - 19:10] RefName=[19:11 - 19:12] Extent=[19:5 - 19:12]
37 // CHECK: cursor-ref-names.cpp:19:5: DeclRefExpr=inst:17:9 Extent=[19:5 - 19:9]
38 // CHECK: cursor-ref-names.cpp:19:9: DeclRefExpr=operator[]:4:9 RefName=[19:9 - 19:10] RefName=[19:11 - 19:12] Exte (…)
    [all...]
  /frameworks/base/core/java/android/database/
CursorWindow.java 32 * A buffer containing multiple cursor rows.
36 * receives a read-only view of the cursor window. Typically the cursor window
44 /** The cursor window size. resource xml file specifies the value in kB.
91 * Creates a new empty cursor window and gives it a name.
93 * The cursor initially has no rows or columns. Call {@link #setNumColumns(int)} to
94 * set the number of columns before adding any rows to the cursor.
97 * @param name The name of the cursor window, or null if none.
104 throw new CursorWindowAllocationException("Cursor window allocation of " +
112 * Creates a new empty cursor window
    [all...]
  /frameworks/ex/common/tests/src/com/android/common/widget/
CompositeCursorAdapterTest.java 19 import android.database.Cursor;
47 protected View newHeaderView(Context context, int partition, Cursor cursor, ViewGroup parent) {
52 protected void bindHeaderView(View view, int partition, Cursor cursor) {
53 mRequests.append(partition + (cursor == null ? "" : cursor.getColumnNames()[0])
58 protected View newView(Context context, int sectionIndex, Cursor cursor, int position,
64 protected void bindView(View v, int partition, Cursor cursor, int position)
251 MatrixCursor cursor = new MatrixCursor(new String[]{name}); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/gadget/
LocalPhotoSource.java 22 import android.database.Cursor;
124 Cursor cursor = resolver.query( local
126 if (cursor == null) return 0;
128 Utils.assertTrue(cursor.moveToNext());
129 return cursor.getInt(0);
131 cursor.close();
144 Cursor cursor = mContext.getContentResolver().query( local
148 if (cursor == null) return false
170 Cursor cursor = mContext.getContentResolver().query( local
    [all...]
  /packages/experimental/LoaderApp/src/com/android/loaderapp/model/
ContactLoader.java 15 import android.database.Cursor;
79 Cursor cursor = resolver.query(dataUri, StatusQuery.PROJECTION, StatusUpdates.PRESENCE local
82 if (cursor != null) {
87 while (cursor.moveToNext()) {
88 final DataStatus status = new DataStatus(cursor);
89 final long dataId = cursor.getLong(StatusQuery._ID);
94 cursor.close();
99 cursor = resolver.query(dataUri, new String[] {
102 if (cursor != null)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/view/
ExpandableList2.java 23 import android.database.Cursor;
59 protected void onQueryComplete(int token, Object cookie, Cursor cursor) {
62 mAdapter.setGroupCursor(cursor);
67 mAdapter.setChildrenCursor(groupPosition, cursor);
75 // Note that the constructor does not take a Cursor. This is done to avoid querying the
86 protected Cursor getChildrenCursor(Cursor groupCursor) {
87 // Given the group, we return a cursor for all the children within that group
89 // Return a cursor that points to this contact's phone number
    [all...]
  /external/chromium_org/content/test/data/indexeddb/
index_test.js 7 var cursor = event.target.result;
8 if (cursor === null) {
9 debug('Reached end of object cursor.');
11 fail('Did not get object through cursor.');
18 debug('Got object through cursor.');
23 cursor.continue();
28 var cursor = event.target.result;
29 if (cursor === null) {
30 debug('Reached end of key cursor.');
32 fail('Did not get key through cursor.')
    [all...]
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/database/
NoNullCursorAsyncQueryHandlerTest.java 19 import android.database.Cursor;
45 public Cursor query(Uri uri, String[] projection, String selection,
58 final ObjectHolder<Cursor> cursorHolder = ObjectHolder.newInstance();
70 Cursor cursor) {
71 cursorHolder.obj = cursor;
97 Cursor cursor) {
115 final ObjectHolder<Cursor> cursorHolder = ObjectHolder.newInstance();
124 Cursor cursor)
    [all...]
  /packages/apps/QuickSearchBox/tests/partial/src/com/android/quicksearchbox/tests/partial/
PartialSuggestionProvider.java 23 import android.database.Cursor;
85 private void addRows(MatrixCursor cursor, boolean partial) {
87 cursor.addRow(new Object[]{
98 public Cursor query(Uri uri, String[] projectionIn, String selection,
104 Log.d(TAG, "returning null cursor");
108 MutableMatrixCursor cursor = new MutableMatrixCursor(COLUMNS); local
110 addRows(cursor, true);
112 Log.d(TAG, "returning empty cursor");
114 cursor.getExtras().putBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS, true);
115 mCursor = cursor;
    [all...]
  /external/clang/bindings/python/tests/cindex/
test_tokens.py 12 """Ensure we can obtain a Cursor from a Token instance."""
21 cursor = tokens[1].cursor
22 assert cursor.kind == CursorKind.VAR_DECL
23 assert tokens[1].cursor == tokens[2].cursor
  /frameworks/base/core/java/android/database/sqlite/
SQLiteCursorDriver.java 19 import android.database.Cursor;
28 * Executes the query returning a Cursor over the result set.
32 * @return a Cursor over the result set
34 Cursor query(CursorFactory factory, String[] bindArgs);
44 void cursorRequeried(Cursor cursor);

Completed in 1900 milliseconds

<<11121314151617181920>>