/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SuggestionCursorWrapper.java | 28 private final SuggestionCursor mCursor; 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.moveTo(pos) [all...] |
SuggestionPosition.java | 26 private final SuggestionCursor mCursor; 35 mCursor = cursor; 40 return mCursor; 48 mCursor.moveTo(mPosition); 49 return mCursor; 58 return mCursor + ":" + mPosition;
|
CursorBackedSourceResult.java | 68 if (mCursor == null) return null; 69 return CursorBackedSuggestionExtras.createExtrasIfNecessary(mCursor, getPosition()); 73 if (mCursor == null) return null; 74 return CursorBackedSuggestionExtras.getExtraColumns(mCursor);
|
/frameworks/base/core/java/android/database/ |
CursorWrapper.java | 29 protected final Cursor mCursor; 36 mCursor = cursor; 45 return mCursor; 49 mCursor.close(); 53 return mCursor.isClosed(); 57 return mCursor.getCount(); 61 mCursor.deactivate(); 65 return mCursor.moveToFirst(); 69 return mCursor.getColumnCount(); 73 return mCursor.getColumnIndex(columnName) [all...] |
CrossProcessCursorWrapper.java | 47 if (mCursor instanceof CrossProcessCursor) { 48 final CrossProcessCursor crossProcessCursor = (CrossProcessCursor)mCursor; 53 DatabaseUtils.cursorFillWindow(mCursor, position, window); 58 if (mCursor instanceof CrossProcessCursor) { 59 final CrossProcessCursor crossProcessCursor = (CrossProcessCursor)mCursor; 68 if (mCursor instanceof CrossProcessCursor) { 69 final CrossProcessCursor crossProcessCursor = (CrossProcessCursor)mCursor;
|
CursorToBulkCursorAdaptor.java | 46 private CrossProcessCursor mCursor; 91 mCursor = (CrossProcessCursor)cursor; 93 mCursor = new CrossProcessCursorWrapper(cursor); 110 if (mCursor != null) { 112 mCursor.close(); 113 mCursor = null; 120 if (mCursor == null) { 143 d.columnNames = mCursor.getColumnNames(); 144 d.wantsAllOnMoveCalls = mCursor.getWantsAllOnMoveCalls(); 145 d.count = mCursor.getCount() [all...] |
MergeCursor.java | 45 mCursor = cursors[0]; 71 mCursor = null; 80 mCursor = mCursors[i]; 88 if (mCursor != null) { 89 boolean ret = mCursor.moveToPosition(newPosition - cursorStartPos); 98 return mCursor.getString(column); 104 return mCursor.getShort(column); 110 return mCursor.getInt(column); 116 return mCursor.getLong(column); 122 return mCursor.getFloat(column) [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/database/ |
CursorMapper.java | 24 private Cursor mCursor; 44 if (cursor != mCursor) { 45 mCursor = cursor; 46 bindColumns(mCursor); 48 return bind(mCursor);
|
/frameworks/base/core/java/android/content/ |
CursorEntityIterator.java | 28 private final Cursor mCursor; 38 mCursor = cursor; 39 mCursor.moveToFirst(); 63 return !mCursor.isAfterLast(); 84 return getEntityAndIncrementCursor(mCursor); 98 mCursor.moveToFirst(); 110 mCursor.close();
|
ContentQueryMap.java | 36 private volatile Cursor mCursor; 64 mCursor = cursor; 65 mColumnNames = mCursor.getColumnNames(); 66 mKeyColumn = mCursor.getColumnIndexOrThrow(columnNameOfKey); 91 mCursor.unregisterContentObserver(mContentObserver); 112 mCursor.registerContentObserver(mContentObserver); 131 final Cursor cursor = mCursor; 133 // If mCursor is null then it means there was a requery() in flight 134 // while another thread called close(), which nulls out mCursor. 170 mCursor.unregisterContentObserver(mContentObserver) [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
CursorObjectAdapter.java | 25 private Cursor mCursor; 58 if (cursor == mCursor) { 61 if (mCursor != null) { 62 mCursor.close(); 64 mCursor = cursor; 76 if (cursor == mCursor) { 77 return mCursor; 79 Cursor oldCursor = mCursor; 80 mCursor = cursor; 97 return mCursor; [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ReorderingCursorWrapper.java | 26 private final Cursor mCursor; 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.getLong(column) [all...] |
/cts/tests/tests/database/src/android/database/cts/ |
AbstractWindowedCursorTest.java | 34 private MockAbstractWindowedCursor mCursor; 41 mCursor = new MockAbstractWindowedCursor(); 47 mCursor.close(); 53 mCursor.setWindow(mWindow); 56 mCursor.moveToFirst(); 57 assertTrue(mCursor.isNull(COLUMN_INDEX0)); 62 assertFalse(mCursor.isNull(COLUMN_INDEX0)); 66 mCursor.setWindow(mWindow); 70 mCursor.moveToFirst(); 71 assertFalse(mCursor.isBlob(COLUMN_INDEX0)) [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
BaseCursorPagerAdapter.java | 41 protected Cursor mCursor; 73 if (mCursor != null && moveCursorTo(position)) { 74 return getItem(mContext, mCursor, position); 81 if (mCursor != null) { 82 return mCursor.getCount(); 90 if (mCursor == null) { 96 rowId = mCursor.getString(mRowIDColumn).hashCode(); 131 return mCursor != null; 138 return mCursor; 145 if (mCursor != null && moveCursorTo(position)) [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
RootCursorWrapper.java | 30 private final Cursor mCursor; 44 mCursor = cursor; 68 return mCursor.getExtras(); 74 mCursor.close(); 79 return mCursor.moveToPosition(newPosition); 94 return mCursor.getDouble(column); 99 return mCursor.getFloat(column); 104 return mCursor.getInt(column); 109 return mCursor.getLong(column); 114 return mCursor.getShort(column) [all...] |
FilteringCursorWrapper.java | 33 private final Cursor mCursor; 48 mCursor = cursor; 73 return mCursor.getExtras(); 79 mCursor.close(); 84 return mCursor.moveToPosition(mPosition[newPosition]); 89 return mCursor.getColumnNames(); 99 return mCursor.getDouble(column); 104 return mCursor.getFloat(column); 109 return mCursor.getInt(column); 114 return mCursor.getLong(column) [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
ContentResolverTest.java | 82 private Cursor mCursor; 115 if ( null != mCursor && !mCursor.isClosed() ) { 116 mCursor.close(); 119 if ( null != mCursor && !mCursor.isClosed() ) { 120 mCursor.close(); 304 mCursor = mContentResolver.query(TABLE1_URI, null, null, null, null); 306 assertNotNull(mCursor); 307 assertEquals(3, mCursor.getCount()) [all...] |
/development/apps/Development/src/com/android/development/ |
DataList.java | 40 mCursor = getContentResolver().query(intent.getData(), null, null, null, null); 46 if (mCursor != null) { 50 mCursor, 60 if (mCursor != null) { 61 mCursor.deactivate(); 69 if (mCursor != null) { 70 mCursor.requery(); 85 mCursor.moveToPosition(position); 89 String[] columnNames = mCursor.getColumnNames(); 91 String str = mCursor.getString(i) [all...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
ChromeBrowserProviderSuggestionsCursor.java | 42 private final Cursor mCursor; 45 mCursor = c; 55 return mCursor.getCount(); 62 return mCursor.getString(mCursor.getColumnIndex(BookmarkColumns._ID)); 66 return mCursor.getString(mCursor.getColumnIndex(BookmarkColumns.URL)); 68 return mCursor.getString(mCursor.getColumnIndex(BookmarkColumns.TITLE)); 71 return mCursor.getString(mCursor.getColumnIndex(BookmarkColumns.URL)) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowCursorAdapter.java | 51 if (this.mCursor == null || views.size() == 0 ) { 86 protected Cursor mCursor; 146 mCursor = c; 164 return mCursor; 172 if (mDataValid && mCursor != null) { 173 return mCursor.getCount(); 184 if (mDataValid && mCursor != null) { 185 mCursor.moveToPosition(position); 186 return mCursor; 197 if (mDataValid && mCursor != null) [all...] |
/developers/samples/android/content/WidgetData/Application/src/main/java/com/example/android/widgetdata/ |
WeatherWidgetService.java | 42 private Cursor mCursor; 57 if (mCursor != null) { 58 mCursor.close(); 63 return mCursor.getCount(); 70 if (mCursor.moveToPosition(position)) { 71 final int dayColIndex = mCursor.getColumnIndex(WeatherDataProvider.Columns.DAY); 72 final int tempColIndex = mCursor.getColumnIndex( 74 day = mCursor.getString(dayColIndex); 75 temp = mCursor.getInt(tempColIndex); 113 if (mCursor != null) [all...] |
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/ |
WeatherWidgetService.java | 47 private Cursor mCursor; 62 if (mCursor != null) { 63 mCursor.close(); 68 return mCursor.getCount(); 75 if (mCursor.moveToPosition(position)) { 76 final int dayColIndex = mCursor.getColumnIndex(WeatherDataProvider.Columns.DAY); 77 final int tempColIndex = mCursor.getColumnIndex( 79 day = mCursor.getString(dayColIndex); 80 temp = mCursor.getInt(tempColIndex); 118 if (mCursor != null) [all...] |
/frameworks/base/core/java/android/widget/ |
CursorAdapter.java | 53 protected Cursor mCursor; 169 mCursor = c; 192 return mCursor; 199 if (mDataValid && mCursor != null) { 200 return mCursor.getCount(); 210 if (mDataValid && mCursor != null) { 211 mCursor.moveToPosition(position); 212 return mCursor; 222 if (mDataValid && mCursor != null) { 223 if (mCursor.moveToPosition(position)) [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
CursorAdapter.java | 55 protected Cursor mCursor; 171 mCursor = c; 194 return mCursor; 201 if (mDataValid && mCursor != null) { 202 return mCursor.getCount(); 212 if (mDataValid && mCursor != null) { 213 mCursor.moveToPosition(position); 214 return mCursor; 224 if (mDataValid && mCursor != null) { 225 if (mCursor.moveToPosition(position)) [all...] |
/development/samples/NotePad/src/com/example/android/notepad/ |
TitleEditor.java | 53 private Cursor mCursor; 85 mCursor = managedQuery( 108 // Cursor object is not null. If it is *empty*, then mCursor.getCount() == 0. 109 if (mCursor != null) { 113 mCursor.moveToFirst(); 116 mText.setText(mCursor.getString(COLUMN_INDEX_TITLE)); 136 // Cursor object is not null. If it is *empty*, then mCursor.getCount() == 0. 138 if (mCursor != null) {
|