Loading camera/ndk/impl/ACameraManager.h +3 −0 Original line number Diff line number Diff line Loading @@ -139,6 +139,8 @@ class CameraManagerGlobal final : public RefBase { return !(*this == other); } bool operator < (const Callback& other) const { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wordered-compare-function-pointers" if (*this == other) return false; if (mContext != other.mContext) return mContext < other.mContext; if (mPhysicalCamAvailable != other.mPhysicalCamAvailable) { Loading @@ -152,6 +154,7 @@ class CameraManagerGlobal final : public RefBase { } if (mAvailable != other.mAvailable) return mAvailable < other.mAvailable; return mUnavailable < other.mUnavailable; #pragma GCC diagnostic pop } bool operator > (const Callback& other) const { return (*this != other && !(*this < other)); Loading camera/ndk/ndk_vendor/impl/ACameraManager.h +3 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,8 @@ class CameraManagerGlobal final : public RefBase { return !(*this == other); } bool operator < (const Callback& other) const { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wordered-compare-function-pointers" if (*this == other) return false; if (mContext != other.mContext) return mContext < other.mContext; if (mAvailable != other.mAvailable) return mAvailable < other.mAvailable; Loading @@ -145,6 +147,7 @@ class CameraManagerGlobal final : public RefBase { if (mPhysicalCamUnavailable != other.mPhysicalCamUnavailable) return mPhysicalCamUnavailable < other.mPhysicalCamUnavailable; return mUnavailable < other.mUnavailable; #pragma GCC diagnostic pop } bool operator > (const Callback& other) const { return (*this != other && !(*this < other)); Loading Loading
camera/ndk/impl/ACameraManager.h +3 −0 Original line number Diff line number Diff line Loading @@ -139,6 +139,8 @@ class CameraManagerGlobal final : public RefBase { return !(*this == other); } bool operator < (const Callback& other) const { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wordered-compare-function-pointers" if (*this == other) return false; if (mContext != other.mContext) return mContext < other.mContext; if (mPhysicalCamAvailable != other.mPhysicalCamAvailable) { Loading @@ -152,6 +154,7 @@ class CameraManagerGlobal final : public RefBase { } if (mAvailable != other.mAvailable) return mAvailable < other.mAvailable; return mUnavailable < other.mUnavailable; #pragma GCC diagnostic pop } bool operator > (const Callback& other) const { return (*this != other && !(*this < other)); Loading
camera/ndk/ndk_vendor/impl/ACameraManager.h +3 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,8 @@ class CameraManagerGlobal final : public RefBase { return !(*this == other); } bool operator < (const Callback& other) const { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wordered-compare-function-pointers" if (*this == other) return false; if (mContext != other.mContext) return mContext < other.mContext; if (mAvailable != other.mAvailable) return mAvailable < other.mAvailable; Loading @@ -145,6 +147,7 @@ class CameraManagerGlobal final : public RefBase { if (mPhysicalCamUnavailable != other.mPhysicalCamUnavailable) return mPhysicalCamUnavailable < other.mPhysicalCamUnavailable; return mUnavailable < other.mUnavailable; #pragma GCC diagnostic pop } bool operator > (const Callback& other) const { return (*this != other && !(*this < other)); Loading