diff options
Diffstat (limited to 'keystore/operation.cpp')
-rw-r--r-- | keystore/operation.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/keystore/operation.cpp b/keystore/operation.cpp index aa37101..4a71922 100644 --- a/keystore/operation.cpp +++ b/keystore/operation.cpp @@ -103,10 +103,14 @@ void OperationMap::removeOperationTracking(sp<IBinder> token, sp<IBinder> appTok } } -bool OperationMap::hasPruneableOperation() { +bool OperationMap::hasPruneableOperation() const { return mLru.size() != 0; } +size_t OperationMap::getPruneableOperationCount() const { + return mLru.size(); +} + sp<IBinder> OperationMap::getOldestPruneableOperation() { if (!hasPruneableOperation()) { return sp<IBinder>(NULL); |