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

Commit 678405cd authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Migrate pointer choreographer to use a new aconfig flag

Bug: 293587049
Test: Build
Change-Id: I8ebd2f84137c66952f4648302972fc1458ce1c96
parent 32295332
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -13,3 +13,10 @@ flag {
  description: "Set to true to enable crashing whenever bad inbound events are going into InputDispatcher"
  description: "Set to true to enable crashing whenever bad inbound events are going into InputDispatcher"
  bug: "271455682"
  bug: "271455682"
}
}

flag {
  name: "enable_pointer_choreographer"
  namespace: "input"
  description: "Set to true to enable PointerChoreographer: the new pipeline for showing pointer icons"
  bug: "293587049"
}
+4 −2
Original line number Original line Diff line number Diff line
@@ -27,10 +27,13 @@
#include <android/binder_interface_utils.h>
#include <android/binder_interface_utils.h>
#include <android/sysprop/InputProperties.sysprop.h>
#include <android/sysprop/InputProperties.sysprop.h>
#include <binder/IPCThreadState.h>
#include <binder/IPCThreadState.h>
#include <com_android_input_flags.h>
#include <inputflinger_bootstrap.rs.h>
#include <inputflinger_bootstrap.rs.h>
#include <log/log.h>
#include <log/log.h>
#include <private/android_filesystem_config.h>
#include <private/android_filesystem_config.h>


namespace input_flags = com::android::input::flags;

namespace android {
namespace android {


namespace {
namespace {
@@ -38,8 +41,7 @@ namespace {
const bool ENABLE_INPUT_DEVICE_USAGE_METRICS =
const bool ENABLE_INPUT_DEVICE_USAGE_METRICS =
        sysprop::InputProperties::enable_input_device_usage_metrics().value_or(true);
        sysprop::InputProperties::enable_input_device_usage_metrics().value_or(true);


const bool ENABLE_POINTER_CHOREOGRAPHER =
const bool ENABLE_POINTER_CHOREOGRAPHER = input_flags::enable_pointer_choreographer();
        sysprop::InputProperties::enable_pointer_choreographer().value_or(false);


int32_t exceptionCodeFromStatusT(status_t status) {
int32_t exceptionCodeFromStatusT(status_t status) {
    switch (status) {
    switch (status) {