Searched refs:getRequiredNetworkType (Results 1 – 9 of 9) sorted by relevance
39 return workSpec.constraints.getRequiredNetworkType() == UNMETERED; in hasConstraint()
45 return workSpec.constraints.getRequiredNetworkType() == CONNECTED; in hasConstraint()
43 return workSpec.constraints.getRequiredNetworkType() == NOT_ROAMING; in hasConstraint()
43 return workSpec.constraints.getRequiredNetworkType() == METERED; in hasConstraint()
82 constraints.getRequiredNetworkType() != NOT_REQUIRED; in updateAll()
64 public @NonNull NetworkType getRequiredNetworkType() { in getRequiredNetworkType() method in Constraints
72 int jobInfoNetworkType = convertNetworkType(constraints.getRequiredNetworkType()); in convert()
144 switch (constraints.getRequiredNetworkType()) { in getConstraints()
339 assertThat(constraints.getRequiredNetworkType(), is(METERED)); in testEnqueue_insertWorkConstraints()352 assertThat(constraints.getRequiredNetworkType(), is(NOT_REQUIRED)); in testEnqueue_insertWorkConstraints()