Home
last modified time | relevance | path

Searched refs:newBaseContext (Results 1 – 3 of 3) sorted by relevance

/packages/modules/AdServices/sdksandbox/framework/java/android/app/sdksandbox/
DSandboxedSdkContext.java129 Context newBaseContext = getBaseContext().createCredentialProtectedStorageContext(); in createCredentialProtectedStorageContext() local
130 return createContextWithNewBase(newBaseContext); in createCredentialProtectedStorageContext()
142 Context newBaseContext = getBaseContext().createDeviceProtectedStorageContext(); in createDeviceProtectedStorageContext() local
143 return createContextWithNewBase(newBaseContext); in createDeviceProtectedStorageContext()
153 public SandboxedSdkContext createContextWithNewBase(@NonNull Context newBaseContext) { in createContextWithNewBase() argument
155 newBaseContext, in createContextWithNewBase()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/sdksandbox/
DSandboxedActivityTest.java229 SandboxedSdkContext newBaseContext = in testAttachBaseContextWrapsTheBaseContextIfCustomizedSdkContextFlagIsEnabled() local
231 assertThat(newBaseContext).isNotNull(); in testAttachBaseContextWrapsTheBaseContextIfCustomizedSdkContextFlagIsEnabled()
232 assertThat(newBaseContext.getBaseContext()) in testAttachBaseContextWrapsTheBaseContextIfCustomizedSdkContextFlagIsEnabled()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/
DSandboxedSdkContextUnitTest.java294 Context newBaseContext = new TestContext(testService); in testCreateContextWithNewBase() local
296 sdkContext.createContextWithNewBase(newBaseContext); in testCreateContextWithNewBase()
298 assertThat(contextWithNewBase.getBaseContext()).isEqualTo(newBaseContext); in testCreateContextWithNewBase()