/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | SuggestionPosition.java | 26 private final SuggestionCursor mCursor; field in class:SuggestionPosition 35 mCursor = cursor; 40 return mCursor; 48 mCursor.moveTo(mPosition); 49 return mCursor; 58 return mCursor + ":" + mPosition;
|
H A D | CursorBackedSuggestionExtras.java | 37 private final Cursor mCursor; field in class:CursorBackedSuggestionExtras 87 mCursor = cursor; 95 mCursor.moveToPosition(mCursorPosition); 96 int columnIdx = mCursor.getColumnIndex(columnName); 98 return mCursor.getString(columnIdx);
|
H A D | SuggestionCursorWrapper.java | 28 private final SuggestionCursor mCursor; field in class:SuggestionCursorWrapper 32 mCursor = cursor; 36 if (mCursor != null) { 37 mCursor.close(); 42 return mCursor == null ? 0 : mCursor.getCount(); 46 return mCursor == null ? 0 : mCursor.getPosition(); 50 if (mCursor != null) { 51 mCursor [all...] |
H A D | SuggestionCursorBackedCursor.java | 60 private final SuggestionCursor mCursor; field in class:SuggestionCursorBackedCursor 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/Music/src/com/android/music/ |
H A D | 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; field in class:VideoBrowserActivity [all...] |
H A D | 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 220 private Cursor mCursor; field in class:MediaPickerActivity [all...] |
H A D | SortCursor.java | 31 private Cursor mCursor; // updated in onMove field in class:SortCursor 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 [all...] |
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ |
H A D | ApplicationLauncher.java | 39 private Cursor mCursor; field in class:ApplicationLauncher 63 mCursor = Applications.search(getContentResolver(), query); 64 startManagingCursor(mCursor); 66 ApplicationsAdapter adapter = new ApplicationsAdapter(this, mCursor); 72 if (mCursor == null) { 76 if (mCursor.isClosed()) { 80 if (!mCursor.moveToPosition(position)) { 84 Uri uri = ApplicationsAdapter.getColumnUri(mCursor, Applications.ApplicationColumns.URI);
|
/packages/apps/Browser/src/com/android/browser/ |
H A D | DownloadTouchIcon.java | 47 private Cursor mCursor; field in class:DownloadTouchIcon 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 [all...] |
H A D | DateSortedExpandableListAdapter.java | 41 private Cursor mCursor; field in class:DateSortedExpandableListAdapter 84 if (mCursor.moveToFirst() && mCursor.getCount() > 0) { 85 while (!mCursor.isAfterLast()) { 93 array[index] = mCursor.getCount() 94 - mCursor.getPosition(); 100 mCursor.moveToNext(); 116 return mCursor.getBlob(cursorIndex); 133 return mCursor.getInt(cursorIndex); 142 return mCursor [all...] |
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
H A D | SelectSyncedCalendarsMultiAccountActivity.java | 40 private Cursor mCursor = null; field in class:SelectSyncedCalendarsMultiAccountActivity 58 mCursor = managedQuery(Calendars.CONTENT_URI, PROJECTION, 62 MatrixCursor accountsCursor = Utils.matrixCursorFromCursor(mCursor);
|
H A D | SelectCalendarsSimpleAdapter.java | 60 private Cursor mCursor; field in class:SelectCalendarsSimpleAdapter 157 if (mCursor != null && c != mCursor) { 158 mCursor.close(); 161 mCursor = c; 167 mCursor = c;
|
H A D | SelectVisibleCalendarsFragment.java | 68 private Cursor mCursor; field in class:SelectVisibleCalendarsFragment 85 mCursor = cursor; 93 if (mCursor != null) { 95 mCursor.close(); 96 mCursor = null;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | ReorderingCursorWrapper.java | 26 private final Cursor mCursor; field in class:ReorderingCursorWrapper 41 mCursor = cursor; 48 mCursor.close(); 53 return mCursor.moveToPosition(mPositionMap[newPosition]); 58 return mCursor.getColumnNames(); 63 return mCursor.getCount(); 68 return mCursor.getDouble(column); 73 return mCursor.getFloat(column); 78 return mCursor.getInt(column); 83 return mCursor [all...] |
/packages/apps/Contacts/src/com/android/contacts/calllog/ |
H A D | ExtendedCursor.java | 34 private final Cursor mCursor; field in class:ExtendedCursor 48 mCursor = cursor; 55 return mCursor.getCount(); 60 String[] columnNames = mCursor.getColumnNames(); 70 if (column == mCursor.getColumnCount()) { 73 return mCursor.getString(column); 78 if (column == mCursor.getColumnCount()) { 81 return mCursor.getShort(column); 86 if (column == mCursor.getColumnCount()) { 89 return mCursor [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/calllog/ |
H A D | CallLogAdapterTest.java | 43 private MatrixCursor mCursor; field in class:CallLogAdapterTest 68 mCursor = new MatrixCursor(CallLogQuery.EXTENDED_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...] |
H A D | CallLogGroupBuilderTest.java | 43 private MatrixCursor mCursor; field in class:CallLogGroupBuilderTest 55 mCursor = null; 62 mBuilder.addGroups(mCursor); 68 mBuilder.addGroups(mCursor); 75 mBuilder.addGroups(mCursor); 83 mBuilder.addGroups(mCursor); 92 mBuilder.addGroups(mCursor); 104 mBuilder.addGroups(mCursor); 164 mBuilder.addGroups(mCursor); 229 mCursor [all...] |
/packages/apps/QuickSearchBox/tests/partial/src/com/android/quicksearchbox/tests/partial/ |
H A D | PartialSuggestionProvider.java | 37 private MutableMatrixCursor mCursor; field in class:PartialSuggestionProvider 53 mCursor.getExtras().putBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS, false); 54 addRows(mCursor, false); 55 mCursor.notifyChange(); 115 mCursor = cursor;
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
H A D | ComposingView.java | 92 private Drawable mCursor; field in class:ComposingView 114 mCursor = r.getDrawable(R.drawable.composing_area_cursor); 235 mCursor.setBounds((int) x, mPaddingTop, (int) x 236 + mCursor.getIntrinsicWidth(), getHeight() - mPaddingBottom); 237 mCursor.draw(canvas);
|
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/ |
H A D | DownloadAdapter.java | 47 private Cursor mCursor; field in class:DownloadAdapter 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 [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
H A D | BluetoothPbapCallLogComposer.java | 80 private Cursor mCursor; field in class:BluetoothPbapCallLogComposer 101 mCursor = mContentResolver.query( 104 if (mCursor == null) { 109 if (mCursor.getCount() == 0 || !mCursor.moveToFirst()) { 111 mCursor.close(); 116 mCursor = null; 125 if (mCursor == null || mCursor.isAfterLast()) { 132 mCursor [all...] |
/packages/apps/Browser/src/com/android/browser/homepages/ |
H A D | Template.java | 118 private Cursor mCursor;
field in class:Template.CursorListEntityWrapper 121 mCursor = cursor;
126 return mCursor.moveToNext();
131 mCursor.moveToPosition(-1);
140 return mCursor;
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
H A D | AlertActivity.java | 85 private Cursor mCursor; field in class:AlertActivity 113 // Only set mCursor if the Activity is not finishing. Otherwise close the cursor. 115 mCursor = cursor; 180 // Disable the buttons, since they need mCursor, which is created asynchronously 189 if (mCursor == null) { 194 if (!mCursor.requery()) { 196 mCursor.close(); 197 mCursor = null; 203 if (mCursor != null && !mCursor [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
H A D | GroupBrowseListAdapter.java | 45 private Cursor mCursor; field in class:GroupBrowseListAdapter 57 mCursor = cursor; 71 if (mSelectedGroupUri == null || mCursor == null || mCursor.getCount() == 0) { 76 mCursor.moveToPosition(-1); 77 while (mCursor.moveToNext()) { 78 long groupId = mCursor.getLong(GroupListLoader.GROUP_ID); 106 return mCursor == null ? 0 : mCursor.getCount(); 116 if (mCursor [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
H A D | MessageOrderManager.java | 66 private Cursor mCursor; field in class:MessageOrderManager 206 if (mCursor != null) { 207 mCursor.close(); 208 mCursor = null; 213 if (mCursor != null) { 214 mCurrentMessageId = mCursor.getLong(EmailContent.ID_PROJECTION_COLUMN); 254 if (mCursor == null) { 259 mCursor.moveToPosition(-1); 260 while (mCursor.moveToNext() 261 && mCursor [all...] |