Home | History | Annotate | Download | only in tests

Lines Matching defs:source

2  * Copyright (C) 2010 The Android Open Source Project
1376 << "Should return unknown key code state when source not supported.";
1378 << "Should return unknown scan code state when source not supported.";
1380 << "Should return unknown switch state when source not supported.";
1383 << "Should query mapper when source is supported.";
1385 << "Should query mapper when source is supported.";
1387 << "Should query mapper when source is supported.";
1392 << "Should do nothing when source is unsupported.";
1393 ASSERT_EQ(0, flags[0]) << "Flag should be unchanged when source is unsupported.";
1394 ASSERT_EQ(0, flags[1]) << "Flag should be unchanged when source is unsupported.";
1395 ASSERT_EQ(0, flags[2]) << "Flag should be unchanged when source is unsupported.";
1396 ASSERT_EQ(1, flags[3]) << "Flag should be unchanged when source is unsupported.";
1399 << "Should query mapper when source is supported.";
1489 int32_t axis, uint32_t source, float min, float max, float flat, float fuzz) {
1490 const InputDeviceInfo::MotionRange* range = info.getMotionRange(axis, source);
1491 ASSERT_TRUE(range != NULL) << "Axis: " << axis << " Source: " << source;
1492 ASSERT_EQ(axis, range->axis) << "Axis: " << axis << " Source: " << source;
1493 ASSERT_EQ(source, range->source) << "Axis: " << axis << " Source: " << source;
1494 ASSERT_NEAR(min, range->min, EPSILON) << "Axis: " << axis << " Source: " << source;
1495 ASSERT_NEAR(max, range->max, EPSILON) << "Axis: " << axis << " Source: " << source;
1496 ASSERT_NEAR(flat, range->flat, EPSILON) << "Axis: " << axis << " Source: " << source;
1497 ASSERT_NEAR(fuzz, range->fuzz, EPSILON) << "Axis: " << axis << " Source: " << source;
1624 ASSERT_EQ(AINPUT_SOURCE_KEYBOARD, args.source);
1639 ASSERT_EQ(AINPUT_SOURCE_KEYBOARD, args.source);
1656 ASSERT_EQ(AINPUT_SOURCE_KEYBOARD, args.source);
1673 ASSERT_EQ(AINPUT_SOURCE_KEYBOARD, args.source);
1690 ASSERT_EQ(AINPUT_SOURCE_KEYBOARD, args.source);
1707 ASSERT_EQ(AINPUT_SOURCE_KEYBOARD, args.source);
2101 ASSERT_EQ(AINPUT_SOURCE_TRACKBALL, args.source);
2120 ASSERT_EQ(AINPUT_SOURCE_TRACKBALL, args.source);
2142 ASSERT_EQ(AINPUT_SOURCE_TRACKBALL, args.source);
2161 ASSERT_EQ(AINPUT_SOURCE_TRACKBALL, args.source);
2656 ASSERT_EQ(AINPUT_SOURCE_MOUSE, args.source);
2685 ASSERT_EQ(AINPUT_SOURCE_MOUSE_RELATIVE, args.source);
2695 ASSERT_EQ(AINPUT_SOURCE_MOUSE_RELATIVE, args.source);
2700 ASSERT_EQ(AINPUT_SOURCE_MOUSE_RELATIVE, args.source);
2709 ASSERT_EQ(AINPUT_SOURCE_MOUSE_RELATIVE, args.source);
2714 ASSERT_EQ(AINPUT_SOURCE_MOUSE_RELATIVE, args.source);
2724 ASSERT_EQ(AINPUT_SOURCE_MOUSE_RELATIVE, args.source);
2745 ASSERT_EQ(AINPUT_SOURCE_MOUSE, args.source);
3140 ASSERT_EQ(AINPUT_SOURCE_KEYBOARD, args.source);
3156 ASSERT_EQ(AINPUT_SOURCE_KEYBOARD, args.source);
3191 ASSERT_EQ(AINPUT_SOURCE_KEYBOARD, keyArgs.source);
3209 ASSERT_EQ(AINPUT_SOURCE_KEYBOARD, keyArgs.source);
3223 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
3247 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
3270 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
3321 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
3344 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
3390 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
3417 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
3442 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
3486 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
3511 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
3534 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
4401 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
4420 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
4452 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
4481 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
4505 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
4530 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
4557 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
4587 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
4611 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);
4634 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source);