Searched refs:cursor (Results 101 - 116 of 116) sorted by relevance

12345

/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseCursorTest.java111 // use cursor to access blob
150 // The cursor should ignore text before the last period when looking for a column. (This
266 public TestObserver(int total_, SQLiteCursor cursor) { argument
267 c = cursor;
330 // if cursor window size changed, adjust this value too
361 // if cursor window size changed, adjust this value too
466 // Our hacked requery() changes the query arguments in the cursor.
475 // Test that setting query args on a deactivated cursor also works.
494 Cursor cursor = mDatabase.rawQuery("select * from test", null);
495 cursor
[all...]
/frameworks/opt/telephony/src/java/android/provider/
H A DTelephony.java1298 Cursor cursor = SqliteWrapper.query(context, context.getContentResolver(),
1300 if (cursor != null) {
1302 if (cursor.moveToFirst()) {
1303 return cursor.getLong(0);
1308 cursor.close();
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCallerInfoAsyncQuery.java201 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
239 mCallerInfo = CallerInfo.getCallerInfo(mQueryContext, mQueryUri, cursor);
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DVCardVerifier.java350 final Cursor cursor = resolver.query(CONTACTS_TEST_CONTENT_URI, null, null, null, null);
351 if (!composer.init(cursor)) {
/frameworks/opt/mms/src/java/com/google/android/mms/pdu/
H A DPduPersister.java938 Cursor cursor = null;
940 cursor = context.getContentResolver().query(uri, projection, null,
942 if (null == cursor || 0 == cursor.getCount() || !cursor.moveToFirst()) {
946 int pathIndex = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);
947 path = cursor.getString(pathIndex);
952 if (null != cursor) {
953 cursor.close();
/frameworks/base/core/java/android/content/
H A DContentProviderNative.java113 Cursor cursor = query(url, projection, selection, selectionArgs, sortOrder,
115 if (cursor != null) {
117 cursor, observer, getProviderName());
H A DContentResolver.java135 public static final String CURSOR_ITEM_BASE_TYPE = "vnd.android.cursor.item";
151 * in the cursor is the same.
153 public static final String CURSOR_DIR_BASE_TYPE = "vnd.android.cursor.dir";
393 // Wrap the cursor object into CursorWrapperInner object
1852 CursorWrapperInner(Cursor cursor, IContentProvider icp) { argument
1853 super(cursor);
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DQuickSettings.java237 final Cursor cursor = context.getContentResolver().query(
240 if (cursor != null) {
242 if (cursor.moveToFirst()) {
243 name = cursor.getString(cursor.getColumnIndex(Phone.DISPLAY_NAME));
246 cursor.close();
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardComposer.java293 * Cursor cursor = mContentResolver.query(
409 public boolean init(Cursor cursor) { argument
414 mCursor = cursor;
/frameworks/base/services/java/com/android/server/location/
H A DGpsLocationProvider.java1559 Cursor cursor = mContext.getContentResolver().query(uri, new String[] {"apn"},
1562 if (null != cursor) {
1564 if (cursor.moveToFirst()) {
1565 apn = cursor.getString(0);
1568 cursor.close();
/frameworks/base/core/java/android/provider/
H A DSettings.java5808 * @param cursor A cursor pointing to the row whose title should be
5809 * returned. The cursor must contain at least the {@link #TITLE}
5814 public static CharSequence getTitle(Context context, Cursor cursor) { argument
5815 int titleColumn = cursor.getColumnIndex(TITLE);
5816 int intentColumn = cursor.getColumnIndex(INTENT);
5819 "The cursor must contain the TITLE and INTENT columns.");
5822 String title = cursor.getString(titleColumn);
5827 String intentUri = cursor.getString(intentColumn);
/frameworks/base/core/java/android/webkit/
H A DWebViewCore.java423 Cursor cursor = mContext.getContentResolver().query(
427 if (cursor != null) {
429 if (cursor.moveToNext()) {
430 filePath = cursor.getString(0);
433 cursor.close();
1103 // Used to tell the focus controller not to draw the blinking cursor,
1105 // cursor matches the webpage's focus.
3120 * Inserts text at the current cursor position. If the currently-focused
3121 * node does not have a cursor position then this function does nothing.
/frameworks/base/core/java/android/widget/
H A DGridLayout.java1384 int cursor = result.length - 1;
1394 result[cursor--] = arc;
1414 assert cursor == -1;
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java1306 int cursor = result.length - 1;
1316 result[cursor--] = arc;
1335 assert cursor == -1;
/frameworks/base/core/java/android/app/
H A DActivity.java731 ManagedCursor(Cursor cursor) { argument
732 mCursor = cursor;
1054 * where the cursor should be requeried (because you had deactivated it in
1689 * <p><strong>Warning:</strong> Do not call {@link Cursor#close()} on a cursor obtained using
1691 * you call {@link #stopManagingCursor} on a cursor from a managed query, the system <em>will
1692 * not</em> automatically close the cursor and, in that case, you must call
1729 * <p><strong>Warning:</strong> Do not call {@link Cursor#close()} on a cursor obtained using
1731 * you call {@link #stopManagingCursor} on a cursor from a managed query, the system <em>will
1732 * not</em> automatically close the cursor and, in that case, you must call
1770 * <p><strong>Warning:</strong> Do not call {@link Cursor#close()} on cursor obtaine
[all...]

Completed in 451 milliseconds

12345