Home
last modified time | relevance | path

Searched refs:find (Results 1 – 25 of 602) sorted by relevance

12345678910>>...25

/packages/modules/Bluetooth/system/gd/common/
Dlist_map_test.cc32 EXPECT_EQ(list_map.find(42), list_map.end()); in TEST()
34 EXPECT_EQ(list_map.find(42), list_map.end()); in TEST()
66 auto iter = list_map.find(1); in TEST()
69 iter = new_list_map.find(1); in TEST()
72 iter = new_list_map.find(1); in TEST()
81 auto iter = list_map.find(1); in TEST()
84 iter = new_list_map.find(1); in TEST()
87 iter = new_list_map.find(1); in TEST()
96 auto iter = list_map.find(1); in TEST()
99 iter = list_map.find(1); in TEST()
[all …]
Dlru_cache_test.cc32 EXPECT_EQ(cache.find(42), cache.end()); in TEST()
34 EXPECT_EQ(cache.find(42), cache.end()); in TEST()
48 cache_2.find(1); in TEST()
50 cache_1.find(1); in TEST()
78 auto iter = cache.find(42); in TEST()
87 auto iter = cache.find(1); in TEST()
90 iter = new_cache.find(1); in TEST()
93 iter = new_cache.find(1); in TEST()
102 auto iter = cache.find(1); in TEST()
105 iter = new_cache.find(1); in TEST()
[all …]
Dlist_map.h101 const_iterator find(const Key& key) const { in find() function
102 return const_cast<ListMap*>(this)->find(key); in find()
106 iterator find(const Key& key) { in find() function
107 auto map_iterator = key_map_.find(key); in find()
116 return find(key) != end(); in contains()
124 auto map_iterator = key_map_.find(key); in try_emplace()
144 auto map_iterator = key_map_.find(key); in insert_or_assign()
173 auto map_iterator = key_map_.find(key); in extract()
/packages/modules/Bluetooth/system/stack/a2dp/
Da2dp_api.cc84 a2dp_cb.find.p_db, a2dp_cb.find.service_uuid, p_rec)) == NULL) { in a2dp_sdp_cback()
123 a2dp_cb.find.service_uuid = 0; in a2dp_sdp_cback()
124 osi_free_and_reset((void**)&a2dp_cb.find.p_db); in a2dp_sdp_cback()
126 if (a2dp_cb.find.p_cback != NULL) { in a2dp_sdp_cback()
127 (*a2dp_cb.find.p_cback)(found, &a2dp_svc, peer_address); in a2dp_sdp_cback()
288 if (a2dp_cb.find.service_uuid == UUID_SERVCLASS_AUDIO_SOURCE || in A2DP_FindService()
289 a2dp_cb.find.service_uuid == UUID_SERVCLASS_AUDIO_SINK || in A2DP_FindService()
290 a2dp_cb.find.p_db != NULL) { in A2DP_FindService()
301 a2dp_cb.find.p_db = (tSDP_DISCOVERY_DB*)osi_malloc(p_db->db_len); in A2DP_FindService()
304 if (!SDP_InitDiscoveryDb(a2dp_cb.find.p_db, p_db->db_len, 1, &uuid_list, in A2DP_FindService()
[all …]
/packages/modules/Bluetooth/system/gd/storage/
Dconfig_cache.cc43 return kEncryptKeyNameList.find(key) != kEncryptKeyNameList.end(); in InEncryptKeyNameList()
132 auto section_iter = information_sections_.find(section); in HasProperty()
134 return section_iter->second.find(property) != section_iter->second.end(); in HasProperty()
136 section_iter = persistent_devices_.find(section); in HasProperty()
138 return section_iter->second.find(property) != section_iter->second.end(); in HasProperty()
140 section_iter = temporary_devices_.find(section); in HasProperty()
142 return section_iter->second.find(property) != section_iter->second.end(); in HasProperty()
149 auto section_iter = information_sections_.find(section); in GetProperty()
151 auto property_iter = section_iter->second.find(property); in GetProperty()
156 section_iter = persistent_devices_.find(section); in GetProperty()
[all …]
/packages/modules/Bluetooth/system/gd/l2cap/internal/
Ddata_pipeline_manager.cc31 ASSERT(sender_map_.find(cid) == sender_map_.end()); in AttachChannel()
37 ASSERT(sender_map_.find(cid) != sender_map_.end()); in DetachChannel()
44 if (sender_map_.find(cid) == sender_map_.end()) { in GetDataController()
47 return sender_map_.find(cid)->second.GetDataController(); in GetDataController()
51 ASSERT(sender_map_.find(cid) != sender_map_.end()); in OnPacketSent()
52 sender_map_.find(cid)->second.OnPacketSent(); in OnPacketSent()
56 ASSERT(sender_map_.find(cid) != sender_map_.end()); in UpdateClassicConfiguration()
57 sender_map_.find(cid)->second.UpdateClassicConfiguration(config); in UpdateClassicConfiguration()
61 ASSERT(sender_map_.find(cid) != sender_map_.end()); in SetChannelTxPriority()
Ddynamic_channel_allocator.cc31 if (used_remote_cid_.find(remote_cid) != used_remote_cid_.end()) { in AllocateChannel()
37 if (used_cid_.find(cid) == used_cid_.end()) break; in AllocateChannel()
55 if (used_remote_cid_.find(remote_cid) != used_remote_cid_.end()) { in AllocateReservedChannel()
71 if (used_cid_.find(cid) == used_cid_.end()) break; in ReserveChannel()
102 if (channels_.find(cid) == channels_.end()) { in FindChannelByCid()
106 return channels_.find(cid)->second; in FindChannelByCid()
/packages/apps/TV/jni/
Dtunertvinput_jni.cpp42 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeFinalize()
58 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeTune__JILjava_lang_String_2I()
80 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeTune__JIILjava_lang_String_2I()
102 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeCloseAllPidFilters()
115 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeStopTune()
129 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeGetSignalStrength()
145 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeAddPidFilter()
160 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeWriteInBuffer()
194 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeSetHasPendingTune()
209 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeGetDeliverySystemType()
[all …]
/packages/modules/StatsD/statsd/src/config/
DConfigManager.cpp77 auto uidIt = mConfigs.find(key.GetUid()); in UpdateConfig()
80 auto it = uidIt->second.find(key); in UpdateConfig()
89 if (uidIt != mConfigs.end() && uidIt->second.find(key) != uidIt->second.end() && in UpdateConfig()
131 auto it = mConfigReceivers.find(key); in RemoveConfigReceiver()
151 auto it = mActiveConfigsChangedReceivers.find(uid); in RemoveActiveConfigsChangedReceiver()
163 auto uidIt = mConfigs.find(uid); in RemoveConfig()
164 if (uidIt != mConfigs.end() && uidIt->second.find(key) != uidIt->second.end()) { in RemoveConfig()
194 auto uidIt = mConfigs.find(uid); in RemoveConfigs()
265 auto it = mConfigReceivers.find(key); in GetConfigReceiver()
277 auto it = mActiveConfigsChangedReceivers.find(uid); in GetActiveConfigsChangedReceiver()
[all …]
/packages/modules/StatsD/statsd/tests/
DUidMap_test.cpp82 EXPECT_TRUE(name_set.find(kApp1) != name_set.end()); in TEST()
83 EXPECT_TRUE(name_set.find(kApp2) != name_set.end()); in TEST()
103 EXPECT_TRUE(name_set.find(kApp1) != name_set.end()); in TEST()
104 EXPECT_TRUE(name_set.find(kApp2) != name_set.end()); in TEST()
113 EXPECT_TRUE(name_set.find(kApp1) != name_set.end()); in TEST()
114 EXPECT_TRUE(name_set.find(kApp2) != name_set.end()); in TEST()
121 EXPECT_TRUE(name_set.find(kApp1) == name_set.end()); in TEST()
122 EXPECT_TRUE(name_set.find(kApp2) != name_set.end()); in TEST()
139 EXPECT_TRUE(name_set.find(kApp1) != name_set.end()); in TEST()
140 EXPECT_TRUE(name_set.find(kApp2) != name_set.end()); in TEST()
[all …]
/packages/services/Car/tests/BugReportApp/tests/src/com/android/car/bugreport/
DTtlPointsDecrementalTest.java86 assertThat(find(bugUserPending_ttl_points0)).isEqualTo(bugUserPending_ttl_points0); in test_decrementsTtlPointsForPendingBugReports()
87 assertThat(find(bugUserPending_ttl_points1)).isEqualTo( in test_decrementsTtlPointsForPendingBugReports()
89 assertThat(find(bugUserPending_ttl_points2)).isEqualTo( in test_decrementsTtlPointsForPendingBugReports()
91 assertThat(find(bugUploadPending)).isEqualTo( in test_decrementsTtlPointsForPendingBugReports()
93 assertThat(find(bugUploadFailed)).isEqualTo( in test_decrementsTtlPointsForPendingBugReports()
95 assertThat(find(bugUploadWritePending)).isEqualTo(bugUploadWritePending); in test_decrementsTtlPointsForPendingBugReports()
96 assertThat(find(bugUploadedBefore)).isEqualTo( in test_decrementsTtlPointsForPendingBugReports()
101 private MetaBugReport find(MetaBugReport bug) { in find() method in TtlPointsDecrementalTest
/packages/modules/Bluetooth/system/gd/packet/parser/
Ddeclarations.h33 auto it = type_defs_.find(name); in AddTypeDef()
42 auto it = type_defs_.find(name); in GetTypeDef()
51 auto it = packet_defs_.find(name); in AddPacketDef()
60 auto it = packet_defs_.find(name); in GetPacketDef()
69 auto it = group_defs_.find(name); in AddGroupDef()
77 if (group_defs_.find(name) == group_defs_.end()) { in GetGroupDef()
Dmain.cc150 if (arg.find(arg_source_root) == 0) { in main()
157 if (arg.find(arg_out) == 0) { in main()
159 } else if (arg.find(arg_include) == 0) { in main()
161 } else if (arg.find(arg_namespace) == 0) { in main()
163 } else if (arg.find(arg_num_shards) == 0) { in main()
165 } else if (arg.find(arg_rust) == 0) { in main()
167 } else if (arg.find(arg_source_root) == 0) { in main()
/packages/modules/StatsD/statsd/src/state/
DStateManager.cpp48 mAllowedLogSources.find(event.GetUid()) != mAllowedLogSources.end()) { in onLogEvent()
49 if (mStateTrackers.find(event.GetTagId()) != mStateTrackers.end()) { in onLogEvent()
57 if (mStateTrackers.find(atomId) == mStateTrackers.end()) { in registerListener()
71 auto it = mStateTrackers.find(atomId); in unregisterListener()
89 auto it = mStateTrackers.find(atomId); in getStateValue()
106 if (mAllowedPkg.find(apk) != mAllowedPkg.end()) { in notifyAppChanged()
/packages/modules/DnsResolver/
DPrivateDnsConfiguration.cpp88 if (tracker.find(identity) == tracker.end()) { in set()
94 const bool active = tmp.find(identity) != tmp.end(); in set()
119 const auto mode = mPrivateDnsModes.find(netId); in getStatus()
123 const auto netPair = mPrivateDnsTransports.find(netId); in getStatus()
133 auto it = mDohTracker.find(netId); in getStatus()
159 if (auto it = mPrivateDnsModes.find(netId); it == mPrivateDnsModes.end()) { in requestValidation()
283 auto netPair = mPrivateDnsTransports.find(netId); in recordPrivateDnsValidation()
290 const auto mode = mPrivateDnsModes.find(netId); in recordPrivateDnsValidation()
307 auto serverPair = tracker.find(identity); in recordPrivateDnsValidation()
381 auto netPair = mPrivateDnsTransports.find(netId); in getPrivateDnsLocked()
[all …]
/packages/modules/Bluetooth/system/stack/gatt/
Dconnection_manager.cc118 auto it = bgconn_dev.find(address); in get_apps_connecting_to()
162 auto it = bgconn_dev.find(addr); in target_announcement_observe_results_cb()
221 auto it = bgconn_dev.find(address); in background_connect_targeted_announcement_add()
277 auto it = bgconn_dev.find(address); in background_connect_add()
323 auto it = bgconn_dev.find(address); in remove_unconditional()
340 auto it = bgconn_dev.find(address); in background_connect_remove()
401 return bgconn_dev.find(address) != bgconn_dev.end(); in is_background_connection()
428 auto it = bgconn_dev.find(address); in remove_all_clients_with_pending_connections()
432 it = bgconn_dev.find(address); in remove_all_clients_with_pending_connections()
476 auto it = bgconn_dev.find(address); in direct_connect_add()
[all …]
/packages/modules/Bluetooth/system/osi/test/
Dlist_test.cc188 int find = 4; in TEST_F() local
189 list_node_t* rc = list_foreach(list, list_callback_find_int, &find); in TEST_F()
194 find = 1; in TEST_F()
195 rc = list_foreach(list, list_callback_find_int, &find); in TEST_F()
200 find = 5; in TEST_F()
201 rc = list_foreach(list, list_callback_find_int, &find); in TEST_F()
206 find = 0; in TEST_F()
207 rc = list_foreach(list, list_callback_find_int, &find); in TEST_F()
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/
Dconfig_update_utils.cpp49 const auto& oldAtomMatchingTrackerIt = oldAtomMatchingTrackerMap.find(id); in determineMatcherUpdateStatus()
77 const auto& childIt = newAtomMatchingTrackerMap.find(childMatcherId); in determineMatcherUpdateStatus()
125 if (newAtomMatchingTrackerMap.find(matcher.id()) != newAtomMatchingTrackerMap.end()) { in updateAtomMatchingTrackers()
149 const auto& oldAtomMatchingTrackerIt = oldAtomMatchingTrackerMap.find(id); in updateAtomMatchingTrackers()
215 const auto& oldConditionTrackerIt = oldConditionTrackerMap.find(id); in determineConditionUpdateStatus()
238 if (replacedMatchers.find(simplePredicate.start()) != replacedMatchers.end()) { in determineConditionUpdateStatus()
244 if (replacedMatchers.find(simplePredicate.stop()) != replacedMatchers.end()) { in determineConditionUpdateStatus()
250 if (replacedMatchers.find(simplePredicate.stop_all()) != replacedMatchers.end()) { in determineConditionUpdateStatus()
263 const auto& childIt = newConditionTrackerMap.find(childPredicateId); in determineConditionUpdateStatus()
315 if (newConditionTrackerMap.find(condition.id()) != newConditionTrackerMap.end()) { in updateConditions()
[all …]
/packages/services/Car/car_product/sepolicy/private/
Dcarservice_app.te57 }:service_manager find;
105 allow carservice_app carpowerpolicyd_service:service_manager find;
110 allow carservice_app gpu_service:service_manager find;
120 allow carservice_app game_service:service_manager find;
121 allow carservice_app content_capture_service:service_manager find;
124 allow carservice_app hint_service:service_manager find;
127 allow carservice_app evsmanagerd_service:service_manager find;
/packages/modules/Bluetooth/system/gd/
Dmodule.cc59 auto instance = started_modules_.find(module); in Get()
65 return started_modules_.find(module) != started_modules_.end(); in IsStarted()
80 auto started_instance = started_modules_.find(module); in Start()
106 auto instance = started_modules_.find(*it); in StopAll()
118 auto instance = started_modules_.find(*it); in StopAll()
130 auto started_instance = started_modules_.find(module); in GetModuleHandler()
148 auto instance = module_registry_.started_modules_.find(*it); in DumpState()
/packages/modules/StatsD/statsd/src/condition/
DSimpleConditionTracker.cpp89 auto pair = atomMatchingTrackerMap.find(simplePredicate.start()); in setMatcherIndices()
101 auto pair = atomMatchingTrackerMap.find(simplePredicate.stop()); in setMatcherIndices()
113 auto pair = atomMatchingTrackerMap.find(simplePredicate.stop_all()); in setMatcherIndices()
163 if (!mSliced || mSlicedConditionState.find(newKey) != mSlicedConditionState.end()) { in hitGuardRail()
185 auto outputIt = mSlicedConditionState.find(outputKey); in handleConditionEvent()
311 const auto& itr = mSlicedConditionState.find(DEFAULT_DIMENSION_KEY); in evaluateCondition()
360 const auto pair = conditionParameters.find(mConditionId); in isConditionMet()
366 const auto& itr = mSlicedConditionState.find(DEFAULT_DIMENSION_KEY); in isConditionMet()
391 auto startedCountIt = mSlicedConditionState.find(key); in isConditionMet()
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Darguments_and_options.h42 return mOptions.find(optionName) != mOptions.end(); in hasOption()
46 const auto &it = mOptions.find(optionName); in getOptionValue()
52 const auto &it = mArguments.find(name); in hasArgument()
57 const auto &it = mArguments.find(name); in getSingleArgument()
63 const auto &it = mArguments.find(name); in getVariableLengthArguments()
/packages/modules/StatsD/statsd/src/metrics/
DMetricsManager.cpp199 auto it = UidMap::sAidToUidMapping.find(source); in createAllLogSourcesFromConfig()
218 auto it = UidMap::sAidToUidMapping.find(pullSource); in createAllLogSourcesFromConfig()
232 auto it = UidMap::sAidToUidMapping.find(pullPackage); in createAllLogSourcesFromConfig()
319 if (std::find(mAllowedPkg.begin(), mAllowedPkg.end(), apk) != mAllowedPkg.end()) { in notifyAppUpgrade()
326 if (it.second.find(apk) != it.second.end()) { in notifyAppUpgrade()
340 if (std::find(mAllowedPkg.begin(), mAllowedPkg.end(), apk) != mAllowedPkg.end()) { in notifyAppRemoved()
347 if (it.second.find(apk) != it.second.end()) { in notifyAppRemoved()
382 const auto& it = mCombinedPullAtomUids.find(atomId); in getPullAtomUids()
417 if (mNoReportMetricIds.find(producer->getMetricId()) == mNoReportMetricIds.end()) { in onDumpReport()
451 if (mWhitelistedAtomIds.find(event.GetTagId()) != mWhitelistedAtomIds.end()) { in checkLogCredentials()
[all …]
/packages/modules/Bluetooth/system/gd/facade/
Dfacade_main.cc126 if (arg.find(arg_grpc_root_server_port) == 0) { in main()
130 if (arg.find(arg_grpc_server_port) == 0) { in main()
134 if (arg.find(arg_rootcanal_port) == 0) { in main()
138 if (arg.find(arg_btsnoop_path) == 0) { in main()
144 if (arg.find(arg_btsnooz_path) == 0) { in main()
148 if (arg.find(arg_btconfig_path) == 0) { in main()
/packages/modules/StatsD/statsd/src/
DStatsLogProcessor.cpp271 if (find(ids.begin(), ids.end(), firstId + 1) == ids.end()) { in getAndUpdateTrainInfoOnDisk()
276 if (find(ids.begin(), ids.end(), firstId + 2) == ids.end()) { in getAndUpdateTrainInfoOnDisk()
281 if (find(ids.begin(), ids.end(), firstId + 3) == ids.end()) { in getAndUpdateTrainInfoOnDisk()
350 if (find(ids.begin(), ids.end(), firstId + 4) == ids.end()) { in processWatchdogRollbackOccurred()
356 if (find(ids.begin(), ids.end(), firstId + 5) == ids.end()) { in processWatchdogRollbackOccurred()
458 auto activeConfigs = activeConfigsPerUid.find(uid); in OnLogEvent()
479 auto lastBroadcastTime = mLastActivationBroadcastTimes.find(uid); in OnLogEvent()
488 auto activeConfigs = activeConfigsPerUid.find(uid); in OnLogEvent()
535 const auto& it = mMetricsManagers.find(key); in OnConfigUpdatedLocked()
567 auto it = mMetricsManagers.find(key); in GetMetricsSize()
[all …]

12345678910>>...25