/frameworks/support/lifecycle/livedata/src/test/java/androidx/lifecycle/ |
D | TransformationsTest.java | 60 LiveData<String> source = new MutableLiveData<>(); in testMap() 61 LiveData<Integer> mapped = Transformations.map(source, new Function<String, Integer>() { in testMap() 75 LiveData<Integer> trigger = new MutableLiveData<>(); in testSwitchMap() 76 final LiveData<String> first = new MutableLiveData<>(); in testSwitchMap() 77 final LiveData<String> second = new MutableLiveData<>(); in testSwitchMap() 78 LiveData<String> result = Transformations.switchMap(trigger, in testSwitchMap() 79 new Function<Integer, LiveData<String>>() { in testSwitchMap() 81 public LiveData<String> apply(Integer input) { in testSwitchMap() 108 LiveData<Integer> trigger = new MutableLiveData<>(); in testSwitchMap2() 109 final LiveData<String> first = new MutableLiveData<>(); in testSwitchMap2() [all …]
|
/frameworks/support/lifecycle/livedata/api/ |
D | current.txt | 5 …method public <S> void addSource(androidx.lifecycle.LiveData<S>, androidx.lifecycle.Observer<? sup… 6 method public <S> void removeSource(androidx.lifecycle.LiveData<S>); 10 …method public static <X, Y> androidx.lifecycle.LiveData<Y> map(androidx.lifecycle.LiveData<X>, and… 11 …ndroidx.lifecycle.LiveData<Y> switchMap(androidx.lifecycle.LiveData<X>, androidx.arch.core.util.Fu…
|
/frameworks/support/lifecycle/livedata/api_legacy/ |
D | current.txt | 5 …method public <S> void addSource(android.arch.lifecycle.LiveData<S>, android.arch.lifecycle.Observ… 6 method public <S> void removeSource(android.arch.lifecycle.LiveData<S>); 10 …method public static <X, Y> android.arch.lifecycle.LiveData<Y> map(android.arch.lifecycle.LiveData… 11 …rch.lifecycle.LiveData<Y> switchMap(android.arch.lifecycle.LiveData<X>, android.arch.core.util.Fun…
|
D | 1.1.0.txt | 5 …method public <S> void addSource(android.arch.lifecycle.LiveData<S>, android.arch.lifecycle.Observ… 6 method public <S> void removeSource(android.arch.lifecycle.LiveData<S>); 10 …method public static <X, Y> android.arch.lifecycle.LiveData<Y> map(android.arch.lifecycle.LiveData… 11 …rch.lifecycle.LiveData<Y> switchMap(android.arch.lifecycle.LiveData<X>, android.arch.core.util.Fun…
|
/frameworks/support/lifecycle/livedata/src/main/java/androidx/lifecycle/ |
D | Transformations.java | 68 public static <X, Y> LiveData<Y> map( in map() 69 @NonNull LiveData<X> source, in map() 132 public static <X, Y> LiveData<Y> switchMap( in switchMap() 133 @NonNull LiveData<X> source, in switchMap() 134 @NonNull final Function<X, LiveData<Y>> switchMapFunction) { in switchMap() 137 LiveData<Y> mSource; in switchMap() 141 LiveData<Y> newLiveData = switchMapFunction.apply(x); in switchMap()
|
D | MediatorLiveData.java | 70 private SafeIterableMap<LiveData<?>, Source<?>> mSources = new SafeIterableMap<>(); 85 public <S> void addSource(@NonNull LiveData<S> source, @NonNull Observer<? super S> onChanged) { in addSource() 107 public <S> void removeSource(@NonNull LiveData<S> toRemote) { in removeSource() 117 for (Map.Entry<LiveData<?>, Source<?>> source : mSources) { in onActive() 125 for (Map.Entry<LiveData<?>, Source<?>> source : mSources) { in onInactive() 131 final LiveData<V> mLiveData; 135 Source(LiveData<V> liveData, final Observer<? super V> observer) { in Source()
|
D | ComputableLiveData.java | 44 private final LiveData<T> mLiveData; 66 mLiveData = new LiveData<T>() { in ComputableLiveData() 81 public LiveData<T> getLiveData() { in getLiveData()
|
/frameworks/support/lifecycle/reactivestreams/src/main/java/androidx/lifecycle/ |
D | LiveDataReactiveStreams.java | 55 @NonNull LifecycleOwner lifecycle, @NonNull LiveData<T> liveData) { in toPublisher() 62 final LiveData<T> mLiveData; 64 LiveDataPublisher(LifecycleOwner lifecycle, LiveData<T> liveData) { in LiveDataPublisher() 77 final LiveData<T> mLiveData; 88 final LifecycleOwner lifecycle, final LiveData<T> liveData) { in LiveDataSubscription() 188 public static <T> LiveData<T> fromPublisher(@NonNull Publisher<T> publisher) { in fromPublisher() 213 private static class PublisherLiveData<T> extends LiveData<T> {
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/ |
D | WorkManager.java | 19 import android.arch.lifecycle.LiveData; 312 public abstract LiveData<Long> getLastCancelAllTimeMillis(); in getLastCancelAllTimeMillis() 320 public abstract LiveData<WorkStatus> getStatusById(@NonNull UUID id); in getStatusById() 328 public abstract LiveData<List<WorkStatus>> getStatusesByTag(@NonNull String tag); in getStatusesByTag() 338 public abstract LiveData<List<WorkStatus>> getStatusesForUniqueWork( in getStatusesForUniqueWork()
|
/frameworks/support/lifecycle/extensions/api_legacy/ |
D | 1.0.0.txt | 23 public abstract class LiveData<T> { 24 ctor public LiveData(); 40 …method public <S> void addSource(android.arch.lifecycle.LiveData<S>, android.arch.lifecycle.Observ… 41 method public <S> void removeSource(android.arch.lifecycle.LiveData<S>); 44 public class MutableLiveData<T> extends android.arch.lifecycle.LiveData { 69 …method public static <X, Y> android.arch.lifecycle.LiveData<Y> map(android.arch.lifecycle.LiveData… 70 …rch.lifecycle.LiveData<Y> switchMap(android.arch.lifecycle.LiveData<X>, android.arch.core.util.Fun…
|
/frameworks/support/room/integration-tests/testapp/src/main/java/androidx/room/integration/testapp/ |
D | CustomerViewModel.java | 24 import androidx.lifecycle.LiveData; 44 private LiveData<PagedList<Customer>> mLiveCustomerList; 87 private static <K> LiveData<PagedList<Customer>> getLivePagedList( in getLivePagedList() 112 LiveData<PagedList<Customer>> getLivePagedList(int position) { in getLivePagedList() 120 LiveData<PagedList<Customer>> getLivePagedList(String key) { in getLivePagedList()
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/dao/ |
D | RawDao.java | 19 import androidx.lifecycle.LiveData; 38 LiveData<UserAndAllPets> getUserAndAllPetsObservable(SupportSQLiteQuery query); in getUserAndAllPetsObservable() 62 LiveData<List<UserAndPet>> getUserAndPetListObservable(SupportSQLiteQuery query); in getUserAndPetListObservable() 65 LiveData<User> getUserLiveData(SupportSQLiteQuery query); in getUserLiveData()
|
D | UserDao.java | 21 import androidx.lifecycle.LiveData; 120 public abstract LiveData<User> liveUserById(int id); in liveUserById() 124 public abstract LiveData<User> liveUserByIdInTransaction(int id); in liveUserByIdInTransaction() 127 public abstract LiveData<List<User>> liveUsersListByName(String name); in liveUsersListByName() 139 public abstract LiveData<AvgWeightByAge> maxWeightByAgeGroup(); in maxWeightByAgeGroup() 178 public abstract LiveData<Boolean> isAdminLiveData(int uid); in isAdminLiveData()
|
/frameworks/support/paging/integration-tests/testapp/src/main/java/androidx/paging/integration/testapp/ |
D | PagedListItemViewModel.java | 19 import androidx.lifecycle.LiveData; 45 private LiveData<PagedList<Item>> mLivePagedList = 56 LiveData<PagedList<Item>> getLivePagedList() { in getLivePagedList()
|
/frameworks/support/room/compiler/src/test/data/daoWriter/input/ |
D | ComplexDao.java | 20 import androidx.lifecycle.LiveData; 61 abstract public LiveData<User> getByIdLive(int id); in getByIdLive() 64 abstract public LiveData<List<User>> loadUsersByIdsLive(int... ids); in loadUsersByIdsLive()
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/ |
D | LiveDataQueryTest.java | 37 import androidx.lifecycle.LiveData; 74 final LiveData<User> userLiveData = mUserDao.liveUserById(5); in observeById() 112 final LiveData<List<User>> userLiveData = mUserDao.liveUsersListByName("frida"); in observeListQuery() 174 LiveData<AvgWeightByAge> liveData = mUserDao.maxWeightByAgeGroup(); in liveDataWithPojo() 193 final LiveData<UserAndAllPets> liveData = mUserPetDao.liveUserWithPets(3); in withRelation() 218 LiveData<PetsToys> liveData = mSpecificDogDao.getSpecificDogsToys(); in withRelationOnly() 244 LiveData<List<String>> actual = in withWithClause() 285 LiveData<User> liveData = mUserDao.liveUserById(3); in handleGc() 308 WeakReference<LiveData> weakLiveData = new WeakReference<LiveData>(liveData); in handleGc() 324 LiveData<Boolean> adminLiveData = mUserDao.isAdminLiveData(3); in booleanLiveData() [all …]
|
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/ |
D | SliceLiveData.java | 28 import androidx.lifecycle.LiveData; 68 public static LiveData<Slice> fromUri(Context context, Uri uri) { in fromUri() 76 public static LiveData<Slice> fromIntent(@NonNull Context context, @NonNull Intent intent) { in fromIntent() 80 private static class SliceLiveDataImpl extends LiveData<Slice> {
|
/frameworks/support/lifecycle/livedata-core/api/ |
D | current.txt | 3 public abstract class LiveData<T> { 4 ctor public LiveData(); 18 public class MutableLiveData<T> extends androidx.lifecycle.LiveData {
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/ |
D | LiveDataUtils.java | 20 import android.arch.lifecycle.LiveData; 49 public static <In, Out> LiveData<Out> dedupedMappedLiveDataFor( in dedupedMappedLiveDataFor() 50 @NonNull LiveData<In> inputLiveData, in dedupedMappedLiveDataFor()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/ |
D | WorkManagerImpl.java | 20 import android.arch.lifecycle.LiveData; 373 public LiveData<Long> getLastCancelAllTimeMillis() { in getLastCancelAllTimeMillis() 395 public LiveData<WorkStatus> getStatusById(@NonNull UUID id) { in getStatusById() 397 LiveData<List<WorkSpec.WorkStatusPojo>> inputLiveData = in getStatusById() 426 public LiveData<List<WorkStatus>> getStatusesByTag(@NonNull String tag) { 428 LiveData<List<WorkSpec.WorkStatusPojo>> inputLiveData = 442 public LiveData<List<WorkStatus>> getStatusesForUniqueWork(@NonNull String uniqueWorkName) { 444 LiveData<List<WorkSpec.WorkStatusPojo>> inputLiveData = 462 LiveData<List<WorkStatus>> getStatusesById(@NonNull List<String> workSpecIds) { 464 LiveData<List<WorkSpec.WorkStatusPojo>> inputLiveData =
|
/frameworks/support/lifecycle/livedata-core/api_legacy/ |
D | current.txt | 3 public abstract class LiveData<T> { 4 ctor public LiveData(); 18 public class MutableLiveData<T> extends android.arch.lifecycle.LiveData {
|
D | 1.1.0.txt | 3 public abstract class LiveData<T> { 4 ctor public LiveData(); 18 public class MutableLiveData<T> extends android.arch.lifecycle.LiveData {
|
/frameworks/support/room/compiler/src/test/data/common/input/ |
D | ComputableLiveData.java | 3 import androidx.lifecycle.LiveData; 7 public LiveData<T> getLiveData() {return null;} in getLiveData()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/ |
D | WorkSpecDao.java | 23 import android.arch.lifecycle.LiveData; 174 LiveData<List<WorkSpec.WorkStatusPojo>> getWorkStatusPojoLiveDataForIds(List<String> ids); in getWorkStatusPojoLiveDataForIds() 197 LiveData<List<WorkSpec.WorkStatusPojo>> getWorkStatusPojoLiveDataForTag(String tag); in getWorkStatusPojoLiveDataForTag() 220 LiveData<List<WorkSpec.WorkStatusPojo>> getWorkStatusPojoLiveDataForName(String name); in getWorkStatusPojoLiveDataForName()
|
/frameworks/support/lifecycle/reactivestreams/ktx/src/main/java/androidx/lifecycle/ |
D | LiveDataReactiveSteams.kt | 28 inline fun <T> LiveData<T>.toPublisher(lifecycle: LifecycleOwner): Publisher<T> = 36 inline fun <T> Publisher<T>.toLiveData(): LiveData<T> =
|