/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, 108 private Cursor mCursor; field in class:VideoBrowserActivity
|
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/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | SuggestionPosition.java | 26 private final SuggestionCursor mCursor; field in class:SuggestionPosition 35 mCursor = cursor; 43 mCursor.moveTo(mPosition); 44 return mCursor; 53 return mCursor + ":" + mPosition;
|
H A D | SuggestionCursorWrapper.java | 26 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 D | SuggestionCursorBackedCursor.java | 55 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 D | DownloadTouchIcon.java | 42 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 D | DateSortedExpandableListAdapter.java | 47 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 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/Contacts/tests/src/com/android/contacts/ |
H A D | GroupingListAdapterTests.java | 53 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 D | RecentCallsListActivityTests.java | 76 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 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/Calendar/src/com/android/calendar/ |
H A D | DeleteEventHelper.java | 60 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 D | SelectCalendarsActivity.java | 42 private Cursor mCursor = null; field in class:SelectCalendarsActivity 63 mCursor = managedQuery(Calendars.CONTENT_URI, PROJECTION, 67 MatrixCursor accountsCursor = Utils.matrixCursorFromCursor(mCursor);
|
H A D | AlertActivity.java | 97 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 D | BaseImageList.java | 40 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 D | AlarmClock.java | 66 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 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/apps/AlarmClock/src/com/android/alarmclock/ |
H A D | AlarmClock.java | 70 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 D | BluetoothPbapCallLogComposer.java | 81 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 D | BaseImageList.java | 44 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 D | SortCursor.java | 35 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 D | ManageSimMessages.java | 69 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 D | ADNList.java | 65 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;
|