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

Commit 5326ae65 authored by Ivan Podogov's avatar Ivan Podogov Committed by Hansong Zhang
Browse files

HIDD: Address API Review concerns

Bug: 72168436
Test: make
Change-Id: I5119a299e38c294fe7c74898594b756ee4c19a46
(cherry picked from commit 2d73c646a4f83eb8dbf6337e941c4b874e3b9272)
parent 853994fb
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() {