Home
last modified time | relevance | path

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

123456

/packages/apps/Email/src/com/android/email/
DEmail.java128 private static void setServicesEnabled(Context context, boolean enabled) { in setServicesEnabled() argument
130 if (!enabled && pm.getComponentEnabledSetting( in setServicesEnabled()
141 enabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED : in setServicesEnabled()
146 enabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED : in setServicesEnabled()
151 enabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED : in setServicesEnabled()
156 enabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED : in setServicesEnabled()
159 if (enabled && pm.getComponentEnabledSetting( in setServicesEnabled()
172 startOrStopService(enabled, context, new Intent(context, AttachmentDownloadService.class)); in setServicesEnabled()
173 NotificationController.getInstance(context).watchForMessages(enabled); in setServicesEnabled()
182 private static void startOrStopService(boolean enabled, Context context, Intent intent) { in startOrStopService() argument
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DTwoStateImageView.java41 public void setEnabled(boolean enabled) { in setEnabled() argument
42 super.setEnabled(enabled); in setEnabled()
44 if (enabled) { in setEnabled()
52 public void enableFilter(boolean enabled) { in enableFilter() argument
53 mFilterEnabled = enabled; in enableFilter()
DIndicatorControlBar.java114 public void setEnabled(boolean enabled) { in setEnabled() argument
115 super.setEnabled(enabled); in setEnabled()
117 mSecondLevelIcon.setVisibility(enabled ? View.VISIBLE : View.INVISIBLE); in setEnabled()
120 enableZoom(enabled); in setEnabled()
122 mSecondLevelIcon.setEnabled(enabled); in setEnabled()
125 public void enableZoom(boolean enabled) { in enableZoom() argument
126 if (mZoomControl != null) mZoomControl.setEnabled(enabled); in enableZoom()
DIndicatorControl.java195 public void setEnabled(boolean enabled) { in setEnabled() argument
196 super.setEnabled(enabled); in setEnabled()
202 v.setEnabled(enabled); in setEnabled()
205 v.setVisibility(enabled ? View.VISIBLE : View.INVISIBLE); in setEnabled()
210 mCameraPicker.setEnabled(enabled); in setEnabled()
212 mCameraPicker.setVisibility(enabled ? View.VISIBLE : View.INVISIBLE); in setEnabled()
DIndicatorControlBarContainer.java164 public void setEnabled(boolean enabled) { in setEnabled() argument
165 mIndicatorControlBar.setEnabled(enabled); in setEnabled()
166 mSecondLevelIndicatorControlBar.setEnabled(enabled); in setEnabled()
170 public void enableZoom(boolean enabled) { in enableZoom() argument
171 mIndicatorControlBar.enableZoom(enabled); in enableZoom()
DAbstractIndicatorButton.java94 public void setEnabled(boolean enabled) { in setEnabled() argument
97 enabled = false; in setEnabled()
102 if (isEnabled() ^ enabled) { in setEnabled()
103 super.setEnabled(enabled); in setEnabled()
DIndicatorControlWheel.java512 public void setEnabled(boolean enabled) { in setEnabled() argument
513 super.setEnabled(enabled); in setEnabled()
516 mSecondLevelIcon.setVisibility(enabled ? View.VISIBLE : View.INVISIBLE); in setEnabled()
517 mCloseIcon.setVisibility(enabled ? View.VISIBLE : View.INVISIBLE); in setEnabled()
521 enableZoom(enabled); in setEnabled()
523 mSecondLevelIcon.setEnabled(enabled); in setEnabled()
524 mCloseIcon.setEnabled(enabled); in setEnabled()
527 public void enableZoom(boolean enabled) { in enableZoom() argument
528 if (mZoomControl != null) mZoomControl.setEnabled(enabled); in enableZoom()
DIndicatorControlWheelContainer.java183 public void setEnabled(boolean enabled) { in setEnabled() argument
184 mIndicatorControlWheel.setEnabled(enabled); in setEnabled()
188 public void enableZoom(boolean enabled) { in enableZoom() argument
189 mIndicatorControlWheel.enableZoom(enabled); in enableZoom()
/packages/apps/Camera/src/com/android/camera/ui/
DTwoStateImageView.java41 public void setEnabled(boolean enabled) { in setEnabled() argument
42 super.setEnabled(enabled); in setEnabled()
44 if (enabled) { in setEnabled()
52 public void enableFilter(boolean enabled) { in enableFilter() argument
53 mFilterEnabled = enabled; in enableFilter()
/packages/apps/LegacyCamera/src/com/android/camera/
DModePicker.java137 private void enableModeSelection(boolean enabled) { in enableModeSelection() argument
139 mSelectionEnabled = enabled; in enableModeSelection()
141 mModeSelectionFrame.startAnimation(enabled ? mFadeIn : mFadeOut); in enableModeSelection()
142 if (enabled) { in enableModeSelection()
202 public void setEnabled(boolean enabled) { in setEnabled() argument
203 super.setEnabled(enabled); in setEnabled()
206 if (mCurrentModeFrame != null) mCurrentModeFrame.setEnabled(enabled); in setEnabled()
207 mModeSelectionFrame.setEnabled(enabled); in setEnabled()
211 mModeSelectionIcon[i].setEnabled(enabled); in setEnabled()
212 if (mCurrentModeFrame != null) mCurrentModeIcon[i].setEnabled(enabled); in setEnabled()
[all …]
/packages/apps/Settings/src/com/android/settings/inputmethod/
DSingleSpellCheckerPreference.java192 private void enableButtons(boolean enabled) { in enableButtons() argument
197 mSettingsButton.setEnabled(enabled); in enableButtons()
198 mSettingsButton.setClickable(enabled); in enableButtons()
199 mSettingsButton.setFocusable(enabled); in enableButtons()
200 if (!enabled) { in enableButtons()
209 mSubtypeButton.setEnabled(enabled); in enableButtons()
210 mSubtypeButton.setClickable(enabled); in enableButtons()
211 mSubtypeButton.setFocusable(enabled); in enableButtons()
212 if (!enabled) { in enableButtons()
/packages/apps/DeskClock/src/com/android/deskclock/
DTimerSetupView.java104 boolean enabled = mInputPointer != -1; in updateStartButton()
106 mStart.setEnabled(enabled); in updateStartButton()
111 boolean enabled = mInputPointer != -1; in updateDeleteButton()
113 mDelete.setEnabled(enabled); in updateDeleteButton()
202 protected void setLeftRightEnabled(boolean enabled) { in setLeftRightEnabled() argument
203 mLeft.setEnabled(enabled); in setLeftRightEnabled()
204 mRight.setEnabled(enabled); in setLeftRightEnabled()
205 if (!enabled) { in setLeftRightEnabled()
DAlarms.java119 if (alarm.enabled) { in addAlarm()
181 values.put(Alarm.Columns.ENABLED, alarm.enabled ? 1 : 0); in createContentValues()
250 if (alarm.enabled) { in setAlarm()
276 final Context context, final int id, boolean enabled) { in enableAlarm() argument
277 enableAlarmInternal(context, id, enabled); in enableAlarm()
282 final int id, boolean enabled) { in enableAlarmInternal() argument
284 enabled); in enableAlarmInternal()
288 final Alarm alarm, boolean enabled) { in enableAlarmInternal() argument
295 values.put(Alarm.Columns.ENABLED, enabled ? 1 : 0); in enableAlarmInternal()
299 if (enabled) { in enableAlarmInternal()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DGalleryActionBar.java75 public boolean enabled; field in GalleryActionBar.ActionItem
81 public ActionItem(int action, boolean applied, boolean enabled, int title, in ActionItem() argument
83 this(action, applied, enabled, title, title, clusterBy); in ActionItem()
86 public ActionItem(int action, boolean applied, boolean enabled, int spinnerTitle, in ActionItem() argument
89 this.enabled = enabled; in ActionItem()
200 if (item.enabled && item.visible) { in createDialogData()
213 public void setClusterItemEnabled(int id, boolean enabled) { in setClusterItemEnabled() argument
216 item.enabled = enabled; in setClusterItemEnabled()
313 private void setHomeButtonEnabled(boolean enabled) { in setHomeButtonEnabled() argument
314 if (mActionBar != null) mActionBar.setHomeButtonEnabled(enabled); in setHomeButtonEnabled()
/packages/apps/VoiceDialer/src/com/android/voicedialer/
DRecognizerLogger.java70 File enabled = new File(dir, ENABLED); in isEnabled() local
71 return enabled.exists(); in isEnabled()
81 File enabled = new File(dir, ENABLED); in enable() local
82 enabled.createNewFile(); in enable()
96 File enabled = new File(dir, ENABLED); in disable() local
97 enabled.delete(); in disable()
/packages/apps/Settings/src/com/android/settings/
DChooseLockPattern.java198 LeftButtonMode(int text, boolean enabled) { in LeftButtonMode() argument
200 this.enabled = enabled; in LeftButtonMode()
204 final boolean enabled; field in ChooseLockPattern.ChooseLockPatternFragment.LeftButtonMode
221 RightButtonMode(int text, boolean enabled) { in RightButtonMode() argument
223 this.enabled = enabled; in RightButtonMode()
227 final boolean enabled; field in ChooseLockPattern.ChooseLockPatternFragment.RightButtonMode
457 mFooterLeftButton.setEnabled(stage.leftMode.enabled); in updateStage()
461 mFooterRightButton.setEnabled(stage.rightMode.enabled); in updateStage()
DChooseLockGeneric.java287 boolean enabled = true; in disableUnusablePreferences()
290 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED; in disableUnusablePreferences()
293 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED; in disableUnusablePreferences()
295 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_BIOMETRIC_WEAK || in disableUnusablePreferences()
299 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_SOMETHING; in disableUnusablePreferences()
301 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_NUMERIC; in disableUnusablePreferences()
303 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_COMPLEX; in disableUnusablePreferences()
307 } else if (!enabled) { in disableUnusablePreferences()
DOwnerInfoSettings.java48 int enabled = Settings.Secure.getInt(res, in initView() local
53 mEditText.setEnabled(enabled != 0); in initView()
54 mCheckbox.setChecked(enabled != 0); in initView()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothAdapter.java198 public void setBluetoothEnabled(boolean enabled) { in setBluetoothEnabled() argument
199 boolean success = enabled in setBluetoothEnabled()
204 setBluetoothStateInt(enabled in setBluetoothEnabled()
210 "success for enabled: " + enabled); in setBluetoothEnabled()
/packages/apps/Launcher2/src/com/android/launcher2/
DShortcutAndWidgetContainer.java168 protected void setChildrenDrawingCacheEnabled(boolean enabled) { in setChildrenDrawingCacheEnabled() argument
172 view.setDrawingCacheEnabled(enabled); in setChildrenDrawingCacheEnabled()
174 if (!view.isHardwareAccelerated() && enabled) { in setChildrenDrawingCacheEnabled()
181 protected void setChildrenDrawnWithCacheEnabled(boolean enabled) { in setChildrenDrawnWithCacheEnabled() argument
182 super.setChildrenDrawnWithCacheEnabled(enabled); in setChildrenDrawnWithCacheEnabled()
DPagedViewCellLayoutChildren.java144 public void enableCenteredContent(boolean enabled) { in enableCenteredContent() argument
145 mCenterContent = enabled; in enableCenteredContent()
149 protected void setChildrenDrawingCacheEnabled(boolean enabled) { in setChildrenDrawingCacheEnabled() argument
153 view.setDrawingCacheEnabled(enabled); in setChildrenDrawingCacheEnabled()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DAlbumSettings.java59 public void setAlbumEnabled(String albumId, boolean enabled) { in setAlbumEnabled() argument
60 if (isAlbumEnabled(albumId) != enabled) { in setAlbumEnabled()
63 if (enabled) { in setAlbumEnabled()
/packages/apps/Phone/src/com/android/phone/
DHapticFeedback.java90 public void init(Context context, boolean enabled) { in init() argument
91 mEnabled = enabled; in init()
92 if (enabled) { in init()
/packages/apps/VideoEditor/src/com/android/videoeditor/service/
DMovieAudioTrack.java388 void enableDucking(boolean enabled) { in enableDucking() argument
389 mIsDuckingEnabled = enabled; in enableDucking()
404 public void enableAppDucking(boolean enabled) { in enableAppDucking() argument
405 mAppIsDuckingEnabled = enabled; in enableAppDucking()
/packages/apps/Phone/src/com/android/phone/sip/
DSipSettings.java218 final boolean enabled = in registerForReceiveCallsCheckBox()
222 handleSipReceiveCallsOption(enabled); in registerForReceiveCallsCheckBox()
230 private synchronized void handleSipReceiveCallsOption(boolean enabled) { in handleSipReceiveCallsOption() argument
231 mSipSharedPreferences.setReceivingCallsEnabled(enabled); in handleSipReceiveCallsOption()
235 p = updateAutoRegistrationFlag(p, enabled); in handleSipReceiveCallsOption()
237 if (enabled) { in handleSipReceiveCallsOption()
255 SipProfile p, boolean enabled) { in updateAutoRegistrationFlag() argument
257 .setAutoRegistration(enabled) in updateAutoRegistrationFlag()

123456