Home
last modified time | relevance | path

Searched refs:FeatureFlags (Results 1 – 25 of 267) sorted by relevance

1234567891011

/frameworks/base/core/tests/coretests/src/android/flags/
DFeatureFlagsTest.java36 FeatureFlags mFeatureFlags = new FeatureFlags(mIFeatureFlagsFake);
40 FeatureFlags.setInstance(mFeatureFlags); in setup()
45 FusedOffFlag flag = FeatureFlags.fusedOffFlag("test", "a"); in testFusedOff_Disabled()
51 FusedOnFlag flag = FeatureFlags.fusedOnFlag("test", "a"); in testFusedOn_Enabled()
57 BooleanFlag flag = FeatureFlags.booleanFlag("test", "a", false); in testBooleanFlag_DefaultDisabled()
63 BooleanFlag flag = FeatureFlags.booleanFlag("test", "a", true); in testBooleanFlag_DefaultEnabled()
69 DynamicBooleanFlag flag = FeatureFlags.dynamicBooleanFlag("test", "a", false); in testDynamicBooleanFlag_DefaultDisabled()
75 DynamicBooleanFlag flag = FeatureFlags.dynamicBooleanFlag("test", "a", true); in testDynamicBooleanFlag_DefaultEnabled()
81 BooleanFlag flag = FeatureFlags.booleanFlag("test", "a", false); in testBooleanFlag_OverrideBeforeRead()
92 FusedOffFlag flag = FeatureFlags.fusedOffFlag("test", "a"); in testFusedOffFlag_OverrideHasNoEffect()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/
DRefactorFlag.kt37 private val injectedFlags: FeatureFlags?,
39 private val readFlagValue: (FeatureFlags) -> Boolean
42 flags: FeatureFlags,
46 constructor(flags: FeatureFlags, flag: ReleasedFlag) : this(flags, flag, { it.isEnabled(flag) }) in <lambda>()
51 val featureFlags = injectedFlags ?: Dependency.get(FeatureFlags::class.java) in <lambda>()
91 fun forView(flag: UnreleasedFlag, flags: FeatureFlags? = null) = in assertInLegacyMode()
97 fun forView(flag: ReleasedFlag, flags: FeatureFlags? = null) = in assertInLegacyMode()
DFeatureFlags.kt26 interface FeatureFlagsClassic : FeatureFlags
41 interface FeatureFlags : FlagListenable, Dumpable { interface
/frameworks/base/core/java/com/android/internal/flags/
DCoreFlags.java21 import android.flags.FeatureFlags;
62 BooleanFlag f = FeatureFlags.booleanFlag(namespace, name, defaultValue); in booleanFlag()
70 FusedOffFlag f = FeatureFlags.fusedOffFlag(namespace, name); in fusedOffFlag()
78 FusedOnFlag f = FeatureFlags.fusedOnFlag(namespace, name); in fusedOnFlag()
87 DynamicBooleanFlag f = FeatureFlags.dynamicBooleanFlag(namespace, name, defaultValue); in dynamicBooleanFlag()
/frameworks/base/core/java/android/flags/
DFeatureFlags.java45 public class FeatureFlags { class
47 private static FeatureFlags sInstance;
62 public static FeatureFlags getInstance() { in getInstance()
65 sInstance = new FeatureFlags(); in getInstance()
74 public static void setInstance(FeatureFlags instance) { in setInstance()
93 FeatureFlags.this.onFlagChange((DynamicFlag<?>) f);
101 private FeatureFlags() { in FeatureFlags() method in FeatureFlags
106 public FeatureFlags(IFeatureFlags iFeatureFlags) { in FeatureFlags() method in FeatureFlags
246 synchronized (FeatureFlags.class) { in addFlag()
260 synchronized (FeatureFlags.class) { in sync()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DTelephonyComponentFactory.java43 import com.android.internal.telephony.flags.FeatureFlags;
288 @NonNull FeatureFlags featureFlags) {
301 @NonNull FeatureFlags featureFlags) {
309 @NonNull FeatureFlags featureFlags) {
346 @NonNull FeatureFlags featureFlags) {
355 @NonNull FeatureFlags flags) {
417 @NonNull FeatureFlags featureFlags) {
445 @NonNull FeatureFlags featureFlags) {
470 @NonNull FeatureFlags featureFlags) {
481 Looper looper, @NonNull FeatureFlags featureFlags) {
[all …]
/frameworks/base/services/flags/java/com/android/server/flags/
DFeatureFlagsService.java23 import android.flags.FeatureFlags;
65 publishLocalService(FeatureFlags.class, new FeatureFlags(service)); in onStart()
75 FeatureFlags.getInstance().sync(); in onBootPhase()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcutsReceiver.java24 import com.android.systemui.flags.FeatureFlags;
33 private final FeatureFlags mFeatureFlags;
36 public KeyboardShortcutsReceiver(FeatureFlags featureFlags) { in KeyboardShortcutsReceiver()
/frameworks/base/services/core/java/com/android/server/vcn/
DVcnContext.java22 import android.net.vcn.FeatureFlags;
37 @NonNull private final FeatureFlags mFeatureFlags;
91 public FeatureFlags getFeatureFlags() { in getFeatureFlags()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DVonrHelper.java28 import com.android.internal.telephony.flags.FeatureFlags;
39 private final @NonNull FeatureFlags mFlags;
44 public VonrHelper(@NonNull FeatureFlags featureFlags) { in VonrHelper()
/frameworks/base/packages/SystemUI/src/com/android/systemui/smartspace/config/
DBcSmartspaceConfigProvider.kt19 import com.android.systemui.flags.FeatureFlags
22 class BcSmartspaceConfigProvider(private val featureFlags: FeatureFlags) :
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotifPipelineFlags.kt19 import com.android.systemui.flags.FeatureFlags
26 private val featureFlags: FeatureFlags
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/
DMediaTttFlags.kt20 import com.android.systemui.flags.FeatureFlags
26 class MediaTttFlags @Inject constructor(private val featureFlags: FeatureFlags) {
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneFactoryTest.java32 import com.android.internal.telephony.flags.FeatureFlags;
47 private FeatureFlags mFeatureFlags;
68 mFeatureFlags = mock(FeatureFlags.class); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneFactory.java23 import com.android.internal.telephony.flags.FeatureFlags;
39 PhoneNotifier phoneNotifier, Phone defaultPhone, FeatureFlags featureFlags) { in makePhone()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DTestableControlsActivity.kt22 import com.android.systemui.flags.FeatureFlags
31 featureFlags: FeatureFlags,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSplitShadeStateControllerImpl.kt20 import com.android.systemui.flags.FeatureFlags
30 class SplitShadeStateControllerImpl @Inject constructor(private val featureFlags: FeatureFlags) :
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/
DStatusBarPipelineFlags.kt21 import com.android.systemui.flags.FeatureFlags
32 private val featureFlags: FeatureFlags,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotifRemoteViewsFactoryContainer.kt20 import com.android.systemui.flags.FeatureFlags
33 featureFlags: FeatureFlags,
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dream/
DMediaDreamSentinel.java29 import com.android.systemui.flags.FeatureFlags;
112 private final FeatureFlags mFeatureFlags;
118 FeatureFlags featureFlags) { in MediaDreamSentinel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/controller/
DWalletContextualLocationsService.kt11 import com.android.systemui.flags.FeatureFlags in <lambda>()
29 private val featureFlags: FeatureFlags, in <lambda>()
38 featureFlags: FeatureFlags, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/dagger/
DQSFlagsModule.java23 import com.android.systemui.flags.FeatureFlags;
51 static boolean isPMLiteEnabled(FeatureFlags featureFlags, GlobalSettings globalSettings) { in isPMLiteEnabled()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/smartspace/
DBcSmartspaceConfigProviderTest.kt22 import com.android.systemui.flags.FeatureFlags
35 @Mock private lateinit var featureFlags: FeatureFlags
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
DPhysicalKeyboardCoreStartable.kt24 import com.android.systemui.flags.FeatureFlags
40 private val featureFlags: FeatureFlags,
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
DBatteryMeterViewController.java35 import com.android.systemui.flags.FeatureFlags;
56 private final FeatureFlags mFeatureFlags;
143 FeatureFlags featureFlags, in BatteryMeterViewController()
253 private final FeatureFlags mFeatureFlags;
263 FeatureFlags featureFlags, in Factory()

1234567891011