| /packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
| AbstractContactsProvider.java | 30 import android.database.Cursor; 455 try (Cursor c = db.rawQuery(ACCOUNTS_QUERY, null)) { 490 try (Cursor c = db.rawQuery(RAW_CONTACTS_PER_ACCOUNT_PER_CONTACT, null)) { 507 try (Cursor c = db.rawQuery(DATA_PER_ACCOUNT_PER_RAW_CONTACT, null)) { 526 private static void dumpStringColumn(PrintWriter pw, Cursor c, String column) { 542 private static void dumpLongColumn(PrintWriter pw, Cursor c, String column) { 555 private static void dumpDoubleColumn(PrintWriter pw, Cursor c, String column) { 573 try (final Cursor c = db.rawQuery(query, null)) {
|
| DataRowHandlerForStructuredPostal.java | 20 import android.database.Cursor; 63 Cursor c, boolean callerIsSyncAdapter, boolean callerIsMetadataSyncAdapter) {
|
| /packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ |
| ContactsTableUtil.java | 23 import android.database.Cursor; 131 final Cursor cursor = db.rawQuery(sql, new String[]{rawContactId + ""}); local 133 if (cursor.moveToNext()) { 134 long contactId = cursor.getLong(0); 135 long numRawContacts = cursor.getLong(1); 143 MoreCloseables.closeQuietly(cursor);
|
| /packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
| DumpFileProvider.java | 21 import android.database.Cursor; 91 public Cursor query(Uri uri, String[] inProjection, String selection, String[] selectionArgs,
|
| /packages/providers/PartnerBookmarksProvider/tests/src/com/android/providers/partnerbookmarks/ |
| PartnerBookmarksProviderTest.java | 20 import android.database.Cursor; 40 Cursor cursor = null; local 42 cursor = providerClient.query(PartnerBookmarksContract.Bookmarks.CONTENT_URI, 44 assertNotNull("Failed to query for bookmarks", cursor); 46 while (cursor.moveToNext()) { 47 long id = cursor.getLong( 48 cursor.getColumnIndexOrThrow(PartnerBookmarksContract.Bookmarks.ID)); 49 long parent = cursor.getLong( 50 cursor.getColumnIndexOrThrow(PartnerBookmarksContract.Bookmarks.PARENT)) [all...] |
| /packages/providers/TvProvider/src/com/android/providers/tv/ |
| EpgDataCleanupService.java | 21 import android.database.Cursor; 117 Cursor cursor = getContentResolver().query( local 121 if (cursor == null) { 128 totalCount = cursor.getCount(); 133 if (!cursor.moveToPosition(overflowCount - 1)) { 137 maxStartTimeMillis = cursor.getLong(0); 139 cursor.close();
|
| /development/samples/training/ContactsList/src/com/example/android/contactslist/ui/ |
| ContactsListFragment.java | 26 import android.database.Cursor; 88 AdapterView.OnItemClickListener, LoaderManager.LoaderCallbacks<Cursor> { 269 // Gets the Cursor object currently bound to the ListView 270 final Cursor cursor = mAdapter.getCursor(); local 272 // Moves to the Cursor row corresponding to the ListView item that was clicked 273 cursor.moveToPosition(position); 277 cursor.getLong(ContactsQuery.ID), 278 cursor.getString(ContactsQuery.LOOKUP_KEY)); 452 public Loader<Cursor> onCreateLoader(int id, Bundle args) [all...] |
| /frameworks/base/core/tests/coretests/src/android/app/ |
| DownloadManagerBaseTest.java | 25 import android.database.Cursor; 150 Cursor cursor = dm.query(new Query().setFilterById(id)); local 152 if (cursor.moveToFirst()) { 153 int status = cursor.getInt(cursor.getColumnIndex( 160 cursor.close(); 451 protected void logDBColumnData(Cursor cursor, String column) { 452 int index = cursor.getColumnIndex(column) 485 Cursor cursor = mDownloadManager.query(new Query().setFilterById(requestId)); local 759 Cursor cursor = mDownloadManager.query(query); local 798 Cursor cursor = getCursor(dlRequest); local 888 Cursor cursor = mDownloadManager.query(new Query()); local 1001 Cursor cursor = mDownloadManager.query(query); local [all...] |
| /packages/apps/Music/src/com/android/music/ |
| QueryBrowserActivity.java | 32 import android.database.Cursor; 113 i.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/track"); 121 i.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/album"); 161 null, // cursor 204 // close its cursor, which we do by assigning a null cursor to it. Doing this 205 // instead of closing the cursor directly keeps the framework from accessing 206 // the closed cursor later. 238 // if the query results in a null cursor, onQueryComplete() will 257 public void init(Cursor c) [all...] |
| /packages/apps/Contacts/src/com/android/contacts/group/ |
| GroupEditorFragment.java | 34 import android.database.Cursor; 473 private void bindGroupMetaData(Cursor cursor) { 474 if (!cursor.moveToFirst()) { 481 mOriginalGroupName = cursor.getString(GroupMetaDataLoader.TITLE); 482 mAccountName = cursor.getString(GroupMetaDataLoader.ACCOUNT_NAME); 483 mAccountType = cursor.getString(GroupMetaDataLoader.ACCOUNT_TYPE); 484 mDataSet = cursor.getString(GroupMetaDataLoader.DATA_SET); 485 mGroupNameIsReadOnly = (cursor.getInt(GroupMetaDataLoader.IS_READ_ONLY) == 1); 729 private final LoaderManager.LoaderCallbacks<Cursor> mGroupMetaDataLoaderListener [all...] |
| /packages/providers/MediaProvider/src/com/android/providers/media/ |
| MediaDocumentsProvider.java | 23 import android.database.Cursor; 106 private void copyNotificationUri(MatrixCursor result, Cursor cursor) { 107 result.setNotificationUri(getContext().getContentResolver(), cursor.getNotificationUri()); 220 public Cursor queryRoots(String[] projection) throws FileNotFoundException { 229 public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException { 235 Cursor cursor = null; local 242 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, 245 copyNotificationUri(result, cursor); 327 Cursor cursor = null; local 416 Cursor cursor = null; local 491 Cursor cursor = null; local 770 Cursor cursor = null; local 795 Cursor cursor = null; local 858 Cursor cursor = null; local 882 Cursor cursor = null; local 927 Cursor cursor = null; local [all...] |
| /cts/tests/tests/media/src/android/media/cts/ |
| RingtoneManagerTest.java | 25 import android.database.Cursor; 113 Cursor c = mRingtoneManager.getCursor(); 141 Cursor c = mRingtoneManager.getCursor(); 153 Cursor c = mRingtoneManager.getCursor();
|
| /cts/tests/tests/provider/src/android/provider/cts/ |
| SearchRecentSuggestionsTest.java | 23 import android.database.Cursor; 59 Cursor c = mTestSRSProvider.query(mTestUri, null, null, null, null); 140 Cursor cursor = mTestSRSProvider.query(mTestUri, local 144 assertNotNull(cursor); 145 assertEquals(1, cursor.getCount()); 146 assertTrue(cursor.moveToFirst()); 147 assertEquals(insertDisplay2, cursor 149 assertEquals(insertQuery, cursor 151 assertEquals(1, cursor.getInt(SearchRecentSuggestions.QUERIES_PROJECTION_DATE_INDEX)) 201 Cursor cursor = null; local [all...] |
| /development/samples/NotePad/src/com/example/android/notepad/ |
| NotesList.java | 28 import android.database.Cursor; 58 * The columns needed by the cursor adapter 98 /* Performs a managed query. The Activity handles closing and requerying the cursor 103 Cursor cursor = managedQuery( local 112 * The following two arrays create a "map" between columns in the cursor and view IDs 119 // The names of the cursor columns to display in the view, initialized to the title column 122 // The view IDs that will display the cursor columns, initialized to the TextView in 131 cursor, // The cursor to get items fro 322 Cursor cursor = (Cursor) getListAdapter().getItem(info.position); local [all...] |
| /external/clang/include/clang/Serialization/ |
| GlobalModuleIndex.h | 121 llvm::BitstreamCursor Cursor);
|
| /external/clang/tools/clang-format/ |
| clang-format.py | 61 # Determine the cursor position. 62 cursor = int(vim.eval('line2byte(line("."))+col(".")')) - 2 63 if cursor < 0: 64 print 'Couldn\'t determine cursor position. Is your file empty?' 75 command = [binary, '-style', style, '-cursor', str(cursor)] 104 vim.command('goto %d' % (output['Cursor'] + 1))
|
| /external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/ |
| GwtGraphics.java | 23 import com.badlogic.gdx.graphics.Cursor; 24 import com.badlogic.gdx.graphics.Cursor.SystemCursor; 487 public Cursor newCursor (Pixmap pixmap, int xHotspot, int yHotspot) { 492 public void setCursor (Cursor cursor) { 493 ((GwtApplication)Gdx.app).graphics.canvas.getStyle().setProperty("cursor", ((GwtCursor)cursor).cssCursorProperty); 498 ((GwtApplication)Gdx.app).graphics.canvas.getStyle().setProperty("cursor", GwtCursor.getNameForSystemCursor(systemCursor));
|
| /external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/provider/ |
| ScriptProvider.java | 26 import android.database.Cursor; 44 public static final String SINGLE_MIME = "vnd.android.cursor.item/vnd.sl4a.script"; 45 public static final String MULTIPLE_MIME = "vnd.android.cursor.dir/vnd.sl4a.script"; 92 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, 105 private Cursor querySearchSuggestions(String query) { 110 MatrixCursor cursor = new MatrixCursor(columns); local 123 cursor.addRow(row); 126 return cursor; 129 private Cursor queryLiveFolder() { 133 MatrixCursor cursor = new MatrixCursor(columns) local [all...] |
| /frameworks/base/core/java/android/content/ |
| AsyncQueryHandler.java | 19 import android.database.Cursor; 77 Cursor cursor; local 79 cursor = resolver.query(args.uri, args.projection, 82 // Calling getCount() causes the cursor window to be filled, 84 if (cursor != null) { 85 cursor.getCount(); 89 cursor = null; 92 args.result = cursor; 284 * @param cursor The cursor holding the results from the query [all...] |
| SearchRecentSuggestionsProvider.java | 20 import android.database.Cursor; 258 return "vnd.android.cursor.dir/suggestion"; 260 return "vnd.android.cursor.item/suggestion"; 319 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, 340 Cursor c = db.query(sSuggestions, mSuggestionProjection, 381 Cursor c = db.query(base, useProjection, whereClause.toString(),
|
| /frameworks/base/core/java/android/database/ |
| Cursor.java | 29 * Cursor implementations are not required to be synchronized so code using a Cursor from multiple 30 * threads should perform its own synchronization when using the Cursor. 35 public interface Cursor extends Closeable { 56 * Returns the numbers of rows in the cursor. 58 * @return the number of rows in the cursor. 63 * Returns the current position of the cursor in the row set. 64 * The value is zero-based. When the row set is first returned the cursor 66 * last row is returned another call to next() will leave the cursor past 69 * @return the current cursor position [all...] |
| /frameworks/base/core/java/android/provider/ |
| Browser.java | 24 import android.database.Cursor; 239 * Return a cursor pointing to a list of all the bookmarks. The cursor will have a single 245 public static final Cursor getAllBookmarks(ContentResolver cr) throws 251 * Return a cursor pointing to a list of all visited site urls. The cursor will 257 public static final Cursor getAllVisitedUrls(ContentResolver cr) throws 266 private static final Cursor getVisitedLike(ContentResolver cr, String url) {
|
| /frameworks/base/core/java/com/android/internal/database/ |
| SortCursor.java | 20 import android.database.Cursor; 31 private Cursor mCursor; // updated in onMove 32 private Cursor[] mCursors; 55 public SortCursor(Cursor[] cursors, String sortcolumn) 109 /* Find the right cursor 110 * Because the client of this cursor (the listadapter/view) tends 111 * to jump around in the cursor somewhat, a simple cache strategy 123 Log.w(TAG, "onMove: cache results in a null cursor."); 251 throw new IllegalStateException("No cursor that can return names");
|
| /frameworks/base/packages/Shell/src/com/android/shell/ |
| BugreportStorageProvider.java | 19 import android.database.Cursor; 61 public Cursor queryRoots(String[] projection) throws FileNotFoundException { 73 public Cursor queryDocument(String documentId, String[] projection) 94 public Cursor queryChildDocuments(
|
| /frameworks/opt/chips/src/com/android/ex/chips/ |
| RecipientAlternatesAdapter.java | 21 import android.database.Cursor; 124 Cursor c = null; 179 Cursor directoryCursor = null; 198 Cursor directoryContactsCursor = null; 248 private static HashMap<String, RecipientEntry> processContactEntries(Cursor c, 342 private static Cursor doQuery(CharSequence constraint, int limit, Long directoryId, 393 private static Cursor getCursorForConstruction(Context context, long contactId, 436 final Cursor cursor; local 438 cursor = context.getContentResolver().query 589 Cursor cursor = getCursor(); local [all...] |