Searched refs:IGetKeyCallback (Results 1 – 7 of 7) sorted by relevance
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/ |
D | RegistrationBinderTest.java | 50 import com.android.rkpdapp.IGetKeyCallback; 157 IGetKeyCallback callback = mock(IGetKeyCallback.class); 172 IGetKeyCallback callback = mock(IGetKeyCallback.class); 188 IGetKeyCallback callback = mock(IGetKeyCallback.class); 206 IGetKeyCallback callback = mock(IGetKeyCallback.class); 228 IGetKeyCallback callback = mock(IGetKeyCallback.class); 245 IGetKeyCallback callback = mock(IGetKeyCallback.class); 249 verify(callback).onError(IGetKeyCallback.Error.ERROR_UNKNOWN, "PROVISIONING FAIL"); 261 IGetKeyCallback callback = mock(IGetKeyCallback.class); 265 verify(callback).onError(IGetKeyCallback.Error.ERROR_UNKNOWN, "FAIL"); [all …]
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/ |
D | RegistrationBinder.java | 27 import com.android.rkpdapp.IGetKeyCallback; 85 private void getKeyWorker(int keyId, IGetKeyCallback callback) in getKeyWorker() 131 checkedCallback(() -> callback.onError(IGetKeyCallback.Error.ERROR_UNKNOWN, in getKeyWorker() 215 public void getKey(int keyId, IGetKeyCallback callback) { in getKey() 227 private void getKeyThreadWorker(int keyId, IGetKeyCallback callback) { in getKeyThreadWorker() 251 checkedCallback(() -> callback.onError(IGetKeyCallback.Error.ERROR_UNKNOWN, in getKeyThreadWorker() 266 return IGetKeyCallback.Error.ERROR_PENDING_INTERNET_CONNECTIVITY; in mapToGetKeyError() 270 return IGetKeyCallback.Error.ERROR_PERMANENT; in mapToGetKeyError() 274 return IGetKeyCallback.Error.ERROR_UNKNOWN; in mapToGetKeyError() 281 return IGetKeyCallback.Error.ERROR_UNKNOWN; in mapToGetKeyError() [all …]
|
/packages/modules/RemoteKeyProvisioning/app/aidl/com/android/rkpdapp/ |
D | IRegistration.aidl | 19 import com.android.rkpdapp.IGetKeyCallback; 55 void getKey(int keyId, IGetKeyCallback callback); in getKey() 61 void cancelGetKey(IGetKeyCallback callback); in cancelGetKey()
|
D | IGetKeyCallback.aidl | 27 oneway interface IGetKeyCallback { interface
|
/packages/modules/RemoteKeyProvisioning/system-server/src/android/security/rkp/service/ |
D | RegistrationProxy.java | 43 import com.android.rkpdapp.IGetKeyCallback; 242 final var callback = new IGetKeyCallback.Stub() { in getKeyAsync() 344 case IGetKeyCallback.Error.ERROR_REQUIRES_SECURITY_PATCH: in convertGetKeyError() 346 case IGetKeyCallback.Error.ERROR_PENDING_INTERNET_CONNECTIVITY: in convertGetKeyError() 348 case IGetKeyCallback.Error.ERROR_PERMANENT: in convertGetKeyError() 350 case IGetKeyCallback.Error.ERROR_UNKNOWN: in convertGetKeyError()
|
/packages/modules/RemoteKeyProvisioning/system-server/tests/unit/src/android/security/rkp/service/test/ |
D | RegistrationProxyTests.java | 57 import com.android.rkpdapp.IGetKeyCallback; 331 doAnswer(answerVoid((keyId, callback) -> ((IGetKeyCallback) callback).onSuccess(fakeKey))) in getKeyAsyncSuccess() 355 doAnswer(answerVoid(callback -> ((IGetKeyCallback) callback).onCancel())) in getKeyAsyncCancelRequest() 380 ((IGetKeyCallback) callback).onSuccess(new RemotelyProvisionedKey()))) in getKeyAsyncCancelAfterComplete() 409 final byte errorCode = IGetKeyCallback.Error.ERROR_PERMANENT; in getKeyAsyncHandleError() 412 ((IGetKeyCallback) callback).onError(errorCode, errorMsg))) in getKeyAsyncHandleError() 438 IGetKeyCallback.Error.ERROR_UNKNOWN, in getKeyAsyncCorrectlyMapsErrorCodes() 440 IGetKeyCallback.Error.ERROR_PENDING_INTERNET_CONNECTIVITY, in getKeyAsyncCorrectlyMapsErrorCodes() 442 IGetKeyCallback.Error.ERROR_REQUIRES_SECURITY_PATCH, in getKeyAsyncCorrectlyMapsErrorCodes() 444 IGetKeyCallback.Error.ERROR_PERMANENT, in getKeyAsyncCorrectlyMapsErrorCodes() [all …]
|
/packages/modules/RemoteKeyProvisioning/app/tests/stress/src/com/android/rkpdapp/stress/ |
D | RegistrationBinderStressTest.java | 32 import com.android.rkpdapp.IGetKeyCallback; 94 binder.getKey(keyId, new IGetKeyCallback.Stub() { in getKeyHelper()
|