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

123456

/frameworks/base/core/java/android/database/
H A DBulkCursorDescriptor.java44 public IBulkCursor cursor; field in class:BulkCursorDescriptor
57 out.writeStrongBinder(cursor.asBinder());
70 cursor = BulkCursorNative.asInterface(in.readStrongBinder());
H A DCursorJoiner.java59 /** The row currently pointed to by the left cursor is unique */
61 /** The row currently pointed to by the right cursor is unique */
70 * @param cursorLeft The left cursor to compare
71 * @param columnNamesLeft The column names to compare from the left cursor
72 * @param cursorRight The right cursor to compare
73 * @param columnNamesRight The column names to compare from the right cursor
104 * @param cursor the cursor that contains the columns
108 private int[] buildColumnIndiciesArray(Cursor cursor, String[] columnNames) { argument
111 columns[i] = cursor
204 populateValues(String[] values, Cursor cursor, int[] columnIndicies, int startingIndex) argument
[all...]
H A DCursorToBulkCursorAdaptor.java26 * If the wrapped cursor returns non-null from {@link CrossProcessCursor#getWindow}
43 * The cursor that is being adapted.
44 * This field is set to null when the cursor is closed.
49 * The cursor window that was filled by the cross process cursor in the
50 * case where the cursor does not support getWindow.
88 public CursorToBulkCursorAdaptor(Cursor cursor, IContentObserver observer, argument
90 if (cursor instanceof CrossProcessCursor) {
91 mCursor = (CrossProcessCursor)cursor;
93 mCursor = new CrossProcessCursorWrapper(cursor);
[all...]
/frameworks/base/core/java/android/provider/
H A DContactsContract.java171 * A key to a boolean in the "extras" bundle of the cursor.
180 * Key to retrieve the original deferred snippeting from the cursor on the client side.
395 "vnd.android.cursor.dir/contact_directories";
401 "vnd.android.cursor.item/contact_directory";
1118 * index as cursor extras. For most languages it is the first letter of the sort key. This
1119 * parameter does not affect the main content of the cursor.
1130 * Cursor cursor = getContentResolver().query(uri,
1133 * Bundle bundle = cursor.getExtras();
1148 * same order as the data in the cursor.
1458 * Cursor cursor
2931 newEntityIterator(Cursor cursor) argument
2957 EntityIteratorImpl(Cursor cursor) argument
2962 getEntityAndIncrementCursor(Cursor cursor) argument
7550 newEntityIterator(Cursor cursor) argument
7555 EntityIteratorImpl(Cursor cursor) argument
7560 getEntityAndIncrementCursor(Cursor cursor) argument
[all...]
H A DBrowser.java230 * Return a cursor pointing to a list of all the bookmarks. The cursor will have a single
245 * Return a cursor pointing to a list of all visited site urls. The cursor will
399 Cursor cursor = null;
403 cursor = cr.query(History.CONTENT_URI,
407 if (cursor.moveToFirst() && cursor.getCount() >= MAX_HISTORY_COUNT) {
410 cr.delete(ContentUris.withAppendedId(History.CONTENT_URI, cursor.getLong(0)),
412 if (!cursor
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DInboundSmsTracker.java123 * @param cursor a Cursor pointing to the row to construct this SmsTracker for
125 InboundSmsTracker(Cursor cursor, boolean isCurrentFormat3gpp2) { argument
126 mPdu = HexDump.hexStringToByteArray(cursor.getString(InboundSmsHandler.PDU_COLUMN));
128 if (cursor.isNull(InboundSmsHandler.DESTINATION_PORT_COLUMN)) {
133 int destPort = cursor.getInt(InboundSmsHandler.DESTINATION_PORT_COLUMN);
145 mTimestamp = cursor.getLong(InboundSmsHandler.DATE_COLUMN);
147 if (cursor.isNull(InboundSmsHandler.COUNT_COLUMN)) {
149 long rowId = cursor.getLong(InboundSmsHandler.ID_COLUMN);
158 mAddress = cursor.getString(InboundSmsHandler.ADDRESS_COLUMN);
159 mReferenceNumber = cursor
[all...]
H A DSmsBroadcastUndelivered.java102 Cursor cursor = null;
104 cursor = mResolver.query(sRawUri, PDU_PENDING_MESSAGE_PROJECTION, null, null, null);
105 if (cursor == null) {
106 Rlog.e(TAG, "error getting pending message cursor");
111 while (cursor.moveToNext()) {
114 tracker = new InboundSmsTracker(cursor, isCurrentFormat3gpp2);
162 if (cursor != null) {
163 cursor.close();
H A DSubscriptionController.java244 * @param cursor
247 private SubscriptionInfo getSubInfoRecord(Cursor cursor) { argument
248 int id = cursor.getInt(cursor.getColumnIndexOrThrow(
250 String iccId = cursor.getString(cursor.getColumnIndexOrThrow(
252 int simSlotIndex = cursor.getInt(cursor.getColumnIndexOrThrow(
254 String displayName = cursor.getString(cursor
[all...]
H A DWapPushOverSms.java413 Cursor cursor = null;
415 cursor = SqliteWrapper.query(
426 if (cursor != null && cursor.moveToFirst()) {
427 return cursor.getLong(0);
432 if (cursor != null) {
433 cursor.close();
447 Cursor cursor = null;
449 cursor = SqliteWrapper.query(
460 if (cursor !
[all...]
/frameworks/base/media/java/android/media/
H A DRingtoneManager.java40 * results into a single cursor. It also provides a {@link Ringtone} for each
192 * The column index (in the cursor returned by {@link #getCursor()} for the
198 * The column index (in the cursor returned by {@link #getCursor()} for the
204 * The column index (in the cursor returned by {@link #getCursor()} for the
227 * constructed instance manages cursor(s).
229 * @param activity The activity used to get a managed cursor.
238 * constructor will not manage the cursor(s), so the client should handle
241 * @param context The context to used to get a cursor.
346 * cursor will be the same cursor returne
403 getUriFromCursor(Cursor cursor) argument
466 getValidRingtoneUriFromCursorAndClose(Context context, Cursor cursor) argument
[all...]
H A DRingtone.java144 Cursor cursor = null;
164 cursor = res.query(uri, MEDIA_COLUMNS, null, null, null);
167 // missing cursor is handled below
171 if (cursor != null && cursor.getCount() == 1) {
172 cursor.moveToFirst();
173 return cursor.getString(2);
178 if (cursor != null) {
179 cursor.close();
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DRecurrenceSet.java65 * CalendarProvider. The cursor must contain the RRULE, RDATE, EXRULE,
68 * @param cursor The cursor containing the RRULE, RDATE, EXRULE, and EXDATE
71 public RecurrenceSet(Cursor cursor) argument
73 int rruleColumn = cursor.getColumnIndex(CalendarContract.Events.RRULE);
74 int rdateColumn = cursor.getColumnIndex(CalendarContract.Events.RDATE);
75 int exruleColumn = cursor.getColumnIndex(CalendarContract.Events.EXRULE);
76 int exdateColumn = cursor.getColumnIndex(CalendarContract.Events.EXDATE);
77 String rruleStr = cursor.getString(rruleColumn);
78 String rdateStr = cursor
256 populateComponent(Cursor cursor, ICalendar.Component component) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DCursorAdapter.java86 * If set the adapter will call requery() on the cursor whenever a content change
98 * If set the adapter will register a content observer on the cursor and will call
115 * @param c The cursor from which to get the data.
129 * @param c The cursor from which to get the data.
132 * cursor whenever it changes so the most recent
142 * @param c The cursor from which to get the data.
188 * Returns the cursor.
189 * @return the cursor.
243 throw new IllegalStateException("this should only be called when the cursor is valid");
246 throw new IllegalStateException("couldn't move cursor t
283 newView(Context context, Cursor cursor, ViewGroup parent) argument
293 newDropDownView(Context context, Cursor cursor, ViewGroup parent) argument
304 bindView(View view, Context context, Cursor cursor) argument
312 changeCursor(Cursor cursor) argument
364 convertToString(Cursor cursor) argument
[all...]
H A DQuickContactBadge.java335 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
348 if (cursor != null && cursor.moveToFirst()) {
349 long contactId = cursor.getLong(PHONE_ID_COLUMN_INDEX);
350 String lookupKey = cursor.getString(PHONE_LOOKUP_STRING_COLUMN_INDEX);
363 if (cursor != null && cursor.moveToFirst()) {
364 long contactId = cursor.getLong(EMAIL_ID_COLUMN_INDEX);
365 String lookupKey = cursor.getString(EMAIL_LOOKUP_STRING_COLUMN_INDEX);
372 if (cursor !
[all...]
H A DResourceCursorAdapter.java68 * @param c The cursor from which to get the data.
70 * cursor whenever it changes so the most recent
86 * @param c The cursor from which to get the data.
103 public View newView(Context context, Cursor cursor, ViewGroup parent) { argument
108 public View newDropDownView(Context context, Cursor cursor, ViewGroup parent) { argument
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DRecentsProvider.java310 Cursor cursor = db.query(TABLE_RECENT, null, null, null, null, null, null);
312 while (cursor.moveToNext()) {
314 final byte[] rawStack = cursor.getBlob(
315 cursor.getColumnIndex(RecentColumns.STACK));
319 final String key = getCursorString(cursor, RecentColumns.KEY);
326 IoUtils.closeQuietly(cursor);
329 cursor = db.query(TABLE_STATE, new String[] {
332 while (cursor.moveToNext()) {
333 final String authority = getCursorString(cursor, StateColumns.AUTHORITY);
341 IoUtils.closeQuietly(cursor);
[all...]
H A DSortingCursorWrapper.java33 * Cursor wrapper that presents a sorted view of the underlying cursor. Handles
43 public SortingCursorWrapper(Cursor cursor, int sortOrder) { argument
44 mCursor = cursor;
46 final int count = cursor.getCount();
62 cursor.moveToPosition(-1);
64 cursor.moveToNext();
69 final String mimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE);
71 cursor, Document.COLUMN_DISPLAY_NAME);
79 mValueLong[i] = getCursorLong(cursor, Document.COLUMN_LAST_MODIFIED);
82 mValueLong[i] = getCursorLong(cursor, Documen
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
H A DRootInfo.java142 public static RootInfo fromRootsCursor(String authority, Cursor cursor) { argument
145 root.rootId = getCursorString(cursor, Root.COLUMN_ROOT_ID);
146 root.flags = getCursorInt(cursor, Root.COLUMN_FLAGS);
147 root.icon = getCursorInt(cursor, Root.COLUMN_ICON);
148 root.title = getCursorString(cursor, Root.COLUMN_TITLE);
149 root.summary = getCursorString(cursor, Root.COLUMN_SUMMARY);
150 root.documentId = getCursorString(cursor, Root.COLUMN_DOCUMENT_ID);
151 root.availableBytes = getCursorLong(cursor, Root.COLUMN_AVAILABLE_BYTES);
152 root.mimeTypes = getCursorString(cursor, Root.COLUMN_MIME_TYPES);
/frameworks/ex/common/tests/src/com/android/common/widget/
H A DGroupingListAdapterTests.java54 protected void addGroups(Cursor cursor) {
55 int count = cursor.getCount();
57 cursor.moveToFirst();
58 String currentValue = cursor.getString(GROUPING_COLUMN_INDEX);
60 cursor.moveToNext();
61 String value = cursor.getString(GROUPING_COLUMN_INDEX);
79 protected void bindChildView(View view, Context context, Cursor cursor) {
83 protected void bindGroupView(View view, Context context, Cursor cursor, int groupSize,
88 protected void bindStandAloneView(View view, Context context, Cursor cursor) {
/frameworks/support/v4/java/android/support/v4/widget/
H A DCursorAdapter.java88 * If set the adapter will call requery() on the cursor whenever a content change
100 * If set the adapter will register a content observer on the cursor and will call
117 * @param c The cursor from which to get the data.
131 * @param c The cursor from which to get the data.
134 * cursor whenever it changes so the most recent
144 * @param c The cursor from which to get the data.
190 * Returns the cursor.
191 * @return the cursor.
245 throw new IllegalStateException("this should only be called when the cursor is valid");
248 throw new IllegalStateException("couldn't move cursor t
285 newView(Context context, Cursor cursor, ViewGroup parent) argument
295 newDropDownView(Context context, Cursor cursor, ViewGroup parent) argument
306 bindView(View view, Context context, Cursor cursor) argument
314 changeCursor(Cursor cursor) argument
366 convertToString(Cursor cursor) argument
[all...]
H A DResourceCursorAdapter.java70 * @param c The cursor from which to get the data.
72 * cursor whenever it changes so the most recent
88 * @param c The cursor from which to get the data.
105 public View newView(Context context, Cursor cursor, ViewGroup parent) { argument
110 public View newDropDownView(Context context, Cursor cursor, ViewGroup parent) { argument
/frameworks/ex/common/java/com/android/common/widget/
H A DGroupingListAdapter.java122 * Finds all groups of adjacent items in the cursor and calls {@link #addGroup} for
125 protected abstract void addGroups(Cursor cursor); argument
128 protected abstract void bindStandAloneView(View view, Context context, Cursor cursor); argument
131 protected abstract void bindGroupView(View view, Context context, Cursor cursor, int groupSize, argument
135 protected abstract void bindChildView(View view, Context context, Cursor cursor); argument
138 * Cache should be reset whenever the cursor changes or groups are expanded or collapsed.
152 public void changeCursor(Cursor cursor) { argument
153 if (cursor == mCursor) {
162 mCursor = cursor;
166 if (cursor !
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewCallbacks.java62 * Called when the cursor that contains the photo list data
63 * is updated. Note that there is no guarantee that the cursor
65 * @param cursor the cursor containing the photo list data
67 public void onCursorChanged(Cursor cursor); argument
93 public void onCursorChanged(PhotoViewFragment fragment, Cursor cursor); argument
/frameworks/base/core/java/android/app/
H A DDownloadManager.java329 /* add the following 'computed' columns to the cursor.
1028 Cursor cursor = null;
1030 cursor = query(query);
1031 if (cursor == null) {
1034 if (cursor.moveToFirst()) {
1035 int status = cursor.getInt(cursor.getColumnIndexOrThrow(COLUMN_STATUS));
1037 int indx = cursor.getColumnIndexOrThrow(
1039 int destination = cursor.getInt(indx);
1051 String path = cursor
1291 CursorTranslator(Cursor cursor, Uri baseUri) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDcTracker.java1163 private ApnSetting makeApnSetting(Cursor cursor) { argument
1165 cursor.getString(cursor.getColumnIndexOrThrow(Telephony.Carriers.TYPE)));
1167 cursor.getInt(cursor.getColumnIndexOrThrow(Telephony.Carriers._ID)),
1168 cursor.getString(cursor.getColumnIndexOrThrow(Telephony.Carriers.NUMERIC)),
1169 cursor.getString(cursor.getColumnIndexOrThrow(Telephony.Carriers.NAME)),
1170 cursor
1205 createApnList(Cursor cursor) argument
[all...]

Completed in 678 milliseconds

123456