Home
last modified time | relevance | path

Searched refs:PrivateDnsMode (Results 1 – 7 of 7) sorted by relevance

/packages/modules/DnsResolver/
DPrivateDnsConfigurationTest.cpp103 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 …]
DPrivateDnsCommon.h37 enum class PrivateDnsMode : uint8_t { enum
62 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()
DPrivateDnsConfiguration.cpp81 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()
Dres_send.cpp137 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()
DPrivateDnsConfiguration.h39 PrivateDnsMode mode;
127 std::map<unsigned, PrivateDnsMode> mPrivateDnsModes GUARDED_BY(mPrivateDnsLock);
DDnsProxyListener.cpp104 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()
/packages/modules/Connectivity/framework/src/android/net/
DConnectivitySettingsManager.java376 public @interface PrivateDnsMode {} annotation in ConnectivitySettingsManager
743 @PrivateDnsMode
754 public static void setPrivateDnsMode(@NonNull Context context, @PrivateDnsMode int mode) { in setPrivateDnsMode()
785 @PrivateDnsMode
799 @NonNull @PrivateDnsMode int mode) { in setPrivateDnsDefaultMode()