Home
last modified time | relevance | path

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

12

/packages/apps/Nfc/tests/src/com/android/nfc/snep/
DSnepDefaultClientTests.java47 SnepClient client = new SnepClient(); in testPutSmallToDefaultServer() local
48 client.connect(); in testPutSmallToDefaultServer()
49 client.put(getSmallNdef()); in testPutSmallToDefaultServer()
50 client.close(); in testPutSmallToDefaultServer()
54 SnepClient client = new SnepClient(); in testPutLargeToDefaultServer() local
55 client.connect(); in testPutLargeToDefaultServer()
56 client.put(getLargeNdef()); in testPutLargeToDefaultServer()
57 client.close(); in testPutLargeToDefaultServer()
61 SnepClient client = new SnepClient(); in testPutTwiceToDefaultServer() local
62 client.connect(); in testPutTwiceToDefaultServer()
[all …]
DSnepCustomClientTests.java47 SnepClient client = getSnepClient(); in testPutSmall() local
48 client.connect(); in testPutSmall()
49 client.put(getSmallNdef()); in testPutSmall()
50 client.close(); in testPutSmall()
54 SnepClient client = getSnepClient(); in testPutLarge() local
55 client.connect(); in testPutLarge()
56 client.put(getLargeNdef()); in testPutLarge()
57 client.close(); in testPutLarge()
61 SnepClient client = getSnepClient(); in testPutTwice() local
62 client.connect(); in testPutTwice()
[all …]
DSnepValidationClientTests.java53 SnepClient client = getSnepClient(); in testNonFragmented() local
56 client.connect(); in testNonFragmented()
58 client.put(msg); in testNonFragmented()
61 byte[] responseBytes = client.get(msg).getNdefMessage().toByteArray(); in testNonFragmented()
69 client.close(); in testNonFragmented()
78 SnepClient client = getSnepClient(); in testFragmented() local
81 client.connect(); in testFragmented()
83 client.put(msg); in testFragmented()
86 byte[] responseBytes = client.get(msg).getNdefMessage().toByteArray(); in testFragmented()
93 client.close(); in testFragmented()
[all …]
DSnepBasicTests.java41 final SnepMessenger client = new SnepMessenger(true, clientSocket, MIU); in testGetSmallNdef() local
57 client.sendMessage(SnepMessage.getGetRequest(ACCEPTABLE_LENGTH, getSmallNdef())); in testGetSmallNdef()
58 response = client.getMessage(); in testGetSmallNdef()
72 final SnepMessenger client = new SnepMessenger(true, clientSocket, MIU); in testGetLargeNdef() local
88 client.sendMessage(SnepMessage.getGetRequest(ACCEPTABLE_LENGTH, getNdef(900))); in testGetLargeNdef()
89 response = client.getMessage(); in testGetLargeNdef()
103 final SnepMessenger client = new SnepMessenger(true, clientSocket, MIU); in testGetExcessiveNdef() local
119 client.sendMessage(SnepMessage.getGetRequest(10, getSmallNdef())); in testGetExcessiveNdef()
120 response = client.getMessage(); in testGetExcessiveNdef()
134 final SnepMessenger client = new SnepMessenger(true, clientSocket, MIU); in testPutSmallNdef() local
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DHttpClientFactory.java25 import org.apache.http.client.HttpClient;
62 HttpClient client = (HttpClient) instance; in newHttpClient() local
65 HttpParams params = client.getParams(); in newHttpClient()
75 return client; in newHttpClient()
90 public static void close(HttpClient client) { in close() argument
94 Class<?> clazz = client.getClass(); in close()
96 method.invoke(client, (Object[]) null); in close()
/packages/apps/Browser/src/com/android/browser/
DDownloadTouchIcon.java22 import org.apache.http.client.methods.HttpGet;
23 import org.apache.http.client.params.HttpClientParams;
113 AndroidHttpClient client = null; in doInBackground() local
117 client = AndroidHttpClient.newInstance(mUserAgent); in doInBackground()
120 ConnRouteParams.setDefaultProxy(client.getParams(), httpHost); in doInBackground()
126 HttpClientParams.setRedirecting(client.getParams(), true); in doInBackground()
128 HttpResponse response = client.execute(request); in doInBackground()
150 if (client != null) { in doInBackground()
151 client.close(); in doInBackground()
DFetchUrlMimeType.java22 import org.apache.http.client.methods.HttpHead;
69 AndroidHttpClient client = AndroidHttpClient.newInstance(mUserAgent); in run() local
74 ConnRouteParams.setDefaultProxy(client.getParams(), httpHost); in run()
78 client.close(); in run()
91 response = client.execute(request); in run()
114 client.close(); in run()
DGoogleAccountLogin.java40 import org.apache.http.client.methods.HttpPost;
112 AndroidHttpClient client = AndroidHttpClient.newInstance(mUserAgent); in run() local
117 HttpResponse response = client.execute(request); in run()
150 client.close(); in run()
/packages/apps/Mms/src/com/android/mms/transaction/
DHttpUtils.java32 import org.apache.http.client.methods.HttpGet;
33 import org.apache.http.client.methods.HttpPost;
115 AndroidHttpClient client = null; in httpConnection() local
124 client = createHttpClient(context); in httpConnection()
148 HttpParams params = client.getParams(); in httpConnection()
202 HttpResponse response = client.execute(target, req); in httpConnection()
285 if (client != null) { in httpConnection()
286 client.close(); in httpConnection()
303 AndroidHttpClient client = AndroidHttpClient.newInstance(userAgent, context); in createHttpClient() local
304 HttpParams params = client.getParams(); in createHttpClient()
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DEasResponse.java26 import org.apache.http.client.HttpClient;
27 import org.apache.http.client.methods.HttpUriRequest;
63 EmailClientConnectionManager connManager, HttpClient client, HttpUriRequest request) in fromHttpRequest() argument
67 HttpResponse response = client.execute(request); in fromHttpRequest()
DEasSyncService.java82 import org.apache.http.client.HttpClient;
83 import org.apache.http.client.methods.HttpOptions;
84 import org.apache.http.client.methods.HttpPost;
85 import org.apache.http.client.methods.HttpRequestBase;
88 import org.apache.http.impl.client.DefaultHttpClient;
623 private EasResponse postAutodiscover(HttpClient client, HttpPost post, boolean canRetry) in postAutodiscover() argument
626 EasResponse resp = executePostWithTimeout(client, post, COMMAND_TIMEOUT); in postAutodiscover()
633 return executePostWithTimeout(client, post, COMMAND_TIMEOUT); in postAutodiscover()
646 return postAutodiscover(client, post, false); in postAutodiscover()
729 HttpClient client = getHttpClient(COMMAND_TIMEOUT); in tryAutodiscover() local
[all …]
/packages/apps/Nfc/tests/src/com/android/nfc/
DMockLlcpSocket.java71 public static void bind(MockLlcpSocket client, MockLlcpSocket server) { in bind() argument
72 client.mPairedSocket = server; in bind()
73 server.mPairedSocket = client; in bind()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java40 import org.apache.http.client.methods.HttpGet;
158 AndroidHttpClient client = null; in runInternal() local
177 client = AndroidHttpClient.newInstance(userAgent(), mContext); in runInternal()
189 ConnRouteParams.setDefaultProxy(client.getParams(), in runInternal()
193 executeDownload(state, client, request); in runInternal()
228 if (client != null) { in runInternal()
229 client.close(); in runInternal()
230 client = null; in runInternal()
251 private void executeDownload(State state, AndroidHttpClient client, HttpGet request) in executeDownload() argument
269 HttpResponse response = sendRequest(state, client, request); in executeDownload()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserBinaryDictionary.java200 final ContentProviderClient client = cr.acquireContentProviderClient(Words.CONTENT_URI); in isEnabled() local
201 if (client != null) { in isEnabled()
202 client.release(); in isEnabled()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DVCardService.java377 final CustomMediaScannerConnectionClient client = in updateMediaScanner() local
379 mRemainingScannerConnections.add(client); in updateMediaScanner()
380 client.start(); in updateMediaScanner()
384 CustomMediaScannerConnectionClient client) { in removeConnectionClient() argument
388 mRemainingScannerConnections.remove(client); in removeConnectionClient()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiStatusTest.java22 import org.apache.http.client.HttpClient;
23 import org.apache.http.client.methods.HttpGet;
24 import org.apache.http.impl.client.DefaultHttpClient;
391 HttpClient client = new DefaultHttpClient(); in httpClientTest() local
395 HttpResponse response = client.execute(request); in httpClientTest()
/packages/apps/Camera/src/com/android/camera/ui/
DRenderOverlay.java130 for (Renderer client : mTouchClients) { in onTouchEvent()
131 res |= client.onTouchEvent(evt); in onTouchEvent()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/
DEasSyncServiceTests.java28 import org.apache.http.client.methods.HttpPost;
29 import org.apache.http.client.methods.HttpRequestBase;
/packages/apps/Exchange/tests/src/com/android/exchange/
DEasSyncServiceTests.java28 import org.apache.http.client.methods.HttpPost;
29 import org.apache.http.client.methods.HttpRequestBase;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSuggestClient.java27 import org.apache.http.client.HttpClient;
28 import org.apache.http.client.methods.HttpGet;
/packages/apps/Browser/src/com/android/browser/search/
DOpenSearchSearchEngine.java21 import org.apache.http.client.HttpClient;
22 import org.apache.http.client.methods.HttpGet;
/packages/apps/Nfc/nci/jni/
DPeerToPeer.cpp512 sp<P2pClient> client = NULL; in createClient() local
517 mClients [i] = client = new P2pClient(); in createClient()
527 if (client == NULL) in createClient()
533 ALOGD ("%s: pClient: 0x%p assigned for client jniHandle: %u", fn, client.get(), jniHandle); in createClient()
543 …ALOGD ("%s: exit; new client jniHandle: %u NFA Handle: 0x%04x", fn, jniHandle, client->mClientCo… in createClient()
548 …ALOGE ("%s: FAILED; new client jniHandle: %u NFA Handle: 0x%04x", fn, jniHandle, client->mClient… in createClient()
/packages/apps/Settings/src/com/android/settings/
DRadioInfo.java66 import org.apache.http.client.HttpClient;
67 import org.apache.http.client.methods.HttpGet;
68 import org.apache.http.impl.client.DefaultHttpClient;
735 HttpClient client = new DefaultHttpClient(); in httpClientTest() local
738 HttpResponse response = client.execute(request); in httpClientTest()
/packages/experimental/StrictModeTest/src/com/android/strictmodetest/
DStrictModeActivity.java60 import org.apache.http.client.methods.HttpUriRequest;
61 import org.apache.http.client.methods.HttpGet;
62 import org.apache.http.impl.client.DefaultHttpClient;
/packages/apps/Settings/src/com/android/settings/applications/
DRunningState.java1015 ProcessItem client = mServiceProcessesByPid.get(clientPid); in update() local
1016 if (client == null) { in update()
1017 client = mRunningProcesses.get(clientPid); in update()
1019 if (client != null) { in update()
1020 client.mDependentProcesses.put(proc.mPid, proc); in update()

12