HomeSort by relevance Sort by last modified time
    Searched defs:cursor (Results 276 - 300 of 1476) sorted by null

<<11121314151617181920>>

  /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;
95 Cursor cursor = mDownloadManager.query(new Query()); local
97 assertEquals(NUM_FILES, cursor.getCount());
99 if (cursor.moveToFirst()) {
101 int status = cursor.getInt(cursor.getColumnIndex(
103 String filename = cursor.getString(cursor.getColumnIndex(
109 } while (cursor.moveToNext())
    [all...]
  /frameworks/base/core/tests/coretests/src/android/provider/
FontsContractTest.java 162 MatrixCursor cursor = new MatrixCursor(new String[] { FontsContract.Columns._ID, local
166 cursor.addRow(new Object[] { 1, 0, null, 400, 0, RESULT_CODE_OK});
167 cursor.addRow(new Object[] { 1, 0, null, 400, 0,
169 mProvider.setCustomCursor(cursor);
194 MatrixCursor cursor = new MatrixCursor(new String[] { FontsContract.Columns._ID, local
198 cursor.addRow(new Object[] { 1, 0, null, 400, 0, RESULT_CODE_OK});
199 cursor.addRow(new Object[] { 1, 0, null, 400, 0,
201 cursor.addRow(new Object[] { 1, 0, null, 400, 0, RESULT_CODE_OK});
202 mProvider.setCustomCursor(cursor);
  /frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
BaseSettingsProviderTest.java 23 import android.database.Cursor;
151 Cursor cursor = getContext().getContentResolver().query(uri, NAME_VALUE_COLUMNS, local
154 if (cursor == null) {
159 if (cursor.moveToFirst()) {
160 final int valueColumnIdx = cursor.getColumnIndex(Settings.NameValueTable.VALUE);
161 return cursor.getString(valueColumnIdx);
164 cursor.close();
  /frameworks/base/services/core/java/com/android/server/notification/
CalendarTracker.java 23 import android.database.Cursor;
99 Cursor cursor = null; local
101 cursor = mUserContext.getContentResolver().query(Calendars.CONTENT_URI, projection,
103 while (cursor != null && cursor.moveToNext()) {
104 rt.add(cursor.getLong(0));
107 if (cursor != null) {
108 cursor.close();
120 final Cursor cursor = mUserContext.getContentResolver().query(uri, INSTANCE_PROJECTION local
    [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 24 import android.database.Cursor;
151 Cursor cursor = null; local
154 cursor = mResolver.query(InboundSmsHandler.sRawUri, PDU_PENDING_MESSAGE_PROJECTION,
157 if (cursor == null) {
158 Rlog.e(TAG, "error getting pending message cursor");
163 while (cursor.moveToNext()) {
166 tracker = TelephonyComponentFactory.getInstance().makeInboundSmsTracker(cursor,
217 if (cursor != null) {
218 cursor.close()
    [all...]
  /frameworks/support/content/src/androidTest/java/androidx/contentpager/content/
ContentPagerTest.java 31 import android.database.Cursor;
94 Cursor cursor = mCallback.getCursor(query); local
95 Bundle extras = cursor.getExtras();
97 assertExpectedRecords(cursor, query.getOffset());
144 Cursor cursor = mCallback.getCursor(query); local
145 Bundle extras = cursor.getExtras();
147 assertExpectedRecords(cursor, query.getOffset());
189 Cursor cursor = mCallback.getCursor(query) local
244 Cursor cursor = mCallback.getCursor(query); local
277 Cursor cursor = mCallback.getCursor(query); local
323 Cursor cursor = mCallback.getCursor(query); local
380 Cursor cursor = mCallback.getCursor(query); local
    [all...]
  /frameworks/support/tv-provider/src/androidTest/java/androidx/tvprovider/media/tv/
PreviewChannelTest.java 167 MatrixCursor cursor = new MatrixCursor(PreviewChannel.Columns.PROJECTION); local
168 MatrixCursor.RowBuilder rowBuilder = cursor.newRow();
172 cursor.moveToFirst();
173 return cursor;
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppReceiver.java 42 import android.database.Cursor;
183 Cursor cursor = local
185 if (cursor != null) {
186 if (cursor.moveToFirst()) {
187 int visibilityColumn = cursor.getColumnIndexOrThrow(BluetoothShare.VISIBILITY);
188 int visibility = cursor.getInt(visibilityColumn);
190 cursor.getColumnIndexOrThrow(BluetoothShare.USER_CONFIRMATION);
191 int userConfirmation = cursor.getInt(userConfirmationColumn);
202 cursor.close()
    [all...]
  /packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbapclient/
PbapParserTest.java 23 import android.database.Cursor;
165 Cursor cursor = mTargetContext.getContentResolver() local
171 if (cursor != null) {
172 while (cursor.moveToNext()) {
173 String foundNumber = cursor.getString(cursor.getColumnIndex(Calls.NUMBER));
174 String foundDate = cursor.getString(cursor.getColumnIndex(Calls.DATE));
180 cursor.close()
    [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/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/Car/Dialer/src/com/android/car/dialer/
ContactEntry.java 19 import android.database.Cursor;
89 * Parses a Contact entry for a Cursor loaded from the OS Strequents DB.
91 public static ContactEntry fromCursor(Cursor cursor, Context context) {
92 int idColumnIndex = PhoneLoader.getIdColumnIndex(cursor);
93 int starredColumn = cursor.getColumnIndex(ContactsContract.Contacts.STARRED);
94 int pinnedColumn = cursor.getColumnIndex("pinned");
95 int displayNameColumnIndex = cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME);
96 int avatarUriColumnIndex = cursor.getColumnIndex(ContactsContract.Contacts.PHOTO_URI);
97 int avatarThumbnailColumnIndex = cursor.getColumnIndex
    [all...]
  /packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
TelecomUtils.java 22 import android.database.Cursor;
114 Cursor cursor = cr.query(uri, CONTACT_ID_PROJECTION, null, null, null); local
117 if (cursor != null && cursor.moveToFirst()) {
118 int id = cursor.getInt(cursor.getColumnIndex(ContactsContract.PhoneLookup._ID));
122 if (cursor != null) {
123 cursor.close();
148 Cursor cursor = cr.query(uri, CONTACT_ID_PROJECTION, null, null, null) local
259 Cursor cursor = null; local
    [all...]
  /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...]
CellBroadcastListActivity.java 32 import android.database.Cursor;
96 implements LoaderManager.LoaderCallbacks<Cursor> {
130 // Create a cursor adapter to display the loaded data.
157 public Loader<Cursor> onCreateLoader(int id, Bundle args) {
164 public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
165 // Swap the new cursor in. (The framework will take care of closing the
166 // old cursor once we return.)
172 public void onLoaderReset(Loader<Cursor> loader) {
173 // This is called when the last Cursor provided to onLoadFinished(
211 Cursor cursor = mAdapter.getCursor(); local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/
SplitAggregateView.java 20 import android.database.Cursor;
158 Cursor cursor = getContext().getContentResolver().query(dataUri, local
160 if (cursor == null) {
164 while (cursor.moveToNext()) {
165 long rawContactId = cursor.getLong(SplitQuery.RAW_CONTACT_ID);
170 info.accountType = cursor.getString(SplitQuery.ACCOUNT_TYPE);
171 info.dataSet = cursor.getString(SplitQuery.DATA_SET);
174 String mimetype = cursor.getString(SplitQuery.MIMETYPE);
176 loadStructuredName(cursor, info)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/interactions/
CalendarInteractionsLoader.java 7 import android.database.Cursor;
66 Cursor cursor = getSharedEventsCursor(/* isFuture= */ true, mMaxFutureToRetrieve); local
67 List<ContactInteraction> interactions = getInteractionsFromEventsCursor(cursor);
68 cursor = getSharedEventsCursor(/* isFuture= */ false, mMaxPastToRetrieve);
69 List<ContactInteraction> interactions2 = getInteractionsFromEventsCursor(cursor);
85 private Cursor getSharedEventsCursor(boolean isFuture, int limit) {
149 * @return A list with upto one Card. The Card contains events from {@param Cursor}.
152 private List<ContactInteraction> getInteractionsFromEventsCursor(Cursor cursor) {
182 Cursor cursor = getContext().getContentResolver().query(Calendars.CONTENT_URI, projection, local
    [all...]
CallLogInteractionsLoader.java 22 import android.database.Cursor;
135 Cursor cursor = null; local
137 cursor = getContext().getContentResolver().query(uri, null, null, null,
143 if (cursor == null || cursor.getCount() < 1) {
146 cursor.moveToPosition(-1);
148 while (cursor.moveToNext()) {
150 DatabaseUtils.cursorRowToContentValues(cursor, values);
155 if (cursor != null)
    [all...]
ExportDialogFragment.java 28 import android.database.Cursor;
173 final Cursor cursor = getActivity().getContentResolver().query( local
176 if (cursor != null) {
178 if (!cursor.moveToFirst()) {
190 uriListBuilder.append(cursor.getString(0));
192 } while (cursor.moveToNext());
202 cursor.close();
  /packages/apps/Contacts/src/com/android/contacts/list/
DirectoryListLoader.java 22 import android.database.Cursor;
36 public class DirectoryListLoader extends AsyncTaskLoader<Cursor> {
123 public Cursor loadInBackground() {
151 Cursor cursor = null; local
153 cursor = context.getContentResolver().query(
157 if (cursor == null) {
161 while(cursor.moveToNext()) {
162 long directoryId = cursor.getLong(DirectoryQuery.ID);
169 String packageName = cursor.getString(DirectoryQuery.PACKAGE_NAME)
    [all...]
ProviderStatusWatcher.java 20 import android.database.Cursor;
219 Cursor cursor = mContext.getContentResolver().query(ProviderStatus.CONTENT_URI, local
221 if (cursor != null) {
223 if (cursor.moveToFirst()) {
226 mProviderStatus = cursor.getInt(0);
230 cursor.close();

Completed in 1493 milliseconds

<<11121314151617181920>>