Home
last modified time | relevance | path

Searched refs:CursorView (Results 1 – 7 of 7) sorted by relevance

/packages/modules/IntentResolver/java/src/com/android/intentresolver/util/cursor/
DCursorView.kt22 interface CursorView<out E> : Cursor { interface
34 fun <E> Cursor.viewBy(readRow: Cursor.() -> E): CursorView<E> = in readRow()
35 object : CursorView<E>, Cursor by this@viewBy { in readRow()
40 fun <E> CursorView<E>.startAt(newStartIndex: Int): CursorView<E> = in startAt()
41 object : CursorView<E>, Cursor by (this@startAt as Cursor).startAt(newStartIndex) { in startAt()
46 fun <E> CursorView<E>.limit(count: Int): CursorView<E> = in limit()
47 object : CursorView<E>, Cursor by (this@limit as Cursor).limit(count) { in limit()
52 operator fun <E> CursorView<E>.get(idx: Int): E? = if (moveToPosition(idx)) readRow() else null in get()
55 fun <E> CursorView<E>.asSequence(): Sequence<E?> = sequence { in get()
DPagedCursor.kt22 interface PagedCursor<out E> : CursorView<Sequence<E?>> {
28 fun <E> CursorView<E>.paged(pageSize: Int): PagedCursor<E> = in paged()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/cursor/
DCursorResolver.kt19 import com.android.intentresolver.util.cursor.CursorView
23 suspend fun getCursor(): CursorView<T>? in interface()
DPayloadToggleCursorResolver.kt29 import com.android.intentresolver.util.cursor.CursorView in <lambda>()
47 override suspend fun getCursor(): CursorView<CursorRow?>? = withCancellationSignal { signal -> in <lambda>()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/interactor/
DCursorPreviewsInteractorTest.kt38 import com.android.intentresolver.util.cursor.CursorView in <lambda>()
95 val cursor: CursorView<CursorRow?> = in <lambda>()
DFetchPreviewsInteractorTest.kt38 import com.android.intentresolver.util.cursor.CursorView
96 override suspend fun getCursor(): CursorView<CursorRow?> = in complete()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/interactor/
DCursorPreviewsInteractor.kt34 import com.android.intentresolver.util.cursor.CursorView in <lambda>()
71 suspend fun launch(uriCursor: CursorView<CursorRow?>, initialPreviews: Iterable<PreviewModel>) { in <lambda>()