Home
last modified time | relevance | path

Searched refs:Experiments (Results 1 – 17 of 17) sorted by relevance

/packages/modules/DnsResolver/
DExperiments.cpp30 Experiments* Experiments::getInstance() { in getInstance()
32 static Experiments instance{getExperimentFlagInt}; in getInstance()
36 Experiments::Experiments(GetExperimentFlagIntFunction getExperimentFlagIntFunction) in Experiments() function in android::net::Experiments
41 void Experiments::update() { in update()
45 void Experiments::dump(DumpWriter& dw) const { in dump()
50 if (value == Experiments::kFlagIntDefault) { in dump()
58 void Experiments::updateInternal() { in updateInternal()
61 mFlagsMapInt[key] = mGetExperimentFlagIntFunction(key, Experiments::kFlagIntDefault); in updateInternal()
65 int Experiments::getFlag(std::string_view key, int defaultValue) const { in getFlag()
68 if (it != mFlagsMapInt.end() && it->second != Experiments::kFlagIntDefault) { in getFlag()
DExperiments.h32 class Experiments {
35 static Experiments* getInstance();
40 Experiments(Experiments const&) = delete;
41 void operator=(Experiments const&) = delete;
44 explicit Experiments(GetExperimentFlagIntFunction getExperimentFlagIntFunction);
45 Experiments() = delete;
DExperimentsTest.cpp46 for (const auto& key : Experiments::kExperimentFlagKeyList) { in setupFakeMap()
65 EXPECT_EQ(value, Experiments::kFlagIntDefault); in expectFlagsMapIntDefault()
70 for (const auto& key : Experiments::kExperimentFlagKeyList) { in expectGetDnsExperimentFlagIntDefault()
77 for (const auto& key : Experiments::kExperimentFlagKeyList) { in expectGetDnsExperimentFlagInt()
94 if (value == Experiments::kFlagIntDefault) { in expectDumpOutput()
107 Experiments mExperiments;
DDnsResolverService.cpp124 Experiments::getInstance()->dump(dw); in dump()
289 Experiments::getInstance()->update(); in destroyNetworkCache()
298 Experiments::getInstance()->update(); in createNetworkCache()
DDnsTlsTransport.cpp305 int latencyFactor = Experiments::getInstance()->getFlag("dot_validation_latency_factor", in validate()
307 int latencyOffsetMs = Experiments::getInstance()->getFlag( in validate()
DDnsTlsSocket.cpp47 using android::net::Experiments;
179 const Experiments* const instance = Experiments::getInstance(); in initialize()
DDnsTlsDispatcher.cpp298 const Experiments* const instance = Experiments::getInstance(); in addTransport()
DDnsTlsQueryMap.cpp29 mMaxTries = Experiments::getInstance()->getFlag("dot_maxtries", kMaxTries); in DnsTlsQueryMap()
DAndroid.bp187 "Experiments.cpp",
Dgetaddrinfo.cpp1684 int sleepFlag = android::net::Experiments::getInstance()->getFlag( in res_queryN_parallel()
1716 android::net::Experiments::getInstance()->getFlag("parallel_lookup_release", 1); in res_queryN_wrapper()
Dres_cache.cpp74 using android::net::Experiments;
1719 const bool sortNameservers = Experiments::getInstance()->getFlag("sort_nameservers", 0); in resolv_populate_res_for_net()
Dres_send.cpp969 android::net::Experiments::getInstance()->getFlag("keep_listening_udp", 0); in udpRetryingPollWrapper()
/packages/apps/Contacts/src/com/android/contacts/
DExperiments.java21 public final class Experiments { class
53 private Experiments() { in Experiments() method in Experiments
DDynamicShortcuts.java130 .getInteger(Experiments.DYNAMIC_MIN_CONTENT_CHANGE_UPDATE_DELAY_MILLIS); in DynamicShortcuts()
132 .getInteger(Experiments.DYNAMIC_MAX_CONTENT_CHANGE_UPDATE_DELAY_MILLIS); in DynamicShortcuts()
487 flags.getInteger(Experiments.DYNAMIC_MIN_CONTENT_CHANGE_UPDATE_DELAY_MILLIS) + in initialize()
489 flags.getInteger(Experiments.DYNAMIC_MAX_CONTENT_CHANGE_UPDATE_DELAY_MILLIS)); in initialize()
DCallUtil.java273 Experiments.QUICK_CONTACT_VIDEO_CALL); in isTachyonEnabled()
/packages/apps/Contacts/src/com/android/contacts/list/
DDefaultContactBrowseListFragment.java60 import com.android.contacts.Experiments;
590 .getInteger(Experiments.PULL_TO_REFRESH_CANCEL_REFRESH_MILLIS)); in initSwipeRefreshLayout()
/packages/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp485 Experiments::getInstance()->getFlag(DOT_MAXTRIES_FLAG, DnsTlsQueryMap::kMaxTries)); in TEST_F()
582 Experiments::getInstance()->getFlag(DOT_MAXTRIES_FLAG, DnsTlsQueryMap::kMaxTries)); in TEST_F()