/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/interfaces/ |
D | ServerInterface.java | 32 import com.android.rkpdapp.RkpdException; 178 ProvisioningAttempt metrics) throws RkpdException, InterruptedException { in requestSignedCertificates() 185 throw new RkpdException( in requestSignedCertificates() 186 RkpdException.ErrorCode.INTERNAL_ERROR, in requestSignedCertificates() 199 throw new RkpdException(RkpdException.ErrorCode.INTERNAL_ERROR, in requestSignedCertificates() 206 private URL generateSignCertsUrl(byte[] challenge) throws RkpdException { in generateSignCertsUrl() 218 throw new RkpdException(RkpdException.ErrorCode.HTTP_CLIENT_ERROR, "Bad URL", e); in generateSignCertsUrl() 240 throws RkpdException, InterruptedException { in fetchGeek() 242 throw new RkpdException(RkpdException.ErrorCode.NO_NETWORK_CONNECTIVITY, in fetchGeek() 248 throw new RkpdException(RkpdException.ErrorCode.NETWORK_COMMUNICATION_ERROR, in fetchGeek() [all …]
|
D | SystemInterface.java | 29 import com.android.rkpdapp.RkpdException; 83 public RkpKey generateKey(ProvisioningAttempt metrics) throws CborException, RkpdException { in generateKey() 110 List<RkpKey> keysToSign) throws CborException, RkpdException { in generateCsr() 142 } catch (CborException | RkpdException e) { in generateCsr()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/ |
D | RkpdException.java | 22 public final class RkpdException extends Exception { class 42 public RkpdException(ErrorCode errorCode, String message) { in RkpdException() method in RkpdException 52 public RkpdException(ErrorCode errorCode, String message, Throwable cause) { in RkpdException() method in RkpdException 61 public static RkpdException createFromHttpError(int httpStatus) { in createFromHttpError() 64 return new RkpdException(ErrorCode.DEVICE_NOT_REGISTERED, message); in createFromHttpError() 67 return new RkpdException(ErrorCode.HTTP_CLIENT_ERROR, message); in createFromHttpError() 70 return new RkpdException(ErrorCode.HTTP_SERVER_ERROR, message); in createFromHttpError() 72 return new RkpdException(ErrorCode.HTTP_UNKNOWN_ERROR, message); in createFromHttpError()
|
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/ |
D | RkpdExceptionTest.java | 26 import com.android.rkpdapp.RkpdException; 27 import com.android.rkpdapp.RkpdException.ErrorCode; 37 RkpdException ex = RkpdException.createFromHttpError(123); in handlesUnknownHttpStatus() 46 RkpdException ex = RkpdException.createFromHttpError( in handlesServerErrors() 59 RkpdException ex = RkpdException.createFromHttpError( in handlesClientErrors()
|
D | ServerInterfaceTest.java | 30 import com.android.rkpdapp.RkpdException; 84 } catch (RkpdException e) { in testRetryOnServerFailure() 85 assertThat(e.getErrorCode()).isEqualTo(RkpdException.ErrorCode.HTTP_SERVER_ERROR); in testRetryOnServerFailure() 176 } catch (RkpdException e) { in testRequestSignedCertUnregistered() 177 assertThat(e.getErrorCode()).isEqualTo(RkpdException.ErrorCode.DEVICE_NOT_REGISTERED); in testRequestSignedCertUnregistered() 193 } catch (RkpdException e) { in testRequestSignedCertClientError() 194 assertThat(e.getErrorCode()).isEqualTo(RkpdException.ErrorCode.HTTP_CLIENT_ERROR); in testRequestSignedCertClientError() 209 } catch (RkpdException e) { in testRequestSignedCertCborError() 210 assertThat(e.getErrorCode()).isEqualTo(RkpdException.ErrorCode.INTERNAL_ERROR); in testRequestSignedCertCborError() 247 } catch (RkpdException e) { in testDataBudgetEmptyFetchGeekNetworkConnected() [all …]
|
D | RegistrationBinderTest.java | 53 import com.android.rkpdapp.RkpdException; 257 doThrow(new RkpdException(RkpdException.ErrorCode.INTERNAL_ERROR, "FAIL")) 270 doThrow(new RkpdException(RkpdException.ErrorCode.NO_NETWORK_CONNECTIVITY, "FAIL")) 282 private static byte getExpectedGetKeyError(RkpdException.ErrorCode errorCode) { 300 for (RkpdException.ErrorCode errorCode: RkpdException.ErrorCode.values()) { 301 doThrow(new RkpdException(errorCode, errorCode.toString()))
|
D | SystemInterfaceTest.java | 49 import com.android.rkpdapp.RkpdException; 151 public void testGenerateKey() throws CborException, RkpdException, RemoteException { in testGenerateKey() 164 RkpdException { in testGenerateKeyFailureRemoteException() 178 CborException, RkpdException { in testGenerateKeyFailureServiceSpecificException() 363 throw new RkpdException(RkpdException.ErrorCode.INTERNAL_ERROR, in generateEekChain()
|
D | RkpdDatabaseTest.java | 30 import com.android.rkpdapp.RkpdException; 288 public void testAssignKey() throws RkpdException { in testAssignKey() 310 public void testAssignKeyChoosesNonExpiredKey() throws RkpdException { in testAssignKeyChoosesNonExpiredKey() 324 public void testAssignKeyFailsIfAllKeysAreExpired() throws RkpdException { in testAssignKeyFailsIfAllKeysAreExpired()
|
D | ProvisionerTest.java | 38 import com.android.rkpdapp.RkpdException; 135 assertThrows(RkpdException.class, () -> in testProvisionerHandlesExceptionOnGetBatchSize()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/provisioner/ |
D | Provisioner.java | 24 import com.android.rkpdapp.RkpdException; 81 GeekResponse geekResponse) throws CborException, RkpdException, InterruptedException { in provisionKeys() 104 } catch (RkpdException e) { in provisionKeys() 117 throws CborException, RkpdException, InterruptedException { in generateKeys() 128 throws RkpdException, CborException, InterruptedException { in fetchCertificates() 135 throw new RkpdException(RkpdException.ErrorCode.INTERNAL_ERROR, in fetchCertificates() 150 throws RkpdException, CborException, InterruptedException { in batchProvision() 153 throw new RkpdException(RkpdException.ErrorCode.INTERNAL_ERROR, in batchProvision() 158 throw new RkpdException(RkpdException.ErrorCode.INTERNAL_ERROR, in batchProvision() 166 List<RkpKey> keysGenerated) throws RkpdException { in associateCertsWithKeys() [all …]
|
D | PeriodicProvisioner.java | 28 import com.android.rkpdapp.RkpdException; 117 } catch (InterruptedException | RkpdException e) { 146 } catch (InterruptedException | RkpdException e) {
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/utils/ |
D | X509Utils.java | 22 import com.android.rkpdapp.RkpdException; 57 public static X509Certificate[] formatX509Certs(byte[] certStream) throws RkpdException { in formatX509Certs() 66 throw new RkpdException(RkpdException.ErrorCode.INTERNAL_ERROR, in formatX509Certs() 73 throw new RkpdException(RkpdException.ErrorCode.INTERNAL_ERROR, in formatX509Certs()
|
D | CborUtils.java | 25 import com.android.rkpdapp.RkpdException; 299 throws RkpdException { in buildCertificateRequest() 313 throw new RkpdException(RkpdException.ErrorCode.INTERNAL_ERROR, in buildCertificateRequest() 332 throw new RkpdException(RkpdException.ErrorCode.INTERNAL_ERROR, "Malformed CBOR", e); in buildCertificateRequest() 354 MacedPublicKey macedPublicKey) throws CborException, RkpdException { in extractRkpKeyFromMacedKey() 377 MajorType majorType) throws CborException, RkpdException { in decodeCbor() 382 throw new RkpdException(RkpdException.ErrorCode.INTERNAL_ERROR, debugName in decodeCbor()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/ |
D | RegistrationBinder.java | 31 import com.android.rkpdapp.RkpdException; 86 throws CborException, InterruptedException, RkpdException { in getKeyWorker() 143 throws CborException, RkpdException, InterruptedException { in fetchGeekAndProvisionKeys() 188 } catch (CborException | RkpdException | InterruptedException e) { in provisionKeysOnKeyConsumed() 241 } catch (RkpdException e) { in getKeyThreadWorker() 262 private byte mapToGetKeyError(RkpdException e, RkpdClientOperation metric) { in mapToGetKeyError()
|