Home | History | Annotate | Download | only in batterysaver

Lines Matching refs:expected

33     private void check(ArrayMap<String, String> expected, String config) {
34 assertEquals(expected, (new CpuFrequencies().parseString(config))
42 final ArrayMap<String, String> expected = new ArrayMap<>();
44 expected.clear();
45 expected.put("/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq", "0");
46 check(expected, "0:0");
48 expected.clear();
49 expected.put("/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq", "0");
50 expected.put("/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq", "1");
51 check(expected, "0:0/1:1");
53 expected.clear();
54 expected.put("/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq", "0");
55 expected.put("/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq", "1234567890");
56 check(expected, "2:0/1:1234567890");
58 expected.clear();
59 expected.put("/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq", "1900800");
60 expected.put("/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq", "1958400");
61 check(expected, "0:1900800/4:1958400");
63 check(expected, "0:1900800/4:1958400/"); // Shouldn't crash.
64 check(expected, "0:1900800/4:1958400/1"); // Shouldn't crash.
65 check(expected, "0:1900800/4:1958400/a:1"); // Shouldn't crash.
66 check(expected, "0:1900800/4:1958400/1:"); // Shouldn't crash.
67 check(expected, "0:1900800/4:1958400/1:b"); // Shouldn't crash.