HomeSort by relevance Sort by last modified time
    Searched full:cursor (Results 126 - 150 of 3722) sorted by null

1 2 3 4 56 7 8 91011>>

  /packages/experimental/LoaderApp/src/com/android/loaderapp/
CursorFactoryListAdapter.java 23 import android.database.Cursor;
35 public void bindView(View view, Context context, Cursor cursor);
55 public void bindView(View view, Context context, Cursor cursor) {
57 name.setText(cursor.getString(ContactsListLoader.COLUMN_NAME));
62 super(context, null, /* disable content observers for the cursor */0);
67 public View newView(Context context, Cursor cursor, ViewGroup parent) {
69 mViewFactory.bindView(view, context, cursor);
    [all...]
  /external/chromium_org/third_party/yasm/source/patched-yasm/tools/re2c/
scanner.re 15 #define YYCURSOR cursor
18 #define YYFILL(n) {cursor = fill(s, cursor);}
20 #define RETURN(i) {s->cur = cursor; return i;}
35 fill(Scanner *s, unsigned char *cursor)
43 cursor -= cnt;
52 cursor = &buf[cursor - s->bot];
65 return cursor;
84 unsigned char *cursor = s->cur
    [all...]
  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DocumentInfo.java 21 import android.database.Cursor;
140 public static DocumentInfo fromDirectoryCursor(Cursor cursor) {
141 final String authority = getCursorString(cursor, RootCursorWrapper.COLUMN_AUTHORITY);
142 return fromCursor(cursor, authority);
145 public static DocumentInfo fromCursor(Cursor cursor, String authority) {
147 info.updateFromCursor(cursor, authority);
151 public void updateFromCursor(Cursor cursor, String authority)
183 Cursor cursor = null; local
    [all...]
  /frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
BaseCursorPagerAdapter.java 21 import android.database.Cursor;
33 * Page adapter for use with an BaseCursorLoader. Unlike other cursor adapters, this has no
41 protected Cursor mCursor;
43 /** Mapping of row ID to cursor position */
51 * @param c The cursor from which to get the data.
54 public BaseCursorPagerAdapter(Context context, FragmentManager fm, Cursor c) {
60 * Makes a fragment for the data pointed to by the cursor
63 * @param cursor The cursor from which to get the data. The cursor is alread
    [all...]
  /packages/apps/Mms/src/com/android/mms/ui/
ManageSimMessages.java 29 import android.database.Cursor;
69 private Cursor mCursor = null;
128 int token, Object cookie, Cursor cursor) {
129 mCursor = cursor;
197 final Cursor cursor = (Cursor) mListAdapter.getItem(info.position); local
201 copyToPhoneMemory(cursor);
207 deleteFromSim(cursor);
270 Cursor cursor = (Cursor) mListAdapter.getCursor(); 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...]
  /packages/apps/Contacts/src/com/android/contacts/list/
EmailAddressListAdapter.java 21 import android.database.Cursor;
37 * A cursor adapter for the {@link Email#CONTENT_TYPE} content type.
112 return ((Cursor) getItem(position)).getString(EmailQuery.EMAIL_DISPLAY_NAME);
116 * Builds a {@link Data#CONTENT_URI} for the current cursor
120 long id = ((Cursor) getItem(position)).getLong(EmailQuery.EMAIL_ID);
125 protected View newView(Context context, int partition, Cursor cursor, int position,
134 protected void bindView(View itemView, int partition, Cursor cursor, int position) {
137 bindName(view, cursor);
    [all...]
PostalAddressListAdapter.java 21 import android.database.Cursor;
36 * A cursor adapter for the {@link StructuredPostal#CONTENT_TYPE} content type.
102 return ((Cursor) getItem(position)).getString(PostalQuery.POSTAL_DISPLAY_NAME);
106 * Builds a {@link Data#CONTENT_URI} for the current cursor
110 long id = ((Cursor)getItem(position)).getLong(PostalQuery.POSTAL_ID);
115 protected View newView(Context context, int partition, Cursor cursor, int position,
124 protected void bindView(View itemView, int partition, Cursor cursor, int position) {
127 bindName(view, cursor);
    [all...]
  /frameworks/base/core/java/android/widget/
SimpleCursorAdapter.java 20 import android.database.Cursor;
25 * An easy adapter to map columns from a cursor to TextViews or ImageViews
32 * {@link ViewBinder#setViewValue(android.view.View, android.database.Cursor, int)}
45 * {@link #convertToString(android.database.Cursor)} and
71 * @deprecated This option is discouraged, as it results in Cursor queries
77 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) {
92 * @param c The database cursor. Can be null if the cursor is not available yet.
94 * if the cursor is not available yet.
98 * parameter. Can be null if the cursor is not available yet
    [all...]
  /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...]
CursorLoader.java 20 import android.database.Cursor;
30 * A loader that queries the {@link ContentResolver} and returns a {@link Cursor}.
32 * querying cursors, building on {@link AsyncTaskLoader} to perform the cursor
43 public class CursorLoader extends AsyncTaskLoader<Cursor> {
52 Cursor mCursor;
57 public Cursor loadInBackground() {
65 Cursor cursor = getContext().getContentResolver().query(mUri, mProjection, mSelection, local
67 if (cursor != null) {
69 // Ensure the cursor window is filled
    [all...]
  /packages/providers/PartnerBookmarksProvider/tests/src/com/android/providers/partnerbookmarks/
PartnerBookmarksProviderTest.java 20 import android.database.Cursor;
40 Cursor cursor = null; local
42 cursor = providerClient.query(PartnerBookmarksContract.Bookmarks.CONTENT_URI,
44 assertNotNull("Failed to query for bookmarks", cursor);
46 while (cursor.moveToNext()) {
47 long id = cursor.getLong(
48 cursor.getColumnIndexOrThrow(PartnerBookmarksContract.Bookmarks.ID));
49 long parent = cursor.getLong(
50 cursor.getColumnIndexOrThrow(PartnerBookmarksContract.Bookmarks.PARENT))
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
ResourceCursorTreeAdapterTest.java 23 import android.database.Cursor;
79 Cursor cursor = createTestCursor(3, 3); local
80 mResourceCursorTreeAdapter = new MockResourceCursorTreeAdapter(mContext, cursor,
82 assertEquals(cursor, mResourceCursorTreeAdapter.getCursor());
97 // The parameters Context and Cursor are never readin the method
118 // The parameters Context and Cursor are never readin the method
140 * Creates the test cursor.
144 * @return the cursor
147 private Cursor createTestCursor(int colCount, int rowCount)
154 MatrixCursor cursor = new MatrixCursor(columns, rowCount); local
    [all...]
  /external/chromium/webkit/glue/
webcursor.h 28 struct Cursor;
38 // This class encapsulates a cross-platform description of a cursor. Platform
39 // specific methods are provided to translate the cross-platform cursor into a
40 // platform specific cursor. It is also possible to serialize / de-serialize a
61 // specific cursor object. Otherwise GetCursor should be used.
64 // Returns true if the current cursor object contains the same cursor as the
65 // cursor object passed in. If the current cursor is a custom cursor, we als
    [all...]
  /external/chromium_org/third_party/WebKit/ManualTests/
cur-hotspot.html 4 <p>Test for .cur cursor intrinsic hot spot behavior. See <a href="https://bugs.webkit.org/show_bug.cgi?id=15779">bug 15779</a>.</p>
5 <div style="background:turquoise;cursor:url(resources/cur-hotspot.cur), auto; width:200px; height:200px; position:absolute; top:100px; left: 50px;">Mouse cursor should be upside down inside this box.</div>
7 <div style="background:turquoise;cursor:url(resources/cur-hotspot.cur) 200 200, auto; width:200px; height:200px; position:absolute; top:100px; left: 300px;">Mouse cursor should be upside down inside this box.</div>
9 <div style="background:turquoise;cursor:url(resources/cur-hotspot.cur) 0 0, auto; width:200px; height:200px; position:absolute; top:350px; left: 50px;">Mouse cursor should flip erratically, due to incorrect hot spot forced in CSS.</div>
custom-cursors.html 2 Move the cursor over the blue box - it should not turn into a missing image icon, and should turn into an I-beam over text.
4 <div style="width:100px;height:50px;background-color:lightblue; cursor:url(nonexistent.png), auto;"><span style="cursor:url(nonexistent.png), auto;">some text</span></div>
5 <div style="width:100px;height:50px;background-color:lightblue; cursor:url(nonexistent.png);"></div>
9 Move the cursor over the blue box - it should become a help cursor (question mark).
10 <div style="width:100px;height:100px;background-color:lightblue; cursor:url(resources/helpCursor.tiff), help;"></div>
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
OpenHelper.java 31 import android.database.Cursor;
69 final Cursor cursor = downManager.query(new DownloadManager.Query().setFilterById(id)); local
71 if (!cursor.moveToFirst()) {
75 final Uri localUri = getCursorUri(cursor, COLUMN_LOCAL_URI);
76 final File file = getCursorFile(cursor, COLUMN_LOCAL_FILENAME);
77 String mimeType = getCursorString(cursor, COLUMN_MEDIA_TYPE);
87 final Uri remoteUri = getCursorUri(cursor, COLUMN_URI);
103 cursor.close();
111 final Cursor headers = context.getContentResolver(
128 final Cursor cursor = context.getContentResolver().query(uri, new String[]{Constants.UID}, local
    [all...]
  /external/chromium_org/ash/wm/
image_cursors.h 11 #include "ui/base/cursor/cursor.h"
38 // Returns true if the cursor image is reloaded.
41 // Sets the scale of the mouse cursor icon.
44 // Sets the type of the mouse cursor icon.
47 // Sets the platform cursor based on the native type of |cursor|.
48 void SetPlatformCursor(gfx::NativeCursor* cursor);
51 // Reloads the all loaded cursors in the cursor loader.
  /external/chromium_org/ui/views/corewm/
native_cursor_manager.h 20 // requested changes to cursor state. When requested, implementer should tell
27 // A request to set the screen DPI. Can cause changes in the current cursor.
32 // A request to set the cursor to |cursor|. At minimum, implementer should
33 // call NativeCursorManagerDelegate::CommitCursor() with whatever cursor is
36 gfx::NativeCursor cursor,
39 // A request to set the visibility of the cursor. At minimum, implementer
46 // A request to set the scale of the cursor icon.
51 // A request to set the scale of the cursor icon.
  /external/harfbuzz/src/
harfbuzz-stream-private.h 61 #define GET_Byte() (*stream->cursor++)
62 #define GET_Short() (stream->cursor += 2, (HB_Short)( \
63 (*(((HB_Byte*)stream->cursor)-2) << 8) | \
64 *(((HB_Byte*)stream->cursor)-1) \
66 #define GET_Long() (stream->cursor += 4, (HB_Int)( \
67 (*(((HB_Byte*)stream->cursor)-4) << 24) | \
68 (*(((HB_Byte*)stream->cursor)-3) << 16) | \
69 (*(((HB_Byte*)stream->cursor)-2) << 8) | \
70 *(((HB_Byte*)stream->cursor)-1) \
  /external/harfbuzz_ng/src/hb-old/
harfbuzz-stream-private.h 61 #define GET_Byte() (*stream->cursor++)
62 #define GET_Short() (stream->cursor += 2, (HB_Short)( \
63 (*(((HB_Byte*)stream->cursor)-2) << 8) | \
64 *(((HB_Byte*)stream->cursor)-1) \
66 #define GET_Long() (stream->cursor += 4, (HB_Int)( \
67 (*(((HB_Byte*)stream->cursor)-4) << 24) | \
68 (*(((HB_Byte*)stream->cursor)-3) << 16) | \
69 (*(((HB_Byte*)stream->cursor)-2) << 8) | \
70 *(((HB_Byte*)stream->cursor)-1) \
  /external/linux-tools-perf/util/
callchain.c 203 fill_node(struct callchain_node *node, struct callchain_cursor *cursor)
207 node->val_nr = cursor->nr - cursor->pos;
211 cursor_node = callchain_cursor_current(cursor);
226 callchain_cursor_advance(cursor);
227 cursor_node = callchain_cursor_current(cursor);
233 struct callchain_cursor *cursor,
239 fill_node(new, cursor);
252 struct callchain_cursor *cursor,
279 if (idx_total < cursor->nr)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/util/
NotifyingAsyncQueryHandler.java 21 import android.database.Cursor;
28 * {@link Cursor} if the listener ceases to exist.
40 void onQueryComplete(int token, Object cookie, Cursor cursor);
58 protected void onQueryComplete(int token, Object cookie, Cursor cursor) {
61 listener.onQueryComplete(token, cookie, cursor);
62 } else if (cursor != null) {
63 cursor.close();
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
ContactDirectoryManagerTest.java 26 import android.database.Cursor;
81 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
89 MatrixCursor cursor = new MatrixCursor( local
92 cursor.addRow(new Object[] {
100 return cursor;
173 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); local
174 assertEquals(5, cursor.getCount());
176 cursor.moveToPosition(2);
177 assertDirectoryRow(cursor, "test.package1", "authority1", "account-name1", "account-type1"
211 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); local
271 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); local
317 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); local
375 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); local
442 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); local
476 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); local
502 Cursor cursor = mResolver.query( local
542 Cursor cursor = mResolver.query( local
    [all...]
  /frameworks/support/v4/java/android/support/v4/widget/
SimpleCursorAdapter.java 20 import android.database.Cursor;
56 * @deprecated This option is discouraged, as it results in Cursor queries
62 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) {
77 * @param c The database cursor. Can be null if the cursor is not available yet.
79 * if the cursor is not available yet.
83 * parameter. Can be null if the cursor is not available yet.
85 * as per {@link CursorAdapter#CursorAdapter(Context, Cursor, int)}.
87 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from,
97 * constructor with their corresponding cursor columns as specified in th
    [all...]

Completed in 468 milliseconds

1 2 3 4 56 7 8 91011>>