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

Commit fdd4e360 authored by Ivan Podogov's avatar Ivan Podogov Committed by android-build-merger
Browse files

Merge "HIDD: Address API Review concerns"

am: 764b1a5f

Change-Id: I8a040cb12906cd1c9a6dc4703cf22f76faf13ed4
parents 65e5c443 764b1a5f
Loading
Loading
Loading
Loading
+26 −3
Original line number Diff line number Diff line
@@ -497,9 +497,32 @@ public class HidDeviceService extends ProfileService {
        mUserUid = callingUid;
        mCallback = callback;

        return mHidDeviceNativeInterface.registerApp(sdp.name, sdp.description, sdp.provider,
                sdp.subclass, sdp.descriptors, inQos == null ? null : inQos.toArray(),
                outQos == null ? null : outQos.toArray());
        return mHidDeviceNativeInterface.registerApp(
                sdp.getName(),
                sdp.getDescription(),
                sdp.getProvider(),
                sdp.getSubclass(),
                sdp.getDescriptors(),
                inQos == null
                        ? null
                        : new int[] {
                            inQos.getServiceType(),
                            inQos.getTokenRate(),
                            inQos.getTokenBucketSize(),
                            inQos.getPeakBandwidth(),
                            inQos.getLatency(),
                            inQos.getDelayVariation()
                        },
                outQos == null
                        ? null
                        : new int[] {
                            outQos.getServiceType(),
                            outQos.getTokenRate(),
                            outQos.getTokenBucketSize(),
                            outQos.getPeakBandwidth(),
                            outQos.getLatency(),
                            outQos.getDelayVariation()
                        });
    }

    synchronized boolean unregisterApp() {