Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 228acb7e authored by Lais Andrade's avatar Lais Andrade Committed by Shunkai Yao
Browse files

Create cc library for vibrator flags

Bug: 356144312
Flag: android.os.vibrator.fix_audio_coupled_haptics_scaling
Test: libvibrator_test
Change-Id: I8a452fc26391d58bc006c2f887fcc91b3c1f82c3
Merged-In: I8a452fc26391d58bc006c2f887fcc91b3c1f82c3
parent 73074945
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -400,6 +400,13 @@ java_aconfig_library {
    defaults: ["framework-minus-apex-aconfig-java-defaults"],
}

cc_aconfig_library {
    name: "android.os.vibrator.flags-aconfig-cc",
    aconfig_declarations: "android.os.vibrator.flags-aconfig",
    host_supported: true,
    vendor_available: true,
}

// View
aconfig_declarations {
    name: "android.view.flags-aconfig",
+10 −0
Original line number Diff line number Diff line
@@ -38,3 +38,13 @@ flag {
    description: "Enables the adaptive haptics feature"
    bug: "305961689"
}

flag {
    namespace: "haptics"
    name: "fix_audio_coupled_haptics_scaling"
    description: "Fix the audio-coupled haptics scaling to use same function as VibrationEffect"
    bug: "356144312"
    metadata {
      purpose: PURPOSE_BUGFIX
    }
}