use of android.compat.annotation.UnsupportedAppUsage in project android_frameworks_opt_telephony by LineageOS.
the class RIL method clearWakeLock.
@UnsupportedAppUsage
private boolean clearWakeLock(int wakeLockType) {
if (wakeLockType == FOR_WAKELOCK) {
synchronized (mWakeLock) {
if (mWakeLockCount == 0 && !mWakeLock.isHeld())
return false;
Rlog.d(RILJ_LOG_TAG, "NOTE: mWakeLockCount is " + mWakeLockCount + "at time of clearing");
mWakeLockCount = 0;
mWakeLock.release();
mClientWakelockTracker.stopTrackingAll();
mActiveWakelockWorkSource = new WorkSource();
return true;
}
} else {
synchronized (mAckWakeLock) {
if (!mAckWakeLock.isHeld())
return false;
mAckWakeLock.release();
return true;
}
}
}
Aggregations