Home
last modified time | relevance | path

Searched refs:SdkSandboxManager (Results 1 – 25 of 67) sorted by relevance

123

/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/
DSdkSandboxManagerResultCodeLoggingUnitTest.java25 import static android.app.sdksandbox.SdkSandboxManager.LOAD_SDK_ALREADY_LOADED;
26 import static android.app.sdksandbox.SdkSandboxManager.LOAD_SDK_INTERNAL_ERROR;
27 import static android.app.sdksandbox.SdkSandboxManager.LOAD_SDK_NOT_FOUND;
28 import static android.app.sdksandbox.SdkSandboxManager.LOAD_SDK_SDK_DEFINED_ERROR;
29 import static android.app.sdksandbox.SdkSandboxManager.LOAD_SDK_SDK_SANDBOX_DISABLED;
30 import static android.app.sdksandbox.SdkSandboxManager.SDK_SANDBOX_PROCESS_NOT_AVAILABLE;
53 @SdkSandboxManager.LoadSdkErrorCode
79 private SdkSandboxManager mSdkSandboxManager;
89 mSdkSandboxManager = new SdkSandboxManager(context, mBinder); in setup()
DSdkSandboxManagerUnitTest.java19 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_DISPLAY_ID;
20 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_HEIGHT_IN_PIXELS;
21 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_HOST_TOKEN;
22 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_SURFACE_PACKAGE;
23 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_WIDTH_IN_PIXELS;
24 import static android.app.sdksandbox.SdkSandboxManager.LOAD_SDK_NOT_FOUND;
25 import static android.app.sdksandbox.SdkSandboxManager.REQUEST_SURFACE_PACKAGE_INTERNAL_ERROR;
69 private SdkSandboxManager mSdkSandboxManager;
83 mSdkSandboxManager = new SdkSandboxManager(mContext, mBinder); in setup()
90 assertThat(SdkSandboxManager.getSdkSandboxState()) in testGetSdkSandboxState()
[all …]
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DLoadSdkSession.java19 import static android.app.sdksandbox.SdkSandboxManager.REQUEST_SURFACE_PACKAGE_SDK_NOT_LOADED;
20 import static android.app.sdksandbox.SdkSandboxManager.SDK_SANDBOX_PROCESS_NOT_AVAILABLE;
32 import android.app.sdksandbox.SdkSandboxManager;
253 new LoadSdkException(SdkSandboxManager.LOAD_SDK_INTERNAL_ERROR, errorMsg), in load()
537 @SdkSandboxManager.LoadSdkErrorCode in updateLoadSdkErrorCode()
546 @SdkSandboxManager.LoadSdkErrorCode
550 return SdkSandboxManager.LOAD_SDK_ALREADY_LOADED; in toSdkSandboxManagerLoadSdkErrorCode()
552 return SdkSandboxManager.LOAD_SDK_NOT_FOUND; in toSdkSandboxManagerLoadSdkErrorCode()
556 return SdkSandboxManager.LOAD_SDK_INTERNAL_ERROR; in toSdkSandboxManagerLoadSdkErrorCode()
557 case SdkSandboxManager.LOAD_SDK_SDK_DEFINED_ERROR: in toSdkSandboxManagerLoadSdkErrorCode()
[all …]
/packages/modules/AdServices/sdksandbox/framework/java/android/app/sdksandbox/
DLoadSdkException.java28 @SdkSandboxManager.LoadSdkErrorCode private final int mLoadSdkErrorCode;
39 this(SdkSandboxManager.LOAD_SDK_SDK_DEFINED_ERROR, cause.getMessage(), cause, extraInfo); in LoadSdkException()
51 @SdkSandboxManager.LoadSdkErrorCode int loadSdkErrorCode, @Nullable String message) { in LoadSdkException()
67 @SdkSandboxManager.LoadSdkErrorCode int loadSdkErrorCode, in LoadSdkException()
87 @SdkSandboxManager.LoadSdkErrorCode int loadSdkErrorCode, in LoadSdkException()
118 @SdkSandboxManager.LoadSdkErrorCode
DRequestSurfacePackageException.java32 private final @SdkSandboxManager.RequestSurfacePackageErrorCode int
44 @SdkSandboxManager.RequestSurfacePackageErrorCode int requestSurfacePackageErrorCode, in RequestSurfacePackageException()
61 @SdkSandboxManager.RequestSurfacePackageErrorCode int requestSurfacePackageErrorCode, in RequestSurfacePackageException()
80 @SdkSandboxManager.RequestSurfacePackageErrorCode int requestSurfacePackageErrorCode, in RequestSurfacePackageException()
93 public @SdkSandboxManager.RequestSurfacePackageErrorCode int
DSdkSandboxManagerFrameworkInitializer.java19 import static android.app.sdksandbox.SdkSandboxManager.SDK_SANDBOX_SERVICE;
47 SDK_SANDBOX_SERVICE, SdkSandboxManager.class, in registerServiceWrappers()
48 (context, service) -> new SdkSandboxManager( in registerServiceWrappers()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/sdkprovider/
DSdkSandboxControllerResultCodeLoggingUnitTest.java25 import static android.app.sdksandbox.SdkSandboxManager.LOAD_SDK_ALREADY_LOADED;
26 import static android.app.sdksandbox.SdkSandboxManager.LOAD_SDK_INTERNAL_ERROR;
27 import static android.app.sdksandbox.SdkSandboxManager.LOAD_SDK_NOT_FOUND;
28 import static android.app.sdksandbox.SdkSandboxManager.LOAD_SDK_SDK_DEFINED_ERROR;
29 import static android.app.sdksandbox.SdkSandboxManager.LOAD_SDK_SDK_SANDBOX_DISABLED;
30 import static android.app.sdksandbox.SdkSandboxManager.SDK_SANDBOX_PROCESS_NOT_AVAILABLE;
40 import android.app.sdksandbox.SdkSandboxManager;
66 @SdkSandboxManager.LoadSdkErrorCode
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxWebViewClient/src/com/android/sdksandboxwebviewclient/
DMainActivity.java19 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_DISPLAY_ID;
20 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_HEIGHT_IN_PIXELS;
21 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_HOST_TOKEN;
22 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_SURFACE_PACKAGE;
23 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_WIDTH_IN_PIXELS;
30 import android.app.sdksandbox.SdkSandboxManager;
53 private SdkSandboxManager mSdkSandboxManager;
67 mSdkSandboxManager = getApplicationContext().getSystemService(SdkSandboxManager.class); in onCreate()
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/testutils/
DSdkSandboxUiTestRule.java19 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_DISPLAY_ID;
20 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_HEIGHT_IN_PIXELS;
21 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_HOST_TOKEN;
22 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_WIDTH_IN_PIXELS;
28 import android.app.sdksandbox.SdkSandboxManager;
157 final SdkSandboxManager mSdkSandboxManager;
164 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in LoadSdkInSandboxRule()
DSdkLifecycleHelper.java19 import android.app.sdksandbox.SdkSandboxManager;
25 private final SdkSandboxManager mSdkSandboxManager;
28 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in SdkLifecycleHelper()
/packages/modules/AdServices/sdksandbox/tests/testutils/testscenario/testrule/src/android/app/sdksandbox/testutils/testscenario/
DSdkSandboxScenarioRule.java19 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_DISPLAY_ID;
20 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_HEIGHT_IN_PIXELS;
21 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_HOST_TOKEN;
22 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_WIDTH_IN_PIXELS;
29 import android.app.sdksandbox.SdkSandboxManager;
89 private SdkSandboxManager mSdkSandboxManager;
124 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in apply()
271 if (callback.getLoadSdkErrorCode() != SdkSandboxManager.LOAD_SDK_SDK_SANDBOX_DISABLED) {
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxClient_SharedUid/src/com/android/sdksandboxclient_shareduid/
DMainActivity.java19 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_DISPLAY_ID;
20 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_HEIGHT_IN_PIXELS;
21 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_HOST_TOKEN;
22 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_SURFACE_PACKAGE;
23 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_WIDTH_IN_PIXELS;
31 import android.app.sdksandbox.SdkSandboxManager;
66 private SdkSandboxManager mSdkSandboxManager;
83 mSdkSandboxManager = getApplicationContext().getSystemService(SdkSandboxManager.class); in onCreate()
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/
DSdkSandboxValidationOverTTests.java23 import android.app.sdksandbox.SdkSandboxManager;
58 SdkSandboxManager sdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in testSdkSandboxDisabledOnT()
65 .isEqualTo(SdkSandboxManager.LOAD_SDK_SDK_SANDBOX_DISABLED); in testSdkSandboxDisabledOnT()
DCtsSmallModuleTests.java22 import android.app.sdksandbox.SdkSandboxManager;
53 private SdkSandboxManager mSdkSandboxManager;
59 mSdkSandboxManager = mContext.getSystemService(SdkSandboxManager.class); in setup()
71 .isEqualTo(SdkSandboxManager.LOAD_SDK_SDK_SANDBOX_DISABLED); in testLoadSdk()
DSandboxKillerBeforeTest.java19 import android.app.sdksandbox.SdkSandboxManager;
32 private SdkSandboxManager mSdkSandboxManager;
37 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in killSandboxBeforeTest()
DSdkSandboxManagerTest.java19 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_DISPLAY_ID;
20 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_HEIGHT_IN_PIXELS;
21 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_HOST_TOKEN;
22 import static android.app.sdksandbox.SdkSandboxManager.EXTRA_WIDTH_IN_PIXELS;
23 import static android.app.sdksandbox.SdkSandboxManager.LOAD_SDK_INTERNAL_ERROR;
47 import android.app.sdksandbox.SdkSandboxManager;
141 private SdkSandboxManager mSdkSandboxManager;
158 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in setup()
188 int state = SdkSandboxManager.getSdkSandboxState(); in testGetSdkSandboxState()
189 assertThat(state).isEqualTo(SdkSandboxManager.SDK_SANDBOX_STATE_ENABLED_PROCESS_ISOLATION); in testGetSdkSandboxState()
[all …]
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/disablede2e/
DSdkSandboxManagerDisabledTest.java21 import android.app.sdksandbox.SdkSandboxManager;
47 private SdkSandboxManager mSdkSandboxManager;
54 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in setup()
65 .isEqualTo(SdkSandboxManager.LOAD_SDK_SDK_SANDBOX_DISABLED); in testSdkSandboxDisabledErrorCode()
/packages/modules/AdServices/sdksandbox/tests/perf/scenarios/helpers/cujclient/src/android/sdksandbox/test/scenario/cujclient/
DLoadEmptySdkActivity.java19 import android.app.sdksandbox.SdkSandboxManager;
32 SdkSandboxManager sdkSandboxManager = getSystemService(SdkSandboxManager.class); in onCreate()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/app/src/com/android/sdksandbox/debuggable/
DSdkSandboxTestDebuggableActivity.java20 import android.app.sdksandbox.SdkSandboxManager;
32 SdkSandboxManager sdkSandboxManager = in onCreate()
33 getApplicationContext().getSystemService(SdkSandboxManager.class); in onCreate()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/app/src/com/android/sdksandbox/app2/
DSdkSandboxTestActivity2.java20 import android.app.sdksandbox.SdkSandboxManager;
32 SdkSandboxManager sdkSandboxManager = in onCreate()
33 getApplicationContext().getSystemService(SdkSandboxManager.class); in onCreate()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/app/src/com/android/sdksandbox/shared/app1/
DSdkSandboxTestSharedActivity.java20 import android.app.sdksandbox.SdkSandboxManager;
32 SdkSandboxManager sdkSandboxManager = in onCreate()
33 getApplicationContext().getSystemService(SdkSandboxManager.class); in onCreate()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/app/src/com/android/sdksandbox/app/
DSdkSandboxTestActivity.java20 import android.app.sdksandbox.SdkSandboxManager;
37 SdkSandboxManager sdkSandboxManager = in onCreate()
38 getApplicationContext().getSystemService(SdkSandboxManager.class); in onCreate()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxMetricsHostTest/app/src/com/android/tests/sdksandbox/secondary/
DSdkSandboxMetricsSecondaryTestApp.java21 import android.app.sdksandbox.SdkSandboxManager;
41 private SdkSandboxManager mSdkSandboxManager;
49 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in setup()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/app/src/com/android/sdksandbox/shared/app2/
DSdkSandboxTestSharedApp2.java22 import android.app.sdksandbox.SdkSandboxManager;
43 private SdkSandboxManager mSdkSandboxManager;
53 SdkSandboxManager.class); in setup()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxSmallModuleHostTest/app/src/com/android/tests/sdksandbox/
DSdkSandboxSmallModuleTestApp.java21 import android.app.sdksandbox.SdkSandboxManager;
70 private SdkSandboxManager mSdkSandboxManager;
79 mSdkSandboxManager = mContext.getSystemService(SdkSandboxManager.class); in setup()
145 .isEqualTo(SdkSandboxManager.LOAD_SDK_SDK_SANDBOX_DISABLED); in testLoadSdkWithoutAdServiceApk()

123