• Home
  • Raw
  • Download

Lines Matching refs:t

44     FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, false, false);  in TEST()  local
45 t.Update(false); in TEST()
52 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, true, true); in TEST() local
53 t.Update(false); in TEST()
64 FileNode t("test_dump", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, in TEST() local
66 t.Update(false); in TEST()
68 t.DumpToFd(dumptf.fd); in TEST()
85 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, false, false); in TEST() local
87 EXPECT_TRUE(t.GetValueIndex("value2", &index)); in TEST()
90 EXPECT_FALSE(t.GetValueIndex("NON_EXIST", &index)); in TEST()
97 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, false, false); in TEST() local
98 std::vector values = t.GetValues(); in TEST()
109 FileNode t(test_name, test_path, {}, 0, false, false, true); in TEST() local
110 EXPECT_EQ(test_name, t.GetName()); in TEST()
111 EXPECT_EQ(test_path, t.GetPath()); in TEST()
112 EXPECT_EQ(0u, t.GetValues().size()); in TEST()
113 EXPECT_EQ(0u, t.GetDefaultIndex()); in TEST()
114 EXPECT_FALSE(t.GetResetOnInit()); in TEST()
115 EXPECT_TRUE(t.GetHoldFd()); in TEST()
120 FileNode t("t", "/sys/android/nonexist_node_test", in TEST() local
123 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 200ms)); in TEST()
124 std::chrono::milliseconds expire_time = t.Update(true); in TEST()
129 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 2000ms)); in TEST()
130 expire_time = t.Update(true); in TEST()
139 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 2, true, true); in TEST() local
141 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST()
142 std::chrono::milliseconds expire_time = t.Update(true); in TEST()
148 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST()
149 expire_time = t.Update(true); in TEST()
155 expire_time = t.Update(true); in TEST()
161 expire_time = t.Update(true); in TEST()
169 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 2, true, true); in TEST() local
171 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST()
172 std::chrono::milliseconds expire_time = t.Update(true); in TEST()
178 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST()
179 expire_time = t.Update(true); in TEST()
184 t.RemoveRequest("LAUNCH"); in TEST()
185 expire_time = t.Update(true); in TEST()
190 t.RemoveRequest("INTERACTION"); in TEST()
191 expire_time = t.Update(true); in TEST()
199 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 2, true, in TEST() local
201 EXPECT_TRUE(t.GetHoldFd()); in TEST()
203 EXPECT_TRUE(t.AddRequest(1, "INTERACTION", start + 500ms)); in TEST()
204 std::chrono::milliseconds expire_time = t.Update(true); in TEST()
210 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 200ms)); in TEST()
211 expire_time = t.Update(true); in TEST()
216 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 100ms)); in TEST()
217 expire_time = t.Update(true); in TEST()
222 EXPECT_TRUE(t.AddRequest(0, "LAUNCH", start + 300ms)); in TEST()
223 expire_time = t.Update(true); in TEST()
228 t.RemoveRequest("LAUNCH"); in TEST()
229 expire_time = t.Update(true); in TEST()
234 t.RemoveRequest("INTERACTION"); in TEST()
235 expire_time = t.Update(true); in TEST()