Home
last modified time | relevance | path

Searched defs:cursor (Results 1 – 25 of 150) sorted by relevance

123456

/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDatabaseTest.java70 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 …]
DMtpDocumentsProviderTest.java153 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 …]
DDocumentLoaderTest.java78 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/
DMatrixCursorTest.java28 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/
DPhotoPagerAdapter.java50 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/opt/telephony/src/java/com/android/internal/telephony/ims/
DRcsEventQueryHelper.java76 try (Cursor cursor = mContentResolver.query(RCS_EVENT_QUERY_URI, null, bundle, null)) { in performEventQuery()
153 private RcsGroupThreadIconChangedEventDescriptor createNewGroupIconChangedEvent(Cursor cursor) { in createNewGroupIconChangedEvent()
163 private RcsGroupThreadNameChangedEventDescriptor createNewGroupNameChangedEvent(Cursor cursor) { in createNewGroupNameChangedEvent()
172 createNewParticipantLeftEvent(Cursor cursor) { in createNewParticipantLeftEvent()
181 createNewParticipantJoinedEvent(Cursor cursor) { in createNewParticipantJoinedEvent()
190 createNewParticipantAliasChangedEvent(Cursor cursor) { in createNewParticipantAliasChangedEvent()
/frameworks/base/core/java/android/widget/
DCursorTreeAdapter.java63 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 …]
DResourceCursorTreeAdapter.java51 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()
DSimpleCursorTreeAdapter.java102 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()
DCursorFilter.java32 CharSequence convertToString(Cursor cursor); in convertToString()
35 void changeCursor(Cursor cursor); in changeCursor()
49 Cursor cursor = mClient.runQueryOnBackgroundThread(constraint); in performFiltering() local
DSuggestionsAdapter.java186 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()
DCursorAdapter.java326 public abstract View newView(Context context, Cursor cursor, ViewGroup parent); in newView()
336 public View newDropDownView(Context context, Cursor cursor, ViewGroup parent) { in newDropDownView()
347 public abstract void bindView(View view, Context context, Cursor cursor); in bindView()
355 public void changeCursor(Cursor cursor) { in changeCursor()
407 public CharSequence convertToString(Cursor cursor) { in convertToString()
DAlphabetIndexer.java82 public AlphabetIndexer(Cursor cursor, int sortedColumnIndex, CharSequence alphabet) { in AlphabetIndexer()
112 public void setCursor(Cursor cursor) { in setCursor()
148 final Cursor cursor = mDataCursor; in getPositionForSection() local
/frameworks/ex/common/java/com/android/common/widget/
DCompositeCursorAdapter.java38 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/
DDatabaseUtils.java354 public static void cursorFillWindow(final Cursor cursor, in cursorFillWindow()
560 public static void dumpCursor(Cursor cursor) { in dumpCursor()
571 public static void dumpCursor(Cursor cursor, PrintStream stream) { in dumpCursor()
592 public static void dumpCursor(Cursor cursor, StringBuilder sb) { in dumpCursor()
613 public static String dumpCursorToString(Cursor cursor) { in dumpCursorToString()
624 public static void dumpCurrentRow(Cursor cursor) { in dumpCurrentRow()
634 public static void dumpCurrentRow(Cursor cursor, PrintStream stream) { in dumpCurrentRow()
658 public static void dumpCurrentRow(Cursor cursor, StringBuilder sb) { in dumpCurrentRow()
682 public static String dumpCurrentRowToString(Cursor cursor) { in dumpCurrentRowToString()
695 public static void cursorStringToContentValues(Cursor cursor, String field, in cursorStringToContentValues()
[all …]
/frameworks/ex/common/tests/src/com/android/common/widget/
DCompositeCursorAdapterTest.java47 … 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/
DDownloadManagerFunctionalTest.java88 Cursor cursor = getCursor(dlRequest); in doErrorTest() local
135 Cursor cursor = mDownloadManager.query(new Query().setFilterById(requestId)); in verifyDownload() local
170 Cursor cursor = getCursor(dlRequest); in testDownloadToExternal_fileExists() local
324 Cursor cursor = mDownloadManager.query(new Query().setFilterById(dlRequest)); in testRemoveDownload() local
355 Cursor cursor = getCursor(dlRequest); in testSetTitle() local
411 Cursor cursor = getCursor(dlRequest); in testServerDropConnection_body() local
/frameworks/ex/common/java/com/android/common/contacts/
DBaseEmailAddressAdapter.java174 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/base/core/tests/coretests/src/android/content/
DRedactingProvider.java36 final MatrixCursor cursor = new MatrixCursor( in query() local
46 final MatrixCursor cursor = new MatrixCursor( in query() local
57 final MatrixCursor cursor = new MatrixCursor( in query() local
/frameworks/base/core/java/android/content/
DContentQueryMap.java62 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()
DCursorEntityIterator.java38 public CursorEntityIterator(Cursor cursor) { in CursorEntityIterator()
51 public abstract Entity getEntityAndIncrementCursor(Cursor cursor) throws RemoteException; in getEntityAndIncrementCursor()
/frameworks/base/core/java/android/text/util/
DRfc822Tokenizer.java51 int cursor = text.length(); in tokenize() local
210 public int findTokenStart(CharSequence text, int cursor) { in findTokenStart()
241 public int findTokenEnd(CharSequence text, int cursor) { in findTokenEnd()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDatabase.java260 try (final Cursor cursor = mDatabase.query( in getStorageDocumentIds()
300 final Cursor cursor = mDatabase.query( in getDocumentIdForDevice() local
327 final Cursor cursor = mDatabase.query( in getParentIdentifier() local
348 try (final Cursor cursor = mDatabase.query( in getDeviceDocumentId()
409 final Cursor cursor = mDatabase.query( in createIdentifier() local
448 final Cursor cursor = mDatabase.query( in deleteDocumentsAndRootsRecursively() local
487 try (final Cursor cursor = mDatabase.query( in disconnectDocumentsRecursively()
555 try (final Cursor cursor = mDatabase.query( in getRowState()
572 try (final Cursor cursor = mDatabase.query( in writeRowSnapshot()
624 try (final Cursor cursor = mDatabase.query( in getUnmappedDocumentsParent()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/database/
DSQLiteDatabasePerfTest.java84 try (Cursor cursor = mDatabase.rawQuery("SELECT _ID, COL_A, COL_B, COL_C FROM T1 " in testSelect()
104 try (Cursor cursor = mDatabase.rawQuery("SELECT _ID, COL_A, COL_B, COL_C FROM T1 " in testSelectMultipleRows()
129 try (Cursor cursor = mDatabase in testCursorIterateForward()
152 try (Cursor cursor = mDatabase in testCursorIterateBackwards()
181 try (Cursor cursor = mDatabase.rawQuery( in testInnerJoin()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerListHelper.java50 Cursor cursor = mActivity.managedQuery(TrackerProvider.CONTENT_URI, in bindListUI() local
67 public void bindView(View view, Context context, Cursor cursor) { in bindView()

123456