Searched refs:CobaltFactory (Results 1 – 9 of 9) sorted by relevance
53 assertThat(CobaltFactory.computeApexVersion(mMockContext)).isEqualTo(VERSION_NOT_FOUND); in testComputeApexVersion_apexNotFound()61 assertThat(CobaltFactory.computeApexVersion(mMockContext)) in testComputeApexVersion_bothApexInstalled()69 assertThat(CobaltFactory.computeApexVersion(mMockContext)) in testComputeApexVersion_extservicesApexInstalled()77 assertThat(CobaltFactory.computeApexVersion(mMockContext)) in testComputeApexVersion_adservicesApexInstalled()
72 @SpyStatic(CobaltFactory.class)179 verifyNoMoreInteractions(staticMockMarker(CobaltFactory.class)); in testSchedule_featureDisabled()277 .when(() -> CobaltFactory.getCobaltPeriodicJob(any(), any())); in onStartJob_featureEnabled()287 verify(() -> CobaltFactory.getCobaltPeriodicJob(any(Context.class), any(Flags.class))); in onStartJob_featureEnabled()319 verifyNoMoreInteractions(staticMockMarker(CobaltFactory.class)); in onStartJob_featureDisabled()361 verifyNoMoreInteractions(staticMockMarker(CobaltFactory.class)); in onStartJob_shouldDisableJobTrue()
51 @SpyStatic(CobaltFactory.class)281 .when(() -> CobaltFactory.getCobaltLogger(any(), any())); in mockThrowExceptionOnGetCobaltLogger()
61 @SpyStatic(CobaltFactory.class)373 .when(() -> CobaltFactory.getCobaltLogger(any(), any())); in mockThrowExceptionOnGetCobaltLogger()
70 logger = CobaltFactory.getCobaltLogger(ApplicationContextSingleton.get(), flags); in getDefaultCobaltLogger()
87 logger = CobaltFactory.getCobaltLogger(ApplicationContextSingleton.get(), flags); in getDefaultCobaltLogger()
89 return CobaltFactory.getCobaltPeriodicJob(this, flags) in onStartJob()
51 public final class CobaltFactory { class
30 import com.android.adservices.cobalt.CobaltFactory;452 return CobaltFactory.getCobaltLogger( in getCobaltLoggerSupplier()