Home
last modified time | relevance | path

Searched refs:getNetworkType (Results 1 – 22 of 22) sorted by relevance

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkStatsManagerTest.java124 abstract int getNetworkType(); in getNetworkType() method in NetworkStatsManagerTest.NetworkInterfaceToTest
159 public int getNetworkType() {
180 public int getNetworkType() {
408 int networkType = mNetworkInterfacesToTest[networkIndex].getNetworkType(); in getSubscriberId()
427 mNetworkInterfacesToTest[i].getNetworkType(), getSubscriberId(i), in testDeviceSummary()
442 mNetworkInterfacesToTest[i].getNetworkType(), getSubscriberId(i), in testDeviceSummary()
463 mNetworkInterfacesToTest[i].getNetworkType(), getSubscriberId(i), in testUserSummary()
478 mNetworkInterfacesToTest[i].getNetworkType(), getSubscriberId(i), in testUserSummary()
504 mNetworkInterfacesToTest[i].getNetworkType(), getSubscriberId(i), in testAppSummary()
537 + mNetworkInterfacesToTest[i].getNetworkType(), hasCorrectMetering); in testAppSummary()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/details/
DWifiNetworkDetailsViewModelTest.java79 when(mHotspotNetworkEntry.getNetworkType()).thenReturn(NETWORK_TYPE_WIFI); in setWifiEntry_hotspotNetworkEntryWifi_postValueCorrect()
89 assertThat(data.getNetworkType()).isEqualTo(NETWORK_TYPE_WIFI); in setWifiEntry_hotspotNetworkEntryWifi_postValueCorrect()
97 when(mHotspotNetworkEntry.getNetworkType()).thenReturn(NETWORK_TYPE_CELLULAR); in setWifiEntry_hotspotNetworkEntryMobileData_postValueCorrect()
108 assertThat(data.getNetworkType()).isEqualTo(NETWORK_TYPE_CELLULAR); in setWifiEntry_hotspotNetworkEntryMobileData_postValueCorrect()
116 when(mHotspotNetworkEntry.getNetworkType()).thenReturn(NETWORK_TYPE_ETHERNET); in setWifiEntry_hotspotNetworkEntryEthernet_postValueCorrect()
125 assertThat(data.getNetworkType()).isEqualTo(NETWORK_TYPE_ETHERNET); in setWifiEntry_hotspotNetworkEntryEthernet_postValueCorrect()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/
DJobSchedulerHelperTest.java134 assertThat(jobInfo.getNetworkType()).isEqualTo(NETWORK_TYPE_UNMETERED); in scheduleTask_overrideIdleConstraint_waivesIdle()
154 assertThat(jobInfo.getNetworkType()).isEqualTo(NETWORK_TYPE_ANY); in scheduleTask_overrideUnmeteredNetworkConstraint_waivesNetwork()
174 assertThat(jobInfo.getNetworkType()).isEqualTo(NETWORK_TYPE_UNMETERED); in scheduleTask_overrideChargingConstraint_waivesCharging()
196 assertThat(jobInfo.getNetworkType()).isEqualTo(NETWORK_TYPE_UNMETERED); in verifyJobInfo()
DFederatedComputeJobManagerTest.java1483 .that(pendingJob.getNetworkType()) in assertJobInfosMatch()
1484 .isEqualTo(expectedJobInfo.getNetworkType()); in assertJobInfosMatch()
/packages/apps/Dialer/java/com/android/dialer/common/
DNetworkUtil.java46 return getNetworkType(connectivityManager.getActiveNetworkInfo()); in getCurrentNetworkType()
73 @NetworkType String networkType = getNetworkType(netInfo); in getCurrentNetworkTypeName()
81 public static String getNetworkType(@Nullable NetworkInfo netInfo) { in getNetworkType() method in NetworkUtil
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiNetworkDetailsViewModel.java54 entry.getNetworkType(), in setWifiEntry()
84 public int getNetworkType() { in getNetworkType() method in WifiNetworkDetailsViewModel.HotspotNetworkData
DWifiNetworkDetailsFragment.java413 updateInternetSource(data.getNetworkType(), data.getUpstreamConnectionStrength()); in onHotspotNetworkChanged()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DSubscriptionsPreferenceControllerTest.java276 .when(sInjector).getNetworkType(any(), any(), any(), anyInt(), eq(false), in displayPreference_providerAndHasMultiSimAndActive_connectedAndRat()
295 .when(sInjector).getNetworkType(any(), any(), any(), anyInt(), eq(true), eq(false)); in displayPreference_providerAndHasMultiSimAndActiveCarrierWifi_connectedAndWPlus()
315 .when(sInjector).getNetworkType(any(), any(), any(), anyInt(), eq(false), in displayPreference_providerAndHasMultiSimButMobileDataOff_notAutoConnect()
333 .when(sInjector).getNetworkType(any(), any(), any(), anyInt(), eq(false), in displayPreference_providerAndHasMultiSimAndNotActive_showRatOnly()
367 .when(sInjector).getNetworkType(any(), any(), any(), anyInt(), eq(false), in onTelephonyDisplayInfoChanged_providerAndHasMultiSimAndActive_connectedAndRat()
392 .when(sInjector).getNetworkType(any(), any(), any(), anyInt(), eq(false), in onTelephonyDisplayInfoChanged_providerAndHasMultiSimAndNotActive_showRat()
418 .when(sInjector).getNetworkType(any(), any(), any(), anyInt(), eq(false), in onTelephonyDisplayInfoChanged_providerAndHasMultiSimAndOutOfService_noConnection()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DJobInfoRowArrayAdapter.java127 String networkType = getNetworkType(networkReq); in setNetworkColoredText()
139 private String getNetworkType(NetworkRequest networkRequest) { in getNetworkType() method in JobInfoRowArrayAdapter
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DNetworkStatsSubscriptionsMonitor.java220 final boolean is5GNsa = displayInfo.getNetworkType() == NETWORK_TYPE_LTE in onDisplayInfoChanged()
225 (is5GNsa ? NETWORK_TYPE_5G_NSA : displayInfo.getNetworkType()); in onDisplayInfoChanged()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/spe/
DJobUtil.java53 .append(jobInfo.getNetworkType()) in jobInfoToString()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiNetworkDetailsFragmentTest.java118 doReturn(NETWORK_TYPE_WIFI).when(mHotspotNetworkData).getNetworkType(); in setUp()
240 verify(mFragment).updateInternetSource(mHotspotNetworkData.getNetworkType(), in onHotspotNetworkChanged_dataNotNull_hotspotSetVisibleTrue()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/spe/scheduling/
DPolicyProcessor.java53 builder.setRequiredNetworkType(convertNetworkType(jobPolicy.getNetworkType())); in applyPolicyToJobInfo()
/packages/apps/Settings/src/com/android/settings/network/
DSubscriptionsPreferenceController.java294 String result = mSubsPrefCtrlInjector.getNetworkType(mContext, mConfig, in getMobilePreferenceSummary()
586 public String getNetworkType(Context context, Config config, in getNetworkType() method in SubscriptionsPreferenceController.SubsPrefCtrlInjector
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiVoipDetector.java98 boolean isVoWifion = callAttributes.getNetworkType() in onCallAttributesChanged()
/packages/modules/Permission/tests/cts/permission/telephony/src/android/permission/cts/telephony/
DTelephonyManagerPermissionTest.java311 mTelephonyManager.getNetworkType(); in testGetNetworkType()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/scheduling/
DPolicyProcessorTest.java66 assertThat(applyPolicyToJobInfo(builder, jobPolicy).getNetworkType()) in testApplyPolicyToJobInfo_network()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DEventFallbackReportingJobServiceTest.java433 assertEquals(NETWORK_TYPE_ANY, jobInfo.getNetworkType()); in testSchedule_jobInfoCheckParameters()
DAggregateFallbackReportingJobServiceTest.java433 assertEquals(NETWORK_TYPE_ANY, jobInfo.getNetworkType()); in testSchedule_jobInfoCheckParameters()
/packages/modules/Wifi/service/java/com/android/server/wifi/coex/
DCoexUtils.java692 this(config.getNetworkType(), in CoexCellChannel()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DAsyncRegistrationQueueJobServiceTest.java362 assertEquals(JobInfo.NETWORK_TYPE_ANY, jobInfo.getNetworkType()); in testScheduleImmediately_killSwitchOff_rescheduleImmediately()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/
DCoexManagerTest.java151 when(config.getNetworkType()).thenReturn(rat); in createMockPhysicalChannelConfig()