/frameworks/native/services/inputflinger/tests/ |
D | LatencyTracker_test.cpp | 54 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/ |
D | VSyncReactor.cpp | 44 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 …]
|
D | VsyncSchedule.cpp | 55 : mTracker(createTracker()), in VsyncSchedule() 56 mDispatch(createDispatch(*mTracker)), in VsyncSchedule() 57 mController(createController(*mTracker, features)) { in VsyncSchedule() 64 : mTracker(std::move(tracker)), in VsyncSchedule()
|
D | VsyncSchedule.h | 42 const VsyncTracker& getTracker() const { return *mTracker; } in getTracker() 43 VsyncTracker& getTracker() { return *mTracker; } in getTracker() 69 TrackerPtr mTracker; variable
|
D | VSyncDispatchTimerQueue.cpp | 206 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()
|
D | VSyncReactor.h | 65 VSyncTracker& mTracker; variable
|
D | VSyncDispatchTimerQueue.h | 147 VSyncTracker& mTracker; variable
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessTrackerTest.java | 94 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/ |
D | BaseLeakChecker.java | 27 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()
|
D | FakeExtensionController.java | 28 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/ |
D | ImsExternalCallTrackerTest.java | 49 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/ |
D | TertiaryKeyRotationScheduler.java | 52 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/ |
D | SmsDispatchersControllerTest.java | 57 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/ |
D | BaseAppStateTimeSlotEventsTracker.java | 158 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 …]
|
D | AppFGSTracker.java | 137 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 …]
|
D | BaseAppStatePolicy.java | 39 protected final T mTracker; field in BaseAppStatePolicy 59 mTracker = tracker; in BaseAppStatePolicy() 122 return mTracker.mAppRestrictionController.getBackgroundRestrictionExemptionReason(uid); in shouldExemptUid()
|
D | AppPermissionTracker.java | 407 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()
|
D | AppMediaSessionTracker.java | 211 mTracker.onBgMediaSessionMonitorEnabled(enabled); in onTrackerEnabled() 216 mTracker.mBgHandler.post(mTracker::trimDurations); in onMaxTrackingDurationChanged()
|
D | AppBatteryTracker.java | 1636 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()
|
D | AppBatteryExemptionTracker.java | 536 mTracker.mBgHandler.post(mTracker::trimDurations); in onMaxTrackingDurationChanged() 541 mTracker.onTrackerEnabled(enabled); in onTrackerEnabled()
|
/frameworks/base/services/core/java/com/android/server/slice/ |
D | SliceProviderPermissions.java | 48 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()
|
D | SliceClientPermissions.java | 56 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/ |
D | SMSDispatcher.java | 445 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 …]
|
D | InboundSmsHandler.java | 1808 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/ |
D | audiopolicy_fuzzer.cpp | 629 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()
|