Home
last modified time | relevance | path

Searched refs:client (Results 1 – 25 of 51) sorted by relevance

123

/cts/tests/apppredictionservice/src/android/apppredictionservice/cts/
DAppPredictionServiceTest.java92 AppPredictor client = createTestPredictor(context); in testCreateDestroySession() local
96 mReporter.assertActiveSession(client.getSessionId()); in testCreateDestroySession()
97 assertEquals(mReporter.getPredictionContext(client.getSessionId()), context); in testCreateDestroySession()
106 assertNotEquals(client.getSessionId(), client2.getSessionId()); in testCreateDestroySession()
109 client.destroy(); in testCreateDestroySession()
115 assertFails(() -> mReporter.assertActiveSession(client.getSessionId())); in testCreateDestroySession()
119 assertFails(() -> client.notifyAppTargetEvent(null)); in testCreateDestroySession()
120 assertFails(() -> client.notifyLaunchLocationShown(null, null)); in testCreateDestroySession()
121 assertFails(() -> client.registerPredictionUpdates(null, null)); in testCreateDestroySession()
122 assertFails(() -> client.unregisterPredictionUpdates(null)); in testCreateDestroySession()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DHttpAuthHandlerTest.java114 ProceedHttpAuthClient client = new ProceedHttpAuthClient(1, WRONG_USERNAME, WRONG_PASSWORD); in incorrectCredentialsAccessDenied() local
115 mOnUiThread.setWebViewClient(client); in incorrectCredentialsAccessDenied()
121 assertEquals(CtsTestServer.AUTH_REALM, client.realm); in incorrectCredentialsAccessDenied()
126 ProceedHttpAuthClient client = new ProceedHttpAuthClient(1, null, null); in missingCredentialsAccessDenied() local
127 mOnUiThread.setWebViewClient(client); in missingCredentialsAccessDenied()
133 assertEquals(CtsTestServer.AUTH_REALM, client.realm); in missingCredentialsAccessDenied()
138 … ProceedHttpAuthClient client = new ProceedHttpAuthClient(1, CORRECT_USERNAME, CORRECT_PASSWORD); in correctCredentialsAccessGranted() local
139 mOnUiThread.setWebViewClient(client); in correctCredentialsAccessGranted()
145 assertEquals(CtsTestServer.AUTH_REALM, client.realm); in correctCredentialsAccessGranted()
168 CancelHttpAuthClient client = new CancelHttpAuthClient(); in testCancel() local
[all …]
DWebViewRenderProcessClientTest.java122 WebViewRenderProcessClient client = new WebViewRenderProcessClient() { in testWebViewRenderProcessClientOnExecutor() local
136 mOnUiThread.setWebViewRenderProcessClient(client); in testWebViewRenderProcessClientOnExecutor()
138 mOnUiThread.setWebViewRenderProcessClient(executor, client); in testWebViewRenderProcessClientOnExecutor()
DWebViewClientTest.java504 TestClient client = new TestClient(); in testShouldInterceptRequestParams() local
505 mOnUiThread.setWebViewClient(client); in testShouldInterceptRequestParams()
514 assertNotNull(client.interceptRequest); in testShouldInterceptRequestParams()
515 assertEquals(mainUrl, client.interceptRequest.getUrl().toString()); in testShouldInterceptRequestParams()
516 assertTrue(client.interceptRequest.isForMainFrame()); in testShouldInterceptRequestParams()
518 client.interceptRequest.getMethod()); in testShouldInterceptRequestParams()
523 Map<String, String> interceptHeaders = client.interceptRequest.getRequestHeaders(); in testShouldInterceptRequestParams()
563 TestClient client = new TestClient(); in testShouldInterceptRequestResponse() local
564 mOnUiThread.setWebViewClient(client); in testShouldInterceptRequestResponse()
585 client.interceptResponse = new WebResourceResponse("text/html", "UTF-8", null); in testShouldInterceptRequestResponse()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3746/
Dpoc.cpp47 OMXClient client; in fuzzIOMXQcomVpx() local
48 if (client.connect() != OK) { in fuzzIOMXQcomVpx()
53 mOmx = client.interface(); in fuzzIOMXQcomVpx()
56 client.disconnect(); in fuzzIOMXQcomVpx()
66 client.disconnect(); in fuzzIOMXQcomVpx()
75 client.disconnect(); in fuzzIOMXQcomVpx()
86 client.disconnect(); in fuzzIOMXQcomVpx()
112 client.disconnect(); in fuzzIOMXQcomVpx()
129 client.disconnect(); in fuzzIOMXQcomVpx()
144 client.disconnect(); in fuzzIOMXQcomVpx()
/cts/suite/audio_quality/test/
DClientInterfaceTest.cpp53 ClientImpl* client = reinterpret_cast<ClientImpl*>(mClient); in TEST_F() local
54 android::sp<RemoteAudio>& audio(client->getAudio()); in TEST_F()
62 ClientImpl* client = reinterpret_cast<ClientImpl*>(mClient); in TEST_F() local
63 android::sp<RemoteAudio>& audio(client->getAudio()); in TEST_F()
81 ClientImpl* client = reinterpret_cast<ClientImpl*>(mClient); in TEST_F() local
82 android::sp<RemoteAudio>& audio(client->getAudio()); in TEST_F()
/cts/suite/audio_quality/executable/src/
Dmain.cpp115 ClientInterface* client = factory.createClientInterface(); in main() local
116 if (client == NULL) { in main()
120 if (!client->init(Settings::Instance()->getSetting(Settings::EADB))) { in main()
125 if (!client->getAudio()->getDeviceInfo(deviceInfo)) { in main()
129 delete client; // release so that it can be used in tests in main()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTestJournalProvider.java126 try (TestJournalClient client = TestJournalClient.create(activity, in putActivityCallback() argument
128 client.addCallback(callback); in putActivityCallback()
145 try (TestJournalClient client = TestJournalClient.create(context, owner)) { in putExtras() argument
148 client.putExtras(extras); in putExtras()
191 public TestJournalClient(ContentProviderClient client, String owner) { in TestJournalClient() argument
192 mClient = client; in TestJournalClient()
233 final ContentProviderClient client = context.getContentResolver() in create() local
235 if (client == null) { in create()
238 return new TestJournalClient(client, owner); in create()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapBlendModeTest.java51 BitmapBlendModeCanvasClient client = new BitmapBlendModeCanvasClient( in testClearBlendMode() local
54 createTest().addCanvasClientWithoutUsingPicture(client, true) in testClearBlendMode()
65 BitmapBlendModeCanvasClient client = new BitmapBlendModeCanvasClient( in testDstOutBlendMode() local
68 createTest().addCanvasClientWithoutUsingPicture(client, true) in testDstOutBlendMode()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testclasses/
DBitmapBlendModeTest.java52 BitmapBlendModeCanvasClient client = new BitmapBlendModeCanvasClient( in testClearBlendMode() local
55 createTest().addCanvasClientWithoutUsingPicture(client, true) in testClearBlendMode()
66 BitmapBlendModeCanvasClient client = new BitmapBlendModeCanvasClient( in testDstOutBlendMode() local
69 createTest().addCanvasClientWithoutUsingPicture(client, true) in testDstOutBlendMode()
/cts/tests/tests/net/src/android/net/http/cts/
DApacheHttpClientTest.java19 import org.apache.http.client.ClientProtocolException;
20 import org.apache.http.client.HttpClient;
21 import org.apache.http.client.methods.HttpGet;
22 import org.apache.http.impl.client.DefaultHttpClient;
/cts/tests/framework/base/windowmanager/app_base/src/android/server/wm/app/
DAbstractLifecycleLogActivity.java102 withTestJournalClient(client -> { in dumpConfiguration()
105 client.putExtras(extras); in dumpConfiguration()
113 runWhenIdle(() -> withTestJournalClient(client -> { in dumpConfigInfo()
116 client.setLastConfigInfo(configInfo); in dumpConfigInfo()
DTestActivity.java82 withTestJournalClient(client -> { in dumpAssetSeqNumber()
85 client.putExtras(extras); in dumpAssetSeqNumber()
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DLifecycleLog.java134 LifecycleLogClient(ContentProviderClient client, Activity owner) { in LifecycleLogClient() argument
135 mClient = client; in LifecycleLogClient()
156 final ContentProviderClient client = owner.getContentResolver() in create() local
158 if (client == null) { in create()
161 return new LifecycleLogClient(client, owner); in create()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerStartShortcutTest.java51 private List<Intent> launchShortcutAndGetIntents(Context launcher, Context client, in launchShortcutAndGetIntents() argument
53 return launchShortcutAndGetIntents(launcher, client, id, expectedNumIntents, null, null, in launchShortcutAndGetIntents()
57 private List<Intent> launchShortcutAndGetIntents(Context launcher, Context client, in launchShortcutAndGetIntents() argument
64 getLauncherApps().startShortcut(client.getPackageName(), id, rect, options, in launchShortcutAndGetIntents()
74 private void assertShortcutStarts(Context launcher, Context client, String id, in assertShortcutStarts() argument
76 final List<Intent> launched = launchShortcutAndGetIntents(launcher, client, id, 1, in assertShortcutStarts()
81 private void assertShortcutCantStart(Context launcher, Context client, String id, in assertShortcutCantStart() argument
86 getLauncherApps().startShortcut(client.getPackageName(), id, null, null, in assertShortcutCantStart()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0334/
Dpoc.c26 __u32 client; member
35 open_args.client = 0x21; in main()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp141 static bool checkMessage(sp<InputChannel> server, sp<InputChannel> client, int type) { in checkMessage() argument
157 result = client->receiveMessage(&clientMsg); in checkMessage()
193 sp<InputChannel> server, client; in main() local
195 status_t result = InputChannel::openInputChannelPair("channel name", server, client); in main()
203 bool success = checkMessage(server, client, type); in main()
/cts/suite/audio_quality/
DAndroid.mk35 $(hide) mkdir -p $(CTS_AUDIO_INSTALL_DIR)/client
37 $(CTS_AUDIO_INSTALL_DIR)/client
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DVpnTest.java380 Socket client = new Socket(); in checkTcpReflection() local
382 client.connect(new InetSocketAddress(toAddr, listen.getLocalPort()), SOCKET_TIMEOUT_MS); in checkTcpReflection()
385 closeQuietly(client); in checkTcpReflection()
406 checkConnectionOwnerUidTcp(client); in checkTcpReflection()
409 assertEquals(expectedFrom, client.getLocalAddress().getHostAddress()); in checkTcpReflection()
412 new InetSocketAddress(toAddr, client.getLocalPort()), in checkTcpReflection()
416 client.getRemoteSocketAddress()); in checkTcpReflection()
426 client.setSendBufferSize(LENGTH * 2); in checkTcpReflection()
427 client.setSoTimeout(SOCKET_TIMEOUT_MS); in checkTcpReflection()
431 writeAndCheckData(client.getOutputStream(), server.getInputStream(), data); in checkTcpReflection()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6732/
Dpoc.c62 __u32 client; member
98 open_c.client = HOST1X_CLASS_VIC; in prepare()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6734/
Dpoc.c62 __u32 client; member
103 open_c.client = HOST1X_CLASS_VIC; in prepare()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6735/
Dpoc.c63 __u32 client; member
102 open_c.client = HOST1X_CLASS_VIC; in prepare()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6733/
Dpoc.c61 __u32 client; member
98 open_c.client = HOST1X_CLASS_VIC; in prepare()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6731/
Dpoc.c62 __u32 client; member
106 open_c.client = HOST1X_CLASS_VIC; in prepare()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6730/
Dpoc.c62 __u32 client; member
106 open_c.client = HOST1X_CLASS_VIC; in prepare()

123