/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceManager.java | 113 CachedBluetoothDevice newDevice = new CachedBluetoothDevice(mContext, adapter, in addDevice() local 116 && profileManager.getHearingAidProfile().getHiSyncId(newDevice.getDevice()) in addDevice() 118 newDevice.setHiSyncId(profileManager.getHearingAidProfile() in addDevice() 119 .getHiSyncId(newDevice.getDevice())); in addDevice() 122 if (isPairAddedInCache(newDevice.getHiSyncId())) { in addDevice() 124 mHearingAidDevicesNotAddedInCache.add(newDevice); in addDevice() 128 mCachedDevices.add(newDevice); in addDevice() 129 if (newDevice.getHiSyncId() != BluetoothHearingAid.HI_SYNC_ID_INVALID in addDevice() 130 && !mCachedDevicesMapForHearingAids.containsKey(newDevice.getHiSyncId())) { in addDevice() 131 mCachedDevicesMapForHearingAids.put(newDevice.getHiSyncId(), newDevice); in addDevice() local [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbHostManager.java | 373 UsbDevice newDevice = parser.toAndroidUsbDevice(); in usbDeviceAdded() local 374 if (newDevice == null) { in usbDeviceAdded() 380 mDevices.put(deviceAddress, newDevice); in usbDeviceAdded() 381 Slog.d(TAG, "Added device " + newDevice); in usbDeviceAdded() 387 getCurrentUserSettings().deviceAttached(newDevice); in usbDeviceAdded() 389 getCurrentUserSettings().deviceAttachedForFixedHandler(newDevice, in usbDeviceAdded() 393 mUsbAlsaManager.usbDeviceAdded(deviceAddress, newDevice, parser); in usbDeviceAdded()
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.cpp | 225 audio_devices_t newDevice = getNewOutputDevice(mPrimaryOutput, false /*fromCache*/); in setDeviceConnectionStateInt() local 226 updateCallRouting(newDevice); in setDeviceConnectionStateInt() 231 audio_devices_t newDevice = getNewOutputDevice(desc, true /*fromCache*/); in setDeviceConnectionStateInt() local 239 setOutputDevice(desc, newDevice, force, 0); in setDeviceConnectionStateInt() 322 audio_devices_t newDevice = getNewOutputDevice(mPrimaryOutput, false /*fromCache*/); in setDeviceConnectionStateInt() local 323 updateCallRouting(newDevice); in setDeviceConnectionStateInt() 640 audio_devices_t newDevice = getNewOutputDevice(desc, true /*fromCache*/); in setPhoneState() local 642 setOutputDevice(desc, newDevice, (newDevice != AUDIO_DEVICE_NONE), 0 /*delayMs*/); in setPhoneState() 700 audio_devices_t newDevice = getNewOutputDevice(mPrimaryOutput, true /*fromCache*/); in setForceUse() local 701 waitMs = updateCallRouting(newDevice, delayMs); in setForceUse() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | WifiDisplayController.java | 693 final WifiP2pDevice newDevice = mDesiredDevice; in updateConnection() local 700 Slog.i(TAG, "Initiated connection to Wifi display: " + newDevice.deviceName); in updateConnection() 707 if (mConnectingDevice == newDevice) { in updateConnection() 709 + newDevice.deviceName + ", reason=" + reason); in updateConnection()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiControlService.java | 1023 HdmiMhlLocalDeviceStub newDevice = new HdmiMhlLocalDeviceStub(this, portId); in handleMhlHotplugEvent() local 1024 HdmiMhlLocalDeviceStub oldDevice = mMhlController.addLocalDevice(newDevice); in handleMhlHotplugEvent() 1029 invokeDeviceEventListeners(newDevice.getInfo(), DEVICE_EVENT_ADD_DEVICE); in handleMhlHotplugEvent()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 4728 private void onAccessoryPlugMediaUnmute(int newDevice) { in onAccessoryPlugMediaUnmute() argument 4731 newDevice, AudioSystem.getOutputDeviceName(newDevice))); in onAccessoryPlugMediaUnmute() 4735 && (newDevice & DEVICE_MEDIA_UNMUTED_ON_PLUG) != 0 in onAccessoryPlugMediaUnmute() 4737 && mStreamStates[AudioSystem.STREAM_MUSIC].getIndex(newDevice) != 0 in onAccessoryPlugMediaUnmute() 4738 && (newDevice & AudioSystem.getDevicesForStream(AudioSystem.STREAM_MUSIC)) != 0) in onAccessoryPlugMediaUnmute() 4742 newDevice, AudioSystem.getOutputDeviceName(newDevice))); in onAccessoryPlugMediaUnmute()
|
/frameworks/av/services/audioflinger/ |
D | Threads.cpp | 712 const audio_devices_t newDevice = getDevice(); in processConfigEvents_l() local 715 (unsigned)newDevice, devicesToString(newDevice).c_str()); in processConfigEvents_l() 722 const audio_devices_t newDevice = getDevice(); in processConfigEvents_l() local 725 (unsigned)newDevice, devicesToString(newDevice).c_str()); in processConfigEvents_l()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 1055 InputDevice* newDevice(int32_t deviceId, int32_t controllerNumber, const String8& name, in newDevice() function in android::InstrumentedInputReader 1134 InputDevice* device = mReader->newDevice(deviceId, controllerNumber, name, classes); in addDeviceWithFakeInputMapper() 1172 InputDevice* device = mReader->newDevice(deviceId, 0, String8("fake"), deviceClass); in TEST_F()
|