Searched refs:AdServicesBackCompatInit (Results 1 – 6 of 6) sorted by relevance
46 @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()
74 @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()
97 @SpyStatic(AdServicesBackCompatInit.class)132 private AdServicesBackCompatInit mSpyBackCompatInit;1033 mSpyBackCompatInit = Mockito.spy(new AdServicesBackCompatInit(mContext)); in spyBackCompatInit()1035 .when(() -> AdServicesBackCompatInit.getInstance()); in spyBackCompatInit()
49 public final class AdServicesBackCompatInit { class54 AdServicesBackCompatInit(Context context) { in AdServicesBackCompatInit() method in AdServicesBackCompatInit60 public static AdServicesBackCompatInit getInstance() { in getInstance()61 return new AdServicesBackCompatInit(ApplicationContextSingleton.get()); in getInstance()
35 AdServicesBackCompatInit.getInstance().initializeComponents(); in onReceive()
347 AdServicesBackCompatInit.getInstance().initializeComponents(); in enableAdServices()