/frameworks/base/core/java/android/net/ |
H A D | ConnectivityManager.java | 104 public static final String EXTRA_NETWORK_TYPE = "networkType"; 343 public static boolean isNetworkTypeValid(int networkType) { argument 344 return networkType >= 0 && networkType <= MAX_NETWORK_TYPE; 384 public static boolean isNetworkTypeMobile(int networkType) { argument 385 switch (networkType) { 440 public NetworkInfo getNetworkInfo(int networkType) { argument 442 return mService.getNetworkInfo(networkType); 466 public LinkProperties getLinkProperties(int networkType) { argument 468 return mService.getLinkProperties(networkType); 484 setRadio(int networkType, boolean turnOn) argument 505 startUsingNetworkFeature(int networkType, String feature) argument 527 stopUsingNetworkFeature(int networkType, String feature) argument 546 requestRouteToHost(int networkType, int hostAddress) argument 566 requestRouteToHostAddress(int networkType, InetAddress hostAddress) argument 837 reportInetCondition(int networkType, int percentage) argument 884 setDataDependency(int networkType, boolean met) argument 902 isNetworkSupported(int networkType) argument [all...] |
H A D | IConnectivityManager.aidl | 44 NetworkInfo getNetworkInfo(int networkType); 47 boolean isNetworkSupported(int networkType); 50 LinkProperties getLinkProperties(int networkType); 59 boolean setRadio(int networkType, boolean turnOn); 61 int startUsingNetworkFeature(int networkType, in String feature, 64 int stopUsingNetworkFeature(int networkType, in String feature); 66 boolean requestRouteToHost(int networkType, int hostAddress); 68 boolean requestRouteToHostAddress(int networkType, in byte[] hostAddress); 74 void setPolicyDataEnable(int networkType, boolean enabled); 106 void reportInetCondition(int networkType, in [all...] |
H A D | BaseNetworkStateTracker.java | 52 public BaseNetworkStateTracker(int networkType) { argument 54 networkType, -1, ConnectivityManager.getNetworkTypeName(networkType), null);
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
H A D | ConnectivityManagerTestActivity.java | 268 for (int networkType = NUM_NETWORK_TYPES - 1; networkType >=0; networkType--) { 269 connectivityState[networkType] = new NetworkState(); 270 log("Initialize network state for " + networkType + ": " + 271 connectivityState[networkType].toString()); 276 public void recordNetworkState(int networkType, State networkState) { argument 277 log("record network state for network " + networkType + 279 connectivityState[networkType].recordState(networkState); 283 public void setStateTransitionCriteria(int networkType, Stat argument 290 validateNetworkStates(int networkType) argument 296 getTransitionFailureReason(int networkType) argument 369 waitForNetworkState(int networkType, State expectedState, long timeout) argument [all...] |
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
H A D | ConnectionUtil.java | 255 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/telephony/java/com/android/internal/telephony/ |
H A D | IPhoneStateListener.aidl | 33 void onDataConnectionStateChanged(int state, int networkType);
|
H A D | ITelephonyRegistry.aidl | 39 in LinkCapabilities linkCapabilities, int networkType, boolean roaming);
|
/frameworks/base/services/java/com/android/server/ |
H A D | ConnectivityService.java | 234 * arg1 = networkType to prefer 240 * arg1 = networkType 247 * arg1 = networkType 843 public NetworkInfo getNetworkInfo(int networkType) { argument 846 return getNetworkInfo(networkType, uid); 849 private NetworkInfo getNetworkInfo(int networkType, int uid) { argument 851 if (isNetworkTypeValid(networkType)) { 852 final NetworkStateTracker tracker = mNetTrackers[networkType]; 876 public boolean isNetworkSupported(int networkType) { argument 878 return (isNetworkTypeValid(networkType) 895 getLinkProperties(int networkType) argument 923 getNetworkStateUnchecked(int networkType) argument 964 isNetworkMeteredUnchecked(int networkType) argument 1058 isSameUser(int pid, int uid, int networkType, String feature) argument 1073 startUsingNetworkFeature(int networkType, String feature, IBinder binder) argument 1214 stopUsingNetworkFeature(int networkType, String feature) argument 1345 requestRouteToHost(int networkType, int hostAddress) argument 1364 requestRouteToHostAddress(int networkType, byte[] hostAddress) argument 1518 setDataDependency(int networkType, boolean met) argument 1525 handleSetDependencyMet(int networkType, boolean met) argument 1617 setPolicyDataEnable(int networkType, boolean enabled) argument 1625 handleSetPolicyDataEnable(int networkType, boolean enabled) argument 2576 getRestoreDefaultNetworkDelay(int networkType) argument 2958 reportInetCondition(int networkType, int percentage) argument 3183 convertFeatureToNetworkType(int networkType, String feature) argument [all...] |
H A D | TelephonyRegistry.java | 479 LinkCapabilities linkCapabilities, int networkType, boolean roaming) { 486 + "' apn='" + apn + "' apnType=" + apnType + " networkType=" + networkType 514 if (mDataConnectionNetworkType != networkType) { 515 mDataConnectionNetworkType = networkType; 477 notifyDataConnection(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, LinkCapabilities linkCapabilities, int networkType, boolean roaming) argument
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | PhoneStateListener.java | 244 public void onDataConnectionStateChanged(int state, int networkType) { argument 327 public void onDataConnectionStateChanged(int state, int networkType) { 328 Message.obtain(mHandler, LISTEN_DATA_CONNECTION_STATE, state, networkType).
|
H A D | TelephonyManager.java | 614 public static int getNetworkClass(int networkType) { argument 615 switch (networkType) {
|
/frameworks/base/voip/java/com/android/server/sip/ |
H A D | SipService.java | 1127 int networkType = (info != null && info.isConnected()) ? info.getType() : -1; 1128 if (mSipOnWifiOnly && networkType != ConnectivityManager.TYPE_WIFI) { 1129 networkType = -1; 1133 if (mNetworkType == networkType) { 1138 " -> " + networkType); 1149 mNetworkType = networkType;
|
/frameworks/base/services/java/com/android/server/location/ |
H A D | GpsLocationProvider.java | 1463 int networkType = phone.getNetworkType(); 1464 if (networkType == TelephonyManager.NETWORK_TYPE_UMTS 1465 || networkType == TelephonyManager.NETWORK_TYPE_HSDPA 1466 || networkType == TelephonyManager.NETWORK_TYPE_HSUPA 1467 || networkType == TelephonyManager.NETWORK_TYPE_HSPA) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
H A D | SipCommandInterface.java | 317 public void setPreferredNetworkType(int networkType , Message response) {
|
/frameworks/base/services/java/com/android/server/net/ |
H A D | NetworkStatsService.java | 345 // watch for networkType changes that aren't broadcast through 827 public void onDataConnectionStateChanged(int state, int networkType) { 829 final boolean networkTypeChanged = networkType != mLastPhoneNetworkType; 832 // networkType changed without a state change, which means we 843 mLastPhoneNetworkType = networkType;
|
H A D | NetworkPolicyManagerService.java | 1993 private void setPolicyDataEnable(int networkType, boolean enabled) { argument 1995 mConnManager.setPolicyDataEnable(networkType, enabled);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | Phone.java | 1031 * @param networkType one of NT_*_TYPE 1034 void setPreferredNetworkType(int networkType, Message response); argument
|
H A D | PhoneBase.java | 768 public void setPreferredNetworkType(int networkType, Message response) { argument 769 mCM.setPreferredNetworkType(networkType, response);
|
H A D | PhoneProxy.java | 663 public void setPreferredNetworkType(int networkType, Message response) { argument 664 mActivePhone.setPreferredNetworkType(networkType, response);
|
H A D | CommandsInterface.java | 1245 * networkType that was passed to setPreferredNetworkType. 1252 * @param networkType one of NT_*_TYPE 1255 void setPreferredNetworkType(int networkType , Message response);
|
H A D | RIL.java | 1875 public void setPreferredNetworkType(int networkType , Message response) { 1880 rr.mp.writeInt(networkType); 1882 mSetPreferredNetworkType = networkType; 1883 mPreferredNetworkType = networkType; 1886 + " : " + networkType);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
H A D | UsimDataDownloadCommands.java | 476 public void setPreferredNetworkType(int networkType, Message response) { argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
H A D | SimulatedCommands.java | 972 public void setPreferredNetworkType(int networkType , Message result) { 973 mNetworkType = networkType;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | NetworkController.java | 453 public void onDataConnectionStateChanged(int state, int networkType) { 456 + " type=" + networkType); 459 mDataNetType = networkType;
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryStatsImpl.java | 2297 public void noteNetworkInterfaceTypeLocked(String iface, int networkType) { argument 2298 if (ConnectivityManager.isNetworkTypeMobile(networkType)) {
|