HomeSort by relevance Sort by last modified time
    Searched refs:networkType (Results 1 - 25 of 49) sorted by null

1 2

  /frameworks/base/core/java/android/net/
IConnectivityManager.aidl 50 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, String packageName);
76 boolean requestRouteToHostAddress(int networkType, in byte[] hostAddress, String packageName);
82 void setPolicyDataEnable(int networkType, boolean enabled);
108 void reportInetCondition(int networkType, int percentage)
    [all...]
ConnectivityManager.java 108 public static final String EXTRA_NETWORK_TYPE = "networkType";
402 * @param networkType the type to be tested
405 public static boolean isNetworkTypeValid(int networkType) {
406 return networkType >= 0 && networkType <= MAX_NETWORK_TYPE;
457 * @param networkType the type to check
461 public static boolean isNetworkTypeMobile(int networkType) {
462 switch (networkType) {
483 public static boolean isNetworkTypeWifi(int networkType) {
484 switch (networkType) {
    [all...]
BaseNetworkStateTracker.java 53 public BaseNetworkStateTracker(int networkType) {
55 networkType, -1, ConnectivityManager.getNetworkTypeName(networkType), null);
LinkQualityInfo.java 162 public void setNetworkType(int networkType) {
163 mNetworkType = networkType;
MobileDataStateTracker.java 744 sloge("Error mapping networkType " + netType + " to apnType.");
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowConnectivityManager.java 39 public NetworkInfo getNetworkInfo(int networkType) {
40 return networkTypeToNetworkInfo.get(networkType);
48 public void setNetworkInfo(int networkType, NetworkInfo networkInfo) {
49 networkTypeToNetworkInfo.put(networkType, networkInfo);
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
ConnectivityManagerTestBase.java 250 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) {
259 log("record network state for network " + networkType +
264 if (connectivityState[networkType] == null) {
265 log("connectivityState[networkType] is null")
    [all...]
  /frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
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) {
264 Log.v(LOG_TAG, "record network state for network " + networkType +
266 mConnectivityState[networkType].recordState(networkState);
272 * @param networkType
    [all...]
  /frameworks/base/telephony/java/com/android/internal/telephony/
IPhoneStateListener.aidl 33 void onDataConnectionStateChanged(int state, int networkType);
ITelephonyRegistry.aidl 39 in LinkCapabilities linkCapabilities, int networkType, boolean roaming);
  /frameworks/base/services/java/com/android/server/connectivity/
DataConnectionStats.java 90 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/
ConnectivityService.java 301 * arg1 = networkType to prefer
307 * arg1 = networkType
314 * arg1 = networkType
338 * arg2 = NetworkType
    [all...]
TelephonyRegistry.java 479 LinkCapabilities linkCapabilities, int networkType, boolean roaming) {
486 + "' apn='" + apn + "' apnType=" + apnType + " networkType=" + networkType
514 if (mDataConnectionNetworkType != networkType) {
515 mDataConnectionNetworkType = networkType;
  /cts/tests/tests/net/src/android/net/cts/
ConnectivityManagerTest.java 220 private boolean isSupported(int networkType) {
221 return mNetworks.containsKey(networkType);
225 private boolean isNetworkProtected(int networkType) {
226 return mProtectedNetworks.contains(networkType);
335 ConnectivityActionReceiver(int networkType) {
336 mNetworkType = networkType;
342 int networkType = networkInfo.getType();
344 Log.i(TAG, "Network type: " + networkType + " state: " + networkState);
345 if (networkType == mNetworkType && networkInfo.getState() == State.CONNECTED) {
  /cts/tests/tests/net/src/android/net/http/cts/
ApacheHttpClientTest.java 186 ConnectivityActionReceiver(int networkType, State expectedState) {
187 mNetworkType = networkType;
194 int networkType = networkInfo.getType();
196 Log.i(TAG, "Network type: " + networkType + " State: " + networkInfo.getState());
197 if (networkType == mNetworkType && networkInfo.getState() == mExpectedState) {
  /frameworks/base/telephony/java/android/telephony/
PhoneStateListener.java 244 public void onDataConnectionStateChanged(int state, int networkType) {
327 public void onDataConnectionStateChanged(int state, int networkType) {
328 Message.obtain(mHandler, LISTEN_DATA_CONNECTION_STATE, state, networkType).
  /external/chromium_org/net/android/javatests/src/org/chromium/net/
NetworkChangeNotifierTest.java 71 void setNetworkType(int networkType) {
72 mNetworkType = networkType;
  /packages/apps/Email/src/com/android/email/
EmailConnectivityManager.java 96 * @param networkType as defined by ConnectivityManager
98 public void onConnectivityRestored(int networkType) {
104 * @param networkType as defined by ConnectivityManager
106 public void onConnectivityLost(int networkType) {
AttachmentInfo.java 162 int networkType = EmailConnectivityManager.getActiveNetworkType(context);
163 if (networkType != ConnectivityManager.TYPE_WIFI) {
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
DownloadInfo.java 392 * @param networkType a constant from ConnectivityManager.TYPE_*.
395 private NetworkState checkIsNetworkTypeAllowed(int networkType) {
397 final int flag = translateNetworkTypeToApiFlag(networkType);
403 return checkSizeAllowedForNetwork(networkType);
410 private int translateNetworkTypeToApiFlag(int networkType) {
411 switch (networkType) {
430 private NetworkState checkSizeAllowedForNetwork(int networkType) {
434 if (networkType == ConnectivityManager.TYPE_WIFI) {
  /frameworks/opt/net/voip/src/java/com/android/server/sip/
SipService.java     [all...]
  /frameworks/base/services/java/com/android/server/location/
GpsLocationProvider.java     [all...]
  /frameworks/base/services/java/com/android/server/net/
NetworkStatsService.java 345 // watch for networkType changes that aren't broadcast through
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
Phone.java     [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
SipCommandInterface.java 413 public void setPreferredNetworkType(int networkType , Message response) {

Completed in 955 milliseconds

1 2