Searched defs:networkType (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/core/java/android/net/
H A DNetworkScoreManager.java258 * @param networkType the type of network this cache can handle. See {@link NetworkKey#type}.
265 public void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { argument
267 mService.registerNetworkScoreCache(networkType, scoreCache);
H A DLinkQualityInfo.java162 public void setNetworkType(int networkType) { argument
163 mNetworkType = networkType;
H A DConnectivityManager.java166 public static final String EXTRA_NETWORK_TYPE = "networkType";
600 * @param networkType the type to be tested
605 public static boolean isNetworkTypeValid(int networkType) { argument
606 return networkType >= 0 && networkType <= MAX_NETWORK_TYPE;
663 * @param networkType the type to check
667 public static boolean isNetworkTypeMobile(int networkType) { argument
668 switch (networkType) {
690 public static boolean isNetworkTypeWifi(int networkType) { argument
691 switch (networkType) {
883 getNetworkInfo(int networkType) argument
949 getNetworkForType(int networkType) argument
1021 getLinkProperties(int networkType) argument
1143 startUsingNetworkFeature(int networkType, String feature) argument
1198 stopUsingNetworkFeature(int networkType, String feature) argument
1213 networkCapabilitiesForFeature(int networkType, String feature) argument
1611 requestRouteToHost(int networkType, int hostAddress) argument
1633 requestRouteToHostAddress(int networkType, InetAddress hostAddress) argument
2259 reportInetCondition(int networkType, int percentage) argument
2393 isNetworkSupported(int networkType) argument
2480 setProvisioningNotificationVisible(boolean visible, int networkType, String action) argument
[all...]
/frameworks/base/telephony/java/android/telephony/
H A DPreciseDataConnectionState.java56 public PreciseDataConnectionState(int state, int networkType, argument
60 mNetworkType = networkType;
H A DPhoneStateListener.java419 public void onDataConnectionStateChanged(int state, int networkType) { argument
584 public void onDataConnectionStateChanged(int state, int networkType) { argument
585 send(LISTEN_DATA_CONNECTION_STATE, state, networkType, null);
H A DTelephonyManager.java1686 public static int getNetworkClass(int networkType) { argument
1687 switch (networkType) {
4107 * @param networkType the preferred network type, defined in RILConstants.java.
4111 public boolean setPreferredNetworkType(int subId, int networkType) { argument
4115 return telephony.setPreferredNetworkType(subId, networkType);
/frameworks/base/core/java/android/app/usage/
H A DNetworkStatsManager.java112 * @param networkType As defined in {@link ConnectivityManager}, e.g.
123 public Bucket querySummaryForDevice(int networkType, String subscriberId, argument
127 template = createTemplate(networkType, subscriberId);
148 * @param networkType As defined in {@link ConnectivityManager}, e.g.
159 public Bucket querySummaryForUser(int networkType, String subscriberId, long startTime, argument
163 template = createTemplate(networkType, subscriberId);
184 * @param networkType As defined in {@link ConnectivityManager}, e.g.
195 public NetworkStats querySummary(int networkType, String subscriberId, long startTime, argument
199 template = createTemplate(networkType, subscriberId);
217 public NetworkStats queryDetailsForUid(int networkType, Strin argument
246 queryDetailsForUidTag(int networkType, String subscriberId, long startTime, long endTime, int uid, int tag) argument
285 queryDetails(int networkType, String subscriberId, long startTime, long endTime) argument
306 registerUsageCallback(int networkType, String subscriberId, long thresholdBytes, UsageCallback callback) argument
327 registerUsageCallback(int networkType, String subscriberId, long thresholdBytes, UsageCallback callback, @Nullable Handler handler) argument
392 onThresholdReached(int networkType, String subscriberId) argument
400 createTemplate(int networkType, String subscriberId) argument
423 CallbackHandler(Looper looper, int networkType, String subscriberId, UsageCallback callback) argument
[all...]
/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/base/services/core/java/com/android/server/
H A DNetworkScoreService.java398 public void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { argument
401 if (mScoreCaches.containsKey(networkType)) {
403 "Score cache already registered for type " + networkType);
405 mScoreCaches.put(networkType, scoreCache);
H A DTelephonyRegistry.java1003 NetworkCapabilities networkCapabilities, int networkType, boolean roaming) {
1006 networkCapabilities, networkType, roaming);
1012 int networkType, boolean roaming) {
1020 + "' apn='" + apn + "' apnType=" + apnType + " networkType=" + networkType
1050 if (mDataConnectionNetworkType[phoneId] != networkType) {
1051 mDataConnectionNetworkType[phoneId] = networkType;
1076 mPreciseDataConnectionState = new PreciseDataConnectionState(state, networkType,
1093 broadcastPreciseDataConnectionStateChanged(state, networkType, apnType, apn, reason,
1494 private void broadcastPreciseDataConnectionStateChanged(int state, int networkType, argument
1001 notifyDataConnection(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument
1009 notifyDataConnectionForSubscriber(int subId, int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument
[all...]
H A DConnectivityService.java939 private NetworkState getFilteredNetworkState(int networkType, int uid, boolean ignoreBlocked) { argument
940 if (mLegacyTypeTracker.isTypeSupported(networkType)) {
941 final NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType);
945 state.networkInfo.setType(networkType);
947 final NetworkInfo info = new NetworkInfo(networkType, 0,
948 getNetworkTypeName(networkType), "");
1176 public NetworkInfo getNetworkInfo(int networkType) { argument
1184 if (state.networkInfo != null && state.networkInfo.getType() == networkType) {
1189 final NetworkState state = getFilteredNetworkState(networkType, uid, false);
1210 for (int networkType
1221 getNetworkForType(int networkType) argument
1293 isNetworkSupported(int networkType) argument
1315 getLinkPropertiesForType(int networkType) argument
1416 requestRouteToHostAddress(int networkType, byte[] hostAddress) argument
1908 getRestoreDefaultNetworkDelay(int networkType) argument
3147 reportInetCondition(int networkType, int percentage) argument
3868 setProvisioningNotificationVisible(boolean visible, int networkType, String action) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/
H A DLingerMonitorTest.java320 NetworkAgentInfo nai(int netId, int transport, int networkType, String networkTypeName) { argument
321 NetworkInfo info = new NetworkInfo(networkType, 0, networkTypeName, "");
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSmsNumberUtils.java117 * @param networkType current network type
123 int networkType) {
149 if (networkType == CDMA_HOME_NETWORK
150 || networkType == CDMA_ROAMING_NETWORK) {
157 if (networkType == CDMA_HOME_NETWORK) {
159 } else if (networkType == GSM_UMTS_NETWORK) {
163 } else if (networkType == CDMA_ROAMING_NETWORK) {
177 if (networkType == GSM_UMTS_NETWORK) {
189 if (networkType == GSM_UMTS_NETWORK || networkType
121 formatNumber(Context context, String number, String activeMcc, int networkType) argument
[all...]
H A DPhone.java1785 * @param networkType one of NT_*_TYPE
1788 public void setPreferredNetworkType(int networkType, Message response) { argument
1791 int rafFromType = RadioAccessFamily.getRafFromNetworkType(networkType);
1810 Rlog.d(LOG_TAG, "setPreferredNetworkType: networkType = " + 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/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DNetworkControllerBaseTest.java170 public void setConnectivity(int networkType, boolean inetCondition, boolean isConnected) { argument
174 mNetCapabilities.addTransportType(networkType);
176 mNetCapabilities.removeTransportType(networkType);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
H A DTelephonyRegistryMock.java236 NetworkCapabilities networkCapabilities, int networkType, boolean roaming) {
244 int networkType, boolean roaming) {
234 notifyDataConnection(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument
241 notifyDataConnectionForSubscriber(int subId, int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument
H A DConnectivityServiceMock.java510 public NetworkInfo getNetworkInfo(int networkType) { argument
525 public Network getNetworkForType(int networkType) { argument
540 public boolean isNetworkSupported(int networkType) { argument
550 public LinkProperties getLinkPropertiesForType(int networkType) { argument
589 public boolean requestRouteToHostAddress(int networkType, byte[] hostAddress) { argument
594 public int getRestoreDefaultNetworkDelay(int networkType) { argument
671 public void reportInetCondition(int networkType, int percentage) { argument
752 public void setProvisioningNotificationVisible(boolean visible, int networkType, argument
H A DPhoneMock.java477 public void setPreferredNetworkType(int networkType, Message response) { argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DMobileSignalController.java482 public void onDataConnectionStateChanged(int state, int networkType) { argument
485 + " type=" + networkType);
488 mDataNetType = networkType;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DApnContext.java543 public static int apnIdForType(int networkType) { argument
544 switch (networkType) {
/frameworks/base/core/java/android/app/job/
H A DJobInfo.java186 private final int networkType; field in class:JobInfo
276 return networkType;
373 networkType = in.readInt();
399 networkType = b.mNetworkType;
429 out.writeInt(networkType);
619 public Builder setRequiredNetworkType(int networkType) { argument
620 mNetworkType = networkType;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
H A DTelephonyMetrics.java845 * @param networkType The preferred network
847 public void writeSetPreferredNetworkType(int phoneId, int networkType) { argument
849 s.setPreferredNetworkMode(networkType);
/frameworks/base/services/core/java/com/android/server/am/
H A DBatteryStatsService.java886 public void noteNetworkInterfaceType(String iface, int networkType) { argument
889 mStats.noteNetworkInterfaceTypeLocked(iface, networkType);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
H A DSimulatedCommandsVerifier.java1002 public void setPreferredNetworkType(int networkType, Message response) { argument

Completed in 1341 milliseconds

12