/frameworks/support/core/ktx/src/main/java/androidx/core/database/ |
D | Cursor.kt | 21 import android.database.Cursor 32 inline fun Cursor.getBlob(columnName: String): ByteArray = in getBlob() 44 inline fun Cursor.getDouble(columnName: String): Double = in getBlob() 56 inline fun Cursor.getFloat(columnName: String): Float = getFloat(getColumnIndexOrThrow(columnName)) in getBlob() 67 inline fun Cursor.getInt(columnName: String): Int = getInt(getColumnIndexOrThrow(columnName)) in getBlob() 78 inline fun Cursor.getLong(columnName: String): Long = getLong(getColumnIndexOrThrow(columnName)) in getBlob() 89 inline fun Cursor.getShort(columnName: String): Short = getShort(getColumnIndexOrThrow(columnName)) in getBlob() 100 inline fun Cursor.getString(columnName: String): String = in getBlob() 112 inline fun Cursor.getBlobOrNull(index: Int) = if (isNull(index)) null else getBlob(index) in getBlob() 123 inline fun Cursor.getDoubleOrNull(index: Int) = if (isNull(index)) null else getDouble(index) in getBlob() [all …]
|
/frameworks/support/cursoradapter/api/ |
D | current.txt | 4 ctor public deprecated CursorAdapter(android.content.Context, android.database.Cursor); 5 ctor public CursorAdapter(android.content.Context, android.database.Cursor, boolean); 6 ctor public CursorAdapter(android.content.Context, android.database.Cursor, int); 7 …public abstract void bindView(android.view.View, android.content.Context, android.database.Cursor); 8 method public void changeCursor(android.database.Cursor); 9 method public java.lang.CharSequence convertToString(android.database.Cursor); 11 method public android.database.Cursor getCursor(); 17 … method protected deprecated void init(android.content.Context, android.database.Cursor, boolean); 18 …roid.view.View newDropDownView(android.content.Context, android.database.Cursor, android.view.View… 19 …ract android.view.View newView(android.content.Context, android.database.Cursor, android.view.View… [all …]
|
/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 | 23 import android.database.Cursor; 56 protected Cursor mCursor; 127 public CursorAdapter(Context context, Cursor c) { in CursorAdapter() 143 public CursorAdapter(Context context, Cursor c, boolean autoRequery) { in CursorAdapter() 156 public CursorAdapter(Context context, Cursor c, int flags) { in CursorAdapter() 165 protected void init(Context context, Cursor c, boolean autoRequery) { in init() 169 void init(Context context, Cursor c, int flags) { in init() 226 public Cursor getCursor() { in getCursor() 319 public abstract View newView(Context context, Cursor cursor, ViewGroup parent); in newView() 329 public View newDropDownView(Context context, Cursor cursor, ViewGroup parent) { in newDropDownView() [all …]
|
D | SimpleCursorAdapter.java | 20 import android.database.Cursor; 77 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) { in SimpleCursorAdapter() 102 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, in SimpleCursorAdapter() 135 public void bindView(View view, Context context, Cursor cursor) { in bindView() 308 public CharSequence convertToString(Cursor cursor) { in convertToString() 325 private void findColumns(Cursor c, String[] from) { in findColumns() 341 public Cursor swapCursor(Cursor c) { in swapCursor() 360 public void changeCursorAndColumns(Cursor c, String[] from, int[] to) { in changeCursorAndColumns() 397 boolean setViewValue(View view, Cursor cursor, int columnIndex); in setViewValue() 415 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()
|
/frameworks/support/cursoradapter/api_legacy/ |
D | 0.0.0.txt | 4 ctor public deprecated CursorAdapter(android.content.Context, android.database.Cursor); 5 ctor public CursorAdapter(android.content.Context, android.database.Cursor, boolean); 6 ctor public CursorAdapter(android.content.Context, android.database.Cursor, int); 7 …public abstract void bindView(android.view.View, android.content.Context, android.database.Cursor); 8 method public void changeCursor(android.database.Cursor); 9 method public java.lang.CharSequence convertToString(android.database.Cursor); 11 method public android.database.Cursor getCursor(); 17 … method protected deprecated void init(android.content.Context, android.database.Cursor, boolean); 18 …roid.view.View newDropDownView(android.content.Context, android.database.Cursor, android.view.View… 19 …ract android.view.View newView(android.content.Context, android.database.Cursor, android.view.View… [all …]
|
D | 28.0.0-alpha1.txt | 4 ctor public deprecated CursorAdapter(android.content.Context, android.database.Cursor); 5 ctor public CursorAdapter(android.content.Context, android.database.Cursor, boolean); 6 ctor public CursorAdapter(android.content.Context, android.database.Cursor, int); 7 …public abstract void bindView(android.view.View, android.content.Context, android.database.Cursor); 8 method public void changeCursor(android.database.Cursor); 9 method public java.lang.CharSequence convertToString(android.database.Cursor); 11 method public android.database.Cursor getCursor(); 17 … method protected deprecated void init(android.content.Context, android.database.Cursor, boolean); 18 …roid.view.View newDropDownView(android.content.Context, android.database.Cursor, android.view.View… 19 …ract android.view.View newView(android.content.Context, android.database.Cursor, android.view.View… [all …]
|
D | current.txt | 4 ctor public deprecated CursorAdapter(android.content.Context, android.database.Cursor); 5 ctor public CursorAdapter(android.content.Context, android.database.Cursor, boolean); 6 ctor public CursorAdapter(android.content.Context, android.database.Cursor, int); 7 …public abstract void bindView(android.view.View, android.content.Context, android.database.Cursor); 8 method public void changeCursor(android.database.Cursor); 9 method public java.lang.CharSequence convertToString(android.database.Cursor); 11 method public android.database.Cursor getCursor(); 17 … method protected deprecated void init(android.content.Context, android.database.Cursor, boolean); 18 …roid.view.View newDropDownView(android.content.Context, android.database.Cursor, android.view.View… 19 …ract android.view.View newView(android.content.Context, android.database.Cursor, android.view.View… [all …]
|
/frameworks/support/cursoradapter/src/main/java/androidx/cursoradapter/widget/ |
D | CursorFilter.java | 19 import android.database.Cursor; 33 CharSequence convertToString(Cursor cursor); in convertToString() 34 Cursor runQueryOnBackgroundThread(CharSequence constraint); in runQueryOnBackgroundThread() 35 Cursor getCursor(); in getCursor() 36 void changeCursor(Cursor cursor); in changeCursor() 45 return mClient.convertToString((Cursor) resultValue); in convertResultToString() 50 Cursor cursor = mClient.runQueryOnBackgroundThread(constraint); in performFiltering() 65 Cursor oldCursor = mClient.getCursor(); in publishResults() 68 mClient.changeCursor((Cursor) results.values); in publishResults()
|
D | CursorAdapter.java | 23 import android.database.Cursor; 62 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() 207 public Cursor getCursor() { in getCursor() 303 public abstract View newView(Context context, Cursor cursor, ViewGroup parent); in newView() 313 public View newDropDownView(Context context, Cursor cursor, ViewGroup parent) { in newDropDownView() [all …]
|
D | SimpleCursorAdapter.java | 22 import android.database.Cursor; 68 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) { in SimpleCursorAdapter() 93 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, in SimpleCursorAdapter() 125 public void bindView(View view, Context context, Cursor cursor) { in bindView() 298 public CharSequence convertToString(Cursor cursor) { in convertToString() 315 private void findColumns(Cursor c, String[] from) { in findColumns() 331 public Cursor swapCursor(Cursor c) { in swapCursor() 350 public void changeCursorAndColumns(Cursor c, String[] from, int[] to) { in changeCursorAndColumns() 387 boolean setViewValue(View view, Cursor cursor, int columnIndex); in setViewValue() 405 CharSequence convertToString(Cursor cursor); in convertToString()
|
D | ResourceCursorAdapter.java | 20 import android.database.Cursor; 53 public ResourceCursorAdapter(Context context, int layout, Cursor c) { in ResourceCursorAdapter() 81 public ResourceCursorAdapter(Context context, int layout, Cursor c, boolean autoRequery) { in ResourceCursorAdapter() 98 public ResourceCursorAdapter(Context context, int layout, Cursor c, int flags) { in ResourceCursorAdapter() 111 public View newView(Context context, Cursor cursor, ViewGroup parent) { in newView() 116 public View newDropDownView(Context context, Cursor cursor, ViewGroup parent) { in newDropDownView()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
D | PhotoPagerAdapter.java | 22 import android.database.Cursor; 42 Context context, android.support.v4.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/support/content/src/main/java/androidx/contentpager/content/ |
D | LoaderQueryRunner.java | 25 import android.database.Cursor; 54 LoaderCallbacks callbacks = new LoaderCallbacks<Cursor>() { in query() 56 public Loader<Cursor> onCreateLoader(final int id, final Bundle args) { in query() 62 public Cursor loadInBackground() { in query() 69 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { in query() 76 public void onLoaderReset(Loader<Cursor> loader) { in query() 86 Loader<Cursor> loader = mLoaderMgr.getLoader(query.getId()); in isRunning()
|
D | ContentPager.java | 24 import android.database.Cursor; 242 public @Nullable Cursor runQueryInBackground(Query query) { in ContentPager() 248 public void onQueryFinished(Query query, Cursor cursor) { in ContentPager() 320 private Cursor loadContentInBackground(Query query) { in loadContentInBackground() 339 Cursor cursor = query.run(mResolver); in loadContentInBackground() 361 private Cursor createPagedCursor(Query query) { in createPagedCursor() 362 Cursor unpaged = mCursorCache.get(query.getUri()); in createPagedCursor() 377 Cursor result = null; in createPagedCursor() 397 private @Nullable Cursor processProviderPagedCursor(Query query, Cursor cursor) { in processProviderPagedCursor() 423 Cursor result = new CursorView(cursor, windowSize, disposition); in processProviderPagedCursor() [all …]
|
/frameworks/support/leanback/src/main/java/androidx/leanback/database/ |
D | CursorMapper.java | 16 import android.database.Cursor; 24 private Cursor mCursor; 31 protected abstract void bindColumns(Cursor cursor); in bindColumns() 38 protected abstract Object bind(Cursor cursor); in bind() 43 public Object convert(Cursor cursor) { in convert()
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
D | CursorObjectAdapter.java | 16 import android.database.Cursor; 26 private Cursor mCursor; 58 public void changeCursor(Cursor cursor) { in changeCursor() 76 public Cursor swapCursor(Cursor cursor) { in swapCursor() 80 Cursor oldCursor = mCursor; in swapCursor() 97 public final Cursor getCursor() { in getCursor()
|
/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/support/content/src/androidTest/java/androidx/contentpager/content/ |
D | TestQueryCallback.java | 23 import android.database.Cursor; 42 private CollectorLatch<Pair<Integer, Cursor>> mReplyLatch; 45 public @Nullable Cursor runQueryInBackground(Query query) { in runQueryInBackground() 56 public void onQueryFinished(Query query, Cursor cursor) { in onQueryFinished() 80 mReplyLatch.assertHasItem(new Matcher<Pair<Integer, Cursor>>() { in assertReceivedContent() 82 public boolean matches(Pair<Integer, Cursor> value) { in assertReceivedContent() 86 List<Pair<Integer, Cursor>> collected = mReplyLatch.getCollected(); in assertReceivedContent() 87 Cursor cursor = null; in assertReceivedContent() 89 for (Pair<Integer, Cursor> pair : collected) { in assertReceivedContent()
|
D | TestContentProvider.java | 25 import android.database.Cursor; 91 public Cursor query( in query() 98 public Cursor query(Uri uri, String[] ignored, Bundle queryArgs, in query() 108 Cursor cursor = null; in query() 229 return Cursor.FIELD_TYPE_NULL; in getTypeOfObject() 231 return Cursor.FIELD_TYPE_BLOB; in getTypeOfObject() 233 return Cursor.FIELD_TYPE_FLOAT; in getTypeOfObject() 236 return Cursor.FIELD_TYPE_INTEGER; in getTypeOfObject() 238 return Cursor.FIELD_TYPE_STRING; in getTypeOfObject() 301 public static void assertExpectedCellValue(Cursor cursor, int row, int column) { in assertExpectedCellValue() [all …]
|
/frameworks/base/core/java/android/database/ |
D | DatabaseUtils.java | 237 return Cursor.FIELD_TYPE_NULL; in getTypeOfObject() 239 return Cursor.FIELD_TYPE_BLOB; in getTypeOfObject() 241 return Cursor.FIELD_TYPE_FLOAT; in getTypeOfObject() 244 return Cursor.FIELD_TYPE_INTEGER; in getTypeOfObject() 246 return Cursor.FIELD_TYPE_STRING; in getTypeOfObject() 262 public static void cursorFillWindow(final Cursor cursor, in cursorFillWindow() 281 case Cursor.FIELD_TYPE_NULL: in cursorFillWindow() 285 case Cursor.FIELD_TYPE_INTEGER: in cursorFillWindow() 289 case Cursor.FIELD_TYPE_FLOAT: in cursorFillWindow() 293 case Cursor.FIELD_TYPE_BLOB: { in cursorFillWindow() [all …]
|