Home
last modified time | relevance | path

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

1234567

/packages/services/Telephony/src/com/android/phone/
DCellBroadcastSms.java183 if(mButtonBcSms.isChecked()) { in onPreferenceTreeClick()
202 mButtonEmergencyBroadcast.isChecked(), 1); in onPreferenceTreeClick()
204 mButtonEmergencyBroadcast.isChecked(), 1); in onPreferenceTreeClick()
207 mButtonAdministrative.isChecked(), 2); in onPreferenceTreeClick()
208 CellBroadcastSmsConfig.setCbSmsBSelectedValue(mButtonAdministrative.isChecked(), 2); in onPreferenceTreeClick()
211 mButtonMaintenance.isChecked(), 3); in onPreferenceTreeClick()
212 CellBroadcastSmsConfig.setCbSmsBSelectedValue(mButtonMaintenance.isChecked(), 3); in onPreferenceTreeClick()
215 mButtonLocalWeather.isChecked(), 20); in onPreferenceTreeClick()
216 CellBroadcastSmsConfig.setCbSmsBSelectedValue(mButtonLocalWeather.isChecked(), 20); in onPreferenceTreeClick()
218 CellBroadcastSmsConfig.setConfigDataCompleteBSelected(mButtonAtr.isChecked(), 21); in onPreferenceTreeClick()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DSwitchBar.java55 void onSwitchChanged(Switch switchView, boolean isChecked); in onSwitchChanged() argument
121 public void onSwitchChanged(Switch switchView, boolean isChecked) { in SwitchBar()
122 setTextViewLabel(isChecked); in SwitchBar()
138 public void setTextViewLabel(boolean isChecked) { in setTextViewLabel() argument
140 .getString(isChecked ? R.string.switch_on_text : R.string.switch_off_text); in setTextViewLabel()
171 public boolean isChecked() { in isChecked() method in SwitchBar
172 return mSwitch.isChecked(); in isChecked()
235 final boolean isChecked = !mSwitch.isChecked(); in onClick()
236 MetricsLogger.count(mContext, mMetricsTag + "/switch_bar|" + isChecked, 1); in onClick()
237 setChecked(isChecked); in onClick()
[all …]
/packages/apps/Settings/src/com/android/settings/tts/
DTtsEnginePreference.java91 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
92 onRadioButtonClicked(buttonView, isChecked);
123 boolean isChecked = getKey().equals(mSharedState.getCurrentKey()); in onBindViewHolder()
124 if (isChecked) { in onBindViewHolder()
129 rb.setChecked(isChecked); in onBindViewHolder()
137 mSettingsIcon.setEnabled(isChecked && mVoiceCheckData != null); in onBindViewHolder()
138 if (!isChecked) { in onBindViewHolder()
162 mSettingsIcon.setEnabled(mRadioButton.isChecked()); in onBindViewHolder()
172 if (mRadioButton.isChecked()) { in setVoiceDataDetails()
205 boolean isChecked) { in onRadioButtonClicked() argument
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DDebugFragment.java88 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { in onCheckedChanged() argument
91 mPreferences.setEnableDebugLogging(isChecked); in onCheckedChanged()
92 DebugUtils.DEBUG = isChecked; in onCheckedChanged()
95 mPreferences.setEnableExchangeLogging(isChecked); in onCheckedChanged()
96 DebugUtils.DEBUG_EXCHANGE = isChecked; in onCheckedChanged()
99 mPreferences.setEnableExchangeFileLogging(isChecked); in onCheckedChanged()
100 DebugUtils.DEBUG_FILE = isChecked; in onCheckedChanged()
103 mPreferences.setEnableStrictMode(isChecked); in onCheckedChanged()
104 DebugUtils.enableStrictMode(isChecked); in onCheckedChanged()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothEnabler.java157 private void setChecked(boolean isChecked) { in setChecked() argument
158 if (isChecked != mSwitch.isChecked()) { in setChecked()
164 mSwitch.setChecked(isChecked); in setChecked()
181 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
183 if (isChecked && in onSwitchChanged()
190 MetricsLogger.action(mContext, MetricsEvent.ACTION_BLUETOOTH_TOGGLE, isChecked); in onSwitchChanged()
193 boolean status = mLocalAdapter.setBluetoothEnabled(isChecked); in onSwitchChanged()
197 if (isChecked && !status) { in onSwitchChanged()
/packages/apps/Settings/src/com/android/settings/
DApnPreference.java65 boolean isChecked = getKey().equals(mSelectedKey); in onBindViewHolder()
66 if (isChecked) { in onBindViewHolder()
72 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()
DDevelopmentSettings.java714 if (cb.isChecked()) { in resetDangerousOptions()
776 boolean value = mWebViewMultiprocess.isChecked(); in writeWebViewMultiprocessOptions()
821 adapter.configHciSnoopLog(mBtHciSnoopLog.isChecked()); in writeBtHciSnoopLogOptions()
824 mBtHciSnoopLog.isChecked() ? 1 : 0); in writeBtHciSnoopLogOptions()
841 mDebugApp, mWaitForDebugger.isChecked(), true); in writeDebuggerOptions()
955 mVerifyAppsOverUsb.isChecked() ? 1 : 0); in writeVerifyAppsOverUsbOptions()
973 mOtaDisableAutomaticUpdate.isChecked() ? 0 : 1); in writeOtaDisableAutomaticUpdateOptions()
1029 final boolean enabled = mBugreportInPower.isChecked(); in setBugreportStorageProviderStatus()
1051 mWindowManager.setStrictModeVisualIndicatorPreference(mStrictMode.isChecked() in writeStrictModeVisualOptions()
1063 Settings.System.POINTER_LOCATION, mPointerLocation.isChecked() ? 1 : 0); in writePointerLocationOptions()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpFullscreenView.java61 public boolean isChecked() { in isChecked() method in MtpFullscreenView
62 return mCheckbox.isChecked(); in isChecked()
102 public void onCheckedChanged(CompoundButton arg0, boolean isChecked) { in onCheckedChanged() argument
104 mBroker.setItemChecked(mPosition, isChecked); in onCheckedChanged()
109 public void onCheckedChanged(int position, boolean isChecked) { in onCheckedChanged() argument
111 setChecked(isChecked); in onCheckedChanged()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DApnPreference.java72 boolean isChecked = getKey().equals(mSelectedKey); in getView()
73 if (isChecked) { in getView()
79 rb.setChecked(isChecked); in getView()
102 public boolean isChecked() { in isChecked() method in ApnPreference
114 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { in onCheckedChanged() argument
115 Log.i(TAG, "ID: " + getKey() + " :" + isChecked); in onCheckedChanged()
120 if (isChecked) { in onCheckedChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentFragment.java630 if (cb.isChecked()) { in resetDangerousOptions()
685 adapter.configHciSnoopLog(mBtHciSnoopLog.isChecked()); in writeBtHciSnoopLogOptions()
687 mBtHciSnoopLog.isChecked() ? 1 : 0); in writeBtHciSnoopLogOptions()
693 mDebugApp, mWaitForDebugger.isChecked(), true); in writeDebuggerOptions()
812 mVerifyAppsOverUsb.isChecked() ? 1 : 0); in writeVerifyAppsOverUsbOptions()
855 final boolean enabled = mBugreportInPower.isChecked(); in setBugreportStorageProviderStatus()
877 mWindowManager.setStrictModeVisualIndicatorPreference(mStrictMode.isChecked() in writeStrictModeVisualOptions()
890 Settings.System.POINTER_LOCATION, mPointerLocation.isChecked() ? 1 : 0); in writePointerLocationOptions()
900 Settings.System.SHOW_TOUCHES, mShowTouches.isChecked() ? 1 : 0); in writeShowTouchesOptions()
941 final int showUpdates = mShowScreenUpdates.isChecked() ? 1 : 0; in writeShowUpdatesOption()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiEnabler.java168 if (mayDisableTethering(!mSwitchBar.isChecked())) { in handleWifiStateChanged()
212 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
218 if (isChecked && !WirelessUtils.isRadioAllowed(mContext, Settings.Global.RADIO_WIFI)) { in onSwitchChanged()
226 if (mayDisableTethering(isChecked)) { in onSwitchChanged()
230 isChecked ? MetricsEvent.ACTION_WIFI_ON : MetricsEvent.ACTION_WIFI_OFF); in onSwitchChanged()
231 if (!mWifiManager.setWifiEnabled(isChecked)) { in onSwitchChanged()
238 private boolean mayDisableTethering(boolean isChecked) { in mayDisableTethering() argument
240 return isChecked && ((wifiApState == WifiManager.WIFI_AP_STATE_ENABLING) || in mayDisableTethering()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTtsEnginePreference.java66 boolean isChecked = getKey().equals(mSharedState.getCurrentKey()); in onBindViewHolder()
67 if (isChecked) { in onBindViewHolder()
71 rb.setChecked(isChecked); in onBindViewHolder()
79 onRadioButtonClicked(mRadioButton, !mRadioButton.isChecked()); in onClick()
105 boolean isChecked) { in onRadioButtonClicked() argument
110 if (isChecked) { in onRadioButtonClicked()
/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/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/
DVideoChatTestActivity.java158 ((CheckBox) findViewById(R.id.frontcameracheckbox)).isChecked(); in doInBackground()
159 boolean testBackCamera = ((CheckBox) findViewById(R.id.backcameracheckbox)).isChecked(); in doInBackground()
160 boolean testQVGA = ((CheckBox) findViewById(R.id.qvgacheckbox)).isChecked(); in doInBackground()
161 boolean testVGA = ((CheckBox) findViewById(R.id.vgacheckbox)).isChecked(); in doInBackground()
162 boolean test15fps = ((CheckBox) findViewById(R.id.fps15checkbox)).isChecked(); in doInBackground()
163 boolean test30fps = ((CheckBox) findViewById(R.id.fps30checkbox)).isChecked(); in doInBackground()
164 boolean testRotate0 = ((CheckBox) findViewById(R.id.rotate0checkbox)).isChecked(); in doInBackground()
165 boolean testRotate90 = ((CheckBox) findViewById(R.id.rotate90checkbox)).isChecked(); in doInBackground()
166 boolean testRotate180 = ((CheckBox) findViewById(R.id.rotate180checkbox)).isChecked(); in doInBackground()
167 boolean testRotate270 = ((CheckBox) findViewById(R.id.rotate270checkbox)).isChecked(); in doInBackground()
[all …]
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DRatingsFragment.java176 int selectedRatingOrderIndex, String contentRatingSystemId, boolean isChecked) { in updateDependentRatingItems() argument
182 && ((ratingOrderIndex > selectedRatingOrderIndex && isChecked) in updateDependentRatingItems()
183 || (ratingOrderIndex < selectedRatingOrderIndex && !isChecked))) { in updateDependentRatingItems()
184 item.setRatingBlocked(isChecked); in updateDependentRatingItems()
264 mContentRatingSystem, mRating, isChecked())) { in onSelected()
270 mContentRatingSystem.getId(), isChecked()); in onSelected()
288 private void setRatingBlocked(boolean isChecked) { in setRatingBlocked() argument
289 if (isChecked() == isChecked) { in setRatingBlocked()
292 mParentalControlSettings.setRatingBlocked(mContentRatingSystem, mRating, isChecked); in setRatingBlocked()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapSettingsAdapter.java128 boolean isChecked) { in getChildView()
132 child.mIsChecked = isChecked; in getChildView()
133 if (isChecked) { in getChildView()
257 boolean isChecked) { in getGroupView()
264 children.mIsChecked = isChecked; in getGroupView()
271 isChecked = false; in getGroupView()
275 groupItem.mIsChecked = isChecked; in getGroupView()
326 private void updateSlotCounter(boolean isChecked){ in updateSlotCounter() argument
327 if(isChecked) in updateSlotCounter()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DAppRestrictionsFragment.java179 if (isChecked()) { in getPreferenceCount()
186 public boolean isChecked() { in isChecked() method in AppRestrictionsFragment.AppRestrictionsPreference
213 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { in onCheckedChanged() argument
214 if (!callChangeListener(isChecked)) { in onCheckedChanged()
217 buttonView.setChecked(!isChecked); in onCheckedChanged()
221 AppRestrictionsPreference.this.setChecked(isChecked); in onCheckedChanged()
331 if ((Intent.ACTION_PACKAGE_ADDED.equals(action) && pref.isChecked()) in onPackageChanged()
332 || (Intent.ACTION_PACKAGE_REMOVED.equals(action) && !pref.isChecked())) { in onPackageChanged()
441 mHelper.setPackageSelected(packageName, p.isChecked()); in populateApps()
556 pref.setChecked(!pref.isChecked()); in onPreferenceTreeClick()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/tests/calllog/
DFillCallLogTestActivity.java133 addEntriesToCallLog(count, mUseRandomNumbers.isChecked()); in onCreate()
412 if (mCallTypeIncoming.isChecked()) { in getManualCallType()
414 } else if (mCallTypeOutgoing.isChecked()) { in getManualCallType()
416 } else if (mCallTypeVoicemail.isChecked()) { in getManualCallType()
418 } else if (mCallTypeCustom.isChecked()) { in getManualCallType()
431 if (mPresentationAllowed.isChecked()) { in getManualPresentation()
433 } else if (mPresentationPayphone.isChecked()) { in getManualPresentation()
435 } else if (mPresentationRestricted.isChecked()) { in getManualPresentation()
445 if (mAccount0.isChecked()) { in getManualAccount()
447 } else if (mAccount1.isChecked()){ in getManualAccount()
[all …]
/packages/experimental/StrictModeTest/src/com/android/strictmodetest/
DStrictModeActivity.java376 if (checkNoWrite.isChecked()) newPolicy.detectDiskWrites(); in onCreate()
377 if (checkNoRead.isChecked()) newPolicy.detectDiskReads(); in onCreate()
378 if (checkNoNetwork.isChecked()) newPolicy.detectNetwork(); in onCreate()
379 if (checkCustom.isChecked()) newPolicy.detectCustomSlowCalls(); in onCreate()
380 if (checkResourceMismatch.isChecked()) newPolicy.detectResourceMismatches(); in onCreate()
381 if (checkPenaltyLog.isChecked()) newPolicy.penaltyLog(); in onCreate()
382 if (checkPenaltyDialog.isChecked()) newPolicy.penaltyDialog(); in onCreate()
383 if (checkPenaltyDeath.isChecked()) newPolicy.penaltyDeath(); in onCreate()
384 if (checkPenaltyDropBox.isChecked()) newPolicy.penaltyDropBox(); in onCreate()
385 if (checkPenaltyFlash.isChecked()) newPolicy.penaltyFlashScreen(); in onCreate()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageWizardMigrate.java69 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
70 if (isChecked) {
83 if (mRadioNow.isChecked()) { in onNavigateNext()
88 } else if (mRadioLater.isChecked()) { in onNavigateNext()
DStorageWizardInit.java83 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
84 if (isChecked) {
99 if (mRadioExternal.isChecked()) { in onNavigateNext()
117 } else if (mRadioInternal.isChecked()) { in onNavigateNext()
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/
DParentalControlsTest.java68 if (ratingCheckBox.isChecked()) { in testRatingDependentSelect()
89 assertTrue("The lower rating age should be unblocked", !ratingCheckBox.isChecked()); in assertRatingViewIsChecked()
91 assertTrue("The higher rating age should be blocked", ratingCheckBox.isChecked()); in assertRatingViewIsChecked()
94 ratingCheckBox.isChecked()); in assertRatingViewIsChecked()
122 if (!ratingSystemCheckBox.isChecked()) { in prepareParentalControl()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DAlbumDataAdapter.java176 final boolean isChecked = !checkBox.isChecked(); in onClick()
177 checkBox.setChecked(isChecked); in onClick()
178 mSettings.setAlbumEnabled(data.id, isChecked); in onClick()
181 (isChecked ? "" : "not") + " enabled"); in onClick()
/packages/apps/Settings/src/com/android/settings/accessibility/
DToggleScreenReaderPreferenceFragmentForSetupWizard.java32 mToggleSwitchWasInitiallyChecked = mToggleSwitch.isChecked(); in onProcessArguments()
43 if (mToggleSwitch.isChecked() != mToggleSwitchWasInitiallyChecked) { in onStop()
45 MetricsEvent.SUW_ACCESSIBILITY_TOGGLE_SCREEN_READER, mToggleSwitch.isChecked()); in onStop()
DToggleScreenMagnificationPreferenceFragmentForSetupWizard.java32 mToggleSwitchWasInitiallyChecked = mToggleSwitch.isChecked(); in onProcessArguments()
43 if (mToggleSwitch.isChecked() != mToggleSwitchWasInitiallyChecked) { in onStop()
46 mToggleSwitch.isChecked()); in onStop()

1234567