| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/Collections/ |
| D | MultiValueDictionaryTests.cs | 38 IReadOnlyCollection<string> values; in ShouldAddAndTryGetValue() 40 Assert.IsTrue(multiDict.TryGetValue("key", out values)); in ShouldAddAndTryGetValue() 41 Assert.AreSame("value", values.First()); in ShouldAddAndTryGetValue() 48 Assert.IsTrue(multiDict.TryGetValue("key2", out values)); in ShouldAddAndTryGetValue() 49 CollectionAssert.AreEqual(values1, values); in ShouldAddAndTryGetValue() 61 IReadOnlyCollection<string> values; in ShouldNotGetValue() 62 Assert.IsFalse(multiDict.TryGetValue("海亀", out values)); in ShouldNotGetValue() 73 IReadOnlyCollection<string> values; in ShouldClear() 74 Assert.IsFalse(multiDict.TryGetValue("海亀", out values)); in ShouldClear() 75 Assert.IsFalse(multiDict.TryGetValue("key1", out values)); in ShouldClear() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/Collections/ |
| D | MultiValueDictionary.cs | 62 public void AddRange(TKey key, IEnumerable<TValue> values) in AddRange() argument 69 list.AddRange(values); in AddRange() 77 existingMultiple.AddRange(values); in AddRange() 81 multiple.Add(key, new List<TValue>(values)); in AddRange() 125 public bool TryGetValue(TKey key, out IReadOnlyCollection<TValue> values) in TryGetValue() argument 130 values = new List<TValue> { existingSingle }; in TryGetValue() 138 values = existingMultiple.AsReadOnly(); in TryGetValue() 142 values = new List<TValue>(); in TryGetValue() 164 IReadOnlyCollection<TValue> values; in Contains() 165 return TryGetValue(key, out values) && values.Contains(value); in Contains()
|
| D | SerializableWeakDictionary.cs | 37 values.Add(new WeakReference(value)); in Add() 62 values.RemoveAt(index); in Remove() 109 values[index] = new WeakReference(value); 146 values = new List<WeakReference>(); in Clear() 240 var value = values[i].Target; in ObtainKeysAndValues() 244 values.RemoveAt(i); in ObtainKeysAndValues() 271 values = serializedValues.Select(x => new WeakReference(x)).ToList(); in AfterDeserialization() 281 private List<WeakReference> values; field in Antmicro.Renode.Utilities.Collections.SerializableWeakDictionary
|
| D | SerializableWeakKeyDictionary.cs | 206 values = new List<TValue>(); in BeforeSerialization() 217 values.Add(value); in BeforeSerialization() 230 Add(keys[i], values[i]); in PostDeserialization() 235 values = null; in PostDeserialization() 251 private List<TValue> values; field in Antmicro.Renode.Utilities.Collections.SerializableWeakKeyDictionary
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/ |
| D | LRUCache.cs | 19 values = new Dictionary<TKey, CacheItem>(); in LRUCache() 28 if(values.TryGetValue(key, out var item)) in TryGetValue() 47 values[key] = new CacheItem { Position = node, Value = value }; in Add() 51 values.Remove(ordering.Last.Value); in Add() 62 values.Clear(); in Invalidate() 72 private readonly Dictionary<TKey, CacheItem> values; field in Antmicro.Renode.Utilities.LRUCache
|
| D | Misc.cs | 1198 var values = new List<string>(); in PrettyPrintFlagsEnum() 1203 values.Add(value.ToString()); in PrettyPrintFlagsEnum() 1206 return values.Count == 0 ? "-" : values.Aggregate((x, y) => x + ", " + y); in PrettyPrintFlagsEnum() 1242 public static IEnumerable<T[]> Split<T>(this IEnumerable<T> values, int size) in Split() argument 1245 return values.GroupBy(_ => i++ / size).Select(chunk => chunk.ToArray()); in Split()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/Commands/ |
| D | CommandAttributes.cs | 24 public ValuesAttribute(params object[] values) in ValuesAttribute() argument 26 Values = new List<object>(values); in ValuesAttribute()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Backends/Display/ |
| D | ColorFormat.cs | 60 var values = Enum.GetValues(typeof(PixelFormat)); in PixelFormatExtensions() 61 depths = new int[values.Length]; in PixelFormatExtensions() 66 var value = (int)values.GetValue(i); in PixelFormatExtensions()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/CPU/GDB/ |
| D | GDBCustomType.cs | 60 public static GDBCustomType Enum(string id, uint size, IEnumerable<GDBTypeEnumValue> values) in Enum() 65 return new GDBCustomType("enum", attributes, CreateFields(values)); in Enum() 96 …IEnumerable<IReadOnlyDictionary<string, string>> CreateFields(IEnumerable<GDBTypeEnumValue> values) in CreateFields() 99 foreach(var value in values) in CreateFields()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Sensor/ |
| D | SensorSamplesPacket.cs | 82 var values = new List<decimal>(); in ParseSampleValues() 100 values.Add(rawValue / sensitivity); in ParseSampleValues() 102 return values; in ParseSampleValues()
|
| D | SensorSamplesFifo.cs | 59 sampleConstructor = values => in FeedSamplesFromBinaryFile() 62 sample.Load(values); in FeedSamplesFromBinaryFile()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/ |
| D | TimeTests.cs | 66 var values = new List<ulong>(); in ShouldHaveHandlersInSync() 69 …clockSource.AddClockEntry(new ClockEntry(10, 1, () => values.Add(clockSource.GetClockEntry(firstHa… in ShouldHaveHandlersInSync() 75 CollectionAssert.AreEqual(new [] { 100, 200, 300 }, values); in ShouldHaveHandlersInSync()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/ExecutionTracer/FBInstruction/ |
| D | instruction.fbs | 17 lmul: float32; // valid values: 1/8, 1/4, 1/2, 1, 2, 4, 8, and 0 which means not set
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/MonitorTests/ |
| D | TokenizerTests.cs | 246 … private static void AssertTokenizationValues(TokenizationResult result, params object[] values) in AssertTokenizationValues() argument 249 Assert.AreEqual(tokens.Length, values.Length); in AssertTokenizationValues() 250 CollectionAssert.AreEqual(values, tokens.Select(x => x.GetObjectValue())); in AssertTokenizationValues()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/ |
| D | MonitorCommands.cs | 1093 …private bool TryPrepareParameters(IList<Token> values, IList<ParameterInfo> parameters, out List<o… in TryPrepareParameters() argument 1115 for(int i = 0, currentPos = 0; i < values.Count; ++i, ++currentPos) in TryPrepareParameters() 1118 if(i < values.Count - 2 in TryPrepareParameters() 1119 && values[i] is LiteralToken lit in TryPrepareParameters() 1120 && values[i + 1] is EqualityToken) in TryPrepareParameters() 1131 indexedValues[parameterIndex] = values[i + 2]; in TryPrepareParameters() 1142 indexedValues[currentPos] = values[i]; in TryPrepareParameters() 1154 values = new List<Token>(valueCount); in TryPrepareParameters() 1162 values.Add(value); in TryPrepareParameters() 1169 for(i = 0; i < values.Count; ++i) in TryPrepareParameters() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/ |
| D | OpenTitan_KMAC.cs | 265 private void WriteToFifo(byte[] values) in WriteToFifo() argument 267 foreach(var b in values) in WriteToFifo()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Config/ |
| D | SimpleJson.cs | 1259 …SerializerStrategy jsonSerializerStrategy, IEnumerable keys, IEnumerable values, StringBuilder bui… in SerializeObject() argument 1264 IEnumerator ve = values.GetEnumerator(); in SerializeObject()
|