Home
last modified time | relevance | path

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

12345678910>>...31

/packages/apps/Settings/src/com/android/settings/development/qstile/
DDevelopmentTiles.java63 protected abstract boolean isEnabled(); in isEnabled() method in DevelopmentTiles
65 protected abstract void setIsEnabled(boolean isEnabled); in setIsEnabled() argument
77 if (isEnabled()) { in refresh()
97 state = isEnabled() ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in refresh()
116 protected boolean isEnabled() { in isEnabled() method in DevelopmentTiles.ShowLayout
121 protected void setIsEnabled(boolean isEnabled) { in setIsEnabled() argument
122 DisplayProperties.debug_layout(isEnabled); in setIsEnabled()
132 protected boolean isEnabled() { in isEnabled() method in DevelopmentTiles.GPUProfiling
138 protected void setIsEnabled(boolean isEnabled) { in setIsEnabled() argument
139 SystemProperties.set(ThreadedRenderer.PROFILE_PROPERTY, isEnabled ? "visual_bars" : ""); in setIsEnabled()
[all …]
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DNfcStateTest.java73 if (mNfcAdapter.isEnabled()) { in setUp()
102 if (mNfcAdapter.isEnabled()) { in testSetControllerAlwaysOnTrueFromFalseWhenDisabled()
119 if (mNfcAdapter.isEnabled()) { in testSetControllerAlwaysOnFalseFromTrueWhenDisabled()
136 if (mNfcAdapter.isEnabled()) { in testSetControllerAlwaysOnFalseFromFalseWhenDisabled()
153 if (mNfcAdapter.isEnabled()) { in testSetControllerAlwaysOnTrueFromTrueWhenDisabled()
170 if (!mNfcAdapter.isEnabled()) { in testSetControllerAlwaysOnTrueFromFalseWhenEnabled()
187 if (!mNfcAdapter.isEnabled()) { in testSetAlwaysOnFalseFromTrueWhenEnabled()
204 if (!mNfcAdapter.isEnabled()) { in testSetControllerAlwaysOnFalseFromFalseWhenEnabled()
221 if (!mNfcAdapter.isEnabled()) { in testSetControllerAlwaysOnTrueFromTrueWhenEnabled()
238 if (mNfcAdapter.isEnabled()) { in testEnableWhenSetControllerAlwaysOnTrueAndDisabled()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DFeatures.java87 private boolean isEnabled(@BoolRes int feature) { in isEnabled() method in Features.RuntimeFeatures
93 return isEnabled(R.bool.feature_archive_creation); in isArchiveCreationEnabled()
99 return isEnabled(R.bool.feature_command_interceptor); in isCommandInterceptorEnabled()
104 return isEnabled(R.bool.feature_content_paging); in isContentPagingEnabled()
109 return isEnabled(R.bool.feature_content_refresh); in isContentRefreshEnabled()
127 return isEnabled(R.bool.feature_folders_in_search_results); in isFoldersInSearchResultsEnabled()
132 return isEnabled(R.bool.feature_gesture_scale); in isGestureScaleEnabled()
137 return isEnabled(R.bool.feature_inspector); in isInspectorEnabled()
142 return isEnabled(R.bool.feature_job_progress_dialog); in isJobProgressDialogEnabled()
147 return isEnabled(R.bool.feature_launch_to_document); in isLaunchToDocumentEnabled()
[all …]
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DButtonController.java38 boolean isEnabled(); in isEnabled() method
40 void setEnabled(boolean isEnabled); in setEnabled() argument
69 protected boolean isEnabled; field in ButtonController.CheckableButtonController
87 public boolean isEnabled() { in isEnabled() method in ButtonController.CheckableButtonController
88 return isEnabled; in isEnabled()
92 public void setEnabled(boolean isEnabled) { in setEnabled() argument
93 this.isEnabled = isEnabled; in setEnabled()
95 button.setEnabled(isEnabled); in setEnabled()
133 button.setEnabled(isEnabled); in setButton()
191 protected boolean isEnabled; field in ButtonController.NonCheckableButtonController
[all …]
/packages/apps/TV/common/src/com/android/tv/common/feature/
DFeatureUtils.java34 public boolean isEnabled(Context context) { in or()
36 if (f.isEnabled(context)) { in or()
58 public boolean isEnabled(Context context) {
60 if (!f.isEnabled(context)) {
82 public boolean isEnabled(Context context) {
83 return !feature.isEnabled(context);
97 public boolean isEnabled(Context context) {
111 public boolean isEnabled(Context context) {
125 public boolean isEnabled(Context context) {
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DMoreWirelessSettingsTest2.java177 By.text(ADD_NETWORK_MENU_SAVE_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetworkMenu_Default()
179 By.text(ADD_NETWORK_MENU_CANCEL_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetworkMenu_Default()
335 .findObject(By.text(ADD_NETWORK_MENU_SAVE_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetwork_NoSecurity()
344 By.text(ADD_NETWORK_MENU_SAVE_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetwork_WEP()
355 By.text(ADD_NETWORK_MENU_SAVE_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetwork_WEP()
360 .findObject(By.text(ADD_NETWORK_MENU_SAVE_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetwork_WEP()
369 By.text(ADD_NETWORK_MENU_SAVE_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetwork_PSK()
380 By.text(ADD_NETWORK_MENU_SAVE_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetwork_PSK()
385 By.text(ADD_NETWORK_MENU_SAVE_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetwork_PSK()
390 By.text(ADD_NETWORK_MENU_SAVE_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetwork_PSK()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAppPermissionViewModel.kt177 var isEnabled: Boolean, in <lambda>() variable in com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonState
278 allowedState.isEnabled = false in <lambda>()
279 askState.isEnabled = false in <lambda>()
280 deniedState.isEnabled = false in <lambda>()
292 allowedForegroundState.isEnabled = allowedState.isEnabled in <lambda>()
309 allowedAllFilesState.isEnabled = allowedState.isEnabled in <lambda>()
316 allowedAllFilesState.isEnabled = false in <lambda>()
320 allowedMediaOnlyState.isEnabled = allowedState.isEnabled in <lambda>()
338 locationAccuracyState.isEnabled = false in <lambda>()
390 allowedAlwaysState.isEnabled = false in <lambda>()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/settings/
DVisualVoicemailSettingsUtil.java46 Context context, PhoneAccountHandle phoneAccount, boolean isEnabled) { in setEnabled() argument
47 VvmLog.i("VisualVoicemailSettingsUtil.setEnable", phoneAccount + " enabled:" + isEnabled); in setEnabled()
50 .putBoolean(IS_ENABLED_KEY, isEnabled) in setEnabled()
53 if (isEnabled) { in setEnabled()
78 Context context, PhoneAccountHandle phoneAccount, boolean isEnabled) { in setArchiveEnabled() argument
83 .putBoolean(ARCHIVE_ENABLED_KEY, isEnabled) in setArchiveEnabled()
88 Context context, PhoneAccountHandle phoneAccount, boolean isEnabled) { in setVoicemailTranscriptionEnabled() argument
95 .putBoolean(TRANSCRIBE_VOICEMAILS_KEY, isEnabled) in setVoicemailTranscriptionEnabled()
98 if (!isEnabled) { in setVoicemailTranscriptionEnabled()
122 Context context, PhoneAccountHandle phoneAccount, boolean isEnabled) { in setVoicemailDonationEnabled() argument
[all …]
/packages/apps/Car/DebuggingRestrictionController/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/
DLoginTest.java30 import static androidx.test.espresso.matcher.ViewMatchers.isEnabled;
97 onView(withId(R.id.login)).check(matches(not(isEnabled()))); in invalidEmail()
108 onView(withId(R.id.login)).check(matches(not(isEnabled()))); in invalidPassword()
114 onView(withId(R.id.login)).check(matches(not(isEnabled()))); in initialButtonStates()
116 onView(withId(R.id.next)).check(matches(not(isEnabled()))); in initialButtonStates()
124 onView(withId(R.id.next)).check(matches(not(isEnabled()))); in wrongPassword()
133 onView(withId(R.id.login)).check(matches(isEnabled())); in userLogout()
136 onView(withId(R.id.login)).check(matches(isEnabled())); in userLogout()
139 onView(withId(R.id.login)).check(matches(isEnabled())); in userLogout()
149 onView(withId(R.id.login)).check(matches(isEnabled())); in startTokenActivity()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothStateSwitchPreferenceControllerTest.java102 BluetoothAdapter.getDefaultAdapter().isEnabled()); in onStart_initializesSwitchState()
115 assertThat(mSwitchPreference.isEnabled()).isFalse(); in switchClicked_disabled_checksAndDisablesSwitch()
128 assertThat(mSwitchPreference.isEnabled()).isFalse(); in switchClicked_enabled_unchecksAndDisablesSwitch()
146 assertThat(mSwitchPreference.isEnabled()).isFalse(); in stateChanged_turningOn_setsSwitchDisabled()
164 assertThat(mSwitchPreference.isEnabled()).isTrue(); in stateChanged_on_setsSwitchEnabled()
182 assertThat(mSwitchPreference.isEnabled()).isFalse(); in stateChanged_turningOff_setsSwitchDisabled()
200 assertThat(mSwitchPreference.isEnabled()).isTrue(); in stateChanged_off_setsSwitchEnabled()
210 assertThat(mSwitchPreference.isEnabled()).isFalse(); in stateChanged_on_userRestricted_setsSwitchDisabled()
221 assertThat(mSwitchPreference.isEnabled()).isFalse(); in stateChanged_off_userRestricted_setsSwitchDisabled()
232 assertThat(mSwitchPreference.isEnabled()).isTrue(); in onPolicyChanged_enabled_setsSwitchEnabled()
[all …]
DBluetoothBondedDevicesPreferenceControllerTest.java200 assertThat(bluetoothButton.isEnabled()).isTrue(); in bluetoothButtonClicked_notConnected_connectsToDevice()
219 MultiActionPreference.ActionItem.ACTION_ITEM2).isEnabled()).isTrue(); in phoneButtonClicked_phoneProfile_enabled()
220 assertThat(mPhoneProfile.isEnabled(mBondedDevice)).isFalse(); in phoneButtonClicked_phoneProfile_enabled()
225 assertThat(mPhoneProfile.isEnabled(mBondedDevice)).isTrue(); in phoneButtonClicked_phoneProfile_enabled()
244 assertThat(mMediaProfile.isEnabled(mBondedDevice)).isTrue(); in mediaButtonClicked_mediaProfile_enabled()
261 MultiActionPreference.ActionItem.ACTION_ITEM1).isEnabled()).isTrue(); in actionButtons_disallowConfigBluetooth_bluetoothActionStaysDisabled()
263 MultiActionPreference.ActionItem.ACTION_ITEM2).isEnabled()).isFalse(); in actionButtons_disallowConfigBluetooth_bluetoothActionStaysDisabled()
265 MultiActionPreference.ActionItem.ACTION_ITEM3).isEnabled()).isFalse(); in actionButtons_disallowConfigBluetooth_bluetoothActionStaysDisabled()
283 MultiActionPreference.ActionItem.ACTION_ITEM1).isEnabled()).isTrue(); in onUxRestrictionsChanged_hasRestrictions_actionButtonDisabled()
285 MultiActionPreference.ActionItem.ACTION_ITEM2).isEnabled()).isFalse(); in onUxRestrictionsChanged_hasRestrictions_actionButtonDisabled()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/qstile/
DWirelessDebuggingTest.java79 assertThat(mWirelessDebugging.isEnabled()).isTrue(); in adbWifiEnabled_shouldReturnEnabled()
87 assertThat(mWirelessDebugging.isEnabled()).isFalse(); in adbWifiDisabled_shouldReturnDisabled()
102 assertThat(mWirelessDebugging.isEnabled()).isFalse(); in setIsEnabled_false_keyguardUnlocked_WifiDisconnected_shouldDisableAdbWifi()
117 assertThat(mWirelessDebugging.isEnabled()).isFalse(); in setIsEnabled_false_keyguardLocked_WifiDisconnected_shouldDisableAdbWifi()
132 assertThat(mWirelessDebugging.isEnabled()).isFalse(); in setIsEnabled_false_keyguardUnlocked_WifiConnected_shouldDisableAdbWifi()
147 assertThat(mWirelessDebugging.isEnabled()).isFalse(); in setIsEnabled_false_keyguardLocked_WifiConnected_shouldDisableAdbWifi()
164 assertThat(mWirelessDebugging.isEnabled()).isFalse(); in setIsEnabled_true_keyguardUnlocked_WifiDisconnected_shouldDisableAdbWifi()
187 assertThat(mWirelessDebugging.isEnabled()).isFalse(); in setIsEnabled_true_keyguardLocked_WifiDisconnected_shouldDisableAdbWifi()
202 assertThat(mWirelessDebugging.isEnabled()).isTrue(); in setIsEnabled_true_keyguardUnlocked_WifiConnected_shouldDisableAdbWifi()
218 assertThat(mWirelessDebugging.isEnabled()).isFalse(); in setIsEnabled_true_keyguardLocked_WifiConnected_shouldDisableAdbWifi()
DWinscopeTraceTest.java88 assertThat(mWinscopeTrace.isEnabled()).isTrue(); in wmReturnsTraceEnabled_shouldReturnEnabled()
98 assertThat(mWinscopeTrace.isEnabled()).isTrue(); in sfReturnsTraceEnabled_shouldReturnEnabled()
110 assertThat(mWinscopeTrace.isEnabled()).isTrue(); in sfAndWmReturnsTraceEnabled_shouldReturnEnabled()
118 assertThat(mWinscopeTrace.isEnabled()).isFalse(); in wmAndSfAndImmReturnTraceDisabled_shouldReturnDisabled()
131 assertThat(mWinscopeTrace.isEnabled()).isTrue(); in wmAndSfReturnTraceDisabled_immReturnsTraceEnabled_shouldReturnEnabled()
144 assertThat(mWinscopeTrace.isEnabled()).isTrue(); in immReturnsTraceEnabled_shouldReturnEnabled()
153 assertThat(mWinscopeTrace.isEnabled()).isFalse(); in immReturnsTraceDisabled_shouldReturnDisabled()
163 assertThat(mWinscopeTrace.isEnabled()).isFalse(); in wmThrowsRemoteExAndSfReturnsTraceDisabled_shouldReturnDisabled()
172 assertThat(mWinscopeTrace.isEnabled()).isFalse(); in sfUnavailableAndWmAndImmReturnTraceDisabled_shouldReturnDisabled()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DApplicationActionButtonsPreferenceControllerTest.java204 assertThat(getDisableButton().isEnabled()).isFalse(); in onCreate_bundledApp_homePackage_disablesDisableButton()
215 assertThat(getDisableButton().isEnabled()).isFalse(); in onCreate_bundledApp_systemPackage_disablesDisableButton()
236 assertThat(getDisableButton().isEnabled()).isFalse(); in onCreate_bundledApp_enabledApp_keepEnabledPackage_disablesDisableButton()
259 assertThat(getUninstallButton().isEnabled()).isFalse(); in onCreate_packageHasActiveAdmins_disablesUninstallButton()
274 assertThat(getUninstallButton().isEnabled()).isFalse(); in onCreate_deviceProvisioningPackage_disablesUninstallButton()
286 assertThat(getUninstallButton().isEnabled()).isFalse(); in onStart_uninstallQueued_disablesUninstallButton()
307 assertThat(getUninstallButton().isEnabled()).isFalse(); in onStart_noDefaultHome_onlyHomeApp_disablesUninstallButton()
333 assertThat(getUninstallButton().isEnabled()).isTrue(); in onStart_noDefaultHome_multipleHomeApps_enablesUninstallButton()
359 assertThat(getUninstallButton().isEnabled()).isFalse(); in onStart_defaultHomeApp_disablesUninstallButton()
370 assertThat(getUninstallButton().isEnabled()).isFalse(); in onStart_appsControlUserRestriction_disablesUninstallButton()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceControllerTest.java400 assertThat(mDefaultLanguagePreference.isEnabled()).isFalse(); in refreshUi_notInitialized_disablesPreference()
403 assertThat(mSpeechRatePreference.isEnabled()).isFalse(); in refreshUi_notInitialized_disablesPreference()
404 assertThat(mVoicePitchPreference.isEnabled()).isFalse(); in refreshUi_notInitialized_disablesPreference()
405 assertThat(mResetPreference.isEnabled()).isFalse(); in refreshUi_notInitialized_disablesPreference()
418 assertThat(mDefaultLanguagePreference.isEnabled()).isFalse(); in refreshUi_initialized_defaultLocaleIsNull_disablesPreference()
421 assertThat(mSpeechRatePreference.isEnabled()).isFalse(); in refreshUi_initialized_defaultLocaleIsNull_disablesPreference()
422 assertThat(mVoicePitchPreference.isEnabled()).isFalse(); in refreshUi_initialized_defaultLocaleIsNull_disablesPreference()
423 assertThat(mResetPreference.isEnabled()).isFalse(); in refreshUi_initialized_defaultLocaleIsNull_disablesPreference()
445 assertThat(mDefaultLanguagePreference.isEnabled()).isTrue(); in refreshUi_defaultLocaleNotSupported_disablesPreferencesExceptLanguage()
448 assertThat(mSpeechRatePreference.isEnabled()).isFalse(); in refreshUi_defaultLocaleNotSupported_disablesPreferencesExceptLanguage()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DProfileTabsControllerTest.java44 assertThat(mFakeProfileTabs.isEnabled()).isTrue(); in testNoSelection_enable()
51 assertThat(mFakeProfileTabs.isEnabled()).isTrue(); in testClearSelection_enable()
60 assertThat(mFakeProfileTabs.isEnabled()).isTrue(); in testDeselectAll_enable()
66 assertThat(mFakeProfileTabs.isEnabled()).isFalse(); in testSelection_disable()
74 assertThat(mFakeProfileTabs.isEnabled()).isFalse(); in testMultipleSelection_disable()
82 assertThat(mFakeProfileTabs.isEnabled()).isFalse(); in testDeselectSome_Disable()
88 boolean isEnabled() { in isEnabled() method in ProfileTabsControllerTest.FakeProfileTabs
/packages/apps/Contacts/tests/src/com/android/contacts/widget/
DCompositeListAdapterTest.java63 public boolean isEnabled(int position) { in isEnabled() method in CompositeListAdapterTest.MockAdapter
303 assertFalse(adapter.isEnabled(0)); in testIsEnabled()
304 assertTrue(adapter.isEnabled(1)); in testIsEnabled()
305 assertTrue(adapter.isEnabled(2)); in testIsEnabled()
306 assertTrue(adapter.isEnabled(3)); in testIsEnabled()
307 assertTrue(adapter.isEnabled(4)); in testIsEnabled()
320 assertFalse(adapter.isEnabled(0)); in testIsEnabledWhenAllEnabledAtLeastOneAdapter()
321 assertTrue(adapter.isEnabled(1)); in testIsEnabledWhenAllEnabledAtLeastOneAdapter()
322 assertFalse(adapter.isEnabled(2)); in testIsEnabledWhenAllEnabledAtLeastOneAdapter()
323 assertTrue(adapter.isEnabled(3)); in testIsEnabledWhenAllEnabledAtLeastOneAdapter()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DPrimaryCheckBoxPreferenceTest.java83 assertThat(checkBox.isEnabled()).isTrue(); in setEnabled_shouldUpdateCheckBoxEnabledState()
86 assertThat(checkBox.isEnabled()).isFalse(); in setEnabled_shouldUpdateCheckBoxEnabledState()
98 assertThat(mPreference.isEnabled()).isTrue(); in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState()
99 assertThat(checkBox.isEnabled()).isFalse(); in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState()
102 assertThat(mPreference.isEnabled()).isTrue(); in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState()
103 assertThat(checkBox.isEnabled()).isTrue(); in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState()
116 assertThat(mPreference.isEnabled()).isTrue(); in onBindViewHolder_shouldSetCheckboxEnabledState()
117 assertThat(checkBox.isEnabled()).isFalse(); in onBindViewHolder_shouldSetCheckboxEnabledState()
120 assertThat(mPreference.isEnabled()).isTrue(); in onBindViewHolder_shouldSetCheckboxEnabledState()
121 assertThat(checkBox.isEnabled()).isTrue(); in onBindViewHolder_shouldSetCheckboxEnabledState()
/packages/services/Car/car-lib/src/android/car/vms/
DVmsOperationRecorder.java190 if (isEnabled()) { in recordOp()
200 if (isEnabled()) { in recordOp()
210 if (isEnabled()) { in recordOp()
226 if (isEnabled()) { in recordOp()
236 if (isEnabled()) { in recordOp()
247 if (isEnabled()) { in recordOp()
284 private boolean isEnabled() { in isEnabled() method in VmsOperationRecorder
285 return mWriter.isEnabled(); in isEnabled()
298 public boolean isEnabled() { in isEnabled() method in VmsOperationRecorder.Writer
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/
DNotificationsPreferenceTest.java101 assertFalse(mNotificationsPreference.isEnabled()); in testNotificationsPreference_systemAppNotificationsEnabledInRes()
113 assertFalse(mNotificationsPreference.isEnabled()); in testNotificationsPreference_systemAppNotificationsEnabledNotInRes()
125 assertFalse(mNotificationsPreference.isEnabled()); in testNotificationsPreference_notSystemAppNotificationsEnabledInRes()
137 assertTrue(mNotificationsPreference.isEnabled()); in testNotificationsPreference_notSystemAppNotificationsEnabledNotInRes()
149 assertTrue(mNotificationsPreference.isEnabled()); in testNotificationsPreference_systemAppNotificationsDisabledNotInRes()
161 assertTrue(mNotificationsPreference.isEnabled()); in testNotificationsPreference_notSystemAppNotificationsEDisabledInRes()
173 assertTrue(mNotificationsPreference.isEnabled()); in testNotificationsPreference_notSystemAppNotificationsDisabledNotInRes()
185 assertTrue(mNotificationsPreference.isEnabled()); in testNotificationsPreference_systemAppNotificationsDisabledInRes()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDeviceProfilePreferenceTest.java92 assertThat(mPreference.isEnabled()).isTrue(); in onAttached_deviceNotBusy_setsEnabled()
101 assertThat(mPreference.isEnabled()).isFalse(); in onAttached_deviceBusy_setsNotEnabled()
106 when(mProfile.isEnabled(mDevice)).thenReturn(true); in onAttached_preferred_setsChecked()
115 when(mProfile.isEnabled(mDevice)).thenReturn(false); in onAttached_notPreferred_setsUnchecked()
150 when(mProfile.isEnabled(mDevice)).thenReturn(false); in onDeviceAttributesChanged_refreshesUi()
157 assertThat(mPreference.isEnabled()).isTrue(); in onDeviceAttributesChanged_refreshesUi()
160 when(mProfile.isEnabled(mDevice)).thenReturn(true); in onDeviceAttributesChanged_refreshesUi()
165 assertThat(mPreference.isEnabled()).isFalse(); in onDeviceAttributesChanged_refreshesUi()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DPickerPreviewAllTypeUiTest.java54 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_gridMode()
60 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_listMode()
66 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_allType_girdMode()
68 assertTrue(bots.directory.findDocument(fileName2).isEnabled()); in testPreviewVisible_allType_girdMode()
74 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_allType_listMode()
76 assertTrue(bots.directory.findDocument(fileName2).isEnabled()); in testPreviewVisible_allType_listMode()
/packages/services/Telephony/src/com/android/phone/
DCdmaCallOptions.java160 private void updatePreferencesEnabled(boolean isEnabled) { in updatePreferencesEnabled() argument
161 Log.d(LOG_TAG, "updatePreferencesEnabled: " + isEnabled); in updatePreferencesEnabled()
162 if (mCallForwardingPref != null) mCallForwardingPref.setEnabled(isEnabled); in updatePreferencesEnabled()
164 if (mCallWaitingPref == null || mCallWaitingPref.isEnabled() == isEnabled) return; in updatePreferencesEnabled()
165 mCallWaitingPref.setActionAvailable(isEnabled); in updatePreferencesEnabled()
166 if (isEnabled) { in updatePreferencesEnabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryChartViewTest.java79 doReturn(false).when(mockAccessibilityManager).isEnabled(); in testIsAccessibilityEnabled_disable_returnFalse()
85 doReturn(true).when(mockAccessibilityManager).isEnabled(); in testIsAccessibilityEnabled_emptyInfo_returnFalse()
95 doReturn(true).when(mockAccessibilityManager).isEnabled(); in testIsAccessibilityEnabled_validServiceId_returnTrue()
147 doReturn(false).when(mockAccessibilityManager).isEnabled(); in testClickable_accessibilityIsDisabled_clickable()
159 doReturn(true).when(mockAccessibilityManager).isEnabled(); in testClickable_accessibilityIsEnabledWithoutValidId_clickable()
174 doReturn(true).when(mockAccessibilityManager).isEnabled(); in testClickable_accessibilityIsEnabledWithValidId_notClickable()
192 doReturn(true).when(mockAccessibilityManager).isEnabled(); in testClickable_restoreFromNonClickableState()
197 doReturn(false).when(mockAccessibilityManager).isEnabled(); in testClickable_restoreFromNonClickableState()
/packages/apps/Settings/src/com/android/settings/security/
DScreenPinningSettings.java112 private void setLockToAppEnabled(boolean isEnabled) { in setLockToAppEnabled() argument
114 isEnabled ? 1 : 0); in setLockToAppEnabled()
115 if (isEnabled) { in setLockToAppEnabled()
131 private boolean setScreenLockUsed(boolean isEnabled) { in setScreenLockUsed() argument
132 if (isEnabled) { in setScreenLockUsed()
145 setScreenLockUsedSetting(isEnabled); in setScreenLockUsed()
149 private void setScreenLockUsedSetting(boolean isEnabled) { in setScreenLockUsedSetting() argument
151 isEnabled ? 1 : 0); in setScreenLockUsedSetting()

12345678910>>...31