/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | ScanManager.java | 214 for (ScanClient client : mBatchClients) { in getFullBatchScanQueue() 215 if (client.settings.getScanResultType() == ScanSettings.SCAN_RESULT_TYPE_FULL) { in getFullBatchScanQueue() 216 fullBatchClients.add(client); in getFullBatchScanQueue() 222 void startScan(ScanClient client) { in startScan() argument 223 sendMessage(MSG_START_BLE_SCAN, client); in startScan() 227 ScanClient client = mScanNative.getBatchScanClient(scannerId); in stopScan() local 228 if (client == null) { in stopScan() 229 client = mScanNative.getRegularScanClient(scannerId); in stopScan() 231 sendMessage(MSG_STOP_BLE_SCAN, client); in stopScan() 234 void flushBatchScanResults(ScanClient client) { in flushBatchScanResults() argument [all …]
|
D | GattService.java | 344 ScanClient client = getScanClient(mScannerId); in binderDied() local 345 if (client != null) { in binderDied() 346 client.appDied = true; in binderDied() 347 stopScan(client.scannerId); in binderDied() 352 for (ScanClient client : mScanManager.getRegularScanQueue()) { in getScanClient() 353 if (client.scannerId == clientIf) { in getScanClient() 354 return client; in getScanClient() 357 for (ScanClient client : mScanManager.getBatchScanQueue()) { in getScanClient() 358 if (client.scannerId == clientIf) { in getScanClient() 359 return client; in getScanClient() [all …]
|
/packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
D | SnepValidationClientTests.java | 53 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 …]
|
D | SnepDefaultClientTests.java | 47 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 …]
|
D | SnepCustomClientTests.java | 47 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 …]
|
D | SnepBasicTests.java | 41 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/services/Car/service/src/com/android/car/trust/ |
D | CarTrustAgentEnrollmentService.java | 161 for (EnrollmentStateClient client : mEnrollmentStateClients) { in release() 162 client.mListenerBinder.unlinkToDeath(client, 0); in release() 164 for (BleStateChangeClient client : mBleStateChangeClients) { in release() 165 client.mListenerBinder.unlinkToDeath(client, 0); in release() 376 EnrollmentStateClient client = findEnrollmentStateClientLocked(listener); in registerEnrollmentCallback() local 377 if (client == null) { in registerEnrollmentCallback() 378 client = new EnrollmentStateClient(listener); in registerEnrollmentCallback() 380 listener.asBinder().linkToDeath(client, 0); in registerEnrollmentCallback() 385 mEnrollmentStateClients.add(client); in registerEnrollmentCallback() 409 for (EnrollmentStateClient client : mEnrollmentStateClients) { in onEscrowTokenAdded() [all …]
|
/packages/services/Car/tests/BugReportApp/ |
D | Android.mk | 45 br_google-api-java-client \ 46 br_google-api-client-android \ 47 br_google-oauth-client \ 48 br_google-http-client \ 49 br_google-http-client-android \ 50 br_google-http-client-jackson2 \ 73 br_google-api-java-client:libs/google-api-client-1.25.0.jar \ 74 br_google-api-client-android:libs/google-api-client-android-1.25.0.jar \ 75 br_google-oauth-client:libs/google-oauth-client-1.25.0.jar \ 76 br_google-http-client:libs/google-http-client-1.25.0.jar \ [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/ |
D | ArchivesProviderTest.java | 82 try (final ContentProviderClient client = resolver.acquireUnstableContentProviderClient( in testQueryRoots() argument 84 final Cursor cursor = client.query(rootsUri, null, null, null, null, null); in testQueryRoots() 103 final ContentProviderClient client = resolver.acquireUnstableContentProviderClient( in testOpen_Success() local 105 ArchivesProvider.acquireArchive(client, archiveUri); in testOpen_Success() 138 ArchivesProvider.releaseArchive(client, archiveUri); in testOpen_Success() 139 client.release(); in testOpen_Success() 155 final ContentProviderClient client = resolver.acquireUnstableContentProviderClient( in testOpen_Failure() local 157 ArchivesProvider.acquireArchive(client, archiveUri); in testOpen_Failure() 191 ArchivesProvider.releaseArchive(client, archiveUri); in testOpen_Failure() 192 client.release(); in testOpen_Failure() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpCoverArtManager.java | 143 AvrcpBipClient client = new AvrcpBipClient(device, psm, new BipClientCallback(device)); in connect() 144 mClients.put(device, client); in connect() 157 AvrcpBipClient client = getClient(device); in refreshSession() local 158 if (client == null) { in refreshSession() 162 client.refreshSession(); in refreshSession() 174 AvrcpBipClient client = getClient(device); in disconnect() local 175 if (client == null) { in disconnect() 179 client.shutdown(); in disconnect() 206 AvrcpBipClient client = getClient(device); in getState() local 207 if (client == null) return BluetoothProfile.STATE_DISCONNECTED; in getState() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/ |
D | BluetoothScanner.java | 257 ClientRecord client = mClients.get(ptr); in stopListening() local 258 if (client.listener == listener) { in stopListening() 327 ClientRecord client = mClients.get(ptr); in removeDevice() local 328 for (int devPtr = client.devices.size() - 1; devPtr > -1; devPtr--) { in removeDevice() 329 Device d = client.devices.get(devPtr); in removeDevice() 331 client.devices.remove(devPtr); in removeDevice() 482 ClientRecord client = mClients.get(i); in sendScanningStopped() local 483 client.listener.onScanningStopped(client.devices); in sendScanningStopped() 491 ClientRecord client = mClients.get(ptr); in sendDeviceAdded() local 492 for (BluetoothDeviceCriteria matcher : client.matchers) { in sendDeviceAdded() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarDrivingStateService.java | 106 for (DrivingStateClient client : mDrivingStateClients) { in release() 107 client.listenerBinder.unlinkToDeath(client, 0); in release() 166 DrivingStateClient client = findDrivingStateClient(listener); in registerDrivingStateChangeListener() local 167 if (client == null) { in registerDrivingStateChangeListener() 168 client = new DrivingStateClient(listener); in registerDrivingStateChangeListener() 170 listener.asBinder().linkToDeath(client, 0); in registerDrivingStateChangeListener() 175 mDrivingStateClients.add(client); in registerDrivingStateChangeListener() 190 for (DrivingStateClient client : mDrivingStateClients) { in findDrivingStateClient() 191 if (client.isHoldingBinder(binder)) { in findDrivingStateClient() 192 return client; in findDrivingStateClient() [all …]
|
D | CarProjectionService.java | 420 ProjectionReceiverClient client = getOrCreateProjectionReceiverClientLocked(token); in updateProjectionStatus() local 421 client.mProjectionStatus = status; in updateProjectionStatus() 458 ProjectionReceiverClient client; in getOrCreateProjectionReceiverClientLocked() local 459 client = mProjectionReceiverClients.get(token); in getOrCreateProjectionReceiverClientLocked() 460 if (client == null) { in getOrCreateProjectionReceiverClientLocked() 461 client = new ProjectionReceiverClient(() -> unregisterProjectionReceiverClient(token)); in getOrCreateProjectionReceiverClientLocked() 462 token.linkToDeath(client.mDeathRecipient, 0 /* flags */); in getOrCreateProjectionReceiverClientLocked() 463 mProjectionReceiverClients.put(token, client); in getOrCreateProjectionReceiverClientLocked() 465 return client; in getOrCreateProjectionReceiverClientLocked() 470 ProjectionReceiverClient client = mProjectionReceiverClients.remove(token); in unregisterProjectionReceiverClient() local [all …]
|
D | CarUxRestrictionsManagerService.java | 314 for (UxRestrictionsClient client : mUxRClients) { in release() 315 client.listenerBinder.unlinkToDeath(client, 0); in release() 340 UxRestrictionsClient client = findUxRestrictionsClient(listener); in registerUxRestrictionsChangeListener() local 341 if (client == null) { in registerUxRestrictionsChangeListener() 342 client = new UxRestrictionsClient(listener, displayId); in registerUxRestrictionsChangeListener() 344 listener.asBinder().linkToDeath(client, 0); in registerUxRestrictionsChangeListener() 348 mUxRClients.add(client); in registerUxRestrictionsChangeListener() 364 for (UxRestrictionsClient client : mUxRClients) { in findUxRestrictionsClient() 365 if (client.isHoldingBinder(binder)) { in findUxRestrictionsClient() 366 return client; in findUxRestrictionsClient() [all …]
|
D | CarPropertyService.java | 183 Client client = mClientMap.get(listenerBinder); in registerListener() local 184 if (client == null) { in registerListener() 185 client = new Client(listener); in registerListener() 187 client.addProperty(propId, rate); in registerListener() 194 if (!clients.contains(client)) { in registerListener() 195 clients.add(client); in registerListener() 253 Client client = mClientMap.get(listenerBinder); in unregisterListenerBinderLocked() local 260 if ((client == null) || (propertyClients == null)) { in unregisterListenerBinderLocked() 263 if (propertyClients.remove(client)) { in unregisterListenerBinderLocked() 264 client.removeProperty(propId); in unregisterListenerBinderLocked()
|
/packages/services/Car/evs/manager/ |
D | HalCamera.cpp | 38 sp<VirtualCamera> client = new VirtualCamera(this); in makeVirtualCamera() local 39 if (client == nullptr) { in makeVirtualCamera() 45 if (!changeFramesInFlight(client->getAllowedBuffers())) { in makeVirtualCamera() 48 client = nullptr; in makeVirtualCamera() 53 mClients.push_back(client); in makeVirtualCamera() 56 return client; in makeVirtualCamera() 88 for (auto&& client : mClients) { in changeFramesInFlight() 89 sp<VirtualCamera> virtCam = client.promote(); in changeFramesInFlight() 144 for (auto&& client : mClients) { in clientStreamEnding() 145 sp<VirtualCamera> virtCam = client.promote(); in clientStreamEnding() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/ |
D | BlockingHttpClientTests.java | 65 final BlockingHttpClient client = new BlockingHttpClient(mMockHttpConnection); in testError_badGateway() local 69 client.execute(null /* empty request */, processor); in testError_badGateway() 81 final BlockingHttpClient client = new BlockingHttpClient(mMockHttpConnection); in testError_clientTimeout() local 85 client.execute(null /* empty request */, processor); in testError_clientTimeout() 98 final BlockingHttpClient client = new BlockingHttpClient(mMockHttpConnection); in testError_forbiddenWithRequest() local 102 client.execute(new byte[100], processor); in testError_forbiddenWithRequest() 117 final BlockingHttpClient client = new BlockingHttpClient(mMockHttpConnection); in testSuccess_emptyRequest() local 121 client.execute(null /* empty request */, processor); in testSuccess_emptyRequest() 134 final BlockingHttpClient client = new BlockingHttpClient(mMockHttpConnection); in testSuccess() local 138 client.execute(new byte[100], processor); in testSuccess()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | MobileNetworkActivityTest.java | 168 MobileNetworkActivity.PhoneChangeReceiver.Client client = mock( in phoneChangeReceiver_ignoresStickyBroadcastFromBeforeRegistering() local 171 new MobileNetworkActivity.PhoneChangeReceiver(activity, client); in phoneChangeReceiver_ignoresStickyBroadcastFromBeforeRegistering() 176 verify(client, never()).onPhoneChange(); in phoneChangeReceiver_ignoresStickyBroadcastFromBeforeRegistering() 179 verify(client, times(1)).onPhoneChange(); in phoneChangeReceiver_ignoresStickyBroadcastFromBeforeRegistering() 186 MobileNetworkActivity.PhoneChangeReceiver.Client client = mock( in phoneChangeReceiver_ignoresCarrierConfigChangeForWrongSubscriptionId() local 188 doReturn(2).when(client).getSubscriptionId(); in phoneChangeReceiver_ignoresCarrierConfigChangeForWrongSubscriptionId() 191 new MobileNetworkActivity.PhoneChangeReceiver(activity, client); in phoneChangeReceiver_ignoresCarrierConfigChangeForWrongSubscriptionId() 198 verify(client, never()).onPhoneChange(); in phoneChangeReceiver_ignoresCarrierConfigChangeForWrongSubscriptionId() 205 MobileNetworkActivity.PhoneChangeReceiver.Client client = mock( in phoneChangeReceiver_dispatchesCarrierConfigChangeForCorrectSubscriptionId() local 207 doReturn(2).when(client).getSubscriptionId(); in phoneChangeReceiver_dispatchesCarrierConfigChangeForCorrectSubscriptionId() [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/ |
D | PredictionAppTracker.java | 107 private AppPredictor createPredictor(Client client, int count) { in createPredictor() argument 116 .setUiSurface(client.id) in createPredictor() 118 .setExtras(getAppPredictionContextExtras(client)) in createPredictor() 121 PredictionUiStateManager.INSTANCE.get(mContext).appPredictorCallback(client)); in createPredictor() 131 public Bundle getAppPredictionContextExtras(Client client) { in getAppPredictionContextExtras() argument 160 String client = (String) msg.obj; in handleMessage() local 161 if (Client.HOME.id.equals(client)) { in handleMessage() 176 String client = Client.HOME.id; in onReturnedToHome() local 177 mMessageHandler.removeMessages(MSG_PREDICT, client); in onReturnedToHome() 178 Message.obtain(mMessageHandler, MSG_PREDICT, client).sendToTarget(); in onReturnedToHome() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryFileDumper.java | 151 final ContentProviderClient client = context.getContentResolver(). in getWordListWordListInfos() local 153 if (null == client) return Collections.<WordListInfo>emptyList(); in getWordListWordListInfos() 156 final Uri.Builder builder = getContentUriBuilderForType(clientId, client, in getWordListWordListInfos() 166 cursor = client.query(queryUri, DICTIONARY_PROJECTION, null, null, null); in getWordListWordListInfos() 168 reinitializeClientRecordInDictionaryContentProvider(context, client, clientId); in getWordListWordListInfos() 169 cursor = client.query(queryUri, DICTIONARY_PROJECTION, null, null, null); in getWordListWordListInfos() 200 client.release(); in getWordListWordListInfos() 492 final ContentProviderClient client, final String clientId) throws RemoteException { in reinitializeClientRecordInDictionaryContentProvider() argument 502 client.delete(metadataContentUri, null, null); in reinitializeClientRecordInDictionaryContentProvider() 508 client.insert(metadataContentUri, metadataValues); in reinitializeClientRecordInDictionaryContentProvider() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | HttpClientFactory.java | 25 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/Dialer/java/com/android/dialer/simulator/service/ |
D | SimulatorServiceClient.java | 52 private SimulatorServiceClient client; field in SimulatorServiceClient.SimulatorServiceConnection 58 client.onServiceConnected(simulatorService); in onServiceConnected() 63 client.onServiceDisconnected(); in onServiceDisconnected() 66 void bindToClient(SimulatorServiceClient client) { in bindToClient() argument 67 this.client = client; in bindToClient()
|
/packages/apps/Car/Cluster/src/android/car/cluster/ |
D | ClusterRenderingService.java | 145 public void registerClient(ServiceClient client) { in registerClient() argument 146 mClients.add(client); in registerClient() 149 public void unregisterClient(ServiceClient client) { in unregisterClient() argument 150 mClients.remove(client); in unregisterClient() 237 broadcastClientEvent(client -> client.onKeyEvent(keyEvent)); in onKeyEvent() 246 for (ServiceClient client : mClients) { in broadcastClientEvent() 247 event.accept(client); in broadcastClientEvent() 276 client -> client.onNavigationStateChange(navState)); in getNavigationRenderer()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DirectoryLoader.java | 115 ContentProviderClient client = null; in loadInBackground() local 118 client = DocumentsApplication.acquireUnstableProviderOrThrow(resolver, authority); in loadInBackground() 120 ArchivesProvider.acquireArchive(client, mUri); in loadInBackground() 122 result.client = client; in loadInBackground() 137 cursor = client.query(mUri, null, queryArgs, mSignal); in loadInBackground() 173 FileUtils.closeQuietly(client); in loadInBackground()
|
D | DocumentsAccess.java | 94 try(final ContentProviderClient client = DocumentsApplication in getDocuments() argument 100 try (final Cursor cursor = client.query(uri, null, null, null, null)) { in getDocuments() 128 try (final ContentProviderClient client = DocumentsApplication in findDocumentPath() argument 130 return DocumentsContract.findDocumentPath(wrap(client), docUri); in findDocumentPath() 137 try (ContentProviderClient client = DocumentsApplication.acquireUnstableProviderOrThrow( in createDocument() argument 140 wrap(client), parentDoc.derivedUri, mimeType, displayName); in createDocument()
|