Home
last modified time | relevance | path

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

12

/packages/apps/Dialer/java/com/android/dialer/common/
DNetworkUtil.java39 @NetworkType
42 return NetworkType.NONE; in getCurrentNetworkType()
68 return NetworkType.NONE; in getCurrentNetworkTypeName()
73 @NetworkType String networkType = getNetworkType(netInfo); in getCurrentNetworkTypeName()
80 @NetworkType
83 return NetworkType.NONE; in getNetworkType()
87 return NetworkType.WIFI; in getNetworkType()
91 return NetworkType.UNKNOWN; in getNetworkType()
95 public static boolean isNetworkTypeMobile(@NetworkType String networkType) { in isNetworkTypeMobile()
96 return Objects.equals(networkType, NetworkType.MOBILE_2G) in isNetworkTypeMobile()
[all …]
/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/
DUserData.java114 public @interface NetworkType { annotation in UserData
133 @NetworkType int mDataNetworkType = 0;
167 @NetworkType int dataNetworkType, in UserData()
188 NetworkType.class, null, mDataNetworkType); in UserData()
260 public @NetworkType int getDataNetworkType() { in getDataNetworkType()
373 NetworkType.class, null, mDataNetworkType); in UserData()
409 private @NetworkType int mDataNetworkType;
499 public @NonNull Builder setDataNetworkType(@NetworkType int value) { in setDataNetworkType()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/download/
DMddJob.java43 import com.android.adservices.shared.proto.JobPolicy.NetworkType;
260 private static NetworkType getNetworkConstraints(NetworkState networkState) { in getNetworkConstraints()
264 return NetworkType.NETWORK_TYPE_NONE; in getNetworkConstraints()
267 return NetworkType.NETWORK_TYPE_ANY; in getNetworkConstraints()
270 return NetworkType.NETWORK_TYPE_UNMETERED; in getNetworkConstraints()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/
DBootReceiver.java26 import androidx.work.NetworkType;
51 .setRequiredNetworkType(NetworkType.CONNECTED) in onReceive()
/packages/modules/DnsResolver/
Dresolv_cache.h98 android::net::NetworkType resolv_get_network_types_for_net(unsigned netid);
137 android::net::NetworkType convert_network_type(const std::vector<int32_t>& transportTypes);
Dstats.proto173 enum NetworkType { enum
406 optional NetworkType network_type = 6;
449 optional NetworkType network_type = 4;
488 optional NetworkType network_type = 1;
DPrivateDnsConfigurationTest.cpp414 expectedEvent.set_network_type(NetworkType::NT_UNKNOWN); in TEST_F()
442 expectedEvent.set_network_type(NetworkType::NT_UNKNOWN); in TEST_F()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/provision/worker/
DSetupWizardCompletionTimeoutWorker.java35 import androidx.work.NetworkType;
128 request, NetworkType.CONNECTED).build())
DPauseProvisioningWorker.java36 import androidx.work.NetworkType;
80 .setRequiredNetworkRequest(request, NetworkType.CONNECTED) in reportProvisionPausedByUser()
DReportDeviceProvisionStateWorker.java41 import androidx.work.NetworkType;
120 .setRequiredNetworkRequest(request, NetworkType.CONNECTED) in enqueueReportWork()
DDeviceCheckInHelper.java59 import androidx.work.NetworkType;
230 NetworkType.CONNECTED).build()) in maybeEnqueueFcmRegistrationTokenRetrievalWork()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/scheduling/
DPolicyProcessorTest.java23 import static com.android.adservices.shared.proto.JobPolicy.NetworkType.NETWORK_TYPE_NONE;
42 import com.android.adservices.shared.proto.JobPolicy.NetworkType;
64 NetworkType overridingValue = NetworkType.NETWORK_TYPE_CELLULAR; in testApplyPolicyToJobInfo_network()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/spe/scheduling/
DPolicyProcessor.java29 import com.android.adservices.shared.proto.JobPolicy.NetworkType;
138 static int convertNetworkType(NetworkType networkType) { in convertNetworkType()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/user/
DRawUserData.java48 @UserData.NetworkType public int dataNetworkType;
/packages/modules/AdServices/shared/libraries/device-side/proto/
Djob_policy.proto30 optional NetworkType network_type = 2; field
32 enum NetworkType { enum
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/
DProvisionHelperImpl.java53 import androidx.work.NetworkType;
378 request, NetworkType.CONNECTED).build()) in getIsDeviceInApprovedCountryWork()
394 NetworkType.CONNECTED).build()) in getPlayInstallPackageTask()
DFinalizationControllerImpl.java47 import androidx.work.NetworkType;
254 .setRequiredNetworkRequest(request, NetworkType.CONNECTED)
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiUsabilityStatsEntry.java26 import android.telephony.Annotation.NetworkType;
654 private final @NetworkType int mCellularDataNetworkType;
827 boolean isCellularDataAvailable, @NetworkType int cellularDataNetworkType, in WifiUsabilityStatsEntry()
1464 @NetworkType public int getCellularDataNetworkType() { in getCellularDataNetworkType()
/packages/modules/Wifi/service/java/com/android/server/wifi/coex/
DCoexUtils.java642 private final @Annotation.NetworkType int mRat;
650 public CoexCellChannel(@Annotation.NetworkType int rat, int band, in CoexCellChannel()
701 public @Annotation.NetworkType int getRat() { in getRat()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DAsyncRegistrationFallbackJob.java22 import static com.android.adservices.shared.proto.JobPolicy.NetworkType.NETWORK_TYPE_ANY;
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DBackgroundFetchJob.java125 .setNetworkType(JobPolicy.NetworkType.NETWORK_TYPE_UNMETERED) in createDefaultJobSpec()
/packages/modules/DnsResolver/doh/
Dmetrics.rs21 Cause as StatsdCause, NetworkDnsHandshakeReported, NetworkType as StatsdNetworkType,
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/schedule/
DDeviceLockControllerSchedulerImpl.java46 import androidx.work.NetworkType;
500 NetworkType.CONNECTED).build())
/packages/modules/DnsResolver/tests/
Dresolv_stats_test_utils.cpp105 event.set_network_type(static_cast<NetworkType>(value)); in fromNetworkDnsEventReportedStr()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DAsyncRegistrationFallbackJobTest.java22 import static com.android.adservices.shared.proto.JobPolicy.NetworkType.NETWORK_TYPE_ANY;

12