Searched refs:mCursor (Results 1 - 25 of 58) sorted by relevance

123

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
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 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 DCursorBackedSourceResult.java68 if (mCursor == null) return null;
69 return CursorBackedSuggestionExtras.createExtrasIfNecessary(mCursor, getPosition());
73 if (mCursor == null) return null;
74 return CursorBackedSuggestionExtras.getExtraColumns(mCursor);
H A DCursorBackedSuggestionCursor.java37 protected final Cursor mCursor; field in class:CursorBackedSuggestionCursor
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 !
[all...]
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);
/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/Messaging/src/com/android/messaging/ui/
H A DCursorRecyclerAdapter.java51 protected Cursor mCursor; field in class:CursorRecyclerAdapter
121 mCursor = c;
148 return mCursor;
153 if (mDataValid && mCursor != null) {
154 return mCursor.getCount();
164 if (mDataValid && mCursor != null) {
165 mCursor.moveToPosition(position);
166 return mCursor;
177 if (mDataValid && mCursor != null) {
178 if (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/
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...]
H A DDownloadTouchIcon.java42 private Cursor mCursor; field in class:DownloadTouchIcon
95 mCursor = Bookmarks.queryCombinedForUrl(mContentResolver,
99 boolean inDatabase = mCursor != null && mCursor.getCount() > 0;
138 if (mCursor != null) {
139 mCursor.close();
151 if (mCursor != null) {
152 mCursor.close();
163 if (icon == null || mCursor == null || isCancelled()) {
167 if (mCursor
[all...]
H A DSuggestionsAdapter.java394 Cursor mCursor; field in class:SuggestionsAdapter.CursorSource
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
[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 || mCursor.isClosed()) ? 0 : mCursor
[all...]
/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 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/Messaging/tests/src/com/android/messaging/ui/conversationlist/
H A DConversationListItemViewTest.java46 private FakeCursor mCursor; field in class:ConversationListItemViewTest
55 mCursor = TestDataFactory.getConversationListCursor();
140 mCursor.moveToPosition(messageIndex);
141 assertFalse(isRead(mCursor, messageIndex));
142 view.bind(mCursor, mockHost);
143 verifyContent(view, mCursor, messageIndex);
150 mCursor.moveToPosition(messageIndex);
151 assertTrue(isRead(mCursor, messageIndex));
152 view.bind(mCursor, mockHost);
153 verifyContent(view, mCursor, messageInde
[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/UnifiedEmail/src/com/android/mail/content/
H A DObjectCursorLoader.java48 ObjectCursor<T> mCursor; field in class:ObjectCursorLoader
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
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DComposingText.java63 protected int[] mCursor; field in class:ComposingText
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[
[all...]
/packages/apps/Calendar/src/com/android/calendar/alerts/
H A DAlertActivity.java91 private Cursor mCursor; field in class:AlertActivity
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, whic
[all...]
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DGroupingListAdapter.java65 private Cursor mCursor; field in class:GroupingListAdapter
142 if (cursor == mCursor) {
146 if (mCursor != null) {
147 mCursor.unregisterContentObserver(mChangeObserver);
148 mCursor.unregisterDataSetObserver(mDataSetObserver);
149 mCursor.close();
151 mCursor = cursor;
165 return mCursor;
176 if (mCursor == null) {
180 addGroups(mCursor);
[all...]
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
H A DGroupingListAdapterTests.java49 private MatrixCursor mCursor; field in class:GroupingListAdapterTests
97 mCursor = new MatrixCursor(PROJECTION);
100 mCursor.addRow(new Object[]{mNextId, number});
107 mAdapter.changeCursor(mCursor);
117 mAdapter.changeCursor(mCursor);
126 mAdapter.changeCursor(mCursor);
138 mAdapter.changeCursor(mCursor);
149 mAdapter.changeCursor(mCursor);
159 mAdapter.changeCursor(mCursor);
173 mAdapter.changeCursor(mCursor);
[all...]
H A DCallLogAdapterTest.java47 private MatrixCursor mCursor; field in class:CallLogAdapterTest
73 mCursor = new MatrixCursor(CallLogQuery._PROJECTION);
74 mCursor.moveToFirst();
84 mCursor = null;
90 mCursor.addRow(createCallLogEntry());
93 mAdapter.changeCursor(mCursor);
109 mCursor.addRow(createCallLogEntryWithCachedValues());
112 mAdapter.changeCursor(mCursor);
127 mCursor.addRow(createCallLogEntry());
131 mAdapter.changeCursor(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);
151 mBuilder.addGroups(mCursor);
216 mCursor = new MatrixCursor(CallLogQuery._PROJECTION);
229 mBuilder.addGroups(mCursor);
[all...]
/packages/apps/Dialer/src/com/android/dialer/dialpad/
H A DSmartDialCursorLoader.java45 private Cursor mCursor; field in class:SmartDialCursorLoader
119 Cursor oldCursor = mCursor;
120 mCursor = cursor;
141 if (mCursor != null) {
143 deliverResult(mCursor);
145 if (mCursor == null) {
168 if (mCursor != null) {
169 releaseResources(mCursor);
170 mCursor = null;
/packages/apps/Messaging/src/com/android/messaging/widget/
H A DBaseWidgetFactory.java59 protected Cursor mCursor; field in class:BaseWidgetFactory
90 if (mCursor != null && !mCursor.isClosed()) {
91 mCursor.close();
92 mCursor = null;
103 if (mCursor != null) {
104 mCursor.close();
105 mCursor = null;
109 mCursor = doQuery();
127 if (mCursor
[all...]

Completed in 324 milliseconds

123