/packages/apps/Browser/src/com/android/browser/ |
BrowserSnapshotPage.java | 29 import android.database.Cursor; 56 LoaderCallbacks<Cursor>, OnItemClickListener { 123 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 133 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 153 public void onLoaderReset(Loader<Cursor> loader) { 169 private void populateBookmarkItem(Cursor cursor, BookmarkItem item) { 170 item.setName(cursor.getString(SNAPSHOT_TITLE)); 171 item.setUrl(cursor.getString(SNAPSHOT_URL)) [all...] |
DateSortedExpandableListAdapter.java | 20 import android.database.Cursor; 41 private Cursor mCursor; 75 // The cursor is sorted by date 107 * Get the byte array at cursorIndex from the Cursor. Assumes the Cursor 110 * does not need to access the Cursor directly 111 * @param cursorIndex Index to query the Cursor. 112 * @return corresponding byte array from the Cursor. 124 * Get the integer at cursorIndex from the Cursor. Assumes the Cursor ha [all...] |
BrowserBookmarksPage.java | 32 import android.database.Cursor; 63 boolean onBookmarkSelected(Cursor c, boolean isFolder); 72 LoaderManager.LoaderCallbacks<Cursor>, BreadCrumbView.Controller, 102 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 117 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { 121 while (cursor.moveToNext()) { 122 String accountName = cursor.getString(0); 123 String accountType = cursor.getString(1) 201 Cursor cursor = adapter.getItem(childPosition); local 219 Cursor cursor = adapter.getItem(childPosition); local 272 Cursor cursor = adapter.getItem(info.childPosition); local 431 Cursor cursor = adapter.getItem(childPosition); local 511 Cursor cursor = adapter.getItem(position); local 536 Cursor cursor = adapter.getItem(position); local [all...] |
/external/chromium_org/third_party/freetype/src/base/ |
ftstream.c | 42 stream->cursor = 0; 203 *pbytes = (FT_Byte*)stream->cursor; 206 stream->cursor = 0; 242 FT_ASSERT( stream && stream->cursor == 0 ); 282 stream->cursor = stream->base; 283 stream->limit = stream->cursor + count; 300 /* set cursor */ 301 stream->cursor = stream->base + stream->pos; 302 stream->limit = stream->cursor + count; 314 /* IMPORTANT: The assertion stream->cursor != 0 was removed, given * 728 FT_Byte* cursor; local [all...] |
/external/freetype/src/base/ |
ftstream.c | 42 stream->cursor = 0; 203 *pbytes = (FT_Byte*)stream->cursor; 206 stream->cursor = 0; 242 FT_ASSERT( stream && stream->cursor == 0 ); 282 stream->cursor = stream->base; 283 stream->limit = stream->cursor + count; 300 /* set cursor */ 301 stream->cursor = stream->base + stream->pos; 302 stream->limit = stream->cursor + count; 314 /* IMPORTANT: The assertion stream->cursor != 0 was removed, given * 728 FT_Byte* cursor; local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
ChangedContacts.java | 28 import android.database.Cursor; 44 public class ChangedContacts extends Activity implements LoaderManager.LoaderCallbacks<Cursor> { 159 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 202 public void onLoadFinished(Loader<Cursor> cursorLoader, Cursor data) { 242 public void onLoaderReset(Loader<Cursor> cursorLoader) { 257 * Creates a cursor wrapper. 259 * @param cursor The underlying cursor to wrap. 261 public DeleteCursorWrapper(Cursor cursor) [all...] |
/external/chromium_org/third_party/WebKit/ManualTests/ |
directory-drop-on-view.html | 16 The drag should not be accepted, and the drag cursor should be the standard disallowed drag cursor.
|
/external/chromium_org/ui/base/cursor/ |
cursor_loader_null.cc | 5 #include "ui/base/cursor/cursor_loader_null.h" 23 void CursorLoaderNull::SetPlatformCursor(gfx::NativeCursor* cursor) {}
|
/frameworks/base/core/tests/coretests/apks/version/src/com/android/frameworks/coretests/version_test/ |
NullProvider.java | 5 import android.database.Cursor; 15 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
|
/frameworks/base/core/tests/coretests/apks/version_nosys/src/com/android/frameworks/coretests/version_test/ |
NullProvider.java | 5 import android.database.Cursor; 15 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
|
/frameworks/base/core/tests/coretests/src/android/app/ |
SuggestionProvider.java | 24 import android.database.Cursor; 63 public Cursor query(Uri url, String[] projectionIn, String selection, 69 MatrixCursor cursor = new MatrixCursor(COLUMNS); local 72 addRow(cursor, query + suffix); 74 return cursor; 80 private void addRow(MatrixCursor cursor, String string) { 81 long id = cursor.getCount(); 82 cursor.newRow().add(id).add(string).add(Intent.ACTION_SEARCH).add(string);
|
DownloadManagerFunctionalTest.java | 21 import android.database.Cursor; 82 Cursor cursor = getCursor(dlRequest); local 84 verifyInt(cursor, DownloadManager.COLUMN_REASON, error); 86 cursor.close(); 129 Cursor cursor = mDownloadManager.query(new Query().setFilterById(requestId)); local 131 assertEquals(1, cursor.getCount()); 132 assertTrue(cursor.moveToFirst()); 136 int colIndex = cursor.getColumnIndex(DownloadManager.COLUMN_LOCAL_FILENAME) 167 Cursor cursor = getCursor(dlRequest); local 311 Cursor cursor = mDownloadManager.query(new Query().setFilterById(dlRequest)); local 342 Cursor cursor = getCursor(dlRequest); local 398 Cursor cursor = getCursor(dlRequest); local [all...] |
/packages/apps/Mms/src/com/android/mms/util/ |
AddressUtils.java | 20 import android.database.Cursor; 48 Cursor cursor = SqliteWrapper.query(context, context.getContentResolver(), local 52 if (cursor != null) { 54 if (cursor.moveToFirst()) { 55 String from = cursor.getString(0); 59 int charset = cursor.getInt(1); 65 cursor.close();
|
/external/qemu/distrib/sdl-1.2.15/test/ |
testcursor.c | 6 /* This is an example 16x16 cursor 58 /* another test cursor: smaller than 16x16, and with an odd height */ 146 SDL_Cursor *cursor[3]; local 163 cursor[0] = SDL_CreateCursor((Uint8 *)cursor_data, (Uint8 *)cursor_mask, 165 if (cursor[0]==NULL) { 166 fprintf(stderr, "Couldn't initialize test cursor: %s\n",SDL_GetError()); 170 cursor[1] = create_arrow_cursor(); 171 if (cursor[1]==NULL) { 172 fprintf(stderr, "Couldn't initialize arrow cursor: %s\n",SDL_GetError()); 173 SDL_FreeCursor(cursor[0]) [all...] |
/frameworks/base/core/java/android/database/ |
CursorToBulkCursorAdaptor.java | 27 * Wraps a BulkCursor around an existing Cursor making it remotable. 29 * If the wrapped cursor returns non-null from {@link CrossProcessCursor#getWindow} 39 private static final String TAG = "Cursor"; 46 * The cursor that is being adapted. 47 * This field is set to null when the cursor is closed. 52 * The cursor window that was filled by the cross process cursor in the 53 * case where the cursor does not support getWindow. 91 public CursorToBulkCursorAdaptor(Cursor cursor, IContentObserver observer [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
SaveVideoFileUtils.java | 21 import android.database.Cursor; 59 Cursor cursor = null; local 61 cursor = contentResolver.query(uri, projection, null, null, null); 62 if ((cursor != null) && cursor.moveToNext()) { 63 callback.onCursorResult(cursor); 68 if (cursor != null) { 69 cursor.close(); 80 public void onCursorResult(Cursor cursor) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
SuggestionsProvider.java | 20 import android.database.Cursor; 81 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, 110 ArrayList<Cursor> cursors = new ArrayList<Cursor>(); 118 mergeCursor = new MergeCursor(cursors.toArray(new Cursor[cursors.size()])); 124 * Utility class to return a cursor over the contacts database 134 * Searches over the contacts cursor with the specified query as the starting characters to 137 * @return a cursor over the contacts database with the contacts matching the query. 142 final Cursor cursor = mContext.getContentResolver().query local [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
CursorTreeAdapterTest.java | 22 import android.database.Cursor; 60 private Cursor mGroupCursor; 61 private Cursor mChildCursor1; 62 private Cursor mChildCursor2; 65 private Cursor createGroupCursor() { 72 private Cursor createChild1Cursor() { 79 private Cursor getChild1Cursor() { 83 private Cursor createChild2Cursor() { 89 private Cursor getChild2Cursor() { 378 // null group cursor [all...] |
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
CalendarProvider2Test.java | 27 import android.database.Cursor; 269 Cursor cursor = mResolver.query(mEventsUri, null, null, null, null); local 270 assertEquals(expected, cursor.getCount()); 271 cursor.close(); 285 Cursor cursor = mResolver.query(mEventsUri, null, null, null, null); local 286 dumpCursor(cursor); 287 cursor.close(); 307 Cursor cursor = queryInstances(begin, end) local 332 Cursor cursor = queryInstances(begin, end); local 372 Cursor cursor = queryInstances(begin, end); local 459 Cursor cursor = queryInstances(begin, end); local 1217 Cursor cursor = mResolver.query(mEventsUri, new String[] { Events._ID }, local 1248 Cursor cursor = mResolver.query(mEventsUri, projection, local 1312 Cursor cursor = mResolver.query(mEventsUri, projection, local 1416 Cursor cursor = mResolver.query(Colors.CONTENT_URI, new String[] {Colors.COLOR_KEY}, local 1441 Cursor cursor = mResolver.query(Colors.CONTENT_URI, projection, Colors.COLOR_KEY local 1469 Cursor cursor = mResolver.query(mEventsUri, null, null, null, null); local 1529 Cursor cursor; local 1578 Cursor cursor; local 1823 Cursor cursor = null; local 1978 Cursor cursor = mResolver.query(CalendarContract.CalendarAlerts.CONTENT_URI, projection, local 2000 Cursor cursor = db.query("Events", null, null, null, null, null, null); local 2009 Cursor cursor = db.query("Events", null, Events.CALENDAR_ID + "=?", new String[] {calendar}, local 2061 Cursor cursor = mResolver.query(CalendarContract.Attendees.CONTENT_URI, null, local 2138 Cursor cursor = mResolver.query( local 2162 Cursor cursor = mResolver.query(uri, null\/* projection *\/, where, null \/* selectionArgs *\/, local 2445 Cursor cursor; local 2582 Cursor cursor = queryInstances(mResolver, PROJECTION, local 2766 Cursor cursor = mResolver.query(uri, null, null, null, null); local 2787 Cursor cursor = mResolver local 2831 Cursor cursor = mResolver.query(PROPERTIES_CONTENT_URI, null, null, null, null); local 2875 Cursor cursor = mResolver.query(PROPERTIES_CONTENT_URI, null, local 2955 Cursor cursor = mResolver.query(CalendarContract.ExtendedProperties.CONTENT_URI, local 2982 Cursor cursor = mResolver.query(mCalendarsUri, local 3000 Cursor cursor = mResolver.query(mCalendarsUri, local [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/ |
SimpleCursorAdapterTest.java | 22 import android.database.Cursor; 34 * NOTE: This contract holds for underlying cursor types too and these should 45 Cursor mCursor2x2; 48 * Set up basic columns and cursor for the tests 60 // raw data for building a basic test cursor 86 * Test creating with a live cursor 97 * Test creating with a null cursor 108 * Test changeCursor() with live cursor 117 // now put in a different cursor (5 rows) 119 Cursor c2 = createCursor(mFrom, data2) 241 MatrixCursor cursor = new MatrixCursor(columns, list.size()); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
BucketHelper.java | 5 import android.database.Cursor; 99 Cursor cursor = resolver.query(tableUri, PROJECTION_BUCKET_IN_ONE_TABLE, local 101 if (cursor == null) { 106 while (cursor.moveToNext()) { 107 int bucketId = cursor.getInt(INDEX_BUCKET_ID); 108 int dateTaken = cursor.getInt(INDEX_DATE_TAKEN); 111 entry = new BucketEntry(bucketId, cursor.getString(INDEX_BUCKET_NAME)); 119 Utils.closeSilently(cursor); 149 Cursor cursor = resolver.query(uri local 188 Cursor cursor = resolver.query(uri, PROJECTION_BUCKET_IN_ONE_TABLE, local [all...] |
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
SelectSyncedCalendarsMultiAccountAdapter.java | 28 import android.database.Cursor; 92 private Map<String, Cursor> mChildrenCursors 93 = new HashMap<String, Cursor>(); 148 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { 149 if(cursor == null) { 154 cursor.close(); 159 Cursor currentCursor = mChildrenCursors.get(cookie); 160 // Check if the new cursor has the same content as our old cursor 427 Cursor cursor = mChildrenCursors.get(key); local [all...] |
/packages/apps/Email/src/com/android/email/provider/ |
ContentCache.java | 21 import android.database.Cursor; 50 * To (try to) get a cursor from a cache: 51 * Cursor cursor = cache.getCursor(id, projection); 53 * To read from a table and cache the resulting cursor: 55 * 2. Get a cursor from the database: Cursor cursor = db.query(....); 56 * 3. Put the cursor in the cache: cache.putCursor(cursor, id, token) 639 MatrixCursor cursor = getMatrixCursor(id, mBaseProjection, values); local [all...] |
/external/clang/test/Index/ |
get-cursor.m | 116 // RUN: c-index-test -cursor-at=%s:4:28 -cursor-at=%s:5:28 %s | FileCheck -check-prefix=CHECK-PROP %s 120 // RUN: c-index-test -cursor-at=%s:11:11 %s -target x86_64-apple-macosx10.7.0 | FileCheck -check-prefix=CHECK-WITH-WEAK %s 123 // RUN: c-index-test -cursor-at=%s:20:10 %s | FileCheck -check-prefix=CHECK-METHOD %s 126 // RUN: c-index-test -cursor-at=%s:37:17 %s | FileCheck -check-prefix=CHECK-IN-IMPL %s 129 // RUN: c-index-test -cursor-at=%s:38:6 -cursor-at=%s:40:11 \ 130 // RUN: -cursor-at=%s:50:20 -cursor-at=%s:51:15 -cursor-at=%s:52:20 %s | FileCheck -check-prefix=CHECK-MEMBERREF % [all...] |
/dalvik/dx/src/com/android/dx/util/ |
ByteArrayAnnotatedOutput.java | 47 /** {@code >= 0;} current output cursor */ 48 private int cursor; field in class:ByteArrayAnnotatedOutput 112 this.cursor = 0; 141 byte[] result = new byte[cursor]; 142 System.arraycopy(data, 0, result, 0, cursor); 148 return cursor; 153 if (cursor != expectedCursor) { 154 throw new ExceptionWithContext("expected cursor " + 155 expectedCursor + "; actual value: " + cursor); 161 int writeAt = cursor; [all...] |