Searched refs:client (Results 1 - 25 of 60) sorted by relevance

123

/packages/apps/Nfc/tests/src/com/android/nfc/snep/
H A DSnepCustomClientTests.java47 SnepClient client = getSnepClient();
48 client.connect();
49 client.put(getSmallNdef());
50 client.close();
54 SnepClient client = getSnepClient();
55 client.connect();
56 client.put(getLargeNdef());
57 client.close();
61 SnepClient client = getSnepClient();
62 client
[all...]
H A DSnepDefaultClientTests.java47 SnepClient client = new SnepClient();
48 client.connect();
49 client.put(getSmallNdef());
50 client.close();
54 SnepClient client = new SnepClient();
55 client.connect();
56 client.put(getLargeNdef());
57 client.close();
61 SnepClient client = new SnepClient();
62 client
[all...]
H A DSnepValidationClientTests.java53 SnepClient client = getSnepClient();
56 client.connect();
58 client.put(msg);
61 byte[] responseBytes = client.get(msg).getNdefMessage().toByteArray();
68 Log.d(TAG, "Closing client.");
69 client.close();
78 SnepClient client = getSnepClient();
81 client.connect();
83 client.put(msg);
86 byte[] responseBytes = client
[all...]
H A DSnepBasicTests.java41 final SnepMessenger client = new SnepMessenger(true, clientSocket, MIU);
57 client.sendMessage(SnepMessage.getGetRequest(ACCEPTABLE_LENGTH, getSmallNdef()));
58 response = client.getMessage();
72 final SnepMessenger client = new SnepMessenger(true, clientSocket, MIU);
88 client.sendMessage(SnepMessage.getGetRequest(ACCEPTABLE_LENGTH, getNdef(900)));
89 response = client.getMessage();
103 final SnepMessenger client = new SnepMessenger(true, clientSocket, MIU);
119 client.sendMessage(SnepMessage.getGetRequest(10, getSmallNdef()));
120 response = client.getMessage();
134 final SnepMessenger client
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DDirectoryResult.java33 ContentProviderClient client; field in class:DirectoryResult
38 if (client != null && doc.isInArchive()) {
39 ArchivesProvider.releaseArchive(client, doc.derivedUri);
42 client = null;
H A DDocumentsAccess.java91 try(final ContentProviderClient client = DocumentsApplication
97 try (final Cursor cursor = client.query(uri, null, null, null, null)) {
125 try (final ContentProviderClient client = DocumentsApplication
127 return DocumentsContract.findDocumentPath(client, docUri);
134 try (ContentProviderClient client = DocumentsApplication.acquireUnstableProviderOrThrow(
137 client, parentDoc.derivedUri, mimeType, displayName);
H A DDocumentsApplication.java55 final ContentProviderClient client = resolver.acquireUnstableContentProviderClient(
57 if (client == null) {
60 client.setDetectNotResponding(PROVIDER_ANR_TIMEOUT);
61 return client;
H A DRefreshTask.java93 ContentProviderClient client = null;
95 client = DocumentsApplication.acquireUnstableProviderOrThrow(resolver, authority);
96 refreshSupported = client.refresh(mDoc.derivedUri, null, mSignal);
100 ContentProviderClient.releaseQuietly(client);
H A DDirectoryLoader.java102 ContentProviderClient client = null;
105 client = DocumentsApplication.acquireUnstableProviderOrThrow(resolver, authority);
107 ArchivesProvider.acquireArchive(client, mUri);
109 result.client = client;
120 cursor = client.query(mUri, null, queryArgs, mSignal);
122 cursor = client.query(
156 ContentProviderClient.releaseQuietly(client);
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
H A DScanManager.java155 for (ScanClient client : mBatchClients) {
156 if (client.settings.getScanResultType() == ScanSettings.SCAN_RESULT_TYPE_FULL) {
157 fullBatchClients.add(client);
163 void startScan(ScanClient client) { argument
164 sendMessage(MSG_START_BLE_SCAN, client);
167 void stopScan(ScanClient client) { argument
168 sendMessage(MSG_STOP_BLE_SCAN, client);
171 void flushBatchScanResults(ScanClient client) { argument
172 sendMessage(MSG_FLUSH_BATCH_RESULTS, client);
183 private void sendMessage(int what, ScanClient client) { argument
224 handleStartScan(ScanClient client) argument
257 handleStopScan(ScanClient client) argument
280 handleFlushBatchResults(ScanClient client) argument
288 isBatchClient(ScanClient client) argument
297 isScanSupported(ScanClient client) argument
495 startRegularScan(ScanClient client) argument
519 startBatchScan(ScanClient client) argument
530 isExemptFromScanDowngrade(ScanClient client) argument
536 isOpportunisticScanClient(ScanClient client) argument
540 isFirstMatchScanClient(ScanClient client) argument
544 resetBatchScan(ScanClient client) argument
656 stopRegularScan(ScanClient client) argument
683 regularScanTimeout(ScanClient client) argument
700 setOpportunisticScanClient(ScanClient client) argument
721 stopBatchScan(ScanClient client) argument
769 configureScanFilters(ScanClient client) argument
832 shouldAddAllPassFilterToController(ScanClient client, int deliveryMode) argument
903 shouldUseAllPassFilter(ScanClient client) argument
971 configureFilterParamter(int scannerId, ScanClient client, int featureSelection, int filterIndex, int numOfTrackingEntries) argument
991 getDeliveryMode(ScanClient client) argument
[all...]
/packages/services/Car/evs/manager/
H A DHalCamera.cpp39 // Create the client camera interface object
40 sp<VirtualCamera> client = new VirtualCamera(this); local
41 if (client == nullptr) {
42 ALOGE("Failed to create client camera object");
47 if (!changeFramesInFlight(client->getAllowedBuffers())) {
48 // Gah! We couldn't get enough buffers, so we can't support this client
49 // Null the pointer, dropping our reference, thus destroying the client object
50 client = nullptr;
54 // Add this client to our ownership list via weak pointer
55 mClients.push_back(client);
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadDrmHelper.java66 final DrmManagerClient client = new DrmManagerClient(context);
69 if (client.canHandle(rawFile, null)) {
70 return client.getOriginalMimeType(rawFile);
75 client.release();
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
H A DEjectRootTask.java56 ContentProviderClient client = null;
58 client = DocumentsApplication.acquireUnstableProviderOrThrow(
60 DocumentsContract.ejectRoot(client, rootUri);
67 ContentProviderClient.releaseQuietly(client);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DHttpClientFactory.java25 import org.apache.http.client.HttpClient;
34 * Constructs {@link HttpClient} instances and isolates client code from API
43 * @return the client
52 * @return the client
62 HttpClient client = (HttpClient) instance;
65 HttpParams params = client.getParams();
75 return client;
90 public static void close(HttpClient client) { argument
94 Class<?> clazz = client.getClass();
96 method.invoke(client, (Objec
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/
H A DBlockingHttpClientTests.java58 final BlockingHttpClient client = new BlockingHttpClient(mMockHttpConnection);
62 client.execute(null /* empty request */, processor);
73 final BlockingHttpClient client = new BlockingHttpClient(mMockHttpConnection);
77 client.execute(null /* empty request */, processor);
89 final BlockingHttpClient client = new BlockingHttpClient(mMockHttpConnection);
93 client.execute(new byte[100], processor);
107 final BlockingHttpClient client = new BlockingHttpClient(mMockHttpConnection);
111 client.execute(null /* empty request */, processor);
123 final BlockingHttpClient client = new BlockingHttpClient(mMockHttpConnection);
127 client
[all...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
H A DBluetoothScanner.java257 ClientRecord client = mClients.get(ptr);
258 if (client.listener == listener) {
327 ClientRecord client = mClients.get(ptr);
328 for (int devPtr = client.devices.size() - 1; devPtr > -1; devPtr--) {
329 Device d = client.devices.get(devPtr);
331 client.devices.remove(devPtr);
479 // Loop backwards through the list in case a client wants to
482 ClientRecord client = mClients.get(i);
483 client.listener.onScanningStopped(client
[all...]
/packages/services/Car/service/src/com/android/car/
H A DListeners.java35 /** rate requested from client */
38 ClientWithRate(ClientType client, int rate) { argument
39 mClient = client;
120 ClientWithRate<ClientType> findClientWithRate(ClientType client) { argument
122 if (clientWithRate.getClient() == client) {
/packages/apps/Nfc/tests/src/com/android/nfc/
H A DMockLlcpSocket.java39 throw new UnsupportedOperationException("Use MockLlcpSocket.bind(client, server)");
71 public static void bind(MockLlcpSocket client, MockLlcpSocket server) { argument
72 client.mPairedSocket = server;
73 server.mPairedSocket = client;
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
H A DArchivesProviderTest.java75 try (final ContentProviderClient client = resolver.acquireUnstableContentProviderClient(
95 final ContentProviderClient client = resolver.acquireUnstableContentProviderClient(
97 ArchivesProvider.acquireArchive(client, archiveUri);
130 ArchivesProvider.releaseArchive(client, archiveUri);
131 client.release();
146 final ContentProviderClient client = resolver.acquireUnstableContentProviderClient(
148 ArchivesProvider.acquireArchive(client, archiveUri);
182 ArchivesProvider.releaseArchive(client, archiveUri);
183 client.release();
198 final ContentProviderClient client
[all...]
/packages/services/Car/car-support-lib/src/android/support/car/ui/
H A DCursorFilter.java41 CursorFilter(CursorFilterClient client) { argument
42 mClient = client;
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/
H A DHfpClientConference.java38 BluetoothDevice device, BluetoothHeadsetClient client) {
41 mHeadsetProfile = client;
42 boolean manage = HfpClientConnectionService.hasHfpClientEcc(client, device);
37 HfpClientConference(PhoneAccountHandle handle, BluetoothDevice device, BluetoothHeadsetClient client) argument
/packages/apps/Test/connectivity/sl4n/
H A DAndroid.mk48 libbluetooth-client
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
H A DJob.java190 ContentProviderClient client = mClients.get(uri.getAuthority());
191 if (client == null) {
193 client = acquireUnstableProviderOrThrow(
197 mClients.put(uri.getAuthority(), client);
200 assert(client != null);
201 return client;
209 for (ContentProviderClient client : mClients.values()) {
210 ContentProviderClient.releaseQuietly(client);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DBinaryDictionaryFileDumper.java90 // The path fragment to append after the client ID for dictionary info requests.
92 // The path fragment to append after the client ID for dictionary datafile requests.
94 // The path fragment to append after the client ID for updating the metadata URI.
123 * @param contentProviderClient the instance of content provider client
127 * @throws RemoteException if the client can't be contacted
151 final ContentProviderClient client = context.getContentResolver().
153 if (null == client) return Collections.<WordListInfo>emptyList();
156 final Uri.Builder builder = getContentUriBuilderForType(clientId, client,
166 cursor = client.query(queryUri, DICTIONARY_PROJECTION, null, null, null);
168 reinitializeClientRecordInDictionaryContentProvider(context, client, clientI
491 reinitializeClientRecordInDictionaryContentProvider(final Context context, final ContentProviderClient client, final String clientId) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
H A DRenderOverlay.java117 for (Renderer client : mTouchClients) {
118 res |= client.onTouchEvent(evt);

Completed in 700 milliseconds

123