/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/theme/ |
D | ThemeOverlayManagerTest.java | 100 final boolean enabled = true; in testApplyOverlays_shouldSetEnabled() 105 mThemeOverlayManager.applyOverlays(mContext, enabled, mCallback); in testApplyOverlays_shouldSetEnabled() 108 verify(mOverlayManager, times(1)).setEnabled(getOverlayPackageId(), enabled, in testApplyOverlays_shouldSetEnabled() local 126 final boolean enabled = true; in testApplyOverlays_shouldCheckEnabled_beforeSetEnabled() 131 mThemeOverlayManager.applyOverlays(mContext, enabled, mCallback); in testApplyOverlays_shouldCheckEnabled_beforeSetEnabled() 133 verify(mOverlayManager, never()).setEnabled(getOverlayPackageId(), enabled, in testApplyOverlays_shouldCheckEnabled_beforeSetEnabled() local 139 final boolean enabled = true; in testDefaultDisabled_applyOverlays_shouldEnabled() 142 mUserHandle).get(0).isEnabled()).isEqualTo(!enabled); in testDefaultDisabled_applyOverlays_shouldEnabled() 147 mThemeOverlayManager.applyOverlays(mContext, enabled, mCallback); in testDefaultDisabled_applyOverlays_shouldEnabled() 150 verify(mOverlayManager, times(1)).setEnabled(getOverlayPackageId(), enabled, in testDefaultDisabled_applyOverlays_shouldEnabled() local [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 235 if (mAppEntry.info.enabled && !isDisabledUntilUsed()) { in onClick() 247 mAppEntry.info.enabled in onClick() 379 boolean enabled = true; in updateUninstallButton() 381 enabled = handleDisableable(); in updateUninstallButton() 387 enabled = false; in updateUninstallButton() 393 enabled = false; in updateUninstallButton() 400 enabled = false; in updateUninstallButton() 406 enabled = false; in updateUninstallButton() 411 enabled = false; in updateUninstallButton() 420 if (enabled && mHomePackages.contains(mPackageInfo.packageName)) { in updateUninstallButton() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 234 if (mAppEntry.info.enabled && !isDisabledUntilUsed()) { in onClick() 246 mAppEntry.info.enabled in onClick() 378 boolean enabled = true; in updateUninstallButton() 380 enabled = handleDisableable(); in updateUninstallButton() 386 enabled = false; in updateUninstallButton() 392 enabled = false; in updateUninstallButton() 399 enabled = false; in updateUninstallButton() 405 enabled = false; in updateUninstallButton() 410 enabled = false; in updateUninstallButton() 419 if (enabled && mHomePackages.contains(mPackageInfo.packageName)) { in updateUninstallButton() [all …]
|
/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/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestMenuItem.java | 39 boolean enabled; field in TestMenuItem 49 mockMenuItem.enabled = true; in create() 67 public MenuItem setEnabled(boolean enabled) { in setEnabled() argument 68 this.enabled = enabled; in setEnabled() 85 return this.enabled; in isEnabled() 100 assertTrue(this.enabled); in assertEnabled() 104 assertFalse(this.enabled); in assertDisabled()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | MenuManager.java | 148 boolean enabled = mDirDetails.hasRootSettings(); in updateSettings() 149 settings.setVisible(enabled); in updateSettings() 150 settings.setEnabled(enabled); in updateSettings() 200 boolean enabled = selectionDetails.canExtract(); in updateExtractTo() 201 extractTo.setVisible(enabled); in updateExtractTo() 202 extractTo.setEnabled(enabled); in updateExtractTo() 234 boolean enabled = !selectionDetails.containsDirectories() in updateShare() 237 share.setVisible(enabled); in updateShare() 238 share.setEnabled(enabled); in updateShare() 243 boolean enabled = selectionDetails.canDelete(); in updateDelete() [all …]
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
D | Item.java | 29 public void setEnabled(boolean enabled) { in setEnabled() argument 30 if (mEnabled != enabled) { in setEnabled() 31 mEnabled = enabled; in setEnabled() 33 setEnabledInternal(mItemView, enabled); in setEnabled() 86 private void setEnabledInternal(View view, boolean enabled) { in setEnabledInternal() argument 87 view.setEnabled(enabled); in setEnabledInternal() 92 setEnabledInternal(parent.getChildAt(i), enabled); in setEnabledInternal() local
|
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/ |
D | CommandInterceptor.java | 104 boolean enabled = asBool(tokens[1]); in gestureScale() 105 mFeatures.forceFeature(R.bool.feature_gesture_scale, enabled); in gestureScale() 106 Log.i(TAG, "Set gesture scale enabled to: " + enabled); in gestureScale() 117 boolean enabled = asBool(tokens[1]); in jobProgressDialog() 118 mFeatures.forceFeature(R.bool.feature_job_progress_dialog, enabled); in jobProgressDialog() 119 Log.i(TAG, "Set job progress dialog enabled to: " + enabled); in jobProgressDialog() 132 boolean enabled = asBool(tokens[1]); in docDetails() 133 DebugFlags.setDocumentDetailsEnabled(enabled); in docDetails() 134 Log.i(TAG, "Set doc details enabled to: " + enabled); in docDetails()
|
/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/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/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()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | WorkModeSwitch.java | 70 private void trySetQuietModeEnabledToAllProfilesAsync(boolean enabled) { in trySetQuietModeEnabledToAllProfilesAsync() argument 71 new SetQuietModeEnabledAsyncTask(enabled, new WeakReference<>(this)).execute(); in trySetQuietModeEnabledToAllProfilesAsync() 77 private final boolean enabled; field in WorkModeSwitch.SetQuietModeEnabledAsyncTask 80 SetQuietModeEnabledAsyncTask(boolean enabled, in SetQuietModeEnabledAsyncTask() argument 82 this.enabled = enabled; in SetQuietModeEnabledAsyncTask() 109 showConfirm |= !userManager.requestQuietModeEnabled(enabled, userProfile); in doInBackground()
|
/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/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | PieItem.java | 42 private boolean enabled; field in PieItem 56 enabled = true; in PieItem() 91 public void setEnabled(boolean enabled) { in setEnabled() argument 92 this.enabled = enabled; in setEnabled() 93 if (this.enabled) { in setEnabled() 101 return enabled; in isEnabled()
|
/packages/apps/TV/tests/unit/src/com/android/tv/ |
D | TimeShiftManagerTest.java | 82 private void enableAllActions(boolean enabled) { in enableAllActions() argument 83 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_PLAY, enabled); in enableAllActions() 84 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_PAUSE, enabled); in enableAllActions() 85 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_REWIND, enabled); in enableAllActions() 86 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_FAST_FORWARD, enabled); in enableAllActions() 87 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_JUMP_TO_PREVIOUS, enabled); in enableAllActions() 88 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_JUMP_TO_NEXT, enabled); in enableAllActions()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/theme/ |
D | ThemeOverlayManager.java | 60 public void applyOverlays(Context context, boolean enabled, Consumer<Boolean> callback) { in applyOverlays() argument 63 setEnabled(enabled, callback); in applyOverlays() 106 private void setEnabled(boolean enabled, Consumer<Boolean> callback) { in setEnabled() argument 110 return setEnabledOverlayPackages(getOverlayInfo(), enabled); in setEnabled() 123 private boolean setEnabledOverlayPackages(List<OverlayInfo> infos, boolean enabled) { in setEnabledOverlayPackages() argument 127 if (info.isEnabled() != enabled) { in setEnabledOverlayPackages() 128 mOverlayManager.setEnabled(info.getPackageName(), enabled, mUserHandle); in setEnabledOverlayPackages() local
|
/packages/apps/Car/Radio/src/com/android/car/radio/ |
D | DisplayController.java | 122 boolean enabled = (state == RadioAppServiceWrapper.STATE_CONNECTED); in setState() 125 int tint = enabled in setState() 132 mPlayButton.setEnabled(enabled); in setState() 136 mForwardSeekButton.setEnabled(enabled); in setState() 140 mBackwardSeekButton.setEnabled(enabled); in setState() 145 mFavoriteButton.setVisibility(enabled ? View.VISIBLE : View.GONE); in setState() 148 mToolbar.setVisibility(enabled ? View.VISIBLE : View.INVISIBLE); in setState() 151 mViewpager.setVisibility(enabled ? View.VISIBLE : View.GONE); in setState() 155 mStatusMessage.setVisibility(enabled ? View.GONE : View.VISIBLE); in setState()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | PlayControlsButton.java | 142 public void setEnabled(boolean enabled) { in setEnabled() argument 143 super.setEnabled(enabled); in setEnabled() 144 mButton.setEnabled(enabled); in setEnabled() 145 mButton.setFocusable(enabled); in setEnabled() 146 mIcon.setEnabled(enabled); in setEnabled() 147 mIcon.setAlpha(enabled ? ALPHA_ENABLED : ALPHA_DISABLED); in setEnabled() 148 mLabel.setEnabled(enabled); in setEnabled()
|
/packages/apps/Settings/src/com/android/settings/applications/assist/ |
D | DefaultVoiceInputPicker.java | 69 final boolean enabled = TextUtils.equals(info.key, mAssistRestrict); in getCandidates() 70 hasEnabled |= enabled; in getCandidates() 71 candidates.add(new VoiceInputDefaultAppInfo(context, mPm, mUserId, info, enabled)); in getCandidates() 76 final boolean enabled = !assistIsService; in getCandidates() 77 candidates.add(new VoiceInputDefaultAppInfo(context, mPm, mUserId, info, enabled)); in getCandidates() 143 VoiceInputHelper.BaseInfo info, boolean enabled) { in VoiceInputDefaultAppInfo() argument 144 super(context, pm, userId, info.componentName, null /* summary */, enabled); in VoiceInputDefaultAppInfo()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | MasterCheckBoxPreference.java | 92 public void setEnabled(boolean enabled) { in setEnabled() argument 93 super.setEnabled(enabled); in setEnabled() 94 setCheckBoxEnabled(enabled); in setEnabled() 108 public void setCheckBoxEnabled(boolean enabled) { in setCheckBoxEnabled() argument 109 mEnableCheckBox = enabled; in setCheckBoxEnabled() 111 mCheckBox.setEnabled(enabled); in setCheckBoxEnabled()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | MasterCheckBoxPreference.java | 92 public void setEnabled(boolean enabled) { in setEnabled() argument 93 super.setEnabled(enabled); in setEnabled() 94 setCheckBoxEnabled(enabled); in setEnabled() 108 public void setCheckBoxEnabled(boolean enabled) { in setCheckBoxEnabled() argument 109 mEnableCheckBox = enabled; in setCheckBoxEnabled() 111 mCheckBox.setEnabled(enabled); in setCheckBoxEnabled()
|
/packages/apps/Car/Notification/ |
D | Android.bp | 28 enabled: false, 32 enabled: false, 48 enabled: false, 67 enabled: false, 71 enabled: false, 87 enabled: false,
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | InCallOrientationEventListener.java | 73 private boolean enabled = false; field in InCallOrientationEventListener 136 if (enabled) { in enable() 142 enabled = true; in enable() 157 if (!enabled) { in disable() 162 enabled = false; in disable() 168 return enabled; in isEnabled()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/assist/ |
D | DefaultVoiceInputPicker.java | 69 final boolean enabled = TextUtils.equals(info.key, mAssistRestrict); in getCandidates() 70 hasEnabled |= enabled; in getCandidates() 71 candidates.add(new VoiceInputDefaultAppInfo(context, mPm, mUserId, info, enabled)); in getCandidates() 76 final boolean enabled = !assistIsService; in getCandidates() 77 candidates.add(new VoiceInputDefaultAppInfo(context, mPm, mUserId, info, enabled)); in getCandidates() 143 VoiceInputHelper.BaseInfo info, boolean enabled) { in VoiceInputDefaultAppInfo() argument 144 super(context, pm, userId, info.componentName, null /* summary */, enabled); in VoiceInputDefaultAppInfo()
|