/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/featureflags/ |
D | FeatureFlagPreference.java | 35 boolean isFeatureEnabled; in FeatureFlagPreference() 37 isFeatureEnabled = FeatureFlagPersistent.isEnabled(context, key); in FeatureFlagPreference() 39 isFeatureEnabled = FeatureFlagUtils.isEnabled(context, key); in FeatureFlagPreference() 41 setCheckedInternal(isFeatureEnabled); in FeatureFlagPreference()
|
/packages/apps/Settings/src/com/android/settings/development/featureflags/ |
D | FeatureFlagPreference.java | 35 boolean isFeatureEnabled; in FeatureFlagPreference() 37 isFeatureEnabled = FeatureFlagPersistent.isEnabled(context, key); in FeatureFlagPreference() 39 isFeatureEnabled = FeatureFlagUtils.isEnabled(context, key); in FeatureFlagPreference() 41 setCheckedInternal(isFeatureEnabled); in FeatureFlagPreference()
|
/packages/modules/NetworkStack/src/android/net/util/ |
D | NetworkStackUtils.java | 370 public static boolean isFeatureEnabled(@NonNull Context context, @NonNull String namespace, in isFeatureEnabled() method in NetworkStackUtils 372 return isFeatureEnabled(context, namespace, name, false /* defaultEnabled */); in isFeatureEnabled() 390 public static boolean isFeatureEnabled(@NonNull Context context, @NonNull String namespace, in isFeatureEnabled() method in NetworkStackUtils
|
/packages/modules/NetworkStack/tests/unit/src/android/net/util/ |
D | NetworkStackUtilsTest.java | 176 assertTrue(NetworkStackUtils.isFeatureEnabled(mContext, TEST_NAME_SPACE, in testFeatureIsEnabledWithExceptionsEnabled() 184 assertFalse(NetworkStackUtils.isFeatureEnabled(mContext, TEST_NAME_SPACE, in testFeatureIsNotEnabled() 193 assertFalse(NetworkStackUtils.isFeatureEnabled(mContext, TEST_NAME_SPACE, in testFeatureIsEnabledWithException()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpServer.java | 197 boolean isFeatureEnabled(@NonNull Context context, @NonNull String name); in isFeatureEnabled() method 233 public boolean isFeatureEnabled(@NonNull Context context, @NonNull String name) { in isFeatureEnabled() method in DhcpServer.DependenciesImpl 234 return NetworkStackUtils.isFeatureEnabled(context, NAMESPACE_CONNECTIVITY, name); in isFeatureEnabled() 264 mDhcpRapidCommitEnabled = deps.isFeatureEnabled(context, DHCP_RAPID_COMMIT_VERSION); in DhcpServer()
|
D | DhcpClient.java | 426 public boolean isFeatureEnabled(final Context context, final String name, in isFeatureEnabled() method in DhcpClient.Dependencies 428 return NetworkStackUtils.isFeatureEnabled(context, NAMESPACE_CONNECTIVITY, name, in isFeatureEnabled() 528 return mDependencies.isFeatureEnabled(mContext, DHCP_INIT_REBOOT_VERSION, defaultEnabled); in isDhcpLeaseCacheEnabled() 535 return mDependencies.isFeatureEnabled(mContext, DHCP_RAPID_COMMIT_VERSION, in isDhcpRapidCommitEnabled() 543 return mDependencies.isFeatureEnabled(mContext, DHCP_IP_CONFLICT_DETECT_VERSION, in isDhcpIpConflictDetectEnabled()
|
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/ |
D | CaptivePortalLoginActivity.java | 248 if (!isFeatureEnabled(DISMISS_PORTAL_IN_VALIDATED_NETWORK, isDismissPortalEnabled())) { in handleCapabilitiesChanged() 452 if (isFeatureEnabled(DISMISS_PORTAL_IN_VALIDATED_NETWORK, isDismissPortalEnabled())) { in reevaluateNetwork() 963 private boolean isFeatureEnabled(@NonNull final String name, final boolean defaultEnabled) { in isFeatureEnabled() method in CaptivePortalLoginActivity
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ |
D | NetworkMonitor.java | 592 mMetricsEnabled = deps.isFeatureEnabled(context, NAMESPACE_CONNECTIVITY, in NetworkMonitor() 1202 return aboveQ && mDependencies.isFeatureEnabled(mContext, NAMESPACE_CONNECTIVITY, in useRedirectUrlForPortal() 1794 return mDependencies.isFeatureEnabled(mContext, DNS_PROBE_PRIVATE_IP_NO_INTERNET_VERSION) in getIsPrivateIpNoInternetEnabled() 3182 public boolean isFeatureEnabled(@NonNull Context context, @NonNull String name) { in isFeatureEnabled() method in NetworkMonitor.Dependencies 3183 return NetworkStackUtils.isFeatureEnabled(context, NAMESPACE_CONNECTIVITY, name); in isFeatureEnabled() 3207 public boolean isFeatureEnabled(@NonNull Context context, @NonNull String namespace, in isFeatureEnabled() method in NetworkMonitor.Dependencies 3209 return NetworkStackUtils.isFeatureEnabled(context, namespace, name, defaultEnabled); in isFeatureEnabled()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpServerTest.java | 200 when(mDeps.isFeatureEnabled(eq(mContext), eq(DHCP_RAPID_COMMIT_VERSION))).thenReturn(true); in setUp() 256 when(mDeps.isFeatureEnabled(eq(mContext), eq(DHCP_RAPID_COMMIT_VERSION))).thenReturn(true); in testDiscover_RapidCommit()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastSettings.java | 615 public static boolean isFeatureEnabled(Context context, String feature, boolean defaultValue) { in isFeatureEnabled() method in CellBroadcastSettings
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 1076 when(mDependencies.isFeatureEnabled(any(), eq(DNS_PROBE_PRIVATE_IP_NO_INTERNET_VERSION))) in testIsCaptivePortal_PrivateIpNotPortal_Enabled_IPv4() 1084 when(mDependencies.isFeatureEnabled(any(), eq(DNS_PROBE_PRIVATE_IP_NO_INTERNET_VERSION))) in testIsCaptivePortal_PrivateIpNotPortal_Enabled_IPv6() 2573 when(mDependencies.isFeatureEnabled(any(), any(),
|
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/ |
D | IpClientIntegrationTest.java | 326 public boolean isFeatureEnabled(final Context context, final String name, in getDhcpClientDependencies()
|