Interface of android.hardware.input, in InputManager · InputManager.java · Android's reference
public interface InputDeviceListener
public abstract void onInputDeviceAdded(int deviceId) sourcepublic abstract void onInputDeviceRemoved(int deviceId) sourcepublic abstract void onInputDeviceChanged(int deviceId) sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.