/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceManager.java | 99 CachedBluetoothDevice newDevice; in addDevice() local 102 newDevice = findDevice(device); in addDevice() 103 if (newDevice == null) { in addDevice() 104 newDevice = new CachedBluetoothDevice(mContext, profileManager, device); in addDevice() 105 mHearingAidDeviceManager.initHearingAidDeviceIfNeeded(newDevice); in addDevice() 106 if (!mHearingAidDeviceManager.setSubDeviceIfNeeded(newDevice)) { in addDevice() 107 mCachedDevices.add(newDevice); in addDevice() 108 mBtManager.getEventManager().dispatchDeviceAdded(newDevice); in addDevice() 113 return newDevice; in addDevice()
|
D | HearingAidDeviceManager.java | 44 void initHearingAidDeviceIfNeeded(CachedBluetoothDevice newDevice) { in initHearingAidDeviceIfNeeded() argument 45 long hiSyncId = getHiSyncId(newDevice.getDevice()); in initHearingAidDeviceIfNeeded() 48 newDevice.setHiSyncId(hiSyncId); in initHearingAidDeviceIfNeeded() 61 boolean setSubDeviceIfNeeded(CachedBluetoothDevice newDevice) { in setSubDeviceIfNeeded() argument 62 final long hiSyncId = newDevice.getHiSyncId(); in setSubDeviceIfNeeded() 69 hearingAidDevice.setSubDevice(newDevice); in setSubDeviceIfNeeded()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbHostManager.java | 398 UsbDevice newDevice = newDeviceBuilder.build(serialNumberReader); in usbDeviceAdded() local 399 serialNumberReader.setDevice(newDevice); in usbDeviceAdded() 401 mDevices.put(deviceAddress, newDevice); in usbDeviceAdded() 402 Slog.d(TAG, "Added device " + newDevice); in usbDeviceAdded() 408 getCurrentUserSettings().deviceAttached(newDevice); in usbDeviceAdded() 410 getCurrentUserSettings().deviceAttachedForFixedHandler(newDevice, in usbDeviceAdded() 414 mUsbAlsaManager.usbDeviceAdded(deviceAddress, newDevice, parser); in usbDeviceAdded() 422 newDevice.getVendorId(), newDevice.getProductId(), in usbDeviceAdded()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/ |
D | MediaOutputController.java | 273 for (MediaDevice newDevice : devices) { in buildMediaDevices() 274 if (TextUtils.equals(originalDevice.getId(), newDevice.getId())) { in buildMediaDevices() 275 targetMediaDevices.add(newDevice); in buildMediaDevices() 302 for (MediaDevice newDevice : sourceDevices) { in getGroupMediaDevices() 303 if (TextUtils.equals(originalDevice.getId(), newDevice.getId())) { in getGroupMediaDevices() 304 targetMediaDevices.add(newDevice); in getGroupMediaDevices() 305 sourceDevices.remove(newDevice); in getGroupMediaDevices()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | WifiDisplayController.java | 702 final WifiP2pDevice newDevice = mDesiredDevice; in updateConnection() local 709 Slog.i(TAG, "Initiated connection to Wifi display: " + newDevice.deviceName); in updateConnection() 716 if (mConnectingDevice == newDevice) { in updateConnection() 718 + newDevice.deviceName + ", reason=" + reason); in updateConnection()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiCecNetwork.java | 511 HdmiDeviceInfo newDevice = new HdmiDeviceInfo(sourceAddress, in handleCecMessage() local 515 addCecDevice(newDevice); in handleCecMessage()
|
D | HdmiControlService.java | 1391 HdmiMhlLocalDeviceStub newDevice = new HdmiMhlLocalDeviceStub(this, portId); in handleMhlHotplugEvent() local 1392 HdmiMhlLocalDeviceStub oldDevice = mMhlController.addLocalDevice(newDevice); in handleMhlHotplugEvent() 1397 invokeDeviceEventListeners(newDevice.getInfo(), DEVICE_EVENT_ADD_DEVICE); in handleMhlHotplugEvent()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 1166 std::shared_ptr<InputDevice> newDevice(int32_t deviceId, const std::string& name, in newDevice() function in android::InstrumentedInputReader 1519 std::shared_ptr<InputDevice> device = mReader->newDevice(deviceId, name); in addDeviceWithFakeInputMapper() 1546 std::shared_ptr<InputDevice> device = mReader->newDevice(deviceId, "fake"); in TEST_F() 1567 std::shared_ptr<InputDevice> device = mReader->newDevice(deviceId, "fake"); in TEST_F() 1593 std::shared_ptr<InputDevice> device = mReader->newDevice(deviceId, "fake"); in TEST_F() 1805 std::shared_ptr<InputDevice> device = mReader->newDevice(deviceId, "fake"); in TEST_F() 1838 std::shared_ptr<InputDevice> device = mReader->newDevice(deviceId, "fake"); in TEST_F() 1854 std::shared_ptr<InputDevice> device = mReader->newDevice(deviceId, "fake", DEVICE_LOCATION); in TEST_F() 1898 std::shared_ptr<InputDevice> device = mReader->newDevice(deviceId, "fake"); in TEST_F() 1940 std::shared_ptr<InputDevice> device = mReader->newDevice(deviceId, "fake"); in TEST_F() [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 6313 public void postAccessoryPlugMediaUnmute(int newDevice) { in postAccessoryPlugMediaUnmute() argument 6315 newDevice, 0, null, 0); in postAccessoryPlugMediaUnmute() 6318 private void onAccessoryPlugMediaUnmute(int newDevice) { in onAccessoryPlugMediaUnmute() argument 6321 newDevice, AudioSystem.getOutputDeviceName(newDevice))); in onAccessoryPlugMediaUnmute() 6326 && DEVICE_MEDIA_UNMUTED_ON_PLUG_SET.contains(newDevice) in onAccessoryPlugMediaUnmute() 6328 && mStreamStates[AudioSystem.STREAM_MUSIC].getIndex(newDevice) != 0 in onAccessoryPlugMediaUnmute() 6329 && (newDevice & mAudioSystem.getDevicesForStream(AudioSystem.STREAM_MUSIC)) != 0) { in onAccessoryPlugMediaUnmute() 6332 newDevice, AudioSystem.getOutputDeviceName(newDevice))); in onAccessoryPlugMediaUnmute()
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.cpp | 3383 auto newDevice = getNewInputDevice(activeDesc); in updateInputRouting() local 3385 if (activeDesc->mProfile->getSupportedDevices().contains(newDevice)) { in updateInputRouting() 3386 setInputDevice(activeDesc->mIoHandle, newDevice); in updateInputRouting()
|