Home
last modified time | relevance | path

Searched refs:enabled (Results 1 – 25 of 53) sorted by relevance

123

/packages/apps/Settings/src/com/android/settings/vpn/
DPptpEditor.java47 boolean enabled = profile.isEncryptionEnabled(); in createEncryptionPreference()
49 encryption.setChecked(enabled); in createEncryptionPreference()
50 setEncryptionSummary(encryption, enabled); in createEncryptionPreference()
55 boolean enabled = (Boolean) newValue; in createEncryptionPreference()
56 profile.setEncryptionEnabled(enabled); in createEncryptionPreference()
57 setEncryptionSummary(mEncryption, enabled); in createEncryptionPreference()
65 boolean enabled) { in setEncryptionSummary() argument
67 String formatString = c.getString(enabled in setEncryptionSummary()
DL2tpEditor.java59 boolean enabled = profile.isSecretEnabled(); in createSecretPreference()
61 secret.setChecked(enabled); in createSecretPreference()
62 setSecretSummary(secret, enabled); in createSecretPreference()
67 boolean enabled = (Boolean) newValue; in createSecretPreference()
68 profile.setSecretEnabled(enabled); in createSecretPreference()
69 mSecretHandler.getPreference().setEnabled(enabled); in createSecretPreference()
70 setSecretSummary(mSecret, enabled); in createSecretPreference()
96 private void setSecretSummary(CheckBoxPreference secret, boolean enabled) { in setSecretSummary() argument
98 String formatString = c.getString(enabled in setSecretSummary()
/packages/apps/Email/src/com/android/email/
DEmail.java226 public static void setServicesEnabled(Context context, boolean enabled) { in setServicesEnabled() argument
228 … if (!enabled && pm.getComponentEnabledSetting(new ComponentName(context, MailService.class)) == in setServicesEnabled()
238 enabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED : in setServicesEnabled()
243 enabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED : in setServicesEnabled()
248 enabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED : in setServicesEnabled()
251 … if (enabled && pm.getComponentEnabledSetting(new ComponentName(context, MailService.class)) == in setServicesEnabled()
/packages/apps/Settings/src/com/android/settings/
DChooseLockGeneric.java133 boolean enabled = true; in disableUnusablePreferences()
135 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED; in disableUnusablePreferences()
137 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_SOMETHING; in disableUnusablePreferences()
139 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_NUMERIC; in disableUnusablePreferences()
141 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC; in disableUnusablePreferences()
143 if (!enabled) { in disableUnusablePreferences()
DChooseLockPattern.java166 LeftButtonMode(int text, boolean enabled) { in LeftButtonMode() argument
168 this.enabled = enabled; in LeftButtonMode()
172 final boolean enabled; field in ChooseLockPattern.LeftButtonMode
189 RightButtonMode(int text, boolean enabled) { in RightButtonMode() argument
191 this.enabled = enabled; in RightButtonMode()
195 final boolean enabled; field in ChooseLockPattern.RightButtonMode
430 mFooterLeftButton.setEnabled(stage.leftMode.enabled); in updateStage()
434 mFooterRightButton.setEnabled(stage.rightMode.enabled); in updateStage()
/packages/apps/VoiceDialer/src/com/android/voicedialer/
DRecognizerLogger.java71 File enabled = new File(dir, ENABLED); in isEnabled() local
72 return enabled.exists(); in isEnabled()
82 File enabled = new File(dir, ENABLED); in enable() local
83 enabled.createNewFile(); in enable()
97 File enabled = new File(dir, ENABLED); in disable() local
98 enabled.delete(); in disable()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarms.java107 if (alarm.enabled) { in addAlarm()
158 values.put(Alarm.Columns.ENABLED, alarm.enabled ? 1 : 0); in createContentValues()
218 if (alarm.enabled) { in setAlarm()
244 final Context context, final int id, boolean enabled) { in enableAlarm() argument
245 enableAlarmInternal(context, id, enabled); in enableAlarm()
250 final int id, boolean enabled) { in enableAlarmInternal() argument
252 enabled); in enableAlarmInternal()
256 final Alarm alarm, boolean enabled) { in enableAlarmInternal() argument
263 values.put(Alarm.Columns.ENABLED, enabled ? 1 : 0); in enableAlarmInternal()
267 if (enabled) { in enableAlarmInternal()
[all …]
DAlarmClock.java68 private void updateIndicatorAndAlarm(boolean enabled, ImageView bar, in updateIndicatorAndAlarm() argument
70 bar.setImageResource(enabled ? R.drawable.ic_indicator_on in updateIndicatorAndAlarm()
72 Alarms.enableAlarm(this, alarm.id, enabled); in updateIndicatorAndAlarm()
73 if (enabled) { in updateIndicatorAndAlarm()
101 barOnOff.setImageResource(alarm.enabled ? in bindView()
107 clockOnOff.setChecked(alarm.enabled); in bindView()
182 Alarms.enableAlarm(this, alarm.id, !alarm.enabled); in onContextItemSelected()
183 if (!alarm.enabled) { in onContextItemSelected()
282 if (alarm.enabled) { in onCreateContextMenu()
DAlarm.java53 p.writeInt(enabled ? 1 : 0); in writeToParcel()
159 public boolean enabled; field in Alarm
171 enabled = c.getInt(Columns.ALARM_ENABLED_INDEX) == 1; in Alarm()
200 enabled = p.readInt() == 1; in Alarm()
/packages/apps/Phone/src/com/android/phone/
DHapticFeedback.java89 public void init(Context context, boolean enabled) { in init() argument
90 mEnabled = enabled; in init()
91 if (enabled) { in init()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupOutgoing.java225 boolean enabled = in validateFields()
229 if (enabled && mRequireLoginView.isChecked()) { in validateFields()
230 enabled = (Utility.requiredFieldValid(mUsernameView) in validateFields()
234 if (enabled) { in validateFields()
238 enabled = false; in validateFields()
241 mNextButton.setEnabled(enabled); in validateFields()
242 Utility.setCompoundDrawablesAlpha(mNextButton, enabled ? 255 : 128); in validateFields()
DAccountSetupExchange.java307 boolean enabled = usernameFieldValid(mUsernameView)
310 if (enabled) {
314 enabled = false;
317 mNextButton.setEnabled(enabled);
318 Utility.setCompoundDrawablesAlpha(mNextButton, enabled ? 255 : 128);
319 return enabled;
DAccountSetupIncoming.java308 boolean enabled = Utility.requiredFieldValid(mUsernameView)
312 if (enabled) {
316 enabled = false;
319 mNextButton.setEnabled(enabled);
320 Utility.setCompoundDrawablesAlpha(mNextButton, enabled ? 255 : 128);
/packages/apps/Contacts/src/com/android/contacts/ui/widget/
DGenericEditorView.java129 public void setEnabled(boolean enabled) { in setEnabled() argument
130 mLabel.setEnabled(enabled); in setEnabled()
134 v.setEnabled(enabled); in setEnabled()
136 mMore.setEnabled(enabled); in setEnabled()
137 mLess.setEnabled(enabled); in setEnabled()
201 final boolean enabled = !readOnly; in setValues()
214 mLabel.setEnabled(enabled); in setValues()
261 fieldView.setEnabled(enabled); in setValues()
275 mMore.setEnabled(enabled); in setValues()
276 mLess.setEnabled(enabled); in setValues()
/packages/apps/Phone/src/com/android/phone/sip/
DSipSettings.java225 final boolean enabled = in registerForReceiveCallsCheckBox()
229 handleSipReceiveCallsOption(enabled); in registerForReceiveCallsCheckBox()
237 private synchronized void handleSipReceiveCallsOption(boolean enabled) { in handleSipReceiveCallsOption() argument
238 mSipSharedPreferences.setReceivingCallsEnabled(enabled); in handleSipReceiveCallsOption()
242 p = updateAutoRegistrationFlag(p, enabled); in handleSipReceiveCallsOption()
244 if (enabled) { in handleSipReceiveCallsOption()
262 SipProfile p, boolean enabled) { in updateAutoRegistrationFlag() argument
264 .setAutoRegistration(enabled) in updateAutoRegistrationFlag()
DSipSharedPreferences.java93 public void setReceivingCallsEnabled(boolean enabled) { in setReceivingCallsEnabled() argument
95 Settings.System.SIP_RECEIVE_CALLS, (enabled ? 1 : 0)); in setReceivingCallsEnabled()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DKeyDetector.java65 public void setProximityCorrectionEnabled(boolean enabled) { in setProximityCorrectionEnabled() argument
66 mProximityCorrectOn = enabled; in setProximityCorrectionEnabled()
DLatinIMEUtil.java102 public static RingCharBuffer init(Context context, boolean enabled) { in init() argument
104 sRingCharBuffer.mEnabled = enabled; in init()
/packages/apps/Mms/src/com/android/mms/ui/
DNumberPicker.java225 public void setEnabled(boolean enabled) { in setEnabled() argument
226 super.setEnabled(enabled); in setEnabled()
227 mIncrementButton.setEnabled(enabled); in setEnabled()
228 mDecrementButton.setEnabled(enabled); in setEnabled()
229 mText.setEnabled(enabled); in setEnabled()
/packages/apps/Camera/src/com/android/camera/ui/
DGLOptionItem.java147 public void setEnabled(boolean enabled) { in setEnabled() argument
148 if (mEnabled == enabled) return; in setEnabled()
149 mEnabled = enabled; in setEnabled()
/packages/apps/Email/src/com/android/email/service/
DEmailBroadcastProcessorService.java130 private void setComponentEnabled(Class<?> clazz, boolean enabled) { in setComponentEnabled() argument
133 enabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED in setComponentEnabled()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothManager.java241 public void setBluetoothEnabled(boolean enabled) { in setBluetoothEnabled() argument
242 boolean wasSetStateSuccessful = enabled in setBluetoothEnabled()
247 setBluetoothStateInt(enabled in setBluetoothEnabled()
254 + enabled); in setBluetoothEnabled()
/packages/apps/Settings/src/com/android/settings/applications/
DInstalledAppDetails.java249 boolean enabled = true; in initUninstallButtons()
254 enabled = false; in initUninstallButtons()
271 } else if (mAppEntry.info.enabled) { in initUninstallButtons()
273 enabled = true; in initUninstallButtons()
276 enabled = true; in initUninstallButtons()
286 mUninstallButton.setEnabled(enabled); in initUninstallButtons()
287 if (enabled) { in initUninstallButtons()
745 new DisableChanger(this, mAppEntry.info, mAppEntry.info.enabled ?
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DInstallAppProgress.java87 boolean enabled = false;
92 enabled = true;
95 if (enabled) {
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertFileList.java78 private void setAllFilesEnabled(boolean enabled) { in setAllFilesEnabled() argument
81 root.getPreference(i).setEnabled(enabled); in setAllFilesEnabled()

123