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

12

/frameworks/base/core/java/android/net/
H A DIConnectivityManager.aidl50 NetworkInfo getNetworkInfo(int networkType);
55 boolean isNetworkSupported(int networkType);
58 LinkProperties getLinkProperties(int networkType);
67 boolean setRadio(int networkType, boolean turnOn);
69 int startUsingNetworkFeature(int networkType, in String feature,
72 int stopUsingNetworkFeature(int networkType, in String feature);
74 boolean requestRouteToHost(int networkType, int hostAddress);
76 boolean requestRouteToHostAddress(int networkType, in byte[] hostAddress);
82 void setPolicyDataEnable(int networkType, boolean enabled);
108 void reportInetCondition(int networkType, in
[all...]
H A DConnectivityManager.java108 public static final String EXTRA_NETWORK_TYPE = "networkType";
400 * @param networkType the type to be tested
403 public static boolean isNetworkTypeValid(int networkType) { argument
404 return networkType >= 0 && networkType <= MAX_NETWORK_TYPE;
455 * @param networkType the type to check
459 public static boolean isNetworkTypeMobile(int networkType) { argument
460 switch (networkType) {
481 public static boolean isNetworkTypeWifi(int networkType) { argument
482 switch (networkType) {
496 isNetworkTypeExempt(int networkType) argument
600 getNetworkInfo(int networkType) argument
680 getLinkProperties(int networkType) argument
720 setRadio(int networkType, boolean turnOn) argument
741 startUsingNetworkFeature(int networkType, String feature) argument
763 stopUsingNetworkFeature(int networkType, String feature) argument
782 requestRouteToHost(int networkType, int hostAddress) argument
802 requestRouteToHostAddress(int networkType, InetAddress hostAddress) argument
1187 reportInetCondition(int networkType, int percentage) argument
1263 setDataDependency(int networkType, boolean met) argument
1285 isNetworkSupported(int networkType) argument
1375 supplyMessenger(int networkType, Messenger messenger) argument
1429 getLinkQualityInfo(int networkType) argument
1472 setProvisioningNotificationVisible(boolean visible, int networkType, String extraInfo, String url) argument
[all...]
H A DBaseNetworkStateTracker.java53 public BaseNetworkStateTracker(int networkType) { argument
55 networkType, -1, ConnectivityManager.getNetworkTypeName(networkType), null);
H A DLinkQualityInfo.java162 public void setNetworkType(int networkType) { argument
163 mNetworkType = networkType;
H A DMobileDataStateTracker.java733 sloge("Error mapping networkType " + netType + " to apnType.");
833 public int networkType; field in class:MobileDataStateTracker.NetworkDataEntry
839 networkType = i1;
864 private static NetworkDataEntry getNetworkDataEntry(int networkType) { argument
866 if (entry.networkType == networkType) {
871 Slog.e(TAG, "Could not find Theoretical BW entry for " + String.valueOf(networkType));
875 private static int getNormalizedSignalStrength(int networkType, SignalStrength ss) { argument
879 switch(networkType) {
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestBase.java250 for (int networkType = NUM_NETWORK_TYPES - 1; networkType >=0; networkType--) {
251 connectivityState[networkType] = new NetworkState();
252 log("Initialize network state for " + networkType + ": " +
253 connectivityState[networkType].toString());
258 public void recordNetworkState(int networkType, State networkState) { argument
259 log("record network state for network " + networkType +
264 if (connectivityState[networkType] == null) {
265 log("connectivityState[networkType] i
271 setStateTransitionCriteria(int networkType, State initState, int transitionDir, State targetState) argument
278 validateNetworkStates(int networkType) argument
284 getTransitionFailureReason(int networkType) argument
357 waitForNetworkState(int networkType, State expectedState, long timeout) argument
[all...]
/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/telephony/java/com/android/internal/telephony/
H A DIPhoneStateListener.aidl33 void onDataConnectionStateChanged(int state, int networkType);
H A DITelephonyRegistry.aidl39 in LinkCapabilities linkCapabilities, int networkType, boolean roaming);
/frameworks/base/services/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/services/java/com/android/server/
H A DConnectivityService.java292 * arg1 = networkType to prefer
298 * arg1 = networkType
305 * arg1 = networkType
1017 public NetworkInfo getNetworkInfo(int networkType) { argument
1020 return getNetworkInfo(networkType, uid);
1023 private NetworkInfo getNetworkInfo(int networkType, int uid) { argument
1025 if (isNetworkTypeValid(networkType)) {
1026 final NetworkStateTracker tracker = mNetTrackers[networkType];
1050 public boolean isNetworkSupported(int networkType) { argument
1052 return (isNetworkTypeValid(networkType)
1069 getLinkProperties(int networkType) argument
1097 getNetworkStateUnchecked(int networkType) argument
1138 isNetworkMeteredUnchecked(int networkType) argument
1232 isSameUser(int pid, int uid, int networkType, String feature) argument
1247 startUsingNetworkFeature(int networkType, String feature, IBinder binder) argument
1395 stopUsingNetworkFeature(int networkType, String feature) argument
1534 requestRouteToHost(int networkType, int hostAddress) argument
1553 requestRouteToHostAddress(int networkType, byte[] hostAddress) argument
1740 setDataDependency(int networkType, boolean met) argument
1747 handleSetDependencyMet(int networkType, boolean met) argument
1839 setPolicyDataEnable(int networkType, boolean enabled) argument
1847 handleSetPolicyDataEnable(int networkType, boolean enabled) argument
2839 getRestoreDefaultNetworkDelay(int networkType) argument
3261 reportInetCondition(int networkType, int percentage) argument
3521 convertFeatureToNetworkType(int networkType, String feature) argument
3886 supplyMessenger(int networkType, Messenger messenger) argument
4486 setProvNotificationVisible(boolean visible, int networkType, String extraInfo, String url) argument
4688 setProvisioningNotificationVisible(boolean visible, int networkType, String extraInfo, String url) argument
4749 getLinkQualityInfo(int networkType) argument
[all...]
H A DTelephonyRegistry.java479 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 DPhoneStateListener.java244 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 DTelephonyManager.java702 public static int getNetworkClass(int networkType) { argument
703 switch (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/base/services/java/com/android/server/location/
H A DGpsLocationProvider.java1729 int networkType = phone.getNetworkType();
1730 if (networkType == TelephonyManager.NETWORK_TYPE_UMTS
1731 || networkType == TelephonyManager.NETWORK_TYPE_HSDPA
1732 || networkType == TelephonyManager.NETWORK_TYPE_HSUPA
1733 || networkType == TelephonyManager.NETWORK_TYPE_HSPA
1734 || networkType == TelephonyManager.NETWORK_TYPE_HSPAP) {
/frameworks/base/services/java/com/android/server/net/
H A DNetworkStatsService.java345 // watch for networkType changes that aren't broadcast through
825 public void onDataConnectionStateChanged(int state, int networkType) {
827 final boolean networkTypeChanged = networkType != mLastPhoneNetworkType;
830 // networkType changed without a state change, which means we
841 mLastPhoneNetworkType = networkType;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DPhone.java1046 * @param networkType one of NT_*_TYPE
1049 void setPreferredNetworkType(int networkType, Message response); argument
H A DPhoneBase.java901 public void setPreferredNetworkType(int networkType, Message response) { argument
902 mCi.setPreferredNetworkType(networkType, response);
H A DPhoneProxy.java787 public void setPreferredNetworkType(int networkType, Message response) { argument
788 mActivePhone.setPreferredNetworkType(networkType, response);
H A DCommandsInterface.java1283 * networkType that was passed to setPreferredNetworkType.
1290 * @param networkType one of NT_*_TYPE
1293 void setPreferredNetworkType(int networkType , Message response);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
H A DSipCommandInterface.java414 public void setPreferredNetworkType(int networkType , Message response) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DNetworkController.java433 public void onDataConnectionStateChanged(int state, int networkType) {
436 + " type=" + networkType);
439 mDataNetType = networkType;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
H A DUsimDataDownloadCommands.java488 public void setPreferredNetworkType(int networkType, Message response) { argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
H A DSimulatedCommands.java1031 public void setPreferredNetworkType(int networkType , Message result) {
1032 mNetworkType = networkType;

Completed in 880 milliseconds

12