Home
last modified time | relevance | path

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

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DNightDisplayActivationPreferenceController.java37 private Button mTurnOffButton; field in NightDisplayActivationPreferenceController
73 mTurnOffButton = preference.findViewById(R.id.night_display_turn_off_button); in displayPreference()
74 mTurnOffButton.setOnClickListener(mListener); in displayPreference()
100 if (mTurnOnButton == null || mTurnOffButton == null) { in updateStateInternal()
127 mTurnOffButton.setVisibility(View.VISIBLE); in updateStateInternal()
128 mTurnOffButton.setText(buttonText); in updateStateInternal()
131 mTurnOffButton.setVisibility(View.GONE); in updateStateInternal()
/packages/apps/Settings/src/com/android/settings/display/
DNightDisplayActivationPreferenceController.java37 private Button mTurnOffButton; field in NightDisplayActivationPreferenceController
73 mTurnOffButton = preference.findViewById(R.id.night_display_turn_off_button); in displayPreference()
74 mTurnOffButton.setOnClickListener(mListener); in displayPreference()
100 if (mTurnOnButton == null || mTurnOffButton == null) { in updateStateInternal()
127 mTurnOffButton.setVisibility(View.VISIBLE); in updateStateInternal()
128 mTurnOffButton.setText(buttonText); in updateStateInternal()
131 mTurnOffButton.setVisibility(View.GONE); in updateStateInternal()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeActivationPreferenceController.java35 private Button mTurnOffButton; field in DarkModeActivationPreferenceController
51 mTurnOffButton.setVisibility(View.GONE); in updateState()
75 mTurnOffButton.setVisibility(View.VISIBLE); in updateNightMode()
76 mTurnOffButton.setText(buttonText); in updateNightMode()
79 mTurnOffButton.setVisibility(View.GONE); in updateNightMode()
117 mTurnOffButton = preference.findViewById(R.id.dark_ui_turn_off_button); in displayPreference()
118 mTurnOffButton.setOnClickListener(mListener); in displayPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeActivationPreferenceControllerTest.java58 private Button mTurnOffButton; field in DarkModeActivationPreferenceControllerTest
78 eq(R.id.dark_ui_turn_off_button))).thenReturn(mTurnOffButton); in setUp()
110 verify(mTurnOffButton).setVisibility(eq(View.VISIBLE)); in nightMode_toggleButton_offManual()
111 verify(mTurnOffButton).setText(eq(mContext.getString( in nightMode_toggleButton_offManual()
123 verify(mTurnOffButton).setVisibility(eq(View.GONE)); in nightMode_toggleButton_onAutoWhenModeIsYes()
136 verify(mTurnOffButton).setVisibility(eq(View.GONE)); in nightMode_toggleButton_onAutoWhenModeIsAuto()
164 verify(mTurnOffButton).setVisibility(eq(View.GONE)); in buttonVisisbility_hideButton_offWhenInPowerSaveMode()