Home
last modified time | relevance | path

Searched refs:surfacePackageCallback (Results 1 – 4 of 4) sorted by relevance

/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DLoadSdkSessionUnitTest.java382 FakeRequestSurfacePackageCallbackBinder surfacePackageCallback = in testRequestSurfacePackage() local
391 surfacePackageCallback); in testRequestSurfacePackage()
393 assertThat(surfacePackageCallback.isRequestSurfacePackageSuccessful()).isTrue(); in testRequestSurfacePackage()
410 FakeRequestSurfacePackageCallbackBinder surfacePackageCallback = in testRequestPackage_SdkNotLoaded() local
419 surfacePackageCallback); in testRequestPackage_SdkNotLoaded()
421 assertThat(surfacePackageCallback.isRequestSurfacePackageSuccessful()).isFalse(); in testRequestPackage_SdkNotLoaded()
422 assertThat(surfacePackageCallback.getSurfacePackageErrorCode()) in testRequestPackage_SdkNotLoaded()
432 FakeRequestSurfacePackageCallbackBinder surfacePackageCallback = in testRequestSurfacePackage_SandboxDiesInBetween() local
441 surfacePackageCallback); in testRequestSurfacePackage_SandboxDiesInBetween()
445 assertThat(surfacePackageCallback.isRequestSurfacePackageSuccessful()).isFalse(); in testRequestSurfacePackage_SandboxDiesInBetween()
DSdkSandboxManagerServiceUnitTest.java663 FakeRequestSurfacePackageCallbackBinder surfacePackageCallback = in testRequestSurfacePackageSdkNotLoaded_SandboxExists() local
674 surfacePackageCallback); in testRequestSurfacePackageSdkNotLoaded_SandboxExists()
675 assertThat(surfacePackageCallback.isRequestSurfacePackageSuccessful()).isFalse(); in testRequestSurfacePackageSdkNotLoaded_SandboxExists()
676 assertThat(surfacePackageCallback.getSurfacePackageErrorCode()) in testRequestSurfacePackageSdkNotLoaded_SandboxExists()
709 FakeRequestSurfacePackageCallbackBinder surfacePackageCallback = in testRequestSurfacePackage() local
720 surfacePackageCallback); in testRequestSurfacePackage()
722 assertThat(surfacePackageCallback.isRequestSurfacePackageSuccessful()).isTrue(); in testRequestSurfacePackage()
769 FakeRequestSurfacePackageCallbackBinder surfacePackageCallback = in testSurfacePackageError() local
774 surfacePackageCallback); in testSurfacePackageError()
775 assertThat(surfacePackageCallback.getSurfacePackageErrorMsg()).contains("bad surface"); in testSurfacePackageError()
[all …]
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/
DSdkSandboxManagerTest.java395 final FakeRequestSurfacePackageCallback surfacePackageCallback = in testReloadingSdkDoesNotInvalidateIt() local
401 surfacePackageCallback); in testReloadingSdkDoesNotInvalidateIt()
402 assertThat(surfacePackageCallback.isRequestSurfacePackageSuccessful()).isTrue(); in testReloadingSdkDoesNotInvalidateIt()
503 final FakeRequestSurfacePackageCallback surfacePackageCallback = in testRequestSurfacePackageSuccessfully() local
509 surfacePackageCallback); in testRequestSurfacePackageSuccessfully()
510 assertThat(surfacePackageCallback.isRequestSurfacePackageSuccessful()).isTrue(); in testRequestSurfacePackageSuccessfully()
517 final FakeRequestSurfacePackageCallback surfacePackageCallback = in testRequestSurfacePackageWithInternalErrorShouldFail() local
522 SDK_NAME_1, params, Runnable::run, surfacePackageCallback); in testRequestSurfacePackageWithInternalErrorShouldFail()
523 assertThat(surfacePackageCallback.isRequestSurfacePackageSuccessful()).isFalse(); in testRequestSurfacePackageWithInternalErrorShouldFail()
524 assertThat(surfacePackageCallback.getSurfacePackageErrorCode()) in testRequestSurfacePackageWithInternalErrorShouldFail()
[all …]
/packages/modules/AdServices/sdksandbox/tests/testutils/testscenario/testrule/src/android/app/sdksandbox/testutils/testscenario/
DSdkSandboxScenarioRule.java290 final FakeRequestSurfacePackageCallback surfacePackageCallback =
300 mSdkName, params, Runnable::run, surfacePackageCallback);
302 if (!surfacePackageCallback.isRequestSurfacePackageSuccessful()) {
304 surfacePackageCallback.getSurfacePackageException());
307 surfacePackageCallback.getSurfacePackage());