Search in sources :

Example 11 with CursorWindow

use of android.database.CursorWindow in project android_frameworks_base by ResurrectionRemix.

the class CursorWindowTest method testConstructorWithEmptyName.

@SmallTest
public void testConstructorWithEmptyName() {
    CursorWindow window = new CursorWindow("");
    assertEquals("<unnamed>", window.getName());
    assertEquals(0, window.getStartPosition());
    window.close();
}
Also used : CursorWindow(android.database.CursorWindow) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 12 with CursorWindow

use of android.database.CursorWindow in project android_frameworks_base by ResurrectionRemix.

the class CursorWindowTest method testConstructor_WithName.

@SmallTest
public void testConstructor_WithName() {
    CursorWindow window = new CursorWindow("MyWindow");
    assertEquals("MyWindow", window.getName());
    assertEquals(0, window.getStartPosition());
    window.close();
}
Also used : CursorWindow(android.database.CursorWindow) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 13 with CursorWindow

use of android.database.CursorWindow in project android_frameworks_base by DirtyUnicorns.

the class CursorWindowTest method testValues.

@SmallTest
public void testValues() {
    CursorWindow window = new CursorWindow("MyWindow");
    doTestValues(window);
    window.close();
}
Also used : CursorWindow(android.database.CursorWindow) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 14 with CursorWindow

use of android.database.CursorWindow in project android_frameworks_base by DirtyUnicorns.

the class CursorWindowTest method testDeprecatedConstructor.

@SmallTest
public void testDeprecatedConstructor() {
    @SuppressWarnings("deprecation") CursorWindow window = new CursorWindow(true);
    assertEquals("<unnamed>", window.getName());
    assertEquals(0, window.getStartPosition());
    window.close();
}
Also used : CursorWindow(android.database.CursorWindow) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 15 with CursorWindow

use of android.database.CursorWindow in project android_frameworks_base by crdroidandroid.

the class CursorWindowTest method testValues.

@SmallTest
public void testValues() {
    CursorWindow window = new CursorWindow("MyWindow");
    doTestValues(window);
    window.close();
}
Also used : CursorWindow(android.database.CursorWindow) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Aggregations

CursorWindow (android.database.CursorWindow)41 SmallTest (android.test.suitebuilder.annotation.SmallTest)30 DbStats (android.database.sqlite.SQLiteDebug.DbStats)6 Test (org.junit.Test)2 CrossProcessCursor (android.database.CrossProcessCursor)1 MatrixCursor (android.database.MatrixCursor)1 MutableBoolean (android.util.MutableBoolean)1 MutableInt (android.util.MutableInt)1 ArrayList (java.util.ArrayList)1 FastCursor (org.greenrobot.greendao.internal.FastCursor)1 DbStats (org.sqlite.database.sqlite.SQLiteDebug.DbStats)1