/cts/tests/tests/content/src/android/content/cts/ |
AsyncQueryHandlerTest.java | 23 import android.database.Cursor; 129 Cursor cursor = null; local 131 cursor = mResolver.query(DummyProvider.CONTENT_URI, PROJECTIONS, null, null, ORDER_BY); 132 assertEquals(ORIGINAL_ROW_COUNT + 1, cursor.getCount()); 133 cursor.moveToLast(); 134 assertEquals(NAME3, cursor.getString(NAME_COLUMN_INDEX)); 136 if (cursor != null) { 137 cursor.close(); 153 Cursor cursor = (Cursor) mAsyncHandler.getResult() local 204 Cursor cursor = null; local 244 Cursor cursor = null; local [all...] |
/external/chromium_org/ppapi/cpp/ |
mouse_cursor.h | 17 /// Sets the given mouse cursor. The mouse cursor will be in effect whenever 19 /// call. Note that you can hide the mouse cursor by setting it to the 23 /// custom cursors. To set a system-defined cursor, pass the type you want 25 /// To set a custom cursor, set the type to 30 /// cursor will affect. 33 /// of mouse cursor to show. See <code>ppapi/c/ppb_mouse_cursor.h</code>. 39 /// When you are specifying a predefined cursor, this parameter should be a 42 /// @param[in] hot_spot When setting a custom cursor, this identifies the 43 /// pixel position within the given image of the "hot spot" of the cursor [all...] |
/external/clang/test/Index/ |
targeted-cursor.m | 3 // RUN: c-index-test -write-pch %t.h.pch -target x86_64-apple-macosx10.7 -x objective-c-header %S/targeted-cursor.m.h -Xclang -detailed-preprocessing-record 4 // RUN: c-index-test -cursor-at=%S/targeted-cursor.m.h:5:13 %s -target x86_64-apple-macosx10.7 -include %t.h | FileCheck %s
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ReorderingCursorWrapper.java | 19 import android.database.Cursor; 22 * Cursor wrapper that reorders rows according to supplied specific position mapping. 26 private final Cursor mCursor; 32 * @param cursor wrapped cursor 33 * @param positionMap maps wrapper cursor positions to wrapped cursor positions 36 public ReorderingCursorWrapper(Cursor cursor, int[] positionMap) { 37 if (cursor.getCount() != positionMap.length) [all...] |
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
PicasaSource.java | 20 import android.database.Cursor; 114 data.cursor = mResolver.query(picasaUriBuilder.build(), 121 if (data.cursor == null) { 124 if (data.cursor != null) { 125 int idIndex = data.cursor.getColumnIndex(PICASA_ID); 126 data.cursor.moveToPosition(-1); 127 while (data.position == -1 && data.cursor.moveToNext()) { 128 String id = data.cursor.getString(idIndex); 130 data.position = data.cursor.getPosition(); 142 protected ImageData unpackImageData(Cursor cursor, ImageData data) 218 Cursor cursor = mResolver.query(picasaUriBuilder.build(), local 264 Cursor cursor = mResolver.query(picasaUriBuilder.build(), local 298 Cursor cursor = mResolver.query(picasaUriBuilder.build(), local 339 Cursor cursor = mResolver.query(picasaUriBuilder.build(), local [all...] |
/external/chromium_org/third_party/WebKit/ManualTests/ |
svg-cursor-changes.svg | 2 <cursor id="mycursor" x="10" y="10" xlink:href="resources/webkit-background.png"/> 4 <!-- Clicking this circle should result in an instant update of the cursor location of this and the next circle (tested using DOM) --> 5 <circle onclick="document.getElementById('mycursor').setAttribute('x', '100');" cx="80" cy="150" r="70" fill="green" cursor="url(#mycursor)"/> 7 <!-- Clicking this circle should result in an instant update of the cursor location of this and the previous circle (tested using SVG DOM) --> 8 <circle onclick="document.getElementById('mycursor').x.baseVal.value = 100;" cx="230" cy="150" r="70" fill="green" cursor="url(#mycursor)"/> 10 <cursor id="mycursor2" x="10" y="10" xlink:href="resources/webkit-background.png"/> 11 <cursor id="mycursor3" x="10" y="10" xlink:href="resources/webkit-background.png"/> 13 <!-- Clicking this circle should result in an instant update of the cursor location (tested using DOM) --> 14 <circle onclick="document.getElementById('mycursor2').setAttribute('x', '100');" cx="80" cy="310" r="70" fill="green" cursor="url(#mycursor2)"/> 16 <!-- Clicking this circle should result in an instant update of the cursor location (tested using SVG DOM) -- [all...] |
/frameworks/base/core/java/android/database/ |
CrossProcessCursor.java | 20 * A cross process cursor is an extension of a {@link Cursor} that also supports 23 * The contents of a cross process cursor are marshalled to the remote process by 25 * the cursor can provide a pre-filled window to use via {@link #getWindow} thereby 26 * obviating the need to copy the data to yet another cursor window. 28 public interface CrossProcessCursor extends Cursor { 30 * Returns a pre-filled window that contains the data within this cursor. 32 * In particular, the window contains the row indicated by {@link Cursor#getPosition}. 42 * Copies cursor data into the window. 45 * row position until all of the data in the cursor is exhauste [all...] |
/frameworks/ex/common/java/com/android/common/contacts/ |
BaseEmailAddressAdapter.java | 27 import android.database.Cursor; 166 Cursor directoryCursor = null; 174 Cursor cursor = null; local 185 cursor = mContentResolver.query(uri, EmailQuery.PROJECTION, null, null, null); 186 results.count = cursor.getCount(); 188 results.values = new Cursor[] { directoryCursor, cursor }; 195 Cursor[] cursors = (Cursor[]) results.values 238 Cursor cursor = mContentResolver.query( local 247 Cursor cursor = (Cursor) results.values; local 495 MatrixCursor cursor = new MatrixCursor(new String[]{SEARCHING_CURSOR_MARKER}); local 573 Cursor cursor = getCursor(partition); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/widget/ |
PinnedHeaderListDemoActivity.java | 21 import android.database.Cursor; 55 protected View newHeaderView(Context context, int partition, Cursor cursor, 62 protected void bindHeaderView(View view, int parition, Cursor cursor) { 68 protected View newView(Context context, int partition, Cursor cursor, int position, 75 protected void bindView(View v, int partition, Cursor cursor, int position) { 77 text.setText(cursor.getString(1)) 125 final Cursor cursor = makeCursor(names[i], counts[i]); local 137 MatrixCursor cursor = new MatrixCursor(new String[]{"_id", name}); local [all...] |
/packages/apps/Dialer/src/com/android/dialer/ |
CallDetailActivityQueryHandler.java | 19 import android.database.Cursor; 53 * query a call to {@link CallDetailActivity#updateVoicemailStatusMessage(Cursor)} is made. 67 Cursor cursor) { 71 if (moveToFirst(cursor) && hasNoAudio(cursor)) { 73 Status.buildSourceUri(getSourcePackage(cursor)), 80 mCallDetailActivity.updateVoicemailStatusMessage(cursor); 85 MoreCloseables.closeQuietly(cursor); 89 /** Check that the cursor is non-null and can be moved to first. * [all...] |
/packages/apps/Gallery/src/com/android/camera/gallery/ |
VideoList.java | 20 import android.database.Cursor; 53 protected long getImageId(Cursor cursor) { 54 return cursor.getLong(INDEX_ID); 58 protected BaseImage loadImageFromCursor(Cursor cursor) { 59 long id = cursor.getLong(INDEX_ID); 60 String dataPath = cursor.getString(INDEX_DATA_PATH); 61 long dateTaken = cursor.getLong(INDEX_DATE_TAKEN); 63 dateTaken = cursor.getLong(INDEX_DATE_MODIFIED) * 1000 [all...] |
BaseImageList.java | 24 import android.database.Cursor; 44 protected Cursor mCursor; 70 // IllegalStateException may be thrown if the cursor is stale. 71 Log.e(TAG, "Caught exception while deactivating cursor.", e); 96 Cursor cursor = getCursor(); local 97 if (cursor == null) return 0; 99 return cursor.getCount(); 107 private Cursor getCursor() { 121 Cursor cursor = getCursor() local 197 Cursor cursor = getCursor(); local [all...] |
/cts/tests/tests/database/src/android/database/cts/ |
DatabaseUtilsTest.java | 22 import android.database.Cursor; 116 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, local 118 assertNotNull(cursor); 119 assertEquals(0, cursor.getCount()); 129 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); 130 assertNotNull(cursor); 131 assertEquals(1, cursor.getCount()); 132 cursor.moveToFirst(); 133 assertEquals(name, cursor.getString(1)) 149 Cursor cursor = db.query(TABLE_NAME, PROJECTION, null, null, null, null, null); local 160 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, local 180 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, local 199 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); local 228 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); local 257 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, local 272 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, local 315 Cursor cursor = mDatabase.query("test_copy", TEST_PROJECTION, null, null, null, null, null); local 342 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, local 369 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, local [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
PhoneNumberListAdapter.java | 21 import android.database.Cursor; 47 * A cursor adapter for the {@link Phone#CONTENT_ITEM_TYPE} and 246 return ((Cursor) getItem(position)).getString(PhoneQuery.DISPLAY_NAME); 250 final Cursor item = (Cursor)getItem(position); 255 * Builds a {@link Data#CONTENT_URI} for the given cursor position. 257 * @return Uri for the data. may be null if the cursor is not ready. 261 final Cursor item = (Cursor)getItem(position); 265 public Uri getDataUri(int partitionIndex, Cursor cursor) [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
SimpleCursorTreeAdapterTest.java | 23 import android.database.Cursor; 63 private Cursor mGroupCursor; 65 private Cursor mChildCursor; 172 * Creates the test cursor. 177 * @return the cursor 180 private Cursor createTestCursor(int colCount, int rowCount, String prefix) { 187 MatrixCursor cursor = new MatrixCursor(columns, rowCount); local 194 cursor.addRow(row); 196 return cursor; 200 public MockSimpleCursorTreeAdapter(Context context, Cursor cursor [all...] |
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
TrackerEntry.java | 20 import android.database.Cursor; 208 static TrackerEntry createEntry(Cursor cursor) { 209 String timestamp = cursor.getString(cursor.getColumnIndex(TIMESTAMP)); 210 String tag = cursor.getString(cursor.getColumnIndex(TAG)); 211 String sType = cursor.getString(cursor.getColumnIndex(ENTRY_TYPE)); 216 location.setLatitude(cursor.getFloat(curso [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
WidgetDatabaseHelper.java | 21 import android.database.Cursor; 78 private Entry(int id, Cursor cursor) { 80 type = cursor.getInt(INDEX_WIDGET_TYPE); 82 imageUri = cursor.getString(INDEX_IMAGE_URI); 83 imageData = cursor.getBlob(INDEX_PHOTO_BLOB); 85 albumPath = cursor.getString(INDEX_ALBUM_PATH); 86 relativePath = cursor.getString(INDEX_RELATIVE_PATH); 90 private Entry(Cursor cursor) { 112 Cursor cursor = db.query("photos", local 128 Cursor cursor = db.query("photos", local 234 Cursor cursor = null; local 255 Cursor cursor = null; local [all...] |
/packages/apps/Mms/src/com/android/mms/transaction/ |
RetryScheduler.java | 27 import android.database.Cursor; 111 Cursor cursor = SqliteWrapper.query(mContext, mContentResolver, local 114 if (cursor != null) { 116 if ((cursor.getCount() == 1) && cursor.moveToFirst()) { 117 int msgType = cursor.getInt(cursor.getColumnIndexOrThrow( 120 int retryIndex = cursor.getInt(cursor.getColumnIndexOrThrow 241 Cursor cursor = SqliteWrapper.query(mContext, mContentResolver, local 259 Cursor cursor = SqliteWrapper.query(mContext, mContentResolver, local 278 Cursor cursor = PduPersister.getPduPersister(context).getPendingMessages( local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
ConversationPositionTracker.java | 42 /** Did we recalculate positions after updating the cursor? */ 56 /** Move cursor to a specific position and return the conversation there */ 58 final ConversationCursor cursor = mCallbacks.getConversationListCursor(); local 59 cursor.moveToPosition(position); 60 final Conversation conv = cursor.getConversation(); 69 final ConversationCursor cursor = mCallbacks.getConversationListCursor(); local 70 if (isDataLoaded(cursor)) { 71 return cursor.getCount(); 123 * the positions in the tracker. We need a valid cursor before we can bless the position as 134 /** @return whether or not we have a valid cursor to check the position of. * 140 final ConversationCursor cursor = mCallbacks.getConversationListCursor(); local 168 final ConversationCursor cursor = mCallbacks.getConversationListCursor(); local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
TestResultsBackupHelper.java | 27 import android.database.Cursor; 54 Cursor cursor = null; local 56 cursor = resolver.query(TestResultsProvider.RESULTS_CONTENT_URI, 58 int nameIndex = cursor.getColumnIndex(TestResultsProvider.COLUMN_TEST_NAME); 59 int resultIndex = cursor.getColumnIndex(TestResultsProvider.COLUMN_TEST_RESULT); 60 int infoSeenIndex = cursor.getColumnIndex(TestResultsProvider.COLUMN_TEST_INFO_SEEN); 61 int detailsIndex = cursor.getColumnIndex(TestResultsProvider.COLUMN_TEST_DETAILS); 66 dataOutput.writeInt(cursor.getCount()); 67 while (cursor.moveToNext()) [all...] |
/external/chromium_org/ui/base/cursor/ |
cursor_loader_win.h | 9 #include "ui/base/cursor/cursor_loader.h" 27 virtual void SetPlatformCursor(gfx::NativeCursor* cursor) OVERRIDE; 30 // Used to pass the cursor resource module name to the cursor loader. This is
|
/external/chromium_org/webkit/common/cursors/ |
webcursor.h | 19 #include "ui/base/cursor/cursor.h" 39 // This class encapsulates a cross-platform description of a cursor. Platform 40 // specific methods are provided to translate the cross-platform cursor into a 41 // platform specific cursor. It is also possible to serialize / de-serialize a 88 // specific cursor object. Otherwise GetCursor should be used. 91 // Returns true if the current cursor object contains the same cursor as the 92 // cursor object passed in. If the current cursor is a custom cursor, we als [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/ps2gs/ |
SDL_gsmouse.c | 33 /* The implementation dependent data for the window manager cursor */ 39 void GS_FreeWMCursor(_THIS, WMcursor *cursor) 51 static void GS_MoveCursor(_THIS, SDL_Cursor *cursor, int x, int y) 69 /* Remove the cursor image from the DMA area */ 85 /* Only draw the new cursor if there was one passed in */ 86 if ( cursor ) { 88 cursor->area.x = (x - cursor->hot_x); 89 cursor->area.y = (y - cursor->hot_y) 134 SDL_Cursor *cursor; local [all...] |
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
BordeauxSessionStorage.java | 21 import android.database.Cursor; 101 private BordeauxSessionManager.Session getSessionFromCursor(Cursor cursor) { 103 String className = cursor.getString(cursor.getColumnIndex(COLUMN_CLASS)); 110 byte[] model = cursor.getBlob(cursor.getColumnIndex(COLUMN_MODEL)); 116 Cursor cursor = mDbSessions.query(true, SESSION_TABLE, local 119 if ((cursor == null) | (cursor.getCount() == 0)) 134 Cursor cursor = mDbSessions.rawQuery("select * from ?;", new String[]{SESSION_TABLE}); local [all...] |
/frameworks/opt/vcard/tests/res/raw/ |
v21_im.vcf | 3 X-ANDROID-CUSTOM:vnd.android.cursor.item/nickname;Nick;1;;;;;;;;;;;;;
|