Home
last modified time | relevance | path

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

123

/cts/tests/tests/appop/aidl/AppOpsUserService/src/android/app/appops/cts/
DIAppOpsUserService.aidl22 void disableCollectorAndCallSyncOpsWhichWillNotBeCollected(in IAppOpsUserClient client); in disableCollectorAndCallSyncOpsWhichWillNotBeCollected() argument
23 void disableCollectorAndCallASyncOpsWhichWillBeCollected(in IAppOpsUserClient client); in disableCollectorAndCallASyncOpsWhichWillBeCollected() argument
24 void callApiThatNotesSyncOpAndCheckLog(in IAppOpsUserClient client); in callApiThatNotesSyncOpAndCheckLog() argument
25 void callApiThatNotesSyncOpAndClearLog(in IAppOpsUserClient client); in callApiThatNotesSyncOpAndClearLog() argument
26 void callApiThatNotesSyncOpWithAttributionAndCheckLog(in IAppOpsUserClient client); in callApiThatNotesSyncOpWithAttributionAndCheckLog() argument
27 void callApiThatCallsBackIntoServiceAndCheckLog(in IAppOpsUserClient client); in callApiThatCallsBackIntoServiceAndCheckLog() argument
28 void callApiThatNotesSyncOpFromNativeCodeAndCheckLog(in IAppOpsUserClient client); in callApiThatNotesSyncOpFromNativeCodeAndCheckLog() argument
29 void callApiThatNotesSyncOpFromNativeCodeAndCheckMessage(in IAppOpsUserClient client); in callApiThatNotesSyncOpFromNativeCodeAndCheckMessage() argument
30 void callApiThatNotesSyncOpAndCheckStackTrace(in IAppOpsUserClient client); in callApiThatNotesSyncOpAndCheckStackTrace() argument
31 void callApiThatNotesNonPermissionSyncOpAndCheckLog(in IAppOpsUserClient client); in callApiThatNotesNonPermissionSyncOpAndCheckLog() argument
[all …]
/cts/tests/tests/appop/AppThatUsesAppOps/src/android/app/appops/cts/appthatusesappops/
DAppOpsUserService.kt98 client: IAppOpsUserClient in noteSyncOpFromNativeCode()
103 client.noteSyncOp() in noteSyncOpFromNativeCode()
119 client: IAppOpsUserClient in noteSyncOpFromNativeCode()
124 client.noteAsyncOp() in noteSyncOpFromNativeCode()
136 override fun callApiThatNotesSyncOpAndCheckLog(client: IAppOpsUserClient) { in noteSyncOpFromNativeCode()
138 client.noteSyncOp() in noteSyncOpFromNativeCode()
149 override fun callApiThatNotesSyncOpAndClearLog(client: IAppOpsUserClient) { in noteSyncOpFromNativeCode()
151 client.noteSyncOp() in noteSyncOpFromNativeCode()
164 client: IAppOpsUserClient in noteSyncOpFromNativeCode()
167 client.noteSyncOpWithAttribution(TEST_ATTRIBUTION_TAG) in noteSyncOpFromNativeCode()
[all …]
/cts/tests/apppredictionservice/src/android/apppredictionservice/cts/
DAppPredictionServiceTest.java98 AppPredictor client = createTestPredictor(context); in testCreateDestroySession() local
102 mReporter.assertActiveSession(client.getSessionId()); in testCreateDestroySession()
103 assertEquals(mReporter.getPredictionContext(client.getSessionId()), context); in testCreateDestroySession()
112 assertNotEquals(client.getSessionId(), client2.getSessionId()); in testCreateDestroySession()
115 client.destroy(); in testCreateDestroySession()
121 assertFails(() -> mReporter.assertActiveSession(client.getSessionId())); in testCreateDestroySession()
125 assertFails(() -> client.notifyAppTargetEvent(null)); in testCreateDestroySession()
126 assertFails(() -> client.notifyLaunchLocationShown(null, null)); in testCreateDestroySession()
127 assertFails(() -> client.registerPredictionUpdates(null, null)); in testCreateDestroySession()
128 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 …]
DWebViewClientTest.java509 TestClient client = new TestClient(); in testShouldInterceptRequestParams() local
510 mOnUiThread.setWebViewClient(client); in testShouldInterceptRequestParams()
519 assertNotNull(client.interceptRequest); in testShouldInterceptRequestParams()
520 assertEquals(mainUrl, client.interceptRequest.getUrl().toString()); in testShouldInterceptRequestParams()
521 assertTrue(client.interceptRequest.isForMainFrame()); in testShouldInterceptRequestParams()
523 client.interceptRequest.getMethod()); in testShouldInterceptRequestParams()
528 Map<String, String> interceptHeaders = client.interceptRequest.getRequestHeaders(); in testShouldInterceptRequestParams()
568 TestClient client = new TestClient(); in testShouldInterceptRequestResponse() local
569 mOnUiThread.setWebViewClient(client); in testShouldInterceptRequestResponse()
590 client.interceptResponse = new WebResourceResponse("text/html", "UTF-8", null); in testShouldInterceptRequestResponse()
[all …]
DWebViewRenderProcessClientTest.java124 WebViewRenderProcessClient client = new WebViewRenderProcessClient() { in testWebViewRenderProcessClientOnExecutor() local
138 mOnUiThread.setWebViewRenderProcessClient(client); in testWebViewRenderProcessClientOnExecutor()
140 mOnUiThread.setWebViewRenderProcessClient(executor, client); in testWebViewRenderProcessClientOnExecutor()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2482/
Dpoc.cpp59 OMXClient client; in fuzzIOMXSetParameterChangeCount() local
60 if (client.connect() != OK) { in fuzzIOMXSetParameterChangeCount()
65 mOmx = client.interface(); in fuzzIOMXSetParameterChangeCount()
68 client.disconnect(); in fuzzIOMXSetParameterChangeCount()
78 client.disconnect(); in fuzzIOMXSetParameterChangeCount()
88 client.disconnect(); in fuzzIOMXSetParameterChangeCount()
98 client.disconnect(); in fuzzIOMXSetParameterChangeCount()
119 client.disconnect(); in fuzzIOMXSetParameterChangeCount()
132 client.disconnect(); in fuzzIOMXSetParameterChangeCount()
144 client.disconnect(); in fuzzIOMXSetParameterChangeCount()
/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/tests/tests/wifi/src/android/net/wifi/nl80211/cts/
DNativeWifiClientTest.java53 NativeWifiClient client = new NativeWifiClient(MacAddress.fromBytes(TEST_MAC)); in testGetters() local
55 assertThat(client.getMacAddress().toByteArray()).isEqualTo(TEST_MAC); in testGetters()
60 NativeWifiClient client = new NativeWifiClient(MacAddress.fromBytes(TEST_MAC)); in canSerializeAndDeserialize() local
63 client.writeToParcel(parcel, 0); in canSerializeAndDeserialize()
69 assertThat(clientDeserialized).isEqualTo(client); in canSerializeAndDeserialize()
70 assertThat(clientDeserialized.hashCode()).isEqualTo(client.hashCode()); in canSerializeAndDeserialize()
75 NativeWifiClient client = new NativeWifiClient(MacAddress.fromBytes(TEST_MAC)); in testEquals() local
79 assertThat(client2).isNotEqualTo(client); in testEquals()
/cts/hostsidetests/hdmicec/app/src/android/hdmicec/app/
DHdmiControlManagerHelper.java80 HdmiTvClient client = mHdmiControlManager.getTvClient(); in deviceSelect() local
81 if (client == null) { in deviceSelect()
86 client.deviceSelect( in deviceSelect()
101 HdmiPlaybackClient client = mHdmiControlManager.getPlaybackClient(); in initiateOtp() local
102 if (client == null) { in initiateOtp()
107 client.oneTouchPlay( in initiateOtp()
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/
DQuickAccessWalletClientTest.java110 QuickAccessWalletClient client = QuickAccessWalletClient.create(mContext); in testIsWalletServiceAvailable_returnsFalseIfNoServiceAvailable() local
111 assertThat(client.isWalletServiceAvailable()).isFalse(); in testIsWalletServiceAvailable_returnsFalseIfNoServiceAvailable()
116 QuickAccessWalletClient client = QuickAccessWalletClient.create(mContext); in testIsWalletFeatureAvailableWhenDeviceLocked_checksSecureSettings() local
122 assertThat(client.isWalletFeatureAvailableWhenDeviceLocked()).isTrue(); in testIsWalletFeatureAvailableWhenDeviceLocked_checksSecureSettings()
125 assertThat(client.isWalletFeatureAvailableWhenDeviceLocked()).isFalse(); in testIsWalletFeatureAvailableWhenDeviceLocked_checksSecureSettings()
134 QuickAccessWalletClient client = QuickAccessWalletClient.create(mContext); in testGetWalletCards_success() local
135 assertThat(client.isWalletServiceAvailable()).isTrue(); in testGetWalletCards_success()
138 client.getWalletCards(GET_WALLET_CARDS_REQUEST, callback); in testGetWalletCards_success()
150 QuickAccessWalletClient client = QuickAccessWalletClient.create(mContext); in testGetWalletCards_failsIfNoServiceAvailable() local
151 assertThat(client.isWalletServiceAvailable()).isFalse(); in testGetWalletCards_failsIfNoServiceAvailable()
[all …]
/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/tests/inputmethod/mockspellchecker/src/com/android/cts/mockspellchecker/
DMockSpellCheckerClient.kt41 val client = MockSpellCheckerClient(context) in create() constant
42 client.updateConfiguration(configuration) in create()
43 return client in create()
/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/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/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/framework/base/windowmanager/app_base/src/android/server/wm/app/
DAbstractLifecycleLogActivity.java98 withTestJournalClient(client -> { in dumpConfiguration()
101 client.putExtras(extras); in dumpConfiguration()
109 runWhenIdle(() -> withTestJournalClient(client -> { in dumpConfigInfo()
112 client.setLastConfigInfo(configInfo); in dumpConfigInfo()
/cts/tests/tests/apache-http/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/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/CVE-2016-3747/
Dpoc.cpp63 OMXClient client; in fuzzIOMXQcomEnc() local
64 if (client.connect() != OK) { in fuzzIOMXQcomEnc()
69 mOmx = client.interface(); in fuzzIOMXQcomEnc()
72 client.disconnect(); in fuzzIOMXQcomEnc()
/cts/suite/audio_quality/
DAndroid.mk35 $(hide) mkdir -p $(CTS_AUDIO_INSTALL_DIR)/client
37 $(CTS_AUDIO_INSTALL_DIR)/client
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DLandscapeOrientationActivity.java41 withTestJournalClient(client -> { in onCreate()
57 client.putExtras(extras); in onCreate()

123