Home
last modified time | relevance | path

Searched refs:FeatureFlagUtils (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/core/tests/featureflagtests/src/android/util/
DFeatureFlagUtilsTest.java58 SystemProperties.set(FeatureFlagUtils.FFLAG_PREFIX + TEST_FEATURE_NAME, ""); in cleanup()
59 SystemProperties.set(FeatureFlagUtils.FFLAG_OVERRIDE_PREFIX + TEST_FEATURE_NAME, ""); in cleanup()
64 FeatureFlagUtils.getAllFeatureFlags().put(TEST_FEATURE_NAME, "true"); in testGetFlag_enabled_shouldReturnTrue()
66 assertTrue(FeatureFlagUtils.isEnabled(mContext, TEST_FEATURE_NAME)); in testGetFlag_enabled_shouldReturnTrue()
71 SystemProperties.set(FeatureFlagUtils.FFLAG_PREFIX + TEST_FEATURE_NAME, "false"); in testGetFlag_adb_override_shouldReturnTrue()
72 SystemProperties.set(FeatureFlagUtils.FFLAG_OVERRIDE_PREFIX + TEST_FEATURE_NAME, "true"); in testGetFlag_adb_override_shouldReturnTrue()
74 assertTrue(FeatureFlagUtils.isEnabled(mContext, TEST_FEATURE_NAME)); in testGetFlag_adb_override_shouldReturnTrue()
79 SystemProperties.set(FeatureFlagUtils.FFLAG_PREFIX + TEST_FEATURE_NAME, "false"); in testGetFlag_settings_override_shouldReturnTrue()
80 SystemProperties.set(FeatureFlagUtils.FFLAG_OVERRIDE_PREFIX + TEST_FEATURE_NAME, "false"); in testGetFlag_settings_override_shouldReturnTrue()
84 assertTrue(FeatureFlagUtils.isEnabled(mContext, TEST_FEATURE_NAME)); in testGetFlag_settings_override_shouldReturnTrue()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputDialogTest.java42 import android.util.FeatureFlagUtils;
211 FeatureFlagUtils.setEnabled(mContext, in getStopButtonVisibility_remoteNonBLEDevice_returnGone()
212 FeatureFlagUtils.SETTINGS_NEED_CONNECTED_BLE_DEVICE_FOR_BROADCAST, true); in getStopButtonVisibility_remoteNonBLEDevice_returnGone()
231 FeatureFlagUtils.setEnabled(mContext, in isBroadcastSupported_flagOnAndConnectBleDevice_returnsTrue()
232 FeatureFlagUtils.SETTINGS_NEED_CONNECTED_BLE_DEVICE_FOR_BROADCAST, true); in isBroadcastSupported_flagOnAndConnectBleDevice_returnsTrue()
244 FeatureFlagUtils.setEnabled(mContext, in isBroadcastSupported_flagOnAndNoBleDevice_returnsFalse()
245 FeatureFlagUtils.SETTINGS_NEED_CONNECTED_BLE_DEVICE_FOR_BROADCAST, true); in isBroadcastSupported_flagOnAndNoBleDevice_returnsFalse()
254 FeatureFlagUtils.setEnabled(mContext, in isBroadcastSupported_notSupportBroadcastAndflagOn_returnsFalse()
255 FeatureFlagUtils.SETTINGS_NEED_CONNECTED_BLE_DEVICE_FOR_BROADCAST, true); in isBroadcastSupported_notSupportBroadcastAndflagOn_returnsFalse()
266 FeatureFlagUtils.setEnabled(mContext, in isBroadcastSupported_flagOffAndConnectToBleDevice_returnsTrue()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/domain/interactor/
DVolumePanelNavigationInteractor.kt20 import android.util.FeatureFlagUtils
37 FeatureFlagUtils.isEnabled( in getVolumePanelRoute()
39 FeatureFlagUtils.SETTINGS_VOLUME_PANEL_IN_SYSTEMUI in getVolumePanelRoute()
/frameworks/base/core/java/android/util/
DOWNERS2 per-file FeatureFlagUtils.java = sbasi@google.com
3 per-file FeatureFlagUtils.java = edgarwang@google.com
DFeatureFlagUtils.java36 public class FeatureFlagUtils { class
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputDialog.java23 import android.util.FeatureFlagUtils;
116 if (FeatureFlagUtils.isEnabled(mContext, in isBroadcastSupported()
117 FeatureFlagUtils.SETTINGS_NEED_CONNECTED_BLE_DEVICE_FOR_BROADCAST)) { in isBroadcastSupported()
/frameworks/base/services/core/java/com/android/server/input/
DKeyRemapper.java25 import android.util.FeatureFlagUtils;
177 return FeatureFlagUtils.isEnabled(mContext, in supportRemapping()
178 FeatureFlagUtils.SETTINGS_NEW_KEYBOARD_MODIFIER_KEY); in supportRemapping()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidDeviceManager.java31 import android.util.FeatureFlagUtils;
271 if (FeatureFlagUtils.isEnabled(mContext, FeatureFlagUtils.SETTINGS_AUDIO_ROUTING)) { in onActiveDeviceChanged()
/frameworks/base/services/core/java/com/android/server/am/
DPhantomProcessList.java21 import static android.util.FeatureFlagUtils.SETTINGS_ENABLE_MONITOR_PHANTOM_PROCS;
32 import android.util.FeatureFlagUtils;
424 if (!mService.mSystemReady || !FeatureFlagUtils.isEnabled(mService.mContext, in trimPhantomProcessesIfNecessary()
DAppProfiler.java22 import static android.util.FeatureFlagUtils.SETTINGS_ENABLE_MONITOR_PHANTOM_PROCS;
84 import android.util.FeatureFlagUtils;
2149 final boolean monitorPhantomProcs = mService.mSystemReady && FeatureFlagUtils.isEnabled( in updateCpuStatsNow()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DUserBackupManagerServiceTest.java51 import android.util.FeatureFlagUtils;
112 .mockStatic(FeatureFlagUtils.class) in setUp()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DFlashNotificationsController.java56 import android.util.FeatureFlagUtils;
341 boolean isFeatureOn = FeatureFlagUtils.isEnabled(mContext, in requestStartFlashNotification()
342 FeatureFlagUtils.SETTINGS_FLASH_NOTIFICATIONS); in requestStartFlashNotification()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHearingAidDeviceManagerTest.java54 import android.util.FeatureFlagUtils;
130 FeatureFlagUtils.setEnabled(mContext, FeatureFlagUtils.SETTINGS_AUDIO_ROUTING, true); in setUp()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManager.java47 import android.util.FeatureFlagUtils;
135 if (FeatureFlagUtils.isEnabled(context, in getInstance()
136 FeatureFlagUtils.SETTINGS_ENABLE_LOCKSCREEN_TRANSFER_API)) { in getInstance()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java53 import android.util.FeatureFlagUtils;
703 if (!FeatureFlagUtils.isEnabled(getBaseContext(), in getSettingsToPreserveInRestore()
704 FeatureFlagUtils.SETTINGS_DO_NOT_RESTORE_PRESERVED)) { in getSettingsToPreserveInRestore()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java99 import android.util.FeatureFlagUtils;
4405 return FeatureFlagUtils.isEnabled(mContext, in shouldUseNewBackupEligibilityRules()
4406 FeatureFlagUtils.SETTINGS_USE_NEW_BACKUP_ELIGIBILITY_RULES); in shouldUseNewBackupEligibilityRules()
/frameworks/base/core/api/
Dtest-current.txt3499 public class FeatureFlagUtils {
3500 ctor public FeatureFlagUtils();
/frameworks/base/boot/
Dboot-image-profile.txt15417 HSPLandroid/util/FeatureFlagUtils;->getAllFeatureFlags()Ljava/util/Map;
15418 HSPLandroid/util/FeatureFlagUtils;->getSystemPropertyPrefix(Ljava/lang/String;)Ljava/lang/String;
15419 HSPLandroid/util/FeatureFlagUtils;->isEnabled(Landroid/content/Context;Ljava/lang/String;)Z
30805 Landroid/util/FeatureFlagUtils;
Dpreloaded-classes8395 android.util.FeatureFlagUtils
/frameworks/base/config/
Dpreloaded-classes8426 android.util.FeatureFlagUtils
Dboot-image-profile.txt15481 HSPLandroid/util/FeatureFlagUtils;->getAllFeatureFlags()Ljava/util/Map;
15482 HSPLandroid/util/FeatureFlagUtils;->getSystemPropertyPrefix(Ljava/lang/String;)Ljava/lang/String;
15483 HSPLandroid/util/FeatureFlagUtils;->isEnabled(Landroid/content/Context;Ljava/lang/String;)Z
40966 Landroid/util/FeatureFlagUtils;
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt57065 Landroid/util/FeatureFlagUtils;-><init>()V
57066 Landroid/util/FeatureFlagUtils;->DEFAULT_FLAGS:Ljava/util/Map;
57067 Landroid/util/FeatureFlagUtils;->FFLAG_OVERRIDE_PREFIX:Ljava/lang/String;
57068 Landroid/util/FeatureFlagUtils;->FFLAG_PREFIX:Ljava/lang/String;
57069 Landroid/util/FeatureFlagUtils;->getAllFeatureFlags()Ljava/util/Map;
57070 Landroid/util/FeatureFlagUtils;->isEnabled(Landroid/content/Context;Ljava/lang/String;)Z
57071 Landroid/util/FeatureFlagUtils;->setEnabled(Landroid/content/Context;Ljava/lang/String;Z)V