Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/adb/
H A DAdbDebuggingManagerTest.java163 long lastConnectionTime = mKeyStore.getLastConnectionTime(TEST_KEY_1); in testDisconnectAlwaysAllowKey() local
174 lastConnectionTime, in testDisconnectAlwaysAllowKey()
245 long lastConnectionTime = mKeyStore.getLastConnectionTime(TEST_KEY_1); in testLastConnectionTimeUpdatedByScheduledJob() local
255 lastConnectionTime, mKeyStore.getLastConnectionTime(TEST_KEY_1)); in testLastConnectionTimeUpdatedByScheduledJob()
275 long lastConnectionTime = mKeyStore.getLastConnectionTime(TEST_KEY_1); in testKeystorePersisted() local
288 + "connection time message", lastConnectionTime, in testKeystorePersisted()
361 long lastConnectionTime = mKeyStore.getLastConnectionTime(TEST_KEY_1); in testLastConnectionTimeCannotBeSetBack() local
368 lastConnectionTime, mKeyStore.getLastConnectionTime(TEST_KEY_1)); in testLastConnectionTimeCannotBeSetBack()
372 Math.max(0, lastConnectionTime - (mKeyStore.getAllowedConnectionTime() + 1))); in testLastConnectionTimeCannotBeSetBack()
376 lastConnectionTime, mKeyStore.getLastConnectionTime(TEST_KEY_1)); in testLastConnectionTimeCannotBeSetBack()
/aosp12/frameworks/base/services/core/java/com/android/server/adb/
H A DAdbDebuggingManager.java1218 long lastConnectionTime = mAdbKeyStore.getLastConnectionTime(key); in logAdbConnectionChanged() local
1222 + ", lastConnectionTime = " + lastConnectionTime + ", authWindow = " in logAdbConnectionChanged()
1224 FrameworkStatsLog.write(FrameworkStatsLog.ADB_CONNECTION_CHANGED, lastConnectionTime, in logAdbConnectionChanged()
2297 long lastConnectionTime = getLastConnectionTime(key); in isKeyAuthorized() local
2298 if (lastConnectionTime == NO_PREVIOUS_CONNECTION) { in isKeyAuthorized()
2304 if (allowedConnectionTime == 0 || (System.currentTimeMillis() < (lastConnectionTime in isKeyAuthorized()