/external/python/cpython2/Doc/includes/sqlite3/ |
execute_3.py | 5 cur = con.cursor()
|
insert_more_people.py | 5 cur = con.cursor()
|
/external/python/cpython3/Doc/includes/sqlite3/ |
execute_3.py | 5 cur = con.cursor()
|
insert_more_people.py | 5 cur = con.cursor()
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
DatabaseTestBase.java | 4 import android.database.Cursor; 93 Cursor cursor = database.query("table_name", new String[]{"second_column", "first_column"}, null, null, null, null, null); local 95 assertThat(cursor.moveToFirst(), equalTo(true)); 97 byte[] byteValueFromDatabase = cursor.getBlob(0); 98 String stringValueFromDatabase = cursor.getString(1); 116 Cursor cursor = database.rawQuery("select second_column, first_column from table_name", null); local 118 assertThat(cursor.moveToFirst(), equalTo(true)); 120 byte[] byteValueFromDatabase = cursor.getBlob(0) 142 Cursor cursor = database.rawQuery("select second_column, first_column from table_name", null); local 162 Cursor cursor = database.rawQuery("select second_column, first_column from rawtable WHERE `id` = ?", new String[]{"1"}); local 168 Cursor cursor = database.rawQuery("select second_column, first_column from rawtable", null); local 174 Cursor cursor = database.rawQuery("select second_column, first_column from rawtable", new String[]{}); local 218 Cursor cursor = database.rawQuery("select second_column, first_column from rawtable WHERE `id` = ?", null); local 224 Cursor cursor = database.rawQuery("select second_column, first_column from rawtable WHERE `id` = ?", new String[]{}); local 229 Cursor cursor = database.rawQuery("select second_column, first_column from rawtable", new String[]{"1"}); local 242 Cursor cursor = database.query("table_name", new String[]{"second_column", "first_column"}, null, null, null, null, null); local 273 Cursor cursor = database.query("table_name", new String[]{"id", "name"}, null, null, null, null, null); local 286 Cursor cursor = database.query("table_name", new String[]{"id", "name"}, null, null, null, null, null); local 300 Cursor cursor = database.query("table_name", new String[]{"id", "name"}, null, null, null, null, null); local 429 Cursor cursor = database.rawQuery("select * from exectable WHERE `name` = ?", new String[]{name}); local 444 Cursor cursor = database.rawQuery("select * from exectable", null); local 486 Cursor cursor = database.query("table_name", new String[]{"big_int"}, null, null, null, null, null); local 595 Cursor cursor = database.query("table_name", new String[]{"id", "name"}, null, null, null, null, null); local 602 Cursor cursor = database.query("table_name", new String[]{"id", "name"}, null, null, null, null, null); local [all...] |
/external/syslinux/gpxe/src/include/gpxe/ |
editstring.h | 18 /** Cursor position */ 19 unsigned int cursor; member in struct:edit_string 23 /** Last cursor position */
|
/frameworks/base/core/java/android/content/ |
CursorLoader.java | 19 import android.database.Cursor; 29 * A loader that queries the {@link ContentResolver} and returns a {@link Cursor}. 31 * querying cursors, building on {@link AsyncTaskLoader} to perform the cursor 46 public class CursorLoader extends AsyncTaskLoader<Cursor> { 55 Cursor mCursor; 60 public Cursor loadInBackground() { 68 Cursor cursor = getContext().getContentResolver().query(mUri, mProjection, mSelection, local 70 if (cursor != null) { 72 // Ensure the cursor window is filled [all...] |
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...] |
/frameworks/support/loader/src/main/java/androidx/loader/content/ |
CursorLoader.java | 21 import android.database.Cursor; 41 public class CursorLoader extends AsyncTaskLoader<Cursor> { 50 Cursor mCursor; 55 public Cursor loadInBackground() { 63 Cursor cursor = ContentResolverCompat.query(getContext().getContentResolver(), local 66 if (cursor != null) { 68 // Ensure the cursor window is filled. 69 cursor.getCount(); 70 cursor.registerContentObserver(mObserver) [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/model/ |
ContactLoader.java | 29 import android.database.Cursor; 274 Cursor cursor = local 276 if (cursor == null) { 277 LogUtil.e(TAG, "No cursor returned in loadContactEntity"); 282 if (!cursor.moveToFirst()) { 283 cursor.close(); 288 Contact contact = loadContactHeaderData(cursor, contactUri); 297 long rawContactId = cursor.getLong(ContactQuery.RAW_CONTACT_ID); 302 rawContact = new RawContact(loadRawContactValues(cursor)); 551 Cursor cursor = local 623 final Cursor cursor = local [all...] |
/packages/apps/Dialer/java/com/android/dialer/searchfragment/directories/ |
DirectoryContactViewHolder.java | 21 import android.database.Cursor; 66 * Binds the ViewHolder with a cursor from {@link DirectoryContactsCursorLoader} with the data 69 public void bind(SearchCursor cursor, String query) { 70 number = cursor.getString(Projections.PHONE_NUMBER); 71 String name = cursor.getString(Projections.DISPLAY_NAME); 72 String label = getLabel(context.getResources(), cursor); 81 DirectoryCompat.isOnlyEnterpriseDirectoryId(cursor.getDirectoryId()) 85 if (shouldShowPhoto(cursor)) { 88 String photoUri = cursor.getString(Projections.PHOTO_URI); 92 getContactUri(cursor), [all...] |
/packages/apps/Dialer/java/com/android/dialer/speeddial/ |
SpeedDialAdapter.java | 52 private SpeedDialCursor cursor; field in class:SpeedDialAdapter 67 return cursor.getRowType(position); 89 cursor.moveToPosition(position); 90 switch (cursor.getRowType(position)) { 92 ((HeaderViewHolder) holder).setHeaderText(cursor.getHeader()); 93 ((HeaderViewHolder) holder).showAddButton(cursor.hasFavorites() && position == 0); 96 ((FavoritesViewHolder) holder).bind(context, cursor); 99 ((SuggestionViewHolder) holder).bind(context, cursor); 108 return cursor == null || cursor.isClosed() ? 0 : cursor.getCount() [all...] |
/packages/apps/Settings/src/com/android/settings/slices/ |
SlicesDatabaseAccessor.java | 21 import android.database.Cursor; 55 // Cursor value for boolean true 74 Cursor cursor = getIndexedSliceData(pathData.second /* key */); local 75 return buildSliceData(cursor, uri, pathData.first /* isIntentOnly */); 84 Cursor cursor = getIndexedSliceData(key); local 85 return buildSliceData(cursor, null /* uri */, false /* isIntentOnly */); 105 try (final Cursor resultCursor = database.query(TABLE_SLICES_INDEX, columns, whereClause, 119 private Cursor getIndexedSliceData(String path) [all...] |
/packages/apps/Dialer/java/com/android/dialer/phonelookup/cp2/ |
Cp2Projections.java | 20 import android.database.Cursor; 83 * Builds a {@link Cp2ContactInfo} based on the current row of {@code cursor}, of which the 86 static Cp2ContactInfo buildCp2ContactInfoFromCursor(Context appContext, Cursor cursor) { 87 String displayName = cursor.getString(CP2_INFO_NAME_INDEX); 88 String photoThumbnailUri = cursor.getString(CP2_INFO_PHOTO_THUMBNAIL_URI_INDEX); 89 String photoUri = cursor.getString(CP2_INFO_PHOTO_URI_INDEX); 90 int photoId = cursor.getInt(CP2_INFO_PHOTO_ID_INDEX); 91 int type = cursor.getInt(CP2_INFO_TYPE_INDEX); 92 String label = cursor.getString(CP2_INFO_LABEL_INDEX) [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...] |
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/ |
PreIndexDataCollector.java | 48 import android.database.Cursor; 134 final Cursor cursor = resolver.query(uri, projection, null, null, null); local 137 if (cursor == null) { 143 final int count = cursor.getCount(); 145 while (cursor.moveToNext()) { 148 sir.xmlResId = cursor.getInt(COLUMN_INDEX_XML_RES_RESID); 149 sir.className = cursor.getString(COLUMN_INDEX_XML_RES_CLASS_NAME); 150 sir.iconResId = cursor.getInt(COLUMN_INDEX_XML_RES_ICON_RESID); 151 sir.intentAction = cursor.getString(COLUMN_INDEX_XML_RES_INTENT_ACTION) 216 final Cursor cursor = resolver.query(uri, projection, null, null, null); local 277 final Cursor cursor = resolver.query(uri, null, null, null, null); local 309 final Cursor cursor = resolver.query(uri, projection, null, null, null); local [all...] |
/external/libvncserver/libvncserver/ |
cursor.c | 2 * cursor.c - support for cursor shape updates. 32 * Send cursor shape either in X-style format or in client pixel format. 47 /* TODO: scale the cursor data to the correct size */ 62 /* If there is no cursor, send update with empty cursor data. */ 120 /* Prepare actual cursor data (depends on encoding used). */ 177 * Send cursor position (PointerPos pseudo-encoding). 252 /* Cursor creation. You "paint" a cursor and let these routines do the work * 257 rfbCursorPtr cursor = (rfbCursorPtr)calloc(1,sizeof(rfbCursor)); local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
UnicodeNameTransliterator.java | 49 int cursor = offsets.start; local 57 while (cursor < limit) { 58 int c = text.char32At(cursor); 65 text.replace(cursor, cursor+clen, str.toString()); 67 cursor += len; // advance cursor by 1 and adjust for new text 70 ++cursor; 76 offsets.start = cursor;
|
/external/icu/icu4c/source/i18n/ |
uni2name.cpp | 91 int32_t cursor = offsets.start; local 98 while (cursor < limit) { 99 UChar32 c = text.char32At(cursor); 105 text.handleReplaceBetween(cursor, cursor+clen, str); 107 cursor += len; // advance cursor and adjust for new text 110 cursor += clen; 116 offsets.start = cursor;
|
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
UnicodeNameTransliterator.java | 48 int cursor = offsets.start; local 56 while (cursor < limit) { 57 int c = text.char32At(cursor); 64 text.replace(cursor, cursor+clen, str.toString()); 66 cursor += len; // advance cursor by 1 and adjust for new text 69 ++cursor; 75 offsets.start = cursor;
|
/external/libunwind/src/hppa/ |
unwind_i.h | 42 extern int hppa_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, 44 extern dwarf_loc_t hppa_scratch_loc (struct cursor *c, unw_regnum_t reg);
|
/external/libunwind/src/ia64/ |
Ginit_local.c | 32 unw_init_local (unw_cursor_t *cursor, unw_context_t *uc) 40 set_as_arg (struct cursor *c, unw_context_t *uc) 51 get_initial_stack_pointers (struct cursor *c, unw_context_t *uc, 80 unw_init_local (unw_cursor_t *cursor, unw_context_t *uc) 82 struct cursor *c = (struct cursor *) cursor; 89 Debug (1, "(cursor=%p)\n", c); 105 ret = unw_step (cursor);
|
/external/libunwind/src/ppc64/ |
unwind_i.h | 46 extern int ppc64_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, 49 extern dwarf_loc_t ppc64_scratch_loc (struct cursor *c, unw_regnum_t reg);
|
/external/python/cpython2/Lib/bsddb/test/ |
test_cursor_pget_bug.py | 10 """Verify that cursor.pget works properly""" 38 cursor = self.secondary_db.cursor() 40 self.assertEqual(('eggs', 'salad', 'eggs'), cursor.pget(key='eggs', flags=db.DB_SET)) 41 self.assertEqual(('eggs', 'omelet', 'eggs'), cursor.pget(db.DB_NEXT_DUP)) 42 self.assertEqual(None, cursor.pget(db.DB_NEXT_DUP)) 44 self.assertEqual(('ham', 'spam', 'ham'), cursor.pget('ham', 'spam', flags=db.DB_SET)) 45 self.assertEqual(None, cursor.pget(db.DB_NEXT_DUP)) 47 cursor.close()
|
/prebuilts/gdb/darwin-x86/lib/python2.7/bsddb/test/ |
test_cursor_pget_bug.py | 10 """Verify that cursor.pget works properly""" 38 cursor = self.secondary_db.cursor() 40 self.assertEqual(('eggs', 'salad', 'eggs'), cursor.pget(key='eggs', flags=db.DB_SET)) 41 self.assertEqual(('eggs', 'omelet', 'eggs'), cursor.pget(db.DB_NEXT_DUP)) 42 self.assertEqual(None, cursor.pget(db.DB_NEXT_DUP)) 44 self.assertEqual(('ham', 'spam', 'ham'), cursor.pget('ham', 'spam', flags=db.DB_SET)) 45 self.assertEqual(None, cursor.pget(db.DB_NEXT_DUP)) 47 cursor.close()
|