Searched defs:network (Results 1 - 25 of 38) sorted by last modified time

12

/frameworks/volley/src/main/java/com/android/volley/
H A DNetworkDispatcher.java28 * Provides a thread for performing network dispatch from a queue of requests.
30 * Requests added to the specified queue are processed from the network via a
38 /** The network interface for processing requests. */
48 * Creates a new network dispatcher thread. You must call {@link #start()}
52 * @param network Network interface to use for performing requests
57 Network network, Cache cache,
60 mNetwork = network;
100 request.addMarker("network-queue-take");
103 // network request.
105 request.finish("network
56 NetworkDispatcher(BlockingQueue<Request<?>> queue, Network network, Cache cache, ResponseDelivery delivery) argument
[all...]
H A DRequestQueue.java37 * resolving from either cache or network on a worker thread, and then delivering
75 /** The queue of requests that are actually going out to the network. */
79 /** Number of network request dispatcher threads to start. */
91 /** The network dispatchers. */
104 * @param network A Network interface for performing HTTP requests
105 * @param threadPoolSize Number of network dispatcher threads to create
108 public RequestQueue(Cache cache, Network network, int threadPoolSize, argument
111 mNetwork = network;
120 * @param network A Network interface for performing HTTP requests
121 * @param threadPoolSize Number of network dispatche
123 RequestQueue(Cache cache, Network network, int threadPoolSize) argument
134 RequestQueue(Cache cache, Network network) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DPhone.java124 // Key used to read and write the saved network selection numeric value
126 // Key used to read and write the saved network selection operator name
128 // Key used to read and write the saved network selection operator short name
358 * they are to simulate detaching from the network.
369 * they are to simulate attaching to the network.
451 * (i.e. voice) phone calls over the telephony network, and is allowed
553 // handle the select network completion callbacks.
1033 * its network activity and is in its final state. This may mean a state
1072 * Register for TTY mode change notifications from the network.
1093 * Switches network selectio
1167 selectNetworkManually(OperatorInfo network, boolean persistSelection, Message response) argument
[all...]
H A DServiceStateTracker.java298 // Set the network type, in case the radio does not restore it.
321 // Remove old network selection sharedPreferences since SP key names are now
704 // If the phone is not registered on a network, no need to update.
800 * Re-register network by toggling preferred network type.
801 * This is a work-around to deregister and register network since there is
1128 // Don't care the result, only use for dereg network (COPS=2)
1163 // possible a network or baseband side error
1463 loge("CDMA_SUBSCRIPTION: error parsing network id: " + ex);
1973 * @return true if the roamInd is in the carrier-specified list of ERIs for home network
4963 isInNetwork(BaseBundle b, String network, String key) argument
4972 isRoamingInGsmNetwork(BaseBundle b, String network) argument
4976 isNonRoamingInGsmNetwork(BaseBundle b, String network) argument
4980 isRoamingInCdmaNetwork(BaseBundle b, String network) argument
4984 isNonRoamingInCdmaNetwork(BaseBundle b, String network) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
H A DImsPhoneBase.java431 public void selectNetworkManually(OperatorInfo network, boolean persistSelection, argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
H A DTelephonyMetrics.java808 * @param network The IMS network type
812 public void writeImsSetFeatureValue(int phoneId, int feature, int network, int value, argument
842 * Write the preferred network settings changed event
845 * @param networkType The preferred network
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
H A DSipPhoneBase.java394 public void selectNetworkManually(OperatorInfo network, boolean persistSelection, argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
H A DConnectivityServiceMock.java165 * used to add a network request
171 * used to add a network listener - no request
177 * used to remove a network request, either a listener or a real request
280 // A network factory has connected. Send it all current NetworkRequests.
295 // A network agent has requested a connection. Establish the connection.
304 // mNetworkForNetId.remove(nai.network.netId);
305 // mNetIdInUse.delete(nai.network.netId);
320 // A network agent has disconnected.
321 // TODO - if we move the logic to the network agent (have them disconnect
347 // mNetworkForNetId.remove(nai.network
515 getNetworkInfoForUid(Network network, int uid, boolean ignoreBlocked) argument
555 getLinkProperties(Network network) argument
565 getNetworkCapabilities(Network network) argument
603 setAcceptUnvalidated(Network network, boolean accept, boolean always) argument
607 setAvoidUnvalidated(Network network) argument
675 reportNetworkConnectivity(Network network, boolean hasConnectivity) argument
679 getProxyForNetwork(Network network) argument
782 requestBandwidthUpdate(Network network) argument
1011 startNattKeepalive(Network network, int intervalSeconds, Messenger messenger, IBinder binder, String srcAddr, int srcPort, String dstAddr) argument
1017 stopKeepalive(Network network, int slot) argument
[all...]
H A DPhoneMock.java337 public void selectNetworkManually(OperatorInfo network, boolean persistSelection, argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiConfigManager.java125 * (key, value) pairs for a given network are grouped together and can
128 * network. A network is identified by a unique ID_KEY. If there is no
188 * The threshold for each kind of error. If a network continuously encounter the same error more
189 * than the threshold times, this network will be disabled. -1 means unavailable.
205 * Timeout for each kind of error. After the timeout minutes, unblock the network again.
254 /* configured networks with network id as the key */
286 * The mLastSelectedConfiguration is used to remember which network
288 * The connection to this network may not be successful, as well
289 * the selection (i.e. network priorit
1621 sendConfiguredNetworksChangedBroadcast(WifiConfiguration network, int reason) argument
1860 setLatestUserSelectedConfiguration(WifiConfiguration network) argument
2515 getANQPData(NetworkDetail network) argument
[all...]
H A DWifiNetworkScoreCache.java40 // scorer to provide an RSSI threshold below which a network should not be used.
60 for (ScoredNetwork network : networks) {
61 String networkKey = buildNetworkKey(network);
63 mNetworkCache.put(networkKey, network);
78 * scores from the network scorer.
87 * A null score curve has special meaning - we should never connect to an ephemeral network if
91 ScoredNetwork network = getScoredNetwork(result);
92 return network != null && network.rssiCurve != null;
99 ScoredNetwork network
149 buildNetworkKey(ScoredNetwork network) argument
[all...]
H A DWifiQualifiedNetworkSelector.java48 * select an network for the phone to connect/roam to.
64 //buffer of filtered scan results (Scan results considered by network selection) & associated
72 //if current network is on 2.4GHz band and has a RSSI over this, need not new network selection
74 //if current network is on 5GHz band and has a RSSI over this, need not new network selection
138 * @return current target connected network
174 localLoge("No network score service: Couldn't register as a WiFi score Manager, type="
200 private String getNetworkString(WifiConfiguration network) { argument
201 if (network
339 calculateBssidScore(ScanResult scanResult, WifiConfiguration network, WifiConfiguration currentNetwork, boolean sameBssid, boolean sameSelect, StringBuffer sbuf) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DANQPData.java43 public ANQPData(Clock clock, NetworkDetail network, argument
47 mNetwork = network;
54 else if (network.getAnqpDomainID() == 0) {
62 public ANQPData(Clock clock, NetworkDetail network, ANQPData existing) { argument
64 mNetwork = network;
H A DAnqpCache.java52 * @param network The network to build the key for.
58 private static CacheKey buildKey(NetworkDetail network, boolean standardESS) { argument
62 if (network.getAnqpDomainID() == 0L || (network.getHESSID() == 0L && !standardESS)) {
63 ssid = network.getSSID();
64 bssid = network.getBSSID();
67 else if (network.getHESSID() != 0L && network.getAnqpDomainID() > 0) {
70 hessid = network
123 initiate(NetworkDetail network, List<Constants.ANQPElementType> querySet) argument
143 update(NetworkDetail network, Map<Constants.ANQPElementType, ANQPElement> anqpElements) argument
162 getEntry(NetworkDetail network) argument
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiConfigManagerTest.java250 * Verifies that getConfiguredNetworksSize() returns the number of network configurations
277 // Find the network configuration to test (assume that |actualConfigs| contains them in
290 * Verifies that getConfiguredNetworksSize() returns the network configurations visible to the
303 * Verifies that getPrivilegedConfiguredNetworks() returns the network configurations visible to
317 * Verifies that getWifiConfiguration(int netId) can be used to access network configurations
339 * Verifies that getWifiConfiguration(String key) can be used to access network configurations
361 * Verifies that enableAllNetworks() enables all temporarily disabled network configurations
391 * Verifies that selectNetwork() disables all network configurations visible to the current user
402 // Enable all network configurations.
407 // Try to select a network configuratio
452 verifySaveNetwork(int network) argument
[all...]
/frameworks/opt/net/ims/src/java/com/android/ims/
H A DImsConfig.java648 * Gets the value for IMS feature item for specified network type.
651 * @param network, defined as in android.telephony.TelephonyManager#NETWORK_TYPE_XXX.
657 public void getFeatureValue(int feature, int network, argument
660 Rlog.d(TAG, "getFeatureValue: feature = " + feature + ", network =" + network +
664 miConfig.getFeatureValue(feature, network, listener);
672 * Sets the value for IMS feature item for specified network type.
675 * @param network, as defined in android.telephony.TelephonyManager#NETWORK_TYPE_XXX.
682 public void setFeatureValue(int feature, int network, int value, argument
685 Rlog.d(TAG, "setFeatureValue: feature = " + feature + ", network
[all...]
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.cpp540 char network[PROPERTY_VALUE_MAX], date[80]; local
547 property_get("gsm.operator.alpha", network, "(unknown)");
559 printf("Network: %s\n", network);
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DConnectivityServiceTest.java118 public synchronized boolean bindProcessToNetwork(Network network) { argument
119 mFakeBoundNetwork = network;
204 // Bring up a network that we can use to send messages to ConnectivityService.
265 throw new UnsupportedOperationException("unimplemented network type");
336 * @param validated Indicate if network should pretend to be validated.
351 public void onCapabilitiesChanged(Network network,
353 if (network.equals(getNetwork()) &&
366 // Wait for network to validate.
645 // can have odd side-effects, like network validations succeeding.
648 for (Network network
1096 public final Network network; field in class:ConnectivityServiceTest.TestNetworkCallback.CallbackInfo
1111 setLastCallback(CallbackState state, Network network, Object o) argument
1116 onAvailable(Network network) argument
1121 onLosing(Network network, int maxMsToLive) argument
1126 onLost(Network network) argument
1788 onCapabilitiesChanged(Network network, NetworkCapabilities netCap) argument
1793 onLinkPropertiesChanged(Network network, LinkProperties linkProp) argument
1854 isForegroundNetwork(MockNetworkAgent network) argument
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNetworkAgentInfo.java53 // States of a network:
59 // This state is entered when a registered NetworkAgent for a VPN network transitions to the
60 // CONNECTING state (TODO: go through this state for every network, not just VPNs).
61 // ConnectivityService will tell netd to create the network early in order to add extra UID
62 // routing rules referencing the netID. These rules need to be in place before the network is
63 // connected to avoid racing against client apps trying to connect to a half-setup network.
66 // ConnectivityService will tell netd to create the network if it was not already created, and
69 // If this network can satisfy the default NetworkRequest, then NetworkMonitor will
71 // If this network cannot satisfy the default NetworkRequest, it will immediately be
73 // A network ma
123 public final Network network; field in class:NetworkAgentInfo
[all...]
H A DNetworkDiagnostics.java64 * A simple class to diagnose network connectivity fundamentals. Current
168 public NetworkDiagnostics(Network network, LinkProperties lp, long timeoutMs) { argument
169 mNetwork = network;
211 + " network{" + mNetwork + "}"
H A DTethering.java1030 public void onAvailable(Network network) { argument
1032 UpstreamNetworkMonitor.EVENT_ON_AVAILABLE, 0, network);
1036 public void onCapabilitiesChanged(Network network, NetworkCapabilities newNc) { argument
1039 new NetworkState(null, null, newNc, network, null, null));
1043 public void onLinkPropertiesChanged(Network network, LinkProperties newLp) { argument
1046 new NetworkState(null, newLp, null, network, null, null));
1050 public void onLost(Network network) { argument
1052 UpstreamNetworkMonitor.EVENT_ON_LOST, 0, network);
1057 * A class to centralize all the network and link properties information
1058 * pertaining to the current and any potential upstream network
1110 lookup(Network network) argument
1480 setDnsForwarders(final Network network, final LinkProperties lp) argument
[all...]
/frameworks/base/services/core/java/com/android/server/location/
H A DGnssLocationProvider.java288 // how long to wait if we have a network error in NTP or XTRA downloading
292 // how long to wait if we have a network error in NTP or XTRA downloading
308 // flags to trigger NTP or XTRA data download when network becomes available
309 // initialized to true so we do NTP and XTRA when the network comes up after booting
454 public void onAvailable(Network network) {
472 public void onAvailable(Network network) {
473 sendMessage(UPDATE_NETWORK_STATE, 0 /*arg*/, network);
477 public void onLost(Network network) {
822 private void handleUpdateNetworkState(Network network) { argument
824 NetworkInfo info = mConnMgr.getNetworkInfo(network);
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DNetworkManagementService.java140 * String to pass to netd to indicate that a network is only accessible
146 * String to pass to netd to indicate that a network is only
307 // the network actually went inactive. (It might be nice to still do this,
508 // on the mobile network, that is not coming from the radio itself, and we
801 * a network interface change occured
841 * An network interface class state changed (active/idle)
868 * A network address change occurred
1146 final Command cmd = new Command("network", "route", action, netId);
1300 // The RouteInfo constructor truncates the LinkAddress to a network prefix, thus making it
1331 public void setDnsForwarders(Network network, Strin argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSystemUIFactory.java107 RotationLockController rotation, NetworkController network,
114 return new QSTileHost(context, statusBar, bluetooth, location, rotation, network, zen,
105 createQSTileHost(Context context, PhoneStatusBar statusBar, BluetoothController bluetooth, LocationController location, RotationLockController rotation, NetworkController network, ZenModeController zen, HotspotController hotspot, CastController cast, FlashlightController flashlight, UserSwitcherController userSwitcher, UserInfoController userInfo, KeyguardMonitor keyguard, SecurityController security, BatteryController battery, StatusBarIconController iconController, NextAlarmController nextAlarmController) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DQSTileHost.java121 RotationLockController rotation, NetworkController network,
133 mNetwork = network;
119 QSTileHost(Context context, PhoneStatusBar statusBar, BluetoothController bluetooth, LocationController location, RotationLockController rotation, NetworkController network, ZenModeController zen, HotspotController hotspot, CastController cast, FlashlightController flashlight, UserSwitcherController userSwitcher, UserInfoController userInfo, KeyguardMonitor keyguard, SecurityController security, BatteryController battery, StatusBarIconController iconController, NextAlarmController nextAlarmController) argument

Completed in 7644 milliseconds

12