Searched refs:Experiments (Results 1 – 13 of 13) sorted by relevance
30 Experiments* Experiments::getInstance() { in getInstance()32 static Experiments instance{getExperimentFlagInt}; in getInstance()36 Experiments::Experiments(GetExperimentFlagIntFunction getExperimentFlagIntFunction) in Experiments() function in android::net::Experiments41 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()
32 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;
46 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;
120 Experiments::getInstance()->dump(dw); in dump()275 Experiments::getInstance()->update(); in destroyNetworkCache()284 Experiments::getInstance()->update(); in createNetworkCache()
122 "Experiments.cpp",
1682 int sleepFlag = android::net::Experiments::getInstance()->getFlag( in res_queryN_parallel()1713 android::net::Experiments::getInstance()->getFlag("parallel_lookup", 0); in res_queryN_wrapper()
960 android::net::Experiments::getInstance()->getFlag("keep_listening_udp", 0); in udpRetryingPollWrapper()
24 import com.android.contacts.Experiments;56 if (Flags.getInstance().getBoolean(Experiments.CP2_DEVICE_ACCOUNT_DETECTION_ENABLED)) { in create()70 if (Flags.getInstance().getBoolean(Experiments.CP2_DEVICE_ACCOUNT_DETECTION_ENABLED)) { in create()
40 import com.android.contacts.Experiments;
21 public final class Experiments { class53 private Experiments() { in Experiments() method in Experiments
130 .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()
273 Experiments.QUICK_CONTACT_VIDEO_CALL); in isTachyonEnabled()
60 import com.android.contacts.Experiments;590 .getInteger(Experiments.PULL_TO_REFRESH_CANCEL_REFRESH_MILLIS)); in initSwipeRefreshLayout()