Home
last modified time | relevance | path

Searched refs:mHalSessionPtr (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/hint/
DHintManagerService.java606 Slog.e(TAG, "Failed to clean up session " + session.mHalSessionPtr in handleMessage()
718 + session.mHalSessionPtr + " with UID " + session.mUid + "\n\t" in cleanUpSession()
1001 protected long mHalSessionPtr; field in HintManagerService.AppHintSession
1019 mHalSessionPtr = halSessionPtr; in AppHintSession()
1029 mNativeWrapper.halCloseHintSession(mHalSessionPtr); in AppHintSession()
1045 return mHalSessionPtr != 0 && mUpdateAllowedByProcState && !mShouldForcePause; in isHintAllowed()
1056 mNativeWrapper.halUpdateTargetWorkDuration(mHalSessionPtr, targetDurationNanos); in updateTargetWorkDuration()
1078 mNativeWrapper.halReportActualWorkDuration(mHalSessionPtr, actualDurationNanos, in reportActualWorkDuration()
1087 if (mHalSessionPtr == 0) return; in close()
1088 mNativeWrapper.halCloseHintSession(mHalSessionPtr); in close()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/hint/
DHintManagerServiceTest.java743 eq(session.mHalSessionPtr), any());
744 verify(mNativeWrapperMock, times(1)).halSetMode(eq(session.mHalSessionPtr), anyInt(),
747 eq(session.mHalSessionPtr), anyLong());
748 verify(mNativeWrapperMock, times(1)).halSendHint(eq(session.mHalSessionPtr), anyInt());
751 eq(session.mHalSessionPtr), any());
752 verify(mNativeWrapperMock, never()).halSetMode(eq(session.mHalSessionPtr), anyInt(),
755 eq(session.mHalSessionPtr), anyLong());
756 verify(mNativeWrapperMock, never()).halSendHint(eq(session.mHalSessionPtr), anyInt());