Home
last modified time | relevance | path

Searched refs:NetworkType (Results 1 – 16 of 16) sorted by relevance

/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
DWorkTypeConverters.java33 import androidx.work.NetworkType;
196 public static int networkTypeToInt(NetworkType networkType) { in networkTypeToInt()
226 public static NetworkType intToNetworkType(int value) { in intToNetworkType()
229 return NetworkType.NOT_REQUIRED; in intToNetworkType()
232 return NetworkType.CONNECTED; in intToNetworkType()
235 return NetworkType.UNMETERED; in intToNetworkType()
238 return NetworkType.NOT_ROAMING; in intToNetworkType()
241 return NetworkType.METERED; in intToNetworkType()
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DConstraints.java33 NetworkType mRequiredNetworkType;
64 public @NonNull NetworkType getRequiredNetworkType() { in getRequiredNetworkType()
68 public void setRequiredNetworkType(@NonNull NetworkType requiredNetworkType) { in setRequiredNetworkType()
171 private NetworkType mRequiredNetworkType = NetworkType.NOT_REQUIRED;
208 public Builder setRequiredNetworkType(@NonNull NetworkType networkType) { in setRequiredNetworkType()
DNetworkType.java22 public enum NetworkType { enum
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/
DSystemJobInfoConverterTest.java19 import static androidx.work.NetworkType.CONNECTED;
20 import static androidx.work.NetworkType.METERED;
21 import static androidx.work.NetworkType.NOT_REQUIRED;
22 import static androidx.work.NetworkType.NOT_ROAMING;
23 import static androidx.work.NetworkType.UNMETERED;
39 import androidx.work.NetworkType;
214 private void convertWithRequiredNetworkType(NetworkType networkType, in convertWithRequiredNetworkType()
/frameworks/support/work/workmanager-firebase/src/androidTest/java/androidx/work/impl/background/firebase/
DFirebaseJobConverterTest.java19 import static androidx.work.NetworkType.CONNECTED;
20 import static androidx.work.NetworkType.METERED;
21 import static androidx.work.NetworkType.NOT_ROAMING;
22 import static androidx.work.NetworkType.UNMETERED;
/frameworks/support/work/workmanager-test/src/androidTest/java/androidx/work/test/
DTestSchedulerTest.java28 import androidx.work.NetworkType;
107 .setRequiredNetworkType(NetworkType.CONNECTED).build()) in createWorkRequestWithNetworkConstraints()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/
DSystemJobInfoConverter.java35 import androidx.work.NetworkType;
134 static int convertNetworkType(NetworkType networkType) { in convertNetworkType()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/controllers/
DNetworkUnmeteredController.java19 import static androidx.work.NetworkType.UNMETERED;
DNetworkConnectedController.java19 import static androidx.work.NetworkType.CONNECTED;
DNetworkNotRoamingController.java19 import static androidx.work.NetworkType.NOT_ROAMING;
DNetworkMeteredController.java19 import static androidx.work.NetworkType.METERED;
/frameworks/support/work/integration-tests/testapp/src/main/java/androidx/work/integration/testapp/
DMainActivity.java35 import androidx.work.NetworkType;
77 .setRequiredNetworkType(NetworkType.CONNECTED) in onCreate()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/
DConstraintProxy.java18 import static androidx.work.NetworkType.NOT_REQUIRED;
/frameworks/base/core/java/android/app/job/
DJobInfo.java70 public @interface NetworkType {} annotation in JobInfo
441 public @NetworkType int getNetworkType() { in getNetworkType()
1103 public Builder setRequiredNetworkType(@NetworkType int networkType) { in setRequiredNetworkType()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DWorkManagerImplTest.java22 import static androidx.work.NetworkType.METERED;
23 import static androidx.work.NetworkType.NOT_REQUIRED;
/frameworks/base/services/core/jni/
Dcom_android_server_location_GnssLocationProvider.cpp1733 static_cast<IAGnssRil::NetworkType>(type), in android_location_GnssLocationProvider_update_network_state()