/packages/apps/Contacts/src/com/android/contacts/list/ |
JoinContactListAdapter.java | 20 import android.database.Cursor; 117 public void setSuggestionsCursor(Cursor cursor) { 118 changeCursor(PARTITION_SUGGESTIONS, cursor); 122 public void changeCursor(Cursor cursor) { 123 changeCursor(PARTITION_ALL_CONTACTS, cursor); 143 protected View newHeaderView(Context context, int partition, Cursor cursor, 164 protected void bindHeaderView(View view, int partitionIndex, Cursor cursor) [all...] |
PostalAddressListAdapter.java | 21 import android.database.Cursor; 36 * A cursor adapter for the {@link StructuredPostal#CONTENT_TYPE} content type. 102 return ((Cursor) getItem(position)).getString(PostalQuery.POSTAL_DISPLAY_NAME); 106 * Builds a {@link Data#CONTENT_URI} for the current cursor 110 long id = ((Cursor)getItem(position)).getLong(PostalQuery.POSTAL_ID); 116 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 117 ContactListItemView view = super.newView(context, partition, cursor, position, parent); 125 protected void bindView(View itemView, int partition, Cursor cursor, int position) [all...] |
/packages/apps/Dialer/src/com/android/dialer/filterednumber/ |
ViewNumbersToImportAdapter.java | 19 import android.database.Cursor; 48 public void bindView(View view, Context context, Cursor cursor) { 49 super.bindView(view, context, cursor); 51 final String number = cursor.getString(
|
/packages/apps/Dialer/tests/src/com/android/dialer/database/ |
FilteredNumberProviderTest.java | 23 import android.database.Cursor; 62 Cursor cursor = mResolver.query( local 64 assertNotNull(cursor); 65 assertEquals(cursor.getCount(), 0); 66 cursor.close(); 75 Cursor cursor = mResolver.query(uri, null, null, null, null); local 76 assertNotNull(cursor); 77 assertEquals(cursor.getCount(), 1) 102 Cursor cursor = mResolver.query( local 129 Cursor cursor = mResolver.query(uri, null, null, null, null); local 155 Cursor cursor = mResolver.query(uri, null, null, null, null); local 172 Cursor cursor = mResolver.query(uri, null, null, null, null); local [all...] |
/packages/apps/Gallery2/src/com/android/photos/shims/ |
MediaItemsLoader.java | 21 import android.database.Cursor; 42 * Returns all MediaItems in a MediaSet, wrapping them in a cursor to appear 45 public class MediaItemsLoader extends AsyncTaskLoader<Cursor> implements LoaderCompatShim<Cursor> { 108 public Cursor loadInBackground() { 111 final MatrixCursor cursor = new MatrixCursor(PhotoSetLoader.PROJECTION); local 133 cursor.addRow(row); 140 return cursor; 144 public Drawable drawableForItem(Cursor item, Drawable recycle) { 161 public Uri uriForItem(Cursor item) [all...] |
MediaSetLoader.java | 21 import android.database.Cursor; 39 * Returns all MediaSets in a MediaSet, wrapping them in a cursor to appear 42 public class MediaSetLoader extends AsyncTaskLoader<Cursor> implements LoaderCompatShim<Cursor>{ 106 public Cursor loadInBackground() { 109 final MatrixCursor cursor = new MatrixCursor(AlbumSetLoader.PROJECTION); local 125 cursor.addRow(row); 130 return cursor; 134 public Drawable drawableForItem(Cursor item, Drawable recycle) { 151 public Uri uriForItem(Cursor item) [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
CursorQueryData.java | 19 import android.database.Cursor; 30 * This class is used for cases where the way to load a cursor is not fixed. For example, 59 public Cursor performSynchronousQuery() { 77 * a null Cursor.
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
ConversationData.java | 22 import android.database.Cursor; 83 final Cursor c = new ConversationData.ReversedCursor( 107 public void onConversationMessagesCursorUpdated(ConversationData data, Cursor cursor, 118 public ReversedCursor(final Cursor cursor) { 119 super(cursor); 120 mCount = cursor.getCount(); 182 private class MetadataLoaderCallbacks implements LoaderManager.LoaderCallbacks<Cursor> { 184 public Loader<Cursor> onCreateLoader(final int id, final Bundle args) [all...] |
ConversationListData.java | 22 import android.database.Cursor; 41 implements LoaderManager.LoaderCallbacks<Cursor> { 54 public void onConversationListCursorUpdated(ConversationListData data, Cursor cursor); 84 public Loader<Cursor> onCreateLoader(final int id, final Bundle args) { 86 Loader<Cursor> loader = null; 118 public void onLoadFinished(final Loader<Cursor> generic, final Cursor data) { 147 public void onLoaderReset(final Loader<Cursor> generic) {
|
SelfParticipantsData.java | 19 import android.database.Cursor; 43 public void bind(final Cursor cursor) { 45 if (cursor != null) { 46 while (cursor.moveToNext()) { 47 final ParticipantData newParticipant = ParticipantData.getFromCursor(cursor);
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/ |
ContactPickerFragmentTest.java | 20 import android.database.Cursor; 104 * Bind the datamodel with all contacts cursor to populate the all contacts list in the 107 private ContactPickerFragmentTest loadWithAllContactsCursor(final Cursor cursor) { 114 getFragment().onAllContactsCursorUpdated(cursor); 122 * Bind the datamodel with frequent contacts cursor to populate the contacts list in the 125 private ContactPickerFragmentTest loadWithFrequentContactsCursor(final Cursor cursor) { 131 getFragment().onFrequentContactsCursorUpdated(cursor); 153 * Verifies that list view gets correctly populated given a cursor 156 final Cursor cursor = TestDataFactory.getAllContactListCursor(); local 168 final Cursor cursor = TestDataFactory.getFrequentContactListCursor(); local 177 final Cursor cursor = TestDataFactory.getFrequentContactListCursor(); local 197 final Cursor cursor = TestDataFactory.getFrequentContactListCursor(); local 210 final Cursor cursor = TestDataFactory.getFrequentContactListCursor(); local [all...] |
/packages/apps/QuickSearchBox/tests/slow/src/com/android/quicksearchbox/tests/slow/ |
SlowSuggestionProvider.java | 23 import android.database.Cursor; 46 public Cursor query(Uri uri, String[] projectionIn, String selection, 56 MatrixCursor cursor = new MatrixCursor(COLUMNS); local 58 cursor.addRow(new Object[]{ 66 return cursor;
|
/packages/apps/QuickSearchBox/tests/spammy/src/com/android/quicksearchbox/tests/spammy/ |
SpammySuggestionProvider.java | 23 import android.database.Cursor; 46 public Cursor query(Uri uri, String[] projectionIn, String selection, 50 MatrixCursor cursor = new MatrixCursor(COLUMNS); local 52 cursor.addRow(new Object[]{ 60 return cursor;
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/tests/ |
CrashingIconProvider.java | 20 import android.database.Cursor; 66 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
DownloadManagerWrapper.java | 23 import android.database.Cursor; 84 public Cursor query(final Query query) {
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
VoicemailTable.java | 20 import android.database.Cursor; 40 public Cursor query(UriData uriData, String[] projection, String selection,
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
PropertyUtils.java | 19 import android.database.Cursor; 54 final Cursor cursor = db.query(Tables.PROPERTIES, local 60 if (cursor.moveToFirst()) { 61 value = cursor.getString(0); 64 cursor.close();
|
/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...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
CursorAdapterTest.java | 20 import android.database.Cursor; 33 private Cursor curs; 104 public TestAdapter( Cursor curs ) { 109 public void bindView(View view, Context context, Cursor cursor) { } 112 public View newView(Context context, Cursor cursor, ViewGroup parent) {
|
CursorWrapperTest.java | 25 final Cursor mockCursor; 30 mockCursor = mock(Cursor.class); 34 // This works because no two methods in the Cursor interface have the same name 35 for (Method m : Cursor.class.getMethods()) { 98 Cursor mockCursor = mock(Cursor.class);
|
/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...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
DirectoryListLoader.java | 22 import android.database.Cursor; 38 public class DirectoryListLoader extends AsyncTaskLoader<Cursor> { 125 public Cursor loadInBackground() { 153 Cursor cursor = null; local 155 cursor = context.getContentResolver().query( 159 if (cursor == null) { 163 while(cursor.moveToNext()) { 164 long directoryId = cursor.getLong(DirectoryQuery.ID); 171 String packageName = cursor.getString(DirectoryQuery.PACKAGE_NAME) [all...] |
/packages/apps/Dialer/src/com/android/dialer/voicemail/ |
VoicemailArchiveActivity.java | 20 import android.database.Cursor; 138 public void onVoicemailStatusFetched(Cursor statusCursor) { 143 public void onVoicemailUnreadCountFetched(Cursor cursor) { 148 public void onMissedCallsUnreadCountFetched(Cursor cursor) { 153 public boolean onCallsFetched(Cursor cursor) { 154 mAdapter.changeCursorVoicemail(cursor); 155 boolean showListView = cursor != null && cursor.getCount() > 0 [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
ContactSectionIndexer.java | 18 import android.database.Cursor; 40 public ContactSectionIndexer(final Cursor contactsCursor) { 94 private boolean buildIndexerFromCursorExtras(final Cursor cursor) { 95 if (cursor == null) { 98 final Bundle cursorExtras = cursor.getExtras(); 129 private void buildIndexerFromDisplayNames(final Cursor cursor) { 130 // Loop through the contact cursor and get the starting position for each first character. 136 if (cursor != null) [all...] |
/external/clang/bindings/python/clang/ |
cindex.py | 36 Cursor 498 ### Cursor Kinds ### 527 """Get the enumeration name of this cursor kind.""" 547 A CursorKind describes the kind of entity that a cursor points to. 740 # while the type of the variable "size" is referenced. The cursor 1073 # Cursor that represents the translation unit itself. 1075 # The translation unit cursor exists primarily to act as the root cursor for 2393 def cursor(self): member in class:TranslationUnit 2827 def cursor(self): member in class:Token [all...] |