Home
last modified time | relevance | path

Searched refs:mCursor (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/database/src/android/database/cts/
DAbstractWindowedCursorTest.java34 private MockAbstractWindowedCursor mCursor; field in AbstractWindowedCursorTest
41 mCursor = new MockAbstractWindowedCursor(); in setUp()
47 mCursor.close(); in tearDown()
53 mCursor.setWindow(mWindow); in testIsNull()
56 mCursor.moveToFirst(); in testIsNull()
57 assertTrue(mCursor.isNull(COLUMN_INDEX0)); in testIsNull()
62 assertFalse(mCursor.isNull(COLUMN_INDEX0)); in testIsNull()
66 mCursor.setWindow(mWindow); in testIsBlob()
70 mCursor.moveToFirst(); in testIsBlob()
71 assertFalse(mCursor.isBlob(COLUMN_INDEX0)); in testIsBlob()
[all …]
DCursorWrapperTest.java50 private Cursor mCursor; field in CursorWrapperTest
493 mCursor = getCursor(); in setupDatabase()
497 if (null != mCursor) { in closeDatabase()
498 mCursor.close(); in closeDatabase()
499 mCursor = null; in closeDatabase()
/cts/tests/tests/content/src/android/content/cts/
DContentResolverTest.java87 private Cursor mCursor; field in ContentResolverTest
120 if ( null != mCursor && !mCursor.isClosed() ) { in tearDown()
121 mCursor.close(); in tearDown()
124 if ( null != mCursor && !mCursor.isClosed() ) { in tearDown()
125 mCursor.close(); in tearDown()
308 mCursor = mContentResolver.query(TABLE1_URI, null, null, null, null); in testQuery()
310 assertNotNull(mCursor); in testQuery()
311 assertEquals(3, mCursor.getCount()); in testQuery()
312 assertEquals(3, mCursor.getColumnCount()); in testQuery()
314 mCursor.moveToLast(); in testQuery()
[all …]
DContentQueryMapTest.java55 private Cursor mCursor; field in ContentQueryMapTest
75 mCursor = mResolver.query(DummyProvider.CONTENT_URI, PROJECTIONS, null, null, null); in setUp()
76 assertNotNull(mCursor); in setUp()
85 if (mCursor != null) { in tearDown()
86 mCursor.close(); in tearDown()
87 mCursor = null; in tearDown()
97 new ContentQueryMap(mCursor, DummyProvider.NAME, true, null); in testConstructor()
99 new ContentQueryMap(mCursor, DummyProvider.VALUE, false, new Handler()); in testConstructor()
102 new ContentQueryMap(mCursor, null, false, new Handler()); in testConstructor()
117 mContentQueryMap = new ContentQueryMap(mCursor, DummyProvider.NAME, true, null); in testGetRows()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DCursorAdapterTest.java58 private Cursor mCursor; field in CursorAdapterTest
77 mCursor = mDatabase.query("test", NUMBER_PROJECTION, null, null, null, null, null); in setUp()
78 assertNotNull(mCursor); in setUp()
87 if (null != mCursor) { in tearDown()
88 mCursor.close(); in tearDown()
89 mCursor = null; in tearDown()
98 new MockCursorAdapter(mContext, mCursor); in testConstructor()
102 new MockCursorAdapter(mContext, mCursor, true); in testConstructor()
134 cursorAdapter.init(mContext, mCursor, true); in testInit()
136 assertSame(mCursor, cursorAdapter.getCursor()); in testInit()
[all …]
DResourceCursorAdapterTest.java42 private Cursor mCursor; field in ResourceCursorAdapterTest
52 mCursor = createTestCursor(3, 3); in setUp()
62 adapter = new MockResourceCursorAdapter(mContext, R.layout.cursoradapter_item0, mCursor); in testConstructor()
65 assertSame(mCursor, adapter.getCursor()); in testConstructor()
68 R.layout.cursoradapter_item0, mCursor, false); in testConstructor()
70 assertSame(mCursor, adapter.getCursor()); in testConstructor()
76 R.layout.cursoradapter_item0, mCursor); in testSetViewResource()
92 R.layout.cursoradapter_item0, mCursor); in testSetDropDownViewResource()
117 R.layout.cursoradapter_item0, mCursor); in testNewDropDownView()
123 R.layout.cursoradapter_item1, mCursor); in testNewDropDownView()
[all …]
DSimpleCursorAdapterTest.java89 private Cursor mCursor; field in SimpleCursorAdapterTest
96 mCursor = createTestCursor(DEFAULT_COLUMN_COUNT, ADAPTER_ROW_COUNT); in setUp()
101 mContext, R.layout.cursoradapter_item0, mCursor, COLUMNS_FROM, VIEWS_TO); in makeSimpleCursorAdapter()
117 mCursor.moveToFirst(); in testBindView()
118 simpleCursorAdapter.bindView(listItem, null, mCursor); in testBindView()
121 mCursor.moveToLast(); in testBindView()
122 simpleCursorAdapter.bindView(listItem, null, mCursor); in testBindView()
130 mCursor.moveToFirst(); in testBindView()
131 simpleCursorAdapter.bindView(listItem, null, mCursor); in testBindView()
138 mCursor.moveToLast(); in testBindView()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_TestDataBuilder.java64 private Cursor mCursor; field in ContactsContract_TestDataBuilder.Builder
155 mCursor = mProvider.query(getUri(), null, null, null, null, null); in load()
156 if (mCursor == null || !mCursor.moveToFirst()) { in load()
187 mCursor = mProvider.query(getContentUri(), null, in loadUsingValues()
190 if (mCursor == null || !mCursor.moveToFirst()) { in loadUsingValues()
193 mId = mCursor.getLong(getColumnIndex(BaseColumns._ID)); in loadUsingValues()
198 return mCursor.getLong(mCursor.getColumnIndex(columnName)); in getLong()
202 return mCursor.getString(mCursor.getColumnIndex(columnName)); in getString()
206 assertEquals(value, mCursor.getLong(getColumnIndex(columnName))); in assertColumn()
210 assertEquals(value, mCursor.getString(getColumnIndex(columnName))); in assertColumn()
[all …]