/frameworks/base/packages/SettingsLib/MainSwitchPreference/src/com/android/settingslib/widget/ |
D | MainSwitchBar.java | 97 addOnSwitchChangeListener((switchView, isChecked) -> setChecked(isChecked)); in MainSwitchBar() 103 setChecked(mSwitch.isChecked()); in MainSwitchBar() 115 setBackground(mSwitch.isChecked()); in MainSwitchBar() 119 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { in onCheckedChanged() argument 120 propagateChecked(isChecked); in onCheckedChanged() 142 public boolean isChecked() { in isChecked() method in MainSwitchBar 143 return mSwitch.isChecked(); in isChecked() 220 mFrameView.setActivated(isChecked()); in setEnabled() 224 private void propagateChecked(boolean isChecked) { in propagateChecked() argument 225 setBackground(isChecked); in propagateChecked() [all …]
|
D | MainSwitchPreference.java | 75 mMainSwitchBar.setOnClickListener((view) -> callChangeListener(isChecked())); in onBindViewHolder() 77 updateStatus(isChecked()); in onBindViewHolder() 102 if (mMainSwitchBar != null && mMainSwitchBar.isChecked() != checked) { in setChecked() 124 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { in onCheckedChanged() argument 125 super.setChecked(isChecked); in onCheckedChanged()
|
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/items/ |
D | SwitchItemTest.java | 84 assertTrue("Switch should be checked", mSwitch.isChecked()); in testChecked() 98 assertFalse("Switch should be unchecked", mSwitch.isChecked()); in testNotChecked() 115 assertTrue("Switch should be checked", mSwitch.isChecked()); in testListener() 145 assertTrue("Switch should be checked", mSwitch.isChecked()); in testRebind() 149 assertFalse("Item1 should still be unchecked", item1.isChecked()); in testRebind() 150 assertFalse("Item2 should not be checked", item2.isChecked()); in testRebind() 154 assertFalse("Item1 should still be unchecked", item1.isChecked()); in testRebind() 155 assertTrue("Item2 should be checked", item2.isChecked()); in testRebind() 174 assertTrue("Switch should be checked", mSwitch.isChecked()); in testListenerSetChecked() 196 assertTrue("Switch should be checked", mSwitch.isChecked()); in testToggle() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/ |
D | EnableZenModeDialogTest.java | 118 .isChecked()); in testForeverChecked() 120 .isChecked()); in testForeverChecked() 122 EnableZenModeDialog.COUNTDOWN_ALARM_CONDITION_INDEX).rb.isChecked()); in testForeverChecked() 129 .isChecked()); in testNoneChecked() 131 .isChecked()); in testNoneChecked() 133 EnableZenModeDialog.COUNTDOWN_ALARM_CONDITION_INDEX).rb.isChecked()); in testNoneChecked() 143 .isChecked()); in testAlarmChecked() 145 .isChecked()); in testAlarmChecked() 147 EnableZenModeDialog.COUNTDOWN_ALARM_CONDITION_INDEX).rb.isChecked()); in testAlarmChecked() 157 .isChecked()); in testCountdownChecked() [all …]
|
D | ZenDurationDialogTest.java | 69 .isChecked()); in testAlwaysPrompt() 71 .isChecked()); in testAlwaysPrompt() 73 ZenDurationDialog.ALWAYS_ASK_CONDITION_INDEX).rb.isChecked()); in testAlwaysPrompt() 83 .isChecked()); in testForever() 85 .isChecked()); in testForever() 87 ZenDurationDialog.ALWAYS_ASK_CONDITION_INDEX).rb.isChecked()); in testForever() 96 .isChecked()); in testSpecificDuration() 98 .isChecked()); in testSpecificDuration() 100 ZenDurationDialog.ALWAYS_ASK_CONDITION_INDEX).rb.isChecked()); in testSpecificDuration()
|
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/items/ |
D | SwitchItem.java | 43 void onCheckedChange(SwitchItem item, boolean isChecked); in onCheckedChange() argument 79 public boolean isChecked() { in isChecked() method in SwitchItem 118 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { in onCheckedChanged() argument 119 checked = isChecked; in onCheckedChanged() 121 listener.onCheckedChange(this, isChecked); in onCheckedChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recordissue/ |
D | RecordIssueDialogDelegate.kt | 105 isChecked = state.recordScreen in <lambda>() 106 setOnCheckedChangeListener { _, isChecked -> in <lambda>() method 107 state.recordScreen = isChecked in <lambda>() 108 if (isChecked) { in <lambda>() 115 isChecked = state.takeBugreport in <lambda>() 116 setOnCheckedChangeListener { _, isChecked -> state.takeBugreport = isChecked } in <lambda>() method 144 screenRecordSwitch.isChecked = false in <lambda>() 160 setOnCancelListener { screenRecordSwitch.isChecked = false } in <lambda>()
|
/frameworks/base/core/java/android/widget/ |
D | RadioButton.java | 81 if (!isChecked()) { in toggle() 98 radioGroup.getIndexWithinVisibleButtons(this), 1, false, isChecked())); in onInitializeAccessibilityNodeInfo() 102 false, isChecked())); in onInitializeAccessibilityNodeInfo() 111 if (isChecked()) { in getButtonStateDescription()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | MenuTest.java | 119 Assert.assertTrue("Item did not get checked", item1.isChecked()); in testCheckable() 120 Assert.assertFalse("Item was not unchecked due to exclusive checkable", item2.isChecked()); in testCheckable() 122 Assert.assertTrue("Item did not get checked", item2.isChecked()); in testCheckable() 123 Assert.assertFalse("Item was not unchecked due to exclusive checkable", item1.isChecked()); in testCheckable() 129 Assert.assertFalse("Item did not get unchecked", item1.isChecked()); in testCheckable() 131 Assert.assertTrue("Item did not get checked", item1.isChecked()); in testCheckable() 133 Assert.assertTrue("Item did not get checked", item2.isChecked()); in testCheckable() 134 Assert.assertTrue("Item was unchecked when it shouldnt have been", item1.isChecked()); in testCheckable()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | ToggleRangeBehavior.kt | 60 var isChecked: Boolean = false in <lambda>() variable in com.android.systemui.controls.ui.ToggleRangeBehavior 94 isChecked = template.isChecked() in <lambda>() 101 isChecked = rangeTemplate.currentValue != rangeTemplate.minValue in <lambda>() 139 updateRange(rangeToLevelValue(rangeTemplate.currentValue), isChecked, in <lambda>() 142 cvh.applyRenderInfo(isChecked, colorOffset) in <lambda>() 166 if (isChecked) { in <lambda>() 183 cvh.controlActionCoordinator.toggle(cvh, templateId, isChecked) in <lambda>() 199 updateRange(level, isChecked, /* isDragging */ true) in <lambda>() 357 cvh.controlActionCoordinator.toggle(cvh, templateId, isChecked) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/spatial/ui/viewmodel/ |
D | SpatialAudioViewModel.kt | 58 isChecked = isEnabled is SpatialAudioEnabledModel.SpatialAudioEnabled, in <lambda>() 94 isChecked = isEnabled == currentIsEnabled, in <lambda>() 121 isChecked: Boolean, in <lambda>() 128 isActive = isChecked, in <lambda>() 141 isActive = isChecked, in <lambda>() 154 isActive = isChecked, in <lambda>()
|
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/ |
D | MainActivity.java | 145 boolean requiresUnmetered = mWiFiConnectivityRadioButton.isChecked(); in scheduleJob() 146 boolean requiresMetered = mCellConnectivityRadioButton.isChecked(); in scheduleJob() 147 boolean requiresAnyConnectivity = mAnyConnectivityRadioButton.isChecked(); in scheduleJob() 155 builder.setRequiresDeviceIdle(mRequiresIdleCheckbox.isChecked()); in scheduleJob() 156 builder.setRequiresCharging(mRequiresChargingCheckBox.isChecked()); in scheduleJob() 157 builder.setPersisted(mIsPersistedCheckbox.isChecked()); in scheduleJob()
|
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
D | ClientTest.java | 74 act.isChecked() ? WapPushManagerParams.APP_TYPE_ACTIVITY : in onCreate() 76 sig.isChecked(), ftr.isChecked())) { in onCreate() 84 act.isChecked() ? WapPushManagerParams.APP_TYPE_ACTIVITY : in onCreate() 86 sig.isChecked(), ftr.isChecked()); in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | RadioGroupPreCheckedTest.java | 40 assertTrue("The first radio button should be checked", radio.isChecked()); in testRadioButtonPreChecked() 56 assertFalse("The first radio button should not be checked", old.isChecked()); in testRadioButtonChangePreChecked() 57 assertTrue("The second radio button should be checked", radio.isChecked()); in testRadioButtonChangePreChecked()
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
D | VisualizerTest.java | 144 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { in onCheckedChanged() argument 146 mUseMTInstance = isChecked; in onCheckedChanged() 147 Log.d(TAG, "Multi-threaded client: " + (isChecked ? "enabled" : "disabled")); in onCheckedChanged() 151 mEnabled = isChecked; in onCheckedChanged() 162 mVisualizer.startStopCapture(isChecked); in onCheckedChanged() 167 if (isChecked) { in onCheckedChanged() 178 mCallbackOn = isChecked; in onCheckedChanged()
|
/frameworks/base/core/java/android/preference/ |
D | TwoStatePreference.java | 72 final boolean newValue = !isChecked(); in onClick() 102 public boolean isChecked() { in isChecked() method in TwoStatePreference 119 if (isChecked()) { in setSummaryOn() 147 if (!isChecked()) { in setSummaryOff() 246 myState.checked = isChecked(); in onSaveInstanceState()
|
D | SwitchPreference.java | 58 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { in onCheckedChanged() argument 59 if (!callChangeListener(isChecked)) { in onCheckedChanged() 62 buttonView.setChecked(!isChecked); in onCheckedChanged() 66 SwitchPreference.this.setChecked(isChecked); in onCheckedChanged()
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | TransformsAndAnimationsActivity.java | 78 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { in onCreate() 79 if (isChecked) { in onCreate() 89 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { in onCreate() 90 if (isChecked) { in onCreate() 100 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { in onCreate() 101 if (isChecked) { in onCreate()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | PrimarySwitchPreferenceTest.java | 71 assertThat(toggle.isChecked()).isTrue(); in setChecked_shouldUpdateButtonCheckedState() 74 assertThat(toggle.isChecked()).isFalse(); in setChecked_shouldUpdateButtonCheckedState() 109 assertThat(toggle.isChecked()).isTrue(); in clickWidgetView_shouldToggleButton() 112 assertThat(toggle.isChecked()).isFalse(); in clickWidgetView_shouldToggleButton() 125 assertThat(toggle.isChecked()).isFalse(); in clickWidgetView_shouldNotToggleButtonIfDisabled()
|
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | SwitchController.java | 38 protected abstract boolean isChecked(); in isChecked() method in SwitchController 59 return isChecked(); in isSwitchChecked()
|
/frameworks/base/core/java/com/android/internal/accessibility/dialog/ |
D | VolumeShortcutToggleAccessibilityServiceTarget.java | 43 public void onCheckedChanged(boolean isChecked) { in onCheckedChanged() argument 45 super.onCheckedChanged(isChecked); in onCheckedChanged()
|
D | AccessibilityTarget.java | 118 public void onCheckedChanged(boolean isChecked) { in onCheckedChanged() argument 119 setShortcutEnabled(isChecked); in onCheckedChanged() 124 isChecked, getShortcutType(), Set.of(mId), UserHandle.myUserId()); in onCheckedChanged() 126 if (isChecked) { in onCheckedChanged()
|
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/ |
D | BatteryWaster.java | 75 if (((CheckBox)findViewById(R.id.checkbox)).isChecked()) { in onResume() 78 if (((CheckBox)findViewById(R.id.checkbox_wake)).isChecked()) { in onResume() 96 if (checkbox.isChecked()) { 107 if (checkbox.isChecked()) {
|
/frameworks/base/packages/SoundPicker/src/com/android/soundpicker/ |
D | CheckedListItem.java | 54 public boolean isChecked() { in isChecked() method in CheckedListItem 55 return getCheckedTextView().isChecked(); in isChecked()
|
/frameworks/base/core/java/android/service/controls/templates/ |
D | ToggleTemplate.java | 59 public boolean isChecked() { in isChecked() method in ToggleTemplate 60 return mButton.isChecked(); in isChecked()
|