Searched refs:DeviceCallback (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/cmds/hid/jni/
H A Dcom_android_commands_hid_Device.h26 class DeviceCallback { class in namespace:android::uhid
28 DeviceCallback(JNIEnv* env, jobject callback);
29 ~DeviceCallback();
42 std::unique_ptr<DeviceCallback> callback, sp<Looper> looper);
44 Device(int32_t id, int fd, std::unique_ptr<DeviceCallback> callback, sp<Looper> looper);
55 std::unique_ptr<DeviceCallback> mDeviceCallback;
H A Dcom_android_commands_hid_Device.cpp65 DeviceCallback::DeviceCallback(JNIEnv* env, jobject callback) : function in class:android::uhid::DeviceCallback
68 DeviceCallback::~DeviceCallback() {
73 void DeviceCallback::onDeviceError() {
79 void DeviceCallback::onDeviceOpen() {
87 std::unique_ptr<DeviceCallback> callback, sp<Looper> looper) {
126 Device::Device(int32_t id, int fd, std::unique_ptr<DeviceCallback> callback, sp<Looper> looper) :
196 std::unique_ptr<uhid::DeviceCallback> cb(new uhid::DeviceCallback(en
[all...]
/frameworks/base/media/java/android/media/midi/
H A DMidiManager.java64 private ConcurrentHashMap<DeviceCallback,DeviceListener> mDeviceListeners =
65 new ConcurrentHashMap<DeviceCallback,DeviceListener>();
69 private final DeviceCallback mCallback;
72 public DeviceListener(DeviceCallback callback, Handler handler) {
123 public static class DeviceCallback { class in class:MidiManager
172 * The {@link DeviceCallback#onDeviceStatusChanged} method will be called immediately
179 * @param callback a {@link DeviceCallback} for MIDI device notifications
184 public void registerDeviceCallback(DeviceCallback callback, Handler handler) {
196 * Unregisters a {@link DeviceCallback}.
198 * @param callback a {@link DeviceCallback} t
[all...]
/frameworks/base/cmds/hid/src/com/android/commands/hid/
H A DDevice.java56 byte[] descriptor, MessageQueue queue, DeviceCallback callback);
114 (byte[]) args.arg2, getLooper().myQueue(), new DeviceCallback());
152 private class DeviceCallback { class in class:Device

Completed in 92 milliseconds