Skip to content
Snippets Groups Projects
  1. Aug 16, 2023
    • Motomu Utsumi's avatar
      Use isTetheringFeatureNotChickenedOut for kill switch · 0a50c65f
      Motomu Utsumi authored
      Following CLs remove the default value from isFeatureEnabled since the
      default value was difficult to use correctly.
      For example, there was a code that use isAtLeastT() as default value and
      expect feature is always enabled on T+ devices.
      However, default value is used only when the device does not have the
      flag value or flag value is 0.
      So the expectation that the feature is always enabled on T+ devices is
      not correct if flag is pushed to the device by mistake or the device is
      upgraded from S to T but the flag value is not cleared.
      If the feature should be always enabled on T+ devices, `isAtleastT() ||
      isFeatureEnabled()` should be used instead of `isFeatureEnabled(
      isAtleastT() /* defaultValue*/ )`
      
      After the default value argument is removed from isFeatureEnabled,
      isFeatureEnabled is used for default false flag and
      isTetheringFeatureNotChickenedOut is used for default true kill switch flag.
      
      automatic_on_off_keepalive_version flag is not configured and devices
      don't have this flag value.
      So updating to use isTetheringFeatureNotChickenedOut should not have any
      behavior change.
      
      Test: m
      Bug: 279108992
      Change-Id: I43ceab6cc5234bd5a43af3acbd7bd7344844c5a6
      0a50c65f
    • Motomu Utsumi's avatar
      Use Java code path for bpf map operations in BpfNetMaps · 7628ea30
      Motomu Utsumi authored
      Experiment to verify bpf map operations refactoring showed no
      change of map size metrics and no system health regressions.
      So this CL update BpfNetMaps to always use new code path with kill
      switch.
      
      Test: m
      Bug: 217624062
      Change-Id: Ic17470ac5c075884871ea2df2c13c054f5ac2929
      7628ea30
    • Motomu Utsumi's avatar
      Rename to isTetheringFeatureNotChickenedOut · dafb9f25
      Motomu Utsumi authored
      Original name was isTetheringFeatureForceDisabled but it's expected that
      the caller of this method will use as `enabled =
      !isTetheringFeatureForceDisabled` which is error prune.
      So aosp/2711138 renames to isTetheringFeatureNotChickenedOut and updates to
      return true if the feature is not disabled.
      
      Bug: 279108992
      Test: m
      Change-Id: Ia992113e9fb1aee09fcfe48e2b39ca03876063ee
      dafb9f25
  2. Aug 15, 2023
  3. Aug 14, 2023
  4. Aug 12, 2023
  5. Aug 11, 2023
  6. Aug 10, 2023
  7. Aug 09, 2023
  8. Aug 08, 2023
  9. Aug 07, 2023
  10. Aug 06, 2023
  11. Aug 05, 2023
Loading