Lines Matching refs:mInstance
204 QCameraPerfLockIntf* QCameraPerfLockIntf::mInstance = NULL; member in qcamera::QCameraPerfLockIntf
642 if (mInstance == NULL) { in createSingleton()
651 mInstance = new QCameraPerfLockIntf(); in createSingleton()
652 if (mInstance) { in createSingleton()
671 mInstance->mDlHandle = dlHandle; in createSingleton()
672 mInstance->mPerfLockAcq = pLockAcq; in createSingleton()
673 mInstance->mPerfLockRel = pLockRel; in createSingleton()
679 mInstance->mDlHandle = nullptr; in createSingleton()
680 mInstance->mPerfLockAcq = nullptr; in createSingleton()
681 mInstance->mPerfLockRel = nullptr; in createSingleton()
690 if (error && mInstance) { in createSingleton()
691 delete mInstance; in createSingleton()
692 mInstance = NULL; in createSingleton()
698 if (mInstance) { in createSingleton()
699 ++(mInstance->mRefCount); in createSingleton()
702 return mInstance; in createSingleton()
720 if (mInstance && (--(mInstance->mRefCount) == 0)) { in deleteInstance()
721 delete mInstance; in deleteInstance()
722 mInstance = NULL; in deleteInstance()