Home | History | Annotate | Download | only in chromeos

Lines Matching refs:configurator_

241       : configurator_(configurator) {
243 configurator_->AddObserver(this);
245 virtual ~TestObserver() { configurator_->RemoveObserver(this); }
277 DisplayConfigurator* configurator_; // Not owned.
338 observer_(&configurator_),
339 test_api_(&configurator_) {}
346 configurator_.SetDelegateForTesting(
349 configurator_.set_state_controller(&state_controller_);
350 configurator_.set_mirroring_controller(&mirroring_controller_);
385 // output-change events to |configurator_| and triggers the configure
395 configurator_.OnConfigurationChanged();
400 // Initializes |configurator_| with a single internal display.
404 configurator_.Init(false);
406 configurator_.ForceInitialConfigure(0);
423 DisplayConfigurator configurator_;
539 EXPECT_TRUE(configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_DUAL_MIRROR));
590 EXPECT_TRUE(configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_DUAL_MIRROR));
593 configurator_.display_state());
600 configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED));
607 EXPECT_TRUE(configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_DUAL_MIRROR));
610 configurator_.display_state());
651 configurator_.SetDisplayPower(
665 EXPECT_EQ(MULTIPLE_DISPLAY_STATE_SINGLE, configurator_.display_state());
671 configurator_.SetDisplayPower(chromeos::DISPLAY_POWER_ALL_OFF,
682 EXPECT_EQ(MULTIPLE_DISPLAY_STATE_DUAL_MIRROR, configurator_.display_state());
688 configurator_.SetDisplayPower(chromeos::DISPLAY_POWER_ALL_ON,
701 EXPECT_EQ(MULTIPLE_DISPLAY_STATE_DUAL_MIRROR, configurator_.display_state());
730 configurator_.display_state());
737 configurator_.SetDisplayPower(
751 EXPECT_EQ(MULTIPLE_DISPLAY_STATE_SINGLE, configurator_.display_state());
758 configurator_.SetDisplayPower(chromeos::DISPLAY_POWER_ALL_OFF,
777 configurator_.display_state());
783 configurator_.SetDisplayPower(chromeos::DISPLAY_POWER_ALL_ON,
803 configurator_.display_state());
814 configurator_.SuspendDisplays();
816 configurator_.ResumeDisplays();
830 configurator_.SetDisplayPower(chromeos::DISPLAY_POWER_ALL_OFF,
841 configurator_.SuspendDisplays();
853 configurator_.ResumeDisplays();
880 configurator_.SetDisplayPower(chromeos::DISPLAY_POWER_ALL_OFF,
892 configurator_.SuspendDisplays();
899 configurator_.ResumeDisplays();
914 configurator_.Init(false);
916 configurator_.ForceInitialConfigure(0);
922 configurator_.SetDisplayPower(chromeos::DISPLAY_POWER_ALL_OFF,
925 configurator_.SetDisplayPower(chromeos::DISPLAY_POWER_ALL_ON,
950 configurator_.Init(false);
954 configurator_.ForceInitialConfigure(0);
972 configurator_.Init(false);
973 configurator_.ForceInitialConfigure(0);
975 EXPECT_TRUE(configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_HEADLESS));
976 EXPECT_FALSE(configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_SINGLE));
978 configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_DUAL_MIRROR));
980 configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED));
986 EXPECT_FALSE(configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_HEADLESS));
987 EXPECT_TRUE(configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_SINGLE));
989 configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_DUAL_MIRROR));
991 configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED));
998 EXPECT_FALSE(configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_HEADLESS));
999 EXPECT_FALSE(configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_SINGLE));
1000 EXPECT_TRUE(configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_DUAL_MIRROR));
1002 configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED));
1010 configurator_.Init(false);
1012 configurator_.ForceInitialConfigure(0);
1014 configurator_.display_state());
1020 configurator_.Init(false);
1022 configurator_.ForceInitialConfigure(0);
1023 EXPECT_EQ(MULTIPLE_DISPLAY_STATE_DUAL_MIRROR, configurator_.display_state());
1029 &configurator_.cached_displays();
1037 cached = &configurator_.cached_displays();
1058 configurator_.Init(true /* is_panel_fitting_enabled */);
1059 configurator_.ForceInitialConfigure(0);
1060 EXPECT_EQ(MULTIPLE_DISPLAY_STATE_DUAL_MIRROR, configurator_.display_state());
1096 configurator_.Init(false);
1097 configurator_.ForceInitialConfigure(0);
1101 configurator_.RegisterContentProtectionClient();
1109 EXPECT_TRUE(configurator_.QueryContentProtectionStatus(
1119 EXPECT_TRUE(configurator_.QueryContentProtectionStatus(
1126 EXPECT_TRUE(configurator_.EnableContentProtection(
1133 EXPECT_TRUE(configurator_.QueryContentProtectionStatus(
1141 configurator_.UnregisterContentProtectionClient(id);
1148 configurator_.RegisterContentProtectionClient();
1150 configurator_.RegisterContentProtectionClient();
1153 configurator_.Init(false);
1154 configurator_.ForceInitialConfigure(0);
1159 EXPECT_TRUE(configurator_.EnableContentProtection(
1167 EXPECT_TRUE(configurator_.QueryContentProtectionStatus(
1172 EXPECT_TRUE(configurator_.QueryContentProtectionStatus(
1178 EXPECT_TRUE(configurator_.EnableContentProtection(
1181 EXPECT_TRUE(configurator_.EnableContentProtection(
1189 configurator_.RegisterContentProtectionClient();
1191 configurator_.RegisterContentProtectionClient();
1194 configurator_.Init(false);
1195 configurator_.ForceInitialConfigure(0);
1200 EXPECT_TRUE(configurator_.EnableContentProtection(
1203 EXPECT_TRUE(configurator_.EnableContentProtection(
1210 EXPECT_TRUE(configurator_.EnableContentProtection(
1212 EXPECT_TRUE(configurator_.EnableContentProtection(
1308 configurator_.Init(false);
1309 configurator_.ForceInitialConfigure(0);
1313 EXPECT_TRUE(configurator_.SetDisplayPower(
1321 EXPECT_FALSE(configurator_.SetDisplayPower(