/cts/tests/tests/database/src/android/database/cts/ |
DatabaseUtils_InsertHelperTest.java | 22 import android.database.Cursor; 100 Cursor cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); local 101 assertNotNull(cursor); 102 assertEquals(0, cursor.getCount()); 103 cursor.close(); 125 cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); 126 assertNotNull(cursor); 127 assertEquals(1, cursor.getCount()); 128 cursor.moveToFirst() 202 Cursor cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); local [all...] |
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
SQLiteProgramTest.java | 21 import android.database.Cursor; 90 Cursor cursor = null; local 92 cursor = mDatabase.query("test", new String[]{"text1"}, "where text1='a'", 98 if (cursor != null) { 99 cursor.close(); 103 cursor = mDatabase.query("test", new String[]{"text1"}, "where text1='a'", 109 if (cursor != null) { 110 cursor.close(); 140 Cursor cursor = mDatabase.query("test", new String[] { "text1", "text2", "num1", "image" } local 171 Cursor cursor = mDatabase.query("test", new String[] { "text1", "text2", "num1", "image" }, local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
BrowserTest.java | 25 import android.database.Cursor; 73 Cursor cursor = mProvider.query(Browser.BOOKMARKS_URI, null, null, null, null, null); local 74 while (cursor.moveToNext()) { 75 String[] colNames = cursor.getColumnNames(); 79 switch (cursor.getType(i)) { 80 case Cursor.FIELD_TYPE_BLOB: 81 value.put(colNames[i], cursor.getBlob(i)); 83 case Cursor.FIELD_TYPE_FLOAT: 84 value.put(colNames[i], cursor.getFloat(i)) 146 Cursor cursor; local 198 Cursor cursor; local 230 Cursor cursor; local 267 Cursor cursor; local [all...] |
ContactsContract_StatusUpdatesTest.java | 23 import android.database.Cursor; 148 Cursor cursor = mResolver.query(uri, null, null, null, null); local 150 assertTrue(cursor.moveToNext()); 153 assertNotNull(cursor.getString(cursor.getColumnIndexOrThrow( 156 assertNull(cursor.getString(cursor.getColumnIndexOrThrow( 160 cursor.close();
|
UserDictionary_WordsTest.java | 21 import android.database.Cursor; 69 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION, local 71 assertTrue(cursor.moveToFirst()); 73 cursor.getString(ID_INDEX))); 75 assertEquals(1, cursor.getCount()); 76 assertEquals(word, cursor.getString(WORD_INDEX)); 77 assertEquals(frequency, cursor.getInt(FREQUENCY_INDEX)); 78 assertNull(cursor.getString(LOCALE_INDEX)); 79 cursor.close() 93 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION, local [all...] |
/dalvik/dx/src/com/android/dx/io/instructions/ |
BaseCodeCursor.java | 27 private int cursor; field in class:BaseCodeCursor 34 this.cursor = 0; 38 public final int cursor() { method in class:BaseCodeCursor 39 return cursor; 44 int mapped = baseAddressMap.get(cursor); 45 return (mapped >= 0) ? mapped : cursor; 54 * Advance the cursor by the indicated amount. 57 cursor += amount;
|
ShortArrayCodeOutput.java | 45 int cursor = cursor(); local 47 if (cursor == array.length) { 51 short[] result = new short[cursor]; 52 System.arraycopy(array, 0, result, 0, cursor); 58 array[cursor()] = codeUnit;
|
/dalvik/libdex/ |
DexProto.h | 200 * pointer to a prototype and its parts, along with a cursor. 206 int cursor; member in struct:DexParameterIterator
|
/developers/samples/android/wearable/wear/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/db/ |
LocationDbHelper.java | 21 import android.database.Cursor; 119 Cursor cursor = db.query( local 130 int count = cursor.getCount(); 132 cursor.moveToFirst(); 133 while (!cursor.isAfterLast()) { 135 cal.setTimeInMillis(cursor.getLong(2)); 136 LocationEntry entry = new LocationEntry(cal, cursor.getDouble(1), 137 cursor.getDouble(0)); 139 cursor.moveToNext() [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
AutoComplete5.java | 23 import android.database.Cursor; 35 Cursor cursor = content.query(Contacts.CONTENT_URI, local 38 new AutoComplete4.ContactListAdapter(this, cursor);
|
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/utils/ |
CloseUtils.java | 19 import android.database.Cursor; 44 /** If the argument is non-null, close the cursor. */ 45 public static void closeQuietly(Cursor cursor) { 46 if (cursor != null) { 47 cursor.close();
|
/external/apache-http/src/org/apache/http/impl/io/ |
HttpRequestParser.java | 75 ParserCursor cursor = new ParserCursor(0, this.lineBuf.length()); local 76 RequestLine requestline = this.lineParser.parseRequestLine(this.lineBuf, cursor);
|
HttpResponseParser.java | 76 ParserCursor cursor = new ParserCursor(0, this.lineBuf.length()); local 77 StatusLine statusline = lineParser.parseStatusLine(this.lineBuf, cursor);
|
/external/ceres-solver/internal/ceres/ |
compressed_col_sparse_matrix_utils.cc | 53 for (int i = 0, cursor = 0; i < num_row_blocks; ++i) { 54 row_block_starts[i] = cursor; 55 cursor += row_blocks[i]; 101 for (int i = 0, cursor = 0; i < num_blocks ; ++i) { 102 block_starts[i] = cursor; 103 cursor += blocks[i]; 107 int cursor = 0; local 113 (*scalar_ordering)[cursor++] = block_position++;
|
/external/chromium_org/chrome/browser/ui/views/app_list/linux/ |
app_list_linux.cc | 55 const gfx::Point& cursor, 65 // Snap to the shelf edge. If the cursor is greater than the window 66 // width/height away, anchor to the corner. Otherwise, anchor to the cursor 78 if (positioner.GetCursorDistanceFromShelf(edge, cursor) > snap_distance) 81 return positioner.GetAnchorPointForShelfCursor(edge, cursor); 86 gfx::Point cursor = gfx::Screen::GetNativeScreen()->GetCursorScreenPoint(); local 89 gfx::Display display = screen->GetDisplayNearestPoint(cursor); 109 cursor,
|
/external/chromium_org/chrome/browser/ui/views/app_list/win/ |
app_list_win.cc | 17 // If the mouse cursor is less than this distance, in pixels, away from the 48 const gfx::Point& cursor, 65 // Snap to the taskbar edge. If the cursor is greater than kSnapDistance away, 66 // anchor to the corner. Otherwise, anchor to the cursor position. 74 if (positioner.GetCursorDistanceFromShelf(edge, cursor) > kSnapDistance) 77 return positioner.GetAnchorPointForShelfCursor(edge, cursor); 82 gfx::Point cursor = gfx::Screen::GetNativeScreen()->GetCursorScreenPoint(); local 85 gfx::Display display = screen->GetDisplayNearestPoint(cursor); 92 cursor,
|
/external/chromium_org/media/audio/sounds/ |
test_data.h | 32 virtual void OnStop(size_t cursor) OVERRIDE; 36 int cursor() const { return cursor_; } function in class:media::TestObserver
|
/external/chromium_org/third_party/icu/source/i18n/ |
uni2name.cpp | 88 int32_t cursor = offsets.start; local 95 while (cursor < limit) { 96 UChar32 c = text.char32At(cursor); 102 text.handleReplaceBetween(cursor, cursor+clen, str); 104 cursor += len; // advance cursor and adjust for new text 107 cursor += clen; 113 offsets.start = cursor;
|
/external/chromium_org/ui/base/cursor/ozone/ |
bitmap_cursor_factory_ozone.cc | 5 #include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h" 9 #include "ui/base/cursor/cursors_aura.h" 15 BitmapCursorOzone* ToBitmapCursorOzone(PlatformCursor cursor) { 16 return static_cast<BitmapCursorOzone*>(cursor); 19 PlatformCursor ToPlatformCursor(BitmapCursorOzone* cursor) { 20 return static_cast<PlatformCursor>(cursor); 31 return NULL; // NULL is used for hidden cursor. 34 // Create new owned image cursor from default aura bitmap for this type. 41 // Returned owned default cursor for this type. 48 BitmapCursorOzone* cursor = new BitmapCursorOzone(bitmap, hotspot) local 63 BitmapCursorOzone* cursor = ToBitmapCursorOzone(platform_cursor); local [all...] |
/external/chromium_org/ui/views/controls/button/ |
custom_button_unittest.cc | 64 // Position the widget in a way so that it is under the cursor. 65 gfx::Point cursor = gfx::Screen::GetScreenFor( local 68 widget_bounds.set_origin(cursor);
|
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/ |
BaseCodeCursor.java | 29 private int cursor; field in class:BaseCodeCursor 36 this.cursor = 0; 40 public final int cursor() { method in class:BaseCodeCursor 41 return cursor; 46 int mapped = baseAddressMap.get(cursor); 47 return (mapped >= 0) ? mapped : cursor; 56 * Advance the cursor by the indicated amount. 59 cursor += amount;
|
ShortArrayCodeOutput.java | 45 int cursor = cursor(); local 47 if (cursor == array.length) { 51 short[] result = new short[cursor]; 52 System.arraycopy(array, 0, result, 0, cursor); 58 array[cursor()] = codeUnit;
|
/external/icu/icu4c/source/i18n/ |
uni2name.cpp | 89 int32_t cursor = offsets.start; local 96 while (cursor < limit) { 97 UChar32 c = text.char32At(cursor); 103 text.handleReplaceBetween(cursor, cursor+clen, str); 105 cursor += len; // advance cursor and adjust for new text 108 cursor += clen; 114 offsets.start = cursor;
|
/external/libunwind/tests/ |
Gtest-exc.c | 54 unw_cursor_t cursor; local 59 if (unw_init_local (&cursor, &uc) < 0) 67 if (unw_step (&cursor) < 0) 72 unw_resume (&cursor); /* transfer control to exception handler */
|
Gtest-nomalloc.c | 57 unw_cursor_t cursor; local 63 if (unw_init_local (&cursor, &uc) < 0) 68 unw_get_reg (&cursor, UNW_REG_IP, &ip); 69 unw_get_reg (&cursor, UNW_REG_SP, &sp); 71 ret = unw_step (&cursor);
|