Home
last modified time | relevance | path

Searched refs:mTracker (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/native/services/inputflinger/tests/
DLatencyTracker_test.cpp54 std::unique_ptr<LatencyTracker> mTracker; member in android::inputdispatcher::LatencyTrackerTest
62 mTracker = std::make_unique<LatencyTracker>(this); in SetUp()
90 mTracker->trackListener(1 /*inputEventId*/, true /*isDown*/, triggerEventTime, 3 /*readTime*/); in triggerEventReporting()
139 mTracker->trackListener(1 /*inputEventId*/, false /*isDown*/, 2 /*eventTime*/, 3 /*readTime*/); in TEST_F()
148 mTracker->trackFinishedEvent(1 /*inputEventId*/, connection1, 2 /*deliveryTime*/, in TEST_F()
161 mTracker->trackGraphicsLatency(1 /*inputEventId*/, connection2, graphicsTimeline); in TEST_F()
172 mTracker->trackListener(inputEventId, expected.isDown, expected.eventTime, expected.readTime); in TEST_F()
173 mTracker->trackFinishedEvent(inputEventId, connectionToken, expectedCT.deliveryTime, in TEST_F()
175 mTracker->trackGraphicsLatency(inputEventId, connectionToken, expectedCT.graphicsTimeline); in TEST_F()
192 mTracker->trackListener(inputEventId, isDown, 1 /*eventTime*/, readTime); in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncReactor.cpp44 mTracker(tracker), in VSyncReactor()
74 timestampAccepted &= mTracker.addVsyncTimestamp(time); in addPresentFence()
86 timestampAccepted &= mTracker.addVsyncTimestamp(signalTime); in addPresentFence()
135 if (!mSupportKernelIdleTimer && period == mTracker.currentPeriod()) { in startPeriodTransition()
159 mPeriodTransitioningTo && (*mPeriodTransitioningTo != mTracker.currentPeriod()); in periodConfirmed()
165 auto const period = mPeriodTransitioningTo ? *mPeriodTransitioningTo : mTracker.currentPeriod(); in periodConfirmed()
185 mTracker.setPeriod(*mPeriodTransitioningTo); in addHwVsyncTimestamp()
190 mTracker.addVsyncTimestamp(*mLastHwVsync); in addHwVsyncTimestamp()
192 mTracker.addVsyncTimestamp(timestamp); in addHwVsyncTimestamp()
195 mMoreSamplesNeeded = mTracker.needsMoreSamples(); in addHwVsyncTimestamp()
[all …]
DVsyncSchedule.cpp55 : mTracker(createTracker()), in VsyncSchedule()
56 mDispatch(createDispatch(*mTracker)), in VsyncSchedule()
57 mController(createController(*mTracker, features)) { in VsyncSchedule()
64 : mTracker(std::move(tracker)), in VsyncSchedule()
DVsyncSchedule.h42 const VsyncTracker& getTracker() const { return *mTracker; } in getTracker()
43 VsyncTracker& getTracker() { return *mTracker; } in getTracker()
69 TrackerPtr mTracker; variable
DVSyncDispatchTimerQueue.cpp206 mTracker(tracker), in VSyncDispatchTimerQueue()
243 callback->update(mTracker, now); in rearmTimerSkippingUpdateFor()
351 return getExpectedCallbackTime(mTracker, now, scheduleTiming); in schedule()
354 result = callback->schedule(scheduleTiming, mTracker, now); in schedule()
DVSyncReactor.h65 VSyncTracker& mTracker; variable
DVSyncDispatchTimerQueue.h147 VSyncTracker& mTracker; variable
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java94 private BrightnessTracker mTracker; field in BrightnessTrackerTest
123 mTracker = new BrightnessTracker(InstrumentationRegistry.getContext(), mInjector); in setUp()
124 mTracker.setLightSensor(mLightSensorFake); in setUp()
135 startTracker(mTracker); in testStartStopTrackerScreenOnOff()
164 mTracker.stop(); in testStartStopTrackerScreenOnOff()
175 startTracker(mTracker, DEFAULT_INITIAL_BRIGHTNESS, /* collectColorSamples= */ false); in testModifyBrightnessConfiguration()
179 mTracker.setBrightnessConfiguration(buildBrightnessConfiguration( in testModifyBrightnessConfiguration()
185 mTracker.setBrightnessConfiguration(buildBrightnessConfiguration( in testModifyBrightnessConfiguration()
192 mTracker.setBrightnessConfiguration(buildBrightnessConfiguration( in testModifyBrightnessConfiguration()
201 mTracker.stop(); in testModifyBrightnessConfiguration()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DBaseLeakChecker.java27 private final Tracker mTracker; field in BaseLeakChecker
30 mTracker = test.getTracker(tag); in BaseLeakChecker()
34 return mTracker; in getTracker()
39 mTracker.getLeakInfo(listener).addAllocation(new Throwable()); in addCallback()
44 mTracker.getLeakInfo(listener).clearAllocations(); in removeCallback()
DFakeExtensionController.java28 private final Tracker mTracker; field in FakeExtensionController
31 mTracker = test.getTracker("extension"); in FakeExtensionController()
37 mTracker.getLeakInfo(o).addAllocation(new Throwable()); in newExtension()
119 mTracker.getLeakInfo(mAllocation).clearAllocations(); in destroy()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsExternalCallTrackerTest.java49 ImsExternalCallTracker mTracker; field in ImsExternalCallTrackerTest
62 mTracker = new ImsExternalCallTracker(mImsPhone, mImsPullCall, mCallNotifier, in setUp()
68 mTracker = null; in tearDown()
84 mTracker.refreshExternalCallState(dep); in testAddExternalCall()
102 mTracker.getConnectionById(CALL_ID); in testRemoveExternalCall()
105 mTracker.refreshExternalCallState(dep); in testRemoveExternalCall()
108 assertNull(mTracker.getConnectionById(CALL_ID)); in testRemoveExternalCall()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
DTertiaryKeyRotationScheduler.java52 private final TertiaryKeyRotationTracker mTracker; field in TertiaryKeyRotationScheduler
68 mTracker = tracker; in TertiaryKeyRotationScheduler()
83 return mTracker.isKeyRotationDue(packageName); in isKeyRotationDue()
92 mTracker.recordBackup(packageName); in recordBackup()
101 mTracker.resetCountdown(packageName); in recordKeyRotation()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsDispatchersControllerTest.java57 private SMSDispatcher.SmsTracker mTracker; field in SmsDispatchersControllerTest
65 mTracker = mock(SMSDispatcher.SmsTracker.class); in setUp()
127 replaceInstance(SMSDispatcher.SmsTracker.class, "mFormat", mTracker, in testSendRetrySmsCdmaTest()
130 mSmsDispatchersController.sendRetrySms(mTracker); in testSendRetrySmsCdmaTest()
141 replaceInstance(SMSDispatcher.SmsTracker.class, "mFormat", mTracker, in testSendRetrySmsGsmTest()
143 mSmsDispatchersController.sendRetrySms(mTracker); in testSendRetrySmsGsmTest()
156 replaceInstance(SMSDispatcher.SmsTracker.class, "mFormat", mTracker, in testSendRetrySmsNullPdu()
158 when(mTracker.getData()).thenReturn(map); in testSendRetrySmsNullPdu()
159 mSmsDispatchersController.sendRetrySms(mTracker); in testSendRetrySmsNullPdu()
160 verify(mTracker).onFailed(eq(mContext), eq(SmsManager.RESULT_SMS_SEND_RETRY_FAILED), in testSendRetrySmsNullPdu()
/frameworks/base/services/core/java/com/android/server/am/
DBaseAppStateTimeSlotEventsTracker.java158 final BaseAppStateTimeSlotEventsTracker mTracker; field in BaseAppStateTimeSlotEventsTracker.H
162 mTracker = tracker; in H()
169 mTracker.handleNewEvent((String) msg.obj, msg.arg1); in handleMessage()
221 mTracker.onMonitorEnabled(enabled); in onTrackerEnabled()
226 mTracker.mBgHandler.post(mTracker::trimEvents); in onMaxTrackingDurationChanged()
236 mTracker.onNumOfEventsThresholdChanged(threshold); in updateNumOfEventsThreshold()
272 mTracker.mAppRestrictionController.refreshAppRestrictionLevelForUid( in onExcessiveEvents()
282 if (mTracker.isUidOnTop(uid)) { in shouldExempt()
289 if (mTracker.mAppRestrictionController.hasForegroundServices(packageName, uid)) { in shouldExempt()
313 || !mTracker.mAppRestrictionController.isAutoRestrictAbusiveAppEnabled() in getProposedRestrictionLevel()
[all …]
DAppFGSTracker.java137 private final AppFGSTracker mTracker; field in AppFGSTracker.MyHandler
141 mTracker = tracker; in MyHandler()
148 mTracker.handleForegroundServicesChanged( in handleMessage()
152 mTracker.handleForegroundServicesChanged( in handleMessage()
156 mTracker.handleForegroundServicesChanged( in handleMessage()
161 mTracker.handleForegroundServiceNotificationUpdated( in handleMessage()
166 mTracker.checkLongRunningFgs(); in handleMessage()
169 mTracker.handleNotificationPosted((String) msg.obj, msg.arg1, msg.arg2); in handleMessage()
172 mTracker.handleNotificationRemoved((String) msg.obj, msg.arg1, msg.arg2); in handleMessage()
627 private final AppFGSTracker mTracker; field in AppFGSTracker.PackageDurations
[all …]
DBaseAppStatePolicy.java39 protected final T mTracker; field in BaseAppStatePolicy
59 mTracker = tracker; in BaseAppStatePolicy()
122 return mTracker.mAppRestrictionController.getBackgroundRestrictionExemptionReason(uid); in shouldExemptUid()
DAppPermissionTracker.java407 private @NonNull AppPermissionTracker mTracker; field in AppPermissionTracker.MyHandler
411 mTracker = tracker; in MyHandler()
418 mTracker.handleAppOpsInit(); in handleMessage()
419 mTracker.handlePermissionsInit(); in handleMessage()
422 mTracker.handlePermissionsDestroy(); in handleMessage()
423 mTracker.handleAppOpsDestroy(); in handleMessage()
426 mTracker.handlePermissionsChanged(msg.arg1); in handleMessage()
429 mTracker.handleOpChanged(msg.arg1, msg.arg2, (String) msg.obj); in handleMessage()
597 mTracker.onPermissionTrackerEnabled(enabled); in onTrackerEnabled()
DAppMediaSessionTracker.java211 mTracker.onBgMediaSessionMonitorEnabled(enabled); in onTrackerEnabled()
216 mTracker.mBgHandler.post(mTracker::trimDurations); in onMaxTrackingDurationChanged()
DAppBatteryTracker.java1636 mTracker.onCurrentDrainMonitorEnabled(enabled); in onTrackerEnabled()
1769 mTracker.mAppRestrictionController.isAutoRestrictAbusiveAppEnabled() in getProposedRestrictionLevel()
1786 final BatteryUsage debugUsage = uid > 0 ? mTracker.mDebugUidPercentages.get(uid) : null; in calcPercentage()
1856 final int curLevel = mTracker.mAppRestrictionController.getRestrictionLevel(uid); in handleUidBatteryUsage()
1947 mTracker.mAppRestrictionController.refreshAppRestrictionLevelForUid( in handleUidBatteryUsage()
1970 && mTracker.mAppRestrictionController.getCompositeMediaPlaybackDurations( in hasMediaPlayback()
1978 final AppRestrictionController controller = mTracker.mAppRestrictionController; in hasLocation()
1996 final int curLevel = mTracker.mAppRestrictionController.getRestrictionLevel( in onUserInteractionStarted()
2011 mTracker.mAppRestrictionController.refreshAppRestrictionLevelForUid(uid, in onUserInteractionStarted()
2035 mTracker.reset(); in reset()
DAppBatteryExemptionTracker.java536 mTracker.mBgHandler.post(mTracker::trimDurations); in onMaxTrackingDurationChanged()
541 mTracker.onTrackerEnabled(enabled); in onTrackerEnabled()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceProviderPermissions.java48 private final DirtyTracker mTracker; field in SliceProviderPermissions
52 mTracker = tracker; in SliceProviderPermissions()
75 mTracker.onPersistableDirty(this); in onPersistableDirty()
136 private final DirtyTracker mTracker; field in SliceProviderPermissions.SliceAuthority
141 mTracker = tracker; in SliceAuthority()
150 mTracker.onPersistableDirty(this); in addPkg()
156 mTracker.onPersistableDirty(this); in removePkg()
DSliceClientPermissions.java56 private final DirtyTracker mTracker; field in SliceClientPermissions
61 mTracker = tracker; in SliceClientPermissions()
93 mTracker.onPersistableDirty(this); in setHasFullAccess()
98 mTracker.onPersistableDirty(this); in removeAuthority()
131 mTracker.onPersistableDirty(this); in onPersistableDirty()
208 private final DirtyTracker mTracker; field in SliceClientPermissions.SliceAuthority
215 mTracker = tracker; in SliceAuthority()
239 mTracker.onPersistableDirty(this); in addPath()
253 mTracker.onPersistableDirty(this); in removePath()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSMSDispatcher.java445 private final SmsTracker mTracker; field in SMSDispatcher.TextSmsSender
448 mTracker = tracker; in TextSmsSender()
454 HashMap<String, Object> map = mTracker.getData(); in onServiceReady()
462 mTracker.mDestAddress, in onServiceReady()
463 (mTracker.mDeliveryIntent != null) in onServiceReady()
486 return mTracker; in getSmsTracker()
500 private final SmsTracker mTracker; field in SMSDispatcher.DataSmsSender
503 mTracker = tracker; in DataSmsSender()
509 HashMap<String, Object> map = mTracker.getData(); in onServiceReady()
518 mTracker.mDestAddress, in onServiceReady()
[all …]
DInboundSmsHandler.java1808 private final InboundSmsTracker mTracker; field in InboundSmsHandler.CarrierServicesSmsFilterCallback
1824 mTracker = tracker; in CarrierServicesSmsFilterCallback()
1837 log("onFilterComplete: result is " + result, mTracker.getMessageId()); in onFilterComplete()
1844 dropFilteredSms(mTracker, mSmsBroadcastReceiver, mBlock); in onFilterComplete()
1848 boolean filterInvoked = filterSms(mPdus, mDestPort, mTracker, mSmsBroadcastReceiver, in onFilterComplete()
1862 mTracker.getMessageId()); in onFilterComplete()
1863 dropFilteredSms(mTracker, mSmsBroadcastReceiver, mBlock); in onFilterComplete()
/frameworks/av/services/audiopolicy/fuzzer/
Daudiopolicy_fuzzer.cpp629 std::unique_ptr<RecordingActivityTracker> mTracker; member in AudioPolicyManagerFuzzerDPPlaybackReRouting
660 mTracker.reset(new RecordingActivityTracker()); in initialize()
685 getInputForAttr(attr, mTracker->getRiid(), &selectedDeviceId, mAudioConfig.format, in initialize()
739 std::unique_ptr<RecordingActivityTracker> mTracker; member in AudioPolicyManagerFuzzerDPMixRecordInjection
773 mTracker.reset(new RecordingActivityTracker()); in initialize()
828 getInputForAttr(attr, mTracker->getRiid(), &captureRoutedPortId, mAudioConfig.format, in recordingInjection()

12