/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachine.java | 358 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage() local 359 Log.d(TAG, "Disconnected: connecting to device=" + device); in processMessage() 360 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING, in processMessage() 362 if (!connectHfpNative(getByteAddress(device))) { in processMessage() 363 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED, in processMessage() 368 mTargetDevice = device; in processMessage() 372 m.obj = device; in processMessage() 392 processConnectionEvent(event.valueInt, event.device); in processMessage() 412 private void processConnectionEvent(int state, BluetoothDevice device) { in processConnectionEvent() argument 414 "Disconnected: processConnectionEvent, state=" + state + ", device=" + device); in processConnectionEvent() [all …]
|
D | HeadsetService.java | 141 public boolean connect(BluetoothDevice device) { in connect() argument 144 return service.connect(device); in connect() 147 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 151 return service.disconnect(device); in disconnect() 166 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument 169 return service.getConnectionState(device); in getConnectionState() 172 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() argument 175 return service.setPriority(device, priority); in setPriority() 178 public int getPriority(BluetoothDevice device) { in getPriority() argument 181 return service.getPriority(device); in getPriority() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
D | HidService.java | 103 for (BluetoothDevice device : mInputDevices.keySet()) { in cleanup() 104 int inputDeviceState = getConnectionState(device); in cleanup() 106 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED); in cleanup() 157 BluetoothDevice device = (BluetoothDevice) msg.obj; 158 if (!connectHidNative(Utils.getByteAddress(device)) ) { 159 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTING); 160 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED); 163 mTargetDevice = device; 168 BluetoothDevice device = (BluetoothDevice) msg.obj; 169 if (!disconnectHidNative(Utils.getByteAddress(device)) ) { [all …]
|
D | HidDevService.java | 81 BluetoothDevice device = msg.obj != null ? getDevice((byte[]) msg.obj) : null; 85 mHidDevice = device; 92 mCallback.onAppStatusChanged(device, mAppConfig, success); 135 BluetoothDevice device = getDevice((byte[]) msg.obj); 140 mHidDevice = device; 143 broadcastConnectionState(device, state); 146 if (mCallback != null) mCallback.onConnectionStateChanged(device, state); 297 public boolean sendReport(BluetoothDevice device, int id, byte[] data) { in sendReport() argument 298 if (DBG) Log.v(TAG, "sendReport(): device=" + device + " id=" + id); in sendReport() 305 return service.sendReport(device, id, data); in sendReport() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 226 public boolean connect(BluetoothDevice device) { in connect() argument 231 return service.connect(device); in connect() 235 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 240 return service.disconnect(device); in disconnect() 262 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument 267 return service.getConnectionState(device); in getConnectionState() 271 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() argument 276 return service.setPriority(device, priority); in setPriority() 280 public int getPriority(BluetoothDevice device) { in getPriority() argument 285 return service.getPriority(device); in getPriority() [all …]
|
D | HeadsetClientStateMachine.java | 806 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage() local 807 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING, in processMessage() 810 if (!NativeInterface.connectNative(getByteAddress(device))) { in processMessage() 811 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED, in processMessage() 816 mCurrentDevice = device; in processMessage() 831 Log.d(TAG, "Disconnected: Connection " + event.device in processMessage() 834 processConnectionEvent(event.valueInt, event.device); in processMessage() 848 private void processConnectionEvent(int state, BluetoothDevice device) in processConnectionEvent() argument 853 if (okToConnect(device)) { in processConnectionEvent() 855 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING, in processConnectionEvent() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStateMachine.java | 201 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage() local 202 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING, in processMessage() 205 if (!connectA2dpNative(getByteAddress(device)) ) { in processMessage() 206 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED, in processMessage() 212 mTargetDevice = device; in processMessage() 226 processConnectionEvent(event.valueInt, event.device); in processMessage() 229 processAudioConfigEvent(event.audioConfig, event.device); in processMessage() 248 private void processConnectionEvent(int state, BluetoothDevice device) { in processConnectionEvent() argument 251 logw("Ignore A2DP DISCONNECTED event, device: " + device); in processConnectionEvent() 254 if (okToConnect(device)){ in processConnectionEvent() [all …]
|
D | A2dpSinkService.java | 123 public boolean connect(BluetoothDevice device) { in connect() argument 127 int connectionState = mStateMachine.getConnectionState(device); in connect() 133 if (getPriority(device) == BluetoothProfile.PRIORITY_OFF) { in connect() 137 mStateMachine.sendMessage(A2dpSinkStateMachine.CONNECT, device); in connect() 141 boolean disconnect(BluetoothDevice device) { in disconnect() argument 144 int connectionState = mStateMachine.getConnectionState(device); in disconnect() 150 mStateMachine.sendMessage(A2dpSinkStateMachine.DISCONNECT, device); in disconnect() 164 int getConnectionState(BluetoothDevice device) { in getConnectionState() argument 166 return mStateMachine.getConnectionState(device); in getConnectionState() 169 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() argument [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/usb/ |
D | UsbDeviceHandlerResolver.java | 70 UsbDevice device, List<UsbDeviceSettings> availableSettings); in onHandlersResolveCompleted() argument 154 DeviceFilter(UsbDevice device) { in DeviceFilter() argument 155 mVendorId = device.getVendorId(); in DeviceFilter() 156 mProductId = device.getProductId(); in DeviceFilter() 157 mClass = device.getDeviceClass(); in DeviceFilter() 158 mSubclass = device.getDeviceSubclass(); in DeviceFilter() 159 mProtocol = device.getDeviceProtocol(); in DeviceFilter() 160 mManufacturerName = device.getManufacturerName(); in DeviceFilter() 161 mProductName = device.getProductName(); in DeviceFilter() 162 mSerialNumber = device.getSerialNumber(); in DeviceFilter() [all …]
|
D | UsbDeviceStateController.java | 44 void onDeviceResetComplete(UsbDevice device); in onDeviceResetComplete() argument 45 void onAoapStartComplete(UsbDevice device); in onAoapStartComplete() argument 46 void onAoapStartFailed(UsbDevice device); in onAoapStartFailed() argument 117 public void startDeviceReset(UsbDevice device) { in startDeviceReset() argument 119 Log.d(TAG, "startDeviceReset: " + device); in startDeviceReset() 121 mHandler.requestDeviceReset(device); in startDeviceReset() 126 Log.d(TAG, "startAoap: " + request.device); in startAoap() 131 private void doHandleDeviceReset(UsbDevice device) { in doHandleDeviceReset() argument 133 Log.d(TAG, "doHandleDeviceReset: " + device); in doHandleDeviceReset() 139 boolean isInAoap = AoapInterface.isDeviceInAoapMode(device); in doHandleDeviceReset() [all …]
|
D | UsbHostController.java | 73 UsbDevice device = intent.<UsbDevice>getParcelableExtra(UsbManager.EXTRA_DEVICE); 74 unsetActiveDeviceIfSerialMatch(device); 76 UsbDevice device = intent.<UsbDevice>getParcelableExtra(UsbManager.EXTRA_DEVICE); 77 setActiveDeviceIfSerialMatch(device); 103 private synchronized void setActiveDeviceIfSerialMatch(UsbDevice device) { in setActiveDeviceIfSerialMatch() argument 104 if (device != null && device.getSerialNumber() != null in setActiveDeviceIfSerialMatch() 105 && device.getSerialNumber().equals(mProcessingDeviceSerial)) { in setActiveDeviceIfSerialMatch() 106 mActiveDevice = device; in setActiveDeviceIfSerialMatch() 110 private synchronized void unsetActiveDeviceIfSerialMatch(UsbDevice device) { in unsetActiveDeviceIfSerialMatch() argument 113 && mActiveDevice.getSerialNumber().equals(device.getSerialNumber())) { in unsetActiveDeviceIfSerialMatch() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpStateMachine.java | 291 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage() local 292 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING, in processMessage() 295 if (!connectA2dpNative(getByteAddress(device)) ) { in processMessage() 296 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED, in processMessage() 302 mTargetDevice = device; in processMessage() 316 processConnectionEvent(event.valueInt, event.device); in processMessage() 335 private void processConnectionEvent(int state, BluetoothDevice device) { in processConnectionEvent() argument 338 logw("Ignore HF DISCONNECTED event, device: " + device); in processConnectionEvent() 341 if (okToConnect(device)){ in processConnectionEvent() 343 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING, in processConnectionEvent() [all …]
|
D | A2dpService.java | 60 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive() local 61 if (state != BluetoothProfile.STATE_CONNECTED || device == null) { in onReceive() 67 int previousSupport = getSupportsOptionalCodecs(device); in onReceive() 79 setSupportsOptionalCodecs(device, supportsOptional); in onReceive() 82 int enabled = getOptionalCodecsEnabled(device); in onReceive() 185 public boolean connect(BluetoothDevice device) { in connect() argument 189 if (getPriority(device) == BluetoothProfile.PRIORITY_OFF) { in connect() 192 ParcelUuid[] featureUuids = device.getUuids(); in connect() 199 int connectionState = mStateMachine.getConnectionState(device); in connect() 205 mStateMachine.sendMessage(A2dpStateMachine.CONNECT, device); in connect() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | PhonePolicy.java | 149 BluetoothDevice device = in handleMessage() local 152 debugLog("Received ACTION_UUID for device " + device); in handleMessage() 159 processInitProfilePriorities(device, uuidsToSend); in handleMessage() 165 BluetoothDevice device = in handleMessage() local 169 processProfileStateChanged(device, msg.arg1, nextState, prevState); in handleMessage() 208 private void processInitProfilePriorities(BluetoothDevice device, ParcelUuid[] uuids) { in processInitProfilePriorities() argument 209 debugLog("processInitProfilePriorities() - device " + device); in processInitProfilePriorities() 220 && (hidService.getPriority(device) == BluetoothProfile.PRIORITY_UNDEFINED)) { in processInitProfilePriorities() 221 hidService.setPriority(device, BluetoothProfile.PRIORITY_ON); in processInitProfilePriorities() 228 && (headsetService.getPriority(device) in processInitProfilePriorities() [all …]
|
D | RemoteDevices.java | 134 DeviceProperties getDeviceProperties(BluetoothDevice device) { in getDeviceProperties() argument 136 return mDevices.get(device.getAddress()); in getDeviceProperties() 159 for (BluetoothDevice device : mAdapterService.getBondedDevices()) { in addDeviceProperties() 160 if (device.getAddress().equals(deleteKey)) return prop; in addDeviceProperties() 262 void setAlias(BluetoothDevice device, String mAlias) { in setAlias() argument 268 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); in setAlias() 334 private void sendUuidIntent(BluetoothDevice device) { in sendUuidIntent() argument 335 DeviceProperties prop = getDeviceProperties(device); in sendUuidIntent() 337 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); in sendUuidIntent() 342 mSdpTracker.remove(device); in sendUuidIntent() [all …]
|
D | AdapterService.java | 984 public boolean createBond(BluetoothDevice device, int transport) { in createBond() argument 992 return service.createBond(device, transport, null); in createBond() 995 public boolean createBondOutOfBand(BluetoothDevice device, int transport, OobData oobData) { in createBondOutOfBand() argument 1003 return service.createBond(device, transport, oobData); in createBondOutOfBand() 1006 public boolean cancelBondProcess(BluetoothDevice device) { in cancelBondProcess() argument 1014 return service.cancelBondProcess(device); in cancelBondProcess() 1017 public boolean removeBond(BluetoothDevice device) { in removeBond() argument 1025 return service.removeBond(device); in removeBond() 1028 public int getBondState(BluetoothDevice device) { in getBondState() argument 1032 return service.getBondState(device); in getBondState() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerService.java | 301 public synchronized int getConnectionState(BluetoothDevice device) { in getConnectionState() argument 307 …public synchronized void sendGroupNavigationCmd(BluetoothDevice device, int keyCode, int keyState)… in sendGroupNavigationCmd() argument 309 if (device == null) { in sendGroupNavigationCmd() 313 if (!(device.equals(mConnectedDevice))) { in sendGroupNavigationCmd() 314 Log.e(TAG, " Device does not match " + device + " connected " + mConnectedDevice); in sendGroupNavigationCmd() 319 MESSAGE_SEND_GROUP_NAVIGATION_CMD, keyCode, keyState, device); in sendGroupNavigationCmd() 323 public synchronized void sendPassThroughCmd(BluetoothDevice device, int keyCode, int keyState) { in sendPassThroughCmd() argument 325 if (device == null) { in sendPassThroughCmd() 330 if (!device.equals(mConnectedDevice)) { in sendPassThroughCmd() 331 Log.w(TAG, " Device does not match device " + device + " conn " + mConnectedDevice); in sendPassThroughCmd() [all …]
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | UsbDeviceHandlerResolver.java | 59 UsbDevice device, List<UsbDeviceSettings> availableSettings); in onHandlersResolveCompleted() argument 165 DeviceFilter(UsbDevice device) { in DeviceFilter() argument 166 mVendorId = device.getVendorId(); in DeviceFilter() 167 mProductId = device.getProductId(); in DeviceFilter() 168 mClass = device.getDeviceClass(); in DeviceFilter() 169 mSubclass = device.getDeviceSubclass(); in DeviceFilter() 170 mProtocol = device.getDeviceProtocol(); in DeviceFilter() 171 mManufacturerName = device.getManufacturerName(); in DeviceFilter() 172 mProductName = device.getProductName(); in DeviceFilter() 173 mSerialNumber = device.getSerialNumber(); in DeviceFilter() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
D | PanService.java | 169 BluetoothDevice device = (BluetoothDevice) msg.obj; 170 if (!connectPanNative(Utils.getByteAddress(device), 172 handlePanDeviceStateChange(device, null, BluetoothProfile.STATE_CONNECTING, 174 handlePanDeviceStateChange(device, null, 183 BluetoothDevice device = (BluetoothDevice) msg.obj; 184 if (!disconnectPanNative(Utils.getByteAddress(device)) ) { 185 handlePanDeviceStateChange(device, mPanIfName, 188 handlePanDeviceStateChange(device, mPanIfName, 198 BluetoothDevice device = getDevice(cs.addr); 201 log("MESSAGE_CONNECT_STATE_CHANGED: " + device + " state: " + cs.state); [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | PbapClientService.java | 104 void cleanupDevice(BluetoothDevice device) { in cleanupDevice() argument 105 Log.w(TAG, "Cleanup device: " + device); in cleanupDevice() 107 PbapClientStateMachine pbapClientStateMachine = mPbapClientStateMachineMap.get(device); in cleanupDevice() 109 mPbapClientStateMachineMap.remove(device); in cleanupDevice() 138 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive() local 139 if (getConnectionState(device) == BluetoothProfile.STATE_CONNECTED) { in onReceive() 140 disconnect(device); in onReceive() 180 public boolean connect(BluetoothDevice device) { in connect() argument 187 return service.connect(device); in connect() 191 public boolean disconnect(BluetoothDevice device) { in disconnect() argument [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/ |
D | MapClientService.java | 83 public synchronized boolean connect(BluetoothDevice device) { in connect() argument 84 Log.d(TAG, "MAP Mce connect " + device.toString()); in connect() 85 return mMceStateMachine.connect(device); in connect() 88 public synchronized boolean disconnect(BluetoothDevice device) { in disconnect() argument 89 Log.d(TAG, "MAP Mce disconnect " + device.toString()); in disconnect() 90 return mMceStateMachine.disconnect(device); in disconnect() 102 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates() 103 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates() 104 Log.d(TAG, "Device: " + device + "State: " + connectionState); in getDevicesMatchingConnectionStates() 107 deviceList.add(device); in getDevicesMatchingConnectionStates() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/ |
D | BluetoothScanner.java | 100 public void onDeviceAdded(Device device) { in onDeviceAdded() argument 102 public void onDeviceChanged(Device device) { in onDeviceChanged() argument 104 public void onDeviceRemoved(Device device) { in onDeviceRemoved() argument 153 public static void removeDevice(Device device) { in removeDevice() argument 154 removeDevice(device.address); in removeDevice() 388 Device device = null; in onReceive() local 393 device = d; in onReceive() 398 if (device == null) { in onReceive() 403 device = new Device(); in onReceive() 404 device.btDevice = btDevice; in onReceive() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/ |
D | HealthService.java | 262 BluetoothDevice device = getDevice(channelStateEvent.mAddr); in handleMessage() local 263 chan = new HealthChannel(device, appConfig, appConfig.getChannelType()); in handleMessage() 353 public boolean connectChannelToSource(BluetoothDevice device, in connectChannelToSource() argument 357 return service.connectChannelToSource(device, config); in connectChannelToSource() 360 public boolean connectChannelToSink(BluetoothDevice device, in connectChannelToSink() argument 364 return service.connectChannelToSink(device, config, channelType); in connectChannelToSink() 367 public boolean disconnectChannel(BluetoothDevice device, in disconnectChannel() argument 371 return service.disconnectChannel(device, config, channelId); in disconnectChannel() 374 public ParcelFileDescriptor getMainChannelFd(BluetoothDevice device, in getMainChannelFd() argument 378 return service.getMainChannelFd(device, config); in getMainChannelFd() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothDevicePairer.java | 151 public void onDeviceAdded(BluetoothScanner.Device device) { 153 Log.d(TAG, "Adding device: " + device.btDevice.getAddress()); 155 onDeviceFound(device.btDevice); 159 public void onDeviceRemoved(BluetoothScanner.Device device) { 161 Log.d(TAG, "Device lost: " + device.btDevice.getAddress()); 163 onDeviceLost(device.btDevice); 171 InputDevice device = inMan.getInputDevice(deviceIds[ptr]); in hasValidInputDevice() local 172 int sources = device.getSources(); in hasValidInputDevice() 186 String keyboardName = device.getName(); in hasValidInputDevice() 199 if (!device.isVirtual() && isCompatible) { in hasValidInputDevice() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | BluetoothDevicesInfo.java | 105 public DeviceInfo(BluetoothDevice device, int state) { in DeviceInfo() argument 106 mBluetoothDevice = device; in DeviceInfo() 214 BluetoothDevice device = null; in getBluetoothDeviceForPriorityLocked() local 220 return device; in getBluetoothDeviceForPriorityLocked() 230 private int getPositionInListLocked(BluetoothDevice device) { in getPositionInListLocked() argument 235 if (devInfo.mBluetoothDevice.getAddress().equals(device.getAddress())) { in getPositionInListLocked() 251 private boolean checkDeviceInListLocked(BluetoothDevice device) { in checkDeviceInListLocked() argument 253 if (device == null) { in checkDeviceInListLocked() 257 if (devInfo.mBluetoothDevice.getAddress().equals(device.getAddress())) { in checkDeviceInListLocked() 272 private DeviceInfo findDeviceInfoInListLocked(@Nullable BluetoothDevice device) { in findDeviceInfoInListLocked() argument [all …]
|