Searched refs:mGrantTimeManager (Results 1 – 1 of 1) sorted by relevance
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/ |
D | FirstGrantTimeUnitTest.java | 88 private FirstGrantTimeManager mGrantTimeManager; field in FirstGrantTimeUnitTest 111 mGrantTimeManager = new FirstGrantTimeManager(mContext, mTracker, mDatastore); in setUp() 147 mGrantTimeManager = new FirstGrantTimeManager(mContext, mTracker, mDatastore); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained() 159 assertThat(mGrantTimeManager.getFirstGrantTime(SELF_PACKAGE_NAME, CURRENT_USER)) in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained() 161 assertThat(mGrantTimeManager.getFirstGrantTime(anotherPackage, CURRENT_USER)) in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained() 164 mGrantTimeManager.setFirstGrantTime(SELF_PACKAGE_NAME, instant3, CURRENT_USER); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained() 177 mGrantTimeManager.getFirstGrantTime("android.unknown_package", CURRENT_USER); in testUnknownPackage_throwsException() 184 assertThat(mGrantTimeManager.getFirstGrantTime(SELF_PACKAGE_NAME, CURRENT_USER)).isEmpty(); in testCurrentPackage_intentNotSupported_grantTimeIsNull() 199 mGrantTimeManager.onPermissionsChanged(uid); in testOnPermissionsChangedCalledWhileDeviceIsLocked_getGrantTimeNotNullAfterUnlock() 209 assertThat(mGrantTimeManager.getFirstGrantTime(SELF_PACKAGE_NAME, CURRENT_USER)) in testOnPermissionsChangedCalledWhileDeviceIsLocked_getGrantTimeNotNullAfterUnlock() [all …]
|