/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
D | BluetoothStressTest.java | 147 BluetoothDevice device = mAdapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testPair() local 149 mTestUtils.unpair(mAdapter, device); in testPair() 153 mTestUtils.pair(mAdapter, device, BluetoothTestRunner.sDevicePairPasskey, in testPair() 155 mTestUtils.unpair(mAdapter, device); in testPair() 170 BluetoothDevice device = mAdapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testAcceptPair() local 172 mTestUtils.unpair(mAdapter, device); in testAcceptPair() 176 mTestUtils.acceptPair(mAdapter, device, BluetoothTestRunner.sDevicePairPasskey, in testAcceptPair() 178 mTestUtils.unpair(mAdapter, device); in testAcceptPair() 194 BluetoothDevice device = mAdapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectA2dp() local 196 mTestUtils.unpair(mAdapter, device); in testConnectA2dp() [all …]
|
/frameworks/native/vulkan/vkjson/ |
D | vkjson_instance.cc | 58 VkJsonDevice device; in VkJsonGetDevice() local 64 device.extensions.resize(extension_count); in VkJsonGetDevice() 66 physical_device, nullptr, &extension_count, device.extensions.data()); in VkJsonGetDevice() 72 device.layers.resize(layer_count); in VkJsonGetDevice() 74 device.layers.data()); in VkJsonGetDevice() 82 if (HasExtension("VK_KHR_driver_properties", device.extensions)) { in VkJsonGetDevice() 83 device.ext_driver_properties.reported = true; in VkJsonGetDevice() 84 device.ext_driver_properties.driver_properties_khr.sType = in VkJsonGetDevice() 86 device.ext_driver_properties.driver_properties_khr.pNext = properties.pNext; in VkJsonGetDevice() 87 properties.pNext = &device.ext_driver_properties.driver_properties_khr; in VkJsonGetDevice() [all …]
|
/frameworks/native/services/inputflinger/reader/ |
D | EventHub.cpp | 738 Device* device = getDeviceLocked(deviceId); in getDeviceIdentifier() local 739 return device != nullptr ? device->identifier : InputDeviceIdentifier(); in getDeviceIdentifier() 744 Device* device = getDeviceLocked(deviceId); in getDeviceClasses() local 745 return device != nullptr ? device->classes : Flags<InputDeviceClass>(0); in getDeviceClasses() 750 Device* device = getDeviceLocked(deviceId); in getDeviceControllerNumber() local 751 return device != nullptr ? device->controllerNumber : 0; in getDeviceControllerNumber() 756 Device* device = getDeviceLocked(deviceId); in getConfiguration() local 757 if (device != nullptr && device->configuration) { in getConfiguration() 758 *outConfiguration = *device->configuration; in getConfiguration() 771 Device* device = getDeviceLocked(deviceId); in getAbsoluteAxisInfo() local [all …]
|
D | InputReader.cpp | 195 std::shared_ptr<InputDevice> device = createDeviceLocked(eventHubId, identifier); in addDeviceLocked() local 196 device->configure(when, &mConfig, 0); in addDeviceLocked() 197 device->reset(when); in addDeviceLocked() 199 if (device->isIgnored()) { in addDeviceLocked() 202 device->getId(), eventHubId, identifier.name.c_str(), identifier.descriptor.c_str()); in addDeviceLocked() 205 device->getId(), eventHubId, identifier.name.c_str(), identifier.descriptor.c_str(), in addDeviceLocked() 206 device->getSources()); in addDeviceLocked() 209 mDevices.emplace(eventHubId, device); in addDeviceLocked() 211 const auto mapIt = mDeviceToEventHubIdsMap.find(device); in addDeviceLocked() 214 mDeviceToEventHubIdsMap.emplace(device, ids); in addDeviceLocked() [all …]
|
/frameworks/base/core/java/android/companion/ |
D | BluetoothDeviceFilterUtils.java | 55 static boolean matchesAddress(String deviceAddress, BluetoothDevice device) { in matchesAddress() argument 57 || (device != null && deviceAddress.equals(device.getAddress())); in matchesAddress() 58 if (DEBUG) debugLogMatchResult(result, device, deviceAddress); in matchesAddress() 63 List<ParcelUuid> serviceUuidMasks, BluetoothDevice device) { in matchesServiceUuids() argument 67 if (!matchesServiceUuid(uuid, uuidMask, device)) { in matchesServiceUuids() 75 BluetoothDevice device) { in matchesServiceUuid() argument 76 ParcelUuid[] uuids = device.getUuids(); in matchesServiceUuid() 82 if (DEBUG) debugLogMatchResult(result, device, serviceUuid); in matchesServiceUuid() 86 static boolean matchesName(@Nullable Pattern namePattern, BluetoothDevice device) { in matchesName() argument 90 } else if (device == null) { in matchesName() [all …]
|
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/ |
D | UsbDeviceStateController.java | 38 void onDeviceResetComplete(UsbDevice device); in onDeviceResetComplete() argument 102 public void startDeviceReset(UsbDevice device) { in startDeviceReset() argument 103 mHandler.requestDeviceReset(device); in startDeviceReset() 110 private void doHandleDeviceReset(UsbDevice device) { in doHandleDeviceReset() argument 111 boolean isInAoap = AoapInterface.isDeviceInAoapMode(device); in doHandleDeviceReset() 114 completedDevice = resetUsbDeviceAndConfirmModeChange(device); in doHandleDeviceReset() 116 UsbDeviceConnection conn = openConnection(device); in doHandleDeviceReset() 118 throw new RuntimeException("cannot open conneciton for device: " + device); in doHandleDeviceReset() 122 throw new RuntimeException("resetDevice failed for devie: " + device); in doHandleDeviceReset() 124 completedDevice = device; in doHandleDeviceReset() [all …]
|
/frameworks/native/vulkan/libvulkan/ |
D | api_gen.cpp | 86 VKAPI_ATTR VkResult disabledCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR*, co… in disabledCreateSwapchainKHR() argument 87 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkCreateSwapchainKHR no… in disabledCreateSwapchainKHR() 91 VKAPI_ATTR void disabledDestroySwapchainKHR(VkDevice device, VkSwapchainKHR, const VkAllocationCall… in disabledDestroySwapchainKHR() argument 92 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkDestroySwapchainKHR n… in disabledDestroySwapchainKHR() 95 VKAPI_ATTR VkResult disabledGetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR, uint32_t*, VkIma… in disabledGetSwapchainImagesKHR() argument 96 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkGetSwapchainImagesKHR… in disabledGetSwapchainImagesKHR() 100 VKAPI_ATTR VkResult disabledAcquireNextImageKHR(VkDevice device, VkSwapchainKHR, uint64_t, VkSemaph… in disabledAcquireNextImageKHR() argument 101 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkAcquireNextImageKHR n… in disabledAcquireNextImageKHR() 110 VKAPI_ATTR VkResult disabledGetDeviceGroupPresentCapabilitiesKHR(VkDevice device, VkDeviceGroupPres… in disabledGetDeviceGroupPresentCapabilitiesKHR() argument 111 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkGetDeviceGroupPresent… in disabledGetDeviceGroupPresentCapabilitiesKHR() [all …]
|
D | driver_gen.cpp | 33 VKAPI_ATTR VkResult checkedCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR* pCre… in checkedCreateSwapchainKHR() argument 34 if (GetData(device).hook_extensions[ProcHook::KHR_swapchain]) { in checkedCreateSwapchainKHR() 35 return CreateSwapchainKHR(device, pCreateInfo, pAllocator, pSwapchain); in checkedCreateSwapchainKHR() 37 … Logger(device).Err(device, "VK_KHR_swapchain not enabled. vkCreateSwapchainKHR not executed."); in checkedCreateSwapchainKHR() 42 VKAPI_ATTR void checkedDestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain, const VkAlloc… in checkedDestroySwapchainKHR() argument 43 if (GetData(device).hook_extensions[ProcHook::KHR_swapchain]) { in checkedDestroySwapchainKHR() 44 DestroySwapchainKHR(device, swapchain, pAllocator); in checkedDestroySwapchainKHR() 46 … Logger(device).Err(device, "VK_KHR_swapchain not enabled. vkDestroySwapchainKHR not executed."); in checkedDestroySwapchainKHR() 50 VKAPI_ATTR VkResult checkedGetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR swapchain, uint32_… in checkedGetSwapchainImagesKHR() argument 51 if (GetData(device).hook_extensions[ProcHook::KHR_swapchain]) { in checkedGetSwapchainImagesKHR() [all …]
|
/frameworks/base/tests/utils/hostutils/src/com/android/internal/util/test/ |
D | SystemPreparer.java | 22 import com.android.tradefed.device.DeviceNotAvailableException; 23 import com.android.tradefed.device.ITestDevice; 95 final ITestDevice device = mDeviceProvider.getDevice(); in pushResourceFile() local 97 assertTrue(device.pushFile(copyResourceToTemp(filePath), outputPath)); in pushResourceFile() 98 addPushedFile(device, outputPath); in pushResourceFile() 105 final ITestDevice device = mDeviceProvider.getDevice(); in pushFile() local 107 assertTrue(device.pushFile(file, outputPath)); in pushFile() 108 addPushedFile(device, outputPath); in pushFile() 112 private void addPushedFile(ITestDevice device, String outputPath) in addPushedFile() argument 118 && !device.doesFileExist(pathCreated.getParent().toString())) { in addPushedFile() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayDeviceRepository.java | 77 public void onDisplayDeviceEvent(DisplayDevice device, int event) { in onDisplayDeviceEvent() argument 80 handleDisplayDeviceAdded(device); in onDisplayDeviceEvent() 84 handleDisplayDeviceChanged(device); in onDisplayDeviceEvent() 88 handleDisplayDeviceRemoved(device); in onDisplayDeviceEvent() 118 final DisplayDevice device = mDisplayDevices.get(i); in getByAddressLocked() local 119 if (address.equals(device.getDisplayDeviceInfoLocked().address)) { in getByAddressLocked() 120 return device; in getByAddressLocked() 126 private void handleDisplayDeviceAdded(DisplayDevice device) { in handleDisplayDeviceAdded() argument 128 DisplayDeviceInfo info = device.getDisplayDeviceInfoLocked(); in handleDisplayDeviceAdded() 129 if (mDisplayDevices.contains(device)) { in handleDisplayDeviceAdded() [all …]
|
/frameworks/base/core/java/android/hardware/usb/ |
D | DeviceFilter.java | 73 public DeviceFilter(UsbDevice device) { in DeviceFilter() argument 74 mVendorId = device.getVendorId(); in DeviceFilter() 75 mProductId = device.getProductId(); in DeviceFilter() 76 mClass = device.getDeviceClass(); in DeviceFilter() 77 mSubclass = device.getDeviceSubclass(); in DeviceFilter() 78 mProtocol = device.getDeviceProtocol(); in DeviceFilter() 79 mManufacturerName = device.getManufacturerName(); in DeviceFilter() 80 mProductName = device.getProductName(); in DeviceFilter() 81 mSerialNumber = device.getSerialNumber(); in DeviceFilter() 185 public boolean matches(UsbDevice device) { in matches() argument [all …]
|
/frameworks/base/core/jni/ |
D | android_hardware_UsbDeviceConnection.cpp | 57 struct usb_device* device = usb_device_new(deviceNameStr, fd); in android_hardware_UsbDeviceConnection_open() local 58 if (device) { in android_hardware_UsbDeviceConnection_open() 59 env->SetLongField(thiz, field_context, (jlong)device); in android_hardware_UsbDeviceConnection_open() 66 return (device != NULL) ? JNI_TRUE : JNI_FALSE; in android_hardware_UsbDeviceConnection_open() 73 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_close() local 74 if (device) { in android_hardware_UsbDeviceConnection_close() 75 usb_device_close(device); in android_hardware_UsbDeviceConnection_close() 83 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_get_fd() local 84 if (!device) { in android_hardware_UsbDeviceConnection_get_fd() 88 return usb_device_get_fd(device); in android_hardware_UsbDeviceConnection_get_fd() [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
D | SdCardEjectionTests.kt | 79 device.uninstallPackages(VERSION_ONE, VERSION_USES_PKG_NAME, VERSION_DECLARES_PKG_NAME) in parameters() 81 device.reboot() in parameters() 87 assertThat(device.installPackage(hostApkFile, true)).isNull() in launchActivity() 91 val response = device.executeShellCommand("am start -n $TEST_PKG_NAME/.TestActivity") in launchActivity() 115 assertThat(device.installJavaResourceApk(tempFolder, VERSION_DECLARES)).isNull() in uninstallStaticLibraryInUse() 118 assertThat(device.installPackage(usesApkFile, true)).isNull() in uninstallStaticLibraryInUse() 120 fun assertUninstallFails() = assertThat(device.uninstallPackage(VERSION_DECLARES_PKG_NAME)) in uninstallStaticLibraryInUse() 137 assertThat(device.uninstallPackage(VERSION_USES_PKG_NAME)).isNull() in uninstallStaticLibraryInUse() 138 assertThat(device.uninstallPackage(VERSION_DECLARES_PKG_NAME)).isNull() in uninstallStaticLibraryInUse() 145 val existingDisks = device.executeShellCommand("sm list-disks adoptable").lines() in initializeVirtualDisk() [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothHidHost.java | 293 public boolean connect(BluetoothDevice device) { in connect() argument 294 if (DBG) log("connect(" + device + ")"); in connect() 296 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 298 return service.connect(device, mAttributionSource); in connect() 335 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 336 if (DBG) log("disconnect(" + device + ")"); in disconnect() 338 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 340 return service.disconnect(device, mAttributionSource); in disconnect() 409 public int getConnectionState(@NonNull BluetoothDevice device) { in getConnectionState() argument 410 if (VDBG) log("getState(" + device + ")"); in getConnectionState() [all …]
|
D | BluetoothHearingAid.java | 184 public boolean connect(BluetoothDevice device) { in connect() argument 185 if (DBG) log("connect(" + device + ")"); in connect() 188 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 189 return service.connect(device, mAttributionSource); in connect() 226 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 227 if (DBG) log("disconnect(" + device + ")"); in disconnect() 230 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 231 return service.disconnect(device, mAttributionSource); in disconnect() 294 @NonNull BluetoothDevice device) { in getConnectionState() 295 if (VDBG) log("getState(" + device + ")"); in getConnectionState() [all …]
|
D | BluetoothHeadsetClient.java | 481 public boolean connect(BluetoothDevice device) { in connect() argument 482 if (DBG) log("connect(" + device + ")"); in connect() 485 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 487 return service.connect(device, mAttributionSource); in connect() 509 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 510 if (DBG) log("disconnect(" + device + ")"); in disconnect() 513 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 515 return service.disconnect(device, mAttributionSource); in disconnect() 587 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument 588 if (VDBG) log("getConnectionState(" + device + ")"); in getConnectionState() [all …]
|
D | BluetoothHidDevice.java | 267 public void onConnectionStateChanged(BluetoothDevice device, int state) { in onConnectionStateChanged() argument 268 Log.d(TAG, "onConnectionStateChanged: device=" + device + " state=" + state); in onConnectionStateChanged() 281 public void onGetReport(BluetoothDevice device, byte type, byte id, int bufferSize) { in onGetReport() argument 285 + device in onGetReport() 303 public void onSetReport(BluetoothDevice device, byte type, byte id, byte[] data) { in onSetReport() argument 304 Log.d(TAG, "onSetReport: device=" + device + " type=" + type + " id=" + id); in onSetReport() 314 public void onSetProtocol(BluetoothDevice device, byte protocol) { in onSetProtocol() argument 315 Log.d(TAG, "onSetProtocol: device=" + device + " protocol=" + protocol); in onSetProtocol() 325 public void onInterruptData(BluetoothDevice device, byte reportId, byte[] data) { in onInterruptData() argument 326 Log.d(TAG, "onInterruptData: device=" + device + " reportId=" + reportId); in onInterruptData() [all …]
|
D | BluetoothA2dp.java | 325 public boolean connect(BluetoothDevice device) { in connect() argument 326 if (DBG) log("connect(" + device + ")"); in connect() 329 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 330 return service.connect(device); in connect() 367 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 368 if (DBG) log("disconnect(" + device + ")"); in disconnect() 371 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 372 return service.disconnect(device); in disconnect() 435 public @BtProfileState int getConnectionState(BluetoothDevice device) { in getConnectionState() argument 436 if (VDBG) log("getState(" + device + ")"); in getConnectionState() [all …]
|
D | BluetoothMapClient.java | 222 public boolean isConnected(BluetoothDevice device) { in isConnected() argument 223 if (VDBG) Log.d(TAG, "isConnected(" + device + ")"); in isConnected() 227 return service.isConnected(device, mAttributionSource); in isConnected() 249 public boolean connect(BluetoothDevice device) { in connect() argument 250 if (DBG) Log.d(TAG, "connect(" + device + ")" + "for MAPS MCE"); in connect() 254 return service.connect(device, mAttributionSource); in connect() 278 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 279 if (DBG) Log.d(TAG, "disconnect(" + device + ")"); in disconnect() 281 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 283 return service.disconnect(device, mAttributionSource); in disconnect() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | HearingAidProfile.java | 64 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local 66 if (device == null) { in onServiceConnected() 70 device = mDeviceManager.addDevice(nextDevice); in onServiceConnected() 72 device.onProfileStateChanged(HearingAidProfile.this, in onServiceConnected() 74 device.refresh(); in onServiceConnected() 154 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() argument 158 return mService.getConnectionState(device); in getConnectionStatus() 161 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() argument 165 return device == null in setActiveDevice() 167 : mBluetoothAdapter.setActiveDevice(device, ACTIVE_DEVICE_ALL); in setActiveDevice() [all …]
|
D | A2dpProfile.java | 72 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local 74 if (device == null) { in onServiceConnected() 76 device = mDeviceManager.addDevice(nextDevice); in onServiceConnected() 78 device.onProfileStateChanged(A2dpProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 79 device.refresh(); in onServiceConnected() 156 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() argument 160 return mService.getConnectionState(device); in getConnectionStatus() 163 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() argument 167 return device == null in setActiveDevice() 169 : mBluetoothAdapter.setActiveDevice(device, ACTIVE_DEVICE_AUDIO); in setActiveDevice() [all …]
|
D | HeadsetProfile.java | 71 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local 73 if (device == null) { in onServiceConnected() 75 device = mDeviceManager.addDevice(nextDevice); in onServiceConnected() 77 device.onProfileStateChanged(HeadsetProfile.this, in onServiceConnected() 79 device.refresh(); in onServiceConnected() 117 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() argument 121 return mService.getConnectionState(device); in getConnectionStatus() 124 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() argument 129 return device == null in setActiveDevice() 131 : mBluetoothAdapter.setActiveDevice(device, ACTIVE_DEVICE_PHONE_CALL); in setActiveDevice() [all …]
|
/frameworks/native/vulkan/nulldrv/ |
D | null_driver_gen.h | 34 VKAPI_ATTR PFN_vkVoidFunction GetDeviceProcAddr(VkDevice device, const char* pName); 43 VKAPI_ATTR void DestroyDevice(VkDevice device, const VkAllocationCallbacks* pAllocator); 49 VKAPI_ATTR void GetDeviceQueue(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQ… 52 VKAPI_ATTR VkResult DeviceWaitIdle(VkDevice device); 53 VKAPI_ATTR VkResult AllocateMemory(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, cons… 54 VKAPI_ATTR void FreeMemory(VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAl… 55 VKAPI_ATTR VkResult MapMemory(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDevice… 56 VKAPI_ATTR void UnmapMemory(VkDevice device, VkDeviceMemory memory); 57 VKAPI_ATTR VkResult FlushMappedMemoryRanges(VkDevice device, uint32_t memoryRangeCount, const VkMap… 58 VKAPI_ATTR VkResult InvalidateMappedMemoryRanges(VkDevice device, uint32_t memoryRangeCount, const … [all …]
|
/frameworks/base/libs/usb/tests/accessorytest/ |
D | usb.c | 78 static void send_string(struct usb_device *device, int index, const char* string) { in send_string() argument 79 usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, in send_string() 91 struct usb_device *device = usb_device_open(devname); in usb_device_added() local 92 if (!device) { in usb_device_added() 97 vendorId = usb_device_get_vendor_id(device); in usb_device_added() 98 productId = usb_device_get_product_id(device); in usb_device_added() 104 current_device = device; in usb_device_added() 116 usb_descriptor_iter_init(device, &iter); in usb_device_added() 137 if (usb_device_claim_interface(device, intf->bInterfaceNumber)) { in usb_device_added() 157 ret = usb_device_control_transfer(device, USB_DIR_IN | USB_TYPE_VENDOR, in usb_device_added() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | LocalMediaManager.java | 155 MediaDevice device = null; in connectDevice() local 157 device = getMediaDeviceById(mMediaDevices, connectDevice.getId()); in connectDevice() 159 if (device == null) { in connectDevice() 163 if (device instanceof BluetoothMediaDevice) { in connectDevice() 165 ((BluetoothMediaDevice) device).getCachedDevice(); in connectDevice() 168 device.setState(MediaDeviceState.STATE_CONNECTING); in connectDevice() 174 if (device == mCurrentConnectedDevice) { in connectDevice() 175 Log.d(TAG, "connectDevice() this device all ready connected! : " + device.getName()); in connectDevice() 183 device.setState(MediaDeviceState.STATE_CONNECTING); in connectDevice() 185 mInfoMediaManager.connectDeviceWithoutPackageName(device); in connectDevice() [all …]
|