Lines Matching refs:networkType
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
277 public void setStateTransitionCriteria(int networkType, State initState,
279 mConnectivityState[networkType].setStateTransitionCriteria(
285 * @param networkType
288 public boolean validateNetworkStates(int networkType) {
289 Log.v(LOG_TAG, "validate network state for " + networkType + ": ");
290 return mConnectivityState[networkType].validateStateTransition();
295 * @param networkType
298 public String getTransitionFailureReason(int networkType) {
299 Log.v(LOG_TAG, "get network state transition failure reason for " + networkType + ": " +
300 mConnectivityState[networkType].toString());
301 return mConnectivityState[networkType].getFailureReason();
429 * @param networkType the network to check for
434 public boolean waitForNetworkState(int networkType, State expectedState, long timeout) {
438 Log.v(LOG_TAG, "waitForNetworkState time out, the state of network type " + networkType +
439 " is: " + mCM.getNetworkInfo(networkType).getState());
440 if (mCM.getNetworkInfo(networkType).getState() != expectedState) {
444 Log.v(LOG_TAG, "networktype: " + networkType + " state: " +
445 mCM.getNetworkInfo(networkType));
449 Log.v(LOG_TAG, "Wait for the connectivity state for network: " + networkType +
468 if ((mNetworkInfo.getType() != networkType) ||