Searched refs:ProvisioningAttempt (Results 1 – 10 of 10) sorted by relevance
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/interfaces/ |
D | ServerInterface.java | 33 import com.android.rkpdapp.metrics.ProvisioningAttempt; 93 public ProvisioningAttempt.Status getHttpErrorStatus() { in getHttpErrorStatus() 95 return ProvisioningAttempt.Status.FETCH_GEEK_HTTP_ERROR; in getHttpErrorStatus() 97 return ProvisioningAttempt.Status.SIGN_CERTS_HTTP_ERROR; in getHttpErrorStatus() 102 public ProvisioningAttempt.Status getIoExceptionStatus() { in getIoExceptionStatus() 104 return ProvisioningAttempt.Status.FETCH_GEEK_IO_EXCEPTION; in getIoExceptionStatus() 106 return ProvisioningAttempt.Status.SIGN_CERTS_IO_EXCEPTION; in getIoExceptionStatus() 111 public ProvisioningAttempt.Status getTimedOutStatus() { in getTimedOutStatus() 113 return ProvisioningAttempt.Status.FETCH_GEEK_TIMED_OUT; in getTimedOutStatus() 115 return ProvisioningAttempt.Status.SIGN_CERTS_TIMED_OUT; in getTimedOutStatus() [all …]
|
D | SystemInterface.java | 31 import com.android.rkpdapp.metrics.ProvisioningAttempt; 83 public RkpKey generateKey(ProvisioningAttempt metrics) throws CborException, RkpdException { in generateKey() 89 metrics.setStatus(ProvisioningAttempt.Status.GENERATE_KEYPAIR_FAILED); in generateKey() 93 metrics.setStatus(ProvisioningAttempt.Status.GENERATE_KEYPAIR_FAILED); in generateKey() 97 metrics.setStatus(ProvisioningAttempt.Status.GENERATE_KEYPAIR_FAILED); in generateKey() 109 public byte[] generateCsr(ProvisioningAttempt metrics, GeekResponse geekResponse, in generateCsr() 144 metrics.setStatus(ProvisioningAttempt.Status.GENERATE_CSR_FAILED); in generateCsr() 155 metrics.setStatus(ProvisioningAttempt.Status.GENERATE_CSR_FAILED); in generateCsr() 159 metrics.setStatus(ProvisioningAttempt.Status.GENERATE_CSR_FAILED); in generateCsr() 163 metrics.setStatus(ProvisioningAttempt.Status.GENERATE_CSR_FAILED); in generateCsr()
|
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/ |
D | ServerInterfaceTest.java | 32 import com.android.rkpdapp.metrics.ProvisioningAttempt; 82 ProvisioningAttempt.createScheduledAttemptMetrics(sContext)); in testRetryOnServerFailure() 98 ProvisioningAttempt.createScheduledAttemptMetrics(sContext)); in testFetchGeekRkpDisabled() 114 ProvisioningAttempt.createScheduledAttemptMetrics(sContext)); in testFetchGeekRkpEnabled() 158 ProvisioningAttempt.createScheduledAttemptMetrics(sContext)); in testFetchKeyAndUpdate() 172 ProvisioningAttempt metrics = ProvisioningAttempt.createScheduledAttemptMetrics( in testRequestSignedCertUnregistered() 189 ProvisioningAttempt metrics = ProvisioningAttempt.createScheduledAttemptMetrics( in testRequestSignedCertClientError() 205 ProvisioningAttempt metrics = ProvisioningAttempt.createScheduledAttemptMetrics( in testRequestSignedCertCborError() 222 ProvisioningAttempt metrics = ProvisioningAttempt.createScheduledAttemptMetrics( in testRequestSignedCertValid() 242 ProvisioningAttempt metrics = ProvisioningAttempt.createScheduledAttemptMetrics( in testDataBudgetEmptyFetchGeekNetworkConnected() [all …]
|
D | SystemInterfaceTest.java | 54 import com.android.rkpdapp.metrics.ProvisioningAttempt; 155 ProvisioningAttempt metrics = ProvisioningAttempt.createScheduledAttemptMetrics( in testGenerateKey() 166 ProvisioningAttempt metrics = ProvisioningAttempt.createScheduledAttemptMetrics( in testGenerateKeyFailureRemoteException() 181 ProvisioningAttempt metrics = ProvisioningAttempt.createScheduledAttemptMetrics( in testGenerateKeyFailureServiceSpecificException() 197 ProvisioningAttempt metrics = ProvisioningAttempt.createOutOfKeysAttemptMetrics( in testGenerateCSRPreV3P256() 223 ProvisioningAttempt metrics = ProvisioningAttempt.createOutOfKeysAttemptMetrics( in testGenerateCSRPreV3Ed25519() 248 ProvisioningAttempt metrics = ProvisioningAttempt.createOutOfKeysAttemptMetrics( in testGenerateCSRv3()
|
D | ProvisionerTest.java | 44 import com.android.rkpdapp.metrics.ProvisioningAttempt; 105 ProvisioningAttempt atom = ProvisioningAttempt.createScheduledAttemptMetrics(sContext); in testProvisionerUsesCorrectBatchSize() 127 ProvisioningAttempt atom = ProvisioningAttempt.createScheduledAttemptMetrics(sContext); in testProvisionerHandlesExceptionOnGetBatchSize()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/provisioner/ |
D | Provisioner.java | 31 import com.android.rkpdapp.metrics.ProvisioningAttempt; 73 public boolean isProvisioningNeeded(ProvisioningAttempt metrics, String serviceName) { in isProvisioningNeeded() 80 public void provisionKeys(ProvisioningAttempt metrics, SystemInterface systemInterface, in provisionKeys() 87 metrics.setStatus(ProvisioningAttempt.Status.NO_PROVISIONING_NEEDED); in provisionKeys() 100 metrics.setStatus(ProvisioningAttempt.Status.KEYS_SUCCESSFULLY_PROVISIONED); in provisionKeys() 102 metrics.setStatus(ProvisioningAttempt.Status.INTERRUPTED); in provisionKeys() 115 private List<RkpKey> generateKeys(ProvisioningAttempt metrics, int numKeysRequired, in generateKeys() 126 private List<byte[]> fetchCertificates(ProvisioningAttempt metrics, List<RkpKey> keysGenerated, in fetchCertificates() 147 private List<byte[]> batchProvision(ProvisioningAttempt metrics, in batchProvision() 193 private int calculateKeysRequired(ProvisioningAttempt metrics, String serviceName) { in calculateKeysRequired()
|
D | PeriodicProvisioner.java | 34 import com.android.rkpdapp.metrics.ProvisioningAttempt; 108 try (ProvisioningAttempt metrics = ProvisioningAttempt.createScheduledAttemptMetrics( 124 metrics.setEnablement(ProvisioningAttempt.Enablement.DISABLED); 125 metrics.setStatus(ProvisioningAttempt.Status.PROVISIONING_DISABLED);
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/metrics/ |
D | ProvisioningAttempt.java | 37 public final class ProvisioningAttempt implements AutoCloseable { class 84 private ProvisioningAttempt(Context context, int cause, in ProvisioningAttempt() method in ProvisioningAttempt 94 public static ProvisioningAttempt createScheduledAttemptMetrics(Context context) { in createScheduledAttemptMetrics() 99 return new ProvisioningAttempt( in createScheduledAttemptMetrics() 107 public static ProvisioningAttempt createKeyConsumedAttemptMetrics(Context context, in createKeyConsumedAttemptMetrics() 109 return new ProvisioningAttempt( in createKeyConsumedAttemptMetrics() 117 public static ProvisioningAttempt createOutOfKeysAttemptMetrics(Context context, in createOutOfKeysAttemptMetrics() 119 return new ProvisioningAttempt( in createOutOfKeysAttemptMetrics()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/ |
D | RegistrationBinder.java | 36 import com.android.rkpdapp.metrics.ProvisioningAttempt; 115 try (ProvisioningAttempt metrics = ProvisioningAttempt.createOutOfKeysAttemptMetrics( in getKeyWorker() 142 private void fetchGeekAndProvisionKeys(ProvisioningAttempt metrics) in fetchGeekAndProvisionKeys() 147 metrics.setEnablement(ProvisioningAttempt.Enablement.DISABLED); in fetchGeekAndProvisionKeys() 148 metrics.setStatus(ProvisioningAttempt.Status.PROVISIONING_DISABLED); in fetchGeekAndProvisionKeys() 178 try (ProvisioningAttempt metrics = ProvisioningAttempt.createKeyConsumedAttemptMetrics( in provisionKeysOnKeyConsumed() 181 metrics.setStatus(ProvisioningAttempt.Status.NO_PROVISIONING_NEEDED); in provisionKeysOnKeyConsumed()
|
/packages/modules/RemoteKeyProvisioning/app/ |
D | proguard.flags | 1 -keep class com.android.rkpdapp.metrics.ProvisioningAttempt { *; }
|