Home | History | Annotate | Download | only in system_display

Lines Matching refs:overscan

101   EXPECT_EQ("0,0,0,0", SystemInfoDisplayInsetsToString(result[0]->overscan));
119 EXPECT_EQ("0,0,0,0", SystemInfoDisplayInsetsToString(result[1]->overscan));
218 // Default overscan is 5%.
222 SystemInfoDisplayInsetsToString(result[1]->overscan));
234 SystemInfoDisplayInsetsToString(result[1]->overscan));
242 EXPECT_EQ("9,8,9,8", SystemInfoDisplayInsetsToString(result[0]->overscan));
253 SystemInfoDisplayInsetsToString(result[0]->overscan));
757 info.overscan.reset(new api::system_display::Insets);
758 info.overscan->left= -10;
766 EXPECT_EQ("Negative overscan not allowed.", error);
770 info.overscan->left= 0;
771 info.overscan->right = -200;
777 EXPECT_EQ("Negative overscan not allowed.", error);
781 info.overscan->right= 0;
782 info.overscan->top = -300;
788 EXPECT_EQ("Negative overscan not allowed.", error);
792 info.overscan->right= 0;
793 info.overscan->top = -1000;
799 EXPECT_EQ("Negative overscan not allowed.", error);
803 info.overscan->right= 0;
804 info.overscan->top = 0;
820 info.overscan.reset(new api::system_display::Insets);
821 // Horizontal overscan is 151, which would make the bounds width 149.
822 info.overscan->left= 50;
823 info.overscan->top = 10;
824 info.overscan->right = 101;
825 info.overscan->bottom = 20;
833 EXPECT_EQ("Horizontal overscan is more than half of the screen width.",
842 info.overscan.reset(new api::system_display::Insets);
843 // Vertical overscan is 501, which would make the bounds height 499.
844 info.overscan->left= 20;
845 info.overscan->top = 250;
846 info.overscan->right = 101;
847 info.overscan->bottom = 251;
855 EXPECT_EQ("Vertical overscan is more than half of the screen height.",
864 info.overscan.reset(new api::system_display::Insets);
865 info.overscan->left= 20;
866 info.overscan->top = 199;
867 info.overscan->right = 130;
868 info.overscan->bottom = 51;
879 const gfx::Insets overscan =
882 EXPECT_EQ(20, overscan.left());
883 EXPECT_EQ(199, overscan.top());
884 EXPECT_EQ(130, overscan.right());
885 EXPECT_EQ(51, overscan.bottom());
895 info.overscan.reset(new api::system_display::Insets);
896 // Vertical overscan is 501, which would make the bounds height 499.
897 info.overscan->left= 20;
898 info.overscan->top = 20;
899 info.overscan->right = 20;
900 info.overscan->bottom = 20;
908 EXPECT_EQ("Overscan changes not allowed for the internal monitor.",