/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | AppPermissionViewModel.kt | 166 var isChecked: Boolean, in <lambda>() variable in com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonState 233 allowedAlwaysState.isChecked = group.background.isGranted && in <lambda>() 235 allowedForegroundState.isChecked = group.foreground.isGranted && in <lambda>() 237 askState.isChecked = !group.foreground.isGranted && group.isOneTime in <lambda>() 238 askOneTimeState.isChecked = group.foreground.isGranted && group.isOneTime in <lambda>() 239 askOneTimeState.isShown = askOneTimeState.isChecked in <lambda>() 240 deniedState.isChecked = !group.foreground.isGranted && !group.isOneTime in <lambda>() 264 allowedAlwaysState.isChecked = in <lambda>() 265 allowedAlwaysState.isChecked || allowedForegroundState.isChecked in <lambda>() 273 allowedForegroundState.isChecked = false in <lambda>() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/video/impl/ |
D | CheckableImageButton.java | 36 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/ |
D | ButtonController.java | 46 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 …]
|
D | CheckableLabeledButton.java | 46 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/ |
D | RttCheckableButton.java | 36 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 …]
|
D | RttOverflowMenu.java | 74 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/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | GroupSelectionPreferenceControllerTest.java | 128 assertThat(findPreference("key1").isChecked()).isFalse(); in refreshUi_elementChecked() 129 assertThat(findPreference("key2").isChecked()).isTrue(); in refreshUi_elementChecked() 143 assertThat(findPreference("key1").isChecked()).isFalse(); in performClick_allowPassThrough_checkedElementChanged() 144 assertThat(findPreference("key2").isChecked()).isTrue(); in performClick_allowPassThrough_checkedElementChanged() 148 assertThat(findPreference("key1").isChecked()).isTrue(); in performClick_allowPassThrough_checkedElementChanged() 149 assertThat(findPreference("key2").isChecked()).isFalse(); in performClick_allowPassThrough_checkedElementChanged() 163 assertThat(findPreference("key1").isChecked()).isFalse(); in performClick_disallowPassThrough_checkedElementNotChanged() 164 assertThat(findPreference("key2").isChecked()).isTrue(); in performClick_disallowPassThrough_checkedElementNotChanged() 168 assertThat(findPreference("key1").isChecked()).isFalse(); in performClick_disallowPassThrough_checkedElementNotChanged() 169 assertThat(findPreference("key2").isChecked()).isTrue(); in performClick_disallowPassThrough_checkedElementNotChanged() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | BluetoothEnabler.java | 153 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/ |
D | BluetoothEnabler.java | 153 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/ |
D | SwitchBar.java | 61 void onSwitchChanged(Switch switchView, boolean isChecked); in onSwitchChanged() argument 141 (switchView, isChecked) -> setTextViewLabelAndBackground(isChecked)); in SwitchBar() 178 public void setTextViewLabelAndBackground(boolean isChecked) { in setTextViewLabelAndBackground() argument 179 mLabel = isChecked ? mOnText : mOffText; in setTextViewLabelAndBackground() 180 setBackgroundColor(isChecked ? mBackgroundActivatedColor : mBackgroundColor); in setTextViewLabelAndBackground() 187 setTextViewLabelAndBackground(isChecked()); in setSwitchBarText() 193 setTextViewLabelAndBackground(isChecked()); in setSwitchBarText() 223 public boolean isChecked() { in isChecked() method in SwitchBar 224 return mSwitch.isChecked(); in isChecked() 286 public void propagateChecked(boolean isChecked) { in propagateChecked() argument [all …]
|
D | SwitchBarController.java | 46 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/ |
D | SwitchBar.java | 63 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 …]
|
D | SwitchBarController.java | 46 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/tests/unit/src/com/android/car/ui/recyclerview/ |
D | CarUiListItemTest.java | 22 import static androidx.test.espresso.matcher.ViewMatchers.isChecked; 139 onView(withId(R.id.checkbox_widget)).check(matches(isChecked())); in testItem_withCheckbox() 168 onView(withId(R.id.switch_widget)).check(matches(isChecked())); in testItem_withSwitch() 174 onView(withId(R.id.switch_widget)).check(matches(isChecked())); in testItem_withSwitch() 197 onView(withId(R.id.radio_button_widget)).check(matches(isChecked())); in testItem_withRadioButton() 201 onView(withId(R.id.radio_button_widget)).check(matches(isChecked())); in testItem_withRadioButton() 295 assertFalse(itemOne.isChecked()); in testRadioButtonListItemAdapter() 296 assertFalse(itemTwo.isChecked()); in testRadioButtonListItemAdapter() 297 assertFalse(itemThree.isChecked()); in testRadioButtonListItemAdapter() 301 assertTrue(itemOne.isChecked()); in testRadioButtonListItemAdapter() [all …]
|
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/ |
D | CarUiRadioButtonListItemAdapter.java | 47 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/apps/Settings/src/com/android/settings/development/featureflags/ |
D | FeatureFlagPreference.java | 45 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/featureflags/ |
D | FeatureFlagPreference.java | 45 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/applications/ |
D | OpenSupportedLinksTest.java | 108 assertThat(mSettings.mAllowOpening.isChecked()).isTrue(); in initRadioPreferencesGroup_statusAlways_allowOpenChecked() 109 assertThat(mSettings.mAskEveryTime.isChecked()).isFalse(); in initRadioPreferencesGroup_statusAlways_allowOpenChecked() 110 assertThat(mSettings.mNotAllowed.isChecked()).isFalse(); in initRadioPreferencesGroup_statusAlways_allowOpenChecked() 119 assertThat(mSettings.mAllowOpening.isChecked()).isFalse(); in initRadioPreferencesGroup_statusAsk_askEveryTimeChecked() 120 assertThat(mSettings.mAskEveryTime.isChecked()).isTrue(); in initRadioPreferencesGroup_statusAsk_askEveryTimeChecked() 121 assertThat(mSettings.mNotAllowed.isChecked()).isFalse(); in initRadioPreferencesGroup_statusAsk_askEveryTimeChecked() 130 assertThat(mSettings.mAllowOpening.isChecked()).isFalse(); in initRadioPreferencesGroup_statusNever_notAllowedChecked() 131 assertThat(mSettings.mAskEveryTime.isChecked()).isFalse(); in initRadioPreferencesGroup_statusNever_notAllowedChecked() 132 assertThat(mSettings.mNotAllowed.isChecked()).isTrue(); in initRadioPreferencesGroup_statusNever_notAllowedChecked()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAppsPickerBasePreferenceControllerTest.java | 174 assertThat(preference.isChecked()).isTrue(); in refreshUi_hasAdditionalCandidateAsDefault_secondElementIsSelected() 193 assertThat(currentDefault.isChecked()).isTrue(); in performClick_currentDefaultApp_nothingHappened() 194 assertThat(otherOption.isChecked()).isFalse(); in performClick_currentDefaultApp_nothingHappened() 201 assertThat(currentDefault.isChecked()).isTrue(); in performClick_currentDefaultApp_nothingHappened() 202 assertThat(otherOption.isChecked()).isFalse(); in performClick_currentDefaultApp_nothingHappened() 222 assertThat(currentDefault.isChecked()).isTrue(); in performClick_otherOptionNoMessage_otherOptionSelected() 223 assertThat(otherOption.isChecked()).isFalse(); in performClick_otherOptionNoMessage_otherOptionSelected() 230 assertThat(currentDefault.isChecked()).isFalse(); in performClick_otherOptionNoMessage_otherOptionSelected() 231 assertThat(otherOption.isChecked()).isTrue(); in performClick_otherOptionNoMessage_otherOptionSelected() 251 assertThat(currentDefault.isChecked()).isTrue(); in performClick_otherOptionHasMessage_dialogOpened() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | AssistantCapabilityPreferenceControllerTest.java | 115 assertThat(mPrioritizerController.isChecked()).isFalse(); in isChecked_prioritizerSettingIsOff_false() 123 assertThat(mPrioritizerController.isChecked()).isTrue(); in isChecked_prioritizerSettingIsOn_true() 128 assertThat(mPrioritizerController.isChecked()).isFalse(); in isChecked_prioritizerSettingIsOn_true() 136 assertThat(mRankingController.isChecked()).isFalse(); in isChecked_rankingSettingIsOff_false() 144 assertThat(mRankingController.isChecked()).isTrue(); in isChecked_rankingSettingIsOn_true() 152 assertThat(mChipController.isChecked()).isFalse(); in isChecked_chipSettingIsOff_false() 157 assertThat(mChipController.isChecked()).isFalse(); in isChecked_chipSettingIsOff_false() 162 assertThat(mChipController.isChecked()).isFalse(); in isChecked_chipSettingIsOff_false() 167 assertThat(mChipController.isChecked()).isFalse(); in isChecked_chipSettingIsOff_false() 176 assertThat(mChipController.isChecked()).isTrue(); in isChecked_chipSettingIsOn_true()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterysaver/ |
D | BatterySaverButtonPreferenceController.java | 79 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/tests/robotests/src/com/android/settings/core/ |
D | TogglePreferenceControllerTest.java | 54 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() 112 public boolean isChecked() { in isChecked() method in TogglePreferenceControllerTest.FakeToggle 117 public boolean setChecked(boolean isChecked) { in setChecked() argument 118 checkedFlag = isChecked; in setChecked()
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/builders/ |
D | PreferenceSliceBuilder.java | 521 PendingIntent pendingIntent, boolean isChecked) { in addRadioButton() argument 522 return addButton(pendingIntent, isChecked, RADIO); in addRadioButton() 532 PendingIntent pendingIntent, boolean isChecked, CharSequence radioGroup) { in addRadioButton() argument 533 return addButton(pendingIntent, isChecked, RADIO).setRadioGroup(radioGroup); in addRadioButton() 542 PendingIntent pendingIntent, boolean isChecked) { in addCheckMark() argument 543 return addButton(pendingIntent, isChecked, CHECKMARK); in addCheckMark() 552 PendingIntent pendingIntent, boolean isChecked) { in addSwitch() argument 553 return addButton(pendingIntent, isChecked, SWITCH); in addSwitch() 557 PendingIntent pendingIntent, boolean isChecked, @BUTTONSTYLE int style) { in addButton() argument 558 SliceAction switchAction = new SliceAction(pendingIntent, "", isChecked); in addButton() [all …]
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | DevCameraActivity.java | 97 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/ |
D | ApnPreference.java | 70 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()
|