Home
last modified time | relevance | path

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

123

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanResultMatchInfo.java41 public int networkType; field in ScanResultMatchInfo
50 info.networkType = NETWORK_TYPE_PSK; in fromWifiConfiguration()
52 info.networkType = NETWORK_TYPE_EAP; in fromWifiConfiguration()
54 info.networkType = NETWORK_TYPE_WEP; in fromWifiConfiguration()
56 info.networkType = NETWORK_TYPE_OPEN; in fromWifiConfiguration()
74 info.networkType = NETWORK_TYPE_PSK; in fromScanResult()
76 info.networkType = NETWORK_TYPE_EAP; in fromScanResult()
78 info.networkType = NETWORK_TYPE_WEP; in fromScanResult()
80 info.networkType = NETWORK_TYPE_OPEN; in fromScanResult()
96 && networkType == other.networkType; in equals()
[all …]
/frameworks/base/core/java/android/app/usage/
DNetworkStatsManager.java153 public Bucket querySummaryForDevice(int networkType, String subscriberId, in querySummaryForDevice() argument
157 template = createTemplate(networkType, subscriberId); in querySummaryForDevice()
191 public Bucket querySummaryForUser(int networkType, String subscriberId, long startTime, in querySummaryForUser() argument
195 template = createTemplate(networkType, subscriberId); in querySummaryForUser()
228 public NetworkStats querySummary(int networkType, String subscriberId, long startTime, in querySummary() argument
232 template = createTemplate(networkType, subscriberId); in querySummary()
250 public NetworkStats queryDetailsForUid(int networkType, String subscriberId, in queryDetailsForUid() argument
252 return queryDetailsForUidTag(networkType, subscriberId, startTime, endTime, uid, in queryDetailsForUid()
281 public NetworkStats queryDetailsForUidTag(int networkType, String subscriberId, in queryDetailsForUidTag() argument
284 template = createTemplate(networkType, subscriberId); in queryDetailsForUidTag()
[all …]
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java255 for (int networkType = NUM_NETWORK_TYPES - 1; networkType >= 0; networkType--) { in initializeNetworkStates()
256 mConnectivityState[networkType] = new NetworkState(); in initializeNetworkStates()
257 Log.v(LOG_TAG, "Initialize network state for " + networkType + ": " + in initializeNetworkStates()
258 mConnectivityState[networkType].toString()); in initializeNetworkStates()
262 public void recordNetworkState(int networkType, State networkState) { in recordNetworkState() argument
264 Log.v(LOG_TAG, "record network state for network " + networkType + in recordNetworkState()
266 mConnectivityState[networkType].recordState(networkState); in recordNetworkState()
277 public void setStateTransitionCriteria(int networkType, State initState, in setStateTransitionCriteria() argument
279 mConnectivityState[networkType].setStateTransitionCriteria( in setStateTransitionCriteria()
288 public boolean validateNetworkStates(int networkType) { in validateNetworkStates() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsNumberUtils.java126 int networkType) { in formatNumber() argument
152 if (networkType == CDMA_HOME_NETWORK in formatNumber()
153 || networkType == CDMA_ROAMING_NETWORK) { in formatNumber()
160 if (networkType == CDMA_HOME_NETWORK) { in formatNumber()
162 } else if (networkType == GSM_UMTS_NETWORK) { in formatNumber()
166 } else if (networkType == CDMA_ROAMING_NETWORK) { in formatNumber()
180 if (networkType == GSM_UMTS_NETWORK) { in formatNumber()
192 if (networkType == GSM_UMTS_NETWORK || networkType == CDMA_ROAMING_NETWORK) { in formatNumber()
217 && (networkType == CDMA_HOME_NETWORK || networkType == CDMA_ROAMING_NETWORK)) { in formatNumber()
547 final int networkType = getNetworkType(phone); in filterDestAddr() local
[all …]
/frameworks/base/core/java/android/net/
DIConnectivityManager.aidl50 NetworkInfo getNetworkInfo(int networkType); in getNetworkInfo() argument
53 Network getNetworkForType(int networkType); in getNetworkForType() argument
57 boolean isNetworkSupported(int networkType); in isNetworkSupported() argument
60 LinkProperties getLinkPropertiesForType(int networkType); in getLinkPropertiesForType() argument
71 boolean requestRouteToHostAddress(int networkType, in byte[] hostAddress); in requestRouteToHostAddress() argument
102 void reportInetCondition(int networkType, int percentage); in reportInetCondition() argument
135 void setProvisioningNotificationVisible(boolean visible, int networkType, in String action); in setProvisioningNotificationVisible() argument
170 int getRestoreDefaultNetworkDelay(int networkType); in getRestoreDefaultNetworkDelay() argument
DNetworkScoreManager.java375 public void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { in registerNetworkScoreCache() argument
376 registerNetworkScoreCache(networkType, scoreCache, CACHE_FILTER_NONE); in registerNetworkScoreCache()
390 public void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache, in registerNetworkScoreCache() argument
393 mService.registerNetworkScoreCache(networkType, scoreCache, filterType); in registerNetworkScoreCache()
409 public void unregisterNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { in unregisterNetworkScoreCache() argument
411 mService.unregisterNetworkScoreCache(networkType, scoreCache); in unregisterNetworkScoreCache()
DConnectivityManager.java644 public static boolean isNetworkTypeValid(int networkType) { in isNetworkTypeValid() argument
645 return MIN_NETWORK_TYPE <= networkType && networkType <= MAX_NETWORK_TYPE; in isNetworkTypeValid()
708 public static boolean isNetworkTypeMobile(int networkType) { in isNetworkTypeMobile() argument
709 switch (networkType) { in isNetworkTypeMobile()
731 public static boolean isNetworkTypeWifi(int networkType) { in isNetworkTypeWifi() argument
732 switch (networkType) { in isNetworkTypeWifi()
944 public NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo() argument
946 return mService.getNetworkInfo(networkType); in getNetworkInfo()
1008 public Network getNetworkForType(int networkType) { in getNetworkForType() argument
1010 return mService.getNetworkForType(networkType); in getNetworkForType()
[all …]
DINetworkScoreService.aidl68 void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache, int filterType); in registerNetworkScoreCache() argument
78 void unregisterNetworkScoreCache(int networkType, INetworkScoreCache scoreCache); in unregisterNetworkScoreCache() argument
DLinkQualityInfo.java162 public void setNetworkType(int networkType) { in setNetworkType() argument
163 mNetworkType = networkType; in setNetworkType()
/frameworks/base/services/core/java/com/android/server/connectivity/
DDataConnectionStats.java90 int networkType = mServiceState.getDataNetworkType(); in notePhoneDataConnectionState() local
92 networkType, visible ? "" : "not ")); in notePhoneDataConnectionState()
94 mBatteryStats.notePhoneDataConnectionState(networkType, visible); in notePhoneDataConnectionState()
144 public void onDataConnectionStateChanged(int state, int networkType) {
/frameworks/base/core/java/android/app/job/
DJobInfo.java252 private final int networkType; field in JobInfo
382 return networkType; in getNetworkType()
520 if (networkType != j.networkType) { in equals()
580 hashCode = 31 * hashCode + networkType; in hashCode()
610 networkType = in.readInt(); in JobInfo()
638 networkType = b.mNetworkType; in JobInfo()
675 out.writeInt(networkType); in writeToParcel()
915 public Builder setRequiredNetworkType(@NetworkType int networkType) { in setRequiredNetworkType() argument
916 mNetworkType = networkType; in setRequiredNetworkType()
/frameworks/base/services/core/java/com/android/server/
DNetworkScoreService.java454 List<ScoredNetwork> scoredNetworkList, int networkType) { in create() argument
455 return new FilteringCacheUpdatingConsumer(context, scoredNetworkList, networkType, in create()
461 List<ScoredNetwork> scoredNetworkList, int networkType, in FilteringCacheUpdatingConsumer() argument
466 mNetworkType = networkType; in FilteringCacheUpdatingConsumer()
785 public void registerNetworkScoreCache(int networkType, in registerNetworkScoreCache() argument
792 RemoteCallbackList<INetworkScoreCache> callbackList = mScoreCaches.get(networkType); in registerNetworkScoreCache()
795 mScoreCaches.put(networkType, callbackList); in registerNetworkScoreCache()
799 mScoreCaches.remove(networkType); in registerNetworkScoreCache()
802 Log.v(TAG, "Unable to register NetworkScoreCache for type " + networkType); in registerNetworkScoreCache()
812 public void unregisterNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { in unregisterNetworkScoreCache() argument
[all …]
DConnectivityService.java937 private NetworkState getFilteredNetworkState(int networkType, int uid, boolean ignoreBlocked) { in getFilteredNetworkState() argument
938 if (mLegacyTypeTracker.isTypeSupported(networkType)) { in getFilteredNetworkState()
939 final NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); in getFilteredNetworkState()
943 state.networkInfo.setType(networkType); in getFilteredNetworkState()
945 final NetworkInfo info = new NetworkInfo(networkType, 0, in getFilteredNetworkState()
946 getNetworkTypeName(networkType), ""); in getFilteredNetworkState()
1132 public NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo() argument
1140 if (state.networkInfo != null && state.networkInfo.getType() == networkType) { in getNetworkInfo()
1145 final NetworkState state = getFilteredNetworkState(networkType, uid, false); in getNetworkInfo()
1166 for (int networkType = 0; networkType <= ConnectivityManager.MAX_NETWORK_TYPE; in getAllNetworkInfo()
[all …]
DTelephonyRegistry.java1077 NetworkCapabilities networkCapabilities, int networkType, boolean roaming) { in notifyDataConnection() argument
1080 networkCapabilities, networkType, roaming); in notifyDataConnection()
1086 int networkType, boolean roaming) { in notifyDataConnectionForSubscriber() argument
1094 + "' apn='" + apn + "' apnType=" + apnType + " networkType=" + networkType in notifyDataConnectionForSubscriber()
1122 if (mDataConnectionNetworkType[phoneId] != networkType) { in notifyDataConnectionForSubscriber()
1123 mDataConnectionNetworkType[phoneId] = networkType; in notifyDataConnectionForSubscriber()
1150 mPreciseDataConnectionState = new PreciseDataConnectionState(state, networkType, in notifyDataConnectionForSubscriber()
1168 broadcastPreciseDataConnectionStateChanged(state, networkType, apnType, apn, reason, in notifyDataConnectionForSubscriber()
1589 private void broadcastPreciseDataConnectionStateChanged(int state, int networkType, in broadcastPreciseDataConnectionStateChanged() argument
1594 intent.putExtra(PhoneConstants.DATA_NETWORK_TYPE_KEY, networkType); in broadcastPreciseDataConnectionStateChanged()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointNetworkScoreTest.java50 public final NetworkDetail.Ant networkType; field in PasspointNetworkScoreTest.TestData
61 networkType = type; in TestData()
315 NetworkDetail.Ant networkType) { in generateScanDetail() argument
323 when(networkDetail.getAnt()).thenReturn(networkType); in generateScanDetail()
342 data.networkType); in calculateScore()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java433 public NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo() argument
448 public Network getNetworkForType(int networkType) { in getNetworkForType() argument
463 public boolean isNetworkSupported(int networkType) { in isNetworkSupported() argument
473 public LinkProperties getLinkPropertiesForType(int networkType) { in getLinkPropertiesForType() argument
507 public boolean requestRouteToHostAddress(int networkType, byte[] hostAddress) { in requestRouteToHostAddress() argument
512 public int getRestoreDefaultNetworkDelay(int networkType) { in getRestoreDefaultNetworkDelay() argument
598 public void reportInetCondition(int networkType, int percentage) { in reportInetCondition() argument
684 public void setProvisioningNotificationVisible(boolean visible, int networkType, in setProvisioningNotificationVisible() argument
DTelephonyRegistryMock.java236 NetworkCapabilities networkCapabilities, int networkType, boolean roaming) { in notifyDataConnection() argument
244 int networkType, boolean roaming) { in notifyDataConnectionForSubscriber() argument
/frameworks/base/telephony/java/android/telephony/
DPhoneStateListener.java451 public void onDataConnectionStateChanged(int state, int networkType) { in onDataConnectionStateChanged() argument
634 public void onDataConnectionStateChanged(int state, int networkType) { in onDataConnectionStateChanged() argument
635 send(LISTEN_DATA_CONNECTION_STATE, state, networkType, null); in onDataConnectionStateChanged()
DPreciseDataConnectionState.java56 public PreciseDataConnectionState(int state, int networkType, in PreciseDataConnectionState() argument
60 mNetworkType = networkType; in PreciseDataConnectionState()
/frameworks/base/telephony/java/com/android/internal/telephony/
DITelephonyRegistry.aidl51 in NetworkCapabilities networkCapabilities, int networkType, boolean roaming); in notifyDataConnection() argument
54 in NetworkCapabilities networkCapabilities, int networkType, boolean roaming); in notifyDataConnectionForSubscriber() argument
DIPhoneStateListener.aidl37 void onDataConnectionStateChanged(int state, int networkType); in onDataConnectionStateChanged() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java409 int networkType = ss.getDataNetworkType(); in DataConnection() local
411 networkType, NETWORK_TYPE, TelephonyManager.getNetworkTypeName(networkType)); in DataConnection()
1210 int networkType = ss.getDataNetworkType(); in processMessage() local
1211 mNetworkInfo.setSubtype(networkType, in processMessage()
1212 TelephonyManager.getNetworkTypeName(networkType)); in processMessage()
1541 final int networkType = ss.getDataNetworkType(); in enter() local
1542 if (mNetworkInfo.getSubtype() != networkType) { in enter()
1544 + ", " + networkType + "), updating."); in enter()
1546 mNetworkInfo.setSubtype(networkType, TelephonyManager.getNetworkTypeName(networkType)); in enter()
/frameworks/ex/common/java/com/android/common/
DGoogleLogTags.logtags67 # (networkType << 8) + connection error
79 # (networkType << 16) + interval
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipService.java1200 int networkType = (info != null && info.isConnected()) ? info.getType() : -1; in onConnectivityChanged() local
1201 if (mSipOnWifiOnly && networkType != ConnectivityManager.TYPE_WIFI) { in onConnectivityChanged()
1202 networkType = -1; in onConnectivityChanged()
1206 if (mNetworkType == networkType) { in onConnectivityChanged()
1212 " -> " + networkType); in onConnectivityChanged()
1223 mNetworkType = networkType; in onConnectivityChanged()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/omadm/
DPpsMoParser.java1222 String networkType = null; in parseMinBackhaulThresholdInstance() local
1228 networkType = getPpsNodeValue(child); in parseMinBackhaulThresholdInstance()
1241 if (networkType == null) { in parseMinBackhaulThresholdInstance()
1245 if (TextUtils.equals(networkType, "home")) { in parseMinBackhaulThresholdInstance()
1248 } else if (TextUtils.equals(networkType, "roaming")) { in parseMinBackhaulThresholdInstance()
1252 throw new ParsingException("Invalid network type: " + networkType); in parseMinBackhaulThresholdInstance()

123