Home
last modified time | relevance | path

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

123

/cts/tests/tests/webkit/src/android/webkit/cts/
DWebBackForwardListTest.java66 CtsTestServer server = new CtsTestServer(getActivity(), false); in testGetCurrentItem() local
68 String url1 = server.getAssetUrl(TestHtmlConstants.HTML_URL1); in testGetCurrentItem()
69 String url2 = server.getAssetUrl(TestHtmlConstants.HTML_URL2); in testGetCurrentItem()
70 String url3 = server.getAssetUrl(TestHtmlConstants.HTML_URL3); in testGetCurrentItem()
81 server.shutdown(); in testGetCurrentItem()
DCookieManagerTest.java100 CtsTestServer server = new CtsTestServer(getActivity(), false); in testAcceptCookie() local
101 String url = server.getCookieUrl("conquest.html"); in testAcceptCookie()
110 url = server.getCookieUrl("war.html"); in testAcceptCookie()
122 url = server.getCookieUrl("famine.html"); in testAcceptCookie()
132 url = server.getCookieUrl("death.html"); in testAcceptCookie()
326 CtsTestServer server = null; in testThirdPartyCookie() local
338 server = new CtsTestServer(getActivity()); in testThirdPartyCookie()
354 server.getSetCookieUrl("cookie_1.js", "test1", "value1")); in testThirdPartyCookie()
356 String url = server.getLinkedScriptUrl("/content_1.html", cookieUrl); in testThirdPartyCookie()
366 server.getSetCookieUrl("/cookie_2.js", "test2", "value2")); in testThirdPartyCookie()
[all …]
/cts/tests/tests/net/src/android/net/http/cts/
DHttpResponseCacheTest.java41 private MockWebServer server = new MockWebServer(); field in HttpResponseCacheTest
54 server.shutdown(); in tearDown()
130 server.enqueue(new MockResponse() in testStatisticsTracking()
133 server.play(); in testStatisticsTracking()
135 URLConnection c1 = server.getUrl("/").openConnection(); in testStatisticsTracking()
144 URLConnection c2 = server.getUrl("/").openConnection(); in testStatisticsTracking()
147 URLConnection c3 = server.getUrl("/").openConnection(); in testStatisticsTracking()
/cts/tests/tests/media/src/android/media/cts/
DWifiStatus.java104 private boolean pingTest(String server) { in pingTest() argument
106 if (server == null || server.isEmpty()) { in pingTest()
114 Log.d(TAG, "Try pinging " + server); in pingTest()
116 Process p = Runtime.getRuntime().exec("ping -c 5 -w 20 " + server); in pingTest()
/cts/hostsidetests/services/activitymanager/src/android/server/cts/
DActivityAndWindowManagersState.java17 package android.server.cts;
23 import android.server.cts.ActivityManagerState.ActivityStack;
24 import android.server.cts.ActivityManagerState.ActivityTask;
25 import android.server.cts.WindowManagerState.WindowStack;
26 import android.server.cts.WindowManagerState.WindowTask;
33 import static android.server.cts.ActivityManagerTestBase.FREEFORM_WORKSPACE_STACK_ID;
34 import static android.server.cts.ActivityManagerTestBase.PINNED_STACK_ID;
35 import static android.server.cts.StateLogger.log;
DActivityManagerManifestLayoutTests.java17 package android.server.cts;
28 import android.server.cts.WindowManagerState.WindowState;
29 import android.server.cts.WindowManagerState.Display;
31 import static android.server.cts.ActivityAndWindowManagersState.dpToPx;
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DVpnTest.java385 Socket server = null; in checkTcpReflection() local
389 server = listen.accept(); in checkTcpReflection()
393 assertEquals(expectedFrom, server.getLocalAddress().getHostAddress()); in checkTcpReflection()
396 server.getRemoteSocketAddress()); in checkTcpReflection()
398 new InetSocketAddress(toAddr, server.getLocalPort()), in checkTcpReflection()
408 server.setReceiveBufferSize(LENGTH * 2); in checkTcpReflection()
411 server.setSoTimeout(SOCKET_TIMEOUT_MS); in checkTcpReflection()
414 writeAndCheckData(client.getOutputStream(), server.getInputStream(), data); in checkTcpReflection()
415 writeAndCheckData(server.getOutputStream(), client.getInputStream(), data); in checkTcpReflection()
419 closeQuietly(server); in checkTcpReflection()
/cts/hostsidetests/services/activitymanager/app/src/android/server/app/
DBottomLeftLayoutActivity.java17 package android.server.app;
DBottomRightLayoutActivity.java17 package android.server.app;
DDockedActivity.java17 package android.server.app;
DPipActivity.java17 package android.server.app;
DSingleInstanceActivity.java17 package android.server.app;
DTopLeftLayoutActivity.java17 package android.server.app;
DTopRightLayoutActivity.java17 package android.server.app;
DTranslucentActivity.java17 package android.server.app;
DSingleTaskActivity.java17 package android.server.app;
DAutoEnterPipActivity.java17 package android.server.app;
DLaunchIntoPinnedStackPipActivity.java17 package android.server.app;
DNoRelaunchActivity.java17 package android.server.app;
DNonResizeableActivity.java17 package android.server.app;
DTestActivity.java17 package android.server.app;
DLaunchPipOnPipActivity.java17 package android.server.app;
DVisibleBehindActivity.java17 package android.server.app;
DSlowCreateActivity.java17 package android.server.app;
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/
DCreatePrivateDataTest.java200 final ServerSocket server = new ServerSocket(0); in createTrafficStatsWithTags() local
205 Socket socket = new Socket("localhost", server.getLocalPort()); in createTrafficStatsWithTags()
226 Socket socket = server.accept(); in createTrafficStatsWithTags()
236 server.close(); in createTrafficStatsWithTags()

123