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

Commit 68504303 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "HIDD: Address API Review concerns" into pi-dev

parents 913ce89b 5326ae65
Loading
Loading
Loading
Loading
+26 −3
Original line number Original line Diff line number Diff line
@@ -497,9 +497,32 @@ public class HidDeviceService extends ProfileService {
        mUserUid = callingUid;
        mUserUid = callingUid;
        mCallback = callback;
        mCallback = callback;


        return mHidDeviceNativeInterface.registerApp(sdp.name, sdp.description, sdp.provider,
        return mHidDeviceNativeInterface.registerApp(
                sdp.subclass, sdp.descriptors, inQos == null ? null : inQos.toArray(),
                sdp.getName(),
                outQos == null ? null : outQos.toArray());
                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() {
    synchronized boolean unregisterApp() {