/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
FilteringCursorWrapper.java | 25 import android.database.Cursor; 31 * Cursor wrapper that filters MIME types not matching given list. 34 private final Cursor mCursor; 39 public FilteringCursorWrapper(Cursor cursor, String[] acceptMimes) { 40 this(cursor, acceptMimes, null, Long.MIN_VALUE); 43 public FilteringCursorWrapper(Cursor cursor, String[] acceptMimes, String[] rejectMimes) { 44 this(cursor, acceptMimes, rejectMimes, Long.MIN_VALUE); 48 Cursor cursor, String[] acceptMimes, String[] rejectMimes, long rejectBefore) [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/ |
BlockedParticipantsFragment.java | 21 import android.database.Cursor; 80 public BlockedParticipantListAdapter(final Context context, final Cursor cursor) { 81 super(context, cursor, 0); 85 public View newView(Context context, Cursor cursor, ViewGroup parent) { 91 public void bindView(View view, Context context, Cursor cursor) { 94 mBinding.getData().createParticipantListItemData(cursor)); 99 public void onBlockedParticipantsCursorUpdated(Cursor cursor) [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
CommonDatabaseUtils.java | 23 import android.database.Cursor; 40 public static String[] singleRecordToArray(Cursor cursor) { 43 if (cursor.moveToNext()) { 44 result = new String[cursor.getColumnCount()]; 45 fillArray(cursor, result); 48 closeQuietly(cursor); 53 public static List<String[]> multiRecordToArray(Cursor cursor) { 56 while (cursor.moveToNext()) [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
SimpleCursorTreeAdapterTest.java | 24 import android.database.Cursor; 65 private Cursor mGroupCursor; 67 private Cursor mChildCursor; 178 * Creates the test cursor. 183 * @return the cursor 186 private Cursor createTestCursor(int colCount, int rowCount, String prefix) { 193 MatrixCursor cursor = new MatrixCursor(columns, rowCount); local 200 cursor.addRow(row); 202 return cursor; 206 public MockSimpleCursorTreeAdapter(Context context, Cursor cursor [all...] |
ResourceCursorTreeAdapterTest.java | 23 import android.database.Cursor; 81 Cursor cursor = createTestCursor(3, 3); local 82 mResourceCursorTreeAdapter = new MockResourceCursorTreeAdapter(mContext, cursor, 84 assertEquals(cursor, mResourceCursorTreeAdapter.getCursor()); 99 // The parameters Context and Cursor are never readin the method 121 // The parameters Context and Cursor are never readin the method 144 * Creates the test cursor. 148 * @return the cursor 151 private Cursor createTestCursor(int colCount, int rowCount) 158 MatrixCursor cursor = new MatrixCursor(columns, rowCount); local [all...] |
AlphabetIndexerTest.java | 20 import android.database.Cursor; 42 Cursor c1 = createCursor("Country", COUNTRIES_LIST); 81 Cursor c2 = createCursor("Name", NAMES_LIST); 85 // test getPositionForSection in Name Cursor 104 Cursor cursor = createCursor("Country", COUNTRIES_LIST); local 106 MyAlphabetIndexer indexer = new MyAlphabetIndexer(cursor, SORTED_COLUMN_INDEX, ALPHABET); 113 private Cursor createCursor(String listName, String[] listData) { 116 MatrixCursor cursor = new MatrixCursor(columns, listData.length); 118 cursor.addRow(new Object[] { i, listData[i] }) [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/database/ |
NoNullCursorAsyncQueryHandlerTest.java | 19 import android.database.Cursor; 45 public Cursor query(Uri uri, String[] projection, String selection, 58 final ObjectHolder<Cursor> cursorHolder = ObjectHolder.newInstance(); 70 Cursor cursor) { 71 cursorHolder.obj = cursor; 97 Cursor cursor) { 115 final ObjectHolder<Cursor> cursorHolder = ObjectHolder.newInstance(); 124 Cursor cursor) [all...] |
/packages/apps/TV/src/com/android/tv/dialog/ |
RecentlyWatchedDialogFragment.java | 24 import android.database.Cursor; 42 LoaderManager.LoaderCallbacks<Cursor> { 71 public boolean setViewValue(View view, Cursor cursor, int columnIndex) { 72 String name = cursor.getColumnName(columnIndex); 74 long channelId = cursor.getLong(columnIndex); 90 long time = cursor.getLong(columnIndex); 110 // If we have an adapter we should close its cursor, which we do by assigning a null cursor. 122 public Loader<Cursor> onCreateLoader(int id, Bundle args) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/settings/ |
MailPreferenceActivity.java | 25 import android.database.Cursor; 48 private Cursor mAccountsCursor; 64 private class AccountLoaderCallbacks implements LoaderCallbacks<Cursor> { 66 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 73 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 79 public void onLoaderReset(Loader<Cursor> loader) {
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
OpenHelper.java | 31 import android.database.Cursor; 71 final Cursor cursor = downManager.query(new DownloadManager.Query().setFilterById(id)); local 73 if (!cursor.moveToFirst()) { 77 final File file = getCursorFile(cursor, COLUMN_LOCAL_FILENAME); 78 String mimeType = getCursorString(cursor, COLUMN_MEDIA_TYPE); 91 final Uri remoteUri = getCursorUri(cursor, COLUMN_URI); 99 cursor.close(); 107 final Cursor headers = context.getContentResolver() 124 final Cursor cursor = context.getContentResolver().query(uri, new String[]{Constants.UID} local [all...] |
/development/samples/training/threadsample/src/com/example/android/threadsample/ |
PhotoThumbnailFragment.java | 21 import android.database.Cursor; 49 LoaderManager.LoaderCallbacks<Cursor>, AdapterView.OnItemClickListener { 69 // An adapter between a Cursor and the Fragment's GridView 84 // Constants that define the order of columns in the returned cursor 96 public Loader<Cursor> onCreateLoader(int loaderID, Bundle bundle) 280 // Returns a one-row cursor for the data that backs the View that was clicked. 281 Cursor cursor = (Cursor) mAdapter.getItem(viewId); local 283 // Retrieves the urlString from the cursor [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
JoinContactListFragment.java | 24 import android.database.Cursor; 51 private final LoaderCallbacks<Cursor> mLoaderCallbacks = new LoaderCallbacks<Cursor>() { 54 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 75 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 85 final Cursor suggestionsCursor = 95 public void onLoaderReset(Loader<Cursor> loader) { 122 private void onContactListLoaded(Cursor suggestionsCursor, Cursor allContactsCursor) [all...] |
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
GroupingCursorRecyclerViewAdapter.java | 19 import android.database.Cursor; 41 * Build all groups based on grouping rules given cursor and calls {@link #addGroup} for 44 protected abstract void buildGroups(Cursor cursor); 47 protected abstract void onBindStandAloneViewHolder(VH holder, Context context, Cursor cursor); 50 protected abstract void onBindGroupViewHolder(VH holder, Context context, Cursor cursor, 54 protected abstract void onBindChildViewHolder(VH holder, Context context, Cursor cursor); 87 Cursor cursor = getItem(position); local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
ChangedContacts.java | 28 import android.database.Cursor; 44 public class ChangedContacts extends Activity implements LoaderManager.LoaderCallbacks<Cursor> { 159 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 202 public void onLoadFinished(Loader<Cursor> cursorLoader, Cursor data) { 242 public void onLoaderReset(Loader<Cursor> cursorLoader) { 257 * Creates a cursor wrapper. 259 * @param cursor The underlying cursor to wrap. 261 public DeleteCursorWrapper(Cursor cursor) [all...] |
/frameworks/ex/common/java/com/android/common/widget/ |
CompositeCursorAdapter.java | 19 import android.database.Cursor; 38 Cursor cursor; field in class:CompositeCursorAdapter.Partition 84 * Registers a partition. The cursor for that partition can be set later. 105 Cursor cursor = mPartitions.get(partitionIndex).cursor; local 106 if (cursor != null && !cursor.isClosed()) { 107 cursor.close() 133 Cursor cursor = partition.cursor; local 172 Cursor cursor = partition.cursor; local 235 Cursor cursor = mPartitions.get(partition).cursor; local 435 Cursor cursor = mPartition.cursor; local 467 Cursor cursor = mPartition.cursor; local [all...] |
/developers/samples/android/content/LoaderCursor/src/com/example/android/content/loadercursor/ |
CursorLoaderListFragment.java | 23 import android.database.Cursor; 41 * display a list of contacts accessed through a {@link Cursor}. 44 LoaderManager.LoaderCallbacks<Cursor> { 181 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 195 // creating a Cursor for the data being displayed. 208 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 209 // Swap the new cursor in. (The framework will take care of closing the 210 // old cursor once we return.) 224 public void onLoaderReset(Loader<Cursor> loader) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
LoaderCursor.java | 26 import android.database.Cursor; 64 LoaderManager.LoaderCallbacks<Cursor> { 173 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 187 // creating a Cursor for the data being displayed. 196 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 197 // Swap the new cursor in. (The framework will take care of closing the 198 // old cursor once we return.) 209 public void onLoaderReset(Loader<Cursor> loader) { 210 // This is called when the last Cursor provided to onLoadFinished( [all...] |
LoaderRetained.java | 28 import android.database.Cursor; 66 LoaderManager.LoaderCallbacks<Cursor> { 178 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 192 // creating a Cursor for the data being displayed. 201 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 202 // Swap the new cursor in. (The framework will take care of closing the 203 // old cursor once we return.) 214 public void onLoaderReset(Loader<Cursor> loader) { 215 // This is called when the last Cursor provided to onLoadFinished( [all...] |
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/ |
DictionaryProvider.java | 24 import android.database.Cursor; 68 * would return a cursor with a single item representing the refreshed suggestion data. 89 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, 115 private Cursor getSuggestions(String query) { 128 private Cursor search(String query) { 138 private Cursor getWord(Uri uri) { 147 private Cursor refreshShortcut(Uri uri) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
HbpcdUtils.java | 22 import android.database.Cursor; 52 Cursor c2 = resolver.query(ArbitraryMccSidMatch.CONTENT_URI, projection2, 62 Log.d(LOG_TAG, "Query Unresolved arbitrary returned the cursor " + c2 ); 78 Cursor c3 = resolver.query(MccSidConflicts.CONTENT_URI, projection3, 91 if (DBG) Log.d(LOG_TAG, "Query conflict sid returned the cursor " + c3 ); 110 Cursor c5 = resolver.query(MccSidRange.CONTENT_URI, projection5, 116 if (DBG) Log.d(LOG_TAG, "Query Range returned the cursor " + c5 ); 139 Cursor c = null; 142 Cursor cur = resolver.query(MccIdd.CONTENT_URI, projection, 146 if (DBG) Log.d(LOG_TAG, "Query Idd returned the cursor " + cur ) [all...] |
/frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/app/ |
CursorFragment.java | 23 import android.database.Cursor; 40 implements OnQueryTextListener, LoaderManager.LoaderCallbacks<Cursor> { 113 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 127 // creating a Cursor for the data being displayed. 136 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 137 // Swap the new cursor in. (The framework will take care of closing the 138 // old cursor once we return.) 149 public void onLoaderReset(Loader<Cursor> loader) { 150 // This is called when the last Cursor provided to onLoadFinished( [all...] |
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/ |
LoaderCursorSupport.java | 31 import android.database.Cursor; 66 implements LoaderManager.LoaderCallbacks<Cursor> { 154 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 167 // creating a Cursor for the data being displayed. 175 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 176 // Swap the new cursor in. (The framework will take care of closing the 177 // old cursor once we return.) 188 public void onLoaderReset(Loader<Cursor> loader) { 189 // This is called when the last Cursor provided to onLoadFinished( [all...] |
LoaderRetainedSupport.java | 30 import android.database.Cursor; 65 implements LoaderManager.LoaderCallbacks<Cursor> { 145 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 158 // creating a Cursor for the data being displayed. 166 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 167 // Swap the new cursor in. (The framework will take care of closing the 168 // old cursor once we return.) 179 public void onLoaderReset(Loader<Cursor> loader) { 180 // This is called when the last Cursor provided to onLoadFinished( [all...] |
/packages/apps/Dialer/src/com/android/dialer/filterednumber/ |
ViewNumbersToImportFragment.java | 23 import android.database.Cursor; 41 implements LoaderManager.LoaderCallbacks<Cursor>, 96 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 108 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 113 public void onLoaderReset(Loader<Cursor> loader) {
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupNamesFragment.java | 23 import android.database.Cursor; 90 // Move cursor to the end so it's easier to erase in case the user doesn't like it. 107 getLoaderManager().initLoader(0, null, new LoaderManager.LoaderCallbacks<Cursor>() { 109 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 117 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 131 public void onLoaderReset(Loader<Cursor> loader) {}
|