Home | History | Annotate | Download | only in storage_monitor

Lines Matching refs:pnp_device_id

66 // Gets the friendly name of the device specified by the |pnp_device_id|. On
68 bool GetFriendlyName(const base::string16& pnp_device_id,
74 HRESULT hr = device_manager->GetDeviceFriendlyName(pnp_device_id.c_str(),
80 pnp_device_id.c_str(), WriteInto(name, name_len), &name_len);
84 // Gets the manufacturer name of the device specified by the |pnp_device_id|.
86 bool GetManufacturerName(const base::string16& pnp_device_id,
92 HRESULT hr = device_manager->GetDeviceManufacturer(pnp_device_id.c_str(),
97 hr = device_manager->GetDeviceManufacturer(pnp_device_id.c_str(),
103 // Gets the description of the device specified by the |pnp_device_id|. On
105 bool GetDeviceDescription(const base::string16& pnp_device_id,
111 HRESULT hr = device_manager->GetDeviceDescription(pnp_device_id.c_str(), NULL,
116 hr = device_manager->GetDeviceDescription(pnp_device_id.c_str(),
146 // Opens the device for communication. |pnp_device_id| specifies the plug and
149 bool SetUp(const base::string16& pnp_device_id,
162 hr = (*device)->Open(pnp_device_id.c_str(), client_info.get());
298 // |pnp_device_id| specifies the plug and play device id.
300 bool IsMassStoragePortableDevice(const base::string16& pnp_device_id,
304 if (StartsWith(pnp_device_id, L"\\\\?\\wpdbusenumroot#", false))
314 // Returns the name of the device specified by |pnp_device_id|.
317 const base::string16& pnp_device_id) {
321 GetFriendlyName(pnp_device_id, portable_device_manager, &name) ||
322 GetDeviceDescription(pnp_device_id, portable_device_manager, &name) ||
323 GetManufacturerName(pnp_device_id, portable_device_manager, &name);
330 const base::string16& pnp_device_id,
335 if (!SetUp(pnp_device_id, &device))
365 // false. |pnp_device_id| specifies the plug and play device ID string.
368 const base::string16& pnp_device_id,
373 DCHECK(!pnp_device_id.empty());
375 pnp_device_id);
376 if (IsMassStoragePortableDevice(pnp_device_id, device_details->name))
379 device_details->location = pnp_device_id;
382 pnp_device_id, &device_details->storage_objects);
435 // |pnp_device_id| specifies the attached plug and play device ID string. On
439 const base::string16& pnp_device_id,
449 return GetDeviceInfoOnBlockingThread(portable_device_mgr, pnp_device_id,
599 const base::string16& pnp_device_id) {
606 base::Bind(&HandleDeviceAttachedEventOnBlockingThread, pnp_device_id,
650 const base::string16& pnp_device_id) {
652 MTPDeviceMap::iterator device_iter = device_map_.find(pnp_device_id);