Home
last modified time | relevance | path

Searched refs:mCursor (Results 1 – 12 of 12) 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
500 mCursor = getCursor(); in setupDatabase()
504 if (null != mCursor) { in closeDatabase()
505 mCursor.close(); in closeDatabase()
506 mCursor = null; in closeDatabase()
/cts/tests/tests/content/src/android/content/cts/
DContentResolverTest.java106 private Cursor mCursor; field in ContentResolverTest
142 if ( null != mCursor && !mCursor.isClosed() ) { in tearDown()
143 mCursor.close(); in tearDown()
146 if ( null != mCursor && !mCursor.isClosed() ) { in tearDown()
147 mCursor.close(); in tearDown()
330 mCursor = mContentResolver.query(TABLE1_URI, null, null, null); in testQuery()
332 assertNotNull(mCursor); in testQuery()
333 assertEquals(3, mCursor.getCount()); in testQuery()
334 assertEquals(3, mCursor.getColumnCount()); in testQuery()
336 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/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DCircularBufferFloat.java23 private int mCursor; field in CircularBufferFloat
50 if ((mCursor + numSamples) > mData.length) { in write()
52 int numWrite1 = mData.length - mCursor; in write()
53 System.arraycopy(buffer, offset, mData, mCursor, numWrite1); in write()
57 mCursor = numWrite2; in write()
59 System.arraycopy(buffer, offset, mData, mCursor, numSamples); in write()
60 mCursor += numSamples; in write()
61 if (mCursor == mData.length) { in write()
62 mCursor = 0; in write()
93 int cursor = mCursor; // read once in case it gets updated by another thread in readMostRecent()
[all …]
/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderCursorTest.java63 private Cursor mCursor; field in AlertDialog_BuilderCursorTest
84 mCursor.moveToPosition(which); in onClick()
89 new String[] { mCursor.getString(1) } ); in onClick()
90 mCursor.requery(); in onClick()
146 if (mCursor != null) { in tearDown()
151 mCursor.close(); in tearDown()
152 mCursor = null; in tearDown()
167 mCursor = mDatabase.query("test", mProjectionWithoutChecked, in testSetCursor()
169 assertNotNull(mCursor); in testSetCursor()
174 mBuilder.setCursor(mCursor, mOnClickListener, TEXT_COLUMN_NAME); in testSetCursor()
[all …]
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_TestDataBuilder.java61 private Cursor mCursor; field in ContactsContract_TestDataBuilder.Builder
156 mCursor = mProvider.query(getUri(), null, null, null, null, null); in load()
157 if (mCursor == null || !mCursor.moveToFirst()) { in load()
188 mCursor = mProvider.query(getContentUri(), null, in loadUsingValues()
191 if (mCursor == null || !mCursor.moveToFirst()) { in loadUsingValues()
194 mId = mCursor.getLong(getColumnIndex(BaseColumns._ID)); in loadUsingValues()
199 return mCursor.isNull(mCursor.getColumnIndex(columnName)); in isNull()
203 return mCursor.getLong(mCursor.getColumnIndex(columnName)); in getLong()
207 return mCursor.getString(mCursor.getColumnIndex(columnName)); in getString()
211 assertEquals(value, mCursor.getLong(getColumnIndex(columnName))); in assertColumn()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DCursorAdapterTest.java75 private Cursor mCursor; field in CursorAdapterTest
93 mCursor = mDatabase.query("test", NUMBER_PROJECTION, null, null, null, null, null); in setup()
94 assertNotNull(mCursor); in setup()
103 if (null != mCursor) { in teardown()
104 mCursor.close(); in teardown()
105 mCursor = null; in teardown()
114 new MockCursorAdapter(mContext, mCursor); in testConstructor()
118 new MockCursorAdapter(mContext, mCursor, true); in testConstructor()
151 cursorAdapter.init(mContext, mCursor, true); in testInit()
153 assertSame(mCursor, cursorAdapter.getCursor()); in testInit()
[all …]
DSimpleCursorAdapterTest.java108 private Cursor mCursor; field in SimpleCursorAdapterTest
114 mCursor = createTestCursor(DEFAULT_COLUMN_COUNT, ADAPTER_ROW_COUNT); in setup()
119 mContext, R.layout.cursoradapter_item0, mCursor, COLUMNS_FROM, VIEWS_TO); in makeSimpleCursorAdapter()
137 mCursor.moveToFirst(); in testBindView()
138 simpleCursorAdapter.bindView(listItem, null, mCursor); in testBindView()
141 mCursor.moveToLast(); in testBindView()
142 simpleCursorAdapter.bindView(listItem, null, mCursor); in testBindView()
150 mCursor.moveToFirst(); in testBindView()
151 simpleCursorAdapter.bindView(listItem, null, mCursor); in testBindView()
152 verify(binder, times(1)).setViewValue(any(View.class), eq(mCursor), eq(1)); in testBindView()
[all …]
DResourceCursorAdapterTest.java56 private Cursor mCursor; field in ResourceCursorAdapterTest
64 mCursor = createTestCursor(3, 3); in setup()
75 adapter = new MockResourceCursorAdapter(mContext, R.layout.cursoradapter_item0, mCursor); in testConstructor()
78 assertSame(mCursor, adapter.getCursor()); in testConstructor()
81 R.layout.cursoradapter_item0, mCursor, false); in testConstructor()
83 assertSame(mCursor, adapter.getCursor()); in testConstructor()
90 R.layout.cursoradapter_item0, mCursor); in testSetViewResource()
107 R.layout.cursoradapter_item0, mCursor); in testSetDropDownViewResource()
133 R.layout.cursoradapter_item0, mCursor); in testNewDropDownView()
139 R.layout.cursoradapter_item1, mCursor); in testNewDropDownView()
[all …]
/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/
DManchesterEncoder.h41 , mCursor(samplesPerPulse) { in ManchesterEncoder()
59 return (mCursor < mSamplesPerPulseHalf) ? -1.0f : 1.0f; // one in nextFloat()
61 return (mCursor < mSamplesPerPulseHalf) ? 1.0f : -1.0f; // zero in nextFloat()
75 if (++mCursor >= mSamplesPerPulse) { in advanceSample()
76 mCursor = 0; in advanceSample()
93 int mCursor; variable
DRoundedManchesterEncoder.h75 float output = mCurrentSamples[mCursor]; in nextFloat()