Searched refs:NetworkStatus (Results 1 – 8 of 8) sorted by relevance
77 assertThat(reportedStatus).isEqualTo(NetworkStatus.Available) in testInitialNetworkIsAvailable()89 assertThat(reportedStatus).isEqualTo(NetworkStatus.Available) in testRegistersNetworkCallback()111 val emissions = mutableListOf<NetworkStatus>() in testCallbackEmitsNewNetworkStatus()119 assertThat(emissions.removeFirst()).isEqualTo(NetworkStatus.Available) in testCallbackEmitsNewNetworkStatus()124 assertThat(emissions.removeFirst()).isEqualTo(NetworkStatus.Unavailable) in testCallbackEmitsNewNetworkStatus()129 assertThat(emissions.removeFirst()).isEqualTo(NetworkStatus.Available) in testCallbackEmitsNewNetworkStatus()134 assertThat(emissions.removeFirst()).isEqualTo(NetworkStatus.Unavailable) in testCallbackEmitsNewNetworkStatus()143 val allEmissions = mutableListOf<NetworkStatus>() in testNetworkStatusReplayedForNewSubscribers()163 val emissions = mutableListOf<NetworkStatus>() in testNetworkStatusReplayedForNewSubscribers()167 assertThat(emissions.first()).isEqualTo(NetworkStatus.Unavailable) in testNetworkStatusReplayedForNewSubscribers()[all …]
58 val networkStatus: SharedFlow<NetworkStatus> =59 callbackFlow<NetworkStatus> { in <lambda>()63 trySend(NetworkStatus.Unavailable).onFailure { in <lambda>()69 trySend(NetworkStatus.Available).onFailure { in <lambda>()75 trySend(NetworkStatus.Unavailable).onFailure { in <lambda>()94 trySend(if (isConnected) NetworkStatus.Available else NetworkStatus.Unavailable) in <lambda>()
20 sealed class NetworkStatus { class21 object Available : NetworkStatus()23 object Unavailable : NetworkStatus()
29 @NetworkStatus48 @interface NetworkStatus { annotation55 void onNetworkChanged(@NetworkStatus int newNetworkStatus); in onNetworkChanged()
55 @NetworkStatus71 @NetworkStatus int networkStatus = getNetworkStatus(); in registerListener()
44 import com.android.wallpaper.module.NetworkStatusNotifier.NetworkStatus;86 @NetworkStatus
35 @NetworkStatus59 public void setAndNotifyNetworkStatus(@NetworkStatus int networkStatus) { in setAndNotifyNetworkStatus()
53 import com.android.wallpaper.module.NetworkStatusNotifier.NetworkStatus;85 @NetworkStatus private int mNetworkStatus;