Home
last modified time | relevance | path

Searched refs:isEnabled (Results 1 – 25 of 125) sorted by relevance

12345

/packages/apps/Settings/src/com/android/settings/
DDreamSettings.java140 boolean isEnabled = mBackend.isEnabled(); in onCreateOptionsMenu()
145 isEnabled, new Runnable(){ in onCreateOptionsMenu()
155 isEnabled, in onCreateOptionsMenu()
169 int titleRes, int actionEnum, boolean isEnabled, final Runnable onClick) { in createMenuItem() argument
172 item.setEnabled(isEnabled); in createMenuItem()
239 boolean isEnabled = backend.isEnabled();
243 return !isEnabled ? R.string.screensaver_settings_summary_off
252 boolean isEnabled = backend.isEnabled();
253 if (!isEnabled) {
263 boolean dreamsEnabled = mBackend.isEnabled();
DCryptKeeper.java495 private final void setBackFunctionality(boolean isEnabled) { in setBackFunctionality() argument
496 mIgnoreBack = !isEnabled; in setBackFunctionality()
497 if (isEnabled) { in setBackFunctionality()
/packages/apps/Contacts/tests/src/com/android/contacts/widget/
DCompositeListAdapterTest.java61 public boolean isEnabled(int position) { in isEnabled() method in CompositeListAdapterTest.MockAdapter
301 assertFalse(adapter.isEnabled(0)); in testIsEnabled()
302 assertTrue(adapter.isEnabled(1)); in testIsEnabled()
303 assertTrue(adapter.isEnabled(2)); in testIsEnabled()
304 assertTrue(adapter.isEnabled(3)); in testIsEnabled()
305 assertTrue(adapter.isEnabled(4)); in testIsEnabled()
318 assertFalse(adapter.isEnabled(0)); in testIsEnabledWhenAllEnabledAtLeastOneAdapter()
319 assertTrue(adapter.isEnabled(1)); in testIsEnabledWhenAllEnabledAtLeastOneAdapter()
320 assertFalse(adapter.isEnabled(2)); in testIsEnabledWhenAllEnabledAtLeastOneAdapter()
321 assertTrue(adapter.isEnabled(3)); in testIsEnabledWhenAllEnabledAtLeastOneAdapter()
[all …]
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java1030 final boolean isEnabled = prefs.getBoolean(Key.virt_enabled.toString(), in openSession()
1043 virtualizerEffect.setEnabled(isEnabled); in openSession()
1050 Log.v(TAG, "Parameters: " + settings.toString() + ";enabled=" + isEnabled); in openSession()
1053 editor.putBoolean(Key.virt_enabled.toString(), isEnabled); in openSession() local
1076 final boolean isEnabled = prefs.getBoolean(Key.bb_enabled.toString(), in openSession()
1089 bassBoostEffect.setEnabled(isEnabled); in openSession()
1096 Log.v(TAG, "Parameters: " + settings.toString() + ";enabled=" + isEnabled); in openSession()
1099 editor.putBoolean(Key.bb_enabled.toString(), isEnabled); in openSession() local
1186 final boolean isEnabled = prefs.getBoolean(Key.eq_enabled.toString(), in openSession()
1188 editor.putBoolean(Key.eq_enabled.toString(), isEnabled); in openSession() local
[all …]
DActivityMusic.java565 final boolean isEnabled = ControlPanelEffect.getParameterBoolean(mContext, in updateUI()
567 mToggleSwitch.setChecked(isEnabled); in updateUI()
568 setEnabledAllChildren((ViewGroup) findViewById(R.id.contentSoundEffects), isEnabled); in updateUI() local
585 sw.setChecked(sw.isEnabled() && strength != 0); in updateUI()
/packages/apps/Contacts/src/com/android/contacts/editor/
DRawContactEditorView.java256 getPhotoEditor().setEnabled(isEnabled()); in setState()
257 mName.setEnabled(isEnabled()); in setState()
259 mPhoneticName.setEnabled(isEnabled()); in setState()
271 mGroupMembershipView.setEnabled(isEnabled()); in setState()
302 section.setEnabled(isEnabled()); in setState()
333 section.setEnabled(isEnabled()); in setState()
350 mAddFieldButton.setEnabled(isEnabled()); in setState()
DPhotoEditorView.java110 mFrameView.setEnabled(isEnabled()); in setValues()
141 mFrameView.setEnabled(isEnabled()); in setPhotoBitmap()
170 mFrameView.setEnabled(!mReadOnly && isEnabled()); in resetDefault()
DLabeledEditorView.java204 mLabel.setEnabled(!mReadOnly && isEnabled()); in setupLabelButton()
217 mDelete.setEnabled(!mReadOnly && isEnabled()); in setupDeleteButton()
363 mLabel.setEnabled(!readOnly && isEnabled()); in setValues()
/packages/apps/Settings/src/com/android/settings/widget/
DChartSweepView.java365 if (isEnabled()) { in getPoint()
416 if (!isEnabled()) return false; in onTouchEvent()
569 return dynamic != null && dynamic.isEnabled() ? dynamic.getValue() : Long.MIN_VALUE;
574 return dynamic != null && dynamic.isEnabled() ? dynamic.getValue() : Long.MAX_VALUE;
631 if (isEnabled() && mLabelLayout != null) {
703 if (isEnabled() && mLabelLayout != null) {
/packages/apps/Dialer/src/com/android/dialer/list/
DPhoneFavoriteMergedAdapter.java255 && mAccountFilterHeaderContainer.isEnabled() in areAllItemsEnabled()
260 public boolean isEnabled(int position) { in isEnabled() method in PhoneFavoriteMergedAdapter
264 return mContactTileAdapter.isEnabled(position); in isEnabled()
274 return mContactEntryListAdapter.isEnabled(localPosition); in isEnabled()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DPointerTracker.java456 key.isEnabled() ? "" : " disabled")); in callListenerOnPressAndCheckKeyboardLayoutChange()
461 if (key.isEnabled()) { in callListenerOnPressAndCheckKeyboardLayoutChange()
483 altersCode ? " altersCode" : "", key.isEnabled() ? "" : " disabled")); in callListenerOnCodeInput()
493 if (key.isEnabled() || altersCode) { in callListenerOnCodeInput()
516 key.isEnabled() ? "": " disabled")); in callListenerOnRelease()
525 if (key.isEnabled()) { in callListenerOnRelease()
633 final boolean needsToUpdateGraphics = key.isEnabled() || altersCode; in setPressedKeyGraphics()
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverService.java163 if (mBluetoothAdapter.isEnabled()) { in doOutgoingTransfer()
185 if (!mBluetoothAdapter.isEnabled() && !enableBluetooth()) { in doIncomingTransfer()
200 if (mBluetoothAdapter.isEnabled()) { in doHeadsetHandover()
242 if (!mBluetoothAdapter.isEnabled()) { in enableBluetooth()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DInputMethodAndSubtypeUtil.java315 boolean isEnabled = enabledSubtypes.containsKey(imiId); in loadInputMethodSubtypeList()
316 checkBoxPreference.setChecked(isEnabled); in loadInputMethodSubtypeList()
319 childPref.setEnabled(isEnabled); in loadInputMethodSubtypeList()
322 setSubtypesPreferenceEnabled(context, inputMethodInfos, imiId, isEnabled); in loadInputMethodSubtypeList()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DAccessibilityUtils.java89 return ENABLE_ACCESSIBILITY && mAccessibilityManager.isEnabled(); in isAccessibilityEnabled()
152 if (!mAccessibilityManager.isEnabled()) { in announceForAccessibility()
208 if (mAccessibilityManager.isEnabled()) { in requestSendAccessibilityEvent()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiEnabler.java97 boolean isEnabled = wifiState == WifiManager.WIFI_STATE_ENABLED; in setSwitch()
99 mSwitch.setChecked(isEnabled); in setSwitch()
100 mSwitch.setEnabled(isEnabled || isDisabled); in setSwitch()
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDetailFragment.java1076 protected boolean isEnabled = false; field in ContactDetailFragment.ViewEntry
1090 boolean isEnabled(){ in isEnabled() method in ContactDetailFragment.ViewEntry
1091 return isEnabled; in isEnabled()
1170 this.isEnabled = false; in NetworkTitleViewEntry()
1196 this.isEnabled = true; in AddConnectionViewEntry()
1269 isEnabled = true; in DetailViewEntry()
1854 public boolean isEnabled(int position) { in isEnabled() method in ContactDetailFragment.ViewAdapter
1855 return getItem(position).isEnabled(); in isEnabled()
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DZoomControl.java129 mThumb.setAlpha(isEnabled() ? 255 : 100); in onDraw()
138 if (isEnabled()) { in onTouchEvent()
145 if (isEnabled()) { in onTouchEvent()
DHorizontalScrollView.java740 if (!isEnabled()) { in performAccessibilityAction()
751 if (!isEnabled()) { in performAccessibilityAction()
772 if (isEnabled() && mScrollX > 0) { in onInitializeAccessibilityNodeInfo()
775 if (isEnabled() && mScrollX < scrollRange) { in onInitializeAccessibilityNodeInfo()
DHandleView.java129 if (isEnabled()) { in onTouchEvent()
147 if (mMoveStarted && isEnabled()) { in onTouchEvent()
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/
DAbsSeekBar.java207 progressDrawable.setAlpha(isEnabled() ? NO_ALPHA : (int) (NO_ALPHA * mDisabledAlpha));
399 if (!mIsUserSeekable || !isEnabled()) {
539 if (isEnabled()) {
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DAccessibilityUtils.java42 if (!am.isEnabled()) return; in makeAnnouncement()
49 event.setEnabled(view.isEnabled()); in makeAnnouncement()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
DResearchSettings.java51 final boolean isEnabled) { in writeResearchLoggerEnabledFlag() argument
52 prefs.edit().putBoolean(PREF_RESEARCH_LOGGER_ENABLED_FLAG, isEnabled).apply(); in writeResearchLoggerEnabledFlag()
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
DGlowPadView.java375 if (accessibilityManager.isEnabled()) { in switchToState()
868 if (target.isEnabled()) { in handleMove()
908 if (accessibilityManager.isEnabled()) { in handleMove()
1106 if (accessibilityManager.isEnabled()) {
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothAdapter.java121 boolean isEnabled() { in isEnabled() method in LocalBluetoothAdapter
122 return mAdapter.isEnabled(); in isEnabled()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DAbstractIndicatorButton.java75 if (!isEnabled()) return false; in onTouchEvent()
102 if (isEnabled() ^ enabled) { in setEnabled()

12345