Home
last modified time | relevance | path

Searched refs:mSdkSandboxManager (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/
DSdkSandboxMediationTest.java77 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxMediationTest
82 mSdkSandboxManager = mContext.getSystemService(SdkSandboxManager.class); in setup()
83 assertThat(mSdkSandboxManager).isNotNull(); in setup()
87 mSdkSandboxManager.unloadSdk(MEDIATOR_SDK_NAME); in setup()
88 mSdkSandboxManager.unloadSdk(MEDIATEE_SDK_NAME); in setup()
89 mSdkSandboxManager.unregisterAppOwnedSdkSandboxInterface( in setup()
91 mSdkSandboxManager.unregisterAppOwnedSdkSandboxInterface( in setup()
98 if (mSdkSandboxManager != null) { in tearDown()
99 mSdkSandboxManager.unloadSdk(MEDIATOR_SDK_NAME); in tearDown()
100 mSdkSandboxManager.unloadSdk(MEDIATEE_SDK_NAME); in tearDown()
[all …]
DSdkSandboxManagerTest.java141 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxManagerTest
158 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in setup()
195 mSdkSandboxManager.loadSdk(SDK_NAME_1, new Bundle(), Runnable::run, callback); in testLoadSdkSuccessfully()
205 mSdkSandboxManager.registerAppOwnedSdkSandboxInterface( in testRegisterAndGetAppOwnedSdkSandboxInterface()
211 mSdkSandboxManager.getAppOwnedSdkSandboxInterfaces(); in testRegisterAndGetAppOwnedSdkSandboxInterface()
218 mSdkSandboxManager.unregisterAppOwnedSdkSandboxInterface( in testRegisterAndGetAppOwnedSdkSandboxInterface()
225 mSdkSandboxManager.registerAppOwnedSdkSandboxInterface( in testUnregisterAppOwnedSdkSandboxInterface()
230 mSdkSandboxManager.unregisterAppOwnedSdkSandboxInterface( in testUnregisterAppOwnedSdkSandboxInterface()
232 assertThat(mSdkSandboxManager.getAppOwnedSdkSandboxInterfaces()).hasSize(0); in testUnregisterAppOwnedSdkSandboxInterface()
238 mSdkSandboxManager.registerAppOwnedSdkSandboxInterface( in testRegisterAppOwnedSdkSandboxInterfaceAlreadyRegistered()
[all …]
DSandboxKillerBeforeTest.java32 private SdkSandboxManager mSdkSandboxManager; field in SandboxKillerBeforeTest
37 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in killSandboxBeforeTest()
44 mSdkSandboxManager.addSdkSandboxProcessDeathCallback(Runnable::run, callback); in killSandboxIfExists()
53 mSdkSandboxManager.getClass().getMethod("stopSdkSandbox").invoke(mSdkSandboxManager); in killSandbox()
DCustomizedSdkContextTest.java62 private SdkSandboxManager mSdkSandboxManager; field in CustomizedSdkContextTest
69 mSdkSandboxManager = mContext.getSystemService(SdkSandboxManager.class); in setup()
123 mSdkSandboxManager.unloadSdk(SDK_NAME_1); in testSdkContextInstances()
174 mSdkSandboxManager.loadSdk(SDK_NAME_1, new Bundle(), Runnable::run, callback); in loadSdk()
183 mSdkSandboxManager.loadSdk(SDK_NAME_2, new Bundle(), Runnable::run, callback); in loadEmptySdk()
DSdkSandboxControllerTest.java68 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxControllerTest
74 mSdkSandboxManager = mContext.getSystemService(SdkSandboxManager.class); in setup()
81 mSdkSandboxManager.unloadSdk(SDK_NAME); in tearDown()
142 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in loadSdk()
DSdkSandboxStorageTest.java64 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxStorageTest
70 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in setup()
77 mSdkSandboxManager.unloadSdk(SDK_NAME_1); in teardown()
137 mSdkSandboxManager.loadSdk(SDK_NAME_1, new Bundle(), Runnable::run, callback); in loadSdk()
DSdkSandboxMediaTest.java59 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxMediaTest
65 mSdkSandboxManager = mContext.getSystemService(SdkSandboxManager.class); in setup()
83 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in loadSdk()
DCtsSmallModuleTests.java53 private SdkSandboxManager mSdkSandboxManager; field in CtsSmallModuleTests
59 mSdkSandboxManager = mContext.getSystemService(SdkSandboxManager.class); in setup()
66 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in testLoadSdk()
DSdkSandboxCapabilitiesTest.java66 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxCapabilitiesTest
71 mSdkSandboxManager = mContext.getSystemService(SdkSandboxManager.class); in setup()
92 mSdkSandboxManager.loadSdk(SDK_NAME_1, new Bundle(), Runnable::run, callback); in loadSdk()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/app/src/com/android/sdksandbox/shared/app2/
DSdkSandboxTestSharedApp2.java43 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxTestSharedApp2
52 mSdkSandboxManager = sContext.getSystemService( in setup()
54 assertThat(mSdkSandboxManager).isNotNull(); in setup()
63 mSdkSandboxManager.loadSdk(SDK_PACKAGE_NAME, params, Runnable::run, callback); in testLoadSdkIsSuccessful()
71 mSdkSandboxManager.registerAppOwnedSdkSandboxInterface( in testRegisterAppOwedSdkSandboxInterfacesBeforeAppDeath()
76 assertThat(mSdkSandboxManager.getAppOwnedSdkSandboxInterfaces()).hasSize(1); in testRegisterAppOwedSdkSandboxInterfacesBeforeAppDeath()
83 assertThat(mSdkSandboxManager.getAppOwnedSdkSandboxInterfaces()).hasSize(0); in testGetAppOwedSdkSandboxInterfacesOnAppDeath()
/packages/modules/AdServices/sdksandbox/tests/cts/hostside/app/src/com/android/sdksandbox/cts/app/
DCtsSdkSandboxStorageTestApp.java57 private SdkSandboxManager mSdkSandboxManager; field in CtsSdkSandboxStorageTestApp
64 mSdkSandboxManager = mContext.getSystemService(SdkSandboxManager.class); in setup()
66 assertThat(mSdkSandboxManager).isNotNull(); in setup()
83 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in loadSdk()
99 mSdkSandboxManager.addSyncedSharedPreferencesKeys(Set.of(KEY_TO_SYNC)); in testSharedPreferences_IsSyncedFromAppToSandbox()
113 mSdkSandboxManager.addSyncedSharedPreferencesKeys(Set.of(KEY_TO_SYNC)); in testSharedPreferences_SyncPropagatesUpdates()
138 mSdkSandboxManager.addSyncedSharedPreferencesKeys(Set.of(KEY_TO_SYNC)); in testSharedPreferences_SyncStartedBeforeLoadingSdk()
159 mSdkSandboxManager.addSyncedSharedPreferencesKeys(Set.of(KEY_TO_SYNC)); in testSharedPreferences_SyncRemoveKeys()
162 mSdkSandboxManager.removeSyncedSharedPreferencesKeys(Set.of(KEY_TO_SYNC)); in testSharedPreferences_SyncRemoveKeys()
DCtsSdkSandboxMediaTestApp.java53 private SdkSandboxManager mSdkSandboxManager; field in CtsSdkSandboxMediaTestApp
59 mSdkSandboxManager = mContext.getSystemService(SdkSandboxManager.class); in setup()
60 assertThat(mSdkSandboxManager).isNotNull(); in setup()
83 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in loadSdk()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxMetricsHostTest/app/src/com/android/tests/sdksandbox/secondary/
DSdkSandboxMetricsSecondaryTestApp.java41 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxMetricsSecondaryTestApp
49 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in setup()
50 assertThat(mSdkSandboxManager).isNotNull(); in setup()
62 mSdkSandboxManager.addSdkSandboxProcessDeathCallback(Runnable::run, deathLatch::countDown); in generateSdkSandboxCrash()
67 mSdkSandboxManager.loadSdk(SDK_PACKAGE, new Bundle(), Runnable::run, callback); in generateSdkSandboxCrash()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxMetricsHostTest/app/src/com/android/tests/sdksandbox/
DSdkSandboxMetricsTestApp.java52 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxMetricsTestApp
76 mSdkSandboxManager = mContext.getSystemService(SdkSandboxManager.class); in setup()
79 assertThat(mSdkSandboxManager).isNotNull(); in setup()
88 if (mSdkSandboxManager != null) { in tearDown()
101 mSdkSandboxManager.loadSdk(SDK_PACKAGE, new Bundle(), Runnable::run, callback); in testSdkCanAccessSdkSandboxExitReasons()
140 mSdkSandboxManager.loadSdk(SDK_PACKAGE, new Bundle(), Runnable::run, callback); in testSdkCannotAccessExitReasonsFromOtherSdkSandboxUids()
210 mSdkSandboxManager.addSdkSandboxProcessDeathCallback(Runnable::run, deathLatch::countDown); in generateSdkSandboxCrash()
215 mSdkSandboxManager.loadSdk(SDK_PACKAGE, new Bundle(), Runnable::run, callback); in generateSdkSandboxCrash()
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxClient_SharedUid/src/com/android/sdksandboxclient_shareduid/
DMainActivity.java66 private SdkSandboxManager mSdkSandboxManager; field in MainActivity
83 mSdkSandboxManager = getApplicationContext().getSystemService(SdkSandboxManager.class); in onCreate()
113 mSdkSandboxManager.addSdkSandboxProcessDeathCallback( in registerLoadSdkProviderButton()
134 mSdkSandboxManager.loadSdk(SDK_NAME, params, Runnable::run, receiver); in registerLoadSdkProviderButton()
136 mSdkSandboxManager.unloadSdk(SDK_NAME); in registerLoadSdkProviderButton()
151 mSdkSandboxManager.requestSurfacePackage( in registerLoadSurfacePackageButton()
217 mSdkSandboxManager.requestSurfacePackage( in registerPlayVideoButton()
256 mSdkSandboxManager.addSyncedSharedPreferencesKeys( in registerSyncKeysButton()
295 mSdkSandboxManager.getSyncedSharedPreferencesKeys(); in registerGetKeysButton()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/
DSdkSandboxManagerUnitTest.java69 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxManagerUnitTest
83 mSdkSandboxManager = new SdkSandboxManager(mContext, mBinder); in setup()
101 mSdkSandboxManager.loadSdk(SDK_NAME, params, Runnable::run, outcomeReceiver); in testLoadSdkSuccess()
141 mSdkSandboxManager.loadSdk(SDK_NAME, params, Runnable::run, outcomeReceiver); in testLoadSdkFailed()
179 assertThat(mSdkSandboxManager.getSandboxedSdks()).isSameInstanceAs(sandboxedSdks); in testGetSandboxedSdks()
188 mSdkSandboxManager.unloadSdk(SDK_NAME); in testUnloadSdk()
206 mSdkSandboxManager.requestSurfacePackage(SDK_NAME, params, Runnable::run, outcomeReceiver); in testRequestSurfacePackageSuccess()
248 mSdkSandboxManager.requestSurfacePackage(SDK_NAME, params, Runnable::run, outcomeReceiver); in testRequestSurfacePackageFailed()
292 mSdkSandboxManager.requestSurfacePackage(SDK_NAME, params, Runnable::run, outcomeReceiver); in testRequestSurfacePackage_callSuccessful_logSandboxApiLatencyCalled()
332 mSdkSandboxManager.requestSurfacePackage( in testRequestSurfacePackage_callFails_logSandboxApiLatencyCalled()
[all …]
DSdkSandboxManagerResultCodeLoggingUnitTest.java79 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxManagerResultCodeLoggingUnitTest
89 mSdkSandboxManager = new SdkSandboxManager(context, mBinder); in setup()
95 mSdkSandboxManager.loadSdk( in testLoadSdk_callFailsWithException_logSandboxApiLatencyCalledWithResultCode()
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxWebViewClient/src/com/android/sdksandboxwebviewclient/
DMainActivity.java53 private SdkSandboxManager mSdkSandboxManager; field in MainActivity
67 mSdkSandboxManager = getApplicationContext().getSystemService(SdkSandboxManager.class); in onCreate()
94 mSdkSandboxManager.addSdkSandboxProcessDeathCallback( in registerLoadSdkProviderButton()
118 mSdkSandboxManager.loadSdk(SDK_NAME, params, Runnable::run, receiver); in registerLoadSdkProviderButton()
128 mSdkSandboxManager.unloadSdk(SDK_NAME); in resetStateForLoadSdkButton()
143 mSdkSandboxManager.requestSurfacePackage( in registerLoadSurfacePackageButton()
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/testutils/
DSdkLifecycleHelper.java25 private final SdkSandboxManager mSdkSandboxManager; field in SdkLifecycleHelper
28 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in SdkLifecycleHelper()
41 mSdkSandboxManager.unloadSdk(sdkName); in unloadSdk()
DSdkSandboxUiTestRule.java157 final SdkSandboxManager mSdkSandboxManager; field in SdkSandboxUiTestRule.LoadSdkInSandboxRule
164 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in LoadSdkInSandboxRule()
175 mSdkSandboxManager.loadSdk(mSdkName, new Bundle(), Runnable::run, callback); in before()
185 mSdkSandboxManager.unloadSdk(mSdkName); in after()
211 mSdkSandboxManager.requestSurfacePackage( in renderInView()
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxClient/src/com/android/sdksandboxclient/
DMainActivity.java126 private SdkSandboxManager mSdkSandboxManager; field in MainActivity
162 mSdkSandboxManager = getApplicationContext().getSystemService(SdkSandboxManager.class); in onCreate()
376 mSdkSandboxManager.removeSdkSandboxProcessDeathCallback(deathCallback); in registerRemoveDeathCallbackButton()
418 mSdkSandboxManager.loadSdk(SDK_NAME, params, Runnable::run, receiver); in registerLoadSdksButton()
424 mSdkSandboxManager.unloadSdk(SDK_NAME); in resetStateForLoadSdkButton()
425 mSdkSandboxManager.unloadSdk(MEDIATEE_SDK_NAME); in resetStateForLoadSdkButton()
522 mSdkSandboxManager.requestSurfacePackage( in registerNewBannerAdButton()
754 mSdkSandboxManager.registerAppOwnedSdkSandboxInterface( in registerSdkToSdkButton()
763 mSdkSandboxManager.requestSurfacePackage( in registerSdkToSdkButton()
843 mSdkSandboxManager.addSyncedSharedPreferencesKeys(Set.of(keyToSync)); in onSyncKeyPressed()
[all …]
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/disablede2e/
DSdkSandboxManagerDisabledTest.java47 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxManagerDisabledTest
54 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in setup()
62 mSdkSandboxManager.loadSdk(sdkName, new Bundle(), Runnable::run, callback); in testSdkSandboxDisabledErrorCode()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxSmallModuleHostTest/app/src/com/android/tests/sdksandbox/
DSdkSandboxSmallModuleTestApp.java70 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxSmallModuleTestApp
79 mSdkSandboxManager = mContext.getSystemService(SdkSandboxManager.class); in setup()
133 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in testLoadSdkWithAdServiceApk()
140 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in testLoadSdkWithoutAdServiceApk()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/app/src/com/android/tests/sdksandbox/
DSdkSandboxStorageTestApp.java74 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxStorageTestApp
80 mSdkSandboxManager = mContext.getSystemService(SdkSandboxManager.class); in setup()
81 assertThat(mSdkSandboxManager).isNotNull(); in setup()
98 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in loadSdk()
/packages/modules/AdServices/sdksandbox/tests/testutils/testscenario/testrule/src/android/app/sdksandbox/testutils/testscenario/
DSdkSandboxScenarioRule.java89 private SdkSandboxManager mSdkSandboxManager; field in SdkSandboxScenarioRule
124 mSdkSandboxManager = context.getSystemService(SdkSandboxManager.class); in apply()
149 if (mSdkSandboxManager.getSandboxedSdks().isEmpty()) {
258 mSdkSandboxManager.loadSdk(mSdkName, loadParams, Runnable::run, callback);
299 mSdkSandboxManager.requestSurfacePackage(

12