Searched refs:PrivateDnsMode (Results 1 – 7 of 7) sorted by relevance
103 void expectPrivateDnsStatus(PrivateDnsMode mode) { in expectPrivateDnsStatus()108 bool checkPrivateDnsStatus(PrivateDnsMode mode) { in checkPrivateDnsStatus()147 expectPrivateDnsStatus(PrivateDnsMode::OPPORTUNISTIC); in TEST_F()160 expectPrivateDnsStatus(PrivateDnsMode::OPPORTUNISTIC); in TEST_F()176 expectPrivateDnsStatus(PrivateDnsMode::OPPORTUNISTIC); in TEST_F()197 expectPrivateDnsStatus(PrivateDnsMode::OPPORTUNISTIC); in TEST_F()210 expectPrivateDnsStatus(PrivateDnsMode::OPPORTUNISTIC); in TEST_F()216 expectPrivateDnsStatus(PrivateDnsMode::OPPORTUNISTIC); in TEST_F()223 expectPrivateDnsStatus(PrivateDnsMode::OPPORTUNISTIC); in TEST_F()227 expectPrivateDnsStatus(PrivateDnsMode::OPPORTUNISTIC); in TEST_F()[all …]
37 enum class PrivateDnsMode : uint8_t { enum62 constexpr const char* getPrivateDnsModeString(PrivateDnsMode mode) { in getPrivateDnsModeString()64 case PrivateDnsMode::OFF: in getPrivateDnsModeString()66 case PrivateDnsMode::OPPORTUNISTIC: in getPrivateDnsModeString()68 case PrivateDnsMode::STRICT: in getPrivateDnsModeString()
81 mPrivateDnsModes[netId] = PrivateDnsMode::STRICT; in set()83 mPrivateDnsModes[netId] = PrivateDnsMode::OPPORTUNISTIC; in set()85 mPrivateDnsModes[netId] = PrivateDnsMode::OFF; in set()120 PrivateDnsStatus status{PrivateDnsMode::OFF, {}}; in getStatus()159 } else if (it->second != PrivateDnsMode::OPPORTUNISTIC) { in requestValidation()295 } else if (mode->second == PrivateDnsMode::OFF) { in recordPrivateDnsValidation()297 } else if (mode->second == PrivateDnsMode::OPPORTUNISTIC && !isRevalidation) { in recordPrivateDnsValidation()
137 using android::net::PrivateDnsMode;1194 PrivateDnsModes convertEnumType(PrivateDnsMode privateDnsmode) { in convertEnumType()1196 case PrivateDnsMode::OFF: in convertEnumType()1198 case PrivateDnsMode::OPPORTUNISTIC: in convertEnumType()1200 case PrivateDnsMode::STRICT: in convertEnumType()1216 if (privateDnsStatus.mode == PrivateDnsMode::OFF) { in res_tls_send()1222 if (privateDnsStatus.mode == PrivateDnsMode::OPPORTUNISTIC) { in res_tls_send()1260 if (privateDnsStatus.mode == PrivateDnsMode::OPPORTUNISTIC) { in res_tls_send()
39 PrivateDnsMode mode;127 std::map<unsigned, PrivateDnsMode> mPrivateDnsModes GUARDED_BY(mPrivateDnsLock);
104 case PrivateDnsMode::OPPORTUNISTIC: in queryingViaTls()106 case PrivateDnsMode::STRICT: in queryingViaTls()281 case PrivateDnsMode::OFF: in getPrivateDnsModeForMetrics()284 case PrivateDnsMode::OPPORTUNISTIC: in getPrivateDnsModeForMetrics()286 case PrivateDnsMode::STRICT: in getPrivateDnsModeForMetrics()
376 public @interface PrivateDnsMode {} annotation in ConnectivitySettingsManager743 @PrivateDnsMode754 public static void setPrivateDnsMode(@NonNull Context context, @PrivateDnsMode int mode) { in setPrivateDnsMode()785 @PrivateDnsMode799 @NonNull @PrivateDnsMode int mode) { in setPrivateDnsDefaultMode()