Expose error codes for domain verification setters

Removes the InvalidDomainSetException and exposes the reasons as API
error codes. Implementers can check for a non-0 error code to tell if
the failure is meant to indicate a cancelled request.

Bug: 180991102

Test: atest com.android.server.pm.test.verify.domain
Test: atest DomainVerificationManagerApiTest

Change-Id: I19b88fb582fc7f633497d036a0590350ec463f3e
15 files changed