Home
last modified time | relevance | path

Searched refs:readLock (Results 1 – 9 of 9) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DReadOnlyBinaryDictionary.java58 if (mLock.readLock().tryLock()) { in getSuggestions()
64 mLock.readLock().unlock(); in getSuggestions()
72 if (mLock.readLock().tryLock()) { in isInDictionary()
76 mLock.readLock().unlock(); in isInDictionary()
84 if (mLock.readLock().tryLock()) { in shouldAutoCommit()
88 mLock.readLock().unlock(); in shouldAutoCommit()
96 if (mLock.readLock().tryLock()) { in getFrequency()
100 mLock.readLock().unlock(); in getFrequency()
108 if (mLock.readLock().tryLock()) { in getMaxFrequencyOfExactMatches()
112 mLock.readLock().unlock(); in getMaxFrequencyOfExactMatches()
DExpandableBinaryDictionary.java436 lockAcquired = mLock.readLock().tryLock( in getSuggestions()
457 mLock.readLock().unlock(); in getSuggestions()
468 lockAcquired = mLock.readLock().tryLock( in isInDictionary()
480 mLock.readLock().unlock(); in isInDictionary()
496 lockAcquired = mLock.readLock().tryLock( in getMaxFrequencyOfExactMatches()
508 mLock.readLock().unlock(); in getMaxFrequencyOfExactMatches()
655 asyncExecuteTaskWithLock(mLock.readLock(), new Runnable() { in getDictionaryStats()
691 asyncExecuteTaskWithLock(mLock.readLock(), new Runnable() { in dumpAllWordsForDebug()
730 asyncExecuteTaskWithLock(mLock.readLock(), new Runnable() { in getWordPropertiesForSyncing()
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogServiceHelper.cpp122 if (std::shared_lock readLock(mRWMutex); mService == nullptr || in checkIfAlive() local
136 if (std::shared_lock readLock(mRWMutex); mService == nullptr || in prepareProcessTermination() local
183 if (std::shared_lock readLock(mRWMutex); mService == nullptr) { in getPackageInfosForUids() local
198 if (std::shared_lock readLock(mRWMutex); mService == nullptr) { in latestIoOveruseStats() local
209 if (std::shared_lock readLock(mRWMutex); mService == nullptr) { in resetResourceOveruseStats() local
DPackageInfoResolver.cpp198 std::shared_lock readLock(mRWMutex); in getPackageNamesForUids() local
217 std::shared_lock readLock(mRWMutex); in getPackageInfosForUids() local
DIoOveruseMonitor.cpp442 std::shared_lock readLock(mRwMutex); in getResourceOveruseConfigurations() local
512 std::shared_lock readLock(mRwMutex); in getIoOveruseStats() local
DIoOveruseMonitor.h110 std::shared_lock readLock(mRwMutex); in isInitialized()
/packages/providers/MediaProvider/src/com/android/providers/media/fuse/
DFuseDaemon.java147 public boolean shouldOpenWithFuse(String path, boolean readLock, int fd) { in shouldOpenWithFuse() argument
153 return native_should_open_with_fuse(mPtr, path, readLock, fd); in shouldOpenWithFuse()
186 private native boolean native_should_open_with_fuse(long daemon, String path, boolean readLock, in native_should_open_with_fuse() argument
/packages/services/Car/cpp/powerpolicy/client/src/
DPowerPolicyClientBase.cpp107 std::shared_lock readLock(mRWMutex); in connectToDaemon() local
/packages/providers/MediaProvider/src/com/android/providers/media/
DDatabaseHelper.java502 mSchemaLock.readLock().lock(); in beginTransactionInternal()
537 mSchemaLock.readLock().unlock(); in endTransactionInternal()
602 mSchemaLock.readLock().lock(); in runWithoutTransaction()
606 mSchemaLock.readLock().unlock(); in runWithoutTransaction()