/packages/apps/LegacyCamera/src/com/android/camera/ |
D | ModePicker.java | 137 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/TV/src/com/android/tv/ui/sidepanel/ |
D | Item.java | 28 public void setEnabled(boolean enabled) { in setEnabled() argument 29 if (mEnabled != enabled) { in setEnabled() 30 mEnabled = enabled; in setEnabled() 32 setEnabledInternal(mItemView, enabled); in setEnabled() 81 private void setEnabledInternal(View view, boolean enabled) { in setEnabledInternal() argument 82 view.setEnabled(enabled); in setEnabledInternal() 87 setEnabledInternal(parent.getChildAt(i), enabled); in setEnabledInternal() local
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | IndicatorControlBar.java | 114 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()
|
D | TwoStateImageView.java | 41 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()
|
D | IndicatorControl.java | 195 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()
|
D | IndicatorControlBarContainer.java | 164 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()
|
D | IndicatorControlWheel.java | 512 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()
|
/packages/apps/TV/tests/unit/src/com/android/tv/ |
D | TimeShiftManagerTest.java | 76 private void enableAllActions(boolean enabled) { in enableAllActions() argument 77 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_PLAY, enabled); in enableAllActions() 78 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_PAUSE, enabled); in enableAllActions() 79 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_REWIND, enabled); in enableAllActions() 80 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_FAST_FORWARD, enabled); in enableAllActions() 81 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_JUMP_TO_PREVIOUS, enabled); in enableAllActions() 82 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_JUMP_TO_NEXT, enabled); in enableAllActions()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/ |
D | PeopleOptionsItemView.java | 90 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/TV/src/com/android/usbtuner/ |
D | UsbInputController.java | 113 boolean enabled = IS_MNC_OR_LATER && isTunerConnected(context); in onReceive() 115 if (enabled) { in onReceive() 158 private void enableUsbTunerTvInputService(Context context, boolean enabled) { in enableUsbTunerTvInputService() argument 165 true, enabled, true); in enableUsbTunerTvInputService() 171 int newState = enabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED in enableUsbTunerTvInputService() 175 TunerSetupActivity.onTvInputEnabled(context, enabled); in enableUsbTunerTvInputService() 178 if (DEBUG) Log.d(TAG, "Status updated:" + enabled); in enableUsbTunerTvInputService() 180 if (enabled && BuildCompat.isAtLeastN()) { in enableUsbTunerTvInputService()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | FilmstripBottomPanel.java | 105 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/TV/src/com/android/tv/menu/ |
D | PlayControlsButton.java | 93 public void setEnabled(boolean enabled) { in setEnabled() argument 94 super.setEnabled(enabled); in setEnabled() 95 mButton.setEnabled(enabled); in setEnabled() 96 mIcon.setEnabled(enabled); in setEnabled() 97 mIcon.setAlpha(enabled ? ALPHA_ENABLED : ALPHA_DISABLED); in setEnabled() 98 mLabel.setEnabled(enabled); in setEnabled()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | GalleryActionBar.java | 75 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/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | SoundLevels.java | 176 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/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
D | Action.java | 156 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | UniqueKeysCache.java | 26 public abstract void setEnabled(boolean enabled); in setEnabled() argument 33 public void setEnabled(boolean enabled) {} 57 public void setEnabled(final boolean enabled) { in setEnabled() argument 58 mEnabled = enabled; in setEnabled()
|
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
D | PagedScrollBarView.java | 174 protected void setUpEnabled(boolean enabled) { in setUpEnabled() argument 175 mUpButton.setEnabled(enabled); in setUpEnabled() 176 mUpButton.setAlpha(enabled ? 1f : BUTTON_DISABLED_ALPHA); in setUpEnabled() 179 protected void setDownEnabled(boolean enabled) { in setDownEnabled() argument 180 mDownButton.setEnabled(enabled); in setDownEnabled() 181 mDownButton.setAlpha(enabled ? 1f : BUTTON_DISABLED_ALPHA); in setDownEnabled()
|
/packages/apps/Settings/src/com/android/settings/ |
D | ChooseLockPattern.java | 181 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 593 mFooterLeftButton.setEnabled(stage.leftMode.enabled); in updateStage() 597 setRightButtonEnabled(stage.rightMode.enabled); in updateStage()
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | LocationSettings.java | 274 boolean enabled = mainSwitchOn; in changeManagedProfileLocationAccessStatus() 275 mManagedProfileSwitch.setEnabled(enabled); in changeManagedProfileLocationAccessStatus() 278 if (!enabled) { in changeManagedProfileLocationAccessStatus() 381 final boolean enabled = (mode != android.provider.Settings.Secure.LOCATION_MODE_OFF); in onModeChanged() 393 mLocationMode.setEnabled(enabled && !restricted); in onModeChanged() 394 mCategoryRecentLocationRequests.setEnabled(enabled); in onModeChanged() 396 if (enabled != mSwitch.isChecked()) { in onModeChanged() 401 mSwitch.setChecked(enabled); in onModeChanged() 407 changeManagedProfileLocationAccessStatus(enabled); in onModeChanged()
|
D | LocationMode.java | 132 boolean enabled = (mode != Settings.Secure.LOCATION_MODE_OFF) && !restricted; in onModeChanged() 133 mHighAccuracy.setEnabled(enabled); in onModeChanged() 134 mBatterySaving.setEnabled(enabled); in onModeChanged() 135 mSensorsOnly.setEnabled(enabled); in onModeChanged()
|
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
D | FolderPreferences.java | 215 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()
|
D | AccountPreferences.java | 105 public void setDefaultInboxNotificationsEnabled(final boolean enabled) { in setDefaultInboxNotificationsEnabled() argument 106 getEditor().putBoolean(PreferenceKeys.DEFAULT_INBOX_NOTIFICATIONS_ENABLED, enabled).apply(); in setDefaultInboxNotificationsEnabled() 117 public void setNotificationsEnabled(final boolean enabled) { in setNotificationsEnabled() argument 118 getEditor().putBoolean(PreferenceKeys.NOTIFICATIONS_ENABLED, enabled).apply(); in setNotificationsEnabled()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | ConfigureNotificationSettings.java | 192 final boolean enabled = in initLockscreenNotifications() 198 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, enabled ? 1 : 0); in initLockscreenNotifications() 259 final boolean enabled = in initLockscreenNotificationsForProfile() 268 enabled ? 1 : 0, mProfileChallengeUserId); in initLockscreenNotificationsForProfile() 304 final boolean enabled = getLockscreenNotificationsEnabled(UserHandle.myUserId()); in updateLockscreenNotifications() 307 mLockscreenSelectedValue = !enabled ? R.string.lock_screen_notifications_summary_disable : in updateLockscreenNotifications() 320 final boolean enabled = getLockscreenNotificationsEnabled(mProfileChallengeUserId); in updateLockscreenNotificationsForProfile() 323 mLockscreenSelectedValueProfile = !enabled in updateLockscreenNotificationsForProfile()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserDetailsSettings.java | 136 void enableCallsAndSms(boolean enabled) { in enableCallsAndSms() argument 137 mPhonePref.setChecked(enabled); in enableCallsAndSms() 139 mDefaultGuestRestrictions.putBoolean(UserManager.DISALLOW_OUTGOING_CALLS, !enabled); in enableCallsAndSms() 159 mUserManager.setUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS, !enabled, in enableCallsAndSms() 161 mUserManager.setUserRestriction(UserManager.DISALLOW_SMS, !enabled, userHandle); in enableCallsAndSms()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | InstalledAppDetails.java | 191 } else if (mAppEntry.info.enabled && !isDisabledUntilUsed()) { in handleDisableable() 209 boolean enabled = true; in initUninstallButtons() 211 enabled = handleDisableable(mUninstallButton); in initUninstallButtons() 217 enabled = false; in initUninstallButtons() 224 enabled = false; in initUninstallButtons() 231 enabled = false; in initUninstallButtons() 236 enabled = false; in initUninstallButtons() 245 if (enabled && mHomePackages.contains(mPackageInfo.packageName)) { in initUninstallButtons() 247 enabled = false; in initUninstallButtons() 254 enabled = (mHomePackages.size() > 1); in initUninstallButtons() [all …]
|