Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/app/usage/
DNetworkStatsManager.java128 public Bucket querySummaryForDevice(int networkType, String subscriberId, in querySummaryForDevice() argument
132 template = createTemplate(networkType, subscriberId); in querySummaryForDevice()
166 public Bucket querySummaryForUser(int networkType, String subscriberId, long startTime, in querySummaryForUser() argument
170 template = createTemplate(networkType, subscriberId); in querySummaryForUser()
203 public NetworkStats querySummary(int networkType, String subscriberId, long startTime, in querySummary() argument
207 template = createTemplate(networkType, subscriberId); in querySummary()
225 public NetworkStats queryDetailsForUid(int networkType, String subscriberId, in queryDetailsForUid() argument
227 return queryDetailsForUidTag(networkType, subscriberId, startTime, endTime, uid, in queryDetailsForUid()
256 public NetworkStats queryDetailsForUidTag(int networkType, String subscriberId, in queryDetailsForUidTag() argument
259 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.java125 int networkType) { in formatNumber() argument
151 if (networkType == CDMA_HOME_NETWORK in formatNumber()
152 || networkType == CDMA_ROAMING_NETWORK) { in formatNumber()
159 if (networkType == CDMA_HOME_NETWORK) { in formatNumber()
161 } else if (networkType == GSM_UMTS_NETWORK) { in formatNumber()
165 } else if (networkType == CDMA_ROAMING_NETWORK) { in formatNumber()
179 if (networkType == GSM_UMTS_NETWORK) { in formatNumber()
191 if (networkType == GSM_UMTS_NETWORK || networkType == CDMA_ROAMING_NETWORK) { in formatNumber()
216 && (networkType == CDMA_HOME_NETWORK || networkType == CDMA_ROAMING_NETWORK)) { in formatNumber()
546 final int networkType = getNetworkType(phone); in filterDestAddr() local
[all …]
DPhoneFactory.java313 int networkType = android.provider.Settings.Global.getInt(context.getContentResolver(), in calculatePreferredNetworkType() local
317 " networkType = " + networkType); in calculatePreferredNetworkType()
318 return networkType; in calculatePreferredNetworkType()
/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
70 boolean requestRouteToHostAddress(int networkType, in byte[] hostAddress); in requestRouteToHostAddress() argument
100 void reportInetCondition(int networkType, int percentage); in reportInetCondition() argument
132 void setProvisioningNotificationVisible(boolean visible, int networkType, in String action); in setProvisioningNotificationVisible() argument
167 int getRestoreDefaultNetworkDelay(int networkType); in getRestoreDefaultNetworkDelay() argument
DNetworkScoreManager.java372 public void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { in registerNetworkScoreCache() argument
373 registerNetworkScoreCache(networkType, scoreCache, CACHE_FILTER_NONE); in registerNetworkScoreCache()
387 public void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache, in registerNetworkScoreCache() argument
390 mService.registerNetworkScoreCache(networkType, scoreCache, filterType); in registerNetworkScoreCache()
406 public void unregisterNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { in unregisterNetworkScoreCache() argument
408 mService.unregisterNetworkScoreCache(networkType, scoreCache); in unregisterNetworkScoreCache()
DConnectivityManager.java633 public static boolean isNetworkTypeValid(int networkType) { in isNetworkTypeValid() argument
634 return networkType >= 0 && networkType <= MAX_NETWORK_TYPE; in isNetworkTypeValid()
695 public static boolean isNetworkTypeMobile(int networkType) { in isNetworkTypeMobile() argument
696 switch (networkType) { in isNetworkTypeMobile()
718 public static boolean isNetworkTypeWifi(int networkType) { in isNetworkTypeWifi() argument
719 switch (networkType) { in isNetworkTypeWifi()
908 public NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo() argument
910 return mService.getNetworkInfo(networkType); in getNetworkInfo()
972 public Network getNetworkForType(int networkType) { in getNetworkForType() argument
974 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.java439 List<ScoredNetwork> scoredNetworkList, int networkType) { in create() argument
440 return new FilteringCacheUpdatingConsumer(context, scoredNetworkList, networkType, in create()
446 List<ScoredNetwork> scoredNetworkList, int networkType, in FilteringCacheUpdatingConsumer() argument
451 mNetworkType = networkType; in FilteringCacheUpdatingConsumer()
764 public void registerNetworkScoreCache(int networkType, in registerNetworkScoreCache() argument
771 RemoteCallbackList<INetworkScoreCache> callbackList = mScoreCaches.get(networkType); in registerNetworkScoreCache()
774 mScoreCaches.put(networkType, callbackList); in registerNetworkScoreCache()
778 mScoreCaches.remove(networkType); in registerNetworkScoreCache()
781 Log.v(TAG, "Unable to register NetworkScoreCache for type " + networkType); in registerNetworkScoreCache()
791 public void unregisterNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { in unregisterNetworkScoreCache() argument
[all …]
DConnectivityService.java913 private NetworkState getFilteredNetworkState(int networkType, int uid, boolean ignoreBlocked) { in getFilteredNetworkState() argument
914 if (mLegacyTypeTracker.isTypeSupported(networkType)) { in getFilteredNetworkState()
915 final NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); in getFilteredNetworkState()
919 state.networkInfo.setType(networkType); in getFilteredNetworkState()
921 final NetworkInfo info = new NetworkInfo(networkType, 0, in getFilteredNetworkState()
922 getNetworkTypeName(networkType), ""); in getFilteredNetworkState()
1121 public NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo() argument
1129 if (state.networkInfo != null && state.networkInfo.getType() == networkType) { in getNetworkInfo()
1134 final NetworkState state = getFilteredNetworkState(networkType, uid, false); in getNetworkInfo()
1155 for (int networkType = 0; networkType <= ConnectivityManager.MAX_NETWORK_TYPE; in getAllNetworkInfo()
[all …]
DTelephonyRegistry.java1085 NetworkCapabilities networkCapabilities, int networkType, boolean roaming) { in notifyDataConnection() argument
1088 networkCapabilities, networkType, roaming); in notifyDataConnection()
1094 int networkType, boolean roaming) { in notifyDataConnectionForSubscriber() argument
1102 + "' apn='" + apn + "' apnType=" + apnType + " networkType=" + networkType in notifyDataConnectionForSubscriber()
1132 if (mDataConnectionNetworkType[phoneId] != networkType) { in notifyDataConnectionForSubscriber()
1133 mDataConnectionNetworkType[phoneId] = networkType; in notifyDataConnectionForSubscriber()
1160 mPreciseDataConnectionState = new PreciseDataConnectionState(state, networkType, in notifyDataConnectionForSubscriber()
1178 broadcastPreciseDataConnectionStateChanged(state, networkType, apnType, apn, reason, in notifyDataConnectionForSubscriber()
1601 private void broadcastPreciseDataConnectionStateChanged(int state, int networkType, in broadcastPreciseDataConnectionStateChanged() argument
1606 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
502 public boolean requestRouteToHostAddress(int networkType, byte[] hostAddress) { in requestRouteToHostAddress() argument
507 public int getRestoreDefaultNetworkDelay(int networkType) { in getRestoreDefaultNetworkDelay() argument
592 public void reportInetCondition(int networkType, int percentage) { in reportInetCondition() argument
673 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/ex/common/java/com/android/common/
DGoogleLogTags.logtags67 # (networkType << 8) + connection error
79 # (networkType << 16) + interval
/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()
1214 int networkType = ss.getDataNetworkType(); in processMessage() local
1215 mNetworkInfo.setSubtype(networkType, in processMessage()
1216 TelephonyManager.getNetworkTypeName(networkType)); in processMessage()
1546 final int networkType = ss.getDataNetworkType(); in enter() local
1547 if (mNetworkInfo.getSubtype() != networkType) { in enter()
1549 ", " + networkType + "), updating."); in enter()
1551 … mNetworkInfo.setSubtype(networkType, TelephonyManager.getNetworkTypeName(networkType)); in enter()
/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()
/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()

123