/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/ |
DateSortedDownloadAdapter.java | 21 import android.database.Cursor; 35 public DateSortedDownloadAdapter(DownloadList downloadList, Cursor cursor) { 36 super(downloadList, cursor, 37 cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_LAST_MODIFIED_TIMESTAMP)); 38 mDelegate = new DownloadAdapter(downloadList, cursor); 50 // Bail early if the Cursor is closed.
|
/external/clang/tools/libclang/ |
CIndexHigh.cpp | 147 static enum CXChildVisitResult findFileIdRefVisit(CXCursor cursor, 150 CXCursor declCursor = clang_getCursorReferenced(cursor); 160 cursor = cxcursor::getSelectorIdentifierCursor(data->SelectorIdIdx, cursor); 164 if ((cursor.kind == CXCursor_ObjCClassMethodDecl || 165 cursor.kind == CXCursor_ObjCInstanceMethodDecl) && 166 cxcursor::getSelectorIdentifierIndex(cursor) == -1) 169 if (clang_isExpression(cursor.kind)) { 170 if (cursor.kind == CXCursor_DeclRefExpr || 171 cursor.kind == CXCursor_MemberRefExpr) [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ContactEntryListAdapter.java | 20 import android.database.Cursor; 340 * cursor. 342 public void changeDirectories(Cursor cursor) { 343 if (cursor.getCount() == 0) { 346 Log.e(TAG, "Directory search loader returned an empty cursor, which implies we have " + 352 int idColumnIndex = cursor.getColumnIndex(Directory._ID); 353 int directoryTypeColumnIndex = cursor.getColumnIndex(DirectoryListLoader.DIRECTORY_TYPE); 354 int displayNameColumnIndex = cursor.getColumnIndex(Directory.DISPLAY_NAME); 355 int photoSupportColumnIndex = cursor.getColumnIndex(Directory.PHOTO_SUPPORT) 575 Cursor cursor = (Cursor) getItem(position); local [all...] |
/external/chromium/webkit/glue/ |
webcursor_gtk.cc | 22 // It attempts to create a custom cursor from the data inlined in 26 GdkCursor* cursor = CustomCursorsGdk[type]; local 27 if (cursor) 28 return cursor; 30 cursor = gdk_cursor_new_from_name(gdk_display_get_default(), custom.name); 31 if (!cursor) { 38 cursor = gdk_cursor_new_from_pixmap(source, mask, &fg, &bg, 43 CustomCursorsGdk[type] = cursor; 44 return cursor; 48 // use a custom cursor 52 static GdkCursor* cursor = NULL; local 201 GdkCursor* cursor = gdk_cursor_new_from_pixbuf(gdk_display_get_default(), local [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/x11/ |
SDL_x11mouse.c | 34 /* The implementation dependent data for the window manager cursor */ 36 Cursor x_cursor; 40 void X11_FreeWMCursor(_THIS, WMcursor *cursor) 44 XFreeCursor(SDL_Display, cursor->x_cursor); 48 SDL_free(cursor); 54 WMcursor *cursor; local 64 /* Allocate the cursor memory */ 65 cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor)); 66 if ( cursor == NULL ) { 75 SDL_free(cursor); [all...] |
/frameworks/base/docs/html/training/load-data-background/ |
handle-results.jd | 16 <a href="#HandleReset">Delete Old Cursor References</a></li> 36 {@link android.database.Cursor} containing the query results. You can use this object to 46 that data associated with the {@link android.database.Cursor} has changed. When the 51 To display {@link android.database.Cursor} data returned by 56 the {@link android.database.Cursor} to the view. 60 and then move a {@link android.database.Cursor} into the adapter in the 62 method. As soon as you move the {@link android.database.Cursor} into the adapter, the 64 {@link android.database.Cursor}. 86 null, // No Cursor yet 87 mFromColumns, // Cursor columns to us [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/ |
MailboxFragmentAdapterTest.java | 27 import android.database.Cursor; 82 Cursor cursor = MailboxFragmentAdapter.CombinedMailboxLoader.buildCombinedMailboxes(c, local 86 assertEquals(4, cursor.getCount()); 89 assertTrue(cursor.moveToFirst()); 90 checkSpecialMailboxRow(cursor, Mailbox.QUERY_ALL_INBOXES, Mailbox.TYPE_INBOX, 2); 93 assertTrue(cursor.moveToNext()); 94 checkSpecialMailboxRow(cursor, Mailbox.QUERY_ALL_FAVORITES, Mailbox.TYPE_MAIL, 3); 97 assertTrue(cursor.moveToNext()); 98 checkSpecialMailboxRow(cursor, Mailbox.QUERY_ALL_DRAFTS, Mailbox.TYPE_DRAFTS, 4) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowSimpleCursorAdapter.java | 20 import android.database.Cursor; 35 * An easy adapter to map columns from a cursor to TextViews or ImageViews 42 * {@link ViewBinder#setViewValue(android.view.View, android.database.Cursor, int)} 55 * {@link #convertToString(android.database.Cursor)} and 88 * @param c The database cursor. Can be null if the cursor is not available yet. 90 * if the cursor is not available yet. 94 * parameter. Can be null if the cursor is not available yet. 96 public void __constructor__(Context context, int layout, Cursor c, String[] from, int[] to) { 105 * constructor with their corresponding cursor columns as specified in th [all...] |
/frameworks/base/core/java/android/database/ |
CursorJoiner.java | 47 private Cursor mCursorLeft; 48 private Cursor mCursorRight; 59 /** The row currently pointed to by the left cursor is unique */ 61 /** The row currently pointed to by the right cursor is unique */ 70 * @param cursorLeft The left cursor to compare 71 * @param columnNamesLeft The column names to compare from the left cursor 72 * @param cursorRight The right cursor to compare 73 * @param columnNamesRight The column names to compare from the right cursor 76 Cursor cursorLeft, String[] columnNamesLeft, 77 Cursor cursorRight, String[] columnNamesRight) [all...] |
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/ |
CreatePrivateDataTest.java | 22 import android.database.Cursor; 76 Cursor cursor = null; local 83 cursor = db.query(DB_TABLE_NAME, new String[] {DB_COLUMN}, 85 assertEquals(1, cursor.getCount()); 87 if (cursor != null) { 88 cursor.close(); 114 Cursor cursor = null; local 117 cursor = db.query(DB_TABLE_NAME, new String[] {DB_COLUMN} [all...] |
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
ExtendedCursor.java | 21 import android.database.Cursor; 27 * Wraps a cursor to add an additional column with the same value for all rows. 29 * The number of rows in the cursor and the set of columns is determined by the cursor being 33 /** The cursor to wrap. */ 34 private final Cursor mCursor; 41 * Creates a new cursor which extends the given cursor by adding a column with a constant value. 43 * @param cursor the cursor to exten [all...] |
/packages/apps/Gallery2/src/com/android/photos/ |
AlbumSetFragment.java | 23 import android.database.Cursor; 41 public class AlbumSetFragment extends MultiSelectGridFragment implements LoaderCallbacks<Cursor> { 44 private LoaderCompatShim<Cursor> mLoaderCompatShim; 71 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 80 public void onLoadFinished(Loader<Cursor> loader, 81 Cursor data) { 87 public void onLoaderReset(Loader<Cursor> loader) { 96 Cursor item = (Cursor) getItemAtPosition(position); 113 return ((Cursor) item).getInt(AlbumSetLoader.INDEX_SUPPORTED_OPERATIONS) [all...] |
/packages/apps/Music/src/com/android/music/ |
QueryBrowserActivity.java | 32 import android.database.Cursor; 113 i.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/track"); 121 i.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/album"); 161 null, // cursor 204 // close its cursor, which we do by assigning a null cursor to it. Doing this 205 // instead of closing the cursor directly keeps the framework from accessing 206 // the closed cursor later. 238 // if the query results in a null cursor, onQueryComplete() will 257 public void init(Cursor c) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
CommonNicknameCache.java | 19 import android.database.Cursor; 71 Cursor cursor = mDb.query(NicknameLookupPreloadQuery.TABLE, local 75 int count = cursor.getCount(); 77 cursor.moveToNext(); 78 String normalizedName = cursor.getString(NicknameLookupPreloadQuery.NAME); 83 cursor.close(); 134 Cursor cursor = mDb.query(NicknameLookupQuery.TABLE, NicknameLookupQuery.COLUMNS, local 138 int count = cursor.getCount() [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
List3.java | 20 import android.database.Cursor; 29 * data comes from a cursor, and a 39 // Get a cursor with all phones 40 Cursor c = getContentResolver().query(Phone.CONTENT_URI, 44 // Map Cursor columns to views defined in simple_list_item_2.xml 54 public boolean setViewValue(View view, Cursor cursor, int columnIndex) { 59 int type = cursor.getInt(COLUMN_TYPE); 63 label = cursor.getString(COLUMN_LABEL);
|
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/ |
WordActivity.java | 24 import android.database.Cursor; 49 Cursor cursor = managedQuery(uri, null, null, null, null); local 51 if (cursor == null) { 54 cursor.moveToFirst(); 59 int wIndex = cursor.getColumnIndexOrThrow(DictionaryDatabase.KEY_WORD); 60 int dIndex = cursor.getColumnIndexOrThrow(DictionaryDatabase.KEY_DEFINITION); 62 word.setText(cursor.getString(wIndex)); 63 definition.setText(cursor.getString(dIndex));
|
/external/clang/test/Index/ |
cursor-dynamic-call.mm | 40 // RUN: c-index-test -cursor-at=%s:8:11 \ 41 // RUN: -cursor-at=%s:9:11 \ 42 // RUN: -cursor-at=%s:25:11 \ 43 // RUN: -cursor-at=%s:26:11 \ 44 // RUN: -cursor-at=%s:29:11 \ 45 // RUN: -cursor-at=%s:34:9 \ 46 // RUN: -cursor-at=%s:35:9 \ 47 // RUN: -cursor-at=%s:36:9 \ 48 // RUN: -cursor-at=%s:37:9 \
|
/external/icu4c/i18n/ |
uni2name.cpp | 89 int32_t cursor = offsets.start; local 96 while (cursor < limit) { 97 UChar32 c = text.char32At(cursor); 103 text.handleReplaceBetween(cursor, cursor+clen, str); 105 cursor += len; // advance cursor and adjust for new text 108 cursor += clen; 114 offsets.start = cursor;
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
TrackerListHelper.java | 20 import android.database.Cursor;
50 Cursor cursor = mActivity.managedQuery(TrackerProvider.CONTENT_URI,
local 53 TrackerAdapter adapter = new TrackerAdapter(mActivity, layout, cursor);
55 cursor.setNotificationUri(mActivity.getContentResolver(),
62 public TrackerAdapter(Context context, int layout, Cursor c) {
67 public void bindView(View view, Context context, Cursor cursor) {
71 .createEntry(cursor));
|
/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><cursor-adapter /></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/Gallery2/src/com/android/gallery3d/util/ |
SaveVideoFileUtils.java | 21 import android.database.Cursor; 35 void onCursorResult(Cursor cursor); 62 Cursor cursor = null; local 64 cursor = contentResolver.query(uri, projection, null, null, null); 65 if ((cursor != null) && cursor.moveToNext()) { 66 callback.onCursorResult(cursor); 71 if (cursor != null) [all...] |