Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeActivationPreferenceControllerTest.java68 private Button mTurnOffButton; field in DarkModeActivationPreferenceControllerTest
92 eq(R.id.dark_ui_turn_off_button))).thenReturn(mTurnOffButton); in setUp()
131 verify(mTurnOffButton).setVisibility(eq(View.VISIBLE)); in nightMode_toggleButton_offManual()
132 verify(mTurnOffButton).setText(eq(mContext.getString( in nightMode_toggleButton_offManual()
144 verify(mTurnOffButton).setVisibility(eq(View.VISIBLE)); in nightMode_toggleButton_offCustom()
145 verify(mTurnOffButton).setText(eq(mContext.getString( in nightMode_toggleButton_offCustom()
157 verify(mTurnOffButton).setVisibility(eq(View.VISIBLE)); in nightMode_toggleButton_onCustom()
158 verify(mTurnOffButton).setText(eq(mContext.getString( in nightMode_toggleButton_onCustom()
170 verify(mTurnOffButton).setVisibility(eq(View.GONE)); in nightMode_toggleButton_onAutoWhenModeIsYes()
183 verify(mTurnOffButton).setVisibility(eq(View.GONE)); in nightMode_toggleButton_onAutoWhenModeIsAuto()
[all …]
/packages/apps/Settings/src/com/android/settings/display/
DNightDisplayActivationPreferenceController.java44 private Button mTurnOffButton; field in NightDisplayActivationPreferenceController
88 mTurnOffButton = mPreference.findViewById(R.id.night_display_turn_off_button); in displayPreference()
89 mTurnOffButton.setOnClickListener(mListener); in displayPreference()
115 if (mTurnOnButton == null || mTurnOffButton == null) { in updateStateInternal()
142 mTurnOffButton.setVisibility(View.VISIBLE); in updateStateInternal()
143 mTurnOffButton.setText(buttonText); in updateStateInternal()
145 mTurnOffButton.sendAccessibilityEvent(TYPE_VIEW_FOCUSED); in updateStateInternal()
149 mTurnOffButton.setVisibility(View.GONE); in updateStateInternal()
/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/darkmode/
DDarkModeActivationPreferenceController.java44 private Button mTurnOffButton; field in DarkModeActivationPreferenceController
69 mTurnOffButton.setVisibility(View.GONE); in updateState()
101 mTurnOffButton.setVisibility(View.VISIBLE); in updateNightMode()
102 mTurnOffButton.setText(buttonText); in updateNightMode()
105 mTurnOffButton.setVisibility(View.GONE); in updateNightMode()
153 mTurnOffButton = mPreference.findViewById(R.id.dark_ui_turn_off_button); in displayPreference()
154 mTurnOffButton.setOnClickListener(mListener); in displayPreference()