Home
last modified time | relevance | path

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

1234567891011

/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->SetIntField(thiz, field_MtpServer_nativeContext, (int)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/tests/DumpRenderTree/src/com/android/dumprendertree/forwarder/
DForwarder.java35 private ForwardServer server; field in Forwarder
41 public Forwarder (Socket from, Socket to, ForwardServer server) { in Forwarder() argument
42 this.server = server; in Forwarder()
45 server.register(this); in Forwarder()
100 server.unregister(Forwarder.this); in run()
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java46 private NtpTrustedTime(String server, long timeout) { in NtpTrustedTime() argument
47 if (LOGD) Log.d(TAG, "creating NtpTrustedTime using " + server); in NtpTrustedTime()
48 mServer = server; in NtpTrustedTime()
67 final String server = secureServer != null ? secureServer : defaultServer; in getInstance() local
68 sSingleton = new NtpTrustedTime(server, timeout); in getInstance()
/frameworks/base/media/libmedia/
DAudioTrack.cpp343 mNewPosition = cblk->server + mUpdatePeriod; in start()
563 cblk->server > loopStart) { in setLoop_l()
651 mCblk->server = position; in setPosition()
661 *position = mFlushed ? 0 : mCblk->server; in getPosition()
884 "user=%08x, server=%08x", this, cblk->user, cblk->server); in obtainBuffer()
1039 LOGV("Underrun user: %x, server: %x, flags %04x", cblk->user, cblk->server, cblk->flags); in processAudioBuffer()
1042 if (cblk->server == cblk->frameCount) { in processAudioBuffer()
1060 if (cblk->server >= mMarkerPosition) { in processAudioBuffer()
1068 while (cblk->server >= mNewPosition) { in processAudioBuffer()
1191 uint32_t server = cblk->server; in restoreTrack_l() local
[all …]
/frameworks/base/opengl/libs/GLES2_dbg/src/
Dserver.cpp52 struct sockaddr_in server = {}, client = {}; in StartDebugServer() local
63 server.sin_family = AF_INET; /* Internet/IP */ in StartDebugServer()
64 server.sin_addr.s_addr = htonl(INADDR_LOOPBACK); /* Incoming addr */ in StartDebugServer()
65 server.sin_port = htons(port); /* server port */ in StartDebugServer()
69 if (bind(serverSock, (struct sockaddr *) &server, in StartDebugServer()
70 sizeof(server)) < 0) { in StartDebugServer()
78 LOGD("server started on %d \n", server.sin_port); in StartDebugServer()
/frameworks/base/core/jni/
Dandroid_net_NetUtils.cpp37 const char *server,
46 const char *server,
117 char server[PROPERTY_VALUE_MAX]; in android_net_utils_runDhcpCommon() local
125 dns1, dns2, server, &lease); in android_net_utils_runDhcpCommon()
128 dns1, dns2, server, &lease); in android_net_utils_runDhcpCommon()
162 env->NewStringUTF(server)); in android_net_utils_runDhcpCommon()
/frameworks/base/services/java/
DAndroid.mk9 com/android/server/EventLogTags.logtags \
10 com/android/server/am/EventLogTags.logtags
/frameworks/base/docs/html/guide/market/billing/
Dbilling_best_practices.jd39 <h4>Perform signature verification tasks on a server</h4>
40 <p>If practical, you should perform signature verification on a remote server and not on a device.
41 Implementing the verification process on a server makes it difficult for attackers to break the
43 a remote server, be sure that the device-server handshake is secure.</p>
51 <li>Use a remote server to deliver your content.</li>
53 <p>When you deliver content from a remote server or a real-time service, you can store the unlocked
91 <p>Also, if you are performing nonce verification on a server, make sure that you generate the
92 nonces on the server.</p>
101 <p>If you are using a remote server to deliver or manage content, have your application verify the
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DBandwidthTestUtil.java81 public static String buildDownloadUrl(String server, int size, String deviceId, in buildDownloadUrl() argument
83 String downloadUrl = server + "/download?size=" + size + "&device_id=" + deviceId + in buildDownloadUrl()
126 public static boolean postFileToServer(String server, String deviceId, String timestamp, in postFileToServer() argument
131 String uri = server; in postFileToServer()
/frameworks/base/services/java/com/android/server/pm/
DPackageVerificationState.java17 package com.android.server.pm;
19 import com.android.server.pm.PackageManagerService.InstallArgs;
DPreferredActivity.java17 package com.android.server.pm;
20 import com.android.server.PreferredComponent;
DPackageVerificationResponse.java17 package com.android.server.pm;
/frameworks/base/docs/html/guide/publishing/
Dlicensing.jd42 <li><a href="#server-response-codes">Server Response Codes</a></li>
65 applications. When an application checks the licensing status, the Market server
92 on an Android-powered device query a trusted licensing server, to determine
94 the server response, the application can then allow or disallow further use of
95 the application as needed. In the service, the role of the licensing server is
97 responsible for querying the server and conditionally granting access to the
100 <h4>Application, Android Market client, and server</h4>
102 <p>The licensing service is based on the capability of the Android Market server
104 server considers a user licensed if the user is recorded to have purchased the
106 the user and determine the license status, the server requires information about
[all …]
/frameworks/base/services/java/com/android/server/accessibility/
DAccessibilityInputFilter.java17 package com.android.server.accessibility;
19 import com.android.server.wm.InputFilter;
/frameworks/base/services/java/com/android/server/
DSystemServer.java17 package com.android.server;
38 import android.server.BluetoothA2dpService;
39 import android.server.BluetoothService;
40 import android.server.search.SearchManagerService;
50 import com.android.server.accessibility.AccessibilityManagerService;
51 import com.android.server.am.ActivityManagerService;
52 import com.android.server.net.NetworkPolicyManagerService;
53 import com.android.server.net.NetworkStatsService;
54 import com.android.server.pm.PackageManagerService;
55 import com.android.server.usb.UsbService;
[all …]
DINativeDaemonConnectorCallbacks.java18 package com.android.server;
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java17 package com.android.server.pm;
19 import com.android.server.pm.UserManager;
/frameworks/base/services/java/com/android/server/am/
DThumbnailHolder.java17 package com.android.server.am;
DProcessList.java17 package com.android.server.am;
24 import com.android.server.wm.WindowManagerService;
DAppErrorResult.java17 package com.android.server.am;
DPendingThumbnailsRecord.java17 package com.android.server.am;
/frameworks/base/services/java/com/android/server/wm/
DInputApplicationHandle.java17 package com.android.server.wm;

1234567891011