/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
FrequentContactsCursorBuilder.java | 18 import android.database.Cursor; 31 * A cursor builder that takes the frequent contacts cursor and aggregate it with the all contacts 32 * cursor to fill in contact details such as phone numbers and strip away invalid contacts. 35 * store the cursor that it receives with setFrequents() and setAllContacts() calls. Because it 37 * to pull data from and construct the aggregate cursor when it's ready to do so. Note that 38 * this cursor builder doesn't assume ownership of the cursors passed in - it merely references 40 * the loader framework and the cursor may be closed when the UI is torn down. 43 private Cursor mAllContactsCursor; 44 private Cursor mFrequentContactsCursor [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
MediaPickerData.java | 22 import android.database.Cursor; 59 private class GalleryLoaderCallbacks implements LoaderManager.LoaderCallbacks<Cursor> { 61 public Loader<Cursor> onCreateLoader(final int id, final Bundle args) { 83 public void onLoadFinished(final Loader<Cursor> loader, final Cursor data) { 105 public void onLoaderReset(final Loader<Cursor> loader) {
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
AddableFolderSelectorAdapter.java | 21 import android.database.Cursor; 34 public AddableFolderSelectorAdapter(Context context, Cursor folders, 42 public static Cursor filterFolders(final Cursor folderCursor) { 55 public static Cursor filterFolders(final Cursor folderCursor, 59 final MatrixCursor cursor = local 139 cursor.addRow(folder); 143 return cursor;
|
SingleFolderSelectionDialog.java | 26 import android.database.Cursor; 59 new LoaderManager.LoaderCallbacks<Cursor>() { 61 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 68 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 112 public void onLoaderReset(Loader<Cursor> loader) {
|
WaitFragment.java | 25 import android.database.Cursor; 37 LoaderManager.LoaderCallbacks<Cursor> { 133 public Loader<Cursor> onCreateLoader(int id, Bundle bundle) { 140 public void onLoadFinished(Loader<Cursor> arg0, Cursor arg1) { 145 public void onLoaderReset(Loader<Cursor> arg0) {
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
ContactsListFragment.java | 27 import android.database.Cursor; 38 public class ContactsListFragment extends LoaderManagingFragment<Cursor> 89 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 138 final Cursor cursor = (Cursor) mAdapter.getItem(position); local 139 if (cursor == null) { 144 final long contactId = cursor.getLong(ContactsListLoader.COLUMN_ID); 145 final String lookupKey = cursor.getString(ContactsListLoader.COLUMN_LOOKUP_KEY) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStoreTest.java | 21 import android.database.Cursor; 41 Cursor c = mContentResolver.query(mScannerUri, PROJECTION, null, null, null); 76 Cursor c = mContentResolver.query(mScannerUri, PROJECTION,
|
UserDictionary_WordsTest.java | 21 import android.database.Cursor; 73 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION, local 75 assertFalse("cursor is not empty", cursor.moveToFirst()); 77 cursor.close(); 91 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION, local 93 assertFalse("cursor is not empty", cursor.moveToFirst()) [all...] |
/external/llvm/lib/Bitcode/Reader/ |
BitstreamReader.cpp | 54 static uint64_t readAbbreviatedField(BitstreamCursor &Cursor, 64 assert((unsigned)Op.getEncodingData() <= Cursor.MaxChunkSize); 65 return Cursor.Read((unsigned)Op.getEncodingData()); 67 assert((unsigned)Op.getEncodingData() <= Cursor.MaxChunkSize); 68 return Cursor.ReadVBR64((unsigned)Op.getEncodingData()); 70 return BitCodeAbbrevOp::DecodeChar6(Cursor.Read(6)); 75 static void skipAbbreviatedField(BitstreamCursor &Cursor, 85 assert((unsigned)Op.getEncodingData() <= Cursor.MaxChunkSize); 86 Cursor.Read((unsigned)Op.getEncodingData()); 89 assert((unsigned)Op.getEncodingData() <= Cursor.MaxChunkSize) [all...] |
/frameworks/base/core/java/com/android/internal/content/ |
SelectionBuilder.java | 20 import android.database.Cursor; 99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) { 106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy,
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
RootCursorWrapper.java | 20 import android.database.Cursor; 24 * Cursor wrapper that adds columns to identify which root a document came from. 30 private final Cursor mCursor; 41 public RootCursorWrapper(String authority, String rootId, Cursor cursor, int maxCount) { 44 mCursor = cursor; 46 final int count = cursor.getCount(); 53 if (cursor.getColumnIndex(COLUMN_AUTHORITY) != -1 54 || cursor.getColumnIndex(COLUMN_ROOT_ID) != -1) { 55 throw new IllegalArgumentException("Cursor contains internal columns!") [all...] |
/packages/apps/Camera2/src/com/android/camera/data/ |
PhotoItemFactory.java | 21 import android.database.Cursor; 46 public PhotoItem get(Cursor c) { 58 Cursor c = mContentResolver.query(uri, PhotoDataQuery.QUERY_PROJECTION,
|
VideoItemFactory.java | 21 import android.database.Cursor; 49 public VideoItem get(Cursor c) { 62 Cursor c = mContext.getContentResolver().query(uri, VideoDataQuery.QUERY_PROJECTION, null,
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
ContentCacheTests.java | 22 import android.database.Cursor; 147 Cursor cursor = local 150 assertTrue(cursor instanceof CursorWrapper); 152 Cursor wrappedCursor = ((CursorWrapper)cursor).getWrappedCursor(); 155 // The cursor wrapped in cachedCursor is the underlying cursor 156 Cursor activeCursor = cachedCursor.getWrappedCursor(); 158 // The cursor should be in active cursor 202 MatrixCursor cursor = new MatrixCursorWithCachedColumns(SIMPLE_PROJECTION, 1); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
LocalMediaItem.java | 19 import android.database.Cursor; 70 abstract protected boolean updateFromCursor(Cursor cursor); 76 protected void updateContent(Cursor cursor) { 77 if (updateFromCursor(cursor)) {
|
/packages/apps/Messaging/tests/src/com/android/messaging/util/ |
ContactUtilTest.java | 21 import android.database.Cursor; 123 final Cursor cur = 142 final Cursor cur = ContactUtil.getPhones(getContext()) 159 final Cursor cur = ContactUtil.filterPhones(getContext(), TEST_NAME_PREFIX) 163 Assert.fail("Cursor should have size of 5"); 181 final Cursor cur = ContactUtil.filterPhones(getContext(), filter) 203 final Cursor cur = ContactUtil.filterPhones(getContext(), filter) 223 final Cursor cur = ContactUtil.lookupPhone(getContext(), filter) 243 final Cursor cur = ContactUtil.lookupPhone(getContext(), filter) 256 final Cursor cur = ContactUtil.getFrequentContacts(getContext() [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
ExpandableList2.java | 23 import android.database.Cursor; 59 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { 62 mAdapter.setGroupCursor(cursor); 67 mAdapter.setChildrenCursor(groupPosition, cursor); 75 // Note that the constructor does not take a Cursor. This is done to avoid querying the 86 protected Cursor getChildrenCursor(Cursor groupCursor) { 87 // Given the group, we return a cursor for all the children within that group 89 // Return a cursor that points to this contact's phone number [all...] |
/development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/ |
NotesDbAdapter.java | 21 import android.database.Cursor; 33 * addition of better error handling and also using returning a Cursor instead 140 * Return a Cursor over the list of all notes in the database 142 * @return Cursor over all notes 144 public Cursor fetchAllNotes() { 151 * Return a Cursor positioned at the note that matches the given rowId 154 * @return Cursor positioned to matching note, if found 157 public Cursor fetchNote(long rowId) throws SQLException { 159 Cursor mCursor =
|
/development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/ |
NotesDbAdapter.java | 21 import android.database.Cursor; 33 * addition of better error handling and also using returning a Cursor instead 140 * Return a Cursor over the list of all notes in the database 142 * @return Cursor over all notes 144 public Cursor fetchAllNotes() { 151 * Return a Cursor positioned at the note that matches the given rowId 154 * @return Cursor positioned to matching note, if found 157 public Cursor fetchNote(long rowId) throws SQLException { 159 Cursor mCursor =
|
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/ |
NotesDbAdapter.java | 21 import android.database.Cursor; 33 * addition of better error handling and also using returning a Cursor instead 140 * Return a Cursor over the list of all notes in the database 142 * @return Cursor over all notes 144 public Cursor fetchAllNotes() { 151 * Return a Cursor positioned at the note that matches the given rowId 154 * @return Cursor positioned to matching note, if found 157 public Cursor fetchNote(long rowId) throws SQLException { 159 Cursor mCursor =
|
/development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/ |
NotesDbAdapter.java | 21 import android.database.Cursor; 33 * addition of better error handling and also using returning a Cursor instead 140 * Return a Cursor over the list of all notes in the database 142 * @return Cursor over all notes 144 public Cursor fetchAllNotes() { 151 * Return a Cursor positioned at the note that matches the given rowId 154 * @return Cursor positioned to matching note, if found 157 public Cursor fetchNote(long rowId) throws SQLException { 159 Cursor mCursor =
|
/development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/ |
NotesDbAdapter.java | 21 import android.database.Cursor; 33 * addition of better error handling and also using returning a Cursor instead 140 * Return a Cursor over the list of all notes in the database 142 * @return Cursor over all notes 144 public Cursor fetchAllNotes() { 151 * Return a Cursor positioned at the note that matches the given rowId 154 * @return Cursor positioned to matching note, if found 157 public Cursor fetchNote(long rowId) throws SQLException { 159 Cursor mCursor =
|
/development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/ |
NotesDbAdapter.java | 21 import android.database.Cursor; 33 * addition of better error handling and also using returning a Cursor instead 140 * Return a Cursor over the list of all notes in the database 142 * @return Cursor over all notes 144 public Cursor fetchAllNotes() { 151 * Return a Cursor positioned at the note that matches the given rowId 154 * @return Cursor positioned to matching note, if found 157 public Cursor fetchNote(long rowId) throws SQLException { 159 Cursor mCursor =
|
/external/libgdx/backends/gdx-backend-headless/src/com/badlogic/gdx/backends/headless/mock/graphics/ |
MockGraphics.java | 21 import com.badlogic.gdx.graphics.Cursor; 25 import com.badlogic.gdx.graphics.Cursor.SystemCursor; 212 public Cursor newCursor (Pixmap pixmap, int xHotspot, int yHotspot) { 217 public void setCursor (Cursor cursor) {
|
/external/libgdx/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/ |
LwjglCursor.java | 10 import com.badlogic.gdx.graphics.Cursor; 15 public class LwjglCursor implements Cursor { 16 org.lwjgl.input.Cursor lwjglCursor = null; 29 throw new GdxRuntimeException("Cursor image pixmap is not in RGBA8888 format."); 33 throw new GdxRuntimeException("Cursor image pixmap width of " + pixmap.getWidth() 38 throw new GdxRuntimeException("Cursor image pixmap height of " + pixmap.getHeight() 76 lwjglCursor = new org.lwjgl.input.Cursor(pixmap.getWidth(), pixmap.getHeight(), xHotspot, pixmap.getHeight() - yHotspot 79 throw new GdxRuntimeException("Could not create cursor image.", e);
|