Home
last modified time | relevance | path

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

12

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/
DEnterprisePolicyGuardTest.java100 EnterprisePolicyGuard guard = new EnterprisePolicyGuardTestable(getContext(), true); in testDirectorySupport() local
101 checkDirectorySupport(guard, URI_PHONE_LOOKUP, true); in testDirectorySupport()
102 checkDirectorySupport(guard, URI_EMAILS_LOOKUP, true); in testDirectorySupport()
103 checkDirectorySupport(guard, URI_CONTACTS_FILTER, true); in testDirectorySupport()
104 checkDirectorySupport(guard, URI_PHONES_FILTER, true); in testDirectorySupport()
105 checkDirectorySupport(guard, URI_CALLABLES_FILTER, true); in testDirectorySupport()
106 checkDirectorySupport(guard, URI_EMAILS_FILTER, true); in testDirectorySupport()
107 checkDirectorySupport(guard, URI_DIRECTORY_FILE, true); in testDirectorySupport()
108 checkDirectorySupport(guard, URI_DIRECTORIES, false); in testDirectorySupport()
109 checkDirectorySupport(guard, URI_DIRECTORIES_ID, false); in testDirectorySupport()
[all …]
/packages/apps/Nfc/nci/jni/
DRoutingManager.cpp136 SyncEventGuard guard(mEeRegisterEvent); in initialize() local
149 SyncEventGuard guard(mEeInfoEvent); in initialize() local
183 SyncEventGuard guard(mRoutingEvent); in enableRoutingToHost() local
249 SyncEventGuard guard(mRoutingEvent); in disableRoutingToHost() local
309 SyncEventGuard guard(mRoutingEvent); in addAidRouting() local
328 SyncEventGuard guard(mRoutingEvent); in removeAidRouting() local
352 SyncEventGuard guard(mEeUpdateEvent); in commitRouting() local
387 SyncEventGuard guard(mEeSetModeEvent); in onNfccShutdown() local
582 SyncEventGuard guard(mRoutingEvent); in updateDefaultProtocolRoute() local
605 SyncEventGuard guard(mRoutingEvent); in updateDefaultRoute() 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 …]
DNativeNfcManager.cpp282 SyncEventGuard guard(sNfaEnableDisablePollingEvent); in nfaConnectionCallback() local
292 SyncEventGuard guard(sNfaEnableDisablePollingEvent); in nfaConnectionCallback() local
302 SyncEventGuard guard(sNfaEnableDisablePollingEvent); in nfaConnectionCallback() local
314 SyncEventGuard guard(sNfaEnableDisablePollingEvent); in nfaConnectionCallback() local
750 SyncEventGuard guard(sNfaEnableEvent); in nfaDeviceManagementCallback() local
760 SyncEventGuard guard(sNfaDisableEvent); in nfaDeviceManagementCallback() local
772 SyncEventGuard guard(sNfaSetConfigEvent); in nfaDeviceManagementCallback() local
781 SyncEventGuard guard(sNfaGetConfigEvent); in nfaDeviceManagementCallback() local
832 SyncEventGuard guard(sNfaEnableDisablePollingEvent); in nfaDeviceManagementCallback() local
838 SyncEventGuard guard(sNfaEnableEvent); in nfaDeviceManagementCallback() local
[all …]
DPowerSwitch.cpp286 SyncEventGuard guard(mPowerStateEvent); in setPowerOffSleepState() local
310 SyncEventGuard guard(mPowerStateEvent); in setPowerOffSleepState() local
432 SyncEventGuard guard(mPowerStateEvent); in abort() local
460 SyncEventGuard guard(sPowerSwitch.mPowerStateEvent); in deviceManagementCallback() local
DNativeNfcTag.cpp157 SyncEventGuard guard(sPresenceCheckEvent); in nativeNfcTag_abortWaits() local
1342 SyncEventGuard guard(sPresenceCheckEvent); in nativeNfcTag_doPresenceCheckResult() local
1413 SyncEventGuard guard(sPresenceCheckEvent); in nativeNfcTag_doPresenceCheck() local
/packages/modules/DnsResolver/
DDnsTlsQueryMap.cpp28 std::lock_guard guard(mLock); in recordQuery() local
59 std::lock_guard guard(mLock); in markTried() local
67 std::lock_guard guard(mLock); in cleanup() local
106 std::lock_guard guard(mLock); in getAll() local
115 std::lock_guard guard(mLock); in empty() local
120 std::lock_guard guard(mLock); in clear() local
134 std::lock_guard guard(mLock); in onResponse() local
DDns64Configuration.cpp54 std::lock_guard guard(mMutex); in startPrefixDiscovery() local
109 std::lock_guard guard(mMutex); in stopPrefixDiscovery() local
122 std::lock_guard guard(mMutex); in getPrefix64() local
129 std::lock_guard guard(mMutex); in dump() local
214 std::lock_guard guard(mMutex); in shouldContinueDiscovery() local
232 std::lock_guard guard(mMutex); in recordDns64Config() local
246 std::lock_guard guard(mMutex); in setPrefix64() local
266 std::lock_guard guard(mMutex); in clearPrefix64() local
Dres_cache.cpp1070 std::lock_guard guard(cache_mutex); in _resolv_cache_query_failed() local
1305 std::lock_guard guard(cache_mutex); in resolv_cache_add() local
1376 std::lock_guard guard(cache_mutex); in resolv_gethostbyaddr_from_cache() local
1447 std::lock_guard guard(cache_mutex); in resolv_has_nameservers() local
1453 std::lock_guard guard(cache_mutex); in resolv_create_cache_for_net() local
1464 std::lock_guard guard(cache_mutex); in resolv_delete_cache_for_net() local
1469 std::lock_guard guard(cache_mutex); in resolv_flush_cache_for_net() local
1483 std::lock_guard guard(cache_mutex); in resolv_list_caches() local
1517 std::lock_guard guard(cache_mutex); in resolv_get_network_types_for_net() local
1569 std::lock_guard guard(cache_mutex); in getCustomizedTableByName() local
[all …]
DDnsTlsTransport.cpp37 std::lock_guard guard(mLock); in query() local
57 std::lock_guard guard(mLock); in getConnectCounter() local
96 std::lock_guard guard(mLock); in onClosed() local
116 std::lock_guard guard(mLock); in doReconnect() local
134 std::lock_guard guard(mLock); in ~DnsTlsTransport() local
DExperimentsTest.cpp53 std::lock_guard guard(mExperiments.mMutex); in setupExperimentsMap() local
58 std::lock_guard guard(mExperiments.mMutex); in expectFlagsMapInt() local
63 std::lock_guard guard(mExperiments.mMutex); in expectFlagsMapIntDefault() local
91 std::lock_guard guard(mExperiments.mMutex); in expectDumpOutput() local
DPrivateDnsConfiguration.cpp97 std::lock_guard guard(mPrivateDnsLock); in set() local
148 std::lock_guard guard(mPrivateDnsLock); in getStatus() local
166 std::lock_guard guard(mPrivateDnsLock); in clear() local
234 std::lock_guard guard(mPrivateDnsLock); in recordPrivateDnsValidation() local
329 std::lock_guard<std::mutex> guard(mPrivateDnsLock); in cleanValidateThreadTracker() local
DExperiments.cpp46 std::lock_guard guard(mMutex); in dump() local
59 std::lock_guard guard(mMutex); in updateInternal() local
66 std::lock_guard guard(mMutex); in getFlag() local
Dresolv_tls_unit_test.cpp219 ~FakeSocketDelay() { std::lock_guard guard(mLock); } in ~FakeSocketDelay() local
225 std::lock_guard guard(mLock); in query() local
242 std::lock_guard guard(mLock); in sendResponses() local
475 std::lock_guard guard(mLock); in ~FakeSocketLimited() local
493 std::lock_guard guard(mLock); in query() local
514 std::lock_guard guard(mLock); in sendClose() local
620 std::lock_guard guard(mLock); in ~FakeSocketGarbage() local
626 std::lock_guard guard(mLock); in query() local
703 std::lock_guard guard(mLock); in createDnsTlsSocket() local
DLockedQueue.h34 std::lock_guard guard(mLock); in push()
40 std::lock_guard guard(mLock); in swap()
DDnsTlsDispatcher.cpp59 std::lock_guard guard(sLock); in getOrderedServerList() local
155 std::lock_guard guard(sLock); in query() local
193 std::lock_guard guard(sLock); in query() local
DDnsTlsSessionCache.cpp56 std::lock_guard guard(mLock); in recordSession() local
65 std::lock_guard guard(mLock); in getSession() local
DDnsQueryLog.cpp62 std::lock_guard guard(mLock); in push() local
74 std::lock_guard guard(mLock); in dump() local
DDnsTlsSocket.cpp137 std::lock_guard guard(mLock); in initialize() local
308 std::lock_guard guard(mLock); in loop() local
391 std::lock_guard guard(mLock); in ~DnsTlsSocket() local
/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()
DFirstRunDetector.java34 Profilers.instance().guard());
/packages/apps/Camera2/src/com/android/camera/
DCaptureModule.java344 private final Profiler mProfiler = Profilers.instance().guard();
353 Profile guard = mProfiler.create("new CaptureModule").start(); in CaptureModule() local
385 guard.stop(); in CaptureModule()
402 Profile guard = mProfiler.create("CaptureModule.init").start(); in init() local
442 guard.stop(); in init()
679 Profile guard = mProfiler.create("CaptureModule.resume").start(); in resume() local
687 guard.mark(); in resume()
689 guard.mark("getRemoteShutterListener.onModuleReady"); in resume()
710 guard.mark(); in resume()
713 guard.mark("initSurfaceTextureConsumer"); in resume()
[all …]
/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/DnsResolver/tests/dns_responder/
Ddns_responder.cpp769 std::lock_guard guard(mappings_mutex_); in addAnswerRecords() local
960 std::lock_guard guard(mappings_mutex_); in makeResponseFromDnsHeader() local
1006 std::lock_guard guard(mappings_mutex_); in makeResponseFromBinaryPacket() local
1043 std::lock_guard<std::mutex> guard(cv_mutex_for_deferred_resp_); in setDeferredResp() local
1113 std::unique_lock guard(cv_mutex_for_deferred_resp_); in handleQuery() local
1115 guard, [this]() REQUIRES(cv_mutex_for_deferred_resp_) { return !deferred_resp_; }); in handleQuery()
/packages/apps/Settings/tests/robotests/
DOWNERS1 # We do not guard tests - everyone is welcomed to contribute to tests.

12