Home
last modified time | relevance | path

Searched refs:AdServicesBackCompatInit (Results 1 – 6 of 6) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAdExtBootCompletedReceiverTest.java46 @SpyStatic(AdServicesBackCompatInit.class)
54 @Mock private AdServicesBackCompatInit mMockBackCompatInit;
63 doReturn(mMockBackCompatInit).when(AdServicesBackCompatInit::getInstance); in testOnReceive_withNoException_executesBackCompatInit()
73 doReturn(mMockBackCompatInit).when(AdServicesBackCompatInit::getInstance); in testOnReceive_withExceptionThrown_handlesGracefully()
DAdServicesBackCompatInitTest.java74 @SpyStatic(AdServicesBackCompatInit.class)
110 private AdServicesBackCompatInit mSpyCompatInit;
116 mSpyCompatInit = spy(AdServicesBackCompatInit.getInstance()); in setup()
140 doReturn(Build.VERSION_CODES.TIRAMISU).when(AdServicesBackCompatInit::getSdkLevelInt); in testInitializeComponents_withTPlusFlagsOff_disablesComponentsCancelsJobs()
156 doReturn(Build.VERSION_CODES.TIRAMISU).when(AdServicesBackCompatInit::getSdkLevelInt); in testInitializeComponents_withTPlusFlagsOn_disablesComponentsCancelsJobs()
183 doReturn(Build.VERSION_CODES.S).when(AdServicesBackCompatInit::getSdkLevelInt); in testInitializeComponents_withSFlagOn_enablesComponents()
196 doReturn(Build.VERSION_CODES.R).when(AdServicesBackCompatInit::getSdkLevelInt); in testInitializeComponents_withRFlagOn_enablesComponents()
DAdServicesCommonServiceImplTest.java97 @SpyStatic(AdServicesBackCompatInit.class)
132 private AdServicesBackCompatInit mSpyBackCompatInit;
1033 mSpyBackCompatInit = Mockito.spy(new AdServicesBackCompatInit(mContext)); in spyBackCompatInit()
1035 .when(() -> AdServicesBackCompatInit.getInstance()); in spyBackCompatInit()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DAdServicesBackCompatInit.java49 public final class AdServicesBackCompatInit { class
54 AdServicesBackCompatInit(Context context) { in AdServicesBackCompatInit() method in AdServicesBackCompatInit
60 public static AdServicesBackCompatInit getInstance() { in getInstance()
61 return new AdServicesBackCompatInit(ApplicationContextSingleton.get()); in getInstance()
DAdExtBootCompletedReceiver.java35 AdServicesBackCompatInit.getInstance().initializeComponents(); in onReceive()
DAdServicesCommonServiceImpl.java347 AdServicesBackCompatInit.getInstance().initializeComponents(); in enableAdServices()