Lines Matching refs:ret

40         int ret;  in gatekeeper_device_initialize()  local
42 ret = hw_get_module_by_class(GATEKEEPER_HARDWARE_MODULE_ID, NULL, &mod); in gatekeeper_device_initialize()
44 ASSERT_EQ(0, ret); in gatekeeper_device_initialize()
46 ret = gatekeeper_open(mod, dev); in gatekeeper_device_initialize()
48 ASSERT_EQ(0, ret); in gatekeeper_device_initialize()
61 int ret; in TEST_F() local
63 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
66 ASSERT_EQ(0, ret); in TEST_F()
70 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
73 ASSERT_EQ(0, ret); in TEST_F()
85 int ret; in TEST_F() local
87 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
90 ASSERT_EQ(0, ret); in TEST_F()
93 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
96 ASSERT_EQ(0, ret); in TEST_F()
112 int ret; in TEST_F() local
114 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
117 ASSERT_EQ(0, ret); in TEST_F()
125 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
128 ASSERT_NE(0, ret); in TEST_F()
131 if (ret > 0) { in TEST_F()
132 timeout = ret; in TEST_F()
142 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
146 ASSERT_EQ(0, ret); in TEST_F()
156 int ret; in TEST_F() local
158 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
161 ASSERT_EQ(0, ret); in TEST_F()
166 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
170 ASSERT_NE(0, ret); in TEST_F()
181 int ret; in TEST_F() local
183 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
186 ASSERT_EQ(0, ret); in TEST_F()
195 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
199 ASSERT_LT(ret, 0); in TEST_F()
208 int ret; in TEST_F() local
210 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
213 ASSERT_EQ(0, ret); in TEST_F()
218 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
221 ASSERT_EQ(0, ret); in TEST_F()
232 int ret; in TEST_F() local
234 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
237 ASSERT_EQ(0, ret); in TEST_F()
242 ret = device->enroll(device, 400, password_handle, password_handle_length, password_payload, in TEST_F()
245 ASSERT_EQ(0, ret); in TEST_F()