/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
AndroidDoubleClickStrategy.java | 45 int cursor = fCaretPosition - fStructuredDocumentRegion.getStartOffset(fTextRegion); local 47 if (cursor > ns) { 59 protected Point getWord(String string, int cursor) { 65 Point position = super.getWord(string, cursor); 67 assert cursor >= position.x && cursor <= position.y; local 74 if (nameStart != -1 && nameStart < cursor) { 82 int lastDot = string.lastIndexOf('.', cursor); 84 int next = string.indexOf('.', cursor);
|
/cts/tests/tests/provider/src/android/provider/cts/ |
VoicemailContractTest.java | 22 import android.database.Cursor; 100 Cursor cursor = mVoicemailProvider.query( local 104 assertTrue(cursor.moveToNext()); 105 assertEquals(insertCallsNumber, cursor.getString(NUMBER_INDEX)); 106 assertEquals(insertDate, cursor.getLong(DATE_INDEX)); 107 assertEquals(insertCallsDuration, cursor.getLong(DURATION_INDEX)); 108 assertEquals(mSourcePackageName, cursor.getString(SOURCE_PACKAGE_INDEX)); 109 assertEquals(insertSourceData, cursor.getString(SOURCE_DATA_INDEX)); 110 assertEquals(insertMimeType, cursor.getString(MIME_TYPE_INDEX)) 177 final Cursor cursor = mVoicemailProvider.query(mVoicemailContentUri, local 236 Cursor cursor = mStatusProvider.query( local [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/ |
IDBCursorWithValue.h | 56 DEFINE_TYPE_CASTS(IDBCursorWithValue, IDBCursor, cursor, cursor->isCursorWithValue(), cursor.isCursorWithValue());
|
/external/qemu/distrib/sdl-1.2.15/src/video/riscos/ |
SDL_riscosmouse_c.h | 26 /* The implementation dependent data for the window manager cursor */ 36 void RISCOS_FreeWMCursor(_THIS, WMcursor *cursor); 39 int RISCOS_ShowWMCursor(_THIS, WMcursor *cursor); 42 int WIMP_ShowWMCursor(_THIS, WMcursor *cursor);
|
/frameworks/base/core/java/android/content/ |
CursorEntityIterator.java | 19 import android.database.Cursor; 23 * Abstract implementation of EntityIterator that makes it easy to wrap a cursor 28 private final Cursor mCursor; 32 * Constructor that makes initializes the cursor such that the iterator points to the 34 * @param cursor the cursor that contains the rows that make up the entities 36 public CursorEntityIterator(Cursor cursor) { 38 mCursor = cursor; 43 * Returns the entity that the cursor is currently pointing to. This must take care to advanc [all...] |
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
TrackerDataHelper.java | 20 import android.database.Cursor; 106 * @return Cursor to data 108 public Cursor query(String tag, int limit) { 111 Cursor cursor = mContext.getContentResolver().query( local 114 if (cursor == null) { 115 return cursor; 117 int pos = (cursor.getCount() < limit ? 0 : cursor.getCount() - limit); 118 cursor.moveToPosition(pos) [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/list/ |
ContactListItemViewTest.java | 19 import android.database.Cursor; 57 Cursor cursor = createCursor("John Doe", "Doe John"); local 60 view.showDisplayName(cursor, 0, ContactsPreferences.DISPLAY_ORDER_PRIMARY); 66 Cursor cursor = createCursor("", ""); local 70 view.showDisplayName(cursor, 0, ContactsPreferences.DISPLAY_ORDER_PRIMARY); 76 Cursor cursor = createCursor("John Doe", "Doe John"); local 80 view.showDisplayName(cursor, 0, ContactsPreferences.DISPLAY_ORDER_PRIMARY) 88 Cursor cursor = createCursor("John Doe", "Doe John"); local 126 MatrixCursor cursor = new MatrixCursor(new String[]{"Name", "AlternateName"}); local [all...] |
/dalvik/dexgen/src/com/android/dexgen/util/ |
ByteArrayAnnotatedOutput.java | 44 /** {@code >= 0;} current output cursor */ 45 private int cursor; field in class:ByteArrayAnnotatedOutput 100 this.cursor = 0; 129 byte[] result = new byte[cursor]; 130 System.arraycopy(data, 0, result, 0, cursor); 136 return cursor; 141 if (cursor != expectedCursor) { 142 throw new ExceptionWithContext("expected cursor " + 143 expectedCursor + "; actual value: " + cursor); 149 int writeAt = cursor; [all...] |
/cts/tests/tests/tv/src/android/media/tv/cts/ |
TvContractTest.java | 24 import android.database.Cursor; 109 try (Cursor cursor = mContentResolver.query(mChannelsUri, projection, null, null, null)) { 110 while (cursor != null && cursor.moveToNext()) { 111 long channelId = cursor.getLong(0); 145 private static void verifyStringColumn(Cursor cursor, ContentValues expectedValues, 149 cursor.getString(cursor.getColumnIndex(columnName))) [all...] |
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/Unwind/ |
UnwindLevel1-gcc-ext.c | 85 // We create an unwind cursor then alter the IP to be pc 86 unw_cursor_t cursor; local 90 unw_init_local(&cursor, &uc); 91 unw_set_reg(&cursor, UNW_REG_IP, (unw_word_t)(long) pc); 92 if (unw_get_proc_info(&cursor, &info) == UNW_ESUCCESS) 103 unw_cursor_t cursor; local 106 unw_init_local(&cursor, &uc); 115 if (unw_step(&cursor) <= 0) { 116 _LIBUNWIND_TRACE_UNWINDING(" _backtrace: ended because cursor reached " 127 unw_get_proc_name(&cursor, functionName, 512, &offset) 153 unw_cursor_t cursor; local 171 unw_cursor_t *cursor = (unw_cursor_t *)context; local [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
LegacyPhoneNumberListAdapter.java | 21 import android.database.Cursor; 33 * A cursor adapter for the Phones.CONTENT_TYPE content type. 70 return ((Cursor)getItem(position)).getString(PHONE_DISPLAY_NAME_COLUMN_INDEX); 74 Cursor cursor = ((Cursor)getItem(position)); local 75 long id = cursor.getLong(PHONE_ID_COLUMN_INDEX); 81 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 83 super.newView(context, partition, cursor, position, parent) [all...] |
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
CallLogGroupBuilder.java | 19 import android.database.Cursor; 48 * @param cursorPosition The starting position of the group in the cursor. 103 * It assumes that the cursor will not change during its execution. 105 * @see GroupingListAdapter#addGroups(Cursor) 107 public void addGroups(Cursor cursor) { 108 final int count = cursor.getCount(); 120 cursor.moveToFirst(); 122 String firstNumber = cursor.getString(CallLogQuery.NUMBER); 124 int firstCallType = cursor.getInt(CallLogQuery.CALL_TYPE) [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
DirectoryTest.java | 22 import android.database.Cursor; 85 Cursor cursor = mResolver.query(contentUri, local 87 assertNotNull(cursor); 88 assertEquals(1, cursor.getCount()); 89 cursor.moveToFirst(); 90 assertEquals(contactId, cursor.getLong(0)); 91 assertEquals("John Doe", cursor.getString(1)); 92 cursor.close(); 111 Cursor cursor = mResolver.query(contentUri local [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
DownloadManagerTest.java | 26 import android.database.Cursor; 111 Cursor cursor = null; local 113 cursor = mDownloadManager.query(new Query().setFilterById(id)); 114 assertTrue(cursor.moveToNext()); 115 assertEquals(DownloadManager.STATUS_SUCCESSFUL, cursor.getInt( 116 cursor.getColumnIndex(DownloadManager.COLUMN_STATUS))); 117 assertEquals(MINIMUM_DOWNLOAD_BYTES, cursor.getInt( 118 cursor.getColumnIndex(DownloadManager.COLUMN_TOTAL_SIZE_BYTES))); 119 assertFalse(cursor.moveToNext()) 280 Cursor cursor = null; local 317 Cursor cursor = null; local 330 Cursor cursor = null; local 346 Cursor cursor= null; local 361 Cursor cursor = null; local 378 Cursor cursor = null; local [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
DownloadStorageProvider.java | 24 import android.database.Cursor; 82 private void copyNotificationUri(MatrixCursor result, Cursor cursor) { 83 result.setNotificationUri(getContext().getContentResolver(), cursor.getNotificationUri()); 92 public Cursor queryRoots(String[] projection) throws FileNotFoundException { 157 public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException { 165 Cursor cursor = null; local 167 cursor = mDm.query(new Query().setFilterById(Long.parseLong(docId))); 168 copyNotificationUri(result, cursor); 187 Cursor cursor = null; local 210 Cursor cursor = null; local 232 Cursor cursor = null; local [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaDocumentsProvider.java | 23 import android.database.Cursor; 105 private void copyNotificationUri(MatrixCursor result, Cursor cursor) { 106 result.setNotificationUri(getContext().getContentResolver(), cursor.getNotificationUri()); 190 public Cursor queryRoots(String[] projection) throws FileNotFoundException { 199 public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException { 205 Cursor cursor = null; local 212 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, 215 copyNotificationUri(result, cursor); 297 Cursor cursor = null; local 386 Cursor cursor = null; local 475 Cursor cursor = null; local 751 Cursor cursor = null; local 776 Cursor cursor = null; local 839 Cursor cursor = null; local 863 Cursor cursor = null; local 908 Cursor cursor = null; local [all...] |
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
AbstractPublicApiTest.java | 25 import android.database.Cursor; 60 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); local 62 if (cursor.getCount() > 0) { 63 cursor.moveToFirst(); 64 return (int) cursor.getLong(cursor.getColumnIndexOrThrow( 71 cursor.close(); 76 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)) local 87 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); local 176 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); local [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
MessageListAdapter.java | 23 import android.database.Cursor; 128 Context context, Cursor c, ListView listView, 157 public void bindView(View view, Context context, Cursor cursor) { 159 String type = cursor.getString(mColumnsMap.mColumnMsgType); 160 long msgId = cursor.getLong(mColumnsMap.mColumnMsgId); 162 MessageItem msgItem = getCachedMessageItem(type, msgId, cursor); 165 int position = cursor.getPosition(); 219 public View newView(Context context, Cursor cursor, ViewGroup parent) 282 Cursor cursor = (Cursor)getItem(position); local 304 Cursor cursor = getCursor(); local [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
ContactLoader.java | 29 import android.database.Cursor; 447 Cursor cursor = resolver.query(entityUri, ContactQuery.COLUMNS, null, null, local 449 if (cursor == null) { 450 Log.e(TAG, "No cursor returned in loadContactEntity"); 455 if (!cursor.moveToFirst()) { 456 cursor.close(); 461 Contact contact = loadContactHeaderData(cursor, contactUri); 472 long rawContactId = cursor.getLong(ContactQuery.RAW_CONTACT_ID); 477 rawContact = new RawContact(loadRawContactValues(cursor)); 727 Cursor cursor = getContext().getContentResolver().query( local 792 final Cursor cursor = getContext().getContentResolver().query(Groups.CONTENT_URI, local [all...] |
/external/apache-http/src/org/apache/http/message/ |
LineParser.java | 68 * @param cursor the parser cursor containing the current position and 77 ParserCursor cursor) throws ParseException; 90 * @param cursor the cursor at which to check for a protocol version, or 101 ParserCursor cursor); 108 * @param cursor the parser cursor containing the current position and 117 ParserCursor cursor) throws ParseException; 124 * @param cursor the parser cursor containing the current position and [all...] |
/external/chromium-trace/trace-viewer/src/ui/ |
tool_button.css | 11 cursor: pointer; 16 cursor: auto;
|
/external/chromium_org/content/renderer/ |
cursor_utils.cc | 15 bool GetWebKitCursorInfo(const WebCursor& cursor, 18 cursor.GetCursorInfo(&cursor_info); 31 WebCursor* cursor, 41 cursor->InitFromCursorInfo(web_cursor_info);
|
/external/clang/tools/clang-format/ |
clang-format.py | 43 # Determine the cursor position. 44 cursor = int(vim.eval('line2byte(line("."))+col(".")')) - 2 45 if cursor < 0: 46 print 'Couldn\'t determine cursor position. Is your file empty?' 57 command = [binary, '-lines', lines, '-style', style, '-cursor', str(cursor)] 80 vim.command('goto %d' % (output['Cursor'] + 1))
|
/external/libunwind/src/arm/ |
Gget_save_loc.c | 28 unw_get_save_loc (unw_cursor_t *cursor, int reg, unw_save_loc_t *sloc) 30 struct cursor *c = (struct cursor *) cursor;
|
/external/libunwind/src/ppc/ |
Gis_signal_frame.c | 31 unw_is_signal_frame (unw_cursor_t * cursor) 33 struct cursor *c = (struct cursor *) cursor;
|