HomeSort by relevance Sort by last modified time
    Searched defs:cursor (Results 226 - 250 of 973) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/tests/provider/src/android/provider/cts/
MediaStore_Video_ThumbnailsTest.java 25 import android.database.Cursor;
123 Cursor c = mResolver.query(Thumbnails.EXTERNAL_CONTENT_URI,
156 Cursor cursor = mResolver.query(uri, null, null, null, null); local
158 return cursor.getCount();
160 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/gradle/StorageClient/Application/src/main/java/com/example/android/storageclient/
StorageClientFragment.java 22 import android.database.Cursor;
137 Cursor cursor = getActivity().getContentResolver() local
141 // moveToFirst() returns false if the cursor has 0 rows. Very handy for
143 if (cursor != null && cursor.moveToFirst()) {
147 String displayName = cursor.getString(
148 cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
151 int sizeIndex = cursor.getColumnIndex(OpenableColumns.SIZE);
158 if (!cursor.isNull(sizeIndex))
    [all...]
  /developers/samples/android/content/documentsUi/StorageClient/Application/src/main/java/com/example/android/storageclient/
StorageClientFragment.java 22 import android.database.Cursor;
137 Cursor cursor = getActivity().getContentResolver() local
141 // moveToFirst() returns false if the cursor has 0 rows. Very handy for
143 if (cursor != null && cursor.moveToFirst()) {
147 String displayName = cursor.getString(
148 cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
151 int sizeIndex = cursor.getColumnIndex(OpenableColumns.SIZE);
158 if (!cursor.isNull(sizeIndex))
    [all...]
  /development/samples/NotePad/src/com/example/android/notepad/
NotesList.java 28 import android.database.Cursor;
58 * The columns needed by the cursor adapter
98 /* Performs a managed query. The Activity handles closing and requerying the cursor
103 Cursor cursor = managedQuery( local
112 * The following two arrays create a "map" between columns in the cursor and view IDs
119 // The names of the cursor columns to display in the view, initialized to the title column
122 // The view IDs that will display the cursor columns, initialized to the TextView in
131 cursor, // The cursor to get items fro
322 Cursor cursor = (Cursor) getListAdapter().getItem(info.position); local
    [all...]
  /development/samples/SearchableDictionary/src/com/example/android/searchabledict/
DictionaryDatabase.java 23 import android.database.Cursor;
83 * Returns a Cursor positioned at the word specified by rowId
87 * @return Cursor positioned to matching word, or null if not found.
89 public Cursor getWord(String rowId, String[] columns) {
101 * Returns a Cursor over all words that match the given query
105 * @return Cursor over all words that match, or null if none found.
107 public Cursor getWordMatches(String query, String[] columns) {
133 * @return A Cursor over all rows matching the query
135 private Cursor query(String selection, String[] selectionArgs, String[] columns) {
144 Cursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase() local
    [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...]
  /development/samples/browseable/StorageClient/src/com.example.android.storageclient/
StorageClientFragment.java 22 import android.database.Cursor;
137 Cursor cursor = getActivity().getContentResolver() local
141 // moveToFirst() returns false if the cursor has 0 rows. Very handy for
143 if (cursor != null && cursor.moveToFirst()) {
147 String displayName = cursor.getString(
148 cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
151 int sizeIndex = cursor.getColumnIndex(OpenableColumns.SIZE);
158 if (!cursor.isNull(sizeIndex))
    [all...]
  /external/chromium_org/android_webview/java/src/org/chromium/android_webview/
HttpAuthDatabase.java 9 import android.database.Cursor;
202 Cursor cursor = null; local
204 cursor = mDatabase.query(HTTPAUTH_TABLE_NAME, columns, selection,
206 if (cursor.moveToFirst()) {
208 cursor.getString(cursor.getColumnIndex(HTTPAUTH_USERNAME_COL)),
209 cursor.getString(cursor.getColumnIndex(HTTPAUTH_PASSWORD_COL)),
215 if (cursor != null) cursor.close()
230 Cursor cursor = null; local
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/data/
MediaStoreThumbFetcher.java 5 import android.database.Cursor;
113 public Cursor query(Context context, Uri uri);
134 final Cursor cursor = query.query(context, uri); local
136 if (cursor != null && cursor.moveToFirst()) {
137 String path = cursor.getString(0);
146 if (cursor != null) {
147 cursor.close();
160 public Cursor query(Context context, Uri uri)
    [all...]
  /frameworks/base/core/java/android/content/
AsyncQueryHandler.java 19 import android.database.Cursor;
77 Cursor cursor; local
79 cursor = resolver.query(args.uri, args.projection,
82 // Calling getCount() causes the cursor window to be filled,
84 if (cursor != null) {
85 cursor.getCount();
89 cursor = null;
92 args.result = cursor;
284 * @param cursor The cursor holding the results from the query
    [all...]
  /frameworks/base/core/java/android/widget/
AlphabetIndexer.java 19 import android.database.Cursor;
28 * invalidates the cache if changes occur in the cursor.
30 * Your adapter is responsible for updating the cursor by calling {@link #setCursor} if the
31 * cursor changes. {@link #getPositionForSection} method does the binary search for the starting
37 * Cursor that is used by the adapter of the list view.
39 protected Cursor mDataCursor;
42 * The index of the cursor column that this list is sorted on.
58 * the dataset changes or the cursor changes.
74 * @param cursor the cursor containing the data se
148 final Cursor cursor = mDataCursor; local
    [all...]
  /frameworks/base/core/tests/coretests/src/android/app/
DownloadManagerStressTest.java 21 import android.database.Cursor;
93 Cursor cursor = mDownloadManager.query(new Query()); local
95 assertEquals(NUM_FILES, cursor.getCount());
97 if (cursor.moveToFirst()) {
99 int status = cursor.getInt(cursor.getColumnIndex(
101 String filename = cursor.getString(cursor.getColumnIndex(
107 } while (cursor.moveToNext())
    [all...]
  /frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
TrackerActivity.java 28 import android.database.Cursor;
176 Cursor cursor = trackerData.query(tagFilter); local
183 while ((line = trackerData.getNextOutput(cursor)) != null) {
197 if (cursor != null) {
198 cursor.close();
  /frameworks/ex/common/java/com/android/common/contacts/
DataUsageStatUpdater.java 22 import android.database.Cursor;
120 final Cursor cursor = mResolver.query(Email.CONTENT_URI, local
124 if (cursor == null) {
125 Log.w(TAG, "Cursor for Email.CONTENT_URI became null.");
127 final Set<Long> contactIds = new HashSet<Long>(cursor.getCount());
128 final Set<Long> dataIds = new HashSet<Long>(cursor.getCount());
130 cursor.move(-1);
131 while(cursor.moveToNext()) {
132 contactIds.add(cursor.getLong(0))
170 final Cursor cursor = mResolver.query(Phone.CONTENT_URI, local
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
SmsBroadcastUndelivered.java 21 import android.database.Cursor;
102 Cursor cursor = null; local
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()
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppReceiver.java 46 import android.database.Cursor;
194 Cursor cursor = context.getContentResolver().query(intent.getData(), null, null, null, local
196 if (cursor != null) {
197 if (cursor.moveToFirst()) {
198 int statusColumn = cursor.getColumnIndexOrThrow(BluetoothShare.STATUS);
199 int status = cursor.getInt(statusColumn);
200 int visibilityColumn = cursor.getColumnIndexOrThrow(BluetoothShare.VISIBILITY);
201 int visibility = cursor.getInt(visibilityColumn);
202 int userConfirmationColumn = cursor
    [all...]
  /packages/apps/Browser/src/com/android/browser/
Bookmarks.java 24 import android.database.Cursor;
103 Cursor cursor = null; local
106 cursor = cr.query(uri,
113 if (!cursor.moveToFirst()) {
120 cursor.getLong(0));
129 if (cursor != null) cursor.close();
160 public static Cursor queryCombinedForUrl(ContentResolver cr,
BrowserBackupAgent.java 23 import android.database.Cursor;
130 Cursor cursor = getContentResolver().query( local
135 if (cursor.getCount() <= 0) {
142 cursor.close();
  /packages/apps/Browser/src/com/android/browser/homepages/
RequestHandler.java 22 import android.database.Cursor;
111 Cursor historyResults = mContext.getContentResolver().query(
114 Cursor cursor = historyResults; local
116 if (cursor.getCount() < 12) {
117 Cursor bookmarkResults = mContext.getContentResolver().query(
120 cursor = new MergeCursor(new Cursor[] { historyResults, bookmarkResults }) {
127 t.assignLoop("most_visited", new Template.CursorListEntityWrapper(cursor) {
130 Cursor cursor = getCursor();
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/
EventLoader.java 21 import android.database.Cursor;
94 Cursor cursor = EventDays.query(cr, startDay, numDays, PROJECTION); local
96 int startDayColumnIndex = cursor.getColumnIndexOrThrow(EventDays.STARTDAY);
97 int endDayColumnIndex = cursor.getColumnIndexOrThrow(EventDays.ENDDAY);
100 while (cursor.moveToNext()) {
101 int firstDay = cursor.getInt(startDayColumnIndex);
102 int lastDay = cursor.getInt(endDayColumnIndex);
112 if (cursor != null) {
113 cursor.close()
    [all...]
  /packages/apps/Camera/tests/src/com/android/camera/functional/
VideoCaptureIntentTest.java 25 import android.database.Cursor;
61 Cursor cursor = null; local
63 cursor = resolver.query(query, projection, null, null, null);
64 if (cursor != null && cursor.moveToFirst()) {
65 new File(cursor.getString(0)).delete();
68 if (cursor != null) cursor.close();
  /packages/apps/Camera2/tests/src/com/android/camera/functional/
VideoCaptureIntentTest.java 25 import android.database.Cursor;
61 Cursor cursor = null; local
63 cursor = resolver.query(query, projection, null, null, null);
64 if (cursor != null && cursor.moveToFirst()) {
65 new File(cursor.getString(0)).delete();
68 if (cursor != null) cursor.close();
  /packages/apps/Camera2/tests_camera/src/com/android/camera/functional/
VideoCaptureIntentTest.java 25 import android.database.Cursor;
61 Cursor cursor = null; local
63 cursor = resolver.query(query, projection, null, null, null);
64 if (cursor != null && cursor.moveToFirst()) {
65 new File(cursor.getString(0)).delete();
68 if (cursor != null) cursor.close();
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastDatabaseHelper.java 21 import android.database.Cursor;
134 Cursor cursor = db.query(TEMP_TABLE_NAME, COLUMNS_V1, null, null, null, null, local
137 while (cursor.moveToNext()) {
138 upgradeMessageV1ToV2(db, cursor);
141 cursor.close();
169 private static void upgradeMessageV1ToV2(SQLiteDatabase db, Cursor cursor) {
170 int geographicalScope = cursor.getInt(COLUMN_V1_GEOGRAPHICAL_SCOPE);
171 int updateNumber = cursor.getInt(COLUMN_V1_SERIAL_NUMBER)
    [all...]

Completed in 673 milliseconds

1 2 3 4 5 6 7 8 91011>>