Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/app/usage/
DNetworkStatsManager.java123 public Bucket querySummaryForDevice(int networkType, String subscriberId, in querySummaryForDevice() argument
127 template = createTemplate(networkType, subscriberId); in querySummaryForDevice()
159 public Bucket querySummaryForUser(int networkType, String subscriberId, long startTime, in querySummaryForUser() argument
163 template = createTemplate(networkType, subscriberId); in querySummaryForUser()
195 public NetworkStats querySummary(int networkType, String subscriberId, long startTime, in querySummary() argument
199 template = createTemplate(networkType, subscriberId); in querySummary()
217 public NetworkStats queryDetailsForUid(int networkType, String subscriberId, in queryDetailsForUid() argument
219 return queryDetailsForUidTag(networkType, subscriberId, startTime, endTime, uid, in queryDetailsForUid()
246 public NetworkStats queryDetailsForUidTag(int networkType, String subscriberId, in queryDetailsForUidTag() argument
249 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.java123 int networkType) { in formatNumber() argument
149 if (networkType == CDMA_HOME_NETWORK in formatNumber()
150 || networkType == CDMA_ROAMING_NETWORK) { in formatNumber()
157 if (networkType == CDMA_HOME_NETWORK) { in formatNumber()
159 } else if (networkType == GSM_UMTS_NETWORK) { in formatNumber()
163 } else if (networkType == CDMA_ROAMING_NETWORK) { in formatNumber()
177 if (networkType == GSM_UMTS_NETWORK) { in formatNumber()
189 if (networkType == GSM_UMTS_NETWORK || networkType == CDMA_ROAMING_NETWORK) { in formatNumber()
214 && (networkType == CDMA_HOME_NETWORK || networkType == CDMA_ROAMING_NETWORK)) { in formatNumber()
543 final int networkType = getNetworkType(phone); in filterDestAddr() local
[all …]
DPhoneFactory.java295 int networkType = android.provider.Settings.Global.getInt(context.getContentResolver(), in calculatePreferredNetworkType() local
299 " networkType = " + networkType); in calculatePreferredNetworkType()
300 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
163 int getRestoreDefaultNetworkDelay(int networkType); in getRestoreDefaultNetworkDelay() argument
DConnectivityManager.java596 public static boolean isNetworkTypeValid(int networkType) { in isNetworkTypeValid() argument
597 return networkType >= 0 && networkType <= MAX_NETWORK_TYPE; in isNetworkTypeValid()
658 public static boolean isNetworkTypeMobile(int networkType) { in isNetworkTypeMobile() argument
659 switch (networkType) { in isNetworkTypeMobile()
681 public static boolean isNetworkTypeWifi(int networkType) { in isNetworkTypeWifi() argument
682 switch (networkType) { in isNetworkTypeWifi()
874 public NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo() argument
876 return mService.getNetworkInfo(networkType); in getNetworkInfo()
940 public Network getNetworkForType(int networkType) { in getNetworkForType() argument
942 return mService.getNetworkForType(networkType); in getNetworkForType()
[all …]
DNetworkScoreManager.java265 public void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { in registerNetworkScoreCache() argument
267 mService.registerNetworkScoreCache(networkType, scoreCache); in registerNetworkScoreCache()
DLinkQualityInfo.java162 public void setNetworkType(int networkType) { in setNetworkType() argument
163 mNetworkType = networkType; in setNetworkType()
DINetworkScoreService.aidl65 void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache); in registerNetworkScoreCache() argument
/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.java183 private final int networkType; field in JobInfo
273 return networkType; in getNetworkType()
370 networkType = in.readInt(); in JobInfo()
396 networkType = b.mNetworkType; in JobInfo()
426 out.writeInt(networkType); in writeToParcel()
616 public Builder setRequiredNetworkType(int networkType) { in setRequiredNetworkType() argument
617 mNetworkType = networkType; in setRequiredNetworkType()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java510 public NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo() argument
525 public Network getNetworkForType(int networkType) { in getNetworkForType() argument
540 public boolean isNetworkSupported(int networkType) { in isNetworkSupported() argument
550 public LinkProperties getLinkPropertiesForType(int networkType) { in getLinkPropertiesForType() argument
579 public boolean requestRouteToHostAddress(int networkType, byte[] hostAddress) { in requestRouteToHostAddress() argument
584 public int getRestoreDefaultNetworkDelay(int networkType) { in getRestoreDefaultNetworkDelay() argument
657 public void reportInetCondition(int networkType, int percentage) { in reportInetCondition() argument
738 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/services/core/java/com/android/server/
DConnectivityService.java846 private NetworkState getFilteredNetworkState(int networkType, int uid, boolean ignoreBlocked) { in getFilteredNetworkState() argument
847 if (mLegacyTypeTracker.isTypeSupported(networkType)) { in getFilteredNetworkState()
848 final NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); in getFilteredNetworkState()
852 state.networkInfo.setType(networkType); in getFilteredNetworkState()
854 final NetworkInfo info = new NetworkInfo(networkType, 0, in getFilteredNetworkState()
855 getNetworkTypeName(networkType), ""); in getFilteredNetworkState()
1075 public NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo() argument
1083 if (state.networkInfo != null && state.networkInfo.getType() == networkType) { in getNetworkInfo()
1088 final NetworkState state = getFilteredNetworkState(networkType, uid, false); in getNetworkInfo()
1109 for (int networkType = 0; networkType <= ConnectivityManager.MAX_NETWORK_TYPE; in getAllNetworkInfo()
[all …]
DNetworkScoreService.java398 public void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { in registerNetworkScoreCache() argument
401 if (mScoreCaches.containsKey(networkType)) { in registerNetworkScoreCache()
403 "Score cache already registered for type " + networkType); in registerNetworkScoreCache()
405 mScoreCaches.put(networkType, scoreCache); in registerNetworkScoreCache()
DTelephonyRegistry.java1003 NetworkCapabilities networkCapabilities, int networkType, boolean roaming) { in notifyDataConnection() argument
1006 networkCapabilities, networkType, roaming); in notifyDataConnection()
1012 int networkType, boolean roaming) { in notifyDataConnectionForSubscriber() argument
1020 + "' apn='" + apn + "' apnType=" + apnType + " networkType=" + networkType in notifyDataConnectionForSubscriber()
1050 if (mDataConnectionNetworkType[phoneId] != networkType) { in notifyDataConnectionForSubscriber()
1051 mDataConnectionNetworkType[phoneId] = networkType; in notifyDataConnectionForSubscriber()
1076 mPreciseDataConnectionState = new PreciseDataConnectionState(state, networkType, in notifyDataConnectionForSubscriber()
1093 broadcastPreciseDataConnectionStateChanged(state, networkType, apnType, apn, reason, in notifyDataConnectionForSubscriber()
1494 private void broadcastPreciseDataConnectionStateChanged(int state, int networkType, in broadcastPreciseDataConnectionStateChanged() argument
1499 intent.putExtra(PhoneConstants.DATA_NETWORK_TYPE_KEY, networkType); in broadcastPreciseDataConnectionStateChanged()
/frameworks/base/telephony/java/android/telephony/
DPhoneStateListener.java419 public void onDataConnectionStateChanged(int state, int networkType) { in onDataConnectionStateChanged() argument
584 public void onDataConnectionStateChanged(int state, int networkType) { in onDataConnectionStateChanged() argument
585 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/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerBaseTest.java170 public void setConnectivity(int networkType, boolean inetCondition, boolean isConnected) { in setConnectivity() argument
174 mNetCapabilities.addTransportType(networkType); in setConnectivity()
176 mNetCapabilities.removeTransportType(networkType); in setConnectivity()
/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/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java159 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { in waitForNetworkState() argument
162 NetworkInfo ni = mCm.getNetworkInfo(networkType); in waitForNetworkState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DMobileSignalController.java464 public void onDataConnectionStateChanged(int state, int networkType) { in onDataConnectionStateChanged() argument
467 + " type=" + networkType); in onDataConnectionStateChanged()
470 mDataNetType = networkType; in onDataConnectionStateChanged()

12