Home
last modified time | relevance | path

Searched refs:ENABLED (Results 1 – 25 of 89) sorted by relevance

1234

/frameworks/base/core/java/com/android/internal/widget/
DMessagingPool.java29 private static final boolean ENABLED = false; // disabled to test b/208508846 field in MessagingPool
36 if (ENABLED) { in MessagingPool()
43 if (!ENABLED) { in acquire()
60 if (!ENABLED) { in release()
68 if (ENABLED) { in clear()
/frameworks/base/services/core/java/com/android/server/sensorprivacy/
DSensorState.java20 import static android.hardware.SensorPrivacyManager.StateTypes.ENABLED;
64 return enabled ? ENABLED : DISABLED; in enabledToState()
76 return getState() == ENABLED; in isEnabled()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/accessibility/data/repository/
DOneHandedModeRepositoryImplTest.kt69 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_initiallyGetsSettingsValue()
82 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_settingUpdated_valueUpdated()
105 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_settingForUserOneOnly_valueUpdatedForUserOneOnly()
119 assertThat(actualValue).isEqualTo(ENABLED) in setEnabled()
136 private const val ENABLED = 1 constant
DColorInversionRepositoryImplTest.kt76 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_initiallyGetsSettingsValue()
89 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_settingUpdated_valueUpdated()
110 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_settingForUserOneOnly_valueUpdatedForUserOneOnly()
124 assertThat(actualValue).isEqualTo(ENABLED) in setEnabled()
141 private const val ENABLED = 1 constant
DColorCorrectionRepositoryImplTest.kt76 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_initiallyGetsSettingsValue()
90 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_settingUpdated_valueUpdated()
113 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_settingForUserOneOnly_valueUpdatedForUserOneOnly()
128 Truth.assertThat(actualValue).isEqualTo(ENABLED) in setEnabled()
145 private const val ENABLED = 1 constant
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/
DBluetoothTileDialogDelegateTest.kt66 const val ENABLED = true constant
84 isBluetoothEnabled = ENABLED,
85 isAutoOnToggleFeatureAvailable = ENABLED
266 BluetoothTileDialogViewModel.UiProperties.build(ENABLED, ENABLED), in testShowDialog_cachedHeightLargerThanMinHeight_displayFromCachedHeight()
289 BluetoothTileDialogViewModel.UiProperties.build(ENABLED, ENABLED), in testShowDialog_cachedHeightLessThanMinHeight_displayFromUiProperties()
312 BluetoothTileDialogViewModel.UiProperties.build(ENABLED, ENABLED), in testShowDialog_bluetoothEnabled_autoOnToggleGone()
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/
DPluginEnablerImpl.java49 setDisabled(component, ENABLED); in setEnabled()
54 boolean enabled = reason == ENABLED; in setDisabled()
74 return ENABLED; in getDisableReason()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginEnabler.java25 int ENABLED = 0; field
31 @IntDef({ENABLED, DISABLED_MANUALLY, DISABLED_INVALID_VERSION, DISABLED_FROM_EXPLICIT_CRASH,
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/data/repository/
DColorCorrectionRepository.kt65 ENABLED in isEnabled()
76 if (isEnabled) ENABLED else DISABLED, in isEnabled()
84 private const val ENABLED = 1 in isEnabled() constant
DColorInversionRepository.kt65 ENABLED in isEnabled()
76 if (isEnabled) ENABLED else DISABLED, in isEnabled()
84 private const val ENABLED = 1 in isEnabled() constant
DOneHandedModeRepository.kt65 ENABLED in isEnabled()
76 if (isEnabled) ENABLED else DISABLED, in isEnabled()
84 private const val ENABLED = 1 in isEnabled() constant
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItem.java67 private int mFlags = ENABLED;
72 private static final int ENABLED = 0x00000010; field in ActionMenuItem
150 return (mFlags & ENABLED) != 0; in isEnabled()
184 mFlags = (mFlags & ~ENABLED) | (enabled ? ENABLED : 0); in setEnabled()
DMenuItemImpl.java89 private int mFlags = ENABLED;
94 private static final int ENABLED = 0x00000010; field in MenuItemImpl
178 return (mFlags & ENABLED) != 0; in isEnabled()
183 mFlags |= ENABLED; in setEnabled()
185 mFlags &= ~ENABLED; in setEnabled()
/frameworks/base/core/java/com/android/internal/util/
DEmergencyAffordanceManager.java29 public static final boolean ENABLED = true; field in EmergencyAffordanceManager
81 if (!ENABLED) { in needsEmergencyAffordance()
/frameworks/base/packages/SystemUI/src/com/android/systemui/camera/data/repository/
DCameraAutoRotateRepository.kt63 secureSettings.getIntForUser(SETTING_NAME, DISABLED, userId) == ENABLED in isCameraAutoRotateSettingEnabled()
68 const val ENABLED = 1 in isCameraAutoRotateSettingEnabled() constant
/frameworks/base/services/coverage/java/com/android/server/coverage/
DCoverageService.java41 public static final boolean ENABLED; field in CoverageService
51 ENABLED = shouldEnable;
/frameworks/base/services/core/java/com/android/server/utils/
DSnapshotCache.java39 private static final boolean ENABLED = true; field in SnapshotCache
137 if (s == null || !ENABLED) { in snapshot()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuInfoRepository.java90 MigrationPrompt.ENABLED,
95 int ENABLED = 1; field
177 == MigrationPrompt.ENABLED); in loadMigrationTooltipVisibility()
220 visible ? MigrationPrompt.ENABLED : MigrationPrompt.DISABLED, in updateMigrationTooltipVisibility()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/viewmodel/
DQSTileState.kt99 ENABLED,
125 var enabledState: EnabledState = EnabledState.ENABLED
/frameworks/native/libs/gui/android/gui/
DTrustedOverlay.aidl44 ENABLED enumConstant
/frameworks/base/core/java/android/app/
DAutomaticZenRule.java46 private static final int ENABLED = 1; field in AutomaticZenRule
242 enabled = source.readInt() == ENABLED; in AutomaticZenRule()
243 if (source.readInt() == ENABLED) { in AutomaticZenRule()
254 mModified = source.readInt() == ENABLED; in AutomaticZenRule()
531 dest.writeInt(enabled ? ENABLED : DISABLED); in writeToParcel()
544 dest.writeInt(mModified ? ENABLED : DISABLED); in writeToParcel()
/frameworks/base/telephony/java/android/telephony/ims/
DImsSsInfo.java47 ENABLED
57 public static final int ENABLED = 1; field in ImsSsInfo
/frameworks/base/core/java/android/hardware/
DSensorPrivacyManager.java215 public static final int ENABLED = SensorPrivacyIndividualEnabledSensorProto.ENABLED; field in SensorPrivacyManager.StateTypes
235 ENABLED,
289 if (state == StateTypes.ENABLED) { in SensorPrivacyChangedParams()
364 int state = enabled ? StateTypes.ENABLED : StateTypes.DISABLED;
/frameworks/native/libs/sensorprivacy/include/sensorprivacy/
DSensorPrivacyManager.h46 ENABLED = 1, enumerator
/frameworks/base/core/java/com/android/internal/app/
DAppLocaleCollector.java53 private static final boolean ENABLED = true; field in AppLocaleCollector
177 if (SystemProperties.getBoolean(PROP_APP_LANGUAGE_SUGGESTION, ENABLED)) { in getIgnoredLocaleList()
253 ENABLED)) { in getSupportedLocaleList()

1234