HomeSort by relevance Sort by last modified time
    Searched refs:Cursor (Results 976 - 1000 of 1452) sorted by null

<<31323334353637383940>>

  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
AnimatedAdapter.java 27 import android.database.Cursor;
251 public AnimatedAdapter(Context context, ConversationCursor cursor,
254 super(context, -1, cursor, UIProvider.CONVERSATION_PROJECTION, null, 0);
305 // Set a null cursor in the adapter
316 // by the underlying cursor.
332 * deletion has already been written through and the cursor doesn't have it anymore, we can't
333 * handle it here, and should instead rely on the cursor refresh to restore the item.
505 final ConversationCursor cursor = (ConversationCursor) getItem(position); local
506 final Conversation conv = cursor.getConversation();
508 // Notify the provider of this change in the position of Conversation cursor
735 final ConversationCursor cursor = getConversationCursor(); local
    [all...]
MaterialSearchSuggestionsList.java 22 import android.database.Cursor;
123 Cursor c = null;
  /packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
TestProvider.java 24 import android.database.Cursor;
142 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
168 MatrixCursor cursor = new MatrixCursorWithCachedColumns(projection, 1); local
175 cursor.addRow(rowValues);
177 return cursor;
  /packages/experimental/LoaderApp/src/com/android/loaderapp/model/
ContactLoader.java 15 import android.database.Cursor;
79 Cursor cursor = resolver.query(dataUri, StatusQuery.PROJECTION, StatusUpdates.PRESENCE local
82 if (cursor != null) {
87 while (cursor.moveToNext()) {
88 final DataStatus status = new DataStatus(cursor);
89 final long dataId = cursor.getLong(StatusQuery._ID);
94 cursor.close();
99 cursor = resolver.query(dataUri, new String[] {
102 if (cursor != null)
    [all...]
ContactsSource.java 26 import android.database.Cursor;
318 * Generic method of inflating a given {@link Cursor} into a user-readable
324 public CharSequence inflateUsing(Context context, Cursor cursor);
  /packages/providers/CalendarProvider/src/com/android/providers/calendar/
CalendarInstancesHelper.java 27 import android.database.Cursor;
160 Cursor entries) {
540 Cursor entries = getEntries(begin, end);
558 * @return Cursor for the entries; caller must close it.
560 private Cursor getEntries(long begin, long end) {
594 Cursor c = qb.query(db, EXPAND_COLUMNS, null /* selection */, selectionArgs,
918 Cursor cursor = db.query(Tables.INSTANCES, null, null, null, null, null, null); local
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
BaseDatabaseHelperUpgradeTest.java 18 import android.database.Cursor;
74 try (final Cursor cursor = db.rawQuery("PRAGMA table_info(" + tableName + ");", null)) {
75 final int cidIndex = cursor.getColumnIndex("cid");
76 final int nameIndex = cursor.getColumnIndex("name");
77 final int typeIndex = cursor.getColumnIndex("type");
78 final int notNullIndex = cursor.getColumnIndex("notnull");
79 final int dfltValueIndex = cursor.getColumnIndex("dflt_value");
80 final int pkIndex = cursor.getColumnIndex("pk");
81 cursor.moveToPosition(-1)
    [all...]
EnterpriseContactsCursorWrapperTest.java 19 import android.database.Cursor;
57 // First, convert and make sure it returns an empty cursor.
58 Cursor rewritten = new EnterpriseContactsCursorWrapper(c, projection,
  /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DownloadProviderFunctionalTest.java 25 import android.database.Cursor;
160 Cursor cursor = mResolver.query(downloadUri, columns, null, null, null); local
162 assertEquals(1, cursor.getCount());
163 cursor.moveToFirst();
164 return cursor.getString(0);
166 cursor.close();
  /packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
TrampolineActivity.java 30 import android.database.Cursor;
65 final Cursor cursor = dm.query(new Query().setFilterById(id)); local
67 if (cursor.moveToFirst()) {
68 status = cursor.getInt(cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_STATUS));
69 reason = cursor.getInt(cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_REASON));
70 size = cursor.getLong(
71 cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_TOTAL_SIZE_BYTES))
    [all...]
  /packages/providers/TelephonyProvider/src/com/android/providers/telephony/
SmsProvider.java 26 import android.database.Cursor;
110 public Cursor query(Uri url, String[] projectionIn, String selection,
264 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs,
310 * Return a Cursor containing just one message from the ICC.
312 private Cursor getSingleMessageFromIcc(String messageIndexString) {
336 MatrixCursor cursor = new MatrixCursor(ICC_COLUMNS, 1); local
337 cursor.addRow(convertIccToSms(message, 0));
338 return withIccNotificationUri(cursor);
342 * Return a Cursor listing all the messages stored on the ICC.
344 private Cursor getAllMessagesFromIcc()
357 MatrixCursor cursor = new MatrixCursor(ICC_COLUMNS, count); local
578 Cursor cursor = null; local
    [all...]
  /packages/services/Telephony/src/com/android/phone/
CallerInfoCache.java 23 import android.database.Cursor;
187 Cursor cursor = null; local
189 cursor = mContext.getContentResolver().query(Callable.CONTENT_URI,
191 if (cursor != null) {
195 new HashMap<String, CacheEntry>(cursor.getCount());
197 while (cursor.moveToNext()) {
198 final String number = cursor.getString(INDEX_NUMBER);
199 String normalizedNumber = cursor.getString(INDEX_NORMALIZED_NUMBER);
205 final String customRingtone = cursor.getString(INDEX_CUSTOM_RINGTONE)
    [all...]
GsmUmtsCallForwardOptions.java 9 import android.database.Cursor;
149 Cursor cursor = null; local
151 cursor = getContentResolver().query(data.getData(),
153 if ((cursor == null) || (!cursor.moveToFirst())) {
160 mButtonCFU.onPickActivityResult(cursor.getString(0));
163 mButtonCFB.onPickActivityResult(cursor.getString(0));
166 mButtonCFNRy.onPickActivityResult(cursor.getString(0));
169 mButtonCFNRc.onPickActivityResult(cursor.getString(0))
    [all...]
  /packages/services/Telephony/src/com/android/phone/vvm/omtp/fetch/
FetchVoicemailReceiver.java 24 import android.database.Cursor;
98 Cursor cursor = mContentResolver.query(mUri, PROJECTION, null, null, null); local
99 if (cursor == null) {
104 if (cursor.moveToFirst()) {
105 mUid = cursor.getString(SOURCE_DATA);
106 String accountId = cursor.getString(PHONE_ACCOUNT_ID);
120 cursor.getString(PHONE_ACCOUNT_COMPONENT_NAME)),
121 cursor.getString(PHONE_ACCOUNT_ID));
141 cursor.close()
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
PduPersister.java 24 import android.database.Cursor;
319 final Cursor c, final int columnIndex,
332 final Cursor c, final int columnIndex,
341 final Cursor c, final int columnIndex,
350 final Cursor c, final int columnIndex,
358 private Integer getIntegerFromPartColumn(final Cursor c, final int columnIndex) {
365 private byte[] getByteArrayFromPartColumn(final Cursor c, final int columnIndex) {
373 final Cursor c = SqliteWrapper.query(mContext, mContentResolver,
500 final Cursor c = SqliteWrapper.query(mContext, mContentResolver,
537 * Load a PDU from a given cursor
1030 Cursor cursor = null; local
    [all...]
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
DownloadProvider.java 40 import android.database.Cursor;
89 private static final String DOWNLOAD_LIST_TYPE = "vnd.android.cursor.dir/download";
91 private static final String DOWNLOAD_TYPE = "vnd.android.cursor.item/download";
474 final Cursor cursor = db.query(DB_TABLE, new String[] { local
477 while (cursor.moveToNext()) {
478 grantAllDownloadsPermission(cursor.getLong(0), cursor.getInt(1));
481 cursor.close();
1049 Cursor cursor = db.query(DB_TABLE, projection, where, whereArgs, null, null, null, null); local
1319 final Cursor cursor = queryCleared(uri, new String[] { local
    [all...]
  /external/valgrind/coregrind/m_debuginfo/
readdwarf3.c 121 move the cursor to the end regardless of what parse_{var,type}_DIE
124 whether or not they advanced the DIE cursor, and only if they
172 DiSlice sli; // to which this cursor applies
177 Cursor;
179 static inline Bool is_sane_Cursor ( const Cursor* c ) {
189 // Initialise a cursor from a DiSlice (ELF section, really) so as to
192 static void init_Cursor ( /*OUT*/Cursor* c,
207 static Bool is_at_end_Cursor ( const Cursor* c ) {
212 static inline ULong get_position_of_Cursor ( const Cursor* c ) {
216 static inline void set_position_of_Cursor ( Cursor* c, ULong pos )
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStore_FilesTest.java 26 import android.database.Cursor;
140 // Make sure the deleted file is not returned by the cursor.
141 Cursor cursor = mResolver.query(fileUri, null, null, null, null); local
143 assertFalse(cursor.moveToNext());
145 cursor.close();
154 cursor = mResolver.query(fileUri, new String[] { MediaStore.Files.FileColumns.PARENT },
156 assertEquals(1, cursor.getCount());
157 cursor.moveToFirst();
158 long parentid = cursor.getLong(0)
499 Cursor cursor = mResolver.query(uri, null, null, null, null); local
508 Cursor cursor = mResolver.query(fileUri, null, null, null, null); local
    [all...]
  /external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
EABProvider.java 37 import android.database.Cursor;
224 protected Cursor queryInternal(SQLiteDatabase db, Uri uri, String[] projection,
250 Cursor cursor = db.rawQuery(rawquery, null); local
251 if (cursor != null && cursor.moveToFirst()) {
254 String contactId = cursor.getString(cursor
257 } while (cursor.moveToNext());
259 if (cursor != null) cursor.close()
377 Cursor cursor = getContext().getContentResolver().query(EABContract.EABColumns.CONTENT_URI, local
424 Cursor cursor = getContext().getContentResolver().query(EABContract.EABColumns.CONTENT_URI, local
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/alerts/
GlobalDismissManager.java 25 import android.database.Cursor;
300 Cursor cursor = resolver.query(uri, EVENT_SYNC_PROJECTION, local
303 cursor.moveToPosition(-1);
304 int sync_id_idx = cursor.getColumnIndex(Events._SYNC_ID);
306 while (cursor.moveToNext()) {
307 String syncId = cursor.getString(sync_id_idx);
325 cursor.close();
424 Cursor eventCursor = resolver.query(Events.CONTENT_URI, EVENT_PROJECTION,
453 Cursor calendarCursor = resolver.query(Calendars.CONTENT_URI, CALENDARS_PROJECTION
491 Cursor cursor = resolver.query(uri, GlobalDismissManager.EVENT_SYNC_PROJECTION, local
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/widget/
CalendarAppWidgetService.java 28 import android.database.Cursor;
114 RemoteViewsService.RemoteViewsFactory, Loader.OnLoadCompleteListener<Cursor> {
414 Context context, Cursor cursor, String timeZone) {
416 model.buildFromCursor(cursor, timeZone);
476 public void onLoadComplete(Loader<Cursor> loader, Cursor cursor) {
477 if (cursor == null) {
483 if (cursor.isClosed())
    [all...]
  /packages/apps/Dialer/src/com/android/dialer/calllog/
ContactInfoHelper.java 19 import android.database.Cursor;
166 Cursor phoneLookupCursor = null;
193 private ContactInfo createPhoneLookupContactInfo(Cursor phoneLookupCursor, String lookupKey) {
219 Cursor cursor = null; local
221 cursor = context.getContentResolver().query(uri,
224 if (cursor != null && cursor.moveToFirst()) {
225 return cursor.getString(PhoneQuery.NAME_ALTERNATIVE);
230 if (cursor != null)
    [all...]
  /packages/apps/Dialer/src/com/android/dialer/list/
PhoneFavoritesTileAdapter.java 28 import android.database.Cursor;
181 * Sets the column indices for expected {@link Cursor}
209 * Gets the number of frequents from the passed in cursor.
213 * @param cursor The cursor to get number of frequents from.
215 protected void saveNumFrequentsFromCursor(Cursor cursor) {
216 mNumFrequents = cursor.getCount() - mNumStarred;
220 * Creates {@link ContactTileView}s for each item in {@link Cursor}.
224 public void setContactCursor(Cursor cursor)
    [all...]
  /packages/apps/Email/provider_src/com/android/email/service/
Pop3Service.java 25 import android.database.Cursor;
151 public LocalMessageInfo(Cursor c) {
242 Cursor localUidCursor = null;
278 Cursor updates = resolver.query(
393 Cursor c = resolver.query(Attachment.CONTENT_URI, Attachment.CONTENT_PROJECTION,
  /packages/apps/Messaging/src/com/android/messaging/datamodel/
DatabaseHelper.java 20 import android.database.Cursor;
    [all...]

Completed in 1172 milliseconds

<<31323334353637383940>>