/external/linux-tools-perf/util/ |
callchain.h | 60 * A callchain cursor is a single linked list that 99 struct callchain_cursor *cursor, 102 int callchain_merge(struct callchain_cursor *cursor, 108 * Initialize a cursor before adding entries inside, but keep 111 static inline void callchain_cursor_reset(struct callchain_cursor *cursor) 113 cursor->nr = 0; 114 cursor->last = &cursor->first; 117 int callchain_cursor_append(struct callchain_cursor *cursor, u64 ip, 120 /* Close a cursor writing session. Initialize for the reader * [all...] |
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/test/ |
ProviderSearchesUriTest.java | 8 import android.database.Cursor; 57 Cursor cursor = getContentResolver().query(uri, null, SearchColumns.SEARCH + "=? AND " + local 59 assertNotNull(cursor); 60 assertEquals(1, cursor.getCount()); 61 assertTrue(cursor.moveToNext()); 62 int index = cursor.getColumnIndex(SearchColumns.SEARCH); 64 assertEquals(searchTerm, cursor.getString(index)); 65 index = cursor.getColumnIndex(SearchColumns.DATE); 67 assertEquals(searchTime, cursor.getLong(index)) 85 Cursor cursor = getContentResolver().query(mSearchesUri, null, SearchColumns.SEARCH + "=?", local 118 Cursor cursor = getContentResolver().query(mSearchesUri, null, SearchColumns.SEARCH + "=?", local 159 Cursor cursor = getContentResolver().query(mSearchesUri, local [all...] |
ProviderBookmarksUriTest.java | 8 import android.database.Cursor; 74 Cursor cursor = getContentResolver().query(uri, null, null, null, null); local 75 assertEquals(1, cursor.getCount()); 76 assertTrue(cursor.moveToNext()); 77 int index = cursor.getColumnIndex(BookmarkColumns.BOOKMARK); 79 assertEquals(0, cursor.getInt(index)); 80 index = cursor.getColumnIndex(BookmarkColumns.CREATED); 82 assertEquals(createdTime, cursor.getLong(index)); 83 index = cursor.getColumnIndex(BookmarkColumns.DATE) 123 Cursor cursor = getContentResolver().query(mBookmarksUri, null, local 209 Cursor cursor = getContentResolver().query(uri, null, null, null, null); local 259 Cursor cursor = getContentResolver().query(uris[0], null, null, null, null); local 315 Cursor cursor = getContentResolver().query( local [all...] |
/external/chromium_org/ui/base/cursor/ |
cursor_x11.cc | 5 #include "ui/base/cursor/cursor.h" 11 void Cursor::RefCustomCursor() { 16 void Cursor::UnrefCustomCursor() {
|
cursor_loader_x11.h | 12 #include "ui/base/cursor/cursor.h" 13 #include "ui/base/cursor/cursor_loader.h" 34 virtual void SetPlatformCursor(gfx::NativeCursor* cursor) OVERRIDE; 40 // Gets the X Cursor corresponding to the |native_cursor|. 41 ::Cursor ImageCursorFromNative(gfx::NativeCursor native_cursor); 43 // A map to hold all image cursors. It maps the cursor ID to the X Cursor. 44 typedef std::map<int, ::Cursor> ImageCursorMap; 47 // A map to hold all animated cursors. It maps the cursor ID to the pair o [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/wincommon/ |
SDL_sysmouse.c | 39 /* The implementation dependent data for the window manager cursor */ 40 /* For some reason when creating a windows cursor, the ands and xors memory 42 with the cursor. If we free the memory prematurely, the app crashes. :-} 77 /* Local functions to convert the SDL cursor mask into Windows format */ 90 void WIN_FreeWMCursor(_THIS, WMcursor *cursor) 93 if ( cursor->curs == GetCursor() ) 95 if ( cursor->curs != NULL ) 96 DestroyCursor(cursor->curs); 97 if ( cursor->ands != NULL ) 98 SDL_free(cursor->ands) 109 WMcursor *cursor; local [all...] |
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
SQLiteDatabaseTest.java | 27 import android.database.Cursor; 92 public Cursor newCursor(SQLiteDatabase db, SQLiteCursorDriver masterQuery, 334 Cursor cursor = mDatabase.query("test", TEST_PROJECTION, null, null, null, null, null); local 335 assertNotNull(cursor); 336 assertEquals(0, cursor.getCount()); 345 cursor.close(); 347 cursor = mDatabase.query("test", TEST_PROJECTION, null, null, null, null, null); 348 assertNotNull(cursor); 349 assertEquals(1, cursor.getCount()) 377 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, local 427 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, local 549 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, local 758 Cursor cursor = mDatabase.query(true, "employee", new String[] { "name", "sum(salary)" }, local 861 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, local 927 Cursor cursor = mDatabase.query("test", null, "_id=1", null, null, null, null); local 962 Cursor cursor = mDatabase.rawQuery(sql, null); local 1080 Cursor cursor = mDatabase.rawQuery("SELECT count(*) FROM test", null); local 1104 Cursor cursor = mDatabase.rawQuery("SELECT * FROM test", null); local 1171 Cursor cursor = mDatabase.rawQuery("SELECT * FROM test", null); local 1235 Cursor cursor = mDatabase.rawQuery("SELECT * FROM test", null); local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
BrowserTest.java | 25 import android.database.Cursor; 76 Cursor cursor = mProvider.query(Bookmarks.CONTENT_URI, null, null, null, null, null); local 77 if (cursor.moveToFirst()) { 78 String[] colNames = cursor.getColumnNames(); 79 while (!cursor.isAfterLast()) { 89 switch (cursor.getType(i)) { 90 case Cursor.FIELD_TYPE_BLOB: 91 value.put(colNames[i], cursor.getBlob(i)); 93 case Cursor.FIELD_TYPE_FLOAT 166 Cursor cursor; local 218 Cursor cursor; local 250 Cursor cursor; local 287 Cursor cursor; local [all...] |
SettingsTest.java | 26 import android.database.Cursor; 52 Cursor cursor = null; local 61 cursor = provider.query(Settings.System.CONTENT_URI, SYSTEM_PROJECTION, 63 assertNotNull(cursor); 64 assertEquals(1, cursor.getCount()); 65 assertTrue(cursor.moveToFirst()); 66 assertEquals(insertName, cursor.getString(NAME_INDEX)); 67 assertEquals(insertValue, cursor.getString(VALUE_INDEX)); 68 int Id = cursor.getInt(ID_INDEX) 120 Cursor cursor = null; local 184 Cursor cursor = null; local [all...] |
/external/chromium_org/ppapi/api/dev/ |
ppb_cursor_control_dev.idl | 8 * implemented by the browser for controlling the cursor. 18 * Set a cursor. If "type" is PP_CURSORTYPE_CUSTOM, then "custom_image" 19 * must be an ImageData resource containing the cursor and "hot_spot" must 20 * contain the offset within that image that refers to the cursor's position. 28 * This method causes the cursor to be moved to the center of the 30 * The cursor is implicitly hidden from the user while locked. 31 * Cursor lock may only be requested in response to a 35 * While the cursor is locked, any movement of the mouse will 37 * indicate the position the cursor would have been moved to had 38 * the cursor not been locked, and had the screen been infinite in size [all...] |
/frameworks/base/core/java/android/widget/ |
CursorFilter.java | 19 import android.database.Cursor; 32 CharSequence convertToString(Cursor cursor); 33 Cursor runQueryOnBackgroundThread(CharSequence constraint); 34 Cursor getCursor(); 35 void changeCursor(Cursor cursor); 44 return mClient.convertToString((Cursor) resultValue); 49 Cursor cursor = mClient.runQueryOnBackgroundThread(constraint) local [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
CursorFilter.java | 19 import android.database.Cursor; 33 CharSequence convertToString(Cursor cursor); 34 Cursor runQueryOnBackgroundThread(CharSequence constraint); 35 Cursor getCursor(); 36 void changeCursor(Cursor cursor); 45 return mClient.convertToString((Cursor) resultValue); 50 Cursor cursor = mClient.runQueryOnBackgroundThread(constraint) local [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
LegacyContactListAdapter.java | 21 import android.database.Cursor; 31 * A cursor adapter for the People.CONTENT_TYPE content type. 66 return ((Cursor)getItem(position)).getString(PERSON_DISPLAY_NAME_COLUMN_INDEX); 70 Cursor cursor = ((Cursor)getItem(position)); local 71 long personId = cursor.getLong(PERSON_ID_COLUMN_INDEX); 76 protected View newView(Context context, int partition, Cursor cursor, int position, 84 protected void bindView(View itemView, int partition, Cursor cursor, int position) [all...] |
/packages/apps/Mms/src/com/android/mms/util/ |
Recycler.java | 23 import android.database.Cursor; 80 Cursor cursor = getAllThreads(context); local 83 while (cursor.moveToNext()) { 84 long threadId = getThreadId(cursor); 88 cursor.close(); 122 abstract protected long getThreadId(Cursor cursor); 124 abstract protected Cursor getAllThreads(Context context); 128 abstract protected void dumpMessage(Cursor cursor, Context context) 184 Cursor cursor = SqliteWrapper.query(context, resolver, local 196 Cursor cursor = null; local 250 Cursor cursor = getAllThreads(context); local 324 Cursor cursor = SqliteWrapper.query(context, resolver, local 338 Cursor cursor = null; local 387 Cursor cursor = null; local 444 Cursor cursor = getAllThreads(context); local [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
DataStatus.java | 21 import android.database.Cursor; 31 * {@link #possibleUpdate(Cursor)} to consider updating when a better status 46 public DataStatus(Cursor cursor) { 47 // When creating from cursor row, fill normally 48 fromCursor(cursor); 53 * current row of the given {@link Cursor}. 55 public void possibleUpdate(Cursor cursor) { 56 final boolean hasStatus = !isNull(cursor, Data.STATUS) [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
DataStatus.java | 21 import android.database.Cursor; 29 * {@link #possibleUpdate(Cursor)} to consider updating when a better status 44 public DataStatus(Cursor cursor) { 45 // When creating from cursor row, fill normally 46 fromCursor(cursor); 51 * current row of the given {@link Cursor}. 53 public void possibleUpdate(Cursor cursor) { 54 final boolean hasStatus = !isNull(cursor, Data.STATUS) [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
CursorBackedSuggestionExtras.java | 18 import android.database.Cursor; 27 * SuggestionExtras taking values from the extra columns in a suggestion cursor. 37 private final Cursor mCursor; 41 static CursorBackedSuggestionExtras createExtrasIfNecessary(Cursor cursor, int position) { 42 List<String> extraColumns = getExtraColumns(cursor); 44 return new CursorBackedSuggestionExtras(cursor, position, extraColumns); 50 static String[] getCursorColumns(Cursor cursor) { 52 return cursor.getColumnNames() [all...] |
/external/clang/bindings/python/tests/cindex/ |
util.py | 3 from clang.cindex import Cursor 34 """Obtain a cursor from a source object. 36 This provides a convenient search mechanism to find a cursor with specific 38 TranslationUnit or Cursor instance. 40 If the cursor is not found, None is returned. 43 if isinstance(source, Cursor): 47 children = source.cursor.get_children() 49 for cursor in children: 50 if cursor.spelling == spelling: 51 return cursor [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/maccommon/ |
SDL_macmouse.c | 41 /* The implementation dependent data for the window manager cursor */ 43 Cursor curs; 47 void Mac_FreeWMCursor(_THIS, WMcursor *cursor) 49 SDL_free(cursor); 55 WMcursor *cursor; local 58 /* Allocate the cursor memory */ 59 cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor)); 60 if ( cursor == NULL ) { 64 SDL_memset(cursor, 0, sizeof(*cursor)); [all...] |
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastCursorAdapter.java | 20 import android.database.Cursor; 32 public CellBroadcastCursorAdapter(Context context, Cursor cursor) { 34 super(context, cursor, 0); 38 * Makes a new view to hold the data pointed to by cursor. 40 * @param cursor The cursor from which to get the data. The cursor is already 46 public View newView(Context context, Cursor cursor, ViewGroup parent) [all...] |
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
TrackerDataHelper.java | 20 import android.database.Cursor; 106 * @return Cursor to data 108 public Cursor query(String tag, int limit) { 111 Cursor cursor = mContext.getContentResolver().query( local 114 if (cursor == null) { 115 return cursor; 117 int pos = (cursor.getCount() < limit ? 0 : cursor.getCount() - limit); 118 cursor.moveToPosition(pos) [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/photon/ |
SDL_ph_mouse.c | 34 void ph_FreeWMCursor(_THIS, WMcursor *cursor) 48 SDL_free(cursor); 53 WMcursor* cursor; local 57 /* Allocate and initialize the cursor memory */ 58 if ((cursor = (WMcursor*)SDL_malloc(sizeof(WMcursor))) == NULL) 63 SDL_memset(cursor,0,sizeof(WMcursor)); 65 cursor->ph_cursor = (PhCursorDef_t *) SDL_malloc(sizeof(PhCursorDef_t) + 32*4*2); 67 if (cursor->ph_cursor == NULL) 69 SDL_SetError("ph_CreateWMCursor(): cursor malloc failed !\n"); 73 SDL_memset(cursor->ph_cursor,0,(sizeof(PhCursorDef_t) + 32*4*2)) [all...] |
/cts/tests/tests/database/src/android/database/cts/ |
DatabaseUtils_InsertHelperTest.java | 22 import android.database.Cursor; 100 Cursor cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); local 101 assertNotNull(cursor); 102 assertEquals(0, cursor.getCount()); 103 cursor.close(); 125 cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); 126 assertNotNull(cursor); 127 assertEquals(1, cursor.getCount()); 128 cursor.moveToFirst() 202 Cursor cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); local [all...] |
/external/chromium_org/third_party/WebKit/ManualTests/ |
cursor.html | 1 <div>Mouse over the grey blocks to change the cursor.</div> 2 <div style="width: 20px; height: 20px; margin: 10px; background: #ddd; cursor: auto">auto</div> 3 <div style="width: 20px; height: 20px; margin: 10px; background: #ddd; cursor: default">default</div> 4 <div style="width: 20px; height: 20px; margin: 10px; background: #ddd; cursor: hand">hand</div> 5 <div style="width: 20px; height: 20px; margin: 10px; background: #ddd; cursor: pointer">pointer</div> 6 <div style="width: 20px; height: 20px; margin: 10px; background: #ddd; cursor: text">text</div> 7 <div style="width: 20px; height: 20px; margin: 10px; background: #ddd; cursor: help">help</div> 8 <div style="width: 20px; height: 20px; margin: 10px; background: #ddd; cursor: crosshair">crosshair</div> 9 <div style="width: 20px; height: 20px; margin: 10px; background: #ddd; cursor: move">move</div> 10 <div style="width: 20px; height: 20px; margin: 10px; background: #ddd; cursor: w-resize">w</div [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowCursorAdapter.java | 22 import android.database.Cursor; 39 * Adapter that exposes data from a {@link android.database.Cursor Cursor} to a 40 * {@link android.widget.ListView ListView} widget. The Cursor must include 50 // if the cursor is null OR there are no views to dispense return null 86 protected Cursor mCursor; 119 * Constructor. The adapter will call requery() on the cursor whenever 122 * @param c The cursor from which to get the data. 125 public void __constructor__(Context context, Cursor c) { 132 * @param c The cursor from which to get the data [all...] |