Home
last modified time | relevance | path

Searched refs:networkType (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/common/
DNetworkUtil.java73 @NetworkType String networkType = getNetworkType(netInfo); in getCurrentNetworkTypeName() local
74 if (isNetworkTypeMobile(networkType)) { in getCurrentNetworkTypeName()
75 return networkType + " (" + netInfo.getSubtypeName() + ")"; in getCurrentNetworkTypeName()
77 return networkType; in getCurrentNetworkTypeName()
95 public static boolean isNetworkTypeMobile(@NetworkType String networkType) { in isNetworkTypeMobile() argument
96 return Objects.equals(networkType, NetworkType.MOBILE_2G) in isNetworkTypeMobile()
97 || Objects.equals(networkType, NetworkType.MOBILE_3G) in isNetworkTypeMobile()
98 || Objects.equals(networkType, NetworkType.MOBILE_4G); in isNetworkTypeMobile()
103 @NetworkType String networkType = getCurrentNetworkType(context); in getCurrentNetworkName() local
104 switch (networkType) { in getCurrentNetworkName()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DJobSchedulerWrapper.java137 int networkType, in scheduleAJob() argument
166 .setRequiredNetworkType(networkType) in scheduleAJob()
184 networkType, in scheduleAJob()
195 networkType, in scheduleAJob()
280 extensionInfo.networkType, in completedJobsSince()
334 public final int networkType; field in JobSchedulerWrapper.ExtendedJobInfo
339 int networkType, in ExtendedJobInfo() argument
343 this.networkType = networkType; in ExtendedJobInfo()
DJobInfoRowArrayAdapter.java127 String networkType = getNetworkType(networkReq); in setNetworkColoredText() local
128 SpannableStringBuilder sb = new SpannableStringBuilder(label + ": " + networkType); in setNetworkColoredText()
130 sb, Color.GREEN, label.length() + 2, label.length() + 2 + networkType.length()); in setNetworkColoredText()
DOffcarTestingFragment.java77 case R.id.networkType: in onItemSelected()
121 mNetworkTypeSpinner = v.findViewById(R.id.networkType); in defineViewsFromFragment()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowConnectivityManager.java33 public void setNetworkSupported(int networkType, boolean supported) { in setNetworkSupported() argument
34 mSupportedNetworkTypes.put(networkType, supported); in setNetworkSupported()
38 protected boolean isNetworkSupported(int networkType) { in isNetworkSupported() argument
39 return mSupportedNetworkTypes.get(networkType); in isNetworkSupported()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DNetworkTypeLogger.java70 final int networkType = networkInfo.getType(); in log() local
71 mMetricsLoggerWrapper.logAction(mContext, PROVISIONING_NETWORK_TYPE, networkType); in log()
74 .setStrings(String.valueOf(networkType)) in log()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsNetworkManager.java94 final int networkType = getConnectivityChangeNetworkType(intent);
95 if (networkType != ConnectivityManager.TYPE_MOBILE_MMS) {
/packages/apps/Settings/src/com/android/settings/network/telephony/
DEnabledNetworkModePreferenceController.java391 private int addNrToLteNetworkType(int networkType) { in addNrToLteNetworkType() argument
392 switch(networkType) { in addNrToLteNetworkType()
414 return networkType; // not LTE in addNrToLteNetworkType()
/packages/modules/DnsResolver/
Dresolv_unit_test.cpp1494 int32_t networkType; in TEST_F() member
1535 EXPECT_EQ(config.networkType, convert_network_type(config.transportTypes)); in TEST_F()
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java774 int networkType = (Integer) request.argument; in handleMessage() local
775 getPhoneFromRequest(request).setPreferredNetworkType(networkType, onCompleted); in handleMessage()
5480 int networkType = (result != null ? result[0] : -1); in getPreferredNetworkType() local
5481 if (DBG) log("getPreferredNetworkType: " + networkType); in getPreferredNetworkType()
5482 return networkType; in getPreferredNetworkType()
5495 public boolean setPreferredNetworkType(int subId, int networkType) { in setPreferredNetworkType() argument
5502 Settings.Global.PREFERRED_NETWORK_MODE + subId, networkType); in setPreferredNetworkType() local
5505 CMD_SET_PREFERRED_NETWORK_TYPE, networkType, subId); in setPreferredNetworkType()