Searched refs:mProfilingService (Results 1 – 3 of 3) sorted by relevance
98 private ProfilingService mProfilingService; field in ProfilingServiceTests106 mProfilingService = spy(new ProfilingService(mContext)); in setUp()113 mProfilingService.mRateLimiter = mRateLimiter; in setUp()129 mProfilingService.registerResultsCallback(true, callback); in testRegisterResultCallback()133 mProfilingService.mResultCallbacks.get(Binder.getCallingUid()).get(0)); in testRegisterResultCallback()140 doReturn(true).when(mProfilingService).areAnyTracesRunning(); in testRequestProfiling_OnlyRequestingProcessCallbackTriggered()146 mProfilingService.registerResultsCallback(false, callback); in testRequestProfiling_OnlyRequestingProcessCallbackTriggered()150 mProfilingService.mResultCallbacks.put(FAKE_UID, callbacks); in testRequestProfiling_OnlyRequestingProcessCallbackTriggered()154 mProfilingService.mResultCallbacks.get(Binder.getCallingUid()).get(0)); in testRequestProfiling_OnlyRequestingProcessCallbackTriggered()156 mProfilingService.mResultCallbacks.get(FAKE_UID).get(0)); in testRequestProfiling_OnlyRequestingProcessCallbackTriggered()[all …]
143 mProfilingManager.mProfilingService = null; in cleanup()752 mProfilingManager.mProfilingService = null; in testAddGeneralListenerNoCurrentListeners()762 assertNotNull(mProfilingManager.mProfilingService); in testAddGeneralListenerNoCurrentListeners()783 mProfilingManager.mProfilingService = null; in testAddSpecificListenerNoCurrentListeners()797 assertNotNull(mProfilingManager.mProfilingService); in testAddSpecificListenerNoCurrentListeners()811 mProfilingManager.mProfilingService = spy(new ProfilingService(mContext)); in testAddGeneralListenerWithCurrentListener()820 verify(mProfilingManager.mProfilingService, times(0)).registerResultsCallback(anyBoolean(), in testAddGeneralListenerWithCurrentListener()822 verify(mProfilingManager.mProfilingService, times(1)).generalListenerAdded(); in testAddGeneralListenerWithCurrentListener()839 mProfilingManager.mProfilingService = spy(new ProfilingService(mContext)); in testAddSpecificListenerWithCurrentListener()852 verify(mProfilingManager.mProfilingService, times(0)).registerResultsCallback(anyBoolean(), in testAddSpecificListenerWithCurrentListener()[all …]
136 public IProfilingService mProfilingService; field in ProfilingManager288 boolean shouldNotifyService = mProfilingService != null; in registerForAllProfilingResults()304 mProfilingService.generalListenerAdded(); in registerForAllProfilingResults()365 if (mProfilingService != null) { in getOrCreateIProfilingServiceLocked()366 return mProfilingService; in getOrCreateIProfilingServiceLocked()369 mProfilingService = IProfilingService.Stub.asInterface( in getOrCreateIProfilingServiceLocked()372 if (mProfilingService == null) { in getOrCreateIProfilingServiceLocked()374 return mProfilingService; in getOrCreateIProfilingServiceLocked()377 mProfilingService.registerResultsCallback(isGeneralListener, in getOrCreateIProfilingServiceLocked()393 mProfilingService = null; in getOrCreateIProfilingServiceLocked()[all …]