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

1 2 3 4 5 6 7 8 91011

  /cts/tests/tests/provider/src/android/provider/cts/contacts/
DeletedContactUtil.java 36 String[] projection = new String[]{ local
40 Cursor cursor = resolver.query(uri, projection, null, null, null);
48 String[] projection = new String[] { local
51 Cursor cursor = resolver.query(URI, projection, null, null, null);
64 public static List<String[]> query(ContentResolver resolver, String[] projection) {
65 Cursor cursor = resolver.query(URI, projection, null, null, null);
74 public static List<String[]> querySinceTimestamp(ContentResolver resolver, String[] projection,
78 Cursor cursor = resolver.query(URI, projection, selection, args, null);
ContactUtil.java 45 String[] projection = new String[]{ local
49 Cursor cursor = resolver.query(uri, projection, null, null, null);
57 String[] projection = new String[]{ local
62 Cursor cursor = resolver.query(uri, projection, null, null, null);
RawContactUtil.java 65 long rawContactId, String[] projection) {
67 Cursor cursor = resolver.query(uri, projection, null, null, null);
77 String[] projection) {
79 Cursor cursor = resolver.query(uri, projection, null, null, null);
93 String[] projection = new String[]{ local
97 projection);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowCursorLoader.java 14 private String[] projection; field in class:ShadowCursorLoader
23 public void __constructor__(Context context, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
26 this.projection = projection;
44 return projection;
48 public void setProjection(String[] projection) {
49 this.projection = projection;
  /packages/apps/ContactsCommon/src/com/android/contacts/common/database/
NoNullCursorAsyncQueryHandler.java 36 public void startQuery(int token, Object cookie, Uri uri, String[] projection, String selection,
38 final CookieWithProjection projectionCookie = new CookieWithProjection(cookie, projection);
39 super.startQuery(token, projectionCookie, uri, projection, selection, selectionArgs,
50 cursor = new EmptyCursor(projectionCookie.projection);
58 * Class to add projection to an existing cookie.
62 public final String[] projection; field in class:NoNullCursorAsyncQueryHandler.CookieWithProjection
64 public CookieWithProjection(Object cookie, String[] projection) {
66 this.projection = projection;
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
DeletedContactUtil.java 36 String[] projection = new String[]{ local
40 Cursor cursor = resolver.query(uri, projection, null, null, null);
48 String[] projection = new String[] { local
51 Cursor cursor = resolver.query(URI, projection, null, null, null);
64 public static List<String[]> query(ContentResolver resolver, String[] projection) {
65 Cursor cursor = resolver.query(URI, projection, null, null, null);
74 public static List<String[]> querySinceTimestamp(ContentResolver resolver, String[] projection,
78 Cursor cursor = resolver.query(URI, projection, selection, args, null);
ContactUtil.java 45 String[] projection = new String[]{ local
49 Cursor cursor = resolver.query(uri, projection, null, null, null);
57 String[] projection = new String[]{ local
62 Cursor cursor = resolver.query(uri, projection, null, null, null);
RawContactUtil.java 44 long rawContactId, String[] projection) {
47 Cursor cursor = resolver.query(uri, projection, null, null, null);
57 String[] projection) {
59 Cursor cursor = resolver.query(uri, projection, null, null, null);
73 String[] projection = new String[]{ local
77 projection);
  /frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
PhotoPagerLoader.java 35 Context context, Uri photosUri, String[] projection) {
38 mProjection = projection != null ? projection : PhotoContract.PhotoQuery.PROJECTION;
  /packages/apps/Contacts/src/com/android/contacts/list/
JoinContactLoader.java 71 public void setProjection(String[] projection) {
72 super.setProjection(projection);
73 this.mProjection = projection;
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
CursorLoaderTest.java 18 String[] projection = new String[] { "_id", "TestColumn" }; local
24 projection,
30 assertThat(cursorLoader.getProjection(), equalTo(projection));
39 String[] projection = new String[] { "_id", "TestColumn" }; local
45 cursorLoader.setProjection(projection);
51 assertThat(cursorLoader.getProjection(), equalTo(projection));
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/database/
SimpleTestCursor.java 10 public String[] projection; field in class:SimpleTestCursor
20 public void setQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
22 this.projection = projection;
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/provider/
SharedImageProvider.java 86 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
91 if (projection == null) {
92 projection = new String[] {
105 MatrixCursor cursor = new MatrixCursor(projection);
106 Object[] columns = new Object[projection.length];
107 for (int i = 0; i < projection.length; i++) {
108 if (projection[i].equalsIgnoreCase(BaseColumns._ID)) {
110 } else if (projection[i].equalsIgnoreCase(MediaStore.MediaColumns.DATA)) {
112 } else if (projection[i].equalsIgnoreCase(OpenableColumns.DISPLAY_NAME)) {
114 } else if (projection[i].equalsIgnoreCase(OpenableColumns.SIZE))
    [all...]
  /packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
MockContentProvider.java 67 public Query withProjection(String... projection) {
68 mProjection = projection;
72 public Query withDefaultProjection(String... projection) {
73 mDefaultProjection = projection;
123 public boolean equals(Uri uri, String[] projection, String selection,
129 if (!mAnyProjection && !equals(projection, mProjection)) {
178 public Cursor getResult(String[] projection) {
181 columnNames = projection;
192 Object[] columns = new Object[projection.length];
193 for (int i = 0; i < projection.length; i++)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/content/
FileProvider.java 48 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
57 // If projection is null, return all columns.
58 if (projection == null) {
59 projection = new String[] {
64 for (int i = 0; i < projection.length; i++) {
65 if (OpenableColumns.DISPLAY_NAME.equals(projection[i])) {
68 if (OpenableColumns.SIZE.equals(projection[i])) {
73 MatrixCursor cursor = new MatrixCursor(projection);
74 Object[] result = new Object[projection.length];
  /packages/apps/Email/src/com/android/email/data/
ThrottlingCursorLoader.java 37 public ThrottlingCursorLoader(Context context, Uri uri, String[] projection, String selection,
39 this(context, uri, projection, selection, selectionArgs, sortOrder,
44 public ThrottlingCursorLoader(Context context, Uri uri, String[] projection, String selection,
46 super(context, uri, projection, selection, selectionArgs, sortOrder);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
ProfileAndContactsLoader.java 47 public void setProjection(String[] projection) {
48 super.setProjection(projection);
49 mProjection = projection;
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
GlobalSearchSupport.java 86 public ArrayList<?> asList(String[] projection) {
100 if (projection == null) {
112 for (int i = 0; i < projection.length; i++) {
113 addColumnValue(list, projection[i]);
182 public Cursor handleSearchSuggestionsQuery(SQLiteDatabase db, Uri uri, String[] projection,
185 projection == null ? SEARCH_SUGGESTIONS_COLUMNS : projection);
193 cursor, db, projection, selection, searchClause, limit, cancellationSignal);
209 public Cursor handleSearchShortcutRefresh(SQLiteDatabase db, String[] projection,
218 projection == null ? SEARCH_SUGGESTIONS_COLUMNS : projection)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/os/
SmsMessageReceiver.java 46 String[] projection; local
54 projection = new String[] { ContactsContract.PhoneLookup.DISPLAY_NAME };
57 Cursor cursor = context.getContentResolver().query(uri, projection, null, null, null);
  /development/samples/XmlAdapters/src/com/example/android/xmladapters/
XmlDocumentProvider.java 83 * <h2>Projection syntax</h2>
84 * For every selected node, the projection will then extract actual data from this node and its
88 * with a child of the selected node. The implicit root of this projection pattern is the selected
92 * nodes match the projection pattern, their texts are appended as a result.</p>
94 * A projection can also fetch any node attribute by appending a <code>@attribute_name</code>
98 * <p>If a projection does not match any node/attribute, its associated value will be an empty
157 * <p>The number of columns of the resulting Cursor is equal to the size of the projection
159 * Cursor to be used with a {@link CursorAdapter}). The other columns' names are the projection
163 * @param projection A set of patterns that will be used to extract data from each selected
173 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs
362 String projection = projections[i + 1]; \/\/ +1 to skip the _ID column local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/provider/
GalleryProvider.java 114 public Cursor query(Uri uri, String[] projection,
126 projection, selection, selectionArgs, sortOrder);
135 private Cursor queryPicasaItem(MediaObject image, String[] projection,
137 if (projection == null) projection = SUPPORTED_PICASA_COLUMNS;
138 Object[] columnValues = new Object[projection.length];
143 for (int i = 0, n = projection.length; i < n; ++i) {
144 String column = projection[i];
167 MatrixCursor cursor = new MatrixCursor(projection);
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
SqlInjectionDetectionTest.java 97 private void assertQueryValid(final Uri uri, final String[] projection,
99 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder);
104 final String[] projection, final String selection, final String sortOrder) {
108 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder);
  /packages/providers/TelephonyProvider/src/com/android/providers/telephony/
MmsSmsProvider.java 55 * requested in the projection for a query. Its value is either "mms"
295 public Cursor query(Uri uri, String[] projection,
301 cursor = getCompleteConversations(projection, selection, sortOrder);
312 projection, selection, selectionArgs, sortOrder);
315 projection, selection, sortOrder);
319 cursor = getConversationMessages(uri.getPathSegments().get(1), projection,
324 uri.getPathSegments().get(1), projection, selection,
329 uri.getPathSegments().get(1), projection, selection,
334 uri.getPathSegments().get(2), projection, selection, sortOrder);
370 || projection != null)
    [all...]
  /packages/apps/Exchange/exchange2/src/com/android/exchange/provider/
ExchangeDirectoryProvider.java 94 GalProjection(String[] projection) {
95 size = projection.length;
96 for (int i = 0; i < projection.length; i++) {
97 columnMap.put(projection[i], i);
107 GalContactRow(GalProjection projection, long contactId, String lookupKey,
109 this.mProjection = projection;
110 row = new Object[projection.size];
155 static void addPhoneRow(MatrixCursor cursor, GalProjection projection, long contactId,
159 projection, contactId, lookupKey, accountName, displayName);
199 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs
    [all...]
  /frameworks/base/core/java/android/content/
SearchRecentSuggestionsProvider.java 319 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
358 if (projection != null && projection.length > 0) {
359 useProjection = new String[projection.length + 1];
360 System.arraycopy(projection, 0, useProjection, 0, projection.length);
361 useProjection[projection.length] = "_id AS _id";

Completed in 2335 milliseconds

1 2 3 4 5 6 7 8 91011