OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:LiveData
(Results
1 - 25
of
57
) sorted by null
1
2
3
/frameworks/support/room/compiler/src/test/data/common/input/
LiveData.java
0
//
LiveData
interface for tests
3
public class
LiveData
<T> {
ComputableLiveData.java
3
import androidx.lifecycle.
LiveData
;
7
public
LiveData
<T> getLiveData() {return null;}
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/dao/
SpecificDogDao.java
19
import androidx.lifecycle.
LiveData
;
27
LiveData
<PetsToys> getSpecificDogsToys();
WithClauseDao.java
22
import androidx.lifecycle.
LiveData
;
53
LiveData
<List<String>> getUsersWithFactorialIdsLiveData(int maxIndexInclusive);
RawDao.java
19
import androidx.lifecycle.
LiveData
;
38
LiveData
<UserAndAllPets> getUserAndAllPetsObservable(SupportSQLiteQuery query);
62
LiveData
<List<UserAndPet>> getUserAndPetListObservable(SupportSQLiteQuery query);
65
LiveData
<User> getUserLiveData(SupportSQLiteQuery query);
FunnyNamedDao.java
22
import androidx.lifecycle.
LiveData
;
46
LiveData
<FunnyNamedEntity> observableOne(int id);
/frameworks/support/lifecycle/livedata/src/main/java/androidx/lifecycle/
Transformations.java
25
* Transformation methods for {@link
LiveData
}.
27
* These methods permit functional composition and delegation of {@link
LiveData
} instances. The
28
* transformations are calculated lazily, and will run only when the returned {@link
LiveData
} is
29
* observed. Lifecycle behavior is propagated from the input {@code source} {@link
LiveData
} to the
39
* Returns a {@code
LiveData
} mapped from the input {@code source} {@code
LiveData
} by applying
46
* Here is an example mapping a simple {@code User} struct in a {@code
LiveData
} to a
47
* {@code
LiveData
} containing their full name as a {@code String}.
50
*
LiveData
<User> userLiveData = ...;
51
*
LiveData
<String> userFullNameLiveData
[
all
...]
MediatorLiveData.java
28
* {@link
LiveData
} subclass which may observe other {@code
LiveData
} objects and react on
31
* This class correctly propagates its active/inactive states down to source {@code
LiveData
}
34
* Consider the following scenario: we have 2 instances of {@code
LiveData
}, let's name them
41
*
LiveData
<Integer> liveData1 = ...;
42
*
LiveData
<Integer> liveData2 = ...;
70
private SafeIterableMap<
LiveData
<?>, Source<?>> mSources = new SafeIterableMap<>();
73
* Starts to listen the given {@code source}
LiveData
, {@code onChanged} observer will be called
77
* <p> If the given
LiveData
is already added as a source but with a different Observer,
80
* @param source the {@code
LiveData
} to listen t
[
all
...]
ComputableLiveData.java
30
* A
LiveData
class that can be invalidated & computed when there are active observers.
44
private final
LiveData
<T> mLiveData;
61
* @param executor Executor that is used to compute new
LiveData
values.
66
mLiveData = new
LiveData
<T>() {
75
* Returns the
LiveData
managed by this class.
77
* @return A
LiveData
that is controlled by ComputableLiveData.
81
public
LiveData
<T> getLiveData() {
137
* Invalidates the
LiveData
.
/frameworks/support/lifecycle/livedata/src/test/java/androidx/lifecycle/
TransformationsTest.java
60
LiveData
<String> source = new MutableLiveData<>();
61
LiveData
<Integer> mapped = Transformations.map(source, new Function<String, Integer>() {
75
LiveData
<Integer> trigger = new MutableLiveData<>();
76
final
LiveData
<String> first = new MutableLiveData<>();
77
final
LiveData
<String> second = new MutableLiveData<>();
78
LiveData
<String> result = Transformations.switchMap(trigger,
79
new Function<Integer,
LiveData
<String>>() {
81
public
LiveData
<String> apply(Integer input) {
108
LiveData
<Integer> trigger = new MutableLiveData<>();
109
final
LiveData
<String> first = new MutableLiveData<>()
[
all
...]
/frameworks/support/lifecycle/livedata-core/src/main/java/androidx/lifecycle/
MutableLiveData.java
20
* {@link
LiveData
} which publicly exposes {@link #setValue(T)} and {@link #postValue(T)} method.
25
public class MutableLiveData<T> extends
LiveData
<T> {
/frameworks/support/lifecycle/reactivestreams/ktx/src/main/java/androidx/lifecycle/
LiveDataReactiveSteams.kt
24
* Adapts the given [
LiveData
] stream to a ReactiveStreams [Publisher].
28
inline fun <T>
LiveData
<T>.toPublisher(lifecycle: LifecycleOwner): Publisher<T> =
32
* Creates an observable [
LiveData
] stream from a ReactiveStreams [Publisher].
36
inline fun <T> Publisher<T>.toLiveData():
LiveData
<T> =
/frameworks/support/work/integration-tests/testapp/src/main/java/androidx/work/integration/testapp/db/
WordCountDao.java
18
import android.arch.lifecycle.
LiveData
;
42
* @return A {@link
LiveData
} list of all {@link WordCount}s in the database
45
LiveData
<List<WordCount>> getWordCounts();
ImageDao.java
18
import android.arch.lifecycle.
LiveData
;
57
* Gets all {@link Image}s in the database as a {@link
LiveData
}.
59
* @return A {@link
LiveData
} list of all {@link Image}s in the database
62
LiveData
<List<Image>> getImagesLiveData();
/frameworks/support/paging/integration-tests/testapp/src/main/java/androidx/paging/integration/testapp/
PagedListItemViewModel.java
19
import androidx.lifecycle.
LiveData
;
45
private
LiveData
<PagedList<Item>> mLivePagedList =
56
LiveData
<PagedList<Item>> getLivePagedList() {
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/test/
LiveDataTestUtil.kt
19
import androidx.lifecycle.
LiveData
25
fun <T> getValue(
liveData
:
LiveData
<T>): T {
30
liveData
.removeObserver(this)
33
liveData
.observeForever(observer)
/frameworks/support/work/workmanager/src/main/java/androidx/work/
WorkManager.java
19
import android.arch.lifecycle.
LiveData
;
64
*
LiveData
<WorkStatus> status = workManager.getStatusById(request.getId());
305
* Gets a {@link
LiveData
} of the last time all work was cancelled. This method is intended for
309
* @return A {@link
LiveData
} of the timestamp in milliseconds when method that cancelled all
312
public abstract
LiveData
<Long> getLastCancelAllTimeMillis();
315
* Gets a {@link
LiveData
} of the {@link WorkStatus} for a given work id.
318
* @return A {@link
LiveData
} of the {@link WorkStatus} associated with {@code id}
320
public abstract
LiveData
<WorkStatus> getStatusById(@NonNull UUID id);
323
* Gets a {@link
LiveData
} of the {@link WorkStatus} for all work for a given tag.
326
* @return A {@link
LiveData
} list of {@link WorkStatus} for work tagged with {@code tag
[
all
...]
WorkContinuation.java
18
import android.arch.lifecycle.
LiveData
;
54
* Returns a {@link
LiveData
} list of {@link WorkStatus} that provides information about work,
58
* @return A {@link
LiveData
} containing a list of {@link WorkStatus}es
60
public abstract
LiveData
<List<WorkStatus>> getStatuses();
/frameworks/support/room/compiler/src/test/data/daoWriter/input/
ComplexDao.java
20
import androidx.lifecycle.
LiveData
;
61
abstract public
LiveData
<User> getByIdLive(int id);
64
abstract public
LiveData
<List<User>> loadUsersByIdsLive(int... ids);
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
LiveDataUtils.java
20
import android.arch.lifecycle.
LiveData
;
30
* Utility methods for {@link
LiveData
}.
38
* Creates a new {@link
LiveData
} object that maps the values of {@code inputLiveData} using
42
* @param inputLiveData An input {@link
LiveData
}
47
* @return A new {@link
LiveData
} of type {@code Out}
49
public static <In, Out>
LiveData
<Out> dedupedMappedLiveDataFor(
50
@NonNull
LiveData
<In> inputLiveData,
Preferences.java
19
import android.arch.lifecycle.
LiveData
;
55
* @return A {@link
LiveData
} of the last time (in milliseconds) a {@code cancelAll} method was
58
public
LiveData
<Long> getLastCancelAllTimeMillisLiveData() {
89
* A {@link android.arch.lifecycle.
LiveData
} that responds to changes in
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/viewmodel/
CallHistoryViewModel.java
19
import android.arch.lifecycle.
LiveData
;
23
import com.android.car.dialer.
livedata
.CallHistoryLiveData;
24
import com.android.car.dialer.
livedata
.MissedCallHistoryLiveData;
44
public
LiveData
<List<CallLogListingTask.CallLogItem>> getCallHistory() {
51
public
LiveData
<List<CallLogListingTask.CallLogItem>> getMissedCallHistory() {
/frameworks/support/room/integration-tests/testapp/src/main/java/androidx/room/integration/testapp/
CustomerViewModel.java
24
import androidx.lifecycle.
LiveData
;
44
private
LiveData
<PagedList<Customer>> mLiveCustomerList;
87
private static <K>
LiveData
<PagedList<Customer>> getLivePagedList(
112
LiveData
<PagedList<Customer>> getLivePagedList(int position) {
120
LiveData
<PagedList<Customer>> getLivePagedList(String key) {
/frameworks/support/lifecycle/reactivestreams/src/main/java/androidx/lifecycle/
LiveDataReactiveStreams.java
30
* Adapts {@link
LiveData
} input and output to the ReactiveStreams spec.
38
* Adapts the given {@link
LiveData
} stream to a ReactiveStreams {@link Publisher}.
46
* On subscription to the publisher, the observer will attach to the given {@link
LiveData
}.
55
@NonNull LifecycleOwner lifecycle, @NonNull
LiveData
<T>
liveData
) {
57
return new LiveDataPublisher<>(lifecycle,
liveData
);
62
final
LiveData
<T> mLiveData;
64
LiveDataPublisher(LifecycleOwner lifecycle,
LiveData
<T>
liveData
) {
66
this.mLiveData =
liveData
;
[
all
...]
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/
SliceLiveData.java
28
import androidx.lifecycle.
LiveData
;
38
* Class with factory methods for creating
LiveData
that observes slices.
41
* @see
LiveData
65
* Produces an {@link
LiveData
} that tracks a Slice for a given Uri. To use
68
public static
LiveData
<Slice> fromUri(Context context, Uri uri) {
73
* Produces an {@link
LiveData
} that tracks a Slice for a given Intent. To use
76
public static
LiveData
<Slice> fromIntent(@NonNull Context context, @NonNull Intent intent) {
80
private static class SliceLiveDataImpl extends
LiveData
<Slice> {
Completed in 1787 milliseconds
1
2
3