Searched defs:mCursor (Results 1 - 25 of 45) sorted by relevance

12

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSuggestionPosition.java26 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 DCursorBackedSuggestionExtras.java37 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 DSuggestionCursorWrapper.java28 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 DSuggestionCursorBackedCursor.java60 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 DVideoBrowserActivity.java56 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 DMediaPickerActivity.java71 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 DSortCursor.java31 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 DApplicationLauncher.java39 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 DDownloadTouchIcon.java47 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 DDateSortedExpandableListAdapter.java41 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 DSelectSyncedCalendarsMultiAccountActivity.java40 private Cursor mCursor = null; field in class:SelectSyncedCalendarsMultiAccountActivity
58 mCursor = managedQuery(Calendars.CONTENT_URI, PROJECTION,
62 MatrixCursor accountsCursor = Utils.matrixCursorFromCursor(mCursor);
H A DSelectCalendarsSimpleAdapter.java60 private Cursor mCursor; field in class:SelectCalendarsSimpleAdapter
157 if (mCursor != null && c != mCursor) {
158 mCursor.close();
161 mCursor = c;
167 mCursor = c;
H A DSelectVisibleCalendarsFragment.java68 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 DReorderingCursorWrapper.java26 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 DExtendedCursor.java34 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 DCallLogAdapterTest.java43 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 DCallLogGroupBuilderTest.java43 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 DPartialSuggestionProvider.java37 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 DComposingView.java92 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 DDownloadAdapter.java47 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 DBluetoothPbapCallLogComposer.java80 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 DTemplate.java118 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 DAlertActivity.java85 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 DGroupBrowseListAdapter.java45 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 DMessageOrderManager.java66 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...]

Completed in 525 milliseconds

12