Home
last modified time | relevance | path

Searched refs:server (Results 1 – 25 of 1028) sorted by relevance

12345678910>>...42

/frameworks/base/core/tests/coretests/src/android/net/http/
DAbstractProxyTest.java43 private MockWebServer server = new MockWebServer(); field in AbstractProxyTest
55 server.shutdown(); in tearDown()
62 server.useHttps(testSSLContext.serverContext.getSocketFactory(), false); in testConnectToHttps()
63 server.enqueue(new MockResponse() in testConnectToHttps()
66 server.play(); in testConnectToHttps()
73 .register(new Scheme("https", sslSocketFactory, server.getPort())); in testConnectToHttps()
76 new HttpGet("https://localhost:" + server.getPort() + "/foo")); in testConnectToHttps()
79 RecordedRequest request = server.takeRequest(); in testConnectToHttps()
116 server.enqueue(mockResponse); in testConnectViaProxy()
117 server.play(); in testConnectViaProxy()
[all …]
DCookiesTest.java39 private MockWebServer server = new MockWebServer(); field in CookiesTest
42 server.shutdown(); in tearDown()
52 server.enqueue(new MockResponse() in testCookiesAreNotLogged()
54 server.play(); in testCookiesAreNotLogged()
62 client.execute(new HttpGet(server.getUrl("/").toURI())); in testCookiesAreNotLogged()
81 server = new MockWebServer(); in testCookiesWithNonMatchingCase()
82 server.enqueue(new MockResponse() in testCookiesWithNonMatchingCase()
87 server.enqueue(new MockResponse() in testCookiesWithNonMatchingCase()
89 server.play(); in testCookiesWithNonMatchingCase()
93 ConnRoutePNames.DEFAULT_PROXY, new HttpHost("localhost", server.getPort())); in testCookiesWithNonMatchingCase()
[all …]
DDefaultHttpClientTest.java44 private MockWebServer server = new MockWebServer(); field in DefaultHttpClientTest
47 server.shutdown(); in tearDown()
68 server.enqueue(new MockResponse() in testServerClosesOutput()
71 server.enqueue(new MockResponse() in testServerClosesOutput()
73 server.play(); in testServerClosesOutput()
77 HttpResponse a = client.execute(new HttpGet(server.getUrl("/a").toURI())); in testServerClosesOutput()
79 assertEquals(0, server.takeRequest().getSequenceNumber()); in testServerClosesOutput()
81 HttpResponse b = client.execute(new HttpGet(server.getUrl("/b").toURI())); in testServerClosesOutput()
84 assertEquals(0, server.takeRequest().getSequenceNumber()); in testServerClosesOutput()
/frameworks/base/media/jni/
Dandroid_mtp_MtpServer.cpp64 MtpServer* server = new MtpServer(fd, getMtpDatabase(env, javaDatabase), in android_mtp_MtpServer_setup() local
66 env->SetLongField(thiz, field_MtpServer_nativeContext, (jlong)server); in android_mtp_MtpServer_setup()
75 MtpServer* server = getMtpServer(env, thiz); in android_mtp_MtpServer_run() local
76 if (server) in android_mtp_MtpServer_run()
77 server->run(); in android_mtp_MtpServer_run()
87 MtpServer* server = getMtpServer(env, thiz); in android_mtp_MtpServer_cleanup() local
88 if (server) { in android_mtp_MtpServer_cleanup()
89 delete server; in android_mtp_MtpServer_cleanup()
101 MtpServer* server = getMtpServer(env, thiz); in android_mtp_MtpServer_send_object_added() local
102 if (server) in android_mtp_MtpServer_send_object_added()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/pps/
DUpdateInfo.java1 package com.android.server.wifi.hotspot2.pps;
5 import com.android.server.wifi.hotspot2.Utils;
6 import com.android.server.wifi.hotspot2.omadm.OMAException;
7 import com.android.server.wifi.hotspot2.omadm.OMANode;
8 import com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager;
12 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_CertSHA25…
13 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_CertURL;
14 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_Password;
15 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_Restricti…
16 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_TrustRoot;
[all …]
DPolicy.java1 package com.android.server.wifi.hotspot2.pps;
3 import com.android.server.wifi.hotspot2.Utils;
4 import com.android.server.wifi.hotspot2.omadm.OMAException;
5 import com.android.server.wifi.hotspot2.omadm.OMANode;
6 import com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager;
13 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_Country;
14 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_DLBandwid…
15 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_FQDN_Matc…
16 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_IPProtoco…
17 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_MaximumBS…
[all …]
DSubscriptionParameters.java1 package com.android.server.wifi.hotspot2.pps;
3 import com.android.server.wifi.hotspot2.Utils;
4 import com.android.server.wifi.hotspot2.omadm.OMAException;
5 import com.android.server.wifi.hotspot2.omadm.OMANode;
6 import com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager;
11 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_CreationD…
12 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_DataLimit;
13 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_Expiratio…
14 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_StartDate;
15 import static com.android.server.wifi.hotspot2.omadm.PasspointManagementObjectManager.TAG_TimeLimit;
[all …]
DHomeSP.java1 package com.android.server.wifi.hotspot2.pps;
5 import com.android.server.wifi.SIMAccessor;
6 import com.android.server.wifi.anqp.ANQPElement;
7 import com.android.server.wifi.anqp.CellularNetwork;
8 import com.android.server.wifi.anqp.Constants;
9 import com.android.server.wifi.anqp.DomainNameElement;
10 import com.android.server.wifi.anqp.NAIRealmElement;
11 import com.android.server.wifi.anqp.RoamingConsortiumElement;
12 import com.android.server.wifi.anqp.ThreeGPPNetworkElement;
13 import com.android.server.wifi.hotspot2.AuthMatch;
[all …]
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
DProxyService.java31 private static ProxyServer server = null; field in ProxyService
41 if (server == null) { in onCreate()
42 server = new ProxyServer(); in onCreate()
43 server.startServer(); in onCreate()
49 if (server != null) { in onDestroy()
50 server.stopServer(); in onDestroy()
51 server = null; in onDestroy()
60 if (server != null) { in onBind()
63 server.setCallback(portListener); in onBind()
DProxyServer.java122 Socket server = null; in run() local
129 server = new Socket(inetSocketAddress.getHostName(), in run()
131 sendLine(server, requestLine); in run()
133 server = new Socket(host, port); in run()
140 sendAugmentedRequestToHost(connection, server, in run()
149 if (server != null) { in run()
154 server = new Socket(host, port); in run()
161 sendAugmentedRequestToHost(connection, server, in run()
166 if (server != null) { in run()
167 SocketConnect.connect(connection, server); in run()
[all …]
/frameworks/base/services/core/
DAndroid.mk7 LOCAL_AIDL_INCLUDES := system/netd/server/binder
11 java/com/android/server/EventLogTags.logtags \
12 java/com/android/server/am/EventLogTags.logtags \
13 ../../../../system/netd/server/binder/android/net/INetd.aidl \
14 ../../../../system/netd/server/binder/android/net/metrics/IDnsEventListener.aidl \
17 system/netd/server/binder
29 …-D jack.transformations.boost-locked-region-priority.classname=com.android.server.am.ActivityManag…
30 …-D jack.transformations.boost-locked-region-priority.request=com.android.server.am.ActivityManager…
31 …-D jack.transformations.boost-locked-region-priority.reset=com.android.server.am.ActivityManagerSe…
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
DNAIRealmElement.java1 package com.android.server.wifi.anqp;
3 import com.android.server.wifi.SIMAccessor;
4 import com.android.server.wifi.hotspot2.AuthMatch;
5 import com.android.server.wifi.hotspot2.Utils;
6 import com.android.server.wifi.hotspot2.pps.Credential;
7 import com.android.server.wifi.hotspot2.pps.HomeSP;
15 import static com.android.server.wifi.anqp.Constants.BYTES_IN_SHORT;
16 import static com.android.server.wifi.anqp.Constants.SHORT_MASK;
DNAIRealmData.java1 package com.android.server.wifi.anqp;
3 import com.android.server.wifi.anqp.eap.EAPMethod;
4 import com.android.server.wifi.hotspot2.AuthMatch;
5 import com.android.server.wifi.hotspot2.Utils;
6 import com.android.server.wifi.hotspot2.pps.Credential;
7 import com.android.server.wifi.hotspot2.pps.DomainMatcher;
DRoamingConsortiumElement.java1 package com.android.server.wifi.anqp;
3 import com.android.server.wifi.hotspot2.Utils;
12 import static com.android.server.wifi.anqp.Constants.BYTE_MASK;
13 import static com.android.server.wifi.anqp.Constants.getInteger;
/frameworks/base/media/java/android/media/midi/
DMidiManager.java254 public void onDeviceOpened(IMidiDeviceServer server, IBinder deviceToken) { in openDevice()
256 if (server != null) { in openDevice()
257 device = new MidiDevice(deviceInfoF, server, mService, mToken, deviceToken); in openDevice()
289 public void onDeviceOpened(IMidiDeviceServer server, IBinder deviceToken) { in openBluetoothDevice()
291 if (server != null) { in openBluetoothDevice()
294 MidiDeviceInfo deviceInfo = server.getDeviceInfo(); in openBluetoothDevice()
295 device = new MidiDevice(deviceInfo, server, mService, mToken, deviceToken); in openBluetoothDevice()
316 MidiDeviceServer server = new MidiDeviceServer(mService, inputPortReceivers, in createDeviceServer() local
318 MidiDeviceInfo deviceInfo = mService.registerDeviceServer(server.getBinderInterface(), in createDeviceServer()
325 return server; in createDeviceServer()
DMidiDeviceService.java59 public void onDeviceStatusChanged(MidiDeviceServer server, MidiDeviceStatus status) {
73 MidiDeviceServer server; in onCreate() local
86 server = new MidiDeviceServer(mMidiManager, inputPortReceivers, deviceInfo, mCallback); in onCreate()
89 server = null; in onCreate()
91 mServer = server; in onCreate()
/frameworks/base/services/java/com/android/server/
DSystemServer.java17 package com.android.server;
56 import com.android.server.accessibility.AccessibilityManagerService;
57 import com.android.server.am.ActivityManagerService;
58 import com.android.server.audio.AudioService;
59 import com.android.server.camera.CameraService;
60 import com.android.server.clipboard.ClipboardService;
61 import com.android.server.connectivity.MetricsLoggerService;
62 import com.android.server.devicepolicy.DevicePolicyManagerService;
63 import com.android.server.display.DisplayManagerService;
64 import com.android.server.dreams.DreamManagerService;
[all …]
/frameworks/base/docs/html/training/performance/battery/network/
Daction-server-traffic.jd19 Network traffic sent by server programs to your app can be challenging to optimize. A
20 solution to this problem is for your appp to periodically poll the server to check for updates.
24 from your server to potentially thousands of devices was previously no easy feat.
35 This lesson teaches you how to apply the GCM service to reduce network use for server-initiated
44 app server to your app. Using GCM, your app server uses a message-passing
46 traffic that your app would perform, by not contacting a backend server for new data when no
52 updated on your server, the server sends a brief message to your app telling it updates are
53 available. Your app can then call the server to update the sessions on the device only when
54 the server has new data.
58 GCM is more efficient than having your app poll for changes on the server. The GCM service
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanDetail.java17 package com.android.server.wifi;
23 import com.android.server.wifi.anqp.ANQPElement;
24 import com.android.server.wifi.anqp.Constants;
25 import com.android.server.wifi.anqp.HSFriendlyNameElement;
26 import com.android.server.wifi.anqp.RawByteElement;
27 import com.android.server.wifi.anqp.VenueNameElement;
28 import com.android.server.wifi.hotspot2.NetworkDetail;
29 import com.android.server.wifi.hotspot2.PasspointMatch;
30 import com.android.server.wifi.hotspot2.Utils;
31 import com.android.server.wifi.hotspot2.pps.HomeSP;
/frameworks/base/services/midi/java/com/android/server/midi/
DMidiService.java17 package com.android.server.midi;
50 import com.android.server.SystemService;
303 public Device(IMidiDeviceServer server, MidiDeviceInfo deviceInfo, in Device() argument
310 setDeviceServer(server); in Device()
319 private void setDeviceServer(IMidiDeviceServer server) { in setDeviceServer() argument
320 if (server != null) { in setDeviceServer()
325 IBinder binder = server.asBinder(); in setDeviceServer()
328 mDeviceInfo = server.getDeviceInfo(); in setDeviceServer()
331 mServer = server; in setDeviceServer()
338 server = mServer; in setDeviceServer()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointMatchInfo.java1 package com.android.server.wifi.hotspot2;
3 import com.android.server.wifi.ScanDetail;
4 import com.android.server.wifi.anqp.ANQPElement;
5 import com.android.server.wifi.anqp.HSConnectionCapabilityElement;
6 import com.android.server.wifi.anqp.HSWanMetricsElement;
7 import com.android.server.wifi.anqp.IPAddressTypeAvailabilityElement;
8 import com.android.server.wifi.hotspot2.pps.HomeSP;
14 import static com.android.server.wifi.anqp.Constants.ANQPElementType;
15 import static com.android.server.wifi.anqp.IPAddressTypeAvailabilityElement.IPv4Availability;
16 import static com.android.server.wifi.anqp.IPAddressTypeAvailabilityElement.IPv6Availability;
/frameworks/base/docs/html/training/secure-file-sharing/
Drequest-file.jd32 usually sends a request to the app sharing the files (the server). In most cases, the request
33 starts an {@link android.app.Activity} in the server app that displays the files it can share.
34 The user picks a file, after which the server app returns the file's content URI to the
38 This lesson shows you how a client app requests a file from a server app, receives the file's
39 content URI from the server app, and opens the file using the content URI.
44 To request a file from the server app, the client app calls
52 {@link android.content.Intent} to a server app in order to start the
73 * server app.
84 The server app sends the file's content URI back to the client app in an
94 can't discover and open any other files in the server app. Only the client app gets access to
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningService.java17 package com.android.server.wifi.scanner;
23 import com.android.server.SystemService;
24 import com.android.server.am.BatteryStatsService;
25 import com.android.server.wifi.WifiInjector;
/frameworks/base/docs/html/training/articles/
Dsecurity-ssl.jd16 <li><a href="#SelfSigned">Self-signed server certificate</a></li>
51 <p>In a typical SSL usage scenario, a server is configured with a certificate containing a
53 and server, the server proves it has the private key by signing its certificate with <a
57 doesn't prove anything about the server other than that the server knows the private key that
60 server is not to be trusted.</p>
65 is essentially a server configuration change. This is especially problematic if the server
75 in each release. Similar to a server, a CA has a certificate and a private key. When issuing
76 a certificate for a server, the CA <a
78 the server certificate using its private key. The
79 client can then verify that the server has a certificate issued by a CA known to the platform.</p>
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DSupplicantPnoScannerTest.java17 package com.android.server.wifi.scanner;
19 import static com.android.server.wifi.ScanTestUtil.NativeScanSettingsBuilder;
20 import static com.android.server.wifi.ScanTestUtil.assertScanDataEquals;
32 import com.android.server.wifi.Clock;
33 import com.android.server.wifi.MockAlarmManager;
34 import com.android.server.wifi.MockLooper;
35 import com.android.server.wifi.MockResources;
36 import com.android.server.wifi.MockWifiMonitor;
37 import com.android.server.wifi.ScanResults;
38 import com.android.server.wifi.WifiMonitor;
[all …]

12345678910>>...42