/cts/tests/tests/widget/src/android/widget/cts/ |
SimpleCursorAdapterTest.java | 58 * {@link SimpleCursorAdapterTest#mCursor} It will use internal 91 private Cursor mCursor; 98 mCursor = createTestCursor(DEFAULT_COLUMN_COUNT, ADAPTER_ROW_COUNT); 100 mCursor, COLUMNS_FROM, VIEWS_TO); 113 mCursor.moveToFirst(); 114 mSimpleCursorAdapter.bindView(listItem, null, mCursor); 117 mCursor.moveToLast(); 118 mSimpleCursorAdapter.bindView(listItem, null, mCursor); 126 mCursor.moveToFirst(); 127 mSimpleCursorAdapter.bindView(listItem, null, mCursor); [all...] |
ResourceCursorAdapterTest.java | 41 private Cursor mCursor; 51 mCursor = createTestCursor(3, 3); 60 adapter = new MockResourceCursorAdapter(mContext, R.layout.cursoradapter_item0, mCursor); 63 assertSame(mCursor, adapter.getCursor()); 66 R.layout.cursoradapter_item0, mCursor, false); 68 assertSame(mCursor, adapter.getCursor()); 73 R.layout.cursoradapter_item0, mCursor); 88 R.layout.cursoradapter_item0, mCursor); 112 R.layout.cursoradapter_item0, mCursor); 118 R.layout.cursoradapter_item1, mCursor); [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
ShortcutManager.java | 48 private Cursor mCursor; 61 mCursor = mContext.getContentResolver().query( 63 mCursor.registerContentObserver(this); 73 Cursor c = mCursor;
|
/packages/apps/Music/src/com/android/music/ |
MediaPickerActivity.java | 71 if (mCursor != null) { 72 mCursor.close(); 81 if (null == mCursor || 0 == mCursor.getCount()) { 88 mCursor, 98 mCursor.moveToPosition(position); 99 String type = mCursor.getString(mCursor.getColumnIndexOrThrow( 109 mediaId = mCursor.getLong(mCursor.getColumnIndexOrThrow [all...] |
MediaPlaybackService.java | 121 private Cursor mCursor; 202 if (mCursor != null) { 203 mCursor.close(); 204 mCursor = null; 207 mCursor = getCursorForId(mPlayList[mPlayPos]); 390 if (mCursor != null) { 391 mCursor.close(); 392 mCursor = null; [all...] |
/packages/apps/Browser/src/com/android/browser/ |
DownloadTouchIcon.java | 47 private Cursor mCursor; 104 mCursor = Bookmarks.queryCombinedForUrl(mContentResolver, 108 boolean inDatabase = mCursor != null && mCursor.getCount() > 0; 156 if (mCursor != null) { 157 mCursor.close(); 169 if (mCursor != null) { 170 mCursor.close(); 181 if (icon == null || mCursor == null || isCancelled()) { 185 if (mCursor.moveToFirst()) [all...] |
/packages/apps/Music/tests/src/com/android/music/functional/ |
TestSongs.java | 120 Cursor mCursor; 132 mCursor = resolver.query(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 136 mCursor.moveToFirst(); 139 assertEquals("New sorted Playlist title:", MusicPlayerNames.expectedPlaylistTitle[j], mCursor.getString(0)); 140 mCursor.moveToNext(); 153 Cursor mCursor; 162 mCursor = resolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 165 mCursor.moveToFirst(); 166 int isRingtoneSet = mCursor.getCount(); 179 Cursor mCursor; [all...] |
/packages/apps/QuickSearchBox/tests/partial/src/com/android/quicksearchbox/tests/partial/ |
PartialSuggestionProvider.java | 37 private MutableMatrixCursor mCursor; 53 mCursor.getExtras().putBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS, false); 54 addRows(mCursor, false); 55 mCursor.notifyChange(); 115 mCursor = cursor;
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SuggestionCursorBackedCursor.java | 60 private final SuggestionCursor mCursor; 64 mCursor = cursor; 70 mCursor.close(); 75 Collection<String> extraColumns = mCursor.getExtraColumns(); 90 return mCursor.getCount(); 94 mCursor.moveTo(getPosition()); 95 return mCursor;
|
/packages/apps/Settings/src/com/android/settings/ |
UserDictionarySettings.java | 70 private Cursor mCursor; 109 mCursor = createCursor(locale); 150 R.layout.user_dictionary_item, mCursor, 203 if (null == mCursor) return null; 204 mCursor.moveToPosition(position); 206 if (mCursor.isAfterLast()) return null; 208 return mCursor.getString( 209 mCursor.getColumnIndexOrThrow(UserDictionary.Words.WORD)); 213 if (null == mCursor) return null; 214 mCursor.moveToPosition(position) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
UserDictionarySettings.java | 104 private Cursor mCursor; 143 mCursor = createCursor(locale); 184 return new MyAdapter(getActivity(), R.layout.user_dictionary_item, mCursor, 244 if (null == mCursor) return null; 245 mCursor.moveToPosition(position); 247 if (mCursor.isAfterLast()) return null; 249 return mCursor.getString( 250 mCursor.getColumnIndexOrThrow(UserDictionary.Words.WORD)); 255 if (null == mCursor) return null; 256 mCursor.moveToPosition(position) [all...] |
/frameworks/opt/vcard/java/com/android/vcard/ |
VCardComposer.java | 141 private Cursor mCursor; 414 mCursor = cursor; 436 mCursor = mContentResolver.query( 438 if (mCursor == null) { 447 if (mCursor.getCount() == 0 || !mCursor.moveToFirst()) { 450 String.format("mCursor has an error (getCount: %d): ", mCursor.getCount())); 455 mIdColumn = mCursor.getColumnIndex(Contacts._ID); 485 final String vcard = createOneEntryInternal(mCursor.getString(mIdColumn) [all...] |
/packages/services/Telephony/src/com/android/phone/ |
ADNList.java | 67 protected Cursor mCursor = null; 91 if (mCursor != null) { 92 mCursor.deactivate(); 147 mCursorAdapter.changeCursor(mCursor); 160 mCursor, COLUMN_NAMES, VIEW_NAMES); 187 mCursor = c;
|
FdnList.java | 141 if (mCursor.moveToPosition(position)) { 142 String name = mCursor.getString(NAME_COLUMN); 143 String number = mCursor.getString(NUMBER_COLUMN); 154 if (mCursor.moveToPosition(getSelectedItemPosition())) { 155 String name = mCursor.getString(NAME_COLUMN); 156 String number = mCursor.getString(NUMBER_COLUMN);
|
SimContacts.java | 113 mCursor.moveToPosition(-1); 114 while (!mCanceled && mCursor.moveToNext()) { 115 actuallyImportOneSimContact(mCursor, resolver, mAccount); 209 if (mCursor.moveToPosition(position)) { 210 actuallyImportOneSimContact(mCursor, resolver, mAccount); 242 return new SimpleCursorAdapter(this, R.layout.sim_import_list_entry, mCursor, 268 item.setVisible(mCursor != null && mCursor.getCount() > 0); 290 if (mCursor == null) { 301 mProgressDialog.setMax(mCursor.getCount()) [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
ManageSimMessages.java | 69 private Cursor mCursor = null; 129 mCursor = cursor; 130 if (mCursor != null) { 131 if (!mCursor.moveToFirst()) { 140 mParent, mCursor, mSimList, false, null); 145 mListAdapter.changeCursor(mCursor); 148 startManagingCursor(mCursor); 168 if (mCursor != null) { 169 stopManagingCursor(mCursor); 170 mCursor.close() [all...] |
/development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/ |
NotesDbAdapter.java | 159 Cursor mCursor = 164 if (mCursor != null) { 165 mCursor.moveToFirst(); 167 return mCursor;
|
/development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/ |
NotesDbAdapter.java | 159 Cursor mCursor = 164 if (mCursor != null) { 165 mCursor.moveToFirst(); 167 return mCursor;
|
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/ |
NotesDbAdapter.java | 159 Cursor mCursor = 164 if (mCursor != null) { 165 mCursor.moveToFirst(); 167 return mCursor;
|
/development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/ |
NotesDbAdapter.java | 159 Cursor mCursor = 164 if (mCursor != null) { 165 mCursor.moveToFirst(); 167 return mCursor;
|
/development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/ |
NotesDbAdapter.java | 159 Cursor mCursor = 164 if (mCursor != null) { 165 mCursor.moveToFirst(); 167 return mCursor;
|
/development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/ |
NotesDbAdapter.java | 159 Cursor mCursor = 164 if (mCursor != null) { 165 mCursor.moveToFirst(); 167 return mCursor;
|
/cts/tests/tests/content/src/android/content/cts/ |
ContentQueryMapTest.java | 53 private Cursor mCursor; 71 mCursor = mResolver.query(DummyProvider.CONTENT_URI, PROJECTIONS, null, null, null); 72 assertNotNull(mCursor); 81 if (mCursor != null) { 82 mCursor.close(); 83 mCursor = null; 92 new ContentQueryMap(mCursor, DummyProvider.NAME, true, null); 94 new ContentQueryMap(mCursor, DummyProvider.VALUE, false, new Handler()); 97 new ContentQueryMap(mCursor, null, false, new Handler()); 111 mContentQueryMap = new ContentQueryMap(mCursor, DummyProvider.NAME, true, null) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowSimpleCursorAdapter.java | 320 * Create a map from an array of strings to an array of column-id integers in mCursor. 321 * If mCursor is null, the array will be discarded. 326 if (mCursor != null) { 333 mFrom[i] = mCursor.getColumnIndexOrThrow(from[i]); 377 if (!mCursor.moveToPosition(position)) { 382 v = newView(mContext, mCursor, parent); 386 bindView(v, mContext, mCursor); 393 mCursor.moveToPosition(position); 396 v = newDropDownView(mContext, mCursor, parent); 400 bindView(v, mContext, mCursor); [all...] |
/frameworks/base/media/java/android/media/ |
RingtoneManager.java | 213 private Cursor mCursor; 259 if (mCursor != null) { 361 if (mCursor != null && mCursor.requery()) { 362 return mCursor; 368 return mCursor = new SortCursor(new Cursor[] { internalCursor, mediaCursor }, 397 if (mCursor == null || !mCursor.moveToPosition(position)) { 401 return getUriFromCursor(mCursor);
|