ndk::ScopedAStatus Power::isModeSupported(Mode type, bool *_aidl_return) {
bool supported = mHintManager->IsHintSupported(toString(type));
- // LOW_POWER handled insides PowerHAL specifically
- if (type == Mode::LOW_POWER) {
- supported = true;
+ switch (type) {
+ case Mode::LOW_POWER: // LOW_POWER handled insides PowerHAL specifically
+ supported = true;
+ break;
+ case Mode::DOUBLE_TAP_TO_WAKE:
+ supported = true;
+ break;
+ case Mode::INTERACTIVE:
+ supported = true;
+ break;
+ default:
+ break;
}
+
LOG(INFO) << "Power mode " << toString(type) << " isModeSupported: " << supported;
*_aidl_return = supported;
return ndk::ScopedAStatus::ok();
"Name": "TouchscreenEnable",
"Path": "/sys/class/input/input3/enabled",
"Values": [
- "0",
- "1"
+ "1",
+ "0"
],
"ResetOnInit": true
},
"Value": "585000000"
},
{
- "PowerHint": "NOT_INTERACTIVE",
+ "PowerHint": "INTERACTIVE",
"Node": "TouchscreenEnable",
"Duration": 0,
- "Value": "0"
+ "Value": "1"
},
{
"PowerHint": "DOUBLE_TAP_TO_WAKE",