Home
last modified time | relevance | path

Searched refs:fgInteractionTime (Results 1 – 3 of 3) sorted by relevance

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DOomAdjusterTests.java202 final long fgInteractionTime = 1000L; in testMaybeUpdateUsageStats_ProcStateFGS_ShortInteraction() local
203 mProcessRecord.mState.setFgInteractionTime(fgInteractionTime); in testMaybeUpdateUsageStats_ProcStateFGS_ShortInteraction()
207 assertProcessRecordState(fgInteractionTime, false, ZERO); in testMaybeUpdateUsageStats_ProcStateFGS_ShortInteraction()
213 final long fgInteractionTime = 1000L; in testMaybeUpdateUsageStats_ProcStateFGS_LongInteraction() local
214 mProcessRecord.mState.setFgInteractionTime(fgInteractionTime); in testMaybeUpdateUsageStats_ProcStateFGS_LongInteraction()
218 assertProcessRecordState(fgInteractionTime, true, elapsedTime); in testMaybeUpdateUsageStats_ProcStateFGS_LongInteraction()
224 final long fgInteractionTime = 1000L; in testMaybeUpdateUsageStats_ProcStateFGS_PreviousLongInteraction() local
225 mProcessRecord.mState.setFgInteractionTime(fgInteractionTime); in testMaybeUpdateUsageStats_ProcStateFGS_PreviousLongInteraction()
230 assertProcessRecordState(fgInteractionTime, true, ZERO); in testMaybeUpdateUsageStats_ProcStateFGS_PreviousLongInteraction()
299 private void assertProcessRecordState(long fgInteractionTime, boolean reportedInteraction, in assertProcessRecordState() argument
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DProcessStateRecord.java805 void setFgInteractionTime(long fgInteractionTime) { in setFgInteractionTime() argument
806 mFgInteractionTime = fgInteractionTime; in setFgInteractionTime()
807 mApp.getWindowProcessController().setFgInteractionTime(fgInteractionTime); in setFgInteractionTime()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowProcessController.java514 public void setFgInteractionTime(long fgInteractionTime) { in setFgInteractionTime() argument
515 mFgInteractionTime = fgInteractionTime; in setFgInteractionTime()