Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 25 of 516) sorted by relevance

12345678910>>...21

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DAbstractCursorTest.java24 private TestCursor cursor; field in AbstractCursorTest
28 cursor = new TestCursor(); in setUp()
33 cursor.theTable.add("Foobar"); in testMoveToFirst()
34 assertThat(cursor.moveToFirst(), equalTo(true)); in testMoveToFirst()
35 assertThat(cursor.getCount(), equalTo(1)); in testMoveToFirst()
40 assertThat(cursor.moveToFirst(), equalTo(false)); in testMoveToFirstEmptyList()
41 assertThat(cursor.getCount(), equalTo(0)); in testMoveToFirstEmptyList()
46 cursor.theTable.add("Foobar"); in testMoveToLast()
47 cursor.theTable.add("Bletch"); in testMoveToLast()
49 assertThat(cursor.moveToLast(), equalTo(true)); in testMoveToLast()
[all …]
DSQLiteCursorTest.java27 private SQLiteCursor cursor; field in SQLiteCursorTest
49 String[] columnNames = cursor.getColumnNames(); in testGetColumnNames()
57 String[] columnNames = cursor.getColumnNames(); in testGetColumnNamesEmpty()
66 assertThat(cursor.getColumnIndex("id"), equalTo(0)); in testGetColumnIndex()
67 assertThat(cursor.getColumnIndex("name"), equalTo(1)); in testGetColumnIndex()
72 assertThat(cursor.getColumnIndex("Fred"), equalTo(-1)); in testGetColumnIndexNotFound()
79 assertThat(cursor.getColumnIndex("id"), equalTo(0)); in testGetColumnIndexEmpty()
80 assertThat(cursor.getColumnIndex("name"), equalTo(1)); in testGetColumnIndexEmpty()
85 assertThat(cursor.getColumnIndexOrThrow("id"), equalTo(0)); in testGetColumnIndexOrThrow()
86 assertThat(cursor.getColumnIndexOrThrow("name"), equalTo(1)); in testGetColumnIndexOrThrow()
[all …]
DMatrixCursorTest.java32 MatrixCursor cursor = new MatrixCursor(new String[]{"a", "b", "c"}); in shouldAddRows() local
33 cursor.addRow(new Object[]{"foo", 10L, 0.1f}); in shouldAddRows()
34 cursor.addRow(new Object[]{"baz", 20L, null}); in shouldAddRows()
35 assertThat(cursor.getCount(), equalTo(2)); in shouldAddRows()
37 assertTrue(cursor.moveToFirst()); in shouldAddRows()
39 assertThat(cursor.getString(0), equalTo("foo")); in shouldAddRows()
40 assertThat(cursor.getLong(1), equalTo(10L)); in shouldAddRows()
41 assertThat(cursor.getFloat(2), equalTo(0.1f)); in shouldAddRows()
43 assertTrue(cursor.moveToNext()); in shouldAddRows()
45 assertThat(cursor.getString(0), equalTo("baz")); in shouldAddRows()
[all …]
DDatabaseTestBase.java93 …Cursor cursor = database.query("table_name", new String[]{"second_column", "first_column"}, null, … in testInsertAndQuery() local
95 assertThat(cursor.moveToFirst(), equalTo(true)); in testInsertAndQuery()
97 byte[] byteValueFromDatabase = cursor.getBlob(0); in testInsertAndQuery()
98 String stringValueFromDatabase = cursor.getString(1); in testInsertAndQuery()
116 … Cursor cursor = database.rawQuery("select second_column, first_column from table_name", null); in testInsertAndRawQuery() local
118 assertThat(cursor.moveToFirst(), equalTo(true)); in testInsertAndRawQuery()
120 byte[] byteValueFromDatabase = cursor.getBlob(0); in testInsertAndRawQuery()
121 String stringValueFromDatabase = cursor.getString(1); in testInsertAndRawQuery()
142 … Cursor cursor = database.rawQuery("select second_column, first_column from table_name", null); in testInsertOrThrow() local
143 assertThat(cursor.moveToFirst(), equalTo(true)); in testInsertOrThrow()
[all …]
/external/webkit/Source/WebCore/inspector/front-end/
DSourceHTMLTokenizer.js120 _stringToken: function(cursor, stringEnds) argument
124 return cursor;
129 return cursor;
142 nextToken: function(cursor) argument
147 if (cursor !== this._internalJavaScriptTokenizer._line.length) {
150 var result = this._internalJavaScriptTokenizer.nextToken(cursor);
154 } else if (cursor !== this._line.length)
159 if (cursor !== this._internalCSSTokenizer._line.length) {
162 var result = this._internalCSSTokenizer.nextToken(cursor);
166 } else if (cursor !== this._line.length)
[all …]
DSourceJavaScriptTokenizer.js76 nextToken: function(cursor) argument
78 var cursorOnEnter = cursor;
111 yych = this._charAt(cursor);
121 { this.tokenType = "javascript-comment"; return cursor; }
124 yych = this._charAt(YYMARKER = ++cursor);
127 ++cursor;
128 { this.tokenType = null; return cursor; }
131 yych = this._charAt(YYMARKER = ++cursor);
135 ++cursor;
137 { this.tokenType = "javascript-comment"; return cursor; }
[all …]
DSourceCSSTokenizer.js125 _stringToken: function(cursor, stringEnds) argument
131 return cursor;
139 nextToken: function(cursor) argument
141 var cursorOnEnter = cursor;
166 yych = this._charAt(cursor);
176 { this.tokenType = "css-comment"; return cursor; }
179 yych = this._charAt(YYMARKER = ++cursor);
182 ++cursor;
183 { this.tokenType = null; return cursor; }
186 yych = this._charAt(YYMARKER = ++cursor);
[all …]
/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/
DByteArrayInput.java41 private int cursor; field in ByteArrayInput
54 this.cursor = 0; in ByteArrayInput()
68 return cursor; in getCursor()
72 public void setCursor(int cursor) { in setCursor() argument
73 if (cursor < 0 || cursor >= data.length) in setCursor()
76 this.cursor = cursor; in setCursor()
81 if (cursor != expectedCursor) { in assertCursor()
83 expectedCursor + "; actual value: " + cursor); in assertCursor()
89 return data[cursor++]; in readByte()
94 int readAt = cursor; in readShort()
[all …]
DByteArrayOutput.java51 private int cursor; field in ByteArrayOutput
106 this.cursor = 0; in ByteArrayOutput()
135 byte[] result = new byte[cursor]; in toByteArray()
136 System.arraycopy(data, 0, result, 0, cursor); in toByteArray()
142 return cursor; in getCursor()
147 if (cursor != expectedCursor) { in assertCursor()
149 expectedCursor + "; actual value: " + cursor); in assertCursor()
155 int writeAt = cursor; in writeByte()
166 cursor = end; in writeByte()
171 int writeAt = cursor; in writeShort()
[all …]
DByteArrayAnnotatedOutput.java53 private int cursor; field in ByteArrayAnnotatedOutput
111 this.cursor = 0; in ByteArrayAnnotatedOutput()
140 byte[] result = new byte[cursor]; in toByteArray()
141 System.arraycopy(data, 0, result, 0, cursor); in toByteArray()
147 return cursor; in getCursor()
152 if (cursor != expectedCursor) { in assertCursor()
154 expectedCursor + "; actual value: " + cursor); in assertCursor()
160 int writeAt = cursor; in writeByte()
171 cursor = end; in writeByte()
176 int writeAt = cursor; in writeShort()
[all …]
/external/clang/test/Index/
Dget-cursor-macro-args.m2 // RUN: c-index-test -cursor-at=%S/get-cursor-macro-args.h:9:12 \
3 // RUN: -cursor-at=%S/get-cursor-macro-args.h:9:21 \
4 // RUN: -cursor-at=%S/get-cursor-macro-args.h:9:9 \
5 // RUN: -cursor-at=%S/get-cursor-macro-args.h:9:22 \
6 // RUN: -cursor-at=%S/get-cursor-macro-args.h:15:12 \
7 // RUN: -cursor-at=%S/get-cursor-macro-args.h:15:20 \
8 // RUN: %s -include %S/get-cursor-macro-args.h | FileCheck %s
11 // RUN: c-index-test -write-pch %t.pch -x objective-c-header %S/get-cursor-macro-args.h
12 // RUN: c-index-test -cursor-at=%S/get-cursor-macro-args.h:9:12 \
13 // RUN: -cursor-at=%S/get-cursor-macro-args.h:9:21 \
[all …]
/external/bison/lib/
Dhash.c183 struct hash_entry const *cursor = bucket; in hash_get_max_bucket_length() local
186 while (cursor = cursor->next, cursor) in hash_get_max_bucket_length()
211 struct hash_entry const *cursor = bucket; in hash_table_ok() local
218 while (cursor = cursor->next, cursor) in hash_table_ok()
264 struct hash_entry const *cursor; in hash_lookup() local
269 for (cursor = bucket; cursor; cursor = cursor->next) in hash_lookup()
270 if (entry == cursor->data || table->comparator (entry, cursor->data)) in hash_lookup()
271 return cursor->data; in hash_lookup()
310 struct hash_entry const *cursor; in hash_get_next() local
313 cursor = bucket; in hash_get_next()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/photon/
DSDL_ph_mouse.c34 void ph_FreeWMCursor(_THIS, WMcursor *cursor) in ph_FreeWMCursor() argument
48 SDL_free(cursor); in ph_FreeWMCursor()
53 WMcursor* cursor; in ph_CreateWMCursor() local
58 if ((cursor = (WMcursor*)SDL_malloc(sizeof(WMcursor))) == NULL) in ph_CreateWMCursor()
63 SDL_memset(cursor,0,sizeof(WMcursor)); in ph_CreateWMCursor()
65 cursor->ph_cursor = (PhCursorDef_t *) SDL_malloc(sizeof(PhCursorDef_t) + 32*4*2); in ph_CreateWMCursor()
67 if (cursor->ph_cursor == NULL) in ph_CreateWMCursor()
73 SDL_memset(cursor->ph_cursor,0,(sizeof(PhCursorDef_t) + 32*4*2)); in ph_CreateWMCursor()
75 cursor->ph_cursor->hdr.type =Ph_RDATA_CURSOR; in ph_CreateWMCursor()
76 cursor->ph_cursor->size1.x = (short)w; in ph_CreateWMCursor()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/wincommon/
DSDL_sysmouse.c90 void WIN_FreeWMCursor(_THIS, WMcursor *cursor) in WIN_FreeWMCursor() argument
93 if ( cursor->curs == GetCursor() ) in WIN_FreeWMCursor()
95 if ( cursor->curs != NULL ) in WIN_FreeWMCursor()
96 DestroyCursor(cursor->curs); in WIN_FreeWMCursor()
97 if ( cursor->ands != NULL ) in WIN_FreeWMCursor()
98 SDL_free(cursor->ands); in WIN_FreeWMCursor()
99 if ( cursor->xors != NULL ) in WIN_FreeWMCursor()
100 SDL_free(cursor->xors); in WIN_FreeWMCursor()
102 SDL_free(cursor); in WIN_FreeWMCursor()
109 WMcursor *cursor; in WIN_CreateWMCursor() local
[all …]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/android/database/
DSimpleTestCursorTest.java21 private SimpleTestCursor cursor; field in SimpleTestCursorTest
29 cursor = new SimpleTestCursor(); in setup()
30 shadowContentResolver.setCursor(uri, cursor); in setup()
34 cursor.setColumnNames(columnNames); in setup()
40 assertThat(cursor.uri, equalTo(uri)); in doingQueryShouldMakeQueryParamsAvailable()
41 assertThat(cursor.projection[0], equalTo("projection")); in doingQueryShouldMakeQueryParamsAvailable()
42 assertThat(cursor.selection, equalTo("selection")); in doingQueryShouldMakeQueryParamsAvailable()
43 assertThat(cursor.selectionArgs[0], equalTo("selection")); in doingQueryShouldMakeQueryParamsAvailable()
44 assertThat(cursor.sortOrder, equalTo("sortOrder")); in doingQueryShouldMakeQueryParamsAvailable()
49 cursor.setResults(new Object[][]{new Object[]{"aString", 1234L}}); in canGetStringsAndLongs()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/font/
DLetters.java116 LetterQuad cursor = l.getPrevious(); in update() local
117 while (cursor.isInvalid(block, ellipsisWidth) && !cursor.isLineStart()) { in update()
118 cursor = cursor.getPrevious(); in update()
120 cursor.setBitmapChar(ellipsis); in update()
121 cursor.update(block); in update()
122 cursor = cursor.getNext(); in update()
123 while (!cursor.isTail() && !cursor.isLineFeed()) { in update()
124 cursor.setBitmapChar(null); in update()
125 cursor.update(block); in update()
126 cursor = cursor.getNext(); in update()
[all …]
/external/linux-tools-perf/util/
Dcallchain.c203 fill_node(struct callchain_node *node, struct callchain_cursor *cursor) in fill_node() argument
207 node->val_nr = cursor->nr - cursor->pos; in fill_node()
211 cursor_node = callchain_cursor_current(cursor); in fill_node()
226 callchain_cursor_advance(cursor); in fill_node()
227 cursor_node = callchain_cursor_current(cursor); in fill_node()
233 struct callchain_cursor *cursor, in add_child() argument
239 fill_node(new, cursor); in add_child()
252 struct callchain_cursor *cursor, in split_add_child() argument
279 if (idx_total < cursor->nr) { in split_add_child()
281 add_child(parent, cursor, period); in split_add_child()
[all …]
Dcallchain.h99 struct callchain_cursor *cursor,
102 int callchain_merge(struct callchain_cursor *cursor,
111 static inline void callchain_cursor_reset(struct callchain_cursor *cursor) in callchain_cursor_reset() argument
113 cursor->nr = 0; in callchain_cursor_reset()
114 cursor->last = &cursor->first; in callchain_cursor_reset()
117 int callchain_cursor_append(struct callchain_cursor *cursor, u64 ip,
121 static inline void callchain_cursor_commit(struct callchain_cursor *cursor) in callchain_cursor_commit() argument
123 cursor->curr = cursor->first; in callchain_cursor_commit()
124 cursor->pos = 0; in callchain_cursor_commit()
129 callchain_cursor_current(struct callchain_cursor *cursor) in callchain_cursor_current() argument
[all …]
/external/dexmaker/src/dx/java/com/android/dx/util/
DByteArrayAnnotatedOutput.java45 private int cursor; field in ByteArrayAnnotatedOutput
109 this.cursor = 0; in ByteArrayAnnotatedOutput()
138 byte[] result = new byte[cursor]; in toByteArray()
139 System.arraycopy(data, 0, result, 0, cursor); in toByteArray()
145 return cursor; in getCursor()
150 if (cursor != expectedCursor) { in assertCursor()
152 expectedCursor + "; actual value: " + cursor); in assertCursor()
158 int writeAt = cursor; in writeByte()
169 cursor = end; in writeByte()
174 int writeAt = cursor; in writeShort()
[all …]
/external/apache-http/src/org/apache/http/message/
DBasicHeaderValueParser.java107 ParserCursor cursor = new ParserCursor(0, value.length()); in parseElements() local
108 return parser.parseElements(buffer, cursor); in parseElements()
114 final ParserCursor cursor) { in parseElements() argument
119 if (cursor == null) { in parseElements()
124 while (!cursor.atEnd()) { in parseElements()
125 HeaderElement element = parseHeaderElement(buffer, cursor); in parseElements()
158 ParserCursor cursor = new ParserCursor(0, value.length()); in parseHeaderElement() local
159 return parser.parseHeaderElement(buffer, cursor); in parseHeaderElement()
165 final ParserCursor cursor) { in parseHeaderElement() argument
170 if (cursor == null) { in parseHeaderElement()
[all …]
DBasicLineParser.java122 ParserCursor cursor = new ParserCursor(0, value.length()); in parseProtocolVersion() local
123 return parser.parseProtocolVersion(buffer, cursor); in parseProtocolVersion()
129 final ParserCursor cursor) in parseProtocolVersion() argument
135 if (cursor == null) { in parseProtocolVersion()
142 int indexFrom = cursor.getPos(); in parseProtocolVersion()
143 int indexTo = cursor.getUpperBound(); in parseProtocolVersion()
145 skipWhitespace(buffer, cursor); in parseProtocolVersion()
147 int i = cursor.getPos(); in parseProtocolVersion()
201 cursor.updatePos(blank); in parseProtocolVersion()
225 final ParserCursor cursor) { in hasProtocolVersion() argument
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/riscos/
DSDL_riscosmouse.c58 void RISCOS_FreeWMCursor(_THIS, WMcursor *cursor) in RISCOS_FreeWMCursor() argument
60 SDL_free(cursor->data); in RISCOS_FreeWMCursor()
61 SDL_free(cursor); in RISCOS_FreeWMCursor()
67 WMcursor *cursor; in RISCOS_CreateWMCursor() local
80 cursor = (WMcursor *)SDL_malloc(sizeof(*cursor)); in RISCOS_CreateWMCursor()
81 if ( cursor == NULL ) { in RISCOS_CreateWMCursor()
90 SDL_free(cursor); in RISCOS_CreateWMCursor()
95 cursor->w = w; in RISCOS_CreateWMCursor()
96 cursor->h = h; in RISCOS_CreateWMCursor()
97 cursor->hot_x = hot_x; in RISCOS_CreateWMCursor()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/bwindow/
DSDL_sysmouse.cc45 WMcursor *cursor; in BE_CreateWMCursor() local
60 cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor)); in BE_CreateWMCursor()
61 if ( cursor == NULL ) { in BE_CreateWMCursor()
65 cursor->bits = (char *)SDL_malloc(4+2*((allowed_x/8)*allowed_y)); in BE_CreateWMCursor()
66 if ( cursor->bits == NULL ) { in BE_CreateWMCursor()
67 SDL_free(cursor); in BE_CreateWMCursor()
71 cursor->bits[0] = allowed_y; /* Size of the cursor */ in BE_CreateWMCursor()
72 cursor->bits[1] = 1; /* Bit depth of cursor */ in BE_CreateWMCursor()
73 cursor->bits[2] = hot_y; in BE_CreateWMCursor()
74 cursor->bits[3] = hot_x; in BE_CreateWMCursor()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/maccommon/
DSDL_macmouse.c47 void Mac_FreeWMCursor(_THIS, WMcursor *cursor) in Mac_FreeWMCursor() argument
49 SDL_free(cursor); in Mac_FreeWMCursor()
55 WMcursor *cursor; in Mac_CreateWMCursor() local
59 cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor)); in Mac_CreateWMCursor()
60 if ( cursor == NULL ) { in Mac_CreateWMCursor()
64 SDL_memset(cursor, 0, sizeof(*cursor)); in Mac_CreateWMCursor()
75 SDL_memcpy(&cursor->curs.data[row], data, bytes); in Mac_CreateWMCursor()
79 SDL_memcpy(&cursor->curs.mask[row], mask, bytes); in Mac_CreateWMCursor()
82 cursor->curs.hotSpot.h = hot_x; in Mac_CreateWMCursor()
83 cursor->curs.hotSpot.v = hot_y; in Mac_CreateWMCursor()
[all …]
/external/clang/tools/libclang/
DCIndexHigh.cpp147 static enum CXChildVisitResult findFileIdRefVisit(CXCursor cursor, in findFileIdRefVisit() argument
150 CXCursor declCursor = clang_getCursorReferenced(cursor); in findFileIdRefVisit()
160 cursor = cxcursor::getSelectorIdentifierCursor(data->SelectorIdIdx, cursor); in findFileIdRefVisit()
164 if ((cursor.kind == CXCursor_ObjCClassMethodDecl || in findFileIdRefVisit()
165 cursor.kind == CXCursor_ObjCInstanceMethodDecl) && in findFileIdRefVisit()
166 cxcursor::getSelectorIdentifierIndex(cursor) == -1) in findFileIdRefVisit()
169 if (clang_isExpression(cursor.kind)) { in findFileIdRefVisit()
170 if (cursor.kind == CXCursor_DeclRefExpr || in findFileIdRefVisit()
171 cursor.kind == CXCursor_MemberRefExpr) { in findFileIdRefVisit()
174 } else if (cursor.kind == CXCursor_ObjCMessageExpr && in findFileIdRefVisit()
[all …]

12345678910>>...21