/frameworks/base/core/tests/coretests/src/android/net/http/ |
D | AbstractProxyTest.java | 43 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 …]
|
D | CookiesTest.java | 39 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 …]
|
D | DefaultHttpClientTest.java | 44 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/ |
D | android_mtp_MtpServer.cpp | 64 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/base/packages/services/Proxy/src/com/android/proxyhandler/ |
D | ProxyService.java | 31 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()
|
D | ProxyServer.java | 122 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/opt/net/wifi/service/java/com/android/server/wifi/anqp/ |
D | NAIRealmElement.java | 1 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;
|
D | NAIRealmData.java | 1 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;
|
D | RoamingConsortiumElement.java | 1 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;
|
D | HSWanMetricsElement.java | 1 package com.android.server.wifi.anqp; 6 import static com.android.server.wifi.anqp.Constants.BYTE_MASK; 7 import static com.android.server.wifi.anqp.Constants.INT_MASK; 8 import static com.android.server.wifi.anqp.Constants.SHORT_MASK;
|
/frameworks/base/services/java/com/android/server/ |
D | SystemServer.java | 17 package com.android.server; 52 import com.android.server.accessibility.AccessibilityManagerService; 53 import com.android.server.accounts.AccountManagerService; 54 import com.android.server.am.ActivityManagerService; 55 import com.android.server.audio.AudioService; 56 import com.android.server.camera.CameraService; 57 import com.android.server.clipboard.ClipboardService; 58 import com.android.server.content.ContentService; 59 import com.android.server.devicepolicy.DevicePolicyManagerService; 60 import com.android.server.display.DisplayManagerService; [all …]
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
D | gltrace_transport.cpp | 42 struct sockaddr_un server, client; in acceptClientConnection() local 44 memset(&server, 0, sizeof server); in acceptClientConnection() 45 server.sun_family = AF_UNIX; in acceptClientConnection() 47 strcpy(server.sun_path + 1, sockname); in acceptClientConnection() 50 socklen_t sockaddr_len = sizeof(server.sun_family) + strlen(sockname) + 1; in acceptClientConnection() 51 if (bind(serverSocket, (struct sockaddr *) &server, sockaddr_len) < 0) { in acceptClientConnection()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ScanDetail.java | 1 package com.android.server.wifi; 6 import com.android.server.wifi.anqp.ANQPElement; 7 import com.android.server.wifi.anqp.Constants; 8 import com.android.server.wifi.anqp.HSFriendlyNameElement; 9 import com.android.server.wifi.anqp.VenueNameElement; 10 import com.android.server.wifi.hotspot2.NetworkDetail; 11 import com.android.server.wifi.hotspot2.PasspointMatch; 12 import com.android.server.wifi.hotspot2.PasspointMatchInfo; 13 import com.android.server.wifi.hotspot2.Utils; 14 import com.android.server.wifi.hotspot2.pps.HomeSP;
|
/frameworks/base/media/java/android/media/midi/ |
D | MidiManager.java | 249 public void onDeviceOpened(IMidiDeviceServer server, IBinder deviceToken) { in openDevice() 251 if (server != null) { in openDevice() 252 device = new MidiDevice(deviceInfoF, server, mService, mToken, deviceToken); in openDevice() 284 public void onDeviceOpened(IMidiDeviceServer server, IBinder deviceToken) { in openBluetoothDevice() 286 if (server != null) { in openBluetoothDevice() 289 MidiDeviceInfo deviceInfo = server.getDeviceInfo(); in openBluetoothDevice() 290 device = new MidiDevice(deviceInfo, server, mService, mToken, deviceToken); in openBluetoothDevice() 312 MidiDeviceServer server = new MidiDeviceServer(mService, inputPortReceivers, in createDeviceServer() local 314 MidiDeviceInfo deviceInfo = mService.registerDeviceServer(server.getBinderInterface(), in createDeviceServer() 321 return server; in createDeviceServer()
|
D | MidiDeviceService.java | 59 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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/pps/ |
D | HomeSP.java | 1 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.DomainNameElement; 9 import com.android.server.wifi.anqp.NAIRealmElement; 10 import com.android.server.wifi.anqp.RoamingConsortiumElement; 11 import com.android.server.wifi.anqp.ThreeGPPNetworkElement; 12 import com.android.server.wifi.hotspot2.AuthMatch; 13 import com.android.server.wifi.hotspot2.NetworkDetail; [all …]
|
/frameworks/base/services/midi/java/com/android/server/midi/ |
D | MidiService.java | 17 package com.android.server.midi; 48 import com.android.server.SystemService; 292 public Device(IMidiDeviceServer server, MidiDeviceInfo deviceInfo, in Device() argument 299 setDeviceServer(server); in Device() 308 private void setDeviceServer(IMidiDeviceServer server) { in setDeviceServer() argument 309 if (server != null) { in setDeviceServer() 314 IBinder binder = server.asBinder(); in setDeviceServer() 317 mDeviceInfo = server.getDeviceInfo(); in setDeviceServer() 320 mServer = server; in setDeviceServer() 327 server = mServer; in setDeviceServer() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointMatchInfo.java | 1 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/ |
D | request-file.jd | 32 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/base/docs/html/training/articles/ |
D | security-ssl.jd | 16 <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/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetService.java | 17 package com.android.server.appwidget; 21 import com.android.server.AppWidgetBackupBridge; 22 import com.android.server.SystemService;
|
/frameworks/base/core/java/android/util/ |
D | NtpTrustedTime.java | 52 private NtpTrustedTime(String server, long timeout) { in NtpTrustedTime() argument 53 if (LOGD) Log.d(TAG, "creating NtpTrustedTime using " + server); in NtpTrustedTime() 54 mServer = server; in NtpTrustedTime() 73 final String server = secureServer != null ? secureServer : defaultServer; in getInstance() local 74 sSingleton = new NtpTrustedTime(server, timeout); in getInstance()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | LockdownVpnTracker.java | 17 package com.android.server.net; 50 import com.android.server.ConnectivityService; 51 import com.android.server.EventLogTags; 52 import com.android.server.connectivity.Vpn; 235 mNetService.setFirewallEgressDestRule(mProfile.server, 500, true); in initLocked() 236 mNetService.setFirewallEgressDestRule(mProfile.server, 4500, true); in initLocked() 237 mNetService.setFirewallEgressDestRule(mProfile.server, 1701, true); in initLocked() 261 mNetService.setFirewallEgressDestRule(mProfile.server, 500, false); in shutdownLocked() 262 mNetService.setFirewallEgressDestRule(mProfile.server, 4500, false); in shutdownLocked() 263 mNetService.setFirewallEgressDestRule(mProfile.server, 1701, false); in shutdownLocked()
|
/frameworks/base/docs/html/google/play/licensing/ |
D | licensing-reference.jd | 14 <li><a href="#server-response-codes">Server Response Codes</a></li> 59 licensing server to manage local storage of license data, license validity, 65 license response from the server only. No caching or request retry.</td> 88 backend server and may cause the user to lose access to licensed applications, 105 server.</td> 125 asynchronous response from the licensing server.</td> 132 <h2 id="server-response-codes">Server Response Codes</h2> 135 licensing server. In general, an application should handle all of these response 140 returned by the Google Play server in a license response.</p> 183 licensing server, possibly because of network availability problems. </td> [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | VolumeControlAction.java | 17 package com.android.server.hdmi; 19 import static com.android.server.hdmi.Constants.MESSAGE_FEATURE_ABORT; 20 import static com.android.server.hdmi.Constants.MESSAGE_REPORT_AUDIO_STATUS; 21 import static com.android.server.hdmi.Constants.MESSAGE_USER_CONTROL_PRESSED; 22 import static com.android.server.hdmi.HdmiConfig.IRT_MS;
|