Home
last modified time | relevance | path

Searched refs:mSdkContext (Results 1 – 5 of 5) sorted by relevance

/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/sdkprovider/
DSdkSandboxActivityRegistryTest.java63 private SandboxedSdkContext mSdkContext; field in SdkSandboxActivityRegistryTest
79 mSdkContext = Mockito.mock(SandboxedSdkContext.class); in setUp()
80 Mockito.when(mSdkContext.getSdkName()).thenReturn(SDK_NAME); in setUp()
97 IBinder token1 = mRegistry.register(mSdkContext, mHandler); in testRegisterSdkSandboxActivityHandler()
98 IBinder token2 = mRegistry.register(mSdkContext, mHandler); in testRegisterSdkSandboxActivityHandler()
107 mRegistry.register(mSdkContext, mHandler); in testRegisterSdkSandboxActivityHandler_NewHandler_CallsStatsd()
119 IBinder token = mRegistry.register(mSdkContext, mHandler); in testUnregisterSdkSandboxActivityHandler()
143 mRegistry.register(mSdkContext, mHandler); in testUnregisterSdkSandboxActivityHandler_ExistingHandler_CallsStatsd()
158 IBinder token = mRegistry.register(mSdkContext, mHandler); in testNotifyOnActivityCreation()
177 IBinder token = mRegistry.register(mSdkContext, mHandler); in testNotifyOnActivityCreationMultipleTimeSucceed()
[all …]
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxCodeProvider/src/com/android/sdksandboxcode_1/
DSampleSandboxedSdkProvider.java160 private Context mSdkContext; field in SampleSandboxedSdkProvider.TestView
172 mSdkContext = sdkContext; in TestView()
191 mSdkContext in onDraw()
217 mSdkContext in onDraw()
234 message = mSdkContext.getResources().getString(R.string.view_message); in onDraw()
253 private final Context mSdkContext; field in SampleSandboxedSdkProvider.OpenBrowserOnClickListener
256 mSdkContext = sdkContext; in OpenBrowserOnClickListener()
269 mSdkContext.startActivity(visitUrl); in onClick()
276 private final Context mSdkContext; field in SampleSandboxedSdkProvider.OpenPackageOnClickListener
280 mSdkContext = sdkContext; in OpenPackageOnClickListener()
[all …]
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/sdksandbox/
DSandboxedActivityTest.java51 private SandboxedSdkContext mSdkContext; field in SandboxedActivityTest
83 mSdkContext = Mockito.mock(SandboxedSdkContext.class); in setUp()
84 Mockito.when(mSdkContext.getSdkName()).thenReturn(SDK_NAME); in setUp()
90 IBinder token = mRegistry.register(mSdkContext, sdkSandboxActivityHandler); in testSandboxedActivityCreation()
185 IBinder token = mRegistry.register(mSdkContext, sdkSandboxActivityHandler); in testMultipleSandboxedActivitiesForTheSameHandler()
212 IBinder token = mRegistry.register(mSdkContext, sdkSandboxActivityHandler); in testAttachBaseContextWrapsTheBaseContextIfCustomizedSdkContextFlagIsEnabled()
223 Mockito.when(mSdkContext.createContextWithNewBase(activityBaseContext)) in testAttachBaseContextWrapsTheBaseContextIfCustomizedSdkContextFlagIsEnabled()
225 Mockito.when(mSdkContext.getBaseContext()).thenCallRealMethod(); in testAttachBaseContextWrapsTheBaseContextIfCustomizedSdkContextFlagIsEnabled()
/packages/modules/AdServices/sdksandbox/framework/java/android/app/sdksandbox/sdkprovider/
DSdkSandboxActivityRegistry.java352 private final SandboxedSdkContext mSdkContext; field in SdkSandboxActivityRegistry.HandlerInfo
359 this.mSdkContext = sdkContext; in HandlerInfo()
362 mContextInfo = mSdkContext::getApplicationInfo; in HandlerInfo()
367 return mSdkContext; in getSdkContext()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/sandboxactivity/
DSdkSandboxActivityAuthorityTest.java68 private SandboxedSdkContext mSdkContext; field in SdkSandboxActivityAuthorityTest
88 mSdkContext = Mockito.mock(SandboxedSdkContext.class); in setUp()
143 final IBinder token = mRegistry.register(mSdkContext, mHandler); in testGetActivityContextInfo()