Home
last modified time | relevance | path

Searched refs:result (Results 1 – 9 of 9) sorted by relevance

/lifecycle/lifecycle-livedata/src/main/java/androidx/lifecycle/
DTransformations.kt52 val result = in <lambda>() constant
58 result.addSource(this) { x -> result.value = transform(x) } in <lambda>()
59 return result in <lambda>()
70 val result = MediatorLiveData<Y>() in map() constant
71 result.addSource(this) { x -> result.value = mapFunction.apply(x) } in map()
72 return result in map()
126 val result = in switchMap() constant
137 result.addSource(this) { value: X -> in switchMap()
141 result.removeSource(liveData!!) in switchMap()
145 result.addSource(liveData!!) { y -> result.setValue(y) } in switchMap()
[all …]
/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/
DTestUtils.java63 T result; in recreateActivity() local
76 result = (T) monitor.waitForActivityWithTimeout(TIMEOUT_MS); in recreateActivity()
77 if (result == null) { in recreateActivity()
80 } while (result == activity); in recreateActivity()
82 return result; in recreateActivity()
138 ArrayList<T> result = new ArrayList<>(); in flatMap() local
140 result.addAll(item); in flatMap()
142 return result; in flatMap()
/lifecycle/lifecycle-livedata/src/androidTest/java/androidx.lifecycle/
DFlowAsLiveDataIntegrationTest.kt81 val result = MutableStateFlow(value).asLiveData().value in asLiveData_preserveStateFlowInitialValue() constant
82 assertThat(result).isNotNull() in asLiveData_preserveStateFlowInitialValue()
83 assertThat(result).isEqualTo(value) in asLiveData_preserveStateFlowInitialValue()
/lifecycle/lifecycle-viewmodel/src/androidInstrumentedTest/kotlin/androidx/lifecycle/
DCreationExtrasTest.kt75 val result = STRING_KEY_1 in underTest in contains_returnsTrueForExistingKey() constant
77 assertThat(result).isTrue() in contains_returnsTrueForExistingKey()
84 val result = STRING_KEY_2 in underTest in contains_returnsFalseForNonExistingKey() constant
86 assertThat(result).isFalse() in contains_returnsFalseForNonExistingKey()
/lifecycle/lifecycle-runtime/src/commonTest/kotlin/androidx/lifecycle/
DFlowWithLifecycleTest.kt42 val result = in <lambda>() constant
47 assertThat(result).containsExactly(1, 2, 3).inOrder() in <lambda>()
54 val result = in <lambda>() constant
59 assertThat(result).containsExactly(1, 2, 3).inOrder() in <lambda>()
67 val result = in <lambda>() constant
72 assertThat(result.size).isEqualTo(0) in <lambda>()
/lifecycle/lifecycle-viewmodel-savedstate/src/commonMain/kotlin/androidx/lifecycle/
DSavedStateHandleSupport.kt200 val result = state.read { getSavedStateOrNull(key) ?: savedState() } in consumeRestoredStateForKey() constant
206 return result in consumeRestoredStateForKey()
/lifecycle/integration-tests/kotlintestapp/src/test-common/java/androidx.lifecycle/
DLifecycleCoroutineScopeTestBase.kt159 val result = kotlin.runCatching { action.await() } in runAnotherAfterFailure() constant
160 assertThat(result.exceptionOrNull()).isInstanceOf(IllegalArgumentException::class.java) in runAnotherAfterFailure()
/lifecycle/lifecycle-runtime/src/androidInstrumentedTest/kotlin/androidx/lifecycle/
DPausingDispatcherTest.kt154 val result = runBlocking { in <lambda>() constant
160 assertThat(result).isEqualTo(3) in <lambda>()
232 val result = runBlocking { in <lambda>() constant
245 assertThat(result).isEqualTo("hellohello") in <lambda>()
/lifecycle/lifecycle-compiler/src/main/resources/META-INF/
DNOTICE.txt165 result of this License or out of the use or inability to use the
402 result of this License or out of the use or inability to use the
612 result of this License or out of the use or inability to use the
822 result of this License or out of the use or inability to use the
1032 result of this License or out of the use or inability to use the