Home
last modified time | relevance | path

Searched refs:guard (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/av/media/libaudiohal/
DHalDeathHandlerHidl.cpp40 std::lock_guard<std::mutex> guard(mHandlersLock); in registerAtExitHandler() local
45 std::lock_guard<std::mutex> guard(mHandlersLock); in unregisterAtExitHandler() local
52 std::lock_guard<std::mutex> guard(mHandlersLock); in serviceDied() local
/frameworks/native/include/ftl/
Dfake_guard.h82 const android::ftl::FakeGuard guard(mutex); \
86 #define FTL_MAKE_FAKE_GUARD(arg1, arg2, guard, ...) guard argument
/frameworks/base/rs/java/android/renderscript/
DBaseObj.java80 final CloseGuard guard = CloseGuard.get(); field in BaseObj
132 guard.close(); in helpDestroy()
148 if (guard != null) { in finalize()
149 guard.warnIfOpen(); in finalize()
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayDevice_SetDisplayBrightnessTest.cpp39 ftl::FakeGuard guard(kMainThreadContext); in TEST_F() local
56 ftl::FakeGuard guard(kMainThreadContext); in TEST_F() local
74 ftl::FakeGuard guard(kMainThreadContext); in TEST_F() local
100 ftl::FakeGuard guard(kMainThreadContext); in TEST_F() local
DTestableScheduler.h98 ftl::FakeGuard guard(kMainThreadContext); in registerDisplay()
113 ftl::FakeGuard guard(kMainThreadContext); in setDisplayPowerMode()
122 ftl::FakeGuard guard(kMainThreadContext); in setPacesetterDisplay()
DTestableSurfaceFlinger.h363 ftl::FakeGuard guard(kMainThreadContext); in configure()
374 ftl::FakeGuard guard(kMainThreadContext);
461 ftl::FakeGuard guard(kMainThreadContext); in commitTransactionsLocked()
496 ftl::FakeGuard guard(kMainThreadContext); in renderScreenImpl()
521 ftl::FakeGuard guard(kMainThreadContext); in getPendingTransactionQueue()
525 ftl::FakeGuard guard(kMainThreadContext); in getPendingTransactionCount()
572 ftl::FakeGuard guard(kMainThreadContext); in onActiveDisplayChanged()
658 ftl::FakeGuard guard(kMainThreadContext); in updateLayerSnapshots()
724 ftl::FakeGuard guard(kMainThreadContext); in sendNotifyExpectedPresentHint()
/frameworks/av/media/libmediaplayerservice/
DDeathNotifier.cpp54 std::unique_lock<std::mutex> guard(sCookiesMutex); in OnBinderDied() local
58 guard.unlock(); in OnBinderDied()
75 std::lock_guard<std::mutex> guard(sCookiesMutex); in ~DeathRecipient() local
103 std::lock_guard<std::mutex> guard(sCookiesMutex); local
/frameworks/libs/binary_translation/runtime_primitives/
Dknown_guest_function_wrapper.cc36 std::lock_guard<std::mutex> guard(g_guard_mutex); in RegisterKnownGuestFunctionWrapper() local
41 std::lock_guard<std::mutex> guard(g_guard_mutex); in WrapKnownGuestFunction() local
/frameworks/base/core/java/android/util/jar/
DStrictJarFile.java61 private final CloseGuard guard = CloseGuard.get(); field in StrictJarFile
141 guard.open("close"); in StrictJarFile()
224 if (guard != null) { in close()
225 guard.close(); in close()
237 if (guard != null) { in finalize()
238 guard.warnIfOpen(); in finalize()
/frameworks/av/media/module/libmediatranscoding/
DTranscodingResourcePolicy.cpp87 std::lock_guard<std::mutex> guard(sCookiesMutex); in BinderDiedCallback() local
113 std::lock_guard<std::mutex> guard(sCookiesMutex); in ~TranscodingResourcePolicy() local
120 std::lock_guard guard(mCookieKeysLock); in ~TranscodingResourcePolicy() local
170 std::lock_guard guard(mCookieKeysLock); in registerSelf() local
/frameworks/av/media/module/foundation/
DMetaDataBase.cpp108 std::lock_guard<std::mutex> guard(mInternalData->mLock); in clear() local
113 std::lock_guard<std::mutex> guard(mInternalData->mLock); in remove() local
260 std::lock_guard<std::mutex> guard(mInternalData->mLock); in setData() local
278 std::lock_guard<std::mutex> guard(mInternalData->mLock); in findData() local
293 std::lock_guard<std::mutex> guard(mInternalData->mLock); in hasData() local
440 std::lock_guard<std::mutex> guard(mInternalData->mLock); in toString() local
455 std::lock_guard<std::mutex> guard(mInternalData->mLock); in dumpToLog() local
468 std::lock_guard<std::mutex> guard(mInternalData->mLock); in writeToParcel() local
/frameworks/base/core/java/android/view/animation/
DAnimation.java231 private final CloseGuard guard = CloseGuard.get(); field in Animation
331 guard.close(); in cancel()
345 guard.close(); in detach()
1035 guard.open("cancel or detach or getTransformation"); in getTransformation()
1052 guard.close(); in getTransformation()
1252 if (guard != null) { in finalize()
1253 guard.warnIfOpen(); in finalize()
/frameworks/base/packages/SettingsLib/tests/unit/
DOWNERS1 # We do not guard tests - everyone is welcomed to contribute to tests.
/frameworks/base/packages/SettingsLib/tests/robotests/
DOWNERS1 # We do not guard tests - everyone is welcomed to contribute to tests.
/frameworks/rs/script_api/
DGenerateHeaderFiles.cpp332 const string guard = makeGuardString(headerFileName); in writeHeaderFile() local
333 file << "#ifndef " << guard << "\n"; in writeHeaderFile()
334 file << "#define " << guard << "\n\n"; in writeHeaderFile()
380 file << "#endif // " << guard << "\n"; in writeHeaderFile()
/frameworks/libs/binary_translation/guest_loader/
Dapp_process.cc36 std::lock_guard<std::mutex> guard(g_guest_loader_mtx); in AppProcessPostInit() local
/frameworks/native/libs/ftl/
Dfake_guard_test.cpp33 ftl::FakeGuard guard(mutex); in TEST() local
/frameworks/native/include/binder/
DIPCThreadState.h112 LIBBINDER_EXPORTED const SpGuard* pushGetCallingSpGuard(const SpGuard* guard);
113 LIBBINDER_EXPORTED void restoreGetCallingSpGuard(const SpGuard* guard);
/frameworks/native/libs/binder/include/binder/
DIPCThreadState.h112 LIBBINDER_EXPORTED const SpGuard* pushGetCallingSpGuard(const SpGuard* guard);
113 LIBBINDER_EXPORTED void restoreGetCallingSpGuard(const SpGuard* guard);
/frameworks/libs/binary_translation/native_bridge/
Dnative_bridge.cc210 const std::lock_guard<std::mutex> guard(host_libraries_lock_); in AddHostLibrary() local
215 const std::lock_guard<std::mutex> guard(host_libraries_lock_); in IsHostHandle() local
272 const std::lock_guard<std::mutex> guard(namespaces_lock_); in GetExportedNamespace() local
307 const std::lock_guard<std::mutex> guard(namespaces_lock_); in CreateNativeBridgeNamespace() local
/frameworks/base/services/core/java/com/android/server/
DLockGuard.java110 public static Object guard(Object lock) { in guard() method in LockGuard
149 public static void guard(int index) { in guard() method in LockGuard
/frameworks/base/services/
Dproguard_permission.flags7 # CoverageService guards optional jacoco class references with a runtime guard, so we can safely
/frameworks/base/services/core/java/com/android/server/flags/
Dservices.aconfig7 …description: "Enable guard based on system feature to prevent OnDevicePersonalization service from…
/frameworks/native/services/surfaceflinger/Scheduler/
DScheduler.cpp523 ftl::FakeGuard guard(kMainThreadContext); in resyncAllToHardwareVsync() local
575 ftl::FakeGuard guard(kMainThreadContext); in setRenderRate() local
600 ftl::FakeGuard guard(kMainThreadContext); in getNextFrameInterval() local
738 ftl::FakeGuard guard(mDisplayLock); in setDisplayPowerMode() local
775 ftl::FakeGuard guard(kMainThreadContext); in getVsyncScheduleLocked() local
809 ftl::FakeGuard guard(kMainThreadContext); in kernelIdleTimerCallback() local
857 ftl::FakeGuard guard(kMainThreadContext); in dump() local
878 ftl::FakeGuard guard(kMainThreadContext); in dump() local
895 ftl::FakeGuard guard(kMainThreadContext); in dumpVsync() local
1113 ftl::FakeGuard guard(kMainThreadContext); in applyPolicy() local
/frameworks/libs/binary_translation/proxy_loader/
Dproxy_loader.cc67 std::lock_guard<std::mutex> guard(g_guard_mutex); in InterceptGuestSymbol() local

123