/external/e2fsprogs/misc/ |
H A D | 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, [all...] |
/external/chromium_org/chrome/browser/chromeos/imageburner/ |
H A D | 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); 159 const disks::DiskMountManager::Disk* disk = local 161 return disk ? disk->total_size_in_bytes() : 0;
|
H A D | 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) { argument 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); 52 const DiskMountManager::Disk& disk = *iter->second; local 53 if (IsBurnableDevice(disk)) 54 result.push_back(disk); 59 OnDiskEvent(DiskMountManager::DiskEvent event, const DiskMountManager::Disk* disk) argument [all...] |
H A D | burn_device_handler_unittest.cc | 37 // Emulates to add new disk physically (e.g., connecting a 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()) { 57 Observer, observers_, OnDiskEvent(DISK_REMOVED, disk.get())); 95 virtual bool AddDiskForTest(Disk* disk) OVERRIDE { return false; } 102 bool InsertDisk(const std::string& path, scoped_ptr<Disk> disk) { argument 131 CopyDevicePathCallback( std::string* out_path, const disks::DiskMountManager::Disk& disk) argument [all...] |
H A D | burn_manager.cc | 636 const disks::DiskMountManager::Disk& disk) { 637 FOR_EACH_OBSERVER(Observer, observers_, OnDeviceAdded(disk)); 641 const disks::DiskMountManager::Disk& disk) { 642 FOR_EACH_OBSERVER(Observer, observers_, OnDeviceRemoved(disk)); 644 if (target_device_path_.value() == disk.device_path()) { 635 NotifyDeviceAdded( const disks::DiskMountManager::Disk& disk) argument 640 NotifyDeviceRemoved( const disks::DiskMountManager::Disk& disk) argument
|
/external/chromium/chrome/browser/chromeos/cros/ |
H A D | mock_mount_library.cc | 100 scoped_ptr<MountLibrary::Disk> disk(new MountLibrary::Disk( 116 std::string(kTestDevicePath), disk.get())); 117 UpdateDiskChanged(chromeos::MOUNT_DISK_REMOVED, disk.get()); 121 const MountLibrary::Disk* disk) { 125 FOR_EACH_OBSERVER(Observer, observers_, DiskChanged(evt, disk)); 120 UpdateDiskChanged(MountLibraryEventType evt, const MountLibrary::Disk* disk) argument
|
H A D | mount_library.cc | 112 virtual void RefreshDiskProperties(const Disk* disk) OVERRIDE { 114 DCHECK(disk); variable 116 OnGetDiskProperties(disk->device_path().c_str(), 122 GetDiskProperties(disk->device_path().c_str(), 158 // Callback for disk information retrieval calls. 161 const DiskInfo* disk, 167 disk, 206 // disk might have been removed by now? 209 Disk* disk = iter->second; local 210 DCHECK(disk); 159 GetDiskPropertiesCallback(void* object, const char* device_path, const DiskInfo* disk, MountMethodErrorType error, const char* error_message) argument 231 Disk* disk = iter->second; local 254 const DiskInfoAdvanced* disk = local 350 Disk* disk = iter->second; local 378 Disk* disk = iter->second; local 407 FireDiskStatusUpdate(MountLibraryEventType evt, const Disk* disk) argument [all...] |
/external/chromium_org/chrome/browser/chromeos/ |
H A D | boot_times_loader.h | 51 // Records current uptime and disk usage for metrics use. 119 std::string disk; member in struct:chromeos::BootTimesLoader::Stats
|
H A D | boot_times_loader.cc | 78 // Dir uptime & disk logs are located in. 85 // Prefix for the disk usage files. 86 static const base::FilePath::CharType kDiskPrefix[] = FPL("disk-"); 89 // Delay in milliseconds before writing the login times to disk. 143 const std::string& disk) { 152 AppendFile(disk_output, disk.data(), disk.size()); 254 base::Bind(&RecordStatsDelayed, name, stats.uptime, stats.disk)); 263 base::ReadFileToString(kDiskStat, &stats.disk); 141 RecordStatsDelayed(const base::FilePath::StringType& name, const std::string& uptime, const std::string& disk) argument
|
/external/chromium_org/chrome/browser/chromeos/file_manager/ |
H A D | mounted_disk_monitor.cc | 63 const DiskMountManager::Disk& disk) const { 64 return unmounted_while_resuming_.count(disk.fs_uuid()) > 0; 76 const DiskMountManager::Disk* disk = local 78 if (!disk || error_code != chromeos::MOUNT_ERROR_NONE) 80 mounted_disks_[mount_info.source_path] = disk->fs_uuid(); 99 const chromeos::disks::DiskMountManager::Disk* disk) { 97 OnDiskEvent( chromeos::disks::DiskMountManager::DiskEvent event, const chromeos::disks::DiskMountManager::Disk* disk) argument
|
H A D | fake_disk_mount_manager.cc | 112 bool FakeDiskMountManager::AddDiskForTest(Disk* disk) { argument 113 DCHECK(disk); 114 return disks_.insert(make_pair(disk->device_path(), disk)).second;
|
H A D | volume_manager.cc | 111 const chromeos::disks::DiskMountManager::Disk* disk) { 117 if (disk) { 118 volume_info.device_type = disk->device_type(); 120 base::FilePath(disk->system_path_prefix()); 121 volume_info.drive_label = disk->drive_label(); 122 volume_info.is_parent = disk->is_parent(); 123 volume_info.is_read_only = disk->is_read_only(); 307 const chromeos::disks::DiskMountManager::Disk* disk) { 311 if (disk->is_hidden()) 316 if (disk 109 CreateVolumeInfoFromMountPointInfo( const chromeos::disks::DiskMountManager::MountPointInfo& mount_point, const chromeos::disks::DiskMountManager::Disk* disk) argument 305 OnDiskEvent( chromeos::disks::DiskMountManager::DiskEvent event, const chromeos::disks::DiskMountManager::Disk* disk) argument 411 const chromeos::disks::DiskMountManager::Disk* disk = local [all...] |
/external/chromium/chrome/browser/chromeos/ |
H A D | boot_times_loader.h | 84 // Records current uptime and disk usage for metrics use. 149 std::string disk; member in struct:chromeos::BootTimesLoader::Stats
|
H A D | boot_times_loader.cc | 38 // Prefix for the disk usage files. 39 static const FilePath::CharType kDiskPrefix[] = FPL("disk-"); 44 // Delay in milliseconds before writing the login times to disk. 237 const std::string& disk) { 245 AppendFile(disk_output, disk.data(), disk.size()); 313 RecordStatsDelayed, name, stats.uptime, stats.disk)); 322 file_util::ReadFileToString(kDiskStat, &stats.disk); 235 RecordStatsDelayed(const FilePath::StringType& name, const std::string& uptime, const std::string& disk) argument
|
/external/chromium/chrome/browser/chromeos/extensions/ |
H A D | file_browser_event_router.cc | 40 const chromeos::MountLibrary::Disk* disk) { 42 result->SetString("mountPath", disk->mount_path()); 43 result->SetString("label", disk->device_label()); 44 result->SetString("deviceType", DeviceTypeToString(disk->device_type())); 45 result->SetInteger("totalSizeKB", disk->total_size() / 1024); 46 result->SetBoolean("readOnly", disk->is_read_only()); 92 const chromeos::MountLibrary::Disk* disk) { 94 OnDiskAdded(disk); 96 OnDiskRemoved(disk); 98 OnDiskChanged(disk); 39 DiskToDictionaryValue( const chromeos::MountLibrary::Disk* disk) argument 90 DiskChanged( chromeos::MountLibraryEventType event, const chromeos::MountLibrary::Disk* disk) argument 114 DispatchEvent( const chromeos::MountLibrary::Disk* disk, bool added) argument 136 OnDiskAdded( const chromeos::MountLibrary::Disk* disk) argument 158 OnDiskRemoved( const chromeos::MountLibrary::Disk* disk) argument 176 OnDiskChanged( const chromeos::MountLibrary::Disk* disk) argument [all...] |
/external/chromium_org/chrome/browser/storage_monitor/ |
H A D | storage_monitor_chromeos.cc | 28 std::string MakeDeviceUniqueId(const disks::DiskMountManager::Disk& disk) { argument 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 disks::DiskMountManager::Disk* disk = local 55 if (!disk || disk->device_type() == DEVICE_TYPE_UNKNOWN) 58 std::string unique_id = MakeDeviceUniqueId(*disk); 61 base::string16 device_label = UTF8ToUTF16(disk->device_label()); 74 UTF8ToUTF16(disk 142 OnDiskEvent( disks::DiskMountManager::DiskEvent event, const disks::DiskMountManager::Disk* disk) argument [all...] |
/external/chromium_org/chrome/browser/ui/webui/chromeos/imageburner/ |
H A D | imageburner_ui.cc | 128 virtual void OnDeviceAdded(const disks::DiskMountManager::Disk& disk) 131 CreateDiskValue(disk, &disk_value); 136 virtual void OnDeviceRemoved(const disks::DiskMountManager::Disk& disk) 138 StringValue device_path_value(disk.device_path()); 186 void CreateDiskValue(const disks::DiskMountManager::Disk& disk, argument 188 base::string16 label = ASCIIToUTF16(disk.drive_label()); 191 disk_value->SetString(std::string(kPropertyFilePath), disk.file_path()); 192 disk_value->SetString(std::string(kPropertyDevicePath), disk.device_path()); 194 disks::DiskMountManager::DeviceTypeToString(disk.device_type()));
|
/external/chromium_org/chromeos/disks/ |
H A D | disk_mount_manager_unittest.cc | 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) { argument 158 new DiskMountManager::Disk(disk.source_path, 159 disk [all...] |
H A D | mock_disk_mount_manager.cc | 128 scoped_ptr<DiskMountManager::Disk> disk(new DiskMountManager::Disk( 150 std::string(kTestDevicePath), disk.get())); 151 NotifyDiskChanged(DISK_REMOVED, disk.get()); 185 Disk* disk = new DiskMountManager::Disk(std::string(mount_info.source_path), local 206 disks_.insert(std::make_pair(std::string(mount_info.source_path), disk)); 209 it->second = disk; 236 const DiskMountManager::Disk* disk) { 237 FOR_EACH_OBSERVER(Observer, observers_, OnDiskEvent(event, disk)); 234 NotifyDiskChanged( DiskEvent event, const DiskMountManager::Disk* disk) argument
|
H A D | disk_mount_manager.cc | 111 DiskMap::const_iterator disk = disks_.find(device_path); variable 112 if (disk == disks_.end()) { 118 UnmountPath(disk->second->mount_path(), 213 virtual bool AddDiskForTest(Disk* disk) OVERRIDE { 214 if (disks_.find(disk->device_path()) != disks_.end()) { 215 LOG(ERROR) << "Attempt to add a duplicate disk"; 219 disks_.insert(std::make_pair(disk->device_path(), disk)); 224 // Corresponding disk should be added to the manager before this is called. 233 LOG(ERROR) << "Device mount points must have a disk entr 333 Disk* disk = iter->second; local 387 DiskMap::const_iterator disk = disks_.find(device_path); local 427 Disk* disk = new Disk(disk_info.device_path(), local 468 Disk* disk = iter->second; local 495 Disk* disk = iter->second; local 537 NotifyDiskStatusUpdate(DiskEvent event, const Disk* disk) argument 664 AddDiskForTest(Disk* disk) argument [all...] |
/external/qemu/block/ |
H A D | bochs.c | 2 * Block driver for the various disk image formats used by Bochs 54 uint64_t disk; // disk size member in struct:bochs_header_v1::__anon25149::__anon25150 75 uint64_t disk; // disk size member in struct:bochs_header::__anon25151::__anon25152 133 bs->total_sectors = le64_to_cpu(header_v1.extra.redolog.disk) / 512; 135 bs->total_sectors = le64_to_cpu(bochs.extra.redolog.disk) / 512;
|
/external/qemu/distrib/sdl-1.2.15/src/cdrom/macos/ |
H A D | SDL_syscdrom.c | 470 Boolean disk = false; local 495 disk = true; 499 /* If no disk is present, just eject the tray */ 500 if (! disk) {
|
/external/chromium_org/chrome/browser/chromeos/extensions/file_manager/ |
H A D | event_router.cc | 655 const DiskMountManager::Disk& disk, bool mounting) { 659 // If the disk is not being mounted, we don't want the Scanning 662 disk.system_path_prefix()); 666 void EventRouter::OnDiskRemoved(const DiskMountManager::Disk& disk) { argument 654 OnDiskAdded( const DiskMountManager::Disk& disk, bool mounting) argument
|
/external/chromium/chrome/browser/ui/webui/chromeos/ |
H A D | imageburner_ui.cc | 219 const chromeos::MountLibrary::Disk* disk) { 218 DiskChanged(chromeos::MountLibraryEventType event, const chromeos::MountLibrary::Disk* disk) argument
|
/external/qemu-pc-bios/bochs/ |
H A D | bochs.h | 437 bx_bool disk; member in struct:__anon26082
|