Home
last modified time | relevance | path

Searched refs:source (Results 1 – 25 of 65) sorted by relevance

123

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/
DGPIOTests.cs24 var source = new GPIO(); in ShouldPropagateConnected()
26 source.Connect(destination, 2); in ShouldPropagateConnected()
27 var endpoint = source.Endpoints; in ShouldPropagateConnected()
35 var source = new GPIO(); in ShouldBeEmptyWhenNotConnected()
36 var endpoint = source.Endpoints; in ShouldBeEmptyWhenNotConnected()
43 var source = new GPIO(); in ShouldConnectBoundGPIOs()
45 source.Connect(boundIn, 2); in ShouldConnectBoundGPIOs()
51 var source = new GPIO(); in ShouldThrowOnIllegalInputNo()
54 var ex = Assert.Throws<ConstructionException>(() => source.Connect(boundIn, 10)); in ShouldThrowOnIllegalInputNo()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Wireless/IEEE802_15_4/
DAddress.cs25 public Address(ArraySegment<byte> source) in Address() argument
27 if(source.Count != 2 && source.Count != 8) in Address()
32 Bytes = source; in Address()
35 public Address(byte[] source) in Address() argument
37 if(source.Length != 2 && source.Length != 8) in Address()
42 Bytes = source; in Address()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/
DMonitorTimeExtensions.cs69 private static void SetSerialExecutionRecursively(TimeSourceBase source, bool val) in SetSerialExecutionRecursively() argument
71 source.ExecuteInSerial = val; in SetSerialExecutionRecursively()
72 foreach(var sink in source.Sinks.OfType<TimeSourceBase>()) in SetSerialExecutionRecursively()
78 private static void SetAdvanceImmediatelyRecursively(TimeSourceBase source, bool val) in SetAdvanceImmediatelyRecursively() argument
80 source.AdvanceImmediately = val; in SetAdvanceImmediatelyRecursively()
81 foreach(var sink in source.Sinks.OfType<TimeSourceBase>()) in SetAdvanceImmediatelyRecursively()
87 private static void SetQuantumRecursively(TimeSourceBase source, TimeInterval quantum) in SetQuantumRecursively() argument
89 source.Quantum = quantum; in SetQuantumRecursively()
90 foreach(var sink in source.Sinks.OfType<TimeSourceBase>()) in SetQuantumRecursively()
/Renode-Infrastructure-v1.15.3-29f510e/src/UI/VideoAnalyzer/Events/
DXWTEventSource.cs18 public XWTEventSource(Widget source) in XWTEventSource() argument
20 this.source = source; in XWTEventSource()
27 source.MouseMoved += HandleMouseMoved; in AttachHandler()
28 source.ButtonPressed += HandleButtonPressed; in AttachHandler()
29 source.ButtonReleased += HandleButtonReleased; in AttachHandler()
30 source.KeyPressed += HandleKeyPressed; in AttachHandler()
31 source.KeyReleased += HandleKeyReleased; in AttachHandler()
114 source.MouseMoved -= HandleMouseMoved; in DetachHandler()
115 source.ButtonPressed -= HandleButtonPressed; in DetachHandler()
116 source.ButtonReleased -= HandleButtonReleased; in DetachHandler()
[all …]
DX11EventSource.cs18 public X11EventSource(FrameBufferDisplayWidget source) in X11EventSource() argument
20 this.source = source; in X11EventSource()
36 pid = source.ParentWindow.Id; in AttachHandler()
45 …XLibHelper.MoveCursorAbsolute(pid, (int)(source.ParentWindow.Size.Width / 2), (int)(source.ParentW… in AttachHandler()
94 var image = source.Image; in MouseMoved()
129 private FrameBufferDisplayWidget source; field in Antmicro.Renode.Extensions.Analyzers.Video.Events.X11EventSource
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/PythonPeripherals/
DSerializationTests.cs24 var source = @" in ShouldSerializeSimplePyDev()
31 var pyDev = new PythonPeripheral(100, true, script: source); in ShouldSerializeSimplePyDev()
39 var source = @" in ShouldSerializePyDevWithListAndDictionary()
49 var pyDev = new PythonPeripheral(100, true, script: source); in ShouldSerializePyDevWithListAndDictionary()
64 var source = @" in ShouldSerializePyDevWithModuleImport()
70 var pyDev = new PythonPeripheral(100, true, script: source); in ShouldSerializePyDevWithModuleImport()
78 var source = @" in ShouldSerializeMachineWithSimplePyDev()
85 var pyDev = new PythonPeripheral(100, true, script: source); in ShouldSerializeMachineWithSimplePyDev()
/Renode-Infrastructure-v1.15.3-29f510e/src/UI/VideoAnalyzer/Handlers/
DIOHandler.cs20 this.source = new XWTEventSource(widget); in IOHandler()
21 this.source.AttachHandler(this); in IOHandler()
64 source.DetachHandler(); in ButtonPressed()
65 source = new X11EventSource(widget); in ButtonPressed()
66 source.AttachHandler(this); in ButtonPressed()
101 source.DetachHandler(); in KeyPressed()
102 source = new XWTEventSource(widget); in KeyPressed()
103 source.AttachHandler(this); in KeyPressed()
211 private IEventSource source; field in Antmicro.Renode.Extensions.Analyzers.Video.Handlers.IOHandler
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DBitHelper.cs61 public static uint SetBitsFrom(uint source, uint newValue, int position, int width) in SetBitsFrom() argument
65 return source | bitsToSet; in SetBitsFrom()
68 public static ulong SetBitsFrom(ulong source, ulong newValue, int position, int width) in SetBitsFrom() argument
72 return source | bitsToSet; in SetBitsFrom()
135 …public static void ReplaceBits(ref uint destination, uint source, int width, int destinationPositi… in ReplaceBits() argument
142 source &= mask << sourcePosition; in ReplaceBits()
147 ? (source >> positionDifference) in ReplaceBits()
148 : (source << -positionDifference); in ReplaceBits()
151 …public static void ReplaceBits(ref ulong destination, ulong source, int width, int destinationPosi… in ReplaceBits() argument
161 source &= mask << sourcePosition; in ReplaceBits()
[all …]
DConfigurationManager.cs152 if(source == null)
160 source = new IniConfigSource(FileName);
169 source = new IniConfigSource();
170 source.Save(FileName);
174 source.AutoSave = !Emulator.InCIMode;
175 return source;
182 private IniConfigSource source; field in Antmicro.Renode.Utilities.ConfigSource
DMisc.cs366 public static Boolean StartsWith(this String source, char value) in StartsWith() argument
368 if (source.Length > 0) in StartsWith()
370 return source[0] == value; in StartsWith()
375 public static Boolean EndsWith(this String source, char value) in EndsWith() argument
377 if (source.Length > 0) in EndsWith()
379 return source[source.Length - 1] == value; in EndsWith()
393 …public static int IndexOf<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) in IndexOf() argument
396 foreach (var element in source) in IndexOf()
406 …public static int LastIndexOf<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predi… in LastIndexOf() argument
408 var revSource = source.Reverse(); in LastIndexOf()
[all …]
DFileCopier.cs55 using(var source = File.Open(src, FileMode.Open, FileAccess.Read)) in Copy()
63 var sourceLength = source.Length; in Copy()
67 read = source.Read(buffer, 0, buffer.Length); in Copy()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/DMA/
DRequest.cs14 …public Request(Place source, Place destination, int size, TransferType readTransferType, TransferT… in Request()
17 this.Source = source; in Request()
28 …public Request(Place source, Place destination, int size, TransferType readTransferType, TransferT… in Request()
32 this.Source = source; in Request()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Hooks/
DPacketInterceptionPythonEngine.cs56 var source = Engine.CreateScriptSourceFromString(script); in InnerInit()
57 code = Compile(source); in InnerInit()
61 var source = Engine.CreateScriptSourceFromFile(filename); in InnerInit()
62 code = Compile(source); in InnerInit()
DBusPeripheralsHooksPythonEngine.cs68 var source = Engine.CreateScriptSourceFromString(ReadScript); in InnerInit()
69 readCode = Compile(source); in InnerInit()
73 var source = Engine.CreateScriptSourceFromString(WriteScript); in InnerInit()
74 writeCode = Compile(source); in InnerInit()
DGPIOPythonEngine.cs41 var source = Engine.CreateScriptSourceFromString(script); in InnerInit()
42 code = Compile(source); in InnerInit()
DPSCIPythonEngine.cs41 var source = Engine.CreateScriptSourceFromString(script); in InnerInit()
42 code = Compile(source); in InnerInit()
DSyncPointHookPythonEngine.cs41 var source = Engine.CreateScriptSourceFromString(script); in InnerInit()
42 code = Compile(source); in InnerInit()
DUserStatePythonEngine.cs43 var source = Engine.CreateScriptSourceFromString(Script); in InnerInit()
44 code = Compile(source); in InnerInit()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/RiscV/
DRiscVInstructionPythonEngine.cs56 ScriptSource source; in InnerInit()
59 source = Engine.CreateScriptSourceFromString(script); in InnerInit()
67 source = Engine.CreateScriptSourceFromFile(path); in InnerInit()
70 code = Compile(source); in InnerInit()
DRiscVCsrPythonEngine.cs79 ScriptSource source; in InnerInit()
83 source = Engine.CreateScriptSourceFromString(script); in InnerInit()
91 source = Engine.CreateScriptSourceFromFile(path); in InnerInit()
94 code = Compile(source); in InnerInit()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Python/
DPeripheralPythonEngine.cs48 source = script; in InitScope()
49 code = Compile(source); in InitScope()
68 return source.GetCode();
78 private ScriptSource source; field in Antmicro.Renode.Peripherals.Python.PeripheralPythonEngine
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/
DPythonEngine.cs160 protected CompiledCode Compile(ScriptSource source) in Compile() argument
162 return Compile(source, error => throw new RecoverableException(error)); in Compile()
165 protected CompiledCode Compile(ScriptSource source, Action<string> errorCallback) in Compile() argument
167 return source.Compile(new ErrorHandler(errorCallback)); in Compile()
204 …public override void ErrorReported(ScriptSource source, string message, SourceSpan span, int error… in ErrorReported() argument
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Logging/
DILogger.cs19 int GetOrCreateSourceId(object source); in GetOrCreateSourceId() argument
21 bool TryGetSourceId(object source, out int id); in TryGetSourceId() argument
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Network/
DIBasicNetworkNode.cs13 …public delegate bool BasicNetworkSendDataDelegate<TData, TAddress>(TData data, TAddress source, TA… in BasicNetworkSendDataDelegate() argument
17 void ReceiveData(TData data, TAddress source, TAddress destination); in ReceiveData() argument
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Memory/
DArrayMemoryWithReadonlys.cs18 public ArrayMemoryWithReadonlys(byte[] source):base(source) in ArrayMemoryWithReadonlys() argument

123