Home
last modified time | relevance | path

Searched refs:firstOrNull (Results 1 – 25 of 42) sorted by relevance

12

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/terminal/
DFirstTest.kt91 assertEquals(1, flow.firstOrNull()) in <lambda>()
97 assertEquals(1, flow.firstOrNull { it > 0 }) in <lambda>()
98 assertEquals(2, flow.firstOrNull { it > 1 }) in <lambda>()
99 assertNull(flow.firstOrNull { it > 3 }) in <lambda>()
117 val result = flow.firstOrNull { in <lambda>()
127 assertNull(emptyFlow<Int>().firstOrNull()) in <lambda>()
128 assertNull(emptyFlow<Int>().firstOrNull { true }) in <lambda>()
133 assertNull(flowOf<String?>(null).firstOrNull()) in <lambda>()
134 assertNull(flowOf<String?>(null).firstOrNull { true }) in <lambda>()
151 flow.firstOrNull { in <lambda>()
[all …]
/external/dokka/core/src/main/kotlin/Formats/
DDacOutlineService.kt131 node.members.filter { it.kind == NodeKind.AllTypes }.firstOrNull()?.let { in appendOutlineHeader()
202 if (interfaces.firstOrNull() != null) { in appendNavTree()
206 if (classes.firstOrNull() != null) { in appendNavTree()
211 if (objects.firstOrNull() != null) { in appendNavTree()
215 if (annotations.firstOrNull() != null) { in appendNavTree()
220 if (enums.firstOrNull() != null) { in appendNavTree()
225 if (exceptions.firstOrNull() != null) { in appendNavTree()
/external/dokka/core/src/main/kotlin/Kotlin/
DKotlinLanguageService.kt46 …val functionWithTypeParameter = nodes.firstOrNull { it.details(NodeKind.TypeParameter).any() } ?: … in <lambda>()
70 return ReceiverKind.values().firstOrNull { kind -> qNames.all { it in kind.classes } } in <lambda>()
238 val valueNode = node.details(NodeKind.Value).firstOrNull() in <lambda>()
412 detail(NodeKind.Type).hiddenLinks.firstOrNull()?.qualifiedName() == "kotlin.Unit" in <lambda>()
456 return details.firstOrNull { it.kind == NodeKind.QualifiedName }?.name in qualifiedNameFromType()
457 …?: (links.firstOrNull { it.kind != NodeKind.ExternalLink } ?: hiddenLinks.firstOrNull())?.qualifie… in qualifiedNameFromType()
463 get() = (links.firstOrNull { it.kind in NodeKind.classLike } ?: externalType) in <lambda>()
DKotlinAsJavaElementSignatureProvider.kt11 this is KtElement -> toLightElements().firstOrNull() in javaLikePsi()
DDeclarationLinkResolver.kt64 return symbol.overriddenDescriptors.firstOrNull() in <lambda>()
/external/guava/guava/src/com/google/common/collect/
DAbstractSequentialIterator.java50 protected AbstractSequentialIterator(@Nullable T firstOrNull) { in AbstractSequentialIterator() argument
51 this.nextOrNull = firstOrNull; in AbstractSequentialIterator()
/external/guava/android/guava/src/com/google/common/collect/
DAbstractSequentialIterator.java50 protected AbstractSequentialIterator(@NullableDecl T firstOrNull) { in AbstractSequentialIterator() argument
51 this.nextOrNull = firstOrNull; in AbstractSequentialIterator()
/external/dokka/core/src/main/kotlin/Model/
DDocumentationNode.kt116 get() = references(RefKind.Deprecation).map { it.to }.firstOrNull() in <lambda>()
120 get() = references(RefKind.ExternalType).map { it.to }.firstOrNull() in <lambda>()
130 get() = references(RefKind.AttributeRef).map { it.to }.firstOrNull() in <lambda>()
146 …(links + listOfNotNull(externalType)).firstOrNull { it.kind in NodeKind.classLike }?.superclassType in <lambda>()
149 in NodeKind.classLike -> supertypes.firstOrNull { in <lambda>()
DSourceLinks.kt16 val linkDef = sourceLinks.firstOrNull { absPath.startsWith(it.path) } in appendSourceLink()
DContent.kt237 sections.firstOrNull { tag.equals(it.tag, ignoreCase = true) } in findSectionByTag()
261 override val summary: ContentNode get() = children.firstOrNull() ?: ContentEmpty
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/terminal/
DReduce.kt122 public suspend fun <T> Flow<T>.firstOrNull(): T? { in firstOrNull() method
135 public suspend fun <T> Flow<T>.firstOrNull(predicate: suspend (T) -> Boolean): T? { in firstOrNull() method
/external/dokka/core/src/main/kotlin/Samples/
DDefaultSampleProcessingService.kt34 …cLink(bindingContext, resolutionFacade, descriptor, kdocTag, functionName.split(".")).firstOrNull() in resolveSample()
86 .firstOrNull() in resolveInScope()
/external/kotlinx.coroutines/kotlinx-coroutines-test/src/
DTestCoroutineExceptionHandler.kt57 val exception = _exceptions.firstOrNull() ?: return in cleanupTestCoroutines()
/external/dokka/core/src/main/kotlin/javadoc/
Dsource-position.kt11 docNode.details(NodeKind.SourcePosition).firstOrNull()?.name?.split(":") ?: emptyList() in <lambda>()
Ddocbase.kt188 node.links.firstOrNull { it.kind != NodeKind.ExternalLink } != null -> { in qualifiedTypeName()
189 … TypeAdapter(module, node.links.firstOrNull { it.kind != NodeKind.ExternalLink }!!).asClassDoc() in qualifiedTypeName()
257 .firstOrNull { it.kind == NodeKind.Class || it.kind == NodeKind.ExternalClass } in qualifiedTypeName()
361 …override fun overriddenType(): Type? = node.overrides.firstOrNull()?.owner?.let { owner -> TypeAda… in overrides()
363 …fun overriddenMethod(): MethodDoc? = node.overrides.map { MethodAdapter(module, it) }.firstOrNull() in <lambda>()
473 .map { it.links.firstOrNull() } in lookupSuperClasses()
/external/lottie/LottieSample/src/androidTest/java/com/airbnb/lottie/samples/
DObjectPool.kt27 objects.firstOrNull()?.also { objects.remove(it) } in acquire()
DBitmapPool.kt41 .firstOrNull { it.width >= width && it.height >= height } in acquire()
/external/dokka/runners/gradle-integration-tests/src/test/kotlin/org/jetbrains/dokka/gradle/
DAbstractDokkaAndroidGradleTest.kt17 val sdkDirLine = lines.firstOrNull { "sdk.dir" in it } in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/test/
DCheck.kt51 val maybeValue = maybe.toFlowable().blockingIterable().firstOrNull() in checkMaybeValue()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/test/
DCheck.kt52 val maybeValue = maybe.toFlowable().blockingIterable().firstOrNull() in checkMaybeValue()
/external/dokka/core/src/main/kotlin/Markdown/
DMarkdownProcessor.kt15 fun child(type: IElementType): MarkdownNode? = children.firstOrNull { it.type == type } in <lambda>()
/external/dokka/core/src/main/kotlin/Languages/
DCommonLanguageService.kt47 val to = node.links.firstOrNull() in renderLinked()
/external/dokka/core/src/main/kotlin/Formats/JavaLayoutHtml/
DJavaLayoutHtmlFormatOutputBuilder.kt233 drop(1).fold(listOfNotNull(firstOrNull())) { acc, node -> in <lambda>()
366 ?: href.links.firstOrNull { it.kind == NodeKind.ExternalLink }?.name in <lambda>()
460 val targetLink = node.links.firstOrNull() in <lambda>()
1112 … receiverType.links.filter { it.kind != NodeKind.ExternalLink}.firstOrNull() ?: in <lambda>()
1159 details(NodeKind.Modifier).firstOrNull { it.name in visibilityNames }?.name ?: "" in visibility()
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DFilmStripSnapshotActivity.kt64 RC_PERMISSION -> if (grantResults.firstOrNull() == PackageManager.PERMISSION_GRANTED) { in <lambda>()
/external/dokka/core/src/main/kotlin/Utilities/
DServiceLocator.kt27 .firstOrNull() in <lambda>()

12