Lines Matching refs:overscan

83   EXPECT_EQ("0,0,0,0", SystemInfoDisplayInsetsToString(result[0]->overscan));
101 EXPECT_EQ("0,0,0,0", SystemInfoDisplayInsetsToString(result[1]->overscan));
199 // Default overscan is 5%.
203 SystemInfoDisplayInsetsToString(result[1]->overscan));
215 SystemInfoDisplayInsetsToString(result[1]->overscan));
223 EXPECT_EQ("9,8,9,8", SystemInfoDisplayInsetsToString(result[0]->overscan));
234 SystemInfoDisplayInsetsToString(result[0]->overscan));
737 info.overscan.reset(new core_api::system_display::Insets);
738 info.overscan->left = -10;
746 EXPECT_EQ("Negative overscan not allowed.", error);
750 info.overscan->left = 0;
751 info.overscan->right = -200;
757 EXPECT_EQ("Negative overscan not allowed.", error);
761 info.overscan->right = 0;
762 info.overscan->top = -300;
768 EXPECT_EQ("Negative overscan not allowed.", error);
772 info.overscan->right = 0;
773 info.overscan->top = -1000;
779 EXPECT_EQ("Negative overscan not allowed.", error);
783 info.overscan->right = 0;
784 info.overscan->top = 0;
800 info.overscan.reset(new core_api::system_display::Insets);
801 // Horizontal overscan is 151, which would make the bounds width 149.
802 info.overscan->left = 50;
803 info.overscan->top = 10;
804 info.overscan->right = 101;
805 info.overscan->bottom = 20;
813 EXPECT_EQ("Horizontal overscan is more than half of the screen width.",
822 info.overscan.reset(new core_api::system_display::Insets);
823 // Vertical overscan is 501, which would make the bounds height 499.
824 info.overscan->left = 20;
825 info.overscan->top = 250;
826 info.overscan->right = 101;
827 info.overscan->bottom = 251;
835 EXPECT_EQ("Vertical overscan is more than half of the screen height.", error);
843 info.overscan.reset(new core_api::system_display::Insets);
844 info.overscan->left = 20;
845 info.overscan->top = 199;
846 info.overscan->right = 130;
847 info.overscan->bottom = 51;
858 const gfx::Insets overscan =
861 EXPECT_EQ(20, overscan.left());
862 EXPECT_EQ(199, overscan.top());
863 EXPECT_EQ(130, overscan.right());
864 EXPECT_EQ(51, overscan.bottom());
874 info.overscan.reset(new core_api::system_display::Insets);
875 // Vertical overscan is 501, which would make the bounds height 499.
876 info.overscan->left = 20;
877 info.overscan->top = 20;
878 info.overscan->right = 20;
879 info.overscan->bottom = 20;