HomeSort by relevance Sort by last modified time
    Searched refs:cursors (Results 1 - 25 of 70) sorted by null

1 2 3

  /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
291 """Ensure we can map cursors back to tokens."""
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
ProfileAndContactsLoader.java 85 List<Cursor> cursors = Lists.newArrayList(); local
87 cursors.add(loadProfile());
90 cursors.add(loadExtraContacts());
93 // correctly handles null cursors.
101 cursors.add(contactsCursor);
103 cursors.add(loadExtraContacts());
105 return new MergeCursor(cursors.toArray(new Cursor[cursors.size()])) {
  /external/libgdx/backends/gdx-backend-lwjgl3/src/com/badlogic/gdx/backends/lwjgl3/
Lwjgl3Cursor.java 31 static final Array<Lwjgl3Cursor> cursors = new Array<Lwjgl3Cursor>(); field in class:Lwjgl3Cursor
73 cursors.add(this);
81 cursors.removeValue(this, true);
89 for (int i = cursors.size - 1; i >= 0; i--) {
90 Lwjgl3Cursor cursor = cursors.get(i);
92 cursors.removeIndex(i).dispose();
  /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()]));
  /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)
  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
RecentsLoader.java 57 // previously returned cursors for filtering/sorting; this currently races
141 List<Cursor> cursors = new ArrayList<>(); local
155 cursors.add(filtered);
170 Log.d(TAG, "Found " + cursors.size() + " of " + mTasks.size() + " recent queries done");
177 if (cursors.size() > 0) {
178 merged = new MergeCursor(cursors.toArray(new Cursor[cursors.size()]));
  /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];
  /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
  /packages/apps/Music/src/com/android/music/
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
  /packages/apps/Messaging/src/com/android/messaging/ui/contact/
ContactRecipientAdapter.java 196 final Cursor[] cursors = new Cursor[]{cursorResult.personalCursor, local
198 for (Cursor cursor : cursors) {
  /frameworks/ex/common/java/com/android/common/contacts/
BaseEmailAddressAdapter.java 195 Cursor[] cursors = (Cursor[]) results.values; local
196 onDirectoryLoadFinished(constraint, cursors[0], cursors[1]);
  /packages/apps/Settings/src/com/android/settings/search/
Index.java 240 final Cursor[] cursors = new Cursor[2]; local
244 cursors[0] = database.rawQuery(primarySql, null);
254 cursors[1] = database.rawQuery(secondarySql, null);
256 return new MergeCursor(cursors);
    [all...]

Completed in 2578 milliseconds

1 2 3