| /frameworks/support/core/ktx/src/androidTest/java/androidx/core/database/ |
| D | CursorTest.kt | 28 val cursor = scalarCursor(byteArrayOf(0x01)) in blobByName() constant 34 val cursor = scalarCursor(1.5) in doubleByName() constant 40 val cursor = scalarCursor(1.5f) in floatByName() constant 46 val cursor = scalarCursor(1) in intByName() constant 52 val cursor = scalarCursor(1L) in longByName() constant 58 val cursor = scalarCursor(1.toShort()) in shortByName() constant 64 val cursor = scalarCursor("hey") in stringByName() constant 70 val cursor = scalarCursor(null) in blobOrNullByIndex() constant 76 val cursor = scalarCursor(null) in doubleOrNullByIndex() constant 82 val cursor = scalarCursor(null) in floatOrNullByIndex() constant [all …]
|
| /frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
| D | MtpDatabaseTest.java | 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() local 116 final Cursor cursor = mDatabase.queryRoots(resources, new String [] { in testPutSingleStorageDocuments() local 155 final Cursor cursor = mDatabase.queryRootDocuments(COLUMN_NAMES); in testPutStorageDocuments() local 205 final Cursor cursor = mDatabase.queryChildDocuments(COLUMN_NAMES, "2"); in testPutChildDocuments() local 280 try (final Cursor cursor = in testPutChildDocuments_operationsSupported() 297 try (final Cursor cursor = in testPutChildDocuments_operationsSupported() 313 try (final Cursor cursor = in testPutChildDocuments_operationsSupported() [all …]
|
| D | MtpDocumentsProviderTest.java | 153 try (final Cursor cursor = mProvider.queryRoots(columns)) { in testOpenDeviceOnDemand() 164 try (final Cursor cursor = mProvider.queryChildDocuments("1", null, (String) null)) {} in testOpenDeviceOnDemand() 211 final Cursor cursor = mProvider.queryRoots(null); in testQueryRoots() local 229 final Cursor cursor = mProvider.queryRoots(null); in testQueryRoots() local 276 final Cursor cursor = mProvider.queryRoots(null); in testQueryRoots_error() local 320 final Cursor cursor = mProvider.queryDocument("3", null); in testQueryDocument() local 357 final Cursor cursor = mProvider.queryDocument("3", null); in testQueryDocument_directory() local 384 final Cursor cursor = mProvider.queryDocument("2", null); in testQueryDocument_forStorage() local 408 final Cursor cursor = mProvider.queryDocument("1", null); in testQueryDocument_forDeviceWithSingleStorage() local 439 final Cursor cursor = mProvider.queryDocument("1", null); in testQueryDocument_forDeviceWithTwoStorages() local [all …]
|
| D | DocumentLoaderTest.java | 78 final Cursor cursor = mLoader.queryChildDocuments( in testBasic() local 88 final Cursor cursor = mLoader.queryChildDocuments( in testBasic() local 99 final Cursor cursor = mLoader.queryChildDocuments( in testBasic() local 118 try (final Cursor cursor = mLoader.queryChildDocuments( in testError_GetObjectHandles() 139 try (final Cursor cursor = mLoader.queryChildDocuments( in testError_GetObjectInfo() 154 try (final Cursor cursor = mLoader.queryChildDocuments( in testCancelTask() 171 try (final Cursor cursor = mLoader.queryChildDocuments( in testCancelTask()
|
| /frameworks/base/core/tests/coretests/src/android/database/ |
| D | MatrixCursorTest.java | 28 Cursor cursor = new MatrixCursor(new String[] { "a" }); in testEmptyCursor() local 33 MatrixCursor cursor = new MatrixCursor(new String[] { "a" }); in testNullValue() local 47 MatrixCursor cursor = newMatrixCursor(); in testMatrixCursor() local 79 MatrixCursor cursor = newMatrixCursor(); in testAddArray() local 92 MatrixCursor cursor = newMatrixCursor(); in testAddIterable() local 111 MatrixCursor cursor = newMatrixCursor(); in testAddArrayList() local 132 MatrixCursor cursor = newMatrixCursor(); in testRowBuilderOffer() local 200 private void checkValues(MatrixCursor cursor) { in checkValues()
|
| /frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
| D | PhotoPagerAdapter.java | 50 public Fragment getItem(Context context, Cursor cursor, int position) { in getItem() 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()
|
| /frameworks/support/leanback/src/main/java/androidx/leanback/database/ |
| D | CursorMapper.java | 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/content/src/androidTest/java/androidx/contentpager/content/ |
| D | ContentPagerTest.java | 94 Cursor cursor = mCallback.getCursor(query); in testRelaysProviderPagedResults() local 144 Cursor cursor = mCallback.getCursor(query); in testLimitsPagedResultsToWindowSize() local 189 Cursor cursor = mCallback.getCursor(query); in testAdaptsUnpagedToPaged() local 244 Cursor cursor = mCallback.getCursor(query); in testCachesUnpagedCursor() local 277 Cursor cursor = mCallback.getCursor(query); in testWrapsCursorsThatJustHappenToFitInPageRange() local 323 Cursor cursor = mCallback.getCursor(query); in testCorrectlyCopiesRecords_EndOfResults() local 380 Cursor cursor = mCallback.getCursor(query); in testRelaysContentChangeNotificationsOnPagedCursors() local 388 private void assertExpectedRecords(Cursor cursor, int offset) { in assertExpectedRecords() 413 public void onCursorReady(Query query, Cursor cursor) { in onCursorReady()
|
| /frameworks/base/core/java/android/widget/ |
| D | CursorTreeAdapter.java | 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() 139 public void setGroupCursor(Cursor cursor) { in setGroupCursor() 196 Cursor cursor = mGroupCursorHelper.moveTo(groupPosition); in getGroupView() local 221 protected abstract View newGroupView(Context context, Cursor cursor, boolean isExpanded, in newGroupView() 233 protected abstract void bindGroupView(View view, Context context, Cursor cursor, in bindGroupView() 240 Cursor cursor = cursorHelper.moveTo(childPosition); in getChildView() local 265 protected abstract View newChildView(Context context, Cursor cursor, boolean isLastChild, in newChildView() 277 protected abstract void bindChildView(View view, Context context, Cursor cursor, in bindChildView() [all …]
|
| D | ResourceCursorTreeAdapter.java | 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 | 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 | CursorFilter.java | 32 CharSequence convertToString(Cursor cursor); in convertToString() 35 void changeCursor(Cursor cursor); in changeCursor() 49 Cursor cursor = mClient.runQueryOnBackgroundThread(constraint); in performFiltering() local
|
| D | SuggestionsAdapter.java | 186 Cursor cursor = null; in runQueryOnBackgroundThread() local 233 private void updateSpinnerState(Cursor cursor) { in updateSpinnerState() 284 public View newView(Context context, Cursor cursor, ViewGroup parent) { in newView() 316 public void bindView(View view, Context context, Cursor cursor) { in bindView() 402 private Drawable getIcon1(Cursor cursor) { in getIcon1() 414 private Drawable getIcon2(Cursor cursor) { in getIcon2() 455 public CharSequence convertToString(Cursor cursor) { in convertToString() 646 private Drawable getDefaultIcon1(Cursor cursor) { in getDefaultIcon1() 717 public static String getColumnString(Cursor cursor, String columnName) { in getColumnString() 722 private static String getStringOrNull(Cursor cursor, int col) { in getStringOrNull()
|
| /frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/ |
| D | IntegralToString.java | 379 sb.append(buf, cursor, bufLen - cursor); in sb.append() argument 393 private static int intIntoCharArray(char[] buf, int cursor, int n) { in intIntoCharArray() 424 int cursor = bufLen; in intToBinaryString() local 441 int cursor = bufLen; in longToBinaryString() local 479 int cursor = bufLen; in intToHexString() local 497 int cursor = bufLen; in longToHexString() local 509 int cursor = bufLen; in intToOctalString() local 525 int cursor = bufLen; in longToOctalString() local
|
| /frameworks/ex/common/java/com/android/common/widget/ |
| D | CompositeCursorAdapter.java | 38 Cursor cursor; field in CompositeCursorAdapter.Partition 105 Cursor cursor = mPartitions.get(partitionIndex).cursor; in removePartition() local 133 Cursor cursor = partition.cursor; in close() local 172 Cursor cursor = partition.cursor; in ensureCacheValid() local 216 public void changeCursor(int partition, Cursor cursor) { in changeCursor() 235 Cursor cursor = mPartitions.get(partition).cursor; in isPartitionEmpty() local 368 protected View getHeaderView(int partition, Cursor cursor, View convertView, in getHeaderView() 380 protected View newHeaderView(Context context, int partition, Cursor cursor, in newHeaderView() 388 protected void bindHeaderView(View view, int partition, Cursor cursor) { in bindHeaderView() 394 protected View getView(int partition, Cursor cursor, int position, View convertView, in getView() [all …]
|
| /frameworks/base/core/java/android/database/ |
| D | DatabaseUtils.java | 262 public static void cursorFillWindow(final Cursor cursor, in cursorFillWindow() 468 public static void dumpCursor(Cursor cursor) { in dumpCursor() 479 public static void dumpCursor(Cursor cursor, PrintStream stream) { in dumpCursor() 500 public static void dumpCursor(Cursor cursor, StringBuilder sb) { in dumpCursor() 521 public static String dumpCursorToString(Cursor cursor) { in dumpCursorToString() 532 public static void dumpCurrentRow(Cursor cursor) { in dumpCurrentRow() 542 public static void dumpCurrentRow(Cursor cursor, PrintStream stream) { in dumpCurrentRow() 566 public static void dumpCurrentRow(Cursor cursor, StringBuilder sb) { in dumpCurrentRow() 590 public static String dumpCurrentRowToString(Cursor cursor) { in dumpCurrentRowToString() 603 public static void cursorStringToContentValues(Cursor cursor, String field, in cursorStringToContentValues() [all …]
|
| /frameworks/support/cursoradapter/src/main/java/androidx/cursoradapter/widget/ |
| D | CursorFilter.java | 33 CharSequence convertToString(Cursor cursor); in convertToString() 36 void changeCursor(Cursor cursor); in changeCursor() 50 Cursor cursor = mClient.runQueryOnBackgroundThread(constraint); in performFiltering() local
|
| /frameworks/ex/common/tests/src/com/android/common/widget/ |
| D | CompositeCursorAdapterTest.java | 47 … protected View newHeaderView(Context context, int partition, Cursor cursor, ViewGroup parent) { in newHeaderView() 52 protected void bindHeaderView(View view, int partition, Cursor cursor) { in bindHeaderView() 58 protected View newView(Context context, int sectionIndex, Cursor cursor, int position, in newView() 64 protected void bindView(View v, int partition, Cursor cursor, int position) { in bindView() 251 MatrixCursor cursor = new MatrixCursor(new String[]{name}); in makeCursor() local
|
| /frameworks/base/core/tests/coretests/src/android/app/ |
| D | DownloadManagerFunctionalTest.java | 87 Cursor cursor = getCursor(dlRequest); in doErrorTest() local 134 Cursor cursor = mDownloadManager.query(new Query().setFilterById(requestId)); in verifyDownload() local 169 Cursor cursor = getCursor(dlRequest); in testDownloadToExternal_fileExists() local 323 Cursor cursor = mDownloadManager.query(new Query().setFilterById(dlRequest)); in testRemoveDownload() local 354 Cursor cursor = getCursor(dlRequest); in testSetTitle() local 410 Cursor cursor = getCursor(dlRequest); in testServerDropConnection_body() local
|
| /frameworks/support/work/workmanager/src/androidTest/java/androidx/work/ |
| D | WorkDatabaseMigrationTest.java | 145 Cursor cursor = database.query(CHECK_SYSTEM_ID_INFO); in testMigrationVersion1To2() local 184 Cursor cursor = database.query(CHECK_ALARM_INFO); in testMigrationVersion2To1() local 230 Cursor cursor = database.query(CHECK_ALARM_INFO); in testMigrationVersion1To2To1() local 248 Cursor cursor = null; in checkExists() local
|
| /frameworks/support/room/runtime/src/main/java/androidx/room/paging/ |
| D | LimitOffsetDataSource.java | 86 Cursor cursor = mDb.query(sqLiteQuery); in countItems() local 105 protected abstract List<T> convertRows(Cursor cursor); in convertRows() 152 Cursor cursor = null; in loadRange() local 166 Cursor cursor = mDb.query(sqLiteQuery); in loadRange() local
|
| /frameworks/base/core/java/android/content/ |
| D | ContentQueryMap.java | 62 public ContentQueryMap(Cursor cursor, String columnNameOfKey, boolean keepUpdated, in ContentQueryMap() 131 final Cursor cursor = mCursor; in requery() local 148 private synchronized void readCursorIntoCache(Cursor cursor) { in readCursorIntoCache()
|
| D | CursorEntityIterator.java | 36 public CursorEntityIterator(Cursor cursor) { in CursorEntityIterator() 49 public abstract Entity getEntityAndIncrementCursor(Cursor cursor) throws RemoteException; in getEntityAndIncrementCursor()
|
| /frameworks/ex/common/java/com/android/common/contacts/ |
| D | BaseEmailAddressAdapter.java | 174 Cursor cursor = null; in performFiltering() local 238 Cursor cursor = mContentResolver.query( in performFiltering() local 247 Cursor cursor = (Cursor) results.values; in publishResults() local 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() 495 MatrixCursor cursor = new MatrixCursor(new String[]{SEARCHING_CURSOR_MARKER}); in createLoadingCursor() local 501 CharSequence constraint, int partitionIndex, Cursor cursor) { in onPartitionLoadFinished() 528 private Cursor removeDuplicatesAndTruncate(int partition, Cursor cursor) { in removeDuplicatesAndTruncate() 554 private boolean hasDuplicates(Cursor cursor, int partition) { in hasDuplicates() 573 Cursor cursor = getCursor(partition); in isDuplicate() local [all …]
|
| /frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
| D | SuggestionsAdapter.java | 151 Cursor cursor = null; in runQueryOnBackgroundThread() local 194 private void updateSpinnerState(Cursor cursor) { in updateSpinnerState() 243 public View newView(Context context, Cursor cursor, ViewGroup parent) { in newView() 274 public void bindView(View view, Context context, Cursor cursor) { in bindView() 361 private Drawable getIcon1(Cursor cursor) { in getIcon1() 373 private Drawable getIcon2(Cursor cursor) { in getIcon2() 414 public CharSequence convertToString(Cursor cursor) { in convertToString() 604 private Drawable getDefaultIcon1(Cursor cursor) { in getDefaultIcon1() 675 public static String getColumnString(Cursor cursor, String columnName) { in getColumnString() 680 private static String getStringOrNull(Cursor cursor, int col) { in getStringOrNull()
|