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

<<21222324252627282930>>

  /development/samples/training/ContactsList/src/com/example/android/contactslist/ui/
ContactDetailFragment.java 25 import android.database.Cursor;
74 LoaderManager.LoaderCallbacks<Cursor> {
318 public Loader<Cursor> onCreateLoader(int id, Bundle args) {
340 public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
351 // Moves to the first row in the Cursor
386 // Loops through all the rows in the Cursor
406 public void onLoaderReset(Loader<Cursor> loader) {
407 // Nothing to do here. The Cursor does not need to be released as it was never directly
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowActivity.java 9 import android.database.Cursor;
59 private ArrayList<Cursor> managedCusors = new ArrayList<Cursor>();
507 public void startManagingCursor(Cursor c) {
512 public void stopManagingCursor(Cursor c) {
516 public List<Cursor> getManagedCursors() {
  /frameworks/base/media/java/android/mtp/
MtpPropertyGroup.java 20 import android.database.Cursor;
199 Cursor c = null;
220 Cursor c = null;
240 Cursor c = null;
262 Cursor c = null;
332 Cursor c = null;
  /packages/apps/Dialer/src/com/android/dialer/list/
SpeedDialFragment.java 29 import android.database.Cursor;
96 private class ContactTileLoaderListener implements LoaderManager.LoaderCallbacks<Cursor> {
104 public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
111 public void onLoaderReset(Loader<Cursor> loader) {
176 private final LoaderManager.LoaderCallbacks<Cursor> mContactTileLoaderListener =
  /packages/apps/Email/src/com/android/email/activity/setup/
MailboxSettings.java 28 import android.database.Cursor;
194 implements LoaderManager.LoaderCallbacks<Cursor> {
197 public Loader<Cursor> onCreateLoader(int i, Bundle bundle) {
203 public void onLoadFinished(Loader<Cursor> cursorLoader, Cursor cursor) {
204 if (cursor == null) {
209 while(cursor.moveToNext()) {
210 final Folder folder = new Folder(cursor);
221 public void onLoaderReset(Loader<Cursor> cursorLoader)
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/datamodel/
BugleDatabaseOperations.java 21 import android.database.Cursor;
260 Cursor cursor = null; local
263 cursor = dbWrapper.rawQuery("SELECT " + ConversationColumns._ID
268 if (cursor.moveToFirst()) {
269 Assert.isTrue(cursor.getCount() == 1);
270 conversationId = cursor.getString(0);
273 if (cursor != null) {
274 cursor.close();
294 Cursor cursor = null local
329 Cursor cursor = null; local
539 final Cursor cursor = dbWrapper.query( local
697 Cursor cursor = null; local
722 Cursor cursor = null; local
876 Cursor cursor = null; local
925 Cursor cursor = null; local
949 Cursor cursor = null; local
986 Cursor cursor = null; local
1023 Cursor cursor = null; local
1045 Cursor cursor = null; local
1068 Cursor cursor = null; local
1096 Cursor cursor = null; local
1284 Cursor cursor = null; local
1328 Cursor cursor = null; local
1373 Cursor cursor = null; local
1479 Cursor cursor = null; local
1517 Cursor cursor = null; local
1600 Cursor cursor = null; local
1672 Cursor cursor = null; local
1792 Cursor cursor = null; local
1822 final Cursor cursor = db.query(DatabaseHelper.CONVERSATION_PARTICIPANTS_TABLE, local
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
PeopleAndOptionsFragment.java 25 import android.database.Cursor;
117 public void onOptionsCursorUpdated(final PeopleAndOptionsData data, final Cursor cursor) {
118 Assert.isTrue(cursor == null || cursor.getCount() == 1);
120 mOptionsListAdapter.swapCursor(cursor);
182 * A simple adapter that takes a conversation metadata cursor and binds
183 * PeopleAndOptionsItemViews to individual COLUMNS of the first cursor record. (Note
184 * that this is not a CursorAdapter because it treats individual columns of the cursor as
188 private Cursor mOptionsCursor
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/photo/
MailPhotoViewController.java 23 import android.database.Cursor;
266 public void onCursorChanged(PhotoViewFragment fragment, Cursor cursor) {
267 super.onCursorChanged(fragment, cursor);
268 updateProgressAndEmptyViews(fragment, new Attachment(cursor));
342 * Save all of the attachments in the cursor.
345 Cursor cursor = getCursorAtProperPosition(); local
347 if (cursor == null) {
352 while (cursor.moveToPosition(++i))
379 Cursor cursor = getCursorAtProperPosition(); local
412 final Cursor cursor = getCursorAtProperPosition(); local
422 final Cursor cursor = getCursor(); local
    [all...]
  /frameworks/base/core/java/android/database/sqlite/
SQLiteDatabase.java 22 import android.database.Cursor;
665 * cursor when query is called, or null for default
686 * cursor when query is called, or null for default
825 * cursor when query is called
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
CalendarTest.java 29 import android.database.Cursor;
208 public static Cursor getCalendarsByAccount(ContentResolver resolver, String account) {
256 public static Cursor getSyncStateById(ContentResolver resolver, long id) {
264 public static Cursor getSyncStateByAccount(ContentResolver resolver, String account) {
554 public static Cursor getEventsByAccount(ContentResolver resolver, String account) {
569 public static Cursor getEventByUri(ContentResolver resolver, Uri uri) {
634 * cursor will use {@link AttendeeHelper#ATTENDEES_PROJECTION}.
636 public static Cursor findAttendeesByEmail(ContentResolver resolver, long eventId,
713 * The returned cursor will use {@link ColorHelper#COLORS_PROJECTION}.
715 public static Cursor findColorByIndex(ContentResolver resolver, String accountName
861 Cursor cursor = resolver.query(ExtendedProperties.CONTENT_URI, local
1216 Cursor cursor = AttendeeHelper.findAttendeesByEmail(mContentResolver, eventId1, local
1368 Cursor cursor = ReminderHelper.findRemindersByEventId(mContentResolver, eventId1); local
1901 Cursor cursor = ExtendedPropertiesHelper.findExtendedPropertiesByEventId(mContentResolver, local
3158 Cursor cursor; local
3206 Cursor cursor; local
3255 Cursor cursor; local
3289 Cursor cursor; local
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
MockTvInputSetupActivity.java 24 import android.database.Cursor;
69 try (Cursor cursor = getContentResolver().query(uri, projection, null, null, null)) {
71 if (cursor != null && cursor.getCount() > 0) {
MultipleTracksTestActivity.java 22 import android.database.Cursor;
117 try (Cursor cursor = getContentResolver().query(
120 if (cursor != null && cursor.moveToNext()) {
122 TvContract.buildChannelUri(cursor.getLong(0)));
SearchUtil.java 27 import android.database.Cursor;
67 try (Cursor c = provider.query(uri, null, selection, selectionArg, null, null)) {
  /cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DocumentsClientTestCase.java 34 import android.database.Cursor;
75 final Cursor cursor = resolver.query(uri, new String[] { column }, null, null, null); local
77 assertTrue(cursor.moveToFirst());
78 return cursor.getString(0);
80 cursor.close();
  /cts/tests/tests/tv/src/android/media/tv/cts/
StubTunerTvInputService.java 22 import android.database.Cursor;
129 Cursor cursor = mContext.getContentResolver().query( local
132 if (cursor != null && cursor.moveToNext()) {
133 mCurrentIndex = cursor.getBlob(0)[0];
138 if (cursor != null) {
139 cursor.close();
  /developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/simple/
SimpleTvInputSetupActivity.java 25 import android.database.Cursor;
63 Cursor cursor = null; local
65 cursor = getContentResolver().query(uri, null, null, null, null);
66 if (cursor != null && cursor.getCount() > 0) {
70 if (cursor != null) {
71 cursor.close();
  /developers/build/prebuilts/gradle/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/db/
LocationDbHelper.java 21 import android.database.Cursor;
119 Cursor cursor = db.query( local
130 int count = cursor.getCount();
132 cursor.moveToFirst();
133 while (!cursor.isAfterLast()) {
135 cal.setTimeInMillis(cursor.getLong(2));
136 LocationEntry entry = new LocationEntry(cal, cursor.getDouble(1),
137 cursor.getDouble(0));
139 cursor.moveToNext()
    [all...]
  /developers/samples/android/wearable/wear/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/db/
LocationDbHelper.java 21 import android.database.Cursor;
119 Cursor cursor = db.query( local
130 int count = cursor.getCount();
132 cursor.moveToFirst();
133 while (!cursor.isAfterLast()) {
135 cal.setTimeInMillis(cursor.getLong(2));
136 LocationEntry entry = new LocationEntry(cal, cursor.getDouble(1),
137 cursor.getDouble(0));
139 cursor.moveToNext()
    [all...]
  /development/apps/Development/src/com/android/development/
Details.java 23 import android.database.Cursor;
118 Cursor c = getContentResolver().query(intent.getData(), null, null, null, null);
  /development/samples/ApiDemos/src/com/example/android/apis/content/
FileProvider.java 28 import android.database.Cursor;
48 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
73 MatrixCursor cursor = new MatrixCursor(projection); local
85 cursor.addRow(result);
86 return cursor;
  /development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
MusicRetriever.java 21 import android.database.Cursor;
61 Cursor cur = mContentResolver.query(uri, null,
63 Log.i(TAG, "Query finished. " + (cur == null ? "Returned NULL." : "Returned a cursor."));
67 Log.e(TAG, "Failed to retrieve music: cursor is null :-(");
72 Log.e(TAG, "Failed to move cursor to first row (no query results).");
  /development/samples/SearchableDictionary/src/com/example/android/searchabledict/
SearchableDictionary.java 24 import android.database.Cursor;
88 Cursor cursor = managedQuery(DictionaryProvider.CONTENT_URI, null, null, local
91 if (cursor == null) {
96 int count = cursor.getCount();
109 // Create a simple cursor adapter for the definitions and apply them to the ListView
111 R.layout.result, cursor, from, to);
  /development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/
WeatherDataProvider.java 26 import android.database.Cursor;
88 public synchronized Cursor query(Uri uri, String[] projection, String selection,
92 // In this sample, we only query without any parameters, so we can just return a cursor to
105 return "vnd.android.cursor.dir/vnd.weatherlistwidget.temperature";
  /development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/db/
LocationDbHelper.java 21 import android.database.Cursor;
119 Cursor cursor = db.query( local
130 int count = cursor.getCount();
132 cursor.moveToFirst();
133 while (!cursor.isAfterLast()) {
135 cal.setTimeInMillis(cursor.getLong(2));
136 LocationEntry entry = new LocationEntry(cal, cursor.getDouble(1),
137 cursor.getDouble(0));
139 cursor.moveToNext()
    [all...]
  /development/samples/training/threadsample/src/com/example/android/threadsample/
RSSPullService.java 22 import android.database.Cursor;
81 // A cursor that's local to this method.
82 Cursor cursor = null; local
115 cursor = getContentResolver().query(
128 if (null != cursor && cursor.moveToFirst()) {
132 cursor.getLong(cursor.getColumnIndex(
233 cursor.getString(cursor.getColumnIndex
    [all...]

Completed in 1815 milliseconds

<<21222324252627282930>>