Searched refs:cursor (Results 126 - 137 of 137) sorted by relevance

123456

/frameworks/base/core/java/android/content/
H A DContentProviderNative.java112 Cursor cursor = query(callingPkg, url, projection, selection, selectionArgs,
114 if (cursor != null) {
118 adaptor = new CursorToBulkCursorAdaptor(cursor, observer,
120 cursor = null;
129 // Close cursor if an exception was thrown while constructing the adaptor.
133 if (cursor != null) {
134 cursor.close();
H A DContentResolver.java187 public static final String CURSOR_ITEM_BASE_TYPE = "vnd.android.cursor.item";
203 * in the cursor is the same.
205 public static final String CURSOR_DIR_BASE_TYPE = "vnd.android.cursor.dir";
213 public static final String ANY_CURSOR_ITEM_TYPE = "vnd.android.cursor.item/*";
501 // Wrap the cursor object into CursorWrapperInner object.
2444 CursorWrapperInner(Cursor cursor, IContentProvider icp) { argument
2445 super(cursor);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDocumentsActivity.java301 final Cursor cursor = getContentResolver()
304 if (cursor.moveToFirst()) {
305 mExternal = cursor.getInt(cursor.getColumnIndex(ResumeColumns.EXTERNAL)) != 0;
306 final byte[] rawStack = cursor.getBlob(
307 cursor.getColumnIndex(ResumeColumns.STACK));
314 IoUtils.closeQuietly(cursor);
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DPduPersister.java944 Cursor cursor = null;
946 cursor = context.getContentResolver().query(uri, projection, null,
948 if (null == cursor || 0 == cursor.getCount() || !cursor.moveToFirst()) {
952 int pathIndex = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);
953 path = cursor.getString(pathIndex);
958 if (null != cursor) {
959 cursor.close();
/frameworks/opt/telephony/src/java/android/provider/
H A DTelephony.java297 * Return cursor for table query.
305 * Return cursor for table query.
1824 Cursor cursor = SqliteWrapper.query(context, context.getContentResolver(),
1826 if (cursor != null) {
1828 if (cursor.moveToFirst()) {
1829 return cursor.getLong(0);
1834 cursor.close();
/frameworks/base/core/tests/coretests/src/android/content/
H A DContentProviderOperationTest.java142 // Assert that values match from cursor
146 // Return cursor over specific set of values
161 // Assert that values match from cursor
165 // Return cursor over specific set of values
177 // Assert that values match from cursor
181 // Return cursor over specific set of values
193 // Assert that values match from cursor
197 // Return cursor over specific set of values
222 final MatrixCursor cursor = new MatrixCursor(keys);
224 cursor
[all...]
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardComposer.java258 * Cursor cursor = mContentResolver.query(
374 public boolean init(Cursor cursor) { argument
379 mCursor = cursor;
/frameworks/base/core/java/android/provider/
H A DSettings.java7178 * @param cursor A cursor pointing to the row whose title should be
7179 * returned. The cursor must contain at least the {@link #TITLE}
7184 public static CharSequence getTitle(Context context, Cursor cursor) { argument
7185 int titleColumn = cursor.getColumnIndex(TITLE);
7186 int intentColumn = cursor.getColumnIndex(INTENT);
7189 "The cursor must contain the TITLE and INTENT columns.");
7192 String title = cursor.getString(titleColumn);
7197 String intentUri = cursor.getString(intentColumn);
/frameworks/base/core/java/android/widget/
H A DGridLayout.java1445 int cursor = result.length - 1;
1455 result[cursor--] = arc;
1475 assert cursor == -1;
H A DEditor.java859 // Long press in empty space moves cursor and shows the Paste affordance if available.
920 // If a tap was used to give focus to that view, move cursor at tap position.
1135 // Cheesy way to get us to report the current cursor location.
1309 // Rely on the drawable entirely, do not draw the cursor line.
1547 // No word found under cursor or text selection not permitted.
1582 * @return <code>true</code> if the cursor/current selection overlaps a {@link SuggestionSpan}.
1594 * @return <code>true</code> if the cursor is inside an {@link SuggestionSpan} with
1614 // Move cursor
1618 // When the cursor moves, the word that was typed may need spell check
1740 * @return True when the TextView isFocused and has a valid zero-length selection (cursor)
[all...]
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java1322 int cursor = result.length - 1;
1332 result[cursor--] = arc;
1352 assert cursor == -1;
/frameworks/base/core/java/android/app/
H A DActivity.java763 ManagedCursor(Cursor cursor) { argument
764 mCursor = cursor;
1183 * where the cursor should be requeried (because you had deactivated it in
1922 * <p><strong>Warning:</strong> Do not call {@link Cursor#close()} on a cursor obtained using
1924 * you call {@link #stopManagingCursor} on a cursor from a managed query, the system <em>will
1925 * not</em> automatically close the cursor and, in that case, you must call
1962 * <p><strong>Warning:</strong> Do not call {@link Cursor#close()} on a cursor obtained using
1964 * you call {@link #stopManagingCursor} on a cursor from a managed query, the system <em>will
1965 * not</em> automatically close the cursor and, in that case, you must call
2003 * <p><strong>Warning:</strong> Do not call {@link Cursor#close()} on cursor obtaine
[all...]

Completed in 332 milliseconds

123456