Home
last modified time | relevance | path

Searched refs:isChecked (Results 1 – 25 of 603) sorted by relevance

12345678910>>...25

/packages/apps/Dialer/java/com/android/incallui/video/impl/
DCheckableImageButton.java36 void onCheckedChanged(CheckableImageButton button, boolean isChecked); in onCheckedChanged() argument
40 private boolean isChecked; field in CheckableImageButton
85 if (isChecked() == checked) { in performSetChecked()
88 isChecked = checked; in performSetChecked()
96 isChecked ? contentDescriptionChecked : contentDescriptionUnchecked; in updateContentDescription()
109 if (isChecked() == checked) { in userRequestedSetChecked()
123 public boolean isChecked() { in isChecked() method in CheckableImageButton
124 return isChecked; in isChecked()
129 userRequestedSetChecked(!isChecked()); in toggle()
135 if (isChecked()) { in onCreateDrawableState()
[all …]
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DButtonController.java46 void setChecked(boolean isChecked); in setChecked() argument
71 protected boolean isChecked; field in ButtonController.CheckableButtonController
113 public void setChecked(boolean isChecked) { in setChecked() argument
114 this.isChecked = isChecked; in setChecked()
116 button.setChecked(isChecked); in setChecked()
135 button.setChecked(isChecked); in setButton()
139 button.getContext().getText(isChecked ? checkedDescription : uncheckedDescription)); in setButton()
145 public void onCheckedChanged(CheckableLabeledButton checkableLabeledButton, boolean isChecked) { in onCheckedChanged() argument
147 button.getContext().getText(isChecked ? checkedDescription : uncheckedDescription)); in onCheckedChanged()
148 doCheckedChanged(isChecked); in onCheckedChanged()
[all …]
DCheckableLabeledButton.java46 private boolean isChecked; field in CheckableLabeledButton
165 public boolean isChecked() { in isChecked() method in CheckableLabeledButton
166 return isChecked; in isChecked()
176 userRequestedSetChecked(!isChecked()); in toggle()
182 if (isChecked()) { in onCreateDrawableState()
222 performSetChecked(savedState.isChecked); in onRestoreInstanceState()
228 return new SavedState(isChecked(), super.onSaveInstanceState()); in onSaveInstanceState()
239 if (isChecked() == checked) { in performSetChecked()
242 isChecked = checked; in performSetChecked()
254 if (isChecked() == checked) { in userRequestedSetChecked()
[all …]
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
DRttCheckableButton.java36 void onCheckedChanged(RttCheckableButton button, boolean isChecked); in onCheckedChanged() argument
40 private boolean isChecked; field in RttCheckableButton
90 if (isChecked() == checked) { in performSetChecked()
93 isChecked = checked; in performSetChecked()
101 isChecked ? contentDescriptionChecked : contentDescriptionUnchecked; in updateContentDescription()
114 if (isChecked() == checked) { in userRequestedSetChecked()
128 public boolean isChecked() { in isChecked() method in RttCheckableButton
129 return isChecked; in isChecked()
134 userRequestedSetChecked(!isChecked()); in toggle()
140 if (isChecked()) { in onCreateDrawableState()
[all …]
DRttOverflowMenu.java74 public void onCheckedChanged(RttCheckableButton button, boolean isChecked) { in onCheckedChanged() argument
76 inCallButtonUiDelegate.muteClicked(isChecked, true); in onCheckedChanged()
80 inCallButtonUiDelegate.showDialpadClicked(isChecked); in onCheckedChanged()
84 void setMuteButtonChecked(boolean isChecked) { in setMuteButtonChecked() argument
85 muteButton.setChecked(isChecked); in setMuteButtonChecked()
91 speakerButton.setChecked(info.isChecked); in setAudioState()
106 void setDialpadButtonChecked(boolean isChecked) { in setDialpadButtonChecked() argument
107 dialpadButton.setChecked(isChecked); in setDialpadButtonChecked()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothEnabler.java153 private void setChecked(boolean isChecked) { in setChecked() argument
154 if (isChecked != mSwitchController.isChecked()) { in setChecked()
160 mSwitchController.setChecked(isChecked); in setChecked()
168 public boolean onSwitchToggled(boolean isChecked) { in onSwitchToggled() argument
170 triggerParentPreferenceCallback(isChecked); in onSwitchToggled()
175 if (isChecked && in onSwitchToggled()
184 mMetricsFeatureProvider.action(mContext, mMetricsEvent, isChecked); in onSwitchToggled()
187 boolean status = setBluetoothEnabled(isChecked); in onSwitchToggled()
191 if (isChecked && !status) { in onSwitchToggled()
200 triggerParentPreferenceCallback(isChecked); in onSwitchToggled()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothEnabler.java153 private void setChecked(boolean isChecked) { in setChecked() argument
154 if (isChecked != mSwitchController.isChecked()) { in setChecked()
160 mSwitchController.setChecked(isChecked); in setChecked()
168 public boolean onSwitchToggled(boolean isChecked) { in onSwitchToggled() argument
170 triggerParentPreferenceCallback(isChecked); in onSwitchToggled()
175 if (isChecked && in onSwitchToggled()
184 mMetricsFeatureProvider.action(mContext, mMetricsEvent, isChecked); in onSwitchToggled()
187 boolean status = setBluetoothEnabled(isChecked); in onSwitchToggled()
191 if (isChecked && !status) { in onSwitchToggled()
200 triggerParentPreferenceCallback(isChecked); in onSwitchToggled()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DSwitchBar.java61 void onSwitchChanged(Switch switchView, boolean isChecked); in onSwitchChanged() argument
143 (switchView, isChecked) -> setTextViewLabelAndBackground(isChecked)); in SwitchBar()
180 public void setTextViewLabelAndBackground(boolean isChecked) { in setTextViewLabelAndBackground() argument
181 mLabel = getResources().getString(isChecked ? mOnTextId : mOffTextId); in setTextViewLabelAndBackground()
182 setBackgroundColor(isChecked ? mBackgroundActivatedColor : mBackgroundColor); in setTextViewLabelAndBackground()
189 setTextViewLabelAndBackground(isChecked()); in setSwitchBarText()
219 public boolean isChecked() { in isChecked() method in SwitchBar
220 return mSwitch.isChecked(); in isChecked()
284 public void propagateChecked(boolean isChecked) { in propagateChecked() argument
287 mSwitchChangeListeners.get(n).onSwitchChanged(mSwitch, isChecked); in propagateChecked()
[all …]
DSwitchBarController.java46 public void updateTitle(boolean isChecked) { in updateTitle() argument
47 mSwitchBar.setTextViewLabelAndBackground(isChecked); in updateTitle()
66 public boolean isChecked() { in isChecked() method in SwitchBarController
67 return mSwitchBar.isChecked(); in isChecked()
76 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
78 mListener.onSwitchToggled(isChecked); in onSwitchChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DSwitchBar.java63 void onSwitchChanged(Switch switchView, boolean isChecked); in onSwitchChanged() argument
139 (switchView, isChecked) -> setTextViewLabelAndBackground(isChecked)); in SwitchBar()
170 public void setTextViewLabelAndBackground(boolean isChecked) { in setTextViewLabelAndBackground() argument
171 mLabel = getResources().getString(isChecked ? mOnTextId : mOffTextId); in setTextViewLabelAndBackground()
172 setBackgroundColor(isChecked ? mBackgroundActivatedColor : mBackgroundColor); in setTextViewLabelAndBackground()
179 setTextViewLabelAndBackground(isChecked()); in setSwitchBarText()
209 public boolean isChecked() { in isChecked() method in SwitchBar
210 return mSwitch.isChecked(); in isChecked()
286 public void propagateChecked(boolean isChecked) { in propagateChecked() argument
289 mSwitchChangeListeners.get(n).onSwitchChanged(mSwitch, isChecked); in propagateChecked()
[all …]
DSwitchBarController.java46 public void updateTitle(boolean isChecked) { in updateTitle() argument
47 mSwitchBar.setTextViewLabelAndBackground(isChecked); in updateTitle()
66 public boolean isChecked() { in isChecked() method in SwitchBarController
67 return mSwitchBar.isChecked(); in isChecked()
76 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
78 mListener.onSwitchToggled(isChecked); in onSwitchChanged()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiRadioButtonListItemAdapter.java47 if (item.isChecked() && mSelectedIndex >= 0) { in CarUiRadioButtonListItemAdapter()
52 if (item.isChecked()) { in CarUiRadioButtonListItemAdapter()
87 actualHolder.setOnCheckedChangeListener(isChecked -> { in onBindViewHolder()
88 if (isChecked && mSelectedIndex >= 0) { in onBindViewHolder()
95 if (isChecked) { in onBindViewHolder()
120 void onCheckedChanged(boolean isChecked); in onCheckedChanged() argument
138 (buttonView, isChecked) -> { in bind() argument
139 item.setChecked(isChecked); in bind()
141 mListener.onCheckedChanged(isChecked); in bind()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/featureflags/
DFeatureFlagPreference.java45 public void setChecked(boolean isChecked) { in setChecked() argument
46 setCheckedInternal(isChecked); in setChecked()
48 FeatureFlagPersistent.setEnabled(getContext(), mKey, isChecked); in setChecked() local
50 FeatureFlagUtils.setEnabled(getContext(), mKey, isChecked); in setChecked() local
54 private void setCheckedInternal(boolean isChecked) { in setCheckedInternal() argument
55 super.setChecked(isChecked); in setCheckedInternal()
56 setSummary(Boolean.toString(isChecked)); in setCheckedInternal()
/packages/apps/Settings/src/com/android/settings/development/featureflags/
DFeatureFlagPreference.java45 public void setChecked(boolean isChecked) { in setChecked() argument
46 setCheckedInternal(isChecked); in setChecked()
48 FeatureFlagPersistent.setEnabled(getContext(), mKey, isChecked); in setChecked() local
50 FeatureFlagUtils.setEnabled(getContext(), mKey, isChecked); in setChecked() local
54 private void setCheckedInternal(boolean isChecked) { in setCheckedInternal() argument
55 super.setChecked(isChecked); in setCheckedInternal()
56 setSummary(Boolean.toString(isChecked)); in setCheckedInternal()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DTogglePreferenceControllerTest.java54 assertThat(mPreference.isChecked()).isTrue(); in testSetsPreferenceValue_setsChecked()
64 assertThat(mPreference.isChecked()).isFalse(); in testSetsPreferenceValue_setsNotChecked()
74 assertThat(mToggleController.isChecked()).isEqualTo(newValue); in testUpdatesPreferenceOnChange_turnsOn()
84 assertThat(mToggleController.isChecked()).isEqualTo(newValue); in testUpdatesPreferenceOnChange_turnsOff()
102 public boolean isChecked() { in isChecked() method in TogglePreferenceControllerTest.FakeToggle
107 public boolean setChecked(boolean isChecked) { in setChecked() argument
108 checkedFlag = isChecked; in setChecked()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java79 public boolean isChecked() { in isChecked() method in BatterySaverButtonPreferenceController
94 mPreference.setChecked(isChecked()); in updateState()
100 final boolean isChecked = isChecked(); in onPowerSaveModeChanged()
101 if (mPreference != null && mPreference.isChecked() != isChecked) { in onPowerSaveModeChanged()
102 mPreference.setChecked(isChecked); in onPowerSaveModeChanged()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java79 public boolean isChecked() { in isChecked() method in BatterySaverButtonPreferenceController
94 mPreference.setChecked(isChecked()); in updateState()
100 final boolean isChecked = isChecked(); in onPowerSaveModeChanged()
101 if (mPreference != null && mPreference.isChecked() != isChecked) { in onPowerSaveModeChanged()
102 mPreference.setChecked(isChecked); in onPowerSaveModeChanged()
/packages/apps/DevCamera/src/com/android/devcamera/
DDevCameraActivity.java97 mToggleYuvFull.isChecked(),
98 mToggleYuvVga.isChecked(),
99 mToggleRaw.isChecked(),
102 mToggleFace.isChecked()
109 …int reprocessingViz = mToggleYuvFull.isChecked() && mCamera.isReprocessingAvailable() ? View.VISIB…
113 if (view == mToggleYuvFull && !mToggleYuvFull.isChecked()) {
119 mCamera.setBurst(mToggleBurstJpeg.isChecked());
123 mPreviewOverlay.show3AInfo(mToggleShow3A.isChecked());
126 if (mToggleGyro.isChecked()) {
202 openCamera(mToggleFrontCam.isChecked()); in onCreate()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DApnPreference.java70 boolean isChecked = getKey().equals(mSelectedKey); in onBindViewHolder()
71 if (isChecked) { in onBindViewHolder()
77 rb.setChecked(isChecked); in onBindViewHolder()
86 public boolean isChecked() { in isChecked() method in ApnPreference
94 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { in onCheckedChanged() argument
95 Log.i(TAG, "ID: " + getKey() + " :" + isChecked); in onCheckedChanged()
100 if (isChecked) { in onCheckedChanged()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DApnPreference.java71 boolean isChecked = getKey().equals(mSelectedKey); in getView()
72 if (isChecked) { in getView()
78 rb.setChecked(isChecked); in getView()
94 public boolean isChecked() { in isChecked() method in ApnPreference
106 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { in onCheckedChanged() argument
107 Log.i(TAG, "ID: " + getKey() + " :" + isChecked); in onCheckedChanged()
112 if (isChecked) { in onCheckedChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentFragment.java643 if (cb.isChecked()) { in resetDangerousOptions()
723 mDebugApp, mWaitForDebugger.isChecked(), true); in writeDebuggerOptions()
842 mVerifyAppsOverUsb.isChecked() ? 1 : 0); in writeVerifyAppsOverUsbOptions()
880 || mEnableDeveloper.isChecked(); in updateBugreportOptions()
915 mWindowManager.setStrictModeVisualIndicatorPreference(mStrictMode.isChecked() in writeStrictModeVisualOptions()
928 Settings.System.POINTER_LOCATION, mPointerLocation.isChecked() ? 1 : 0); in writePointerLocationOptions()
938 Settings.System.SHOW_TOUCHES, mShowTouches.isChecked() ? 1 : 0); in writeShowTouchesOptions()
979 final int showUpdates = mShowScreenUpdates.isChecked() ? 1 : 0; in writeShowUpdatesOption()
997 final int disableOverlays = mDisableOverlays.isChecked() ? 1 : 0; in writeDisableOverlaysOption()
1014 DisplayProperties.debug_force_msaa(mForceMsaa.isChecked()); in writeMsaaOptions()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DPreventRingingGesturePreferenceControllerTest.java88 assertThat(mController.mVibratePref.isChecked()).isFalse(); in testUpdateState_mute()
89 assertThat(mController.mMutePref.isChecked()).isTrue(); in testUpdateState_mute()
99 assertThat(mController.mVibratePref.isChecked()).isTrue(); in testUpdateState_vibrate()
100 assertThat(mController.mMutePref.isChecked()).isFalse(); in testUpdateState_vibrate()
110 assertThat(mController.mVibratePref.isChecked()).isFalse(); in testUpdateState_off()
111 assertThat(mController.mMutePref.isChecked()).isFalse(); in testUpdateState_off()
119 assertThat(mController.mVibratePref.isChecked()).isFalse(); in testUpdateState_other()
120 assertThat(mController.mMutePref.isChecked()).isFalse(); in testUpdateState_other()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DAirplaneModePreferenceControllerTest.java131 assertThat(mPreference.isChecked()).isFalse(); in airplaneModePreference_testSetValue_updatesCorrectly()
133 assertThat(mController.isChecked()).isFalse(); in airplaneModePreference_testSetValue_updatesCorrectly()
144 assertThat(mPreference.isChecked()).isTrue(); in airplaneModePreference_testSetValue_updatesCorrectly()
152 assertThat(mPreference.isChecked()).isFalse(); in airplaneModePreference_testSetValue_updatesCorrectly()
165 assertThat(mController.isChecked()).isTrue(); in airplaneModePreference_testGetValue_correctValueReturned()
168 assertThat(mController.isChecked()).isFalse(); in airplaneModePreference_testGetValue_correctValueReturned()
179 assertThat(mPreference.isChecked()).isFalse(); in airplaneModePreference_testPreferenceUI_updatesCorrectly()
183 assertThat(mPreference.isChecked()).isTrue(); in airplaneModePreference_testPreferenceUI_updatesCorrectly()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DRatingsFragment.java193 if (mParentalControlSettings.setUnratedBlocked(isChecked())) { in onAttach()
225 boolean isChecked) { in updateDependentRatingItems() argument
231 && ((ratingOrderIndex > selectedRatingOrderIndex && isChecked) in updateDependentRatingItems()
232 || (ratingOrderIndex < selectedRatingOrderIndex && !isChecked))) { in updateDependentRatingItems()
233 item.setRatingBlocked(isChecked); in updateDependentRatingItems()
321 mContentRatingSystem, mRating, isChecked())) { in onSelected()
330 isChecked()); in onSelected()
348 private void setRatingBlocked(boolean isChecked) { in setRatingBlocked() argument
349 if (isChecked() == isChecked) { in setRatingBlocked()
352 mParentalControlSettings.setRatingBlocked(mContentRatingSystem, mRating, isChecked); in setRatingBlocked()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/tts/
DTtsEnginePreference.java58 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
59 onRadioButtonClicked(buttonView, isChecked);
90 boolean isChecked = getKey().equals(mSharedState.getCurrentKey()); in onBindViewHolder()
91 if (isChecked) { in onBindViewHolder()
96 rb.setChecked(isChecked); in onBindViewHolder()
124 boolean isChecked) { in onRadioButtonClicked() argument
130 if (isChecked) { in onRadioButtonClicked()

12345678910>>...25