Home
last modified time | relevance | path

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

12345

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/
DEnterprisePolicyGuardTest.java104 EnterprisePolicyGuard guard = new EnterprisePolicyGuardTestable(getContext(), true); in testDirectorySupport() local
105 checkDirectorySupport(guard, URI_PHONE_LOOKUP, true); in testDirectorySupport()
106 checkDirectorySupport(guard, URI_EMAILS_LOOKUP, true); in testDirectorySupport()
107 checkDirectorySupport(guard, URI_CONTACTS_FILTER, true); in testDirectorySupport()
108 checkDirectorySupport(guard, URI_PHONES_FILTER, true); in testDirectorySupport()
109 checkDirectorySupport(guard, URI_CALLABLES_FILTER, true); in testDirectorySupport()
110 checkDirectorySupport(guard, URI_EMAILS_FILTER, true); in testDirectorySupport()
111 checkDirectorySupport(guard, URI_DIRECTORY_FILE, true); in testDirectorySupport()
112 checkDirectorySupport(guard, URI_DIRECTORIES, false); in testDirectorySupport()
113 checkDirectorySupport(guard, URI_DIRECTORIES_ID, false); in testDirectorySupport()
[all …]
/packages/modules/DnsResolver/tests/
Ddoh_frontend.cpp45 std::lock_guard guard(mMutex); in startServer() local
62 std::lock_guard guard(mMutex); in stopServer() local
69 std::lock_guard guard(mMutex); in queries() local
78 std::lock_guard guard(mMutex); in connections() local
87 std::lock_guard guard(mMutex); in aliveConnections() local
96 std::lock_guard guard(mMutex); in resumedConnections() local
105 std::lock_guard guard(mMutex); in earlyDataConnections() local
114 std::lock_guard guard(mMutex); in clearQueries() local
129 std::lock_guard guard(mMutex); in setMaxIdleTimeout() local
136 std::lock_guard guard(mMutex); in setMaxBufferSize() local
[all …]
/packages/modules/Bluetooth/system/gd/rust/common/src/
Dparameter_provider.rs40 let guard = self.lock.lock().unwrap(); in config_file_path() localVariable
42 drop(guard); in config_file_path()
48 let guard = self.lock.lock().unwrap(); in override_config_file_path() localVariable
50 drop(guard); in override_config_file_path()
55 let guard = self.lock.lock().unwrap(); in snoop_log_file_path() localVariable
57 drop(guard); in snoop_log_file_path()
63 let guard = self.lock.lock().unwrap(); in override_snoop_file_path() localVariable
65 drop(guard); in override_snoop_file_path()
70 let guard = self.lock.lock().unwrap(); in snooz_log_file_path() localVariable
72 drop(guard); in snooz_log_file_path()
[all …]
/packages/providers/MediaProvider/jni/
Dnode-inl.h105 std::lock_guard<std::recursive_mutex> guard(*lock_); in Exists()
113 std::lock_guard<std::recursive_mutex> guard(*lock_); in CheckTracked()
120 std::lock_guard<std::recursive_mutex> guard(*lock_); in NodeDeleted()
130 std::lock_guard<std::recursive_mutex> guard(*lock_); in NodeCreated()
153 std::lock_guard<std::recursive_mutex> guard(*lock); in Create()
162 std::lock_guard<std::recursive_mutex> guard(*lock); in CreateRoot()
193 std::lock_guard<std::recursive_mutex> guard(*lock_); in Release()
243 std::lock_guard<std::recursive_mutex> guard(*lock_); in SetDeleted()
255 std::lock_guard<std::recursive_mutex> guard(*lock_); in Rename()
296 std::lock_guard<std::recursive_mutex> guard(*lock_); in GetName()
[all …]
Dnode.cpp62 std::lock_guard<std::recursive_mutex> guard(*lock_); in BuildPath() local
70 std::lock_guard<std::recursive_mutex> guard(*lock_); in BuildSafePath() local
84 std::lock_guard<std::recursive_mutex> guard(*root->lock_); in LookupAbsolutePath() local
99 std::lock_guard<std::recursive_mutex> guard(*root->lock_); in LookupInode() local
115 std::lock_guard<std::recursive_mutex> guard(*tree->lock_); in DeleteTree() local
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/utils/
DImsMediaDataQueue.cpp31 std::lock_guard<std::mutex> guard(mMutex); in Add() local
41 std::lock_guard<std::mutex> guard(mMutex); in InsertAt() local
63 std::lock_guard<std::mutex> guard(mMutex); in Delete() local
89 std::lock_guard<std::mutex> guard(mMutex); in Get() local
111 std::lock_guard<std::mutex> guard(mMutex); in GetLast() local
132 std::lock_guard<std::mutex> guard(mMutex); in GetAt() local
150 std::lock_guard<std::mutex> guard(mMutex); in GetCount() local
156 std::lock_guard<std::mutex> guard(mMutex); in SetReadPosFirst() local
167 std::lock_guard<std::mutex> guard(mMutex); in GetNext() local
/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Dasync_manager.cc101 std::unique_lock<std::recursive_mutex> guard(internal_mutex_); in WatchFdForNonBlockingReads() local
119 std::unique_lock<std::recursive_mutex> guard(internal_mutex_); in StopWatchingFileDescriptor() local
144 std::unique_lock<std::recursive_mutex> guard(internal_mutex_); in stopThread() local
194 std::unique_lock<std::recursive_mutex> guard(internal_mutex_); in setUpFileDescriptorSet() local
219 std::unique_lock<std::recursive_mutex> guard(internal_mutex_); in runAppropriateCallbacks() local
289 std::unique_lock<std::mutex> guard(internal_mutex_); in CancelAsyncTask() local
295 std::unique_lock<std::mutex> guard(internal_mutex_); in CancelAsyncTasksFromUser() local
307 std::unique_lock<std::mutex> guard(synchronization_mutex_); in Synchronize() local
319 std::unique_lock<std::mutex> guard(internal_mutex_); in stopThread() local
411 std::unique_lock<std::mutex> guard(internal_mutex_); in scheduleTask() local
[all …]
/packages/apps/Nfc/nci/jni/
DRoutingManager.cpp140 SyncEventGuard guard(mEeRegisterEvent); in initialize() local
153 SyncEventGuard guard(mEeInfoEvent); in initialize() local
187 SyncEventGuard guard(mRoutingEvent); in enableRoutingToHost() local
253 SyncEventGuard guard(mRoutingEvent); in disableRoutingToHost() local
350 SyncEventGuard guard(mRoutingEvent); in addAidRouting() local
369 SyncEventGuard guard(mRoutingEvent); in removeAidRouting() local
393 SyncEventGuard guard(mEeUpdateEvent); in commitRouting() local
428 SyncEventGuard guard(mEeSetModeEvent); in onNfccShutdown() local
625 SyncEventGuard guard(mRoutingEvent); in updateDefaultProtocolRoute() local
648 SyncEventGuard guard(mRoutingEvent); in updateDefaultRoute() local
[all …]
DNativeNfcManager.cpp292 SyncEventGuard guard(sNfaEnableDisablePollingEvent); in nfaConnectionCallback() local
302 SyncEventGuard guard(sNfaEnableDisablePollingEvent); in nfaConnectionCallback() local
312 SyncEventGuard guard(sNfaEnableDisablePollingEvent); in nfaConnectionCallback() local
324 SyncEventGuard guard(sNfaEnableDisablePollingEvent); in nfaConnectionCallback() local
756 SyncEventGuard guard(sNfaEnableEvent); in nfaDeviceManagementCallback() local
766 SyncEventGuard guard(sNfaDisableEvent); in nfaDeviceManagementCallback() local
778 SyncEventGuard guard(gNfaSetConfigEvent); in nfaDeviceManagementCallback() local
787 SyncEventGuard guard(gNfaGetConfigEvent); in nfaDeviceManagementCallback() local
847 SyncEventGuard guard(sNfaEnableDisablePollingEvent); in nfaDeviceManagementCallback() local
853 SyncEventGuard guard(sNfaEnableEvent); in nfaDeviceManagementCallback() local
[all …]
DPeerToPeer.cpp481 SyncEventGuard guard(pSrv->mConnRequestEvent); in deregisterServer() local
542 SyncEventGuard guard(mClients[i]->mRegisteringEvent); in createClient() local
672 SyncEventGuard guard(pClient->mConnectingEvent); in createDataLinkConn() local
865 SyncEventGuard guard(pConn->mCongEvent); in send() local
940 SyncEventGuard guard(pConn->mReadEvent); in receive() local
979 SyncEventGuard guard(pClient->mConnectingEvent); in disconnectConnOriented() local
996 SyncEventGuard guard(pConn->mDisconnectingEvent); in disconnectConnOriented() local
1126 SyncEventGuard guard(mSetTechEvent); in enableP2pListening() local
1134 SyncEventGuard guard(mSetTechEvent); in enableP2pListening() local
1174 SyncEventGuard guard(mClients[ii]->mConnectingEvent); in handleNfcOnOff() local
[all …]
/packages/modules/Bluetooth/tools/pdl/tests/canonical/
Dle_rust_test_file.pdl44 // up to 64 bits wide. The parser should generate a static size guard.
51 // up to 64 bits wide. The parser should generate a static size guard.
58 // up to 64 bits wide. The parser should generate a static size guard.
66 // up to 64 bits wide. The parser should generate a static size guard.
74 // up to 64 bits wide. The parser should generate a static size guard.
82 // up to 64 bits wide. The parser should generate a static size guard.
89 // up to 64 bits wide. The parser should generate a static size guard.
148 // The size guard is generated by the Struct parser.
292 // up to 64 bits wide. The parser should generate a static size guard.
299 // up to 64 bits wide. The parser should generate a static size guard.
[all …]
Dle_test_file.pdl68 // up to 64 bits wide. The parser should generate a static size guard.
75 // up to 64 bits wide. The parser should generate a static size guard.
82 // up to 64 bits wide. The parser should generate a static size guard.
90 // up to 64 bits wide. The parser should generate a static size guard.
98 // up to 64 bits wide. The parser should generate a static size guard.
106 // up to 64 bits wide. The parser should generate a static size guard.
113 // up to 64 bits wide. The parser should generate a static size guard.
191 // The parser should generate a checksum guard for the buffer covered by the
202 // The parser should generate a checksum guard for the buffer covered by the
215 // The size guard is generated by the Struct parser.
[all …]
Dle_rust_noalloc_test_file.pdl53 // up to 64 bits wide. The parser should generate a static size guard.
60 // up to 64 bits wide. The parser should generate a static size guard.
67 // up to 64 bits wide. The parser should generate a static size guard.
75 // up to 64 bits wide. The parser should generate a static size guard.
83 // up to 64 bits wide. The parser should generate a static size guard.
91 // up to 64 bits wide. The parser should generate a static size guard.
98 // up to 64 bits wide. The parser should generate a static size guard.
157 // The size guard is generated by the Struct parser.
344 // up to 64 bits wide. The parser should generate a static size guard.
351 // up to 64 bits wide. The parser should generate a static size guard.
[all …]
/packages/modules/DnsResolver/
DDnsTlsQueryMap.cpp35 std::lock_guard guard(mLock); in recordQuery() local
66 std::lock_guard guard(mLock); in markTried() local
74 std::lock_guard guard(mLock); in cleanup() local
113 std::lock_guard guard(mLock); in getAll() local
123 std::lock_guard guard(mLock); in empty() local
128 std::lock_guard guard(mLock); in clear() local
142 std::lock_guard guard(mLock); in onResponse() local
DDns64Configuration.cpp54 std::lock_guard guard(mMutex); in startPrefixDiscovery() local
110 std::lock_guard guard(mMutex); in stopPrefixDiscovery() local
123 std::lock_guard guard(mMutex); in getPrefix64() local
130 std::lock_guard guard(mMutex); in dump() local
215 std::lock_guard guard(mMutex); in shouldContinueDiscovery() local
233 std::lock_guard guard(mMutex); in recordDns64Config() local
247 std::lock_guard guard(mMutex); in setPrefix64() local
267 std::lock_guard guard(mMutex); in clearPrefix64() local
DLockedQueue.h34 std::lock_guard guard(mLock); in push()
40 std::lock_guard guard(mLock); in swap()
55 std::lock_guard guard(mLock); in push()
63 std::lock_guard guard(mLock); in copy()
Dres_cache.cpp1127 std::lock_guard guard(cache_mutex); in _resolv_cache_query_failed() local
1358 std::lock_guard guard(cache_mutex); in resolv_cache_add() local
1429 std::lock_guard guard(cache_mutex); in resolv_gethostbyaddr_from_cache() local
1500 std::lock_guard guard(cache_mutex); in resolv_has_nameservers() local
1506 std::lock_guard guard(cache_mutex); in resolv_create_cache_for_net() local
1518 std::lock_guard guard(cache_mutex); in resolv_delete_cache_for_net() local
1523 std::lock_guard guard(cache_mutex); in resolv_flush_cache_for_net() local
1537 std::lock_guard guard(cache_mutex); in resolv_list_caches() local
1560 std::lock_guard guard(cache_mutex); in resolv_get_network_types_for_net() local
1576 std::lock_guard guard(cache_mutex); in is_mdns_supported_network() local
[all …]
/packages/apps/Camera2/src/com/android/camera/app/
DCameraApp.java60 Profile guard = Profilers.instance().guard("CameraApp onCreate()"); in onCreate() local
65 guard.mark("initializeTimeOfFirstRun"); in onCreate()
68 guard.mark("UsageStatistics.initialize"); in onCreate()
71 guard.stop("clearNotifications"); in onCreate()
/packages/modules/Bluetooth/system/vendor_libs/linux/interface/
Dasync_fd_watcher.cc45 std::unique_lock<std::mutex> guard(internal_mutex_); in WatchFdForNonBlockingReads() local
58 std::unique_lock<std::mutex> guard(timeout_mutex_); in ConfigureTimeout() local
98 std::unique_lock<std::mutex> guard(internal_mutex_); in stopThread() local
103 std::unique_lock<std::mutex> guard(timeout_mutex_); in stopThread() local
162 std::unique_lock<std::mutex> guard(timeout_mutex_); in ThreadRoutine() local
181 std::unique_lock<std::mutex> guard(internal_mutex_); in ThreadRoutine() local
/packages/modules/Bluetooth/system/audio_hal_interface/
Dhal_version_manager.cc41 std::lock_guard<std::mutex> guard(instance_ptr->mutex_); in GetHalVersion() local
59 std::lock_guard<std::mutex> guard(instance_ptr->mutex_); in GetProvidersFactory_2_1() local
76 std::unique_lock<std::mutex> guard(instance_ptr->mutex_); in GetProvidersFactory_2_0() local
78 guard.unlock(); in GetProvidersFactory_2_0()
89 guard.unlock(); in GetProvidersFactory_2_0()
/packages/modules/NeuralNetworks/common/
DHalBufferTracker.cpp64 std::lock_guard<std::mutex> guard(mMutex); in validateRequest() local
166 std::lock_guard<std::mutex> guard(mMutex); in validateCopyTo() local
181 std::lock_guard<std::mutex> guard(mMutex); in updateDimensions() local
187 std::lock_guard<std::mutex> guard(mMutex); in setInitialized() local
196 std::lock_guard<std::mutex> guard(mMutex); in add() local
211 std::lock_guard<std::mutex> guard(mMutex); in get() local
220 std::lock_guard<std::mutex> guard(mMutex); in free() local
DBufferTracker.cpp64 std::lock_guard<std::mutex> guard(mMutex); in validateRequest() local
163 std::lock_guard<std::mutex> guard(mMutex); in validateCopyTo() local
178 std::lock_guard<std::mutex> guard(mMutex); in updateDimensions() local
184 std::lock_guard<std::mutex> guard(mMutex); in setInitialized() local
203 std::lock_guard<std::mutex> guard(mMutex); in add() local
219 std::lock_guard<std::mutex> guard(mMutex); in get() local
229 std::lock_guard<std::mutex> guard(mMutex); in free() local
/packages/apps/Camera2/src/com/android/camera/stats/profiler/
DProfilers.java111 public GuardingProfiler guard() { in guard() method in Profilers
115 public Profile guard(String name) { in guard() method in Profilers
116 return guard().create(name).start(); in guard()
119 public Profile guard(String name, int durationMillis) { in guard() method in Profilers
120 return guard().create(name, durationMillis).start(); in guard()
/packages/modules/Connectivity/service/native/
DTrafficController.cpp165 std::lock_guard guard(mMutex); in initMaps() local
199 std::lock_guard guard(mMutex); in start() local
230 std::lock_guard guard(mMutex); in updateOwnerMapEntry() local
283 std::lock_guard guard(mMutex); in updateUidOwnerMap() local
362 std::lock_guard guard(mMutex); in replaceRulesInMap() local
386 std::lock_guard guard(mMutex); in addUidInterfaceRules() local
398 std::lock_guard guard(mMutex); in removeUidInterfaceRules() local
410 std::lock_guard guard(mMutex); in updateUidLockdownRule() local
454 std::lock_guard guard(mMutex); in toggleUidOwnerMap() local
501 std::lock_guard guard(mMutex); in swapActiveStatsMap() local
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_uid.cc47 std::unique_lock<std::mutex> guard(set_lock); in uid_set_destroy() local
78 std::unique_lock<std::mutex> guard(set_lock); in uid_set_add_tx() local
86 std::unique_lock<std::mutex> guard(set_lock); in uid_set_add_rx() local
92 std::unique_lock<std::mutex> guard(set_lock); in uid_set_read_and_clear() local

12345