Home
last modified time | relevance | path

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

12345678

/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/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/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/Settings/src/com/android/settings/applications/
DInstalledAppDetails.java332 } else if (mAppEntry.info.enabled) { in handleDisableable()
345 boolean enabled = true; in initUninstallButtons()
357 enabled = handleDisableable(mUninstallButton); in initUninstallButtons()
364 enabled = false; in initUninstallButtons()
372 enabled = false; in initUninstallButtons()
377 if (enabled && mHomePackages.contains(mPackageInfo.packageName)) { in initUninstallButtons()
383 enabled = (mHomePackages.size() > 1); in initUninstallButtons()
387 enabled = !mPackageInfo.packageName.equals(currentDefaultHome.getPackageName()); in initUninstallButtons()
391 mUninstallButton.setEnabled(enabled); in initUninstallButtons()
392 if (enabled) { in initUninstallButtons()
[all …]
/packages/apps/Settings/src/com/android/settings/
DChooseLockPattern.java205 LeftButtonMode(int text, boolean enabled) { in LeftButtonMode() argument
207 this.enabled = enabled; in LeftButtonMode()
211 final boolean enabled; field in ChooseLockPattern.ChooseLockPatternFragment.LeftButtonMode
228 RightButtonMode(int text, boolean enabled) { in RightButtonMode() argument
230 this.enabled = enabled; in RightButtonMode()
234 final boolean enabled; field in ChooseLockPattern.ChooseLockPatternFragment.RightButtonMode
467 mFooterLeftButton.setEnabled(stage.leftMode.enabled); in updateStage()
471 mFooterRightButton.setEnabled(stage.rightMode.enabled); in updateStage()
DChooseLockGeneric.java308 boolean enabled = true; in disableUnusablePreferences()
311 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED; in disableUnusablePreferences()
314 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED; in disableUnusablePreferences()
316 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_BIOMETRIC_WEAK || in disableUnusablePreferences()
320 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_SOMETHING; in disableUnusablePreferences()
322 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_NUMERIC; in disableUnusablePreferences()
324 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_COMPLEX; in disableUnusablePreferences()
328 } else if (!enabled) { in disableUnusablePreferences()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
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()
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()
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()
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()
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()
/packages/apps/DeskClock/src/com/android/deskclock/
DTimerSetupView.java123 boolean enabled = mInputPointer != -1; in updateStartButton()
125 mStart.setEnabled(enabled); in updateStartButton()
130 boolean enabled = mInputPointer != -1; in updateDeleteButton()
132 mDelete.setEnabled(enabled); in updateDeleteButton()
221 protected void setLeftRightEnabled(boolean enabled) { in setLeftRightEnabled() argument
222 mLeft.setEnabled(enabled); in setLeftRightEnabled()
223 mRight.setEnabled(enabled); in setLeftRightEnabled()
224 if (!enabled) { in setLeftRightEnabled()
/packages/apps/Email/src/com/android/email2/ui/
DMailActivityEmail.java142 private static void setServicesEnabled(Context context, boolean enabled) { in setServicesEnabled() argument
146 enabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED : in setServicesEnabled()
151 startOrStopService(enabled, context, new Intent(context, AttachmentDownloadService.class)); in setServicesEnabled()
161 private static void startOrStopService(boolean enabled, Context context, Intent intent) { in startOrStopService() argument
162 if (enabled) { in startOrStopService()
268 public static void enableStrictMode(boolean enabled) { in enableStrictMode() argument
269 Utility.enableStrictMode(enabled); in enableStrictMode()
/packages/services/Telephony/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()
/packages/apps/Contacts/src/com/android/contacts/editor/
DRawContactEditorView.java104 public void setEnabled(boolean enabled) { in setEnabled() argument
105 super.setEnabled(enabled); in setEnabled()
109 view.setEnabled(enabled); in setEnabled()
113 mName.setEnabled(enabled); in setEnabled()
117 mPhoneticName.setEnabled(enabled); in setEnabled()
123 mFields.getChildAt(i).setEnabled(enabled); in setEnabled()
128 mGroupMembershipView.setEnabled(enabled); in setEnabled()
131 mAddFieldButton.setEnabled(enabled); in setEnabled()
/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/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/Camera2/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/UnifiedEmail/src/com/android/mail/preferences/
DFolderPreferences.java216 public void setNotificationsEnabled(final boolean enabled) { in setNotificationsEnabled() argument
217 getEditor().putBoolean(PreferenceKeys.NOTIFICATIONS_ENABLED, enabled).apply(); in setNotificationsEnabled()
235 public void setNotificationVibrateEnabled(final boolean enabled) { in setNotificationVibrateEnabled() argument
236 getEditor().putBoolean(PreferenceKeys.NOTIFICATION_VIBRATE, enabled).apply(); in setNotificationVibrateEnabled()
245 public void setEveryMessageNotificationEnabled(final boolean enabled) { in setEveryMessageNotificationEnabled() argument
246 getEditor().putBoolean(PreferenceKeys.NOTIFICATION_NOTIFY_EVERY_MESSAGE, enabled).apply(); in setEveryMessageNotificationEnabled()
/packages/apps/UnifiedEmail/src/com/android/mail/photo/
DMailPhotoViewActivity.java163 boolean enabled = false; in updateActionItems()
167 enabled = true; in updateActionItems()
171 mSaveAllItem.setEnabled(enabled); in updateActionItems()
174 enabled = true; in updateActionItems()
177 enabled = false; in updateActionItems()
181 mShareAllItem.setEnabled(enabled); in updateActionItems()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarm.java85 values.put(ENABLED, alarm.enabled ? 1 : 0); in createContentValues()
221 public boolean enabled; field in Alarm
248 enabled = c.getInt(ENABLED_INDEX) == 1; in Alarm()
267 enabled = p.readInt() == 1; in Alarm()
286 p.writeInt(enabled ? 1 : 0); in writeToParcel()
345 ", enabled=" + enabled + in toString()
/packages/apps/Launcher2/src/com/android/launcher2/
DShortcutAndWidgetContainer.java188 protected void setChildrenDrawingCacheEnabled(boolean enabled) { in setChildrenDrawingCacheEnabled() argument
192 view.setDrawingCacheEnabled(enabled); in setChildrenDrawingCacheEnabled()
194 if (!view.isHardwareAccelerated() && enabled) { in setChildrenDrawingCacheEnabled()
201 protected void setChildrenDrawnWithCacheEnabled(boolean enabled) { in setChildrenDrawnWithCacheEnabled() argument
202 super.setChildrenDrawnWithCacheEnabled(enabled); in setChildrenDrawnWithCacheEnabled()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoView.java81 public void setNeedFullImage(boolean enabled); in setNeedFullImage() argument
132 public void onFilmModeChanged(boolean enabled); in onFilmModeChanged() argument
1306 public void setSwipingEnabled(boolean enabled) {
1307 mIgnoreSwipingGesture = !enabled;
1311 public void setSwipingEnabled(boolean enabled) {
1312 mGestureListener.setSwipingEnabled(enabled);
1326 public void setFilmMode(boolean enabled) {
1327 if (mFilmMode == enabled) return;
1328 mFilmMode = enabled;
1330 mModel.setNeedFullImage(!enabled);
[all …]
/packages/apps/Settings/src/com/android/settings/location/
DLocationSettings.java230 boolean enabled = (mode != Settings.Secure.LOCATION_MODE_OFF); in onModeChanged()
232 mLocationMode.setEnabled(enabled && !restricted); in onModeChanged()
233 mCategoryRecentLocationRequests.setEnabled(enabled); in onModeChanged()
235 if (enabled != mSwitch.isChecked()) { in onModeChanged()
240 mSwitch.setChecked(enabled); in onModeChanged()
/packages/apps/InCallUI/src/com/android/incallui/
DCallButtonFragment.java218 public void enableMute(boolean enabled) { in enableMute() argument
219 mMuteButton.setEnabled(enabled); in enableMute()
233 public void enableHold(boolean enabled) { in enableHold() argument
234 mHoldButton.setEnabled(enabled); in enableHold()
253 public void enableAddCall(boolean enabled) { in enableAddCall() argument
254 mAddCallButton.setEnabled(enabled); in enableAddCall()

12345678