/external/clang/bindings/python/tests/cindex/ |
util.py | 52 """Obtain all cursors from a source object with a specific spelling. 54 This provides a convenient search mechanism to find all cursors with 58 If no cursors are found, an empty list is returned. 63 cursors = [] 66 cursors.append(cursor) 68 return cursors
|
test_cursor.py | 74 cursors = list(tu.cursor.get_children()) 75 assert len(cursors) > 0 77 cursor = cursors[0] 92 cursors = [] 95 cursors.append(cursor) 97 assert len(cursors) == 3 98 assert cursors[1].canonical == cursors[2].canonical 373 """Ensure we can map cursors back to tokens."""
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
FavoritesAndContactsLoader.java | 57 List<Cursor> cursors = Lists.newArrayList(); local 59 cursors.add(loadFavoritesContacts()); 62 cursors.add(contactsCursor); 63 return new MergeCursor(cursors.toArray(new Cursor[cursors.size()])) { 74 // correctly handles null cursors.
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
SuggestionsProvider.java | 93 ArrayList<Cursor> cursors = new ArrayList<Cursor>(); local 98 cursors.add(c); 102 cursors.add(new ContactsCursor().query(query)); 105 if (cursors.size() > 0) { 106 mergeCursor = new MergeCursor(cursors.toArray(new Cursor[cursors.size()]));
|
/external/python/cpython2/Lib/bsddb/test/ |
test_early_close.py | 76 # The "close" should close the child db handle also, with cursors 103 cursors=[] 113 cursors.extend([i.cursor() for j in xrange(32)]) 117 for i in cursors[::3] : 124 self.assertRaises(db.DBError, cursors[101].first) 126 cursors[80].first() 127 cursors[80].next() 130 self.assertRaises(db.DBError, cursors[80].next)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/bsddb/test/ |
test_early_close.py | 76 # The "close" should close the child db handle also, with cursors 103 cursors=[] 113 cursors.extend([i.cursor() for j in xrange(32)]) 117 for i in cursors[::3] : 124 self.assertRaises(db.DBError, cursors[101].first) 126 cursors[80].first() 127 cursors[80].next() 130 self.assertRaises(db.DBError, cursors[80].next)
|
/prebuilts/gdb/linux-x86/lib/python2.7/bsddb/test/ |
test_early_close.py | 76 # The "close" should close the child db handle also, with cursors 103 cursors=[] 113 cursors.extend([i.cursor() for j in xrange(32)]) 117 for i in cursors[::3] : 124 self.assertRaises(db.DBError, cursors[101].first) 126 cursors[80].first() 127 cursors[80].next() 130 self.assertRaises(db.DBError, cursors[80].next)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_early_close.py | 76 # The "close" should close the child db handle also, with cursors 103 cursors=[] 113 cursors.extend([i.cursor() for j in xrange(32)]) 117 for i in cursors[::3] : 124 self.assertRaises(db.DBError, cursors[101].first) 126 cursors[80].first() 127 cursors[80].next() 130 self.assertRaises(db.DBError, cursors[80].next)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_early_close.py | 76 # The "close" should close the child db handle also, with cursors 103 cursors=[] 113 cursors.extend([i.cursor() for j in xrange(32)]) 117 for i in cursors[::3] : 124 self.assertRaises(db.DBError, cursors[101].first) 126 cursors[80].first() 127 cursors[80].next() 130 self.assertRaises(db.DBError, cursors[80].next)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/sqlite3/test/ |
regression.py | 55 cursors = [con.cursor() for x in xrange(5)] 56 cursors[0].execute("create table test(x)") 58 cursors[0].executemany("insert into test(x) values (?)", [(x,) for x in xrange(10)]) 61 cursors[i].execute(" " * i + "select x from test") 76 # referenced in cursors weren't closed an could provoke " 79 cursors = [] 83 cursors.append(cur)
|
/prebuilts/gdb/linux-x86/lib/python2.7/sqlite3/test/ |
regression.py | 55 cursors = [con.cursor() for x in xrange(5)] 56 cursors[0].execute("create table test(x)") 58 cursors[0].executemany("insert into test(x) values (?)", [(x,) for x in xrange(10)]) 61 cursors[i].execute(" " * i + "select x from test") 76 # referenced in cursors weren't closed an could provoke " 79 cursors = [] 83 cursors.append(cur)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/sqlite3/test/ |
regression.py | 55 cursors = [con.cursor() for x in xrange(5)] 56 cursors[0].execute("create table test(x)") 58 cursors[0].executemany("insert into test(x) values (?)", [(x,) for x in xrange(10)]) 61 cursors[i].execute(" " * i + "select x from test") 76 # referenced in cursors weren't closed an could provoke " 79 cursors = [] 83 cursors.append(cur)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/sqlite3/test/ |
regression.py | 55 cursors = [con.cursor() for x in xrange(5)] 56 cursors[0].execute("create table test(x)") 58 cursors[0].executemany("insert into test(x) values (?)", [(x,) for x in xrange(10)]) 61 cursors[i].execute(" " * i + "select x from test") 76 # referenced in cursors weren't closed an could provoke " 79 cursors = [] 83 cursors.append(cur)
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
SyncMessagesAction.java | 160 // Cursors 161 final SyncCursorPair cursors = new SyncCursorPair(-1L, lowerBoundTimeMillis); local 162 final boolean inSync = cursors.isSynchronized(db); 239 // Cursors 240 final SyncCursorPair cursors = new SyncCursorPair(lowerBoundTimeMillis, local 244 lastTimestampMillis = syncCursorPair(db, cursors, smsToAdd, mmsToAdd, 269 * @param cursors cursor pair holding references to local and remote messages 278 private long syncCursorPair(final DatabaseWrapper db, final SyncCursorPair cursors, 293 cursors.query(db); 295 localTotal = cursors.getLocalCount() [all...] |
/external/libdrm/tests/modetest/ |
cursor.c | 61 static struct cursor cursors[MAX_CURSORS]; variable in typeref:struct:cursor 152 struct cursor *cursor = &cursors[i]; 173 struct cursor *cursor = &cursors[ncursors];
|
/frameworks/base/core/java/android/database/ |
MergeCursor.java | 20 * A convience class that lets you present an array of Cursors as a single linear Cursor. 21 * The schema of the cursors presented is entirely up to the creator of the MergeCursor, and 42 public MergeCursor(Cursor[] cursors) 44 mCursors = cursors; 45 mCursor = cursors[0];
|
/external/python/cpython2/Lib/sqlite3/test/ |
regression.py | 55 cursors = [con.cursor() for x in xrange(5)] 56 cursors[0].execute("create table test(x)") 58 cursors[0].executemany("insert into test(x) values (?)", [(x,) for x in xrange(10)]) 61 cursors[i].execute(" " * i + "select x from test") 76 # referenced in cursors weren't closed and could provoke " 79 cursors = [] 83 cursors.append(cur) 333 Connection.commit() did reset cursors, which made sqlite3 334 to return rows multiple times when fetched from cursors
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
RecentsLoader.java | 65 // previously returned cursors for filtering/sorting; this currently races 155 List<Cursor> cursors = new ArrayList<>(mTasks.size()); local 176 cursors.add(filtered); 195 "Found " + cursors.size() + " of " + totalQuerySize + " recent queries done"); 201 if (cursors.size() > 0) { 202 merged = new MergeCursor(cursors.toArray(new Cursor[cursors.size()]));
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_sqlite/ |
connection.h | 73 /* Lists of weak references to statements and cursors used within this connection */
75 PyObject* cursors;
member in struct:__anon5775 77 /* Counters for how many statements/cursors were created in the connection. May be
|
connection.c | 89 self->cursors = NULL;
166 /* Create lists of weak references to statements/cursors */
168 self->cursors = PyList_New(0);
169 if (!self->statements || !self->cursors) {
255 for (i = 0; i < PyList_Size(self->cursors); i++) {
256 weakref = PyList_GetItem(self->cursors, i);
291 Py_XDECREF(self->cursors);
310 if (PyList_Append(connection->cursors, weakref) != 0) {
834 for (i = 0; i < PyList_Size(self->cursors); i++) {
835 weakref = PyList_GetItem(self->cursors, i); [all...] |
/external/python/cpython2/Modules/_sqlite/ |
connection.h | 73 /* Lists of weak references to statements and cursors used within this connection */ 75 PyObject* cursors; member in struct:__anon30252 77 /* Counters for how many statements/cursors were created in the connection. May be
|
/cts/tests/tests/database/src/android/database/cts/ |
MergeCursorTest.java | 83 // if the items are not null, getCount() will return the sum of all cursors' count. 105 Cursor[] cursors = new Cursor[2]; local 106 cursors[0] = mDatabase.query(TABLE5_NAME, null, null, null, null, null, null); 107 assertEquals(1, cursors[0].getCount()); 109 cursors[1] = mCursors[1]; 110 assertTrue(cursors[1].getCount() > 0); 111 MergeCursor mergeCursor = new MergeCursor(cursors); 112 // MergeCursor should points to cursors[0] after moveToFirst. 119 // MergeCursor should points to cursors[1] moveToNext. 145 // Get cursors [all...] |
/external/autotest/site_utils/ |
db_replica_checker.py | 58 cursor = master_conn.cursor(MySQLdb.cursors.DictCursor) 70 cursor = replica_conn.cursor(MySQLdb.cursors.DictCursor)
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
SuggestionCursorUtil.java | 138 public static ListSuggestionCursor concat(SuggestionCursor... cursors) { 139 ListSuggestionCursor out = new ListSuggestionCursor(cursors[0].getUserQuery()); 140 for (SuggestionCursor cursor : cursors) {
|
/frameworks/base/core/java/com/android/internal/database/ |
SortCursor.java | 25 * A variant of MergeCursor that sorts the cursors being merged. If decent 55 public SortCursor(Cursor[] cursors, String sortcolumn) 57 mCursors = cursors; 112 * is used to avoid having to search all cursors from the start. 243 // All of the cursors may be empty, but they can still return
|