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

Commit 002a0ffe authored by Alex Deymo's avatar Alex Deymo Committed by android-build-merger
Browse files

Merge "Mark unused parameters as UNUSED in BRILLO."

am: 1567662f

Change-Id: I41ac014fdbba3b13c41b46f2309a75d19f1b9174
parents 1e9c1a26 1567662f
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
#include <android/hardware/ICamera.h>
#include <android/hardware/ICameraClient.h>

#include <android-base/macros.h>
#include <binder/AppOpsManager.h>
#include <binder/IPCThreadState.h>
#include <binder/IServiceManager.h>
@@ -925,13 +926,18 @@ Status CameraService::validateConnectLocked(const String8& cameraId,
        const String8& clientName8, /*inout*/int& clientUid, /*inout*/int& clientPid,
        /*out*/int& originalClientPid) const {

#ifdef __BRILLO__
    UNUSED(clientName8);
    UNUSED(clientUid);
    UNUSED(clientPid);
    UNUSED(originalClientPid);
#else
    Status allowed = validateClientPermissionsLocked(cameraId, clientName8, clientUid, clientPid,
            originalClientPid);
#if !defined(__BRILLO__)
    if (!allowed.isOk()) {
        return allowed;
    }
#endif  // defined(__BRILLO__)
#endif  // __BRILLO__

    int callingPid = getCallingPid();