Searched refs:expiringBy (Results 1 – 2 of 2) sorted by relevance
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/ |
D | SettingsTest.java | 106 Duration expiringBy = Duration.ofMillis(1000); in testResetDefaults() local 109 Settings.setDeviceConfig(sContext, extraKeys, expiringBy, url)); in testResetDefaults() 126 Duration expiringBy = Duration.ofMillis(1000); in testSetDeviceConfig() local 129 Settings.setDeviceConfig(sContext, extraKeys, expiringBy, url)); in testSetDeviceConfig() 131 assertEquals(expiringBy.toMillis(), Settings.getExpiringBy(sContext).toMillis()); in testSetDeviceConfig() 137 long expiringBy = Settings.getExpiringBy(sContext).toMillis(); in testGetExpirationTime() local 139 - (expiringBy + System.currentTimeMillis()); in testGetExpirationTime()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/utils/ |
D | Settings.java | 177 Duration expiringBy, String url) { in setDeviceConfig() argument 186 if (expiringBy != null in setDeviceConfig() 187 && sharedPref.getLong(KEY_EXPIRING_BY, -1) != expiringBy.toMillis()) { in setDeviceConfig() 188 editor.putLong(KEY_EXPIRING_BY, expiringBy.toMillis()); in setDeviceConfig()
|