/external/chromium_org/chrome/browser/extensions/api/image_writer_private/ |
removable_storage_provider_chromeos.cc | 17 // fixed disk. In fact, some SD cards will present themselves as fixed disks 28 const DiskMountManager::Disk& disk = *iter->second; local 29 if (disk.is_parent() && !disk.on_boot_device() && disk.has_media() && 30 (disk.device_type() == chromeos::DEVICE_TYPE_USB || 31 disk.device_type() == chromeos::DEVICE_TYPE_SD)) { 34 device->storage_unit_id = disk.device_path(); 35 device->capacity = disk.total_size_in_bytes() [all...] |
/external/chromium_org/chrome/browser/chromeos/imageburner/ |
burn_device_handler.cc | 21 // Returns true when |disk| is a device on which we can burn recovery image. 22 bool IsBurnableDevice(const DiskMountManager::Disk& disk) { 23 return disk.is_parent() && !disk.on_boot_device() && disk.has_media() && 24 (disk.device_type() == DEVICE_TYPE_USB || 25 disk.device_type() == DEVICE_TYPE_SD); 46 std::vector<DiskMountManager::Disk> BurnDeviceHandler::GetBurnableDevices() { 48 std::vector<DiskMountManager::Disk> result 52 const DiskMountManager::Disk& disk = *iter->second; local [all...] |
burn_controller.h | 36 virtual void OnDeviceAdded(const disks::DiskMountManager::Disk& disk) = 0; 38 virtual void OnDeviceRemoved(const disks::DiskMountManager::Disk& disk) = 0; 63 virtual std::vector<disks::DiskMountManager::Disk> GetBurnableDevices() = 0;
|
burn_device_handler_unittest.cc | 37 // Emulates to add new disk physically (e.g., connecting a 39 void EmulateAddDisk(scoped_ptr<Disk> in_disk) { 44 Disk* disk = in_disk.get(); local 45 bool new_disk = InsertDisk(disk->device_path(), in_disk.Pass()); 48 OnDiskEvent(new_disk ? DISK_ADDED : DISK_CHANGED, disk)); 51 // Emulates to remove a disk phyically (e.g., removing a USB flash from 54 scoped_ptr<Disk> disk(RemoveDisk(source_path)); 55 if (disk.get()) [all...] |
burn_controller.cc | 46 const disks::DiskMountManager::Disk& disk) OVERRIDE { 47 delegate_->OnDeviceAdded(disk); 52 const disks::DiskMountManager::Disk& disk) OVERRIDE { 53 delegate_->OnDeviceRemoved(disk); 110 virtual std::vector<disks::DiskMountManager::Disk> GetBurnableDevices() 159 const disks::DiskMountManager::Disk* disk = local 161 return disk ? disk->total_size_in_bytes() : 0 [all...] |
burn_device_handler.h | 26 typedef base::Callback<void(const disks::DiskMountManager::Disk& disk)> 44 std::vector<disks::DiskMountManager::Disk> GetBurnableDevices(); 49 const disks::DiskMountManager::Disk* disk) OVERRIDE;
|
/external/e2fsprogs/lib/quota/ |
quotaio_tree.h | 37 /* Convert given entry from in memory format to disk one */ 38 void (*mem2disk_dqblk)(void *disk, struct dquot *dquot); 39 /* Convert given entry from disk format to in memory one */ 40 void (*disk2mem_dqblk)(struct dquot *dquot, void *disk); 42 int (*is_id)(void *disk, struct dquot *dquot); 58 int qtree_entry_unused(struct qtree_mem_dqinfo *info, char *disk);
|
/external/chromium_org/chrome/utility/image_writer/ |
disk_unmounter_mac.h | 21 // Manages the unmounting of disks through Disk Arbitration. Disk Arbitration 40 // Handles disk-claimed callbacks. 41 static void DiskClaimed(DADiskRef disk, 44 // Handles when we fail to claim a disk. 45 static DADissenterRef DiskClaimRevoked(DADiskRef disk, void* context); 46 // Handles the disk-unmounted callback. 47 static void DiskUnmounted(DADiskRef disk,
|
disk_unmounter_mac.cc | 47 void DiskUnmounterMac::DiskClaimed(DADiskRef disk, 53 LOG(ERROR) << "Unable to claim disk."; 58 DADiskUnmount(disk, 65 DADissenterRef DiskUnmounterMac::DiskClaimRevoked(DADiskRef disk, 68 "Hi. Sorry to bother you, but I'm busy overwriting the entire disk " 76 void DiskUnmounterMac::DiskUnmounted(DADiskRef disk, 82 LOG(ERROR) << "Unable to unmount disk."; 108 LOG(ERROR) << "Unable to get disk reference.";
|
/external/e2fsprogs/misc/ |
base_device.c | 6 * one time. Otherwise, the disk heads will be seeking all over the 44 const char **hier, *disk; local 64 * on one disk, since we don't know how to parallelize them. 124 /* Now handle devfs /dev/disc or /dev/disk names */ 125 disk = 0; 127 disk = "disc"; 129 disk = "disk"; 130 if (disk) { 132 if (strncmp(cp, disk, 4) != 0 [all...] |
/external/chromium_org/chrome/browser/chromeos/file_manager/ |
mounted_disk_monitor.cc | 64 const DiskMountManager::Disk& disk) const { 65 return unmounted_while_resuming_.count(disk.fs_uuid()) > 0; 89 const DiskMountManager::Disk* disk = local 91 if (!disk || error_code != chromeos::MOUNT_ERROR_NONE) 93 mounted_disks_[mount_info.source_path] = disk->fs_uuid(); 112 const chromeos::disks::DiskMountManager::Disk* disk) { 114 // If the mount path is not empty, the disk is hard unplugged [all...] |
volume_manager_observer.h | 22 // Fired when a new disk is added. 24 const chromeos::disks::DiskMountManager::Disk& disk, bool mounting) = 0; 26 // Fired when a disk is removed. 28 const chromeos::disks::DiskMountManager::Disk& disk) = 0;
|
fake_disk_mount_manager.cc | 51 const chromeos::disks::DiskMountManager::Disk* 112 bool FakeDiskMountManager::AddDiskForTest(Disk* disk) { 113 DCHECK(disk); 114 return disks_.insert(make_pair(disk->device_path(), disk)).second; 124 const chromeos::disks::DiskMountManager::Disk* disk) { 127 OnDiskEvent(event, disk));
|
fake_disk_mount_manager.h | 55 virtual const Disk* FindDiskBySourcePath( 71 virtual bool AddDiskForTest(Disk* disk) OVERRIDE; 74 void InvokeDiskEventForTest(DiskEvent event, const Disk* disk);
|
mounted_disk_monitor.h | 40 const chromeos::disks::DiskMountManager::Disk* disk) OVERRIDE; 54 // Checks if the disk is being remounted. The disk is remounting if it has 57 const chromeos::disks::DiskMountManager::Disk& disk) const;
|
/external/chromium_org/components/storage_monitor/ |
storage_monitor_mac.h | 19 // This class posts notifications to listeners when a new disk 50 static void DiskAppearedCallback(DADiskRef disk, void* context); 51 static void DiskDisappearedCallback(DADiskRef disk, void* context); 52 static void DiskDescriptionChangedCallback(DADiskRef disk, 55 void GetDiskInfoAndUpdate(DADiskRef disk, UpdateType update_type); 62 // Maps disk bsd names to disk info objects. This map tracks all mountable
|
storage_monitor_chromeos.cc | 28 std::string MakeDeviceUniqueId(const DiskMountManager::Disk& disk) { 29 std::string uuid = disk.fs_uuid(); 38 const std::string& vendor = disk.vendor_id(); 39 const std::string& product = disk.product_id(); 53 const DiskMountManager::Disk* disk = local 55 if (!disk || disk->device_type() == chromeos::DEVICE_TYPE_UNKNOWN) 58 std::string unique_id = MakeDeviceUniqueId(*disk); [all...] |
/external/chromium_org/chromeos/disks/ |
disk_mount_manager_unittest.cc | 24 // Holds information needed to create a DiskMountManager::Disk instance. 102 const DiskMountManager::Disk* disk)); 121 // Initializes disk mount manager disks and mount points. 122 // Adds a test observer to the disk mount manager. 138 // Shuts down dbus thread manager and disk moutn manager used in the test. 146 // Checks if disk mount manager contains a mount point with specified moutn 155 // Adds a new disk to the disk mount manager. 156 void AddTestDisk(const TestDiskInfo& disk) { [all...] |
disk_mount_manager.cc | 113 DiskMap::const_iterator disk = disks_.find(device_path); variable 114 if (disk == disks_.end()) { 120 UnmountPath(disk->second->mount_path(), 203 virtual const Disk* FindDiskBySourcePath(const std::string& source_path) 215 virtual bool AddDiskForTest(Disk* disk) OVERRIDE { 216 if (disks_.find(disk->device_path()) != disks_.end()) { 217 LOG(ERROR) << "Attempt to add a duplicate disk"; 221 disks_.insert(std::make_pair(disk->device_path(), disk)); 336 Disk* disk = iter->second; local 390 DiskMap::const_iterator disk = disks_.find(device_path); local 434 Disk* disk = new Disk(disk_info.device_path(), local 475 Disk* disk = iter->second; local 502 Disk* disk = iter->second; local [all...] |
mock_disk_mount_manager.cc | 69 scoped_ptr<DiskMountManager::Disk> disk1(new DiskMountManager::Disk( 91 disks_.insert(std::pair<std::string, DiskMountManager::Disk*>( 97 // Disk Added 100 // Disk Changed 101 scoped_ptr<DiskMountManager::Disk> disk2(new DiskMountManager::Disk( 122 disks_.insert(std::pair<std::string, DiskMountManager::Disk*>( 128 scoped_ptr<DiskMountManager::Disk> disk(new DiskMountManager::Disk 188 Disk* disk = new DiskMountManager::Disk(mount_info.source_path, local [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/lib-scriptpackages/Finder/ |
Containers_and_folders.py | 18 class disk(aetools.ComponentItem): class in inherits:aetools.ComponentItem 19 """disk - A disk """ 26 """capacity - the total number of bytes (free or used) on the disk """ 34 """format - the filesystem format of this disk """ 38 """free space - the number of free bytes left on the disk """ 42 """ignore privileges - Ignore permissions on this disk? """ 50 """startup - Is this disk the boot disk? """ 64 disks = disk [all...] |
/external/fio/tools/plot/ |
fio2gnuplot | 142 f.write("# Disk%d was coming from %s\n" % (index,fio_data_file[index])) 246 for disk in xrange(len(fio_data_file)): 247 # print disk_perf[disk] 248 min_file.write("# Disk%d was coming from %s\n" % (disk,fio_data_file[disk])) 249 max_file.write("# Disk%d was coming from %s\n" % (disk,fio_data_file[disk])) 250 average_file.write("# Disk%d was coming from %s\n" % (disk,fio_data_file[disk]) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/lib-scriptpackages/SystemEvents/ |
Disk_Folder_File_Suite.py | 1 """Suite Disk-Folder-File Suite: Terms and Events for controlling Disks, Folders, and Files 20 """move: Move disk item(s) to a new location. 22 Keyword argument to: The new location for the disk item(s). 43 """application - The Disk-Folder-File Suite host program """ 56 """properties - every property of the Disk-Folder-File Suite host program """ 74 class disk(aetools.ComponentItem): class in inherits:aetools.ComponentItem 75 """disk - A disk in the file system """ 78 """POSIX path - the POSIX file system path of the disk """ 82 """capacity - the total number of bytes (free or used) on the disk """ [all...] |
/external/chromium_org/chrome/browser/ui/webui/chromeos/imageburner/ |
imageburner_ui.cc | 129 virtual void OnDeviceAdded(const disks::DiskMountManager::Disk& disk) 132 CreateDiskValue(disk, &disk_value); 137 virtual void OnDeviceRemoved(const disks::DiskMountManager::Disk& disk) 139 base::StringValue device_path_value(disk.device_path()); 188 void CreateDiskValue(const disks::DiskMountManager::Disk& disk, 190 base::string16 label = base::ASCIIToUTF16(disk.drive_label()); 193 disk_value->SetString(std::string(kPropertyFilePath), disk.file_path()) [all...] |
/external/fio/tools/ |
genfio | 48 one test after another then one disk after another 56 Separated each disk with a comma 110 for disk in $(echo $@ | tr "," " "); do 111 R=$(basename $disk | sed 's|/|_|g') 133 disk=$2 134 PRINTABLE_DISK=$(diskname_to_printable $disk) 139 filename=$disk 148 for disk in $(echo $DISKS | tr "," " "); do 150 gen_seq_suite "$mode" "$disk" 160 for disk in $(echo $DISKS | tr "," " "); d [all...] |