Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/display/
DNightDisplayActivationPreferenceController.java45 private Button mTurnOnButton; field in NightDisplayActivationPreferenceController
86 mTurnOnButton = mPreference.findViewById(R.id.night_display_turn_on_button); in displayPreference()
87 mTurnOnButton.setOnClickListener(mListener); in displayPreference()
115 if (mTurnOnButton == null || mTurnOffButton == null) { in updateStateInternal()
141 mTurnOnButton.setVisibility(View.GONE); in updateStateInternal()
148 mTurnOnButton.setVisibility(View.VISIBLE); in updateStateInternal()
150 mTurnOnButton.setText(buttonText); in updateStateInternal()
152 mTurnOnButton.sendAccessibilityEvent(TYPE_VIEW_FOCUSED); in updateStateInternal()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeActivationPreferenceControllerTest.java70 private Button mTurnOnButton; field in DarkModeActivationPreferenceControllerTest
90 eq(R.id.dark_ui_turn_on_button))).thenReturn(mTurnOnButton); in setUp()
130 verify(mTurnOnButton).setVisibility(eq(View.GONE)); in nightMode_toggleButton_offManual()
143 verify(mTurnOnButton).setVisibility(eq(View.GONE)); in nightMode_toggleButton_offCustom()
156 verify(mTurnOnButton).setVisibility(eq(View.GONE)); in nightMode_toggleButton_onCustom()
171 verify(mTurnOnButton).setVisibility(eq(View.VISIBLE)); in nightMode_toggleButton_onAutoWhenModeIsYes()
172 verify(mTurnOnButton).setText(eq(mContext.getString( in nightMode_toggleButton_onAutoWhenModeIsYes()
184 verify(mTurnOnButton).setVisibility(eq(View.VISIBLE)); in nightMode_toggleButton_onAutoWhenModeIsAuto()
185 verify(mTurnOnButton).setText(eq(mContext.getString( in nightMode_toggleButton_onAutoWhenModeIsAuto()
212 verify(mTurnOnButton).setVisibility(eq(View.GONE)); in buttonVisisbility_hideButton_offWhenInPowerSaveMode()
/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/darkmode/
DDarkModeActivationPreferenceController.java45 private Button mTurnOnButton; field in DarkModeActivationPreferenceController
68 mTurnOnButton.setVisibility(View.GONE); in updateState()
100 mTurnOnButton.setVisibility(View.GONE); in updateNightMode()
104 mTurnOnButton.setVisibility(View.VISIBLE); in updateNightMode()
106 mTurnOnButton.setText(buttonText); in updateNightMode()
151 mTurnOnButton = mPreference.findViewById(R.id.dark_ui_turn_on_button); in displayPreference()
152 mTurnOnButton.setOnClickListener(mListener); in displayPreference()