Lines Matching refs:std
33 static constexpr std::array<uint32_t, 2> V_TICK_DEFAULT = {1, 100};
34 static constexpr std::array<uint32_t, 2> V_CLICK_DEFAULT = {1, 100};
35 static constexpr std::array<uint32_t, 2> V_LONG_DEFAULT = {1, 100};
42 static void pack(std::ostream &stream, const T &value, std::string lpad, std::string rpad) { in pack()
46 template <typename T, typename std::array<T, 0>::size_type N>
47 static void pack(std::ostream &stream, const std::array<T, N> &value, std::string lpad, in pack()
48 std::string rpad) { in pack()
55 void createHwCal() { mHwCal = std::make_unique<HwCal>(); } in createHwCal()
58 void write(const std::string key, const T &value, std::string lpad = " ", in write()
59 std::string rpad = "") { in write()
60 std::ofstream calfile{mCalFile.path, std::ios_base::app}; in write()
63 calfile << std::endl; in write()
69 std::unique_ptr<Vibrator::HwCal> mHwCal;
74 uint32_t randInput = std::rand(); in TEST_F()
75 std::string expect = std::to_string(randInput); in TEST_F()
76 std::string actual = std::to_string(~randInput); in TEST_F()
87 std::string actual; in TEST_F()
95 uint32_t randInput = std::rand(); in TEST_F()
96 std::string expect = std::to_string(randInput); in TEST_F()
97 std::string actual = std::to_string(~randInput); in TEST_F()
108 std::string actual; in TEST_F()
116 uint32_t randInput = std::rand(); in TEST_F()
117 std::string expect = std::to_string(randInput); in TEST_F()
118 std::string actual = std::to_string(~randInput); in TEST_F()
129 std::string actual; in TEST_F()
137 std::array<uint32_t, 2> expect; in TEST_F()
138 std::array<uint32_t, 2> actual; in TEST_F()
141 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { in TEST_F()
142 e = std::rand(); in TEST_F()
154 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { in TEST_F()
155 e = std::rand(); in TEST_F()
167 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { in TEST_F()
168 e = std::rand(); in TEST_F()
181 std::array<uint32_t, 2> expect = V_TICK_DEFAULT; in TEST_F()
182 std::array<uint32_t, 2> actual; in TEST_F()
184 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { return ~e; }); in TEST_F()
193 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { return ~e; }); in TEST_F()
202 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { return ~e; }); in TEST_F()
211 std::array<uint32_t, 2> expect = V_TICK_DEFAULT; in TEST_F()
212 std::array<uint32_t, 2> actual; in TEST_F()
214 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { return ~e; }); in TEST_F()
216 write("v_tick", std::array<uint32_t, expect.size() - 1>()); in TEST_F()
217 write("v_click", std::array<uint32_t, expect.size() - 1>()); in TEST_F()
218 write("v_long", std::array<uint32_t, expect.size() - 1>()); in TEST_F()
235 std::array<uint32_t, 2> expect = V_TICK_DEFAULT; in TEST_F()
236 std::array<uint32_t, 2> actual; in TEST_F()
238 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { return ~e; }); in TEST_F()
240 write("v_tick", std::array<uint32_t, expect.size() + 1>()); in TEST_F()
241 write("v_click", std::array<uint32_t, expect.size() + 1>()); in TEST_F()
242 write("v_long", std::array<uint32_t, expect.size() + 1>()); in TEST_F()
259 std::array<uint32_t, 2> expect = V_TICK_DEFAULT; in TEST_F()
260 std::array<uint32_t, 2> actual; in TEST_F()
262 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { return ~e; }); in TEST_F()
284 uint32_t randInput = std::rand(); in TEST_F()
285 std::string f0Expect = std::to_string(randInput); in TEST_F()
286 std::string f0Actual = std::to_string(~randInput); in TEST_F()
287 randInput = std::rand(); in TEST_F()
288 std::string redcExpect = std::to_string(randInput); in TEST_F()
289 std::string redcActual = std::to_string(~randInput); in TEST_F()
290 randInput = std::rand(); in TEST_F()
291 std::string qExpect = std::to_string(randInput); in TEST_F()
292 std::string qActual = std::to_string(~randInput); in TEST_F()
293 std::array<uint32_t, 2> volTickExpect, volClickExpect, volLongExpect; in TEST_F()
294 std::array<uint32_t, 2> volActual; in TEST_F()
296 std::transform(volTickExpect.begin(), volTickExpect.end(), volActual.begin(), [](uint32_t &e) { in TEST_F()
297 e = std::rand(); in TEST_F()
305 std::transform(volClickExpect.begin(), volClickExpect.end(), volActual.begin(), in TEST_F()
307 e = std::rand(); in TEST_F()
311 std::transform(volLongExpect.begin(), volLongExpect.end(), volActual.begin(), [](uint32_t &e) { in TEST_F()
312 e = std::rand(); in TEST_F()
334 uint32_t randInput = std::rand(); in TEST_F()
335 std::string f0Expect = std::to_string(randInput); in TEST_F()
336 std::string f0Actual = std::to_string(~randInput); in TEST_F()
337 randInput = std::rand(); in TEST_F()
338 std::string redcExpect = std::to_string(randInput); in TEST_F()
339 std::string redcActual = std::to_string(randInput); in TEST_F()
340 randInput = std::rand(); in TEST_F()
341 std::string qExpect = std::to_string(randInput); in TEST_F()
342 std::string qActual = std::to_string(randInput); in TEST_F()
343 std::array<uint32_t, 2> volTickExpect, volClickExpect, volLongExpect; in TEST_F()
344 std::array<uint32_t, 2> volActual; in TEST_F()
346 std::transform(volTickExpect.begin(), volTickExpect.end(), volActual.begin(), [](uint32_t &e) { in TEST_F()
347 e = std::rand(); in TEST_F()
355 std::transform(volClickExpect.begin(), volClickExpect.end(), volActual.begin(), in TEST_F()
357 e = std::rand(); in TEST_F()
361 std::transform(volLongExpect.begin(), volLongExpect.end(), volActual.begin(), [](uint32_t &e) { in TEST_F()
362 e = std::rand(); in TEST_F()