Home
last modified time | relevance | path

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

1234567891011

/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/TvSettings/Settings/src/com/android/tv/settings/users/
DUserAppRestrictionsDialogFragment.java297 private void setEnabled(String packageName, boolean enabled) { in setEnabled() argument
298 onPackageEnableChanged(packageName, enabled); in setEnabled()
302 action.setChecked(enabled); in setEnabled()
303 action.setDescription(getString(enabled ? R.string.restricted_profile_allowed in setEnabled()
305 action.getIntent().putExtra(EXTRA_IS_ALLOWED, enabled); in setEnabled()
312 public void onPackageEnableChanged(String packageName, boolean enabled) { in onPackageEnableChanged() argument
313 mSelectedPackages.put(packageName, enabled); in onPackageEnableChanged()
316 ((AppLoadingTask.Listener) getActivity()).onPackageEnableChanged(packageName, enabled); in onPackageEnableChanged()
352 .enabled(availableForRestrictedProfile) in createAction()
363 boolean enabled = entry.getValue(); in applyUserAppsStates()
[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/Camera2/src/com/android/camera/app/
DFilmstripBottomPanel.java105 public void setEditEnabled(boolean enabled) { in setEditEnabled() argument
106 mEditButton.setEnabled(enabled); in setEditEnabled()
116 public void setViewEnabled(boolean enabled) { in setViewEnabled() argument
117 mViewButton.setEnabled(enabled); in setViewEnabled()
121 public void setTinyPlanetEnabled(boolean enabled) { in setTinyPlanetEnabled() argument
122 mTinyPlanetEnabled = enabled; in setTinyPlanetEnabled()
131 public void setDeleteEnabled(boolean enabled) { in setDeleteEnabled() argument
132 mDeleteButton.setEnabled(enabled); in setDeleteEnabled()
141 public void setShareEnabled(boolean enabled) { in setShareEnabled() argument
142 mShareButton.setEnabled(enabled); in setShareEnabled()
/packages/apps/Settings/src/com/android/settings/applications/
DInstalledAppDetails.java171 } else if (mAppEntry.info.enabled && !isDisabledUntilUsed()) { in handleDisableable()
189 boolean enabled = true; in initUninstallButtons()
191 enabled = handleDisableable(mUninstallButton); in initUninstallButtons()
197 enabled = false; in initUninstallButtons()
204 enabled = false; in initUninstallButtons()
208 enabled = false; in initUninstallButtons()
217 if (enabled && mHomePackages.contains(mPackageInfo.packageName)) { in initUninstallButtons()
219 enabled = false; in initUninstallButtons()
226 enabled = (mHomePackages.size() > 1); in initUninstallButtons()
230 enabled = !mPackageInfo.packageName.equals(currentDefaultHome.getPackageName()); in initUninstallButtons()
[all …]
/packages/apps/Settings/src/com/android/settings/
DChooseLockPattern.java181 protected void setRightButtonEnabled(boolean enabled) { in setRightButtonEnabled() argument
182 mFooterRightButton.setEnabled(enabled); in setRightButtonEnabled()
260 LeftButtonMode(int text, boolean enabled) { in LeftButtonMode() argument
262 this.enabled = enabled; in LeftButtonMode()
266 final boolean enabled; field in ChooseLockPattern.ChooseLockPatternFragment.LeftButtonMode
283 RightButtonMode(int text, boolean enabled) { in RightButtonMode() argument
285 this.enabled = enabled; in RightButtonMode()
289 final boolean enabled; field in ChooseLockPattern.ChooseLockPatternFragment.RightButtonMode
574 mFooterLeftButton.setEnabled(stage.leftMode.enabled); in updateStage()
578 setRightButtonEnabled(stage.rightMode.enabled); in updateStage()
DChooseLockGeneric.java360 boolean enabled = true; in disableUnusablePreferencesImpl()
363 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED; in disableUnusablePreferencesImpl()
365 enabled = false; in disableUnusablePreferencesImpl()
369 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED; in disableUnusablePreferencesImpl()
371 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_SOMETHING; in disableUnusablePreferencesImpl()
373 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_NUMERIC_COMPLEX; in disableUnusablePreferencesImpl()
375 enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_COMPLEX; in disableUnusablePreferencesImpl()
378 visible = enabled; in disableUnusablePreferencesImpl()
382 } else if (!enabled) { in disableUnusablePreferencesImpl()
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeRuleSettingsBase.java156 final boolean enabled = isChecked; in onSwitchChanged()
157 if (enabled == mRule.enabled) return; in onSwitchChanged()
158 MetricsLogger.action(mContext, MetricsLogger.ACTION_ZEN_ENABLE_RULE, enabled); in onSwitchChanged()
159 if (DEBUG) Log.d(TAG, "onSwitchChanged enabled=" + enabled); in onSwitchChanged()
160 mRule.enabled = enabled; in onSwitchChanged()
163 if (enabled) { in onSwitchChanged()
274 mSwitchBar.setChecked(mRule.enabled); in updateControls()
/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()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
DPeopleOptionsItemView.java90 final boolean enabled = mData.getEnabled(); in bind()
91 if (enabled != isEnabled()) { in bind()
92 mTitle.setEnabled(enabled); in bind()
93 mSubtitle.setEnabled(enabled); in bind()
94 mSwitch.setEnabled(enabled); in bind()
95 setAlpha(enabled ? 1.0f : 0.5f); in bind()
96 setEnabled(enabled); in bind()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DActionType.java90 Action toAction(Resources resources, boolean enabled) { in toAction() argument
91 return toAction(resources, getDescription(resources), enabled, false/* not checked */); in toAction()
98 Action toAction(Resources resources, String description, boolean enabled) { in toAction() argument
99 return toAction(resources, description, enabled, false /* not checked */); in toAction()
102 Action toAction(Resources resources, String description, boolean enabled, boolean checked) { in toAction() argument
107 .enabled(enabled) in toAction()
DAccessibilityActivity.java661 private void setAccessibilityServiceState(ComponentName toggledService, boolean enabled) {
667 if (enabled) {
708 holder.updateComponentState(enabled);
945 boolean enabled) {
947 mEnabledGetter = new Layout.MutableBooleanGetter(enabled);
948 mDisabledGetter = new Layout.MutableBooleanGetter(!enabled);
956 mEnabled = enabled;
983 public void updateComponentState(boolean enabled) {
984 mEnabled = enabled;
986 mEnabledGetter.set(enabled);
[all …]
/packages/apps/Settings/src/com/android/settings/location/
DLocationSettings.java237 private void changeManagedProfileLocationAccessStatus(boolean enabled, int summaryResId) { in changeManagedProfileLocationAccessStatus() argument
241 mManagedProfilePreference.setEnabled(enabled); in changeManagedProfileLocationAccessStatus()
333 final boolean enabled = (mode != android.provider.Settings.Secure.LOCATION_MODE_OFF); in onModeChanged()
337 mLocationMode.setEnabled(enabled && !restricted); in onModeChanged()
338 mCategoryRecentLocationRequests.setEnabled(enabled); in onModeChanged()
340 if (enabled != mSwitch.isChecked()) { in onModeChanged()
345 mSwitch.setChecked(enabled); in onModeChanged()
356 if (enabled) { in onModeChanged()
/packages/apps/FMRadio/src/com/android/fmradio/
DFmMainActivity.java991 private void refreshImageButton(boolean enabled) { in refreshImageButton() argument
992 mButtonDecrease.setEnabled(enabled); in refreshImageButton()
993 mButtonPrevStation.setEnabled(enabled); in refreshImageButton()
994 mButtonNextStation.setEnabled(enabled); in refreshImageButton()
995 mButtonIncrease.setEnabled(enabled); in refreshImageButton()
996 mButtonAddToFavorite.setEnabled(enabled); in refreshImageButton()
1000 private void refreshActionMenuItem(boolean enabled) { in refreshActionMenuItem() argument
1005 mMenuItemStationlList.setEnabled(enabled); in refreshActionMenuItem()
1007 mMenuItemHeadset.setEnabled(enabled && !mService.isBluetoothHeadsetInUse()); in refreshActionMenuItem()
1012 private void refreshPlayButton(boolean enabled) { in refreshPlayButton() argument
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DAction.java156 public Builder enabled(boolean enabled) { in enabled() method in Action.Builder
157 mEnabled = enabled; in enabled()
164 boolean hasNext, boolean infoOnly, Intent intent, int checkSetId, boolean enabled) { in Action() argument
177 mEnabled = enabled; in Action()
269 public void setEnabled(boolean enabled) { in setEnabled() argument
270 mEnabled = enabled; in setEnabled()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DSoundLevels.java176 public void setEnabled(final boolean enabled) { in setEnabled() argument
177 if (enabled == mIsEnabled) { in setEnabled()
181 Log.d("TAG", "setEnabled: " + enabled); in setEnabled()
183 super.setEnabled(enabled); in setEnabled()
184 mIsEnabled = enabled; in setEnabled()
185 setKeepScreenOn(enabled); in setEnabled()
/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/Contacts/src/com/android/contacts/editor/
DRawContactEditorView.java97 public void setEnabled(boolean enabled) { in setEnabled() argument
98 super.setEnabled(enabled); in setEnabled()
102 view.setEnabled(enabled); in setEnabled()
106 mName.setEnabled(enabled); in setEnabled()
110 mPhoneticName.setEnabled(enabled); in setEnabled()
116 mFields.getChildAt(i).setEnabled(enabled); in setEnabled()
121 mGroupMembershipView.setEnabled(enabled); in setEnabled()
DCompactRawContactsEditorView.java196 public void setEnabled(boolean enabled) { in setEnabled() argument
197 super.setEnabled(enabled); in setEnabled()
198 setEnabled(enabled, mNames); in setEnabled()
199 setEnabled(enabled, mPhoneticNames); in setEnabled()
200 setEnabled(enabled, mNicknames); in setEnabled()
201 setEnabled(enabled, mPhoneNumbers); in setEnabled()
202 setEnabled(enabled, mEmails); in setEnabled()
204 setEnabled(enabled, otherType.getValue()); in setEnabled()
208 private void setEnabled(boolean enabled, ViewGroup viewGroup) { in setEnabled() argument
212 viewGroup.getChildAt(i).setEnabled(enabled); in setEnabled()
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
DFolderPreferences.java215 public void setNotificationsEnabled(final boolean enabled) { in setNotificationsEnabled() argument
216 getEditor().putBoolean(PreferenceKeys.NOTIFICATIONS_ENABLED, enabled).apply(); in setNotificationsEnabled()
234 public void setNotificationVibrateEnabled(final boolean enabled) { in setNotificationVibrateEnabled() argument
235 getEditor().putBoolean(PreferenceKeys.NOTIFICATION_VIBRATE, enabled).apply(); in setNotificationVibrateEnabled()
244 public void setEveryMessageNotificationEnabled(final boolean enabled) { in setEveryMessageNotificationEnabled() argument
245 getEditor().putBoolean(PreferenceKeys.NOTIFICATION_NOTIFY_EVERY_MESSAGE, enabled).apply(); in setEveryMessageNotificationEnabled()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DSpellCheckerPreference.java136 private void enableSettingsButton(final boolean enabled) { in enableSettingsButton() argument
143 mSettingsButton.setEnabled(enabled); in enableSettingsButton()
144 mSettingsButton.setClickable(enabled); in enableSettingsButton()
145 mSettingsButton.setFocusable(enabled); in enableSettingsButton()
146 if (!enabled) { in enableSettingsButton()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/
DLayout.java692 public Builder enabled(boolean enabled) { in enabled() argument
693 mHeader.mEnabled = enabled; in enabled()
837 public Builder enabled(boolean enabled) { in enabled() method in Layout.Action.Builder
838 mAction.mEnabled = enabled; in enabled()
923 public Builder enabled(boolean enabled) { in enabled() argument
924 mStatus.mEnabled = enabled; in enabled()

1234567891011