Lines Matching refs:active

35  * LifecycleOwner is in active state. LifecycleOwner is considered as active, if its state is
37 * {@link #observeForever(Observer)} is considered as always active and thus will be always notified
48 * to get notified when number of active {@link Observer}s change between 0 and 1.
88 // how many observers are in active state
113 if (!observer.active) {
118 // we still first check observer.active to keep it as the entrance for events. So even if
119 // the observer moved to an active state, if we've not received that event, we better not
162 * or {@link Lifecycle.State#RESUMED} state (active).
167 * When data changes while the {@code owner} is not active, it will not receive any updates.
168 * If it becomes active again, it will receive the last available data automatically.
206 * is always active. This means that the given observer will receive all events and will never
210 * as active.
281 * Sets the value. If there are active observers, the value will be dispatched to them.
318 * Called when the number of active observers change to 1 from 0.
328 * Called when the number of active observers change from 1 to 0.
350 * Returns true if this LiveData has active observers.
352 * @return true if this LiveData has active observers
361 public boolean active;
376 // immediately set active state, so we'd never dispatch anything to inactive
383 if (newActive == active) {
386 active = newActive;
388 LiveData.this.mActiveCount += active ? 1 : -1;
389 if (wasInactive && active) {
392 if (LiveData.this.mActiveCount == 0 && !active) {
395 if (active) {