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

12

/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,
108 private Cursor mCursor; field in class:VideoBrowserActivity
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/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSuggestionPosition.java26 private final SuggestionCursor mCursor; field in class:SuggestionPosition
35 mCursor = cursor;
43 mCursor.moveTo(mPosition);
44 return mCursor;
53 return mCursor + ":" + mPosition;
H A DSuggestionCursorWrapper.java26 private final SuggestionCursor mCursor; field in class:SuggestionCursorWrapper
30 mCursor = cursor;
34 if (mCursor != null) {
35 mCursor.close();
40 return mCursor == null ? 0 : mCursor.getCount();
44 return mCursor == null ? 0 : mCursor.getPosition();
48 if (mCursor != null) {
49 mCursor
[all...]
H A DSuggestionCursorBackedCursor.java55 private final SuggestionCursor mCursor; field in class:SuggestionCursorBackedCursor
58 mCursor = cursor;
68 return mCursor.getCount();
72 mCursor.moveTo(getPosition());
73 return mCursor;
/packages/apps/Browser/src/com/android/browser/
H A DDownloadTouchIcon.java42 private Cursor mCursor; field in class:DownloadTouchIcon
67 mCursor = BrowserBookmarksAdapter.queryBookmarksForUrl(mContentResolver,
69 if (mCursor != null && mCursor.getCount() > 0) {
101 if (mCursor != null) {
102 mCursor.close();
109 if (mCursor != null) {
110 mCursor.close();
121 if (icon == null || mCursor == null || isCancelled()) {
131 if (mCursor
[all...]
H A DDateSortedExpandableListAdapter.java47 private Cursor mCursor; field in class:DateSortedExpandableListAdapter
74 mCursor = cursor;
94 if (mCursor.moveToFirst() && mCursor.getCount() > 0) {
95 while (!mCursor.isAfterLast()) {
103 array[index] = mCursor.getCount()
104 - mCursor.getPosition();
110 mCursor.moveToNext();
125 return mCursor.getBlob(cursorIndex);
141 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/Contacts/tests/src/com/android/contacts/
H A DGroupingListAdapterTests.java53 private MatrixCursor mCursor; field in class:GroupingListAdapterTests
113 mCursor = new MatrixCursor(CALL_LOG_PROJECTION);
116 mCursor.addRow(new Object[]{mNextCall, number, 1000 - mNextCall});
123 mAdapter.changeCursor(mCursor);
133 mAdapter.changeCursor(mCursor);
142 mAdapter.changeCursor(mCursor);
154 mAdapter.changeCursor(mCursor);
165 mAdapter.changeCursor(mCursor);
175 mAdapter.changeCursor(mCursor);
189 mAdapter.changeCursor(mCursor);
[all...]
H A DRecentCallsListActivityTests.java76 private MatrixCursor mCursor; field in class:RecentCallsListActivityTests
104 mCursor = new MatrixCursor(CALL_LOG_PROJECTION);
120 mCursor.moveToFirst();
122 int startOfSecondBatch = mCursor.getPosition();
132 mCursor.move(startOfSecondBatch);
224 mCursor.moveToLast();
225 while(!mCursor.isBeforeFirst()) {
229 mAdapter.bindStandAloneView(mList[i], mActivity, mCursor);
230 mCursor.moveToPrevious();
268 MatrixCursor.RowBuilder row = mCursor
[all...]
/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/Calendar/src/com/android/calendar/
H A DDeleteEventHelper.java60 private Cursor mCursor; field in class:DeleteEventHelper
109 long id = mCursor.getInt(mEventIndexId);
202 mCursor = cursor;
203 mEventIndexId = mCursor.getColumnIndexOrThrow(Events._ID);
204 mEventIndexRrule = mCursor.getColumnIndexOrThrow(Events.RRULE);
205 int eventIndexSyncId = mCursor.getColumnIndexOrThrow(Events._SYNC_ID);
206 mSyncId = mCursor.getString(eventIndexSyncId);
211 String rRule = mCursor.getString(mEventIndexRrule);
247 int indexDtstart = mCursor.getColumnIndexOrThrow(Events.DTSTART);
248 int indexAllDay = mCursor
[all...]
H A DSelectCalendarsActivity.java42 private Cursor mCursor = null; field in class:SelectCalendarsActivity
63 mCursor = managedQuery(Calendars.CONTENT_URI, PROJECTION,
67 MatrixCursor accountsCursor = Utils.matrixCursorFromCursor(mCursor);
H A DAlertActivity.java97 private Cursor mCursor; field in class:AlertActivity
126 // Only set mCursor if the Activity is not finishing. Otherwise close the cursor.
128 mCursor = cursor;
227 // Disable the buttons, since they need mCursor, which is created asynchronously
237 if (mCursor == null) {
242 mCursor.requery();
251 if (mCursor != null) {
252 mCursor.deactivate();
259 if (mCursor != null) {
260 mCursor
[all...]
/packages/apps/Camera/src/com/android/camera/gallery/
H A DBaseImageList.java40 protected Cursor mCursor; field in class:BaseImageList
50 mCursor = createCursor();
52 if (mCursor == null) {
70 if (mCursor != null) {
71 mCursor.close();
72 mCursor = null;
105 if (mCursor == null) return null;
107 mCursor.requery();
110 return mCursor;
134 if (mCursor
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAlarmClock.java66 private Cursor mCursor; field in class:AlarmClock
203 mCursor = Alarms.getAlarmsCursor(getContentResolver());
211 AlarmTimeAdapter adapter = new AlarmTimeAdapter(this, mCursor);
247 mCursor.deactivate();
/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/apps/AlarmClock/src/com/android/alarmclock/
H A DAlarmClock.java70 private Cursor mCursor; field in class:AlarmClock
206 mCursor = Alarms.getAlarmsCursor(getContentResolver());
230 mAlarmsList.setAdapter(new AlarmTimeAdapter(this, mCursor));
265 mCursor.deactivate();
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapCallLogComposer.java81 private Cursor mCursor; field in class:BluetoothPbapCallLogComposer
106 mCursor = mContentResolver.query(
109 if (mCursor == null) {
132 if (mCursor.getCount() == 0 || !mCursor.moveToFirst()) {
134 mCursor.close();
139 mCursor = null;
154 if (mCursor == null || mCursor.isAfterLast()) {
167 mCursor
[all...]
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DBaseImageList.java44 protected Cursor mCursor; field in class:BaseImageList
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
[all...]
/packages/apps/Gallery3D/src/com/cooliris/media/
H A DSortCursor.java35 private Cursor mCursor; // updated in onMove field in class:SortCursor
79 mCursor = null;
86 if (mCursor == null || current == null || current.compareToIgnoreCase(smallest) < 0) {
88 mCursor = mCursors[j];
100 if (mCursor == null || comparison) {
102 mCursor = mCursors[j];
143 mCursor = mCursors[which];
145 if (mCursor == null) {
149 mCursor.moveToPosition(mCurRowNumCache[cache_entry][which]);
154 mCursor
[all...]
/packages/apps/Mms/src/com/android/mms/ui/
H A DManageSimMessages.java69 private Cursor mCursor = null; field in class:ManageSimMessages
126 mCursor = cursor;
127 if (mCursor != null) {
128 if (!mCursor.moveToFirst()) {
137 mParent, mCursor, mSimList, false, null);
142 mListAdapter.changeCursor(mCursor);
145 startManagingCursor(mCursor);
164 if (mCursor != null) {
165 stopManagingCursor(mCursor);
166 mCursor
[all...]
/packages/apps/Phone/src/com/android/phone/
H A DADNList.java65 protected Cursor mCursor = null; field in class:ADNList
89 if (mCursor != null) {
90 mCursor.deactivate();
145 mCursorAdapter.changeCursor(mCursor);
158 mCursor, COLUMN_NAMES, VIEW_NAMES);
177 mCursor = c;

Completed in 362 milliseconds

12