/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 279 try (final Cursor cursor = in testPutChildDocuments_operationsSupported() 296 try (final Cursor cursor = in testPutChildDocuments_operationsSupported() 312 try (final Cursor cursor = in testPutChildDocuments_operationsSupported() [all …]
|
D | MtpDocumentsProviderTest.java | 151 try (final Cursor cursor = mProvider.queryRoots(columns)) { in testOpenDeviceOnDemand() 162 try (final Cursor cursor = mProvider.queryChildDocuments("1", null, null)) {} in testOpenDeviceOnDemand() 209 final Cursor cursor = mProvider.queryRoots(null); in testQueryRoots() local 223 final Cursor cursor = mProvider.queryRoots(null); in testQueryRoots() local 269 final Cursor cursor = mProvider.queryRoots(null); in testQueryRoots_error() local 309 final Cursor cursor = mProvider.queryDocument("3", null); in testQueryDocument() local 345 final Cursor cursor = mProvider.queryDocument("3", null); in testQueryDocument_directory() local 372 final Cursor cursor = mProvider.queryDocument("2", null); in testQueryDocument_forRoot() local 403 final Cursor cursor = mProvider.queryChildDocuments("1", null, null); in testQueryChildDocuments() local 429 try (final Cursor cursor = mProvider.queryChildDocuments("1", null, null)) { in testQueryChildDocuments_documentError() [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/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 | 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()
|
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
|
/frameworks/base/tools/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/support/v17/leanback/src/android/support/v17/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/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/base/packages/DocumentsUI/src/com/android/documentsui/model/ |
D | DocumentInfo.java | 141 public static DocumentInfo fromDirectoryCursor(Cursor cursor) { in fromDirectoryCursor() 147 public static DocumentInfo fromCursor(Cursor cursor, String authority) { in fromCursor() 154 public void updateFromCursor(Cursor cursor, String authority) { in updateFromCursor() 184 Cursor cursor = null; in updateFromUri() local 289 public static String getCursorString(Cursor cursor, String columnName) { in getCursorString() 297 public static long getCursorLong(Cursor cursor, String columnName) { in getCursorLong() 312 public static int getCursorInt(Cursor cursor, String columnName) { in getCursorInt()
|
/frameworks/support/documents-archive/tests/src/android/support/provider/ |
D | DocumentArchiveTest.java | 90 final Cursor cursor = mArchive.queryChildDocuments(DOCUMENT_ID, null, null); in testQueryChildDocument() local 143 final Cursor cursor = mArchive.queryChildDocuments(DOCUMENT_ID, null, null); in testQueryChildDocument_NoDirs() local 184 final Cursor cursor = mArchive.queryChildDocuments(DOCUMENT_ID, null, null); in testQueryChildDocument_EmptyDirs() local 251 final Cursor cursor = mArchive.queryDocument("document-id:dir2/strawberries.txt", null); in testQueryDocument() local
|
D | IntegrationTest.java | 66 final Cursor cursor = mContext.getContentResolver().query( in testQueryForChildren() local 75 final Cursor cursor = mContext.getContentResolver().query( in testQueryForDocument_Archive() local 87 final Cursor cursor = mContext.getContentResolver().query( in testQueryForDocument_ArchiveDescendant() 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/support/v4/java/android/support/v4/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/base/core/tests/coretests/src/android/app/ |
D | DownloadManagerFunctionalTest.java | 86 Cursor cursor = getCursor(dlRequest); in doErrorTest() local 133 Cursor cursor = mDownloadManager.query(new Query().setFilterById(requestId)); in verifyDownload() local 168 Cursor cursor = getCursor(dlRequest); in testDownloadToExternal_fileExists() local 322 Cursor cursor = mDownloadManager.query(new Query().setFilterById(dlRequest)); in testRemoveDownload() local 353 Cursor cursor = getCursor(dlRequest); in testSetTitle() local 409 Cursor cursor = getCursor(dlRequest); in testServerDropConnection_body() local
|
/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/android/support/v7/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() 360 private Drawable getIcon1(Cursor cursor) { in getIcon1() 372 private Drawable getIcon2(Cursor cursor) { in getIcon2() 413 public CharSequence convertToString(Cursor cursor) { in convertToString() 580 private Drawable getDefaultIcon1(Cursor cursor) { in getDefaultIcon1() 651 public static String getColumnString(Cursor cursor, String columnName) { in getColumnString() 656 private static String getStringOrNull(Cursor cursor, int col) { in getStringOrNull()
|
/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/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DocumentsAdapter.java | 85 static boolean isDirectory(Cursor cursor) { in isDirectory() 92 Cursor cursor = model.getItem(modelId); in isDirectory() local 107 void onBindDocumentHolder(DocumentHolder holder, Cursor cursor); in onBindDocumentHolder()
|