HomeSort by relevance Sort by last modified time
    Searched refs:Cursor (Results 476 - 500 of 1131) sorted by null

<<11121314151617181920>>

  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
FilterStackSource.java 20 import android.database.Cursor;
109 Cursor c = null;
133 Cursor c = null;
170 Cursor c = null;
  /packages/apps/Gallery2/src/com/android/gallery3d/gadget/
LocalPhotoSource.java 22 import android.database.Cursor;
124 Cursor cursor = resolver.query( local
126 if (cursor == null) return 0;
128 Utils.assertTrue(cursor.moveToNext());
129 return cursor.getInt(0);
131 cursor.close();
144 Cursor cursor = mContext.getContentResolver().query( local
148 if (cursor == null) return false
170 Cursor cursor = mContext.getContentResolver().query( local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/util/
SaveVideoFileUtils.java 21 import android.database.Cursor;
59 Cursor cursor = null; local
61 cursor = contentResolver.query(uri, projection, null, null, null);
62 if ((cursor != null) && cursor.moveToNext()) {
63 callback.onCursorResult(cursor);
68 if (cursor != null) {
69 cursor.close();
80 public void onCursorResult(Cursor cursor)
    [all...]
  /packages/apps/Mms/src/com/android/mms/data/
RecipientIdCache.java 15 import android.database.Cursor;
73 Cursor c = SqliteWrapper.query(context, context.getContentResolver(),
76 Log.w(TAG, "null Cursor in fill()");
217 Cursor c = SqliteWrapper.query(context, context.getContentResolver(),
220 Log.w(TAG, "null Cursor in content://mms-sms/canonical-addresses");
243 Cursor c = SqliteWrapper.query(context, context.getContentResolver(),
247 LogTag.warn(TAG, "null Cursor looking up recipient: " + recipientId);
  /packages/apps/Mms/tests/src/com/android/mms/ui/
MultiPartSmsTests.java 26 import android.database.Cursor;
  /packages/apps/Music/src/com/android/music/
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");
MusicPicker.java 25 import android.database.Cursor;
89 /** These are the columns in the music cursor that we are interested in. */
122 /** The current cursor on the music that is being displayed. */
123 Cursor mCursor;
130 * when done loading the initial cursor. */
133 * loading the initial cursor. */
157 * our cursor data to our list item structure, and takes care of other
216 public View newView(Context context, Cursor cursor, ViewGroup parent) {
217 View v = super.newView(context, cursor, parent)
350 Cursor cursor = getCursor(); local
    [all...]
  /packages/apps/Music/tests/src/com/android/music/functional/
TestSongs.java 32 import android.database.Cursor;
120 Cursor mCursor;
153 Cursor mCursor;
179 Cursor mCursor;
  /packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
SyncCalendarTest.java 19 import android.database.Cursor;
74 Cursor cursor; local
75 cursor = mResolver.query(mEventsUri, null, null, null, null);
77 int countBeforeNewEvent = cursor.getCount();
78 cursor.moveToNext();
81 String newTitle = cursor.getString(cursor.getColumnIndex("title")) + time.toString();
82 long dtStart = cursor.getLong(cursor.getColumnIndex("dtstart"))
102 Cursor cursor; local
135 Cursor cursor; local
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
AsyncQueryHandlerTest.java 23 import android.database.Cursor;
129 Cursor cursor = null; local
131 cursor = mResolver.query(DummyProvider.CONTENT_URI, PROJECTIONS, null, null, ORDER_BY);
132 assertEquals(ORIGINAL_ROW_COUNT + 1, cursor.getCount());
133 cursor.moveToLast();
134 assertEquals(NAME3, cursor.getString(NAME_COLUMN_INDEX));
136 if (cursor != null) {
137 cursor.close();
153 Cursor cursor = (Cursor) mAsyncHandler.getResult() local
204 Cursor cursor = null; local
244 Cursor cursor = null; local
    [all...]
  /development/samples/NotePad/tests/src/com/example/android/notepad/
NotePadProviderTest.java 22 import android.database.Cursor;
340 // A Cursor to contain the retrieved note.
341 Cursor noteIdCursor;
359 // Gets a Cursor for the note.
369 // a) Checks that the cursor is not null
445 // If there are no records in the table, the returned cursor from a query should be empty.
446 Cursor cursor = mMockResolver.query( local
454 // Asserts that the returned cursor contains no records
455 assertEquals(0, cursor.getCount())
557 Cursor cursor = mMockResolver.query( local
642 Cursor cursor = mMockResolver.query( local
731 Cursor cursor = mMockResolver.query( local
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowSQLiteDatabase.java 4 import android.database.Cursor;
31 * Shadow for {@code SQLiteDatabase} that simulates the movement of a {@code Cursor} through database tables.
114 public Cursor query(boolean distinct, String table, String[] columns,
134 SQLiteCursor cursor = new SQLiteCursor(null, null, null, null); local
135 shadowOf(cursor).setResultSet(resultSet,sql);
136 return cursor;
140 public Cursor query(String table, String[] columns, String selection,
147 public Cursor query(String table, String[] columns, String selection,
227 public Cursor rawQuery (String sql, String[] selectionArgs) {
230 public Cursor newCursor(SQLiteDatabase db
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
AggregationSuggestionEngine.java 22 import android.database.Cursor;
116 private Cursor mDataCursor;
126 AggregationSuggestionEngine.this.deliverNotification((Cursor) msg.obj);
302 Cursor cursor = contentResolver.query(uri, new String[]{Contacts._ID}, null, null, null); local
309 boolean changed = updateSuggestedContactIds(cursor);
325 Cursor dataCursor = contentResolver.query(Data.CONTENT_URI,
329 cursor.close();
333 private boolean updateSuggestedContactIds(Cursor cursor) {
    [all...]
  /development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/
VoicemailProviderHelpers.java 27 import android.database.Cursor;
161 Cursor cursor = null; local
163 cursor = mContentResolver.query(mBaseUri, FULL_PROJECTION,
166 if (cursor.getCount() != 1) {
168 cursor.getCount());
171 cursor.moveToFirst();
172 return getVoicemailFromCursor(cursor);
174 CloseUtils.closeQuietly(cursor);
180 Cursor cursor = null local
233 Cursor cursor = null; local
    [all...]
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
AttachmentUtilities.java 24 import android.database.Cursor;
263 Cursor c = resolver.query(attachmentUri,
290 Cursor c = context.getContentResolver().query(uri, Attachment.ID_PROJECTION,
316 final Cursor c = context.getContentResolver().query(uri, ATTACHMENT_CACHED_FILE_PROJECTION,
343 Cursor c = context.getContentResolver().query(Message.CONTENT_URI,
  /packages/apps/Email/src/com/android/email/provider/
AttachmentProvider.java 24 import android.database.Cursor;
113 Cursor c = getContext().getContentResolver().query(uri, MIME_TYPE_PROJECTION, null,
181 Cursor c = query(attachmentUri,
240 * Returns a cursor based on the data in the attachments table, or null if the attachment
247 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
268 Cursor c = getContext().getContentResolver().query(uri, PROJECTION_QUERY,
  /packages/apps/Mms/src/com/android/mms/
SuggestionsProvider.java 28 import android.database.Cursor;
69 public Cursor query(Uri uri, String[] projection, String selection,
74 Cursor c = getContext().getContentResolver().query(
90 Cursor mDatabaseCursor;
96 public SuggestionsCursor(Cursor cursor, String query) {
97 mDatabaseCursor = cursor;
100 mColumnCount = cursor.getColumnCount();
129 * Compute rows for rows in the cursor. The cursor can contain duplicates whic
    [all...]
  /packages/apps/Settings/src/com/android/settings/
UserDictionarySettings.java 26 import android.database.Cursor;
70 private Cursor mCursor;
124 private Cursor createCursor(final String locale) {
127 // - The empty string. This means we want a cursor returning words valid for all locales.
128 // - null. This means we want a cursor for the current locale, whatever this is.
242 public boolean setViewValue(View v, Cursor c, int columnIndex) {
259 public MyAdapter(Context context, int layout, Cursor c, String[] from, int[] to,
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
UserDictionarySettings.java 25 import android.database.Cursor;
104 private Cursor mCursor;
159 private Cursor createCursor(final String locale) {
162 // - The empty string. This means we want a cursor returning words valid for all locales.
163 // - null. This means we want a cursor for the current locale, whatever this is.
287 public boolean setViewValue(View v, Cursor c, int columnIndex) {
309 public MyAdapter(Context context, int layout, Cursor c, String[] from, int[] to,
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
DataRowHandlerForGroupMembership.java 20 import android.database.Cursor;
89 Cursor c, boolean callerIsSyncAdapter) {
124 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) {
194 Cursor c = db.query(RawContactsQuery.TABLE, RawContactsQuery.COLUMNS,
231 Cursor c = db.query(Tables.GROUPS, Projections.ID,
GlobalSearchSupport.java 21 import android.database.Cursor;
182 public Cursor handleSearchSuggestionsQuery(SQLiteDatabase db, Uri uri, String[] projection,
184 final MatrixCursor cursor = new MatrixCursor( local
193 cursor, db, projection, selection, searchClause, limit, cancellationSignal);
196 return cursor;
200 * Returns a search suggestions cursor for the contact bearing the provided lookup key. If the
202 * and used to re-identify the contact. If the contact still cannot be found, an empty cursor
205 * <p>Note that if {@code lookupKey} is not a valid lookup key, an empty cursor is returned
209 public Cursor handleSearchShortcutRefresh(SQLiteDatabase db, String[] projection,
217 MatrixCursor cursor = new MatrixCursor local
    [all...]
  /frameworks/opt/photoviewer/activity/src/com/android/ex/photo/
PhotoViewActivity.java 27 import android.database.Cursor;
72 LoaderManager.LoaderCallbacks<Cursor>, OnPageChangeListener, OnInterceptTouchListener,
169 android.support.v4.app.FragmentManager fm, Cursor c, float maxScale) {
380 final Cursor data = mAdapter.getCursor();
396 public Loader<Cursor> onCreateLoader(int id, Bundle args) {
416 public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
485 public void onLoaderReset(android.support.v4.content.Loader<Cursor> loader) {
486 // If the loader is reset, remove the reference in the adapter to this cursor
495 private synchronized void notifyCursorListeners(Cursor data)
644 final Cursor cursor = getCursorAtProperPosition(); local
665 final Cursor cursor = getCursorAtProperPosition(); local
721 final Cursor cursor = mAdapter.getCursor(); local
    [all...]
  /frameworks/opt/photoviewer/appcompat/src/com/android/ex/photo/
PhotoViewActivity.java 25 import android.database.Cursor;
71 LoaderManager.LoaderCallbacks<Cursor>, OnPageChangeListener, OnInterceptTouchListener,
168 android.support.v4.app.FragmentManager fm, Cursor c, float maxScale) {
379 final Cursor data = mAdapter.getCursor();
395 public Loader<Cursor> onCreateLoader(int id, Bundle args) {
415 public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
484 public void onLoaderReset(android.support.v4.content.Loader<Cursor> loader) {
485 // If the loader is reset, remove the reference in the adapter to this cursor
494 private synchronized void notifyCursorListeners(Cursor data)
643 final Cursor cursor = getCursorAtProperPosition(); local
664 final Cursor cursor = getCursorAtProperPosition(); local
720 final Cursor cursor = mAdapter.getCursor(); local
    [all...]
  /external/clang/tools/libclang/
CXCursor.cpp 73 // Check if cursor points to a selector id.
491 // Check if cursor points to a selector id.
793 const Decl *cxcursor::getCursorDecl(CXCursor Cursor) {
794 return static_cast<const Decl *>(Cursor.data[0]);
797 const Expr *cxcursor::getCursorExpr(CXCursor Cursor) {
798 return dyn_cast_or_null<Expr>(getCursorStmt(Cursor));
801 const Stmt *cxcursor::getCursorStmt(CXCursor Cursor) {
802 if (Cursor.kind == CXCursor_ObjCSuperClassRef ||
803 Cursor.kind == CXCursor_ObjCProtocolRef ||
804 Cursor.kind == CXCursor_ObjCClassRef
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
BluetoothPbapVcardManager.java 38 import android.database.Cursor;
165 Cursor contactCursor = null;
183 Cursor callCursor = null;
208 Cursor callCursor = null;
252 Cursor contactCursor = null;
284 Cursor contactCursor = null;
332 Cursor callsCursor = null;
387 Cursor contactCursor = null;
431 Cursor contactCursor = null;

Completed in 1607 milliseconds

<<11121314151617181920>>