/frameworks/base/core/java/android/widget/ |
D | CursorTreeAdapter.java | 22 import android.database.Cursor; 63 public CursorTreeAdapter(Cursor cursor, Context context) { in CursorTreeAdapter() 76 public CursorTreeAdapter(Cursor cursor, Context context, boolean autoRequery) { in CursorTreeAdapter() 80 private void init(Cursor cursor, Context context, boolean autoRequery) { in init() 105 final Cursor cursor = getChildrenCursor(mGroupCursorHelper.getCursor()); in getChildrenCursorHelper() 131 abstract protected Cursor getChildrenCursor(Cursor groupCursor); in getChildrenCursor() 139 public void setGroupCursor(Cursor cursor) { in setGroupCursor() 152 public void setChildrenCursor(int groupPosition, Cursor childrenCursor) { in setChildrenCursor() 167 public Cursor getChild(int groupPosition, int childPosition) { in getChild() 181 public Cursor getGroup(int groupPosition) { in getGroup() [all …]
|
D | CursorFilter.java | 19 import android.database.Cursor; 32 CharSequence convertToString(Cursor cursor); in convertToString() 33 Cursor runQueryOnBackgroundThread(CharSequence constraint); in runQueryOnBackgroundThread() 34 Cursor getCursor(); in getCursor() 35 void changeCursor(Cursor cursor); in changeCursor() 44 return mClient.convertToString((Cursor) resultValue); in convertResultToString() 49 Cursor cursor = mClient.runQueryOnBackgroundThread(constraint); in performFiltering() 64 Cursor oldCursor = mClient.getCursor(); in publishResults() 67 mClient.changeCursor((Cursor) results.values); in publishResults()
|
D | CursorAdapter.java | 24 import android.database.Cursor; 59 protected Cursor mCursor; 134 public CursorAdapter(Context context, Cursor c) { in CursorAdapter() 150 public CursorAdapter(Context context, Cursor c, boolean autoRequery) { in CursorAdapter() 163 public CursorAdapter(Context context, Cursor c, int flags) { in CursorAdapter() 172 protected void init(Context context, Cursor c, boolean autoRequery) { in init() 176 void init(Context context, Cursor c, int flags) { in init() 233 public Cursor getCursor() { in getCursor() 326 public abstract View newView(Context context, Cursor cursor, ViewGroup parent); in newView() 336 public View newDropDownView(Context context, Cursor cursor, ViewGroup parent) { in newDropDownView() [all …]
|
D | SimpleCursorAdapter.java | 21 import android.database.Cursor; 81 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) { in SimpleCursorAdapter() 106 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, in SimpleCursorAdapter() 139 public void bindView(View view, Context context, Cursor cursor) { in bindView() 312 public CharSequence convertToString(Cursor cursor) { in convertToString() 329 private void findColumns(Cursor c, String[] from) { in findColumns() 345 public Cursor swapCursor(Cursor c) { in swapCursor() 364 public void changeCursorAndColumns(Cursor c, String[] from, int[] to) { in changeCursorAndColumns() 401 boolean setViewValue(View view, Cursor cursor, int columnIndex); in setViewValue() 419 CharSequence convertToString(Cursor cursor); in convertToString()
|
D | ResourceCursorTreeAdapter.java | 20 import android.database.Cursor; 51 public ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, in ResourceCursorTreeAdapter() 76 public ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, in ResourceCursorTreeAdapter() 92 public ResourceCursorTreeAdapter(Context context, Cursor cursor, int groupLayout, in ResourceCursorTreeAdapter() 98 public View newChildView(Context context, Cursor cursor, boolean isLastChild, in newChildView() 104 public View newGroupView(Context context, Cursor cursor, boolean isExpanded, ViewGroup parent) { in newGroupView()
|
D | SimpleCursorTreeAdapter.java | 20 import android.database.Cursor; 102 public SimpleCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, in SimpleCursorTreeAdapter() 139 public SimpleCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, in SimpleCursorTreeAdapter() 172 public SimpleCursorTreeAdapter(Context context, Cursor cursor, int groupLayout, in SimpleCursorTreeAdapter() 212 private void bindView(View view, Context context, Cursor cursor, int[] from, int[] to) { in bindView() 241 private void initFromColumns(Cursor cursor, String[] fromColumnNames, int[] fromColumns) { in initFromColumns() 248 protected void bindChildView(View view, Context context, Cursor cursor, boolean isLastChild) { in bindChildView() 258 protected void bindGroupView(View view, Context context, Cursor cursor, boolean isExpanded) { in bindGroupView() 324 boolean setViewValue(View view, Cursor cursor, int columnIndex); in setViewValue()
|
D | ResourceCursorAdapter.java | 21 import android.database.Cursor; 54 public ResourceCursorAdapter(Context context, int layout, Cursor c) { in ResourceCursorAdapter() 77 public ResourceCursorAdapter(Context context, int layout, Cursor c, boolean autoRequery) { in ResourceCursorAdapter() 95 public ResourceCursorAdapter(Context context, int layout, Cursor c, int flags) { in ResourceCursorAdapter() 134 public View newView(Context context, Cursor cursor, ViewGroup parent) { in newView() 139 public View newDropDownView(Context context, Cursor cursor, ViewGroup parent) { in newDropDownView()
|
/frameworks/base/core/java/android/provider/ |
D | MediaStore.java | 41 import android.database.Cursor; 911 @Column(Cursor.FIELD_TYPE_STRING) 930 @Column(value = Cursor.FIELD_TYPE_BLOB, readOnly = true) 937 @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) 947 @Column(Cursor.FIELD_TYPE_STRING) 953 @Column(value = Cursor.FIELD_TYPE_STRING, readOnly = true) 960 @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) 967 @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) 974 @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) 993 @Column(Cursor.FIELD_TYPE_STRING) [all …]
|
D | SearchIndexablesProvider.java | 27 import android.database.Cursor; 115 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() 149 public abstract Cursor queryXmlResources(String[] projection); in queryXmlResources() 160 public abstract Cursor queryRawData(String[] projection); in queryRawData() 171 public abstract Cursor queryNonIndexableKeys(String[] projection); in queryNonIndexableKeys() 179 public Cursor querySiteMapPairs() { in querySiteMapPairs() 189 public Cursor querySliceUriPairs() { in querySliceUriPairs()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
D | PhotoPagerAdapter.java | 22 import android.database.Cursor; 42 Context context, androidx.fragment.app.FragmentManager fm, Cursor c, in PhotoPagerAdapter() 50 public Fragment getItem(Context context, Cursor cursor, int position) { in getItem() 83 public Cursor swapCursor(Cursor newCursor) { in swapCursor() 102 public String getPhotoUri(Cursor cursor) { in getPhotoUri() 106 public String getThumbnailUri(Cursor cursor) { in getThumbnailUri() 110 public String getContentType(Cursor cursor) { in getContentType() 114 public String getPhotoName(Cursor cursor) { in getPhotoName() 118 public boolean shouldShowLoadingIndicator(Cursor cursor) { in shouldShowLoadingIndicator() 127 private String getString(Cursor cursor, String column) { in getString()
|
D | BaseCursorPagerAdapter.java | 21 import android.database.Cursor; 41 protected Cursor mCursor; 54 public BaseCursorPagerAdapter(Context context, FragmentManager fm, Cursor c) { in BaseCursorPagerAdapter() 67 public abstract Fragment getItem(Context context, Cursor cursor, int position); in getItem() 137 public Cursor getCursor() { in getCursor() 171 public Cursor swapCursor(Cursor newCursor) { in swapCursor() 180 Cursor oldCursor = mCursor; in swapCursor() 202 public CharSequence convertToString(Cursor cursor) { in convertToString() 230 private void init(Context context, Cursor c) { in init()
|
/frameworks/base/core/java/android/database/ |
D | DatabaseUtils.java | 276 case Cursor.FIELD_TYPE_NULL: in bindSelection() 279 case Cursor.FIELD_TYPE_INTEGER: in bindSelection() 282 case Cursor.FIELD_TYPE_FLOAT: in bindSelection() 285 case Cursor.FIELD_TYPE_BLOB: in bindSelection() 287 case Cursor.FIELD_TYPE_STRING: in bindSelection() 329 return Cursor.FIELD_TYPE_NULL; in getTypeOfObject() 331 return Cursor.FIELD_TYPE_BLOB; in getTypeOfObject() 333 return Cursor.FIELD_TYPE_FLOAT; in getTypeOfObject() 336 return Cursor.FIELD_TYPE_INTEGER; in getTypeOfObject() 338 return Cursor.FIELD_TYPE_STRING; in getTypeOfObject() [all …]
|
D | CursorJoiner.java | 47 private Cursor mCursorLeft; 48 private Cursor mCursorRight; 76 Cursor cursorLeft, String[] columnNamesLeft, in CursorJoiner() 77 Cursor cursorRight, String[] columnNamesRight) { in CursorJoiner() 108 private int[] buildColumnIndiciesArray(Cursor cursor, String[] columnNames) { in buildColumnIndiciesArray() 204 private static void populateValues(String[] values, Cursor cursor, int[] columnIndicies, in populateValues()
|
D | AbstractWindowedCursor.java | 95 return mWindow.getType(mPos, columnIndex) == Cursor.FIELD_TYPE_NULL; in isNull() 103 return getType(columnIndex) == Cursor.FIELD_TYPE_BLOB; in isBlob() 111 return getType(columnIndex) == Cursor.FIELD_TYPE_STRING; in isString() 119 return getType(columnIndex) == Cursor.FIELD_TYPE_INTEGER; in isLong() 127 return getType(columnIndex) == Cursor.FIELD_TYPE_FLOAT; in isFloat()
|
/frameworks/ex/common/java/com/android/common/widget/ |
D | CompositeCursorAdapter.java | 19 import android.database.Cursor; 38 Cursor cursor; 105 Cursor cursor = mPartitions.get(partitionIndex).cursor; in removePartition() 133 Cursor cursor = partition.cursor; in close() 172 Cursor cursor = partition.cursor; in ensureCacheValid() 209 public Cursor getCursor(int partition) { in getCursor() 216 public void changeCursor(int partition, Cursor cursor) { in changeCursor() 217 Cursor prevCursor = mPartitions.get(partition).cursor; in changeCursor() 235 Cursor cursor = mPartitions.get(partition).cursor; in isPartitionEmpty() 368 protected View getHeaderView(int partition, Cursor cursor, View convertView, in getHeaderView() [all …]
|
/frameworks/ex/common/java/com/android/common/contacts/ |
D | BaseEmailAddressAdapter.java | 27 import android.database.Cursor; 166 Cursor directoryCursor = null; in performFiltering() 174 Cursor cursor = null; in performFiltering() 188 results.values = new Cursor[] { directoryCursor, cursor }; in performFiltering() 195 Cursor[] cursors = (Cursor[]) results.values; in publishResults() 203 return makeDisplayString((Cursor) resultValue); in convertResultToString() 238 Cursor cursor = mContentResolver.query( in performFiltering() 247 Cursor cursor = (Cursor) results.values; in publishResults() 314 protected View newView(Context context, int partitionIndex, Cursor cursor, in newView() 325 protected void bindView(View v, int partition, Cursor cursor, int position) { in bindView() [all …]
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | RedactingCursorTest.java | 40 final Cursor redacting = getContext().getContentResolver().query( in testMissing() 55 final Cursor redacting = getContext().getContentResolver().query( in testSingle() 62 assertEquals(Cursor.FIELD_TYPE_NULL, redacting.getType(0)); in testSingle() 63 assertEquals(Cursor.FIELD_TYPE_INTEGER, redacting.getType(1)); in testSingle() 64 assertEquals(Cursor.FIELD_TYPE_STRING, redacting.getType(2)); in testSingle() 77 final Cursor redacting = getContext().getContentResolver().query( in testMultiple()
|
D | DatabaseCursorTest.java | 110 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testBlob() 133 Cursor c = mDatabase.rawQuery("SELECT data FROM test", null); in testRealColumns() 144 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testCursor1() 208 Cursor c = mDatabase.query("test", null, "_id > 1000", null, null, null, null); in testCursor2() 248 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testLargeField() 300 Cursor c = mDatabase.query("test", new String[]{"data"}, null, null, null, null, null); in testManyRowsLong() 336 Cursor c = mDatabase.query("test", new String[]{"data"}, null, null, null, null, null); in testManyRowsTxt() 373 … Cursor c = mDatabase.query("test", new String[]{"txt", "data"}, null, null, null, null, null); in testManyRowsTxtLong() 391 Cursor c = mDatabase.rawQuery("SELECT * FROM test", null); in testRequery() 404 Cursor c = mDatabase.rawQuery("SELECT data FROM test WHERE data = '" + sString1 + "'", in testRequeryWithSelection() [all …]
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | MtpDatabaseTest.java | 19 import android.database.Cursor; 70 private static int getInt(Cursor cursor, String columnName) { in getInt() 74 private static boolean isNull(Cursor cursor, String columnName) { in isNull() 78 private static String getString(Cursor cursor, String columnName) { in getString() 92 final Cursor cursor = mDatabase.queryRootDocuments(COLUMN_NAMES); in testPutSingleStorageDocuments() 116 final Cursor cursor = mDatabase.queryRoots(resources, new String [] { in testPutSingleStorageDocuments() 155 final Cursor cursor = mDatabase.queryRootDocuments(COLUMN_NAMES); in testPutStorageDocuments() 205 final Cursor cursor = mDatabase.queryChildDocuments(COLUMN_NAMES, "2"); in testPutChildDocuments() 280 try (final Cursor cursor = in testPutChildDocuments_operationsSupported() 297 try (final Cursor cursor = in testPutChildDocuments_operationsSupported() [all …]
|
/frameworks/base/core/java/android/content/ |
D | CursorLoader.java | 20 import android.database.Cursor; 47 public class CursorLoader extends AsyncTaskLoader<Cursor> { 57 Cursor mCursor; 63 public Cursor loadInBackground() { in loadInBackground() 71 Cursor cursor = getContext().getContentResolver().query(mUri, mProjection, mSelection, in loadInBackground() 104 public void deliverResult(Cursor cursor) { in deliverResult() 112 Cursor oldCursor = mCursor; in deliverResult() 178 public void onCanceled(Cursor cursor) { in onCanceled()
|
D | CursorEntityIterator.java | 20 import android.database.Cursor; 29 private final Cursor mCursor; 38 public CursorEntityIterator(Cursor cursor) { in CursorEntityIterator() 51 public abstract Entity getEntityAndIncrementCursor(Cursor cursor) throws RemoteException; in getEntityAndIncrementCursor()
|
D | ContentQueryMap.java | 20 import android.database.Cursor; 36 private volatile Cursor mCursor; 62 public ContentQueryMap(Cursor cursor, String columnNameOfKey, boolean keepUpdated, in ContentQueryMap() 131 final Cursor cursor = mCursor; in requery() 148 private synchronized void readCursorIntoCache(Cursor cursor) { in readCursorIntoCache()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | TrackerDataHelper.java | 20 import android.database.Cursor; 108 public Cursor query(String tag, int limit) { in query() 111 Cursor cursor = mContext.getContentResolver().query( in query() 128 public Cursor query(int limit) { in query() 139 public Cursor query(String tag) { in query() 165 public String getNextOutput(Cursor cursor) { in getNextOutput()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteDirectCursorDriver.java | 20 import android.database.Cursor; 45 public Cursor query(CursorFactory factory, String[] selectionArgs) { in query() 47 final Cursor cursor; in query() 77 public void cursorRequeried(Cursor cursor) { in cursorRequeried()
|
/frameworks/base/media/java/android/media/ |
D | RingtoneManager.java | 35 import android.database.Cursor; 248 private Cursor mCursor; 430 public Cursor getCursor() { in getCursor() 435 ArrayList<Cursor> ringtoneCursors = new ArrayList<Cursor>(); in getCursor() 440 Cursor parentRingtonesCursor = getParentProfileRingtones(); in getCursor() 446 return mCursor = new SortCursor(ringtoneCursors.toArray(new Cursor[ringtoneCursors.size()]), in getCursor() 450 private Cursor getParentProfileRingtones() { in getParentProfileRingtones() 459 final Cursor res = getMediaRingtones(parentContext); in getParentProfileRingtones() 499 private static Uri getUriFromCursor(Context context, Cursor cursor) { in getUriFromCursor() 515 final Cursor cursor = getCursor(); in getRingtonePosition() [all …]
|