Home
last modified time | relevance | path

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

/cts/hostsidetests/appsecurity/test-apps/ReadSettingsFieldsApp/src/com/android/cts/readsettingsfieldsapp/
DReadSettingsFieldsTest.java49 Class<T> settingsClass) { in testNonHiddenSettingsKeysAreReadable() argument
50 for (String key : getNonHiddenSettingsKeys(settingsClass)) { in testNonHiddenSettingsKeysAreReadable()
52 callGetStringMethod(settingsClass, key); in testNonHiddenSettingsKeysAreReadable()
57 fail("Reading non-hidden " + settingsClass.getSimpleName() + " settings key <" + key in testNonHiddenSettingsKeysAreReadable()
64 private <T extends Settings.NameValueTable> void callGetStringMethod(Class<T> settingsClass, in callGetStringMethod() argument
67 Method getStringMethod = settingsClass.getMethod("getString", in callGetStringMethod()
77 private <T> ArraySet<String> getNonHiddenSettingsKeys(Class<T> settingsClass) { in getNonHiddenSettingsKeys() argument
79 final Field[] allFields = settingsClass.getDeclaredFields(); in getNonHiddenSettingsKeys()
84 final Object value = field.get(settingsClass); in getNonHiddenSettingsKeys()
129 Class<T> settingsClass, ArraySet<String> publicKeys, String[] targetKeys) { in testHiddenSettingsKeysReadable() argument
[all …]