/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/qstile/ |
D | DevelopmentTiles.java | 52 protected abstract boolean isEnabled(); in isEnabled() method in DevelopmentTiles 54 protected abstract void setIsEnabled(boolean isEnabled); in setIsEnabled() argument 66 if (isEnabled()) { in refresh() 86 state = isEnabled() ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in refresh() 105 protected boolean isEnabled() { in isEnabled() method in DevelopmentTiles.ShowLayout 110 protected void setIsEnabled(boolean isEnabled) { in setIsEnabled() argument 111 DisplayProperties.debug_layout(isEnabled); in setIsEnabled() 121 protected boolean isEnabled() { in isEnabled() method in DevelopmentTiles.GPUProfiling 127 protected void setIsEnabled(boolean isEnabled) { in setIsEnabled() argument 128 SystemProperties.set(ThreadedRenderer.PROFILE_PROPERTY, isEnabled ? "visual_bars" : ""); in setIsEnabled() [all …]
|
/packages/apps/Settings/src/com/android/settings/development/qstile/ |
D | DevelopmentTiles.java | 52 protected abstract boolean isEnabled(); in isEnabled() method in DevelopmentTiles 54 protected abstract void setIsEnabled(boolean isEnabled); in setIsEnabled() argument 66 if (isEnabled()) { in refresh() 86 state = isEnabled() ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in refresh() 105 protected boolean isEnabled() { in isEnabled() method in DevelopmentTiles.ShowLayout 110 protected void setIsEnabled(boolean isEnabled) { in setIsEnabled() argument 111 DisplayProperties.debug_layout(isEnabled); in setIsEnabled() 121 protected boolean isEnabled() { in isEnabled() method in DevelopmentTiles.GPUProfiling 127 protected void setIsEnabled(boolean isEnabled) { in setIsEnabled() argument 128 SystemProperties.set(ThreadedRenderer.PROFILE_PROPERTY, isEnabled ? "visual_bars" : ""); in setIsEnabled() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | Features.java | 83 private boolean isEnabled(@BoolRes int feature) { in isEnabled() method in Features.RuntimeFeatures 89 return isEnabled(R.bool.feature_archive_creation); in isArchiveCreationEnabled() 95 return isEnabled(R.bool.feature_command_interceptor); in isCommandInterceptorEnabled() 100 return isEnabled(R.bool.feature_content_paging); in isContentPagingEnabled() 105 return isEnabled(R.bool.feature_content_refresh); in isContentRefreshEnabled() 123 return isEnabled(R.bool.feature_folders_in_search_results); in isFoldersInSearchResultsEnabled() 128 return isEnabled(R.bool.feature_gesture_scale); in isGestureScaleEnabled() 133 return isEnabled(R.bool.feature_inspector); in isInspectorEnabled() 138 return isEnabled(R.bool.feature_job_progress_dialog); in isJobProgressDialogEnabled() 143 return isEnabled(R.bool.feature_launch_to_document); in isLaunchToDocumentEnabled() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/incall/impl/ |
D | ButtonController.java | 38 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/Settings/tests/uitests/src/com/android/settings/ui/ |
D | MoreWirelessSettingsTest2.java | 177 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/apps/TV/common/src/com/android/tv/common/feature/ |
D | FeatureUtils.java | 35 public boolean isEnabled(Context context) { in or() 37 if (f.isEnabled(context)) { in or() 59 public boolean isEnabled(Context context) { 61 if (!f.isEnabled(context)) { 100 public boolean isEnabled(Context context) { 101 return !feature.isEnabled(context); 115 public boolean isEnabled(Context context) { 129 public boolean isEnabled(Context context) { 143 public boolean isEnabled(Context context) {
|
/packages/apps/Dialer/java/com/android/voicemail/impl/settings/ |
D | VisualVoicemailSettingsUtil.java | 46 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/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | AdapterServiceTest.java | 184 Assert.assertFalse(mAdapterService.isEnabled()); in doEnable() 225 Assert.assertTrue(mAdapterService.isEnabled()); in doEnable() 229 Assert.assertTrue(mAdapterService.isEnabled()); in doDisable() 262 Assert.assertFalse(mAdapterService.isEnabled()); in doDisable() 316 Assert.assertFalse(mAdapterService.isEnabled()); in testGattStartTimeout() 338 Assert.assertFalse(mAdapterService.isEnabled()); in testGattStartTimeout() 348 Assert.assertTrue(mAdapterService.isEnabled()); in testGattStopTimeout() 374 Assert.assertFalse(mAdapterService.isEnabled()); in testGattStopTimeout() 383 Assert.assertFalse(mAdapterService.isEnabled()); in testProfileStartTimeout() 428 Assert.assertTrue(mAdapterService.isEnabled()); in testProfileStopTimeout() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/tts/ |
D | TtsPlaybackPreferenceControllerTest.java | 374 assertThat(mDefaultLanguagePreference.isEnabled()).isFalse(); in refreshUi_notInitialized_disablesPreference() 375 assertThat(mSpeechRatePreference.isEnabled()).isFalse(); in refreshUi_notInitialized_disablesPreference() 376 assertThat(mVoicePitchPreference.isEnabled()).isFalse(); in refreshUi_notInitialized_disablesPreference() 377 assertThat(mResetPreference.isEnabled()).isFalse(); in refreshUi_notInitialized_disablesPreference() 389 assertThat(mDefaultLanguagePreference.isEnabled()).isFalse(); in refreshUi_initialized_defaultLocaleIsNull_disablesPreference() 390 assertThat(mSpeechRatePreference.isEnabled()).isFalse(); in refreshUi_initialized_defaultLocaleIsNull_disablesPreference() 391 assertThat(mVoicePitchPreference.isEnabled()).isFalse(); in refreshUi_initialized_defaultLocaleIsNull_disablesPreference() 392 assertThat(mResetPreference.isEnabled()).isFalse(); in refreshUi_initialized_defaultLocaleIsNull_disablesPreference() 412 assertThat(mDefaultLanguagePreference.isEnabled()).isTrue(); in refreshUi_defaultLocaleNotSupported_disablesPreferencesExceptLanguage() 413 assertThat(mSpeechRatePreference.isEnabled()).isFalse(); in refreshUi_defaultLocaleNotSupported_disablesPreferencesExceptLanguage() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothSettingsFragmentTest.java | 112 assertThat(BluetoothAdapter.getDefaultAdapter().isEnabled()).isFalse(); in switchCheckedOn_enablesAdapter() 116 assertThat(BluetoothAdapter.getDefaultAdapter().isEnabled()).isTrue(); in switchCheckedOn_enablesAdapter() 124 assertThat(BluetoothAdapter.getDefaultAdapter().isEnabled()).isTrue(); in switchCheckedOff_disablesAdapter() 128 assertThat(BluetoothAdapter.getDefaultAdapter().isEnabled()).isFalse(); in switchCheckedOff_disablesAdapter() 146 assertThat(findSwitch(mFragment.requireActivity()).isEnabled()).isFalse(); in stateChanged_turningOn_setsSwitchDisabled() 164 assertThat(findSwitch(mFragment.requireActivity()).isEnabled()).isTrue(); in stateChanged_on_setsSwitchEnabled() 175 assertThat(findSwitch(mFragment.requireActivity()).isEnabled()).isFalse(); in stateChanged_on_userRestricted_setsSwitchDisabled() 193 assertThat(findSwitch(mFragment.requireActivity()).isEnabled()).isFalse(); in stateChanged_turningOff_setsSwitchDisabled() 211 assertThat(findSwitch(mFragment.requireActivity()).isEnabled()).isTrue(); in stateChanged_off_setsSwitchEnabled() 222 assertThat(findSwitch(mFragment.requireActivity()).isEnabled()).isFalse(); in stateChanged_off_userRestricted_setsSwitchDisabled()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | PickerPreviewAllTypeUiTest.java | 68 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewInvisible_noQuickViewer_gridMode() 78 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewInvisible_noQuickViewer_listMode() 88 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_gridMode() 98 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_listMode() 108 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_allType_girdMode() 110 assertTrue(bots.directory.findDocument(fileName2).isEnabled()); in testPreviewVisible_allType_girdMode() 120 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_allType_listMode() 122 assertTrue(bots.directory.findDocument(fileName2).isEnabled()); in testPreviewVisible_allType_listMode()
|
D | PickerPreviewTextUiTest.java | 68 assertFalse(bots.directory.findDocument(fileName2).isEnabled()); in testPreviewInvisible_disabled_gridMode() 78 assertFalse(bots.directory.findDocument(fileName2).isEnabled()); in testPreviewInvisible_disabled_listMode() 88 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_gridMode() 98 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_listMode() 108 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_enabled_gridMode() 118 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_enabled_listMode()
|
/packages/apps/Contacts/tests/src/com/android/contacts/widget/ |
D | CompositeListAdapterTest.java | 63 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/ |
D | MasterCheckBoxPreferenceTest.java | 83 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/ |
D | VmsOperationRecorder.java | 113 if (isEnabled()) { in recordOp() 123 if (isEnabled()) { in recordOp() 133 if (isEnabled()) { in recordOp() 149 if (isEnabled()) { in recordOp() 159 if (isEnabled()) { in recordOp() 170 if (isEnabled()) { in recordOp() 207 private boolean isEnabled() { in isEnabled() method in VmsOperationRecorder 208 return mWriter.isEnabled(); in isEnabled() 221 public boolean isEnabled() { in isEnabled() method in VmsOperationRecorder.Writer
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/ |
D | ApplicationDetailsFragmentTest.java | 144 assertThat(findForceStopButton(mActivity).isEnabled()).isTrue(); in onStart_packageNotExplicitlyStopped_enablesForceStopButton() 156 assertThat(findForceStopButton(mActivity).isEnabled()).isFalse(); in onStart_packageHasActiveAdmins_disablesForceStopButton() 168 assertThat(findForceStopButton(mActivity).isEnabled()).isFalse(); in onStart_appsControlUserRestriction_disablesForceStopButton() 211 assertThat(findForceStopButton(mActivity).isEnabled()).isTrue(); in onStart_packageExplicitlyStopped_success_enablesForceStopButton() 235 assertThat(findForceStopButton(mActivity).isEnabled()).isFalse(); in onStart_packageExplicitlyStopped_failure_disablesForceStopButton() 296 assertThat(findDisableButton(mActivity).isEnabled()).isFalse(); in onStart_bundledApp_homePackage_disablesDisableButton() 315 assertThat(findDisableButton(mActivity).isEnabled()).isFalse(); in onStart_bundledApp_systemPackage_disablesDisableButton() 328 assertThat(findDisableButton(mActivity).isEnabled()).isFalse(); in onStart_bundledApp_enabledApp_keepEnabledPackage_disablesDisableButton() 351 assertThat(findUninstallButton(mActivity).isEnabled()).isFalse(); in onStart_packageHasActiveAdmins_disablesUninstallButton() 362 assertThat(findUninstallButton(mActivity).isEnabled()).isFalse(); in onStart_deviceProvisioningPackage_disablesUninstallButton() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/ |
D | AndroidBeamPreferenceControllerTest.java | 98 when(mNfcAdapter.isEnabled()).thenReturn(true); in isAvailable_hasNfc_shouldReturnTrue() 104 when(mNfcAdapter.isEnabled()).thenReturn(true); in isAvailable_noNfcFeature_shouldReturnFalse() 123 assertThat(mAndroidBeamPreference.isEnabled()).isFalse(); in isBeamEnable_disAllowBeam_shouldReturnFalse() 135 assertThat(mAndroidBeamPreference.isEnabled()).isTrue(); in isBeamEnable_nfcStateOn_shouldReturnTrue() 142 assertThat(mAndroidBeamPreference.isEnabled()).isFalse(); in isBeamEnable_nfcStateNotOn_shouldReturnFalse() 146 assertThat(mAndroidBeamPreference.isEnabled()).isFalse(); in isBeamEnable_nfcStateNotOn_shouldReturnFalse() 150 assertThat(mAndroidBeamPreference.isEnabled()).isFalse(); in isBeamEnable_nfcStateNotOn_shouldReturnFalse() 155 when(mNfcAdapter.isEnabled()).thenReturn(true); in updateNonIndexableKeys_available_shouldNotUpdate()
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | ScreenPinningSettings.java | 110 private void setLockToAppEnabled(boolean isEnabled) { in setLockToAppEnabled() argument 112 isEnabled ? 1 : 0); in setLockToAppEnabled() 113 if (isEnabled) { in setLockToAppEnabled() 129 private boolean setScreenLockUsed(boolean isEnabled) { in setScreenLockUsed() argument 130 if (isEnabled) { in setScreenLockUsed() 143 setScreenLockUsedSetting(isEnabled); in setScreenLockUsed() 147 private void setScreenLockUsedSetting(boolean isEnabled) { in setScreenLockUsedSetting() argument 149 isEnabled ? 1 : 0); in setScreenLockUsedSetting()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/ |
D | ScreenPinningSettings.java | 110 private void setLockToAppEnabled(boolean isEnabled) { in setLockToAppEnabled() argument 112 isEnabled ? 1 : 0); in setLockToAppEnabled() 113 if (isEnabled) { in setLockToAppEnabled() 125 private boolean setScreenLockUsed(boolean isEnabled) { in setScreenLockUsed() argument 126 if (isEnabled) { in setScreenLockUsed() 139 setScreenLockUsedSetting(isEnabled); in setScreenLockUsed() 143 private void setScreenLockUsedSetting(boolean isEnabled) { in setScreenLockUsedSetting() argument 145 isEnabled ? 1 : 0); in setScreenLockUsedSetting()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/ |
D | AppManagementFragment.java | 181 if (!mPreferenceForget.isEnabled()) { in onForgetVpnClick() 204 public void onConfirmLockdown(Bundle options, boolean isEnabled, boolean isLockdown) { in onConfirmLockdown() argument 205 setAlwaysOnVpnByUI(isEnabled, isLockdown); in onConfirmLockdown() 208 private boolean setAlwaysOnVpnByUI(boolean isEnabled, boolean isLockdown) { in setAlwaysOnVpnByUI() argument 210 if (!mPreferenceAlwaysOn.isEnabled()) { in setAlwaysOnVpnByUI() 217 final boolean success = setAlwaysOnVpn(isEnabled, isLockdown); in setAlwaysOnVpnByUI() 218 if (isEnabled && (!success || !isVpnAlwaysOn())) { in setAlwaysOnVpnByUI() 226 private boolean setAlwaysOnVpn(boolean isEnabled, boolean isLockdown) { in setAlwaysOnVpn() argument 228 isEnabled ? mPackageName : null, isLockdown, /* lockdownWhitelist */ null); in setAlwaysOnVpn()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | AppManagementFragment.java | 181 if (!mPreferenceForget.isEnabled()) { in onForgetVpnClick() 204 public void onConfirmLockdown(Bundle options, boolean isEnabled, boolean isLockdown) { in onConfirmLockdown() argument 205 setAlwaysOnVpnByUI(isEnabled, isLockdown); in onConfirmLockdown() 208 private boolean setAlwaysOnVpnByUI(boolean isEnabled, boolean isLockdown) { in setAlwaysOnVpnByUI() argument 210 if (!mPreferenceAlwaysOn.isEnabled()) { in setAlwaysOnVpnByUI() 217 final boolean success = setAlwaysOnVpn(isEnabled, isLockdown); in setAlwaysOnVpnByUI() 218 if (isEnabled && (!success || !isVpnAlwaysOn())) { in setAlwaysOnVpnByUI() 226 private boolean setAlwaysOnVpn(boolean isEnabled, boolean isLockdown) { in setAlwaysOnVpn() argument 228 isEnabled ? mPackageName : null, isLockdown, /* lockdownWhitelist */ null); in setAlwaysOnVpn()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | MobileNetworkSummaryControllerTest.java | 90 when(mEuiccManager.isEnabled()).thenReturn(true); in setUp() 141 when(mEuiccManager.isEnabled()).thenReturn(false); in getSummary_noSubscriptionsNoEuiccMgr_correctSummaryAndClickHandler() 257 when(mEuiccManager.isEnabled()).thenReturn(false); in addButton_noSubscriptionsNoEuiccMgr_noAddClickListener() 265 when(mEuiccManager.isEnabled()).thenReturn(false); in addButton_oneSubscriptionNoEuiccMgr_noAddClickListener() 322 assertThat(mPreference.isEnabled()).isFalse(); in onResume_oneSubscriptionAirplaneMode_isDisabled() 333 when(mEuiccManager.isEnabled()).thenReturn(false); in onResume_noSubscriptionEsimDisabled_isDisabled() 338 assertThat(mPreference.isEnabled()).isFalse(); in onResume_noSubscriptionEsimDisabled_isDisabled() 348 assertThat(mPreference.isEnabled()).isTrue(); in onAirplaneModeChanged_oneSubscriptionAirplaneModeGetsTurnedOn_isDisabled() 353 assertThat(mPreference.isEnabled()).isFalse(); in onAirplaneModeChanged_oneSubscriptionAirplaneModeGetsTurnedOn_isDisabled() 364 assertThat(mPreference.isEnabled()).isFalse(); in onAirplaneModeChanged_oneSubscriptionAirplaneModeGetsTurnedOff_isEnabled() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/ |
D | AutoTimeZonePreferenceControllerTest.java | 93 assertThat(mController.isEnabled()).isFalse(); in isFromSUW_notEnable() 103 assertThat(mController.isEnabled()).isFalse(); in isWifiOnly_notEnable() 113 assertThat(mController.isEnabled()).isFalse(); in testIsEnabled_shouldReadFromSettingsProvider() 117 assertThat(mController.isEnabled()).isTrue(); in testIsEnabled_shouldReadFromSettingsProvider() 127 assertThat(mController.isEnabled()).isTrue(); in updatePreferenceChange_prefIsChecked_shouldUpdatePreferenceAndNotifyCallback() 138 assertThat(mController.isEnabled()).isFalse(); in updatePreferenceChange_prefIsUnchecked_shouldUpdatePreferenceAndNotifyCallback()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | ZenRulePreference.java | 75 mChecked = mRule.isEnabled(); in ZenRulePreference() 128 if (mRule.isEnabled() != rule.isEnabled()) { in updatePreference() 129 mRule.setEnabled(rule.isEnabled()); in updatePreference() 130 setChecked(mRule.isEnabled()); in updatePreference() 152 setChecked(mRule.isEnabled()); 181 return (rule == null || !rule.isEnabled()) in computeRuleSummary()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/featureflags/ |
D | FeatureFlagPersistentTest.java | 98 assertThat(FeatureFlagPersistent.isEnabled(mContext, PERSISTENT_TRUE_NAME)).isTrue(); in isEnabled_enabled_shouldReturnTrue() 106 assertThat(FeatureFlagPersistent.isEnabled(mContext, PERSISTENT_FALSE_NAME)).isFalse(); in isEnabled_disabled_shouldReturnFalse() 117 assertThat(FeatureFlagPersistent.isEnabled(mContext, TEST_FEATURE_NAME)).isTrue(); in isEnabled_sysPropEnabled_shouldReturnTrue() 128 assertThat(FeatureFlagPersistent.isEnabled(mContext, TEST_FEATURE_NAME)).isFalse(); in isEnabled_sysPropDisabled_shouldReturnFalse() 141 assertThat(FeatureFlagUtils.isEnabled(mContext, TEST_FEATURE_NAME)).isTrue(); in setEnabled_sysPropTrue_shouldSetValues() 154 assertThat(FeatureFlagUtils.isEnabled(mContext, TEST_FEATURE_NAME)).isFalse(); in setEnabled_sysPropFalse_shouldSetValues()
|