Home
last modified time | relevance | path

Searched refs:SdkSandboxLocalSingleton (Results 1 – 12 of 12) sorted by relevance

/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/
DSdkSandboxLocalSingletonUnitTest.java45 SdkSandboxLocalSingleton.destroySingleton(); in tearDown()
55 () -> SdkSandboxLocalSingleton.initInstance(binder2)); in testInitInstanceWithIncorrectType()
60 SdkSandboxLocalSingleton.initInstance(mBinder); in testInitInstance()
61 SdkSandboxLocalSingleton singletonInstance = SdkSandboxLocalSingleton.getExistingInstance(); in testInitInstance()
68 SdkSandboxLocalSingleton.initInstance(mBinder); in testInitInstanceWhenAlreadyExists()
71 SdkSandboxLocalSingleton.initInstance(binder2); in testInitInstanceWhenAlreadyExists()
74 SdkSandboxLocalSingleton singletonInstance = SdkSandboxLocalSingleton.getExistingInstance(); in testInitInstanceWhenAlreadyExists()
81 SdkSandboxLocalSingleton.initInstance(mBinder); in testGetInstanceReturnsSameObjectAlways()
83 SdkSandboxLocalSingleton singletonInstance = SdkSandboxLocalSingleton.getExistingInstance(); in testGetInstanceReturnsSameObjectAlways()
85 assertThat(SdkSandboxLocalSingleton.getExistingInstance()) in testGetInstanceReturnsSameObjectAlways()
[all …]
/packages/modules/AdServices/sdksandbox/framework/java/android/app/sdksandbox/
DSdkSandboxLocalSingleton.java37 public class SdkSandboxLocalSingleton { class
40 private static SdkSandboxLocalSingleton sInstance = null;
49 private SdkSandboxLocalSingleton(ISdkToServiceCallback sdkToServiceCallback) { in SdkSandboxLocalSingleton() method in SdkSandboxLocalSingleton
74 new SdkSandboxLocalSingleton( in initInstance()
85 public static SdkSandboxLocalSingleton getExistingInstance() { in getExistingInstance()
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/testutils/
DFakeSdkSandboxActivityRegistryInjector.java19 import android.app.sdksandbox.SdkSandboxLocalSingleton;
26 private final SdkSandboxLocalSingleton mSdkSandboxLocalSingleton;
30 SdkSandboxLocalSingleton sdkSandboxLocalSingleton) { in FakeSdkSandboxActivityRegistryInjector()
35 public SdkSandboxLocalSingleton getSdkSandboxLocalSingleton() { in getSdkSandboxLocalSingleton()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/sandboxactivity/
DSdkSandboxActivityAuthorityTest.java28 import android.app.sdksandbox.SdkSandboxLocalSingleton;
69 private SdkSandboxLocalSingleton mSdkSandboxLocalSingleton;
78 mSdkSandboxLocalSingleton = Mockito.mock(SdkSandboxLocalSingleton.class); in setUp()
92 .mockStatic(SdkSandboxLocalSingleton.class) in setUp()
98 .when(() -> SdkSandboxLocalSingleton.getExistingInstance()); in setUp()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/sdkprovider/
DSdkSandboxControllerResultCodeLoggingUnitTest.java39 import android.app.sdksandbox.SdkSandboxLocalSingleton;
115 .mockStatic(SdkSandboxLocalSingleton.class) in setup()
118 SdkSandboxLocalSingleton sdkSandboxLocalSingleton = in setup()
119 Mockito.mock(SdkSandboxLocalSingleton.class); in setup()
125 .when(SdkSandboxLocalSingleton::getExistingInstance); in setup()
DSdkSandboxControllerUnitTest.java33 import android.app.sdksandbox.SdkSandboxLocalSingleton;
73 private SdkSandboxLocalSingleton mSdkSandboxLocalSingleton;
92 .mockStatic(SdkSandboxLocalSingleton.class) in setup()
95 mSdkSandboxLocalSingleton = Mockito.mock(SdkSandboxLocalSingleton.class); in setup()
101 .when(() -> SdkSandboxLocalSingleton.getExistingInstance()); in setup()
DSdkSandboxActivityRegistryTest.java27 import android.app.sdksandbox.SdkSandboxLocalSingleton;
64 private SdkSandboxLocalSingleton mSdkSandboxLocalSingleton;
71 mSdkSandboxLocalSingleton = Mockito.mock(SdkSandboxLocalSingleton.class); in setUp()
/packages/modules/AdServices/sdksandbox/framework/java/android/app/sdksandbox/sdkprovider/
DSdkSandboxController.java33 import android.app.sdksandbox.SdkSandboxLocalSingleton;
75 private SdkSandboxLocalSingleton mSdkSandboxLocalSingleton;
102 mSdkSandboxLocalSingleton = SdkSandboxLocalSingleton.getExistingInstance(); in initialize()
314 SdkSandboxLocalSingleton.getExistingInstance() in registerSdkSandboxClientImportanceListener()
334 SdkSandboxLocalSingleton.getExistingInstance() in unregisterSdkSandboxClientImportanceListener()
DSdkSandboxActivityRegistry.java26 import android.app.sdksandbox.SdkSandboxLocalSingleton;
337 public SdkSandboxLocalSingleton getSdkSandboxLocalSingleton() { in getSdkSandboxLocalSingleton()
338 return SdkSandboxLocalSingleton.getExistingInstance(); in getSdkSandboxLocalSingleton()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/sdksandbox/
DSandboxedActivityTest.java25 import android.app.sdksandbox.SdkSandboxLocalSingleton;
53 private SdkSandboxLocalSingleton mSdkSandboxLocalSingleton;
74 mSdkSandboxLocalSingleton = Mockito.mock(SdkSandboxLocalSingleton.class); in setUp()
DSdkSandboxTest.java29 import android.app.sdksandbox.SdkSandboxLocalSingleton;
187 SdkSandboxLocalSingleton sdkSandboxLocalSingleton = in setup()
188 Mockito.mock(SdkSandboxLocalSingleton.class); in setup()
211 IllegalStateException.class, () -> SdkSandboxLocalSingleton.getExistingInstance()); in testSandboxInitialization_initializesSdkSandboxLocalSingleTon()
215 assertThat(SdkSandboxLocalSingleton.getExistingInstance()).isNotNull(); in testSandboxInitialization_initializesSdkSandboxLocalSingleTon()
/packages/modules/AdServices/sdksandbox/SdkSandbox/src/com/android/sdksandbox/
DSdkSandboxServiceImpl.java27 import android.app.sdksandbox.SdkSandboxLocalSingleton;
144 SdkSandboxLocalSingleton.initInstance(sdkToServiceCallback.asBinder()); in initialize()
221 SdkSandboxLocalSingleton.getExistingInstance() in notifySdkSandboxClientImportanceChange()