Home
last modified time | relevance | path

Searched refs:METERED (Results 1 – 9 of 9) sorted by relevance

/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
DWorkTypeConverters.java78 int METERED = 4; field
210 case METERED: in networkTypeToInt()
211 return NetworkTypeIds.METERED; in networkTypeToInt()
240 case NetworkTypeIds.METERED: in intToNetworkType()
241 return NetworkType.METERED; in intToNetworkType()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/controllers/
DNetworkMeteredController.java19 import static androidx.work.NetworkType.METERED;
43 return workSpec.constraints.getRequiredNetworkType() == METERED; in hasConstraint()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/
DSystemJobInfoConverterTest.java20 import static androidx.work.NetworkType.METERED;
211 convertWithRequiredNetworkType(METERED, JobInfo.NETWORK_TYPE_METERED, 26); in testConvert_networkTypeMeteredRequiresApi26()
268 assertThat(SystemJobInfoConverter.convertNetworkType(METERED), in testConvertNetworkType_metered_returnsAnyBeforeApi26()
276 assertThat(SystemJobInfoConverter.convertNetworkType(METERED), in testConvertNetworkType_metered_returnsMeteredAtOrAfterApi26()
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DNetworkType.java47 METERED enumConstant
/frameworks/support/work/workmanager-firebase/src/androidTest/java/androidx/work/impl/background/firebase/
DFirebaseJobConverterTest.java20 import static androidx.work.NetworkType.METERED;
201 .setRequiredNetworkType(METERED) in testConvert_requiresNetworkMetered_unsupported()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/
DSystemJobInfoConverter.java147 case METERED: in convertNetworkType()
/frameworks/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/
DFirebaseJobConverter.java167 case METERED: { in getConstraints()
/frameworks/base/core/java/android/net/
DNetworkIdentity.java132 proto.write(NetworkIdentityProto.METERED, mMetered); in writeToProto()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DWorkManagerImplTest.java22 import static androidx.work.NetworkType.METERED;
316 .setRequiredNetworkType(METERED) in testEnqueue_insertWorkConstraints()
339 assertThat(constraints.getRequiredNetworkType(), is(METERED)); in testEnqueue_insertWorkConstraints()