/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiNetworkScoreCache.java | 60 for (ScoredNetwork network : networks) { in updateScores() 61 String networkKey = buildNetworkKey(network); in updateScores() 63 mNetworkCache.put(networkKey, network); in updateScores() 91 ScoredNetwork network = getScoredNetwork(result); in hasScoreCurve() local 92 return network != null && network.rssiCurve != null; in hasScoreCurve() 99 ScoredNetwork network = getScoredNetwork(result); in getNetworkScore() local 100 if (network != null && network.rssiCurve != null) { in getNetworkScore() 101 score = network.rssiCurve.lookupScore(result.level); in getNetworkScore() 103 Log.e(TAG, "getNetworkScore found scored network " + network.networkKey in getNetworkScore() 117 ScoredNetwork network = getScoredNetwork(result); in getMeteredHint() local [all …]
|
D | WifiQualifiedNetworkSelector.java | 201 private String getNetworkString(WifiConfiguration network) { in getNetworkString() argument 202 if (network == null) { in getNetworkString() 206 return (network.SSID + ":" + network.networkId); in getNetworkString() 340 int calculateBssidScore(ScanResult scanResult, WifiConfiguration network, in calculateBssidScore() argument 370 if (network == currentNetwork || network.isLinked(currentNetwork)) { in calculateBssidScore() 383 if (network.isPasspoint()) { in calculateBssidScore() 386 } else if (!mWifiConfigManager.isOpenNetwork(network)) { in calculateBssidScore() 393 if (network.numNoInternetAccessReports > 0 && !network.validatedInternetAccess) { in calculateBssidScore() 400 + network.networkId + " final score:" + score + "\n\n"); in calculateBssidScore() 416 for (WifiConfiguration network : savedNetworks) { in updateSavedNetworkSelectionStatus() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | AnqpCache.java | 58 private static CacheKey buildKey(NetworkDetail network, boolean standardESS) { in buildKey() argument 62 if (network.getAnqpDomainID() == 0L || (network.getHESSID() == 0L && !standardESS)) { in buildKey() 63 ssid = network.getSSID(); in buildKey() 64 bssid = network.getBSSID(); in buildKey() 67 else if (network.getHESSID() != 0L && network.getAnqpDomainID() > 0) { in buildKey() 70 hessid = network.getHESSID(); in buildKey() 73 ssid = network.getSSID(); in buildKey() 123 public List<Constants.ANQPElementType> initiate(NetworkDetail network, in initiate() argument 125 CacheKey key = CacheKey.buildKey(network, STANDARD_ESS); in initiate() 130 mANQPCache.put(key, new ANQPData(mClock, network, data)); in initiate() [all …]
|
/frameworks/base/docs/html/training/performance/battery/network/ |
D | analyze-data.jd | 20 collected data. This lesson teaches you how to look at the network traffic data you have 29 Efficient use of network resources by an app is characterized by significant periods where 30 the network hardware is not in use. 34 is accessing the network efficiently, you should see that its communications over the network are 39 Figure 1 shows suboptimal network traffic from app, as measured by the Network Traffic tool. The 40 app is making frequent network requests. This traffic has few periods of 41 rest where the radio could switch to a standby, low-power mode. The network access behavior of 49 <strong>Figure 1.</strong> Battery-inefficient network activity measured from an app. 53 Figure 2 shows an optimal network traffic pattern. The app sends network requests in bursts, 62 <strong>Figure 2.</strong> Battery-efficient network activity measured from an app. [all …]
|
D | gather-data.jd | 14 <li><a href="#network-tool">Run Network Traffic Tool</a></li> 21 The network traffic generated by an app can have a significant impact on the battery life of the 28 The <a href="{@docRoot}tools/debugging/ddms.html#network">Network Traffic tool</a> (part of the 29 DDMS tools) enables you to view how and when your app transfers data over a network. 33 This lesson shows you how to measure and categorize network requests by tagging your source code, 34 then shows you how to deploy, test and visualize your apps's network traffic. 43 network and for what reasons. For performance analysis purposes, you should break down use of 44 network hardware into these categories: 49 <strong>User-initiated network requests</strong> - Requests initiated by the user, such as a 54 <strong>App-initiated network requests</strong> - Requests initiated within Android app code [all …]
|
D | action-user-traffic.jd | 21 user actions that require network access. You should prioritize low latency over power 22 conservation to provide the fastest response when optimizing network use that is a direct result 23 of user actions. Attaining an optimal network traffic profile for your app, while making sure 28 This lesson teaches you how to optimize network use for user-initiated 60 app's network traffic and look for situations where a specific series of user actions almost 61 always results in multiple network requests over the course of the task. For instance, an app 69 "{@docRoot}training/efficient-downloads/efficient-network-access.html#PrefetchData">Optimizing 78 device. Your app should always check for connectivity before sending a user-initiated network 80 …"{@docRoot}training/performance/battery/network/action-app-traffic.html#choosing-scheduler">Schedu… 85 <li>If only certain buttons in your activity depend on a network connection, use <a href= [all …]
|
D | index.jd | 5 page.metaDescription=Learn how to optimize your app to reduce battery drain and use network resourc… 16 Requests that your app makes to the network are a major cause of battery drain because they turn 19 network request every 15 seconds can keep the mobile radio on continuously and quickly use up 25 your network requests according to how they are initiated. From there, each category 38 Learn how to instrument your app's code and gather data on its use of network resources. 46 Learn how to analyze your app's use of network resources in response to user actions 55 Learn how to optimize your app's use of network resources in response to user actions 64 Learn how to optimize your app's requests for network resources to reduce 73 Learn how to optimize your app's requests for network resources and to reduce 82 Learn how to optimize your app's requests for network resources and to reduce
|
D | action-app-traffic.jd | 20 for what network resources it needs and set a schedule for accessing them. By applying careful 22 power. There are several Android APIs that can help with network access scheduling, and some of 23 these functions can coordinate network access for other apps, further optimizing battery 29 optimizing app-initiated network traffic. 45 to queue a set of network requests and process them together. This allows the system to pay the 56 Using a network access scheduler API for queuing and processing your app data requests can 60 device is charging. Schedulers defer and batch network requests system-wide, across all apps on 68 Android provides three different APIs for your app to batch and schedule network requests. For 80 …<td style="white-space: nowrap;"><a href="https://developers.google.com/cloud-messaging/network-ma… 126 battery-efficient method for checking connectivity. For app-initiated network requests, use a [all …]
|
/frameworks/base/core/java/android/net/ |
D | ConnectivityManager.java | 894 public NetworkInfo getNetworkInfo(Network network) { in getNetworkInfo() argument 895 return getNetworkInfoForUid(network, Process.myUid(), false); in getNetworkInfo() 899 public NetworkInfo getNetworkInfoForUid(Network network, int uid, boolean ignoreBlocked) { in getNetworkInfoForUid() argument 901 return mService.getNetworkInfoForUid(network, uid, ignoreBlocked); in getNetworkInfoForUid() 1029 public LinkProperties getLinkProperties(Network network) { in getLinkProperties() argument 1031 return mService.getLinkProperties(network); in getLinkProperties() 1046 public NetworkCapabilities getNetworkCapabilities(Network network) { in getNetworkCapabilities() argument 1048 return mService.getNetworkCapabilities(network); in getNetworkCapabilities() 1323 public void onAvailable(Network network) { 1324 currentNetwork = network; [all …]
|
D | NetworkState.java | 33 public final Network network; field in NetworkState 38 NetworkCapabilities networkCapabilities, Network network, String subscriberId, in NetworkState() argument 43 this.network = network; in NetworkState() 52 network = in.readParcelable(null); in NetworkState() 67 out.writeParcelable(network, flags); in writeToParcel()
|
D | IConnectivityManager.aidl | 51 NetworkInfo getNetworkInfoForUid(in Network network, int uid, boolean ignoreBlocked); in getNetworkInfoForUid() argument 61 LinkProperties getLinkProperties(in Network network); in getLinkProperties() argument 63 NetworkCapabilities getNetworkCapabilities(in Network network); in getNetworkCapabilities() argument 102 void reportNetworkConnectivity(in Network network, boolean hasConnectivity); in reportNetworkConnectivity() argument 138 boolean requestBandwidthUpdate(in Network network); in requestBandwidthUpdate() argument 161 void setAcceptUnvalidated(in Network network, boolean accept, boolean always); in setAcceptUnvalidated() argument 171 void startNattKeepalive(in Network network, int intervalSeconds, in Messenger messenger, in startNattKeepalive() argument 174 void stopKeepalive(in Network network, int slot); in stopKeepalive() argument
|
/frameworks/base/core/java/com/android/server/net/ |
D | NetworkPinner.java | 90 public void onAvailable(Network network) { in onAvailable() argument 95 sCM.bindProcessToNetwork(network); in onAvailable() 96 sNetwork = network; in onAvailable() 97 Log.d(TAG, "Wifi alternate reality enabled on network " + network); in onAvailable() 104 public void onLost(Network network) { in onLost() argument 108 if (network.equals(sNetwork) && network.equals(sCM.getBoundNetworkForProcess())) { in onLost() 110 Log.d(TAG, "Wifi alternate reality disabled on network " + network); in onLost()
|
/frameworks/base/docs/html/training/basics/network-ops/ |
D | managing.jd | 44 control over their usage of network resources. If your application performs a 45 lot of network operations, you should provide user settings that allow users 54 impact of downloads and network connections, see 60 <p>A device can have various types of network connections. This lesson 61 focuses on using either a Wi-Fi or a mobile network connection. For the full 62 list of possible network types, see {@link android.net.ConnectivityManager}.<p> 67 if a Wi-Fi network is available.</p> 69 <p>Before you perform network operations, it's good practice to check the state of 70 network connectivity. Among other things, this could prevent your app from inadvertently using 71 the wrong radio. If a network connection is unavailable, your application [all …]
|
D | index.jd | 2 page.tags=network,wireless 42 <p>This class explains the basic tasks involved in connecting to the network, 43 monitoring the network connection (including connection changes), and giving 44 users control over an app's network usage. It also describes how to parse and 48 common network operations. You can download the sample (to the right) and use it 53 content and parse data efficiently, while minimizing network traffic.</p> 61 of your app's network operations.</p> 70 <dd>Learn how to connect to the network, choose an HTTP client, and perform 71 network operations outside of the UI thread.</dd> 76 device's network connection, create a preferences UI for controlling network
|
/frameworks/base/native/android/ |
D | net.c | 45 int android_setsocknetwork(net_handle_t network, int fd) { in android_setsocknetwork() argument 47 if (!getnetidfromhandle(network, &netid)) { in android_setsocknetwork() 60 int android_setprocnetwork(net_handle_t network) { in android_setprocnetwork() argument 62 if (!getnetidfromhandle(network, &netid)) { in android_setprocnetwork() 75 int android_getaddrinfofornetwork(net_handle_t network, in android_getaddrinfofornetwork() argument 79 if (!getnetidfromhandle(network, &netid)) { in android_getaddrinfofornetwork()
|
/frameworks/volley/src/test/java/com/android/volley/toolbox/ |
D | JsonRequestCharsetTest.java | 59 NetworkResponse network = new NetworkResponse(data); in defaultCharsetJsonObject() local 61 Response<JSONObject> objectResponse = objectRequest.parseNetworkResponse(network); in defaultCharsetJsonObject() 72 NetworkResponse network = new NetworkResponse(data); in defaultCharsetJsonArray() local 74 Response<JSONArray> arrayResponse = arrayRequest.parseNetworkResponse(network); in defaultCharsetJsonArray() 86 NetworkResponse network = new NetworkResponse(data, headers); in specifiedCharsetJsonObject() local 88 Response<JSONObject> objectResponse = objectRequest.parseNetworkResponse(network); in specifiedCharsetJsonObject() 100 NetworkResponse network = new NetworkResponse(data, headers); in specifiedCharsetJsonArray() local 102 Response<JSONArray> arrayResponse = arrayRequest.parseNetworkResponse(network); in specifiedCharsetJsonArray()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
D | OSUManager.java | 287 private void connect(Network network) { in connect() argument 289 mNetwork = network; in connect() 299 Network network; in run() local 309 network = mNetwork; in run() 312 if (network == null) { in run() 319 Log.d(TAG, "OSU SSID Associated at " + network.toString()); in run() 322 mOSUClient.provision(mOSUManager, network, mKeyManager); in run() 324 mOSUClient.remediate(mOSUManager, network, mKeyManager, mHomeSP, mFlowType); in run() 495 public void setActiveNetwork(WifiConfiguration wifiConfiguration, Network network) { in setActiveNetwork() argument 496 Log.d(TAG, "Network change: " + network + ", cfg " + in setActiveNetwork() [all …]
|
D | OSUClient.java | 72 public void provision(OSUManager osuManager, Network network, KeyManager km) in provision() argument 76 network, mURL, km, true))) { in provision() argument 138 if (!osuManager.startUserInput(new URL(webURL), network)) { in provision() 162 getCommandData(), network, osuManager.getOMADMAdapter(), in provision() argument 199 retrieveCerts(moData.getMOTree().getRoot(), certs, network, km, mKeyStore); in provision() local 200 osuManager.provisioningComplete(mOSUInfo, moData, certs, clientKey, network); in provision() 204 public void remediate(OSUManager osuManager, Network network, KeyManager km, HomeSP homeSP, in remediate() argument 207 try (HTTPHandler httpHandler = createHandler(network, homeSP, km, flowType)) { in remediate() 259 if (!osuManager.startUserInput(new URL(webURL), network)) { in remediate() 278 getCommandData(), network, osuManager.getOMADMAdapter(), in remediate() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetworkAgentInfo.java | 113 public final Network network; field in NetworkAgentInfo 182 network = net; in NetworkAgentInfo() 268 new NetworkCapabilities(networkCapabilities), network, subscriberId, null); in getNetworkState() 274 "network{" + network + "} nethandle{" + network.getNetworkHandle() + "} " + in toString() 289 (network == null ? "null" : network.toString()) + "]"; in name()
|
/frameworks/native/include/android/ |
D | multinetwork.h | 65 int android_setsocknetwork(net_handle_t network, int fd); 84 int android_setprocnetwork(net_handle_t network); 103 int android_getaddrinfofornetwork(net_handle_t network,
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | ImsConfig.java | 607 public void getFeatureValue(int feature, int network, in getFeatureValue() argument 610 Rlog.d(TAG, "getFeatureValue: feature = " + feature + ", network =" + network + in getFeatureValue() 614 miConfig.getFeatureValue(feature, network, listener); in getFeatureValue() 632 public void setFeatureValue(int feature, int network, int value, in setFeatureValue() argument 635 Rlog.d(TAG, "setFeatureValue: feature = " + feature + ", network =" + network + in setFeatureValue() 639 miConfig.setFeatureValue(feature, network, value, listener); in setFeatureValue()
|
/frameworks/base/docs/html-intl/intl/ru/preview/features/ |
D | security-config.jd | 2 page.keywords=androidn,security,network 124 <network-security-config> 131 </network-security-config> 158 <network-security-config> 166 </network-security-config> 194 <network-security-config> 201 </network-security-config> 229 <network-security-config> 235 </network-security-config> 262 <network-security-config> [all …]
|
/frameworks/volley/src/main/java/com/android/volley/ |
D | RequestQueue.java | 108 public RequestQueue(Cache cache, Network network, int threadPoolSize, in RequestQueue() argument 111 mNetwork = network; in RequestQueue() 123 public RequestQueue(Cache cache, Network network, int threadPoolSize) { in RequestQueue() argument 124 this(cache, network, threadPoolSize, in RequestQueue() 134 public RequestQueue(Cache cache, Network network) { in RequestQueue() argument 135 this(cache, network, DEFAULT_NETWORK_THREAD_POOL_SIZE); in RequestQueue()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | CellNetworkScanResult.java | 92 for (OperatorInfo network : mOperators) { in writeToParcel() 93 network.writeToParcel(out, flags); in writeToParcel() 106 for (OperatorInfo network : mOperators) { in toString() 107 sb.append(" network:").append(network); in toString()
|
/frameworks/base/docs/html/training/connect-devices-wirelessly/ |
D | index.jd | 2 page.tags=wifi,network,wireless 35 enable communication with other devices on the same local network, and even 36 devices which are not on a network, but are physically nearby. The addition of 42 other machines on the same network.</p> 49 device when neither device is connected to a network. 56 services offered on the local network, and use NSD to determine the connection 65 on the same network, using Wi-Fi P2P.</dd>
|