Home
last modified time | relevance | path

Searched refs:setEnabled (Results 1 – 25 of 325) sorted by relevance

12345678910>>...13

/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/
DTransactionTest.java74 .setEnabled(APP_OVERLAY_ONE_PKG, true) in testValidTransaction()
75 .setEnabled(APP_OVERLAY_TWO_PKG, true) in testValidTransaction()
88 .setEnabled(APP_OVERLAY_TWO_PKG, true) in testValidTransaction()
89 .setEnabled(APP_OVERLAY_ONE_PKG, true) in testValidTransaction()
102 .setEnabled(APP_OVERLAY_TWO_PKG, false) in testValidTransaction()
121 .setEnabled(APP_OVERLAY_ONE_PKG, true) in testInvalidRequestHasNoEffect()
122 .setEnabled(new OverlayIdentifier("does-not-exist"), true) in testInvalidRequestHasNoEffect()
123 .setEnabled(APP_OVERLAY_TWO_PKG, true) in testInvalidRequestHasNoEffect()
DFabricatedOverlaysTest.java102 .setEnabled(overlay.getIdentifier(), true, mUserId) in testFabricatedOverlay()
127 .setEnabled(overlay.getIdentifier(), true, mUserId) in testRegisterEnableAtomic()
143 .setEnabled(overlay.getIdentifier(), true, mUserId) in testRegisterTwice()
169 .setEnabled(overlay.getIdentifier(), true, mUserId) in testInvalidOwningPackageName()
186 .setEnabled(overlay.getIdentifier(), true, mUserId) in testInvalidOverlayName()
235 .setEnabled(overlay.getIdentifier(), true, mUserId) in testInvalidResourceValues()
252 .setEnabled(overlay.getIdentifier(), true, mUserId) in testTransactionFailRollback()
253 .setEnabled(new OverlayIdentifier("not-valid"), true, mUserId) in testTransactionFailRollback()
/frameworks/base/services/core/java/com/android/server/am/
DBaseErrorDialog.java74 private void setEnabled(boolean enabled) { in setEnabled() method in BaseErrorDialog
77 b.setEnabled(enabled); in setEnabled()
81 b.setEnabled(enabled); in setEnabled()
85 b.setEnabled(enabled); in setEnabled()
93 setEnabled(true);
95 setEnabled(false);
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DFrameworkPerfActivity.java199 mStopButton.setEnabled(false); in onCreate()
397 mStartButton.setEnabled(false); in startRunning()
398 mStopButton.setEnabled(true); in startRunning()
399 mLocalCheckBox.setEnabled(false); in startRunning()
400 mTestTime.setEnabled(false); in startRunning()
401 mFgSpinner.setEnabled(false); in startRunning()
402 mBgSpinner.setEnabled(false); in startRunning()
403 mLimitSpinner.setEnabled(false); in startRunning()
419 mStartButton.setEnabled(true); in stopRunning()
420 mStopButton.setEnabled(false); in stopRunning()
[all …]
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DVirtualizerTest.java93 mStrength.setEnabled(mVirtualizer.getStrengthSupported()); in onCreate()
119 mStrength.setEnabled(mVirtualizer.getStrengthSupported());
135 mVirtualizer.setEnabled(isChecked); in onCheckedChanged()
145 mStrength.setEnabled(mVirtualizer.getStrengthSupported()); in onCheckedChanged()
150 mStrength.setEnabled(false); in onCheckedChanged()
239 mReleaseButton.setEnabled(false); in getEffect()
240 mOnOffButton.setEnabled(false); in getEffect()
251 mReleaseButton.setEnabled(true); in getEffect()
254 mOnOffButton.setEnabled(true); in getEffect()
260 mOnOffButton.setEnabled(false); in putEffect()
DBassBoostTest.java95 mStrength.setEnabled(mBassBoost.getStrengthSupported()); in onCreate()
122 mStrength.setEnabled(mBassBoost.getStrengthSupported());
138 mBassBoost.setEnabled(isChecked); in onCheckedChanged()
148 mStrength.setEnabled(mBassBoost.getStrengthSupported()); in onCheckedChanged()
153 mStrength.setEnabled(false); in onCheckedChanged()
242 mReleaseButton.setEnabled(false); in getEffect()
243 mOnOffButton.setEnabled(false); in getEffect()
254 mReleaseButton.setEnabled(true); in getEffect()
257 mOnOffButton.setEnabled(true); in getEffect()
264 mOnOffButton.setEnabled(false); in putEffect()
DVisualizerTest.java138 mCallbackButton.setEnabled(!mEnabled); in onCheckedChanged()
142 mVisualizer.setEnabled(mEnabled); in onCheckedChanged()
190 mReleaseButton.setEnabled(false); in getEffect()
191 mOnOffButton.setEnabled(false); in getEffect()
194 mReleaseButton.setEnabled(true); in getEffect()
198 mOnOffButton.setEnabled(true); in getEffect()
200 mCallbackButton.setEnabled(!mEnabled); in getEffect()
207 mOnOffButton.setEnabled(false); in putEffect()
DPresetReverbTest.java124 mParameters[i].setEnabled(true);
143 mPresetReverb.setEnabled(isChecked); in onCheckedChanged()
154 mParameters[i].setEnabled(true); in onCheckedChanged()
162 mParameters[i].setEnabled(false); in onCheckedChanged()
266 mReleaseButton.setEnabled(false); in getEffect()
267 mOnOffButton.setEnabled(false); in getEffect()
278 mReleaseButton.setEnabled(true); in getEffect()
281 mOnOffButton.setEnabled(true); in getEffect()
287 mOnOffButton.setEnabled(false); in putEffect()
DEnvReverbTest.java188 mReverb.setEnabled(isChecked); in onCheckedChanged()
201 mParameters[i].setEnabled(true); in onCheckedChanged()
207 mParameters[i].setEnabled(false); in onCheckedChanged()
533 mReleaseButton.setEnabled(false); in getEffect()
534 mOnOffButton.setEnabled(false); in getEffect()
535 mAttachButton.setEnabled(false); in getEffect()
541 mReleaseButton.setEnabled(true); in getEffect()
543 mOnOffButton.setEnabled(true); in getEffect()
545 mAttachButton.setEnabled(true); in getEffect()
555 mOnOffButton.setEnabled(false); in putEffect()
[all …]
DEqualizerTest.java180 mParameters[i].setEnabled(true);
198 mEqualizer.setEnabled(isChecked); in onCheckedChanged()
209 mParameters[i].setEnabled(true); in onCheckedChanged()
216 mParameters[i].setEnabled(false); in onCheckedChanged()
374 mReleaseButton.setEnabled(false); in getEffect()
375 mOnOffButton.setEnabled(false); in getEffect()
387 mReleaseButton.setEnabled(true); in getEffect()
390 mOnOffButton.setEnabled(true); in getEffect()
396 mOnOffButton.setEnabled(false); in putEffect()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/
DThemeOverlayApplierTest.java180 verify(mTransactionBuilder).setEnabled(eq(overlayPackage), eq(true), in allCategoriesSpecified_allEnabledExclusively()
192 verify(mTransactionBuilder).setEnabled(eq(entry.getValue()), eq(true), in allCategoriesSpecified_sysuiCategoriesAlsoAppliedToSysuiUser()
195 verify(mTransactionBuilder, never()).setEnabled( in allCategoriesSpecified_sysuiCategoriesAlsoAppliedToSysuiUser()
208 verify(mTransactionBuilder).setEnabled(eq(overlayPackage), eq(true), in allCategoriesSpecified_enabledForAllUserHandles()
211 verify(mTransactionBuilder, never()).setEnabled(eq(overlayPackage), eq(true), in allCategoriesSpecified_enabledForAllUserHandles()
225 verify(mTransactionBuilder, never()).setEnabled(eq(overlayPackage), eq(true), in enablesOverlays_onlyIfItExistsForUser()
253 verify(mTransactionBuilder).setEnabled(eq(overlayPackage), eq(true), in someCategoriesSpecified_specifiedEnabled_unspecifiedDisabled()
256 verify(mTransactionBuilder).setEnabled( in someCategoriesSpecified_specifiedEnabled_unspecifiedDisabled()
259 verify(mTransactionBuilder).setEnabled( in someCategoriesSpecified_specifiedEnabled_unspecifiedDisabled()
270 verify(mTransactionBuilder).setEnabled( in zeroCategoriesSpecified_allDisabled()
[all …]
/frameworks/av/media/libnblog/include/media/nblog/
DWriter.h76 virtual bool setEnabled(bool enabled); // but won't enable if no shared memory
77 bool enable() { return setEnabled(true); } in enable()
78 bool disable() { return setEnabled(false); } in disable()
127 bool setEnabled(bool enabled) override;
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthCredentialPatternView.java62 mLockPatternView.setEnabled(false); in onPatternDetected()
86 mLockPatternView.setEnabled(false); in onPatternVerified()
88 mLockPatternView.setEnabled(true); in onPatternVerified()
96 mLockPatternView.setEnabled(true); in onErrorTimeoutFinish()
/frameworks/av/media/libcpustats/include/cpustats/
DThreadCpuUsage.h63 bool enable() { return setEnabled(true); } in enable()
68 bool disable() { return setEnabled(false); } in disable()
72 bool setEnabled(bool isEnabled);
/frameworks/base/media/java/android/media/audiofx/
DHapticGenerator.java101 public int setEnabled(boolean enabled) { in setEnabled() method in HapticGenerator
102 int ret = super.setEnabled(enabled); in setEnabled()
105 || mVolumeControlEffect.setEnabled(enabled) != SUCCESS) { in setEnabled()
/frameworks/base/core/java/android/widget/
DMediaController.java344 mPauseButton.setEnabled(false); in disableUnsupportedButtons()
347 mRewButton.setEnabled(false); in disableUnsupportedButtons()
350 mFfwdButton.setEnabled(false); in disableUnsupportedButtons()
360 mProgress.setEnabled(false); in disableUnsupportedButtons()
638 public void setEnabled(boolean enabled) { in setEnabled() method in MediaController
640 mPauseButton.setEnabled(enabled); in setEnabled()
643 mFfwdButton.setEnabled(enabled); in setEnabled()
646 mRewButton.setEnabled(enabled); in setEnabled()
649 mNextButton.setEnabled(enabled && mNextListener != null); in setEnabled()
652 mPrevButton.setEnabled(enabled && mPrevListener != null); in setEnabled()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUserDetailItemView.java102 setEnabled(!disabled); in setDisabledByAdmin()
105 public void setEnabled(boolean enabled) { in setEnabled() method in UserDetailItemView
106 super.setEnabled(enabled); in setEnabled()
107 mName.setEnabled(enabled); in setEnabled()
108 mAvatar.setEnabled(enabled); in setEnabled()
/frameworks/base/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/
DBackupRestoreConfirmation.java229 mAllowButton.setEnabled(false); in setViews()
230 mDenyButton.setEnabled(false); in setViews()
238 mAllowButton.setEnabled(false); in setViews()
239 mDenyButton.setEnabled(false); in setViews()
247 mAllowButton.setEnabled(!mDidAcknowledge); in setViews()
248 mDenyButton.setEnabled(!mDidAcknowledge); in setViews()
270 mAllowButton.setEnabled(false); in monitorEncryptionPassword()
280 mAllowButton.setEnabled(mEncPassword.getText().length() > 0); in monitorEncryptionPassword()
/frameworks/base/core/java/com/android/internal/globalactions/
DToggleAction.java103 messageView.setEnabled(enabled); in create()
110 icon.setEnabled(enabled); in create()
116 statusView.setEnabled(enabled); in create()
118 v.setEnabled(enabled); in create()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedTopLevelPreferenceTest.java54 mPreference.setEnabled(true); in setEnabled_disabledByAdmin_shouldCallSetDisabledByAdmin()
63 mPreference.setEnabled(true); in setEnabled_notDisabledByAdmin_shouldNotCallSetDisabledByAdmin()
72 verify(mPreference, never()).setEnabled(anyBoolean()); in setDisabledByAdmin_shouldNotCallSetEnabled()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/
DFaceDownDetectorTest.java153 setEnabled(false); in afterDisablingFeature_doesNotTriggerFaceDown()
163 setEnabled(false); in afterReenablingWhileNonInteractive_doesNotTriggerFaceDown()
166 setEnabled(true); in afterReenablingWhileNonInteractive_doesNotTriggerFaceDown()
176 setEnabled(false); in afterReenablingWhileInteractive_doesTriggerFaceDown()
178 setEnabled(true); in afterReenablingWhileInteractive_doesTriggerFaceDown()
237 private void setEnabled(Boolean enabled) throws Exception { in setEnabled() method in FaceDownDetectorTest
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/
DDeveloperOptionsPreferenceController.java78 mPreference.setEnabled(true); in onDeveloperOptionsSwitchEnabled()
85 mPreference.setEnabled(false); in onDeveloperOptionsSwitchDisabled()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
DItemViewHolder.java43 public void setEnabled(boolean isEnabled) { in setEnabled() method in ItemViewHolder
46 itemView.setEnabled(isEnabled); in setEnabled()
/frameworks/base/core/tests/coretests/src/android/view/
DDisabled.java37 disabledButton.setEnabled(false); in onCreate()
46 disabledButtonB.setEnabled(!disabledButtonB.isEnabled()); in onClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayApplier.java210 setEnabled(transaction, overlayInfo, packageToDisable.first, currentUser, in applyCurrentUserOverlays()
217 setEnabled(transaction, overlayInfo, category, currentUser, managedProfiles, in applyCurrentUserOverlays()
236 private void setEnabled(OverlayManagerTransaction.Builder transaction, in setEnabled() method in ThemeOverlayApplier
252 transaction.setEnabled(identifier, enabled, currentUser); in setEnabled()
255 transaction.setEnabled(identifier, enabled, UserHandle.SYSTEM.getIdentifier()); in setEnabled()
267 transaction.setEnabled(identifier, enabled, userHandle.getIdentifier()); in setEnabled()

12345678910>>...13