Home
last modified time | relevance | path

Searched refs:isFeatureEnabled (Results 1 – 12 of 12) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/featureflags/
DFeatureFlagPreference.java35 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/
DFeatureFlagPreference.java35 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/
DNetworkStackUtils.java370 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/
DNetworkStackUtilsTest.java176 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/
DDhcpServer.java197 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()
DDhcpClient.java426 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/
DCaptivePortalLoginActivity.java248 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/
DNetworkMonitor.java592 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/
DDhcpServerTest.java200 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/
DCellBroadcastSettings.java615 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/
DNetworkMonitorTest.java1076 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/
DIpClientIntegrationTest.java326 public boolean isFeatureEnabled(final Context context, final String name, in getDhcpClientDependencies()