/external/clang/test/Index/ |
get-cursor.c | 9 // RUN: c-index-test -cursor-at=%s:1:9 \ 10 // RUN: -cursor-at=%s:2:9 \ 11 // RUN: -cursor-at=%s:5:9 \ 12 // RUN: -cursor-at=%s:7:5 \ 13 // RUN: -cursor-at=%s:7:8 \
|
getcursor-preamble.m | 4 // RUN: -cursor-at=%S/getcursor-preamble.h:2:10 \ 5 // RUN: -cursor-at=%S/getcursor-preamble.h:3:9 \ 6 // RUN: -cursor-at=%S/getcursor-preamble.h:4:6 \ 7 // RUN: -cursor-at=%S/getcursor-preamble.h:5:8 \ 8 // RUN: -cursor-at=%S/getcursor-preamble.h:7:7 \ 12 // RUN: -cursor-at=%S/getcursor-preamble.h:2:10 \ 13 // RUN: -cursor-at=%S/getcursor-preamble.h:3:9 \ 14 // RUN: -cursor-at=%S/getcursor-preamble.h:4:6 \ 15 // RUN: -cursor-at=%S/getcursor-preamble.h:5:8 \ 16 // RUN: -cursor-at=%S/getcursor-preamble.h:7:7 [all...] |
/frameworks/base/core/java/android/widget/ |
ResourceCursorTreeAdapter.java | 20 import android.database.Cursor; 41 * @param cursor The database cursor 51 public ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, 53 super(cursor, context); 68 * @param cursor The database cursor 76 public ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout [all...] |
/frameworks/base/core/java/android/content/ |
ContentQueryMap.java | 20 import android.database.Cursor; 28 * Caches the contents of a cursor into a Map of String->ContentValues and optionally 29 * keeps the cache fresh by registering for updates on the content backing the cursor. The column of 33 * The cursor data is accessed by row key and column name via getValue(). 36 private volatile Cursor mCursor; 47 /** Set when a cursor change notification is received and is cleared on a call to requery(). */ 51 * Creates a ContentQueryMap that caches the content backing the cursor 53 * @param cursor the cursor whose contents should be cached 55 * @param keepUpdated true if the cursor's ContentProvider should be monitored for changes and 131 final Cursor cursor = mCursor; local [all...] |
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
AbstractPublicApiTest.java | 25 import android.database.Cursor; 57 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); local 59 if (cursor.getCount() > 0) { 60 cursor.moveToFirst(); 61 return (int) cursor.getLong(cursor.getColumnIndexOrThrow( 68 cursor.close(); 73 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)) local 84 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); local 169 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); local [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
DownloadManagerTest.java | 26 import android.database.Cursor; 111 Cursor cursor = null; local 113 cursor = mDownloadManager.query(new Query().setFilterById(id)); 114 assertTrue(cursor.moveToNext()); 115 assertEquals(DownloadManager.STATUS_SUCCESSFUL, cursor.getInt( 116 cursor.getColumnIndex(DownloadManager.COLUMN_STATUS))); 117 assertEquals(MINIMUM_DOWNLOAD_BYTES, cursor.getInt( 118 cursor.getColumnIndex(DownloadManager.COLUMN_TOTAL_SIZE_BYTES))); 119 assertFalse(cursor.moveToNext()) 280 Cursor cursor = null; local 317 Cursor cursor = null; local 330 Cursor cursor = null; local 346 Cursor cursor= null; local 361 Cursor cursor = null; local 378 Cursor cursor = null; local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactUtil.java | 22 import android.database.Cursor; 49 Cursor cursor = resolver.query(uri, projection, null, null, null); local 50 if (cursor.moveToNext()) { 62 Cursor cursor = resolver.query(uri, projection, null, null, null); local 64 if (cursor.moveToNext()) { 65 return cursor.getLong(0); 68 if (cursor != null) { 69 cursor.close() [all...] |
/external/chromium_org/ui/base/cursor/ |
cursor_loader.h | 32 // Returns the current scale of the mouse cursor icon. 37 // Sets the scale of the mouse cursor icon. 42 // Creates a cursor from an image resource and puts it in the cursor map. 47 // Creates an animated cursor from an image resource and puts it in the 48 // cursor map. The image is assumed to be a concatenation of animation frames 60 // Sets the platform cursor based on the native type of |cursor|. 61 virtual void SetPlatformCursor(gfx::NativeCursor* cursor) = 0; 70 // The current scale of the mouse cursor icon [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
SQLiteDirectCursorDriver.java | 19 import android.database.Cursor; 24 * A cursor driver that uses the given query directly. 43 public Cursor query(CursorFactory factory, String[] selectionArgs) { 45 final Cursor cursor; local 50 cursor = new SQLiteCursor(this, mEditTable, query); 52 cursor = factory.newCursor(mDatabase, this, mEditTable, query); 60 return cursor; 75 public void cursorRequeried(Cursor cursor) { [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
LocalVideo.java | 20 import android.database.Cursor; 75 public LocalVideo(Path path, GalleryApp application, Cursor cursor) { 78 loadFromCursor(cursor); 86 Cursor cursor = LocalAlbum.getItemCursor(resolver, uri, PROJECTION, id); local 87 if (cursor == null) { 88 throw new RuntimeException("cannot get cursor for: " + path); 91 if (cursor.moveToNext()) { 92 loadFromCursor(cursor); [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
ContactUtil.java | 22 import android.database.Cursor; 49 Cursor cursor = resolver.query(uri, projection, null, null, null); local 50 if (cursor.moveToNext()) { 62 Cursor cursor = resolver.query(uri, projection, null, null, null); local 64 if (cursor.moveToNext()) { 65 return cursor.getLong(0); 68 if (cursor != null) { 69 cursor.close() [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
CursorAdapter.java | 21 import android.database.Cursor; 55 protected Cursor mCursor; 88 * If set the adapter will call requery() on the cursor whenever a content change 91 * @deprecated This option is discouraged, as it results in Cursor queries 100 * If set the adapter will register a content observer on the cursor and will call 102 * using this flag: you will need to unset the current Cursor from the adapter 112 * @deprecated This option is discouraged, as it results in Cursor queries 117 * @param c The cursor from which to get the data. 121 public CursorAdapter(Context context, Cursor c) { 127 * you not use this, but instead {@link #CursorAdapter(Context, Cursor, int)} [all...] |
/frameworks/opt/telephony/src/java/android/telephony/ |
CellBroadcastMessage.java | 21 import android.database.Cursor; 36 * in the database cursor returned by the ContentProvider. 98 * @param cursor an open SQLite cursor pointing to the row to read 102 public static CellBroadcastMessage createFromCursor(Cursor cursor) { 103 int geoScope = cursor.getInt( 104 cursor.getColumnIndexOrThrow(Telephony.CellBroadcasts.GEOGRAPHICAL_SCOPE)); 105 int serialNum = cursor.getInt( 106 cursor.getColumnIndexOrThrow(Telephony.CellBroadcasts.SERIAL_NUMBER)) [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaDocumentsProvider.java | 23 import android.database.Cursor; 105 private void copyNotificationUri(MatrixCursor result, Cursor cursor) { 106 result.setNotificationUri(getContext().getContentResolver(), cursor.getNotificationUri()); 190 public Cursor queryRoots(String[] projection) throws FileNotFoundException { 199 public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException { 205 Cursor cursor = null; local 212 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, 215 copyNotificationUri(result, cursor); 297 Cursor cursor = null; local 386 Cursor cursor = null; local 475 Cursor cursor = null; local 751 Cursor cursor = null; local 776 Cursor cursor = null; local 839 Cursor cursor = null; local 863 Cursor cursor = null; local 908 Cursor cursor = null; local [all...] |
/frameworks/ex/common/java/com/android/common/widget/ |
CompositeCursorAdapter.java | 19 import android.database.Cursor; 38 Cursor cursor; field in class:CompositeCursorAdapter.Partition 80 * Registers a partition. The cursor for that partition can be set later. 101 Cursor cursor = mPartitions.get(partitionIndex).cursor; local 102 if (cursor != null && !cursor.isClosed()) { 103 cursor.close() 129 Cursor cursor = partition.cursor; local 168 Cursor cursor = partition.cursor; local 226 Cursor cursor = mPartitions.get(partition).cursor; local 426 Cursor cursor = mPartition.cursor; local 456 Cursor cursor = mPartition.cursor; local [all...] |
/external/chromium/chrome/browser/renderer_host/ |
gtk_key_bindings_handler_unittest.cc | 93 // "move-cursor" (logical-positions, -2, 0) 96 // "move-cursor" (logical-positions, 2, 0) 99 // "move-cursor" (visual-positions, -1, 1) 101 // "move-cursor" (visual-positions, 1, 1) 103 // "move-cursor" (words, -1, 0) 105 // "move-cursor" (words, 1, 0) 107 // "move-cursor" (display-lines, -1, 0) 109 // "move-cursor" (display-lines, 1, 0) 111 // "move-cursor" (display-line-ends, -1, 0) 113 // "move-cursor" (display-line-ends, 1, 0 [all...] |
/external/chromium_org/content/browser/renderer_host/ |
gtk_key_bindings_handler_unittest.cc | 97 // "move-cursor" (logical-positions, -2, 0) 100 // "move-cursor" (logical-positions, 2, 0) 103 // "move-cursor" (visual-positions, -1, 1) 105 // "move-cursor" (visual-positions, 1, 1) 107 // "move-cursor" (words, -1, 0) 109 // "move-cursor" (words, 1, 0) 111 // "move-cursor" (display-lines, -1, 0) 113 // "move-cursor" (display-lines, 1, 0) 115 // "move-cursor" (display-line-ends, -1, 0) 117 // "move-cursor" (display-line-ends, 1, 0 [all...] |
/external/chromium_org/third_party/WebKit/ManualTests/ |
css3-cursor-fallback-strict.html | 4 <head><title>Strict custom cursor tests</title></head> 7 <p>Move the cursor over the blue box - it should not turn into a missing image icon, and should turn into an I-beam over text.</p> 9 <div style="width:100px;height:50px;background-color:lightblue; cursor:url(nonexistent.png), auto;"><span style="cursor:url(nonexistent.png), auto;">some text</span></div> 10 <div style="width:100px;height:50px;background-color:lightblue; cursor:url(nonexistent.png);"></div> 14 <p><a href="http://bugs.webkit.org/show_bug.cgi?id=9013">Bug 9013</a>: Let correct CSS custom cursor declarations parse</p> 15 <p>In each of the blue boxes below, the cursor should become a help cursor (question mark).</p> 17 <td><div style="width:100px;height:100px;background-color:lightblue; cursor:url(resources/helpCursor.tiff), text;"></div></td> <!-- Valid, no fallback needed --> 18 <td><div style='width:100px;height:100px;background-color:lightblue; cursor:url(nonexistent.png), help;'></div></td [all...] |
/packages/apps/Email/tests/src/com/android/email/provider/ |
ContentCacheTests.java | 22 import android.database.Cursor; 147 Cursor cursor = local 150 assertTrue(cursor instanceof CursorWrapper); 152 Cursor wrappedCursor = ((CursorWrapper)cursor).getWrappedCursor(); 155 // The cursor wrapped in cachedCursor is the underlying cursor 156 Cursor activeCursor = cachedCursor.getWrappedCursor(); 158 // The cursor should be in active cursor 202 MatrixCursor cursor = new MatrixCursorWithCachedColumns(SIMPLE_PROJECTION, 1); local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
UserDictionary_WordsTest.java | 21 import android.database.Cursor; 69 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION, local 71 assertTrue(cursor.moveToFirst()); 73 cursor.getString(ID_INDEX))); 75 assertEquals(1, cursor.getCount()); 76 assertEquals(word, cursor.getString(WORD_INDEX)); 77 assertEquals(frequency, cursor.getInt(FREQUENCY_INDEX)); 78 assertNull(cursor.getString(LOCALE_INDEX)); 79 cursor.close() 93 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION, local [all...] |
VoicemailContractTest.java | 22 import android.database.Cursor; 100 Cursor cursor = mVoicemailProvider.query( local 104 assertTrue(cursor.moveToNext()); 105 assertEquals(insertCallsNumber, cursor.getString(NUMBER_INDEX)); 106 assertEquals(insertDate, cursor.getLong(DATE_INDEX)); 107 assertEquals(insertCallsDuration, cursor.getLong(DURATION_INDEX)); 108 assertEquals(mSourcePackageName, cursor.getString(SOURCE_PACKAGE_INDEX)); 109 assertEquals(insertSourceData, cursor.getString(SOURCE_DATA_INDEX)); 110 assertEquals(insertMimeType, cursor.getString(MIME_TYPE_INDEX)) 177 final Cursor cursor = mVoicemailProvider.query(mVoicemailContentUri, local 236 Cursor cursor = mStatusProvider.query( local [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
FilteringCursorWrapper.java | 24 import android.database.Cursor; 30 * Cursor wrapper that filters MIME types not matching given list. 33 private final Cursor mCursor; 38 public FilteringCursorWrapper(Cursor cursor, String[] acceptMimes) { 39 this(cursor, acceptMimes, null, Long.MIN_VALUE); 42 public FilteringCursorWrapper(Cursor cursor, String[] acceptMimes, String[] rejectMimes) { 43 this(cursor, acceptMimes, rejectMimes, Long.MIN_VALUE); 47 Cursor cursor, String[] acceptMimes, String[] rejectMimes, long rejectBefore) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/content/ |
ObjectCursor.java | 19 import android.database.Cursor; 24 * A cursor-backed type that can return an object for each row of the cursor. This class is most 26 * 1. The cursor is returned in conjuction with an AsyncTaskLoader and created off the UI thread. 27 * 2. A single row in the cursor specifies everything for an object. 30 /** The cache for objects in the underlying cursor. */ 36 * Creates a new object cursor. 37 * @param cursor the underlying cursor this wraps. 39 public ObjectCursor(Cursor cursor, CursorCreator<T> factory) [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/mod_pywebsocket/ |
fast_masking.i | 60 char* cursor = *result; 64 while ((cursor < cursor_end) && 65 (reinterpret_cast<size_t>(cursor) & 0xf)) { 66 *cursor ^= masking_key[masking_key_index]; 67 ++cursor; 70 if (cursor == cursor_end) { 82 while (cursor + kBlockSize <= cursor_end) { 84 _mm_load_si128(reinterpret_cast<__m128i*>(cursor)); 85 _mm_stream_si128(reinterpret_cast<__m128i*>(cursor), 87 cursor += kBlockSize [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
ConversationListAdapter.java | 21 import android.database.Cursor; 43 public ConversationListAdapter(Context context, Cursor cursor) { 44 super(context, cursor, false /* auto-requery */); 49 public void bindView(View view, Context context, Cursor cursor) { 56 Conversation conv = Conversation.from(context, cursor); 66 public View newView(Context context, Cursor cursor, ViewGroup parent) { 91 Cursor cursor = (Cursor)getItem(i) local [all...] |