Returns the device samping volume value in m.
162371
def sampling_volume_value(self):
        """"""
        svi = self.pdx.SamplingVolume
        tli = self.pdx.TransmitLength
        return self._sampling_volume_value(svi, tli)
118656
def list_lvm_volume_group(block_device):
    '''
    
    '''
    vg = None
    pvd = check_output(['pvdisplay', block_device]).splitlines()
    for lvm in pvd:
        lvm = lvm.decode('UTF-8')
        if lvm.strip().startswith('VG Name'):
            vg = ' '.join(lvm.strip().split()[2:])
    return vg
1290052
int getDevicePriority(IoDevice device)
    {
        for (PriorityIoDeviceTuple tuple : mCompatibleDevices)
        {
            if (tuple.getIoDevice().equals(device))
            {
                return tuple.getPriority();
            }
        }
        return -1;
    }
567231
def get_percentage_volume_change(self):
        
        initial_vol = self.initial.lattice.volume
        final_vol = self.final.lattice.volume
        return final_vol / initial_vol - 1
273336
int getCurrentDevicePriority() {
        if (mIODevice == null)
        {
            return -1;
        }
        for (PriorityIoDeviceTuple tuple : mCompatibleDevices)
        {
            if (tuple.getIoDevice().equals(mIODevice))
            {
                return tuple.getPriority();
            }
        }
        return -1;
    }
940811
def to_volume(self):
        """"""
        if hasattr(self.header.definitions, "Lattice"):
            X, Y, Z = self.header.definitions.Lattice
        else:
            raise ValueError("Unable to determine data size")
        
        volume = self.decoded_data.reshape(Z, Y, X)
        return volume
44144
async def volume(self, ctx, volume: int):
        """"""

        if ctx.voice_client is None:
            return await ctx.send("Not connected to a voice channel.")

        ctx.voice_client.source.volume = volume / 100
        await ctx.send("Changed volume to {}%".format(volume))
179174
public int getSoundVolume() throws CommandExecutionException {
        JSONArray res = sendToArray("get_sound_volume");
        if (res == null) throw new CommandExecutionException(CommandExecutionException.Error.INVALID_RESPONSE);
        int vol = res.optInt(0, -1);
        if (vol < 0) throw new CommandExecutionException(CommandExecutionException.Error.INVALID_RESPONSE);
        return vol;
    }
478641
def GetMemActiveMB(self):
        ''''''
        counter = c_uint()
        ret = vmGuestLib.VMGuestLib_GetMemActiveMB(self.handle.value, byref(counter))
        if ret != VMGUESTLIB_ERROR_SUCCESS: raise VMGuestLibException(ret)
        return counter.value
819961
def get_vm_status(self, device='FLOPPY'):
        """"""
        dic = {'DEVICE': device.upper()}
        data = self._execute_command(
            'GET_VM_STATUS', 'RIB_INFO', 'read', dic)
        return data['GET_VM_STATUS']
680243
def _GetStat(self):
    
    stat_object = super(LVMFileEntry, self)._GetStat()

    if self._vslvm_logical_volume is not None:
      stat_object.size = self._vslvm_logical_volume.size

    return stat_object
636232
def get_volume(self, id):
        
        # If the id is actually a path
        if exists(id):
            with open(id) as file:
                size = os.lseek(file.fileno(), 0, os.SEEK_END)
            return {'path': id, 'size': size}
        return self.volume.get(id)
578563
def get_resolution(self) -> list:
        ''''''
        output, _ = self._execute('-s', self.device_sn, 'shell', 'wm', 'size')
        return output.split()[2].split('x')
164497
public static int getCurrentVolume(Context context) {
		AudioManager mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
		return mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);
	}
717375
function onVolumeKeydown(event) {
		const { keyCode, shiftKey } = event;

		// 37: LEFT, 38: UP, 39: RIGHT, 40: DOWN
		if (37 <= keyCode && 40 >= keyCode) {
			event.preventDefault();

			const isLTR = /^(btt|ltr)$/.test(volumeDir);
			const offset = 37 === keyCode || 39 === keyCode ? keyCode - 38 : isLTR ? 39 - keyCode : keyCode - 39;

			media.volume = Math.max(0, Math.min(1, media.volume + offset * (isLTR ? 0.1 : -0.1) * (shiftKey ? 1 : 0.2)));
		}
	}
754551
public function getUsedVolumeAttribute()
    {

        $content = $this->content;

        if (! is_null($content))
            return $content->sum(function ($item) {

                return $item->type->volume;
            });

        return 0.0;
    }
1026602
def attach_volume_to_device(self, volume_id, device_id):
        
        try:
            volume = self.manager.get_volume(volume_id)
            volume.attach(device_id)
        except packet.baseapi.Error as msg:
            raise PacketManagerException(msg)
        return volume