blob: 42d68d29bc719bbcf5fa00b35fdc5d664f71f011 [file] [log] [blame]
package com.android.clockwork.power;
import android.view.InputDevice;
import com.android.internal.annotations.VisibleForTesting;
/**
*Class used to wrap calls to @hide methods on an input device in order to mock for testing.
*/
class EnablableInputDevice {
private InputDevice mDevice;
EnablableInputDevice(InputDevice device) {
mDevice = device;
}
InputDevice getDevice() {
return mDevice;
}
int getId() {
return mDevice.getId();
}
@VisibleForTesting
void enable() {
mDevice.enable();
}
@VisibleForTesting
void disable() {
mDevice.disable();
}
@VisibleForTesting
boolean isEnabled() {
return mDevice.isEnabled();
}
}