/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkStatsManagerTest.java | 124 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/ |
D | WifiNetworkDetailsViewModelTest.java | 79 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/ |
D | JobSchedulerHelperTest.java | 134 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()
|
D | FederatedComputeJobManagerTest.java | 1483 .that(pendingJob.getNetworkType()) in assertJobInfosMatch() 1484 .isEqualTo(expectedJobInfo.getNetworkType()); in assertJobInfosMatch()
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | NetworkUtil.java | 46 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/ |
D | WifiNetworkDetailsViewModel.java | 54 entry.getNetworkType(), in setWifiEntry() 84 public int getNetworkType() { in getNetworkType() method in WifiNetworkDetailsViewModel.HotspotNetworkData
|
D | WifiNetworkDetailsFragment.java | 413 updateInternetSource(data.getNetworkType(), data.getUpstreamConnectionStrength()); in onHotspotNetworkChanged()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | SubscriptionsPreferenceControllerTest.java | 276 .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/ |
D | JobInfoRowArrayAdapter.java | 127 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/ |
D | NetworkStatsSubscriptionsMonitor.java | 220 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/ |
D | JobUtil.java | 53 .append(jobInfo.getNetworkType()) in jobInfoToString()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/ |
D | WifiNetworkDetailsFragmentTest.java | 118 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/ |
D | PolicyProcessor.java | 53 builder.setRequiredNetworkType(convertNetworkType(jobPolicy.getNetworkType())); in applyPolicyToJobInfo()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | SubscriptionsPreferenceController.java | 294 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/ |
D | WifiVoipDetector.java | 98 boolean isVoWifion = callAttributes.getNetworkType() in onCallAttributesChanged()
|
/packages/modules/Permission/tests/cts/permission/telephony/src/android/permission/cts/telephony/ |
D | TelephonyManagerPermissionTest.java | 311 mTelephonyManager.getNetworkType(); in testGetNetworkType()
|
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/scheduling/ |
D | PolicyProcessorTest.java | 66 assertThat(applyPolicyToJobInfo(builder, jobPolicy).getNetworkType()) in testApplyPolicyToJobInfo_network()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/ |
D | EventFallbackReportingJobServiceTest.java | 433 assertEquals(NETWORK_TYPE_ANY, jobInfo.getNetworkType()); in testSchedule_jobInfoCheckParameters()
|
D | AggregateFallbackReportingJobServiceTest.java | 433 assertEquals(NETWORK_TYPE_ANY, jobInfo.getNetworkType()); in testSchedule_jobInfoCheckParameters()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/coex/ |
D | CoexUtils.java | 692 this(config.getNetworkType(), in CoexCellChannel()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/ |
D | AsyncRegistrationQueueJobServiceTest.java | 362 assertEquals(JobInfo.NETWORK_TYPE_ANY, jobInfo.getNetworkType()); in testScheduleImmediately_killSwitchOff_rescheduleImmediately()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/ |
D | CoexManagerTest.java | 151 when(config.getNetworkType()).thenReturn(rat); in createMockPhysicalChannelConfig()
|