Searched refs:networkType (Results 1 - 25 of 41) sorted by relevance

12

/frameworks/base/core/java/android/net/
H A DIConnectivityManager.aidl48 NetworkInfo getNetworkInfo(int networkType);
51 Network getNetworkForType(int networkType);
56 boolean isNetworkSupported(int networkType);
59 LinkProperties getLinkPropertiesForType(int networkType);
69 boolean requestRouteToHostAddress(int networkType, in byte[] hostAddress);
72 void setPolicyDataEnable(int networkType, boolean enabled);
98 void reportInetCondition(int networkType, int percentage);
108 void setDataDependency(int networkType, boolean met);
126 void supplyMessenger(int networkType, in Messenger messenger);
136 LinkQualityInfo getLinkQualityInfo(int networkType);
[all...]
H A DINetworkScoreService.aidl59 * @param networkType the type of network this cache can handle. See {@link NetworkKey#type}.
65 void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache);
H A DConnectivityManager.java132 public static final String EXTRA_NETWORK_TYPE = "networkType";
461 * @param networkType the type to be tested
464 public static boolean isNetworkTypeValid(int networkType) { argument
465 return networkType >= 0 && networkType <= MAX_NETWORK_TYPE;
520 * @param networkType the type to check
524 public static boolean isNetworkTypeMobile(int networkType) { argument
525 switch (networkType) {
547 public static boolean isNetworkTypeWifi(int networkType) { argument
548 switch (networkType) {
643 getNetworkInfo(int networkType) argument
699 getNetworkForType(int networkType) argument
778 getLinkProperties(int networkType) argument
873 startUsingNetworkFeature(int networkType, String feature) argument
928 stopUsingNetworkFeature(int networkType, String feature) argument
979 networkCapabilitiesForFeature(int networkType, String feature) argument
1206 requestRouteToHost(int networkType, int hostAddress) argument
1224 requestRouteToHostAddress(int networkType, InetAddress hostAddress) argument
1689 reportInetCondition(int networkType, int percentage) argument
1782 setDataDependency(int networkType, boolean met) argument
1804 isNetworkSupported(int networkType) argument
1876 supplyMessenger(int networkType, Messenger messenger) argument
1930 getLinkQualityInfo(int networkType) argument
1973 setProvisioningNotificationVisible(boolean visible, int networkType, String action) argument
[all...]
H A DBaseNetworkStateTracker.java54 public BaseNetworkStateTracker(int networkType) { argument
56 networkType, -1, ConnectivityManager.getNetworkTypeName(networkType), null);
H A DLinkQualityInfo.java162 public void setNetworkType(int networkType) { argument
163 mNetworkType = networkType;
H A DNetworkScoreManager.java252 * @param networkType the type of network this cache can handle. See {@link NetworkKey#type}.
259 public void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { argument
261 mService.registerNetworkScoreCache(networkType, scoreCache);
H A DMobileDataStateTracker.java740 sloge("Error mapping networkType " + netType + " to apnType.");
832 public int networkType; field in class:MobileDataStateTracker.NetworkDataEntry
838 networkType = i1;
863 private static NetworkDataEntry getNetworkDataEntry(int networkType) { argument
865 if (entry.networkType == networkType) {
870 Slog.e(TAG, "Could not find Theoretical BW entry for " + String.valueOf(networkType));
874 private static int getNormalizedSignalStrength(int networkType, SignalStrength ss) { argument
878 switch(networkType) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSmsNumberUtils.java118 * @param networkType current network type
124 int networkType) {
150 if (networkType == CDMA_HOME_NETWORK
151 || networkType == CDMA_ROAMING_NETWORK) {
158 if (networkType == CDMA_HOME_NETWORK) {
160 } else if (networkType == GSM_UMTS_NETWORK) {
164 } else if (networkType == CDMA_ROAMING_NETWORK) {
178 if (networkType == GSM_UMTS_NETWORK) {
190 if (networkType == GSM_UMTS_NETWORK || networkType
122 formatNumber(Context context, String number, String activeMcc, int networkType) argument
[all...]
H A DPhoneFactory.java137 // int networkType = calculatePreferredNetworkType(context);
138 // Rlog.i(LOG_TAG, "Network Type set to " + Integer.toString(networkType));
343 int networkType = Settings.Global.getInt(context.getContentResolver(),
345 return networkType;
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
H A DConnectionUtil.java255 for (int networkType = NUM_NETWORK_TYPES - 1; networkType >= 0; networkType--) {
256 mConnectivityState[networkType] = new NetworkState();
257 Log.v(LOG_TAG, "Initialize network state for " + networkType + ": " +
258 mConnectivityState[networkType].toString());
262 public void recordNetworkState(int networkType, State networkState) { argument
264 Log.v(LOG_TAG, "record network state for network " + networkType +
266 mConnectivityState[networkType].recordState(networkState);
272 * @param networkType
277 setStateTransitionCriteria(int networkType, State initState, StateTransitionDirection transitionDir, State targetState) argument
288 validateNetworkStates(int networkType) argument
298 getTransitionFailureReason(int networkType) argument
434 waitForNetworkState(int networkType, State expectedState, long timeout) argument
[all...]
/frameworks/base/core/java/android/app/job/
H A DJobInfo.java80 private final int networkType; field in class:JobInfo
130 return networkType;
213 networkType = in.readInt();
231 networkType = b.mNetworkType;
255 out.writeInt(networkType);
337 public Builder setRequiredNetworkType(int networkType) { argument
338 mNetworkType = networkType;
/frameworks/base/services/core/java/com/android/server/
H A DConnectivityService.java801 * Check if UID should be blocked from using the network represented by the given networkType.
804 private boolean isNetworkBlocked(int networkType, int uid) { argument
805 return isNetworkWithLinkPropertiesBlocked(getLinkPropertiesForType(networkType), uid);
843 private NetworkInfo getFilteredNetworkInfo(int networkType, int uid) { argument
844 NetworkInfo info = getNetworkInfoForType(networkType);
845 return getFilteredNetworkInfo(info, networkType, uid);
851 private NetworkInfo getFilteredNetworkInfo(NetworkInfo info, int networkType, int uid) { argument
852 if (isNetworkBlocked(networkType, uid)) {
948 public NetworkInfo getNetworkInfo(int networkType) { argument
951 return getNetworkInfo(networkType, ui
954 getNetworkInfo(int networkType, int uid) argument
997 getNetworkForType(int networkType) argument
1020 isNetworkSupported(int networkType) argument
1039 getLinkPropertiesForType(int networkType) argument
1096 getNetworkStateUnchecked(int networkType) argument
1138 isNetworkMeteredUnchecked(int networkType) argument
1166 requestRouteToHostAddress(int networkType, byte[] hostAddress) argument
1252 setDataDependency(int networkType, boolean met) argument
1259 handleSetDependencyMet(int networkType, boolean met) argument
1325 setPolicyDataEnable(int networkType, boolean enabled) argument
1333 handleSetPolicyDataEnable(int networkType, boolean enabled) argument
1670 getRestoreDefaultNetworkDelay(int networkType) argument
2480 reportInetCondition(int networkType, int percentage) argument
2706 convertFeatureToNetworkType(int networkType, String feature) argument
2902 supplyMessenger(int networkType, Messenger messenger) argument
2953 setProvNotificationVisible(boolean visible, int networkType, String action) argument
2972 setProvNotificationVisibleIntent(boolean visible, int id, int networkType, String extraInfo, PendingIntent intent) argument
3164 setProvisioningNotificationVisible(boolean visible, int networkType, String action) argument
3229 getLinkQualityInfo(int networkType) argument
4220 getLinkPropertiesForTypeInternal(int networkType) argument
4230 getNetworkInfoForType(int networkType) argument
4248 getNetworkCapabilitiesForType(int networkType) argument
[all...]
H A DNetworkScoreService.java190 public void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { argument
193 if (mScoreCaches.containsKey(networkType)) {
195 "Score cache already registered for type " + networkType);
197 mScoreCaches.put(networkType, scoreCache);
H A DTelephonyRegistry.java794 NetworkCapabilities networkCapabilities, int networkType, boolean roaming) {
797 networkCapabilities, networkType, roaming);
803 int networkType, boolean roaming) {
811 + "' apn='" + apn + "' apnType=" + apnType + " networkType=" + networkType
840 if (mDataConnectionNetworkType[phoneId] != networkType) {
841 mDataConnectionNetworkType[phoneId] = networkType;
866 mPreciseDataConnectionState = new PreciseDataConnectionState(state, networkType,
881 broadcastPreciseDataConnectionStateChanged(state, networkType, apnType, apn, reason,
1255 private void broadcastPreciseDataConnectionStateChanged(int state, int networkType, argument
792 notifyDataConnection(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument
800 notifyDataConnectionForSubscriber(long subId, int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DDataConnectionStats.java90 int networkType = mServiceState.getDataNetworkType();
92 networkType, visible ? "" : "not "));
94 mBatteryStats.notePhoneDataConnectionState(networkType, visible);
144 public void onDataConnectionStateChanged(int state, int networkType) {
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DIPhoneStateListener.aidl37 void onDataConnectionStateChanged(int state, int networkType);
H A DITelephonyRegistry.aidl47 in NetworkCapabilities networkCapabilities, int networkType, boolean roaming);
50 in NetworkCapabilities networkCapabilities, int networkType, boolean roaming);
H A DITelephony.aidl640 * @param networkType the preferred network type, defined in RILConstants.java.
643 boolean setPreferredNetworkType(int networkType);
/frameworks/base/services/core/java/com/android/server/job/controllers/
H A DConnectivityController.java160 final int networkType =
173 } else if (activeNetwork.getType() == networkType) {
/frameworks/base/telephony/java/android/telephony/
H A DPreciseDataConnectionState.java58 public PreciseDataConnectionState(int state, int networkType, argument
62 mNetworkType = networkType;
H A DPhoneStateListener.java405 public void onDataConnectionStateChanged(int state, int networkType) { argument
536 public void onDataConnectionStateChanged(int state, int networkType) {
537 Message.obtain(mHandler, LISTEN_DATA_CONNECTION_STATE, state, networkType).
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestBase.java159 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { argument
162 NetworkInfo ni = mCm.getNetworkInfo(networkType);
/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipService.java1173 int networkType = (info != null && info.isConnected()) ? info.getType() : -1;
1174 if (mSipOnWifiOnly && networkType != ConnectivityManager.TYPE_WIFI) {
1175 networkType = -1;
1179 if (mNetworkType == networkType) {
1185 " -> " + networkType);
1196 mNetworkType = networkType;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDataConnection.java422 int networkType = ss.getDataNetworkType();
424 networkType, NETWORK_TYPE, TelephonyManager.getNetworkTypeName(networkType));
1211 int networkType = ss.getDataNetworkType();
1212 mNetworkInfo.setSubtype(networkType,
1213 TelephonyManager.getNetworkTypeName(networkType));
1429 int networkType = ss.getDataNetworkType();
1430 mNetworkInfo.setSubtype(networkType,
1431 TelephonyManager.getNetworkTypeName(networkType));
/frameworks/base/services/core/java/com/android/server/location/
H A DGpsLocationProvider.java1906 int networkType = phone.getNetworkType();
1907 if (networkType == TelephonyManager.NETWORK_TYPE_UMTS
1908 || networkType == TelephonyManager.NETWORK_TYPE_HSDPA
1909 || networkType == TelephonyManager.NETWORK_TYPE_HSUPA
1910 || networkType == TelephonyManager.NETWORK_TYPE_HSPA
1911 || networkType == TelephonyManager.NETWORK_TYPE_HSPAP) {

Completed in 1741 milliseconds

12