Home
last modified time | relevance | path

Searched refs:mTurnOnButton (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DNightDisplayActivationPreferenceController.java38 private Button mTurnOnButton; field in NightDisplayActivationPreferenceController
71 mTurnOnButton = preference.findViewById(R.id.night_display_turn_on_button); in displayPreference()
72 mTurnOnButton.setOnClickListener(mListener); in displayPreference()
100 if (mTurnOnButton == null || mTurnOffButton == null) { in updateStateInternal()
126 mTurnOnButton.setVisibility(View.GONE); in updateStateInternal()
130 mTurnOnButton.setVisibility(View.VISIBLE); in updateStateInternal()
132 mTurnOnButton.setText(buttonText); in updateStateInternal()
/packages/apps/Settings/src/com/android/settings/display/
DNightDisplayActivationPreferenceController.java38 private Button mTurnOnButton; field in NightDisplayActivationPreferenceController
71 mTurnOnButton = preference.findViewById(R.id.night_display_turn_on_button); in displayPreference()
72 mTurnOnButton.setOnClickListener(mListener); in displayPreference()
100 if (mTurnOnButton == null || mTurnOffButton == null) { in updateStateInternal()
126 mTurnOnButton.setVisibility(View.GONE); in updateStateInternal()
130 mTurnOnButton.setVisibility(View.VISIBLE); in updateStateInternal()
132 mTurnOnButton.setText(buttonText); in updateStateInternal()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeActivationPreferenceController.java36 private Button mTurnOnButton; field in DarkModeActivationPreferenceController
50 mTurnOnButton.setVisibility(View.GONE); in updateState()
74 mTurnOnButton.setVisibility(View.GONE); in updateNightMode()
78 mTurnOnButton.setVisibility(View.VISIBLE); in updateNightMode()
80 mTurnOnButton.setText(buttonText); in updateNightMode()
115 mTurnOnButton = preference.findViewById(R.id.dark_ui_turn_on_button); in displayPreference()
116 mTurnOnButton.setOnClickListener(mListener); in displayPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeActivationPreferenceControllerTest.java60 private Button mTurnOnButton; field in DarkModeActivationPreferenceControllerTest
76 eq(R.id.dark_ui_turn_on_button))).thenReturn(mTurnOnButton); in setUp()
109 verify(mTurnOnButton).setVisibility(eq(View.GONE)); in nightMode_toggleButton_offManual()
124 verify(mTurnOnButton).setVisibility(eq(View.VISIBLE)); in nightMode_toggleButton_onAutoWhenModeIsYes()
125 verify(mTurnOnButton).setText(eq(mContext.getString( in nightMode_toggleButton_onAutoWhenModeIsYes()
137 verify(mTurnOnButton).setVisibility(eq(View.VISIBLE)); in nightMode_toggleButton_onAutoWhenModeIsAuto()
138 verify(mTurnOnButton).setText(eq(mContext.getString( in nightMode_toggleButton_onAutoWhenModeIsAuto()
165 verify(mTurnOnButton).setVisibility(eq(View.GONE)); in buttonVisisbility_hideButton_offWhenInPowerSaveMode()