Home
last modified time | relevance | path

Searched refs:Validation (Results 1 – 23 of 23) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/util/
DValidationTest.java36 () -> Validation.validateNonNull(NULL_ARGUMENT) in testValidateNonNull_throwsExceptionWhenNull_oneArgument()
44 () -> Validation.validateNonNull(32, NULL_ARGUMENT) in testValidateNonNull_throwsExceptionWhenNull_twoArguments()
50 Validation.validateNonNull(333, "xyz"); in testValidateNonNull_doesNotThrowExceptionWhenNotNull()
57 () -> Validation.validateNotEmpty(EMPTY_LIST) in testValidateNotEmpty_throwsExceptionWhenEmpty_oneArgument()
65 () -> Validation.validateNotEmpty(List.of(1), EMPTY_LIST) in testValidateNotEmpty_throwsExceptionWhenEmpty_twoArguments()
71 Validation.validateNotEmpty(List.of(1, 2, 3)); in testValidateNotEmpty_doesNotThrowExceptionWhenNotEmpty()
78 () -> Validation.validateUri(NULL_ARGUMENT) in testValidateUri_throwsExceptionWhenNull_oneArgument()
86 () -> Validation.validateUri(Uri.parse("https://abc.test"), NULL_ARGUMENT) in testValidateUri_throwsExceptionWhenNull_twoArguments()
94 () -> Validation.validateUri(Uri.parse("abc.test")) in testValidateUri_throwsExceptionWhenInvalid_oneArgument()
102 () -> Validation.validateUri(Uri.parse("https://abc.test"), Uri.parse("abc.test")) in testValidateUri_throwsExceptionWhenInvalid_twoArguments()
[all …]
/packages/modules/DnsResolver/
DPrivateDnsConfigurationTest.cpp59 .WillByDefault([&](const std::string& server, Validation validation, uint32_t) { in SetUp()
61 if (validation == Validation::in_process) { in SetUp()
64 it->second != Validation::in_process) { in SetUp()
72 } else if (validation == Validation::success || in SetUp()
73 validation == Validation::fail) { in SetUp()
93 (const std::string& serverIp, Validation validation, uint32_t netId),
96 std::map<std::string, Validation> getServerStateMap() const { in getServerStateMap()
111 std::map<std::string, Validation> serverStateMap GUARDED_BY(lock);
123 std::map<std::string, Validation> serverStateMap; in checkPrivateDnsStatus()
154 EXPECT_CALL(mObserver, onValidationStateUpdate(kServer1, Validation::in_process, kNetId)); in TEST_F()
[all …]
DPrivateDnsCommon.h30 enum class Validation : uint8_t { enum
46 constexpr const char* validationStatusToString(Validation value) { in validationStatusToString()
48 case Validation::in_process: in validationStatusToString()
50 case Validation::success: in validationStatusToString()
52 case Validation::success_but_expired: in validationStatusToString()
54 case Validation::fail: in validationStatusToString()
56 case Validation::unknown_server: in validationStatusToString()
58 case Validation::unknown_netid: in validationStatusToString()
DPrivateDnsConfiguration.cpp177 if (!server.active() && server.validationState() == Validation::success) { in setDot()
178 updateServerState(identity, Validation::success_but_expired, netId); in setDot()
182 updateServerState(identity, Validation::in_process, netId); in setDot()
274 entry.second == Validation::success; in getStatusForMetrics()
324 if (target->validationState() != Validation::success) { in requestDotValidation()
333 updateServerState(identity, Validation::in_process, netId); in requestDotValidation()
438 notifyValidationStateUpdate(identity.sockaddr, Validation::fail, netId); in recordDotValidation()
445 notifyValidationStateUpdate(identity.sockaddr, Validation::fail, netId); in recordDotValidation()
475 updateServerState(identity, Validation::success, netId); in recordDotValidation()
480 const auto result = (reevaluationStatus == NEEDS_REEVALUATION) ? Validation::in_process in recordDotValidation()
[all …]
DPrivateDnsConfiguration.h49 std::map<DnsTlsServer, Validation, AddressComparator> dotServersMap;
51 std::map<netdutils::IPSockAddr, Validation> dohServersMap;
57 if (pair.second == Validation::success) { in validatedServers()
66 if (status == Validation::success) { in hasValidatedDohServers()
169 void updateServerState(const ServerIdentity& identity, Validation state, uint32_t netId)
187 void notifyValidationStateUpdate(const netdutils::IPSockAddr& sockaddr, Validation validation,
212 Validation status;
247 return DohIdentity{httpsTemplate, ip, host, Validation::in_process}; in getDohIdentity()
253 return DohIdentity{httpsTemplate, ip, host, Validation::in_process}; in getDohIdentity()
305 RecordEntry(uint32_t netId, const ServerIdentity& identity, Validation state) in RecordEntry()
[all …]
DDnsTlsServer.h72 Validation validationState() const { return mValidation; } in validationState()
73 void setValidationState(Validation val) { mValidation = val; } in setValidationState()
88 Validation mValidation = Validation::unknown_server;
DPrivateDnsValidationObserver.h31 virtual void onValidationStateUpdate(const std::string& serverIp, Validation validation,
DDnsTlsDispatcher.h67 void onValidationStateUpdate(const std::string&, Validation, uint32_t) override{}; in onValidationStateUpdate() argument
/packages/modules/IntentResolver/java/src/com/android/intentresolver/validation/
DValidation.kt26 interface Validation { in <lambda>() interface
82 fun <T> validateFrom(source: (String) -> Any?, validate: Validation.() -> T): ValidationResult<T> { in validate()
99 private class ValidationImpl(val source: (String) -> Any?) : Validation {
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/
DMeasurementClickVerificationStats.java22 import com.android.adservices.service.measurement.util.Validation;
142 Validation.validateNonNull(stats.getSourceRegistrant()); in build()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DAsyncRegistration.java25 import com.android.adservices.service.measurement.util.Validation;
278 Validation.validateNonNull(id); in setId()
293 Validation.validateNonNull(registrationUri); in setRegistrationUri()
322 Validation.validateNonNull(registrant); in setRegistrant()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/util/
DUnsignedLong.java31 Validation.validateNonNull(value); in UnsignedLong()
36 Validation.validateNonNull(value); in UnsignedLong()
DValidation.java26 public final class Validation { class
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ui/viewmodel/
DResolverRequestReader.kt26 import com.android.intentresolver.validation.Validation
46 private fun Validation.checkSelectedProfile(): Profile.Type? { in Validation() method
DChooserRequestReader.kt51 import com.android.intentresolver.validation.Validation
183 fun Validation.readAlternateIntents(): List<Intent>? = in Validation() method
186 fun Validation.readChooserActions(): List<ChooserAction>? = in Validation() method
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DEventTrigger.java23 import com.android.adservices.service.measurement.util.Validation;
103 Validation.validateNonNull(triggerData); in Builder()
DTrigger.java32 import com.android.adservices.service.measurement.util.Validation;
615 Validation.validateUri(attributionDestination); in setAttributionDestination()
651 Validation.validateNonNull(eventTriggers); in setEventTriggers()
659 Validation.validateUri(registrant); in setRegistrant()
801 Validation.validateNonNull( in build()
DSource.java33 import com.android.adservices.service.measurement.util.Validation;
1425 Validation.validateUri(publisher); in setPublisher()
1441 Validation.validateNotEmpty(uris); in setAppDestinations()
1445 Validation.validateUri(uris.toArray(new Uri[0])); in setAppDestinations()
1455 Validation.validateNotEmpty(uris); in setWebDestinations()
1456 Validation.validateUri(uris.toArray(new Uri[0])); in setWebDestinations()
1542 Validation.validateNonNull(sourceType); in setSourceType()
1572 Validation.validateUri(registrant); in setRegistrant()
1790 Validation.validateNonNull( in build()
DAttribution.java22 import com.android.adservices.service.measurement.util.Validation;
276 Validation.validateNonNull( in build()
/packages/modules/NeuralNetworks/common/types/
DAndroid.bp61 "src/Validation.cpp",
115 "src/Validation.cpp",
/packages/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp855 s1.setValidationState(Validation::success); in TEST_F()
857 s2.setValidationState(Validation::fail); in TEST_F()
864 EXPECT_EQ(s1.validationState(), Validation::success); in TEST_F()
865 EXPECT_EQ(s2.validationState(), Validation::fail); in TEST_F()
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
Dstats.proto141 * Logs Network Validation event
/packages/apps/TV/libs/m2/
Ddagger-compiler-2.23.jarjava/dagger/internal/codegen/META-INF/gradle/incremental.annotation.processors ...