Lines Matching refs:device

280                 IPeripheral device;  in GetDevice()
282 if(TryFindPeripheralByName(name, out device, out longestMatch)) in GetDevice()
284 return device; in GetDevice()
424 var device = IdentifyDevice(name); in ProcessDeviceAction()
425 result = ExecuteDeviceAction(name, device, p); in ProcessDeviceAction()
467 Type device; in ProcessDeviceActionByName()
470 if(TryFindPeripheralTypeByName(name, out device, out longestMatch, out actualName)) in ProcessDeviceActionByName()
472 ProcessDeviceAction(device, actualName, p, writer); in ProcessDeviceActionByName()
768 public MonitorInfo GetMonitorInfo(Type device) in GetMonitorInfo() argument
773 var methods = cache.Get(device, GetAvailableMethods); in GetMonitorInfo()
779 var properties = cache.Get(device, GetAvailableProperties); in GetMonitorInfo()
785 var indexers = cache.Get(device, GetAvailableIndexers); in GetMonitorInfo()
791 var fields = cache.Get(device, GetAvailableFields); in GetMonitorInfo()
797 var extensions = cache.Get(device, GetAvailableExtensions); in GetMonitorInfo()
915 var device = FromStaticMapping(name); in IdentifyDevice()
917 device = device ?? FromMapping(name) ?? iface ?? (object)currentMachine[name]; in IdentifyDevice()
918 return device; in IdentifyDevice()
921 private object InvokeGet(object device, MemberInfo info) in InvokeGet() argument
923 var context = CreateInvocationContext(device, info); in InvokeGet()
938 return propInfo.GetValue(!propInfo.IsStatic() ? device : null, null); in InvokeGet()
944 private void InvokeSet(object device, MemberInfo info, object parameter) in InvokeSet() argument
946 var context = CreateInvocationContext(device, info); in InvokeSet()
962 propInfo.SetValue(!propInfo.IsStatic() ? device : null, parameter, null); in InvokeSet()
969 … private object InvokeExtensionMethod(object device, MethodInfo method, List<object> parameters) in InvokeExtensionMethod() argument
974 … return InvokeWithContext(context, method, (new [] { device }.Concat(parameters)).ToArray()); in InvokeExtensionMethod()
982 private object InvokeMethod(object device, MethodInfo method, List<object> parameters) in InvokeMethod() argument
984 var context = CreateInvocationContext(device, method); in InvokeMethod()
995 private void InvokeSetIndex(object device, PropertyInfo property, List<object> parameters) in InvokeSetIndex() argument
997 var context = CreateInvocationContext(device, property); in InvokeSetIndex()
1008 private object InvokeGetIndex(object device, PropertyInfo property, List<object> parameters) in InvokeGetIndex() argument
1010 var context = CreateInvocationContext(device, property); in InvokeGetIndex()
1040 private static InvokeContext CreateInvocationContext(object device, MemberInfo info) in CreateInvocationContext() argument
1049 return InvokeContext.CreateStatic(device.GetType()); in CreateInvocationContext()
1061 return InvokeContext.CreateContext(device, info.ReflectedType); in CreateInvocationContext()
1236 public object ExecuteDeviceAction(string name, object device, IEnumerable<Token> p) in ExecuteDeviceAction() argument
1239 var type = device.GetType(); in ExecuteDeviceAction()
1277 return InvokeMethod(device, foundMethod, parameters); in ExecuteDeviceAction()
1295 return InvokeExtensionMethod(device, foundExt, parameters); in ExecuteDeviceAction()
1306 var currentObject = InvokeGet(device, foundField); in ExecuteDeviceAction()
1325 InvokeSet(device, foundField, value); in ExecuteDeviceAction()
1330 return InvokeGet(device, foundField); in ExecuteDeviceAction()
1338 var currentObject = InvokeGet(device, foundProp); in ExecuteDeviceAction()
1357 InvokeSet(device, foundProp, value); in ExecuteDeviceAction()
1362 return InvokeGet(device, foundProp); in ExecuteDeviceAction()
1410 … InvokeSetIndex(device, foundIndexer, parameters.Concat(new[] { value }).ToList()); in ExecuteDeviceAction()
1415 return InvokeGetIndex(device, foundIndexer, parameters); in ExecuteDeviceAction()