/packages/apps/Music/src/com/android/music/ |
VideoBrowserActivity.java | 56 if (mCursor == null) { 61 if (mCursor.getCount() > 0) { 71 mCursor, 82 mCursor.moveToPosition(position); 83 String type = mCursor.getString(mCursor.getColumnIndexOrThrow(MediaStore.Video.Media.MIME_TYPE)); 103 mCursor = resolver.query(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, 110 if (mCursor != null) { 111 mCursor.close(); 116 private Cursor mCursor; [all...] |
SortCursor.java | 31 private Cursor mCursor; // updated in onMove 72 mCursor = null; 78 if (mCursor == null || current.compareToIgnoreCase(smallest) < 0) { 80 mCursor = mCursors[j]; 121 mCursor = mCursors[which]; 122 if (mCursor == null) { 126 mCursor.moveToPosition(mCurRowNumCache[cache_entry][which]); 131 mCursor = null; 172 mCursor = mCursors[smallestIdx]; 187 return mCursor.getString(column) [all...] |
/frameworks/base/core/java/android/widget/ |
CursorTreeAdapter.java | 402 private Cursor mCursor; 410 mCursor = cursor; 422 return mCursor; 426 if (mDataValid && mCursor != null) { 427 return mCursor.getCount(); 434 if (mDataValid && mCursor != null) { 435 if (mCursor.moveToPosition(position)) { 436 return mCursor.getLong(mRowIDColumn); 446 if (mDataValid && (mCursor != null) && mCursor.moveToPosition(position)) [all...] |
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/ |
DateSortedExpandableListAdapter.java | 47 private Cursor mCursor; 84 mCursor = cursor; 105 if (mCursor.moveToFirst() && mCursor.getCount() > 0) { 106 while (!mCursor.isAfterLast()) { 114 array[index] = mCursor.getCount() 115 - mCursor.getPosition(); 121 mCursor.moveToNext(); 136 return mCursor.getBlob(cursorIndex); 152 return mCursor.getInt(cursorIndex) [all...] |
DownloadAdapter.java | 47 private Cursor mCursor; 65 mCursor = cursor; 95 long downloadId = mCursor.getLong(mIdColumnId); 97 mCursor.getString(mFileNameColumnId), 98 mCursor.getString(mMediaTypeColumnId)); 103 String title = mCursor.getString(mTitleColumnId); 108 setTextForView(convertView, R.id.domain, mCursor.getString(mDescriptionColumnId)); 111 final int status = mCursor.getInt(mStatusColumnId); 125 Date date = new Date(mCursor.getLong(mDateColumnId)); 143 long totalBytes = mCursor.getLong(mTotalBytesColumnId) [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
CursorBackedSuggestionCursor.java | 37 protected final Cursor mCursor; 39 /** Column index of {@link SearchManager#SUGGEST_COLUMN_FORMAT} in @{link mCursor}. */ 42 /** Column index of {@link SearchManager#SUGGEST_COLUMN_TEXT_1} in @{link mCursor}. */ 45 /** Column index of {@link SearchManager#SUGGEST_COLUMN_TEXT_2} in @{link mCursor}. */ 48 /** Column index of {@link SearchManager#SUGGEST_COLUMN_TEXT_2_URL} in @{link mCursor}. */ 51 /** Column index of {@link SearchManager#SUGGEST_COLUMN_ICON_1} in @{link mCursor}. */ 54 /** Column index of {@link SearchManager#SUGGEST_COLUMN_ICON_1} in @{link mCursor}. */ 58 * in @{link mCursor}. 67 mCursor = cursor; 93 if (mCursor != null) [all...] |
CursorBackedSuggestionExtras.java | 37 private final Cursor mCursor; 87 mCursor = cursor; 95 mCursor.moveToPosition(mCursorPosition); 96 int columnIdx = mCursor.getColumnIndex(columnName); 98 return mCursor.getString(columnIdx);
|
/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
SmartDialCursorLoader.java | 44 private Cursor mCursor; 112 Cursor oldCursor = mCursor; 113 mCursor = cursor; 128 if (mCursor != null) { 130 deliverResult(mCursor); 132 if (mCursor == null) { 150 if (mCursor != null) { 151 releaseResources(mCursor); 152 mCursor = null;
|
/frameworks/base/core/java/com/android/internal/database/ |
SortCursor.java | 31 private Cursor mCursor; // updated in onMove 72 mCursor = null; 78 if (mCursor == null || current.compareToIgnoreCase(smallest) < 0) { 80 mCursor = mCursors[j]; 121 mCursor = mCursors[which]; 122 if (mCursor == null) { 126 mCursor.moveToPosition(mCurRowNumCache[cache_entry][which]); 131 mCursor = null; 172 mCursor = mCursors[smallestIdx]; 187 return mCursor.getString(column) [all...] |
/frameworks/base/core/java/android/content/ |
CursorLoader.java | 52 Cursor mCursor; 106 Cursor oldCursor = mCursor; 107 mCursor = cursor; 154 if (mCursor != null) { 155 deliverResult(mCursor); 157 if (takeContentChanged() || mCursor == null) { 185 if (mCursor != null && !mCursor.isClosed()) { 186 mCursor.close(); 188 mCursor = null [all...] |
/frameworks/support/v4/java/android/support/v4/content/ |
CursorLoader.java | 44 Cursor mCursor; 69 Cursor oldCursor = mCursor; 70 mCursor = cursor; 117 if (mCursor != null) { 118 deliverResult(mCursor); 120 if (takeContentChanged() || mCursor == null) { 148 if (mCursor != null && !mCursor.isClosed()) { 149 mCursor.close(); 151 mCursor = null [all...] |
/packages/apps/Gallery/src/com/android/camera/gallery/ |
BaseImageList.java | 44 protected Cursor mCursor; 54 mCursor = createCursor(); 56 if (mCursor == null) { 74 if (mCursor != null) { 75 mCursor.close(); 76 mCursor = null; 109 if (mCursor == null) return null; 111 mCursor.requery(); 114 return mCursor; 157 if (mCursor == null) return [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/content/ |
ObjectCursorLoader.java | 48 ObjectCursor<T> mCursor; 113 final Cursor oldCursor = mCursor; 114 mCursor = cursor; 134 if (mCursor != null) { 135 deliverResult(mCursor); 137 if (takeContentChanged() || mCursor == null) { 165 if (mCursor != null && !mCursor.isClosed()) { 166 mCursor.close(); 168 mCursor = null [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
CursorAdapterTest.java | 57 private Cursor mCursor; 74 mCursor = mDatabase.query("test", NUMBER_PROJECTION, null, null, null, null, null); 75 assertNotNull(mCursor); 84 if (null != mCursor) { 85 mCursor.close(); 86 mCursor = null; 94 new MockCursorAdapter(mContext, mCursor); 98 new MockCursorAdapter(mContext, mCursor, true); 129 cursorAdapter.init(mContext, mCursor, true); 131 assertSame(mCursor, cursorAdapter.getCursor()) [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
ComposingText.java | 63 protected int[] mCursor; 70 mCursor = new int[MAX_LAYER]; 73 mCursor[i] = 0; 83 Log.d("OpenWnn", " cur = " + mCursor[i]); 266 int cursor = mCursor[layer]; 280 mStringLayer[layer1].add(mCursor[layer1], str); 281 mCursor[layer1]++; 284 int pos = mCursor[i-1] - 1; 287 strLayer.add(mCursor[i], tmp); 288 mCursor[i]++ [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_TestDataBuilder.java | 64 private Cursor mCursor; 155 mCursor = mProvider.query(getUri(), null, null, null, null, null); 156 if (mCursor == null || !mCursor.moveToFirst()) { 187 mCursor = mProvider.query(getContentUri(), null, 190 if (mCursor == null || !mCursor.moveToFirst()) { 193 mId = mCursor.getLong(getColumnIndex(BaseColumns._ID)); 198 return mCursor.getLong(mCursor.getColumnIndex(columnName)) [all...] |
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
AlertActivity.java | 91 private Cursor mCursor; 103 if (mCursor == null) { 107 if (mCursor.isClosed()) { 111 if (!mCursor.moveToFirst()) { 118 long eventId = mCursor.getLong(INDEX_EVENT_ID); 119 long eventStart = mCursor.getLong(INDEX_BEGIN); 121 } while (mCursor.moveToNext()); 155 // Only set mCursor if the Activity is not finishing. Otherwise close the cursor. 157 mCursor = cursor; 225 // Disable the buttons, since they need mCursor, which is created asynchronousl [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/ |
CallLogFragmentTest.java | 87 private MatrixCursor mCursor; 131 mCursor = new MatrixCursor(CallLogQuery._PROJECTION); 147 mCursor.moveToFirst(); 149 int startOfSecondBatch = mCursor.getPosition(); 159 mCursor.move(startOfSecondBatch); 168 mCursor.moveToFirst(); 173 mAdapter.bindGroupView(view, getActivity(), mCursor, 3, false); 179 mCursor.moveToFirst(); 182 mAdapter.bindStandAloneView(view, getActivity(), mCursor); 188 mCursor.moveToFirst() [all...] |
CallLogAdapterTest.java | 43 private MatrixCursor mCursor; 68 mCursor = new MatrixCursor(CallLogQuery._PROJECTION); 69 mCursor.moveToFirst(); 78 mCursor = null; 84 mCursor.addRow(createCallLogEntry()); 87 mAdapter.bindStandAloneView(mView, getContext(), mCursor); 102 mCursor.addRow(createCallLogEntryWithCachedValues()); 105 mAdapter.bindStandAloneView(mView, getContext(), mCursor); 119 mCursor.addRow(createCallLogEntry()); 123 mAdapter.bindStandAloneView(mView, getContext(), mCursor); [all...] |
CallLogGroupBuilderTest.java | 43 private MatrixCursor mCursor; 55 mCursor = null; 62 mBuilder.addGroups(mCursor); 68 mBuilder.addGroups(mCursor); 75 mBuilder.addGroups(mCursor); 83 mBuilder.addGroups(mCursor); 92 mBuilder.addGroups(mCursor); 151 mBuilder.addGroups(mCursor); 216 mCursor = new MatrixCursor(CallLogQuery._PROJECTION); 229 mBuilder.addGroups(mCursor); [all...] |
/development/samples/NotePad/src/com/example/android/notepad/ |
NoteEditor.java | 77 private Cursor mCursor; 208 mCursor = managedQuery( 217 // (Must be done after mCursor is initialized.) 253 * mCursor is initialized, since onCreate() always precedes onResume for any running 256 if (mCursor != null) { 258 mCursor.requery(); 265 mCursor.moveToFirst(); 270 int colTitleIndex = mCursor.getColumnIndex(NotePad.Notes.COLUMN_NAME_TITLE); 271 String title = mCursor.getString(colTitleIndex); 289 int colNoteIndex = mCursor.getColumnIndex(NotePad.Notes.COLUMN_NAME_NOTE) [all...] |
/frameworks/ex/common/java/com/android/common/widget/ |
GroupingListAdapter.java | 60 private Cursor mCursor; 153 if (cursor == mCursor) { 157 if (mCursor != null) { 158 mCursor.unregisterContentObserver(mChangeObserver); 159 mCursor.unregisterDataSetObserver(mDataSetObserver); 160 mCursor.close(); 162 mCursor = cursor; 179 return mCursor; 190 if (mCursor == null) { 194 addGroups(mCursor); [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
SortingCursorWrapper.java | 35 private final Cursor mCursor; 42 mCursor = cursor; 101 return mCursor.getExtras(); 107 mCursor.close(); 112 return mCursor.moveToPosition(mPosition[newPosition]); 117 return mCursor.getColumnNames(); 122 return mCursor.getCount(); 127 return mCursor.getDouble(column); 132 return mCursor.getFloat(column); 137 return mCursor.getInt(column) [all...] |
/frameworks/ex/common/tests/src/com/android/common/widget/ |
GroupingListAdapterTests.java | 48 private MatrixCursor mCursor; 108 mCursor = new MatrixCursor(PROJECTION); 111 mCursor.addRow(new Object[]{mNextId, number}); 118 mAdapter.changeCursor(mCursor); 128 mAdapter.changeCursor(mCursor); 137 mAdapter.changeCursor(mCursor); 149 mAdapter.changeCursor(mCursor); 160 mAdapter.changeCursor(mCursor); 170 mAdapter.changeCursor(mCursor); 184 mAdapter.changeCursor(mCursor); [all...] |
/packages/apps/Browser/src/com/android/browser/ |
SuggestionsAdapter.java | 394 Cursor mCursor; 397 return mCursor.moveToNext(); 405 return (mCursor != null) ? mCursor.getCount() : 0; 409 if (mCursor != null) { 410 mCursor.close(); 422 if ((mCursor != null) && (!mCursor.isAfterLast())) { 423 String title = mCursor.getString(1); 424 String url = mCursor.getString(2) [all...] |