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.java48 Class<T> settingsClass) { in testNonHiddenSettingsKeysAreReadable() argument
49 for (String key : getNonHiddenSettingsKeys(settingsClass)) { in testNonHiddenSettingsKeysAreReadable()
51 callGetStringMethod(settingsClass, key); in testNonHiddenSettingsKeysAreReadable()
56 fail("Reading public " + settingsClass.getSimpleName() + " settings key <" + key in testNonHiddenSettingsKeysAreReadable()
63 private <T extends Settings.NameValueTable> void callGetStringMethod(Class<T> settingsClass, in callGetStringMethod() argument
66 Method getStringMethod = settingsClass.getMethod("getString", in callGetStringMethod()
76 private <T> ArraySet<String> getNonHiddenSettingsKeys(Class<T> settingsClass) { in getNonHiddenSettingsKeys() argument
78 final Field[] allFields = settingsClass.getDeclaredFields(); in getNonHiddenSettingsKeys()
83 final Object value = field.get(settingsClass); in getNonHiddenSettingsKeys()
124 Class<T> settingsClass, ArraySet<String> publicKeys, String[] targetKeys) { in testHiddenSettingsKeysReadable() argument
[all …]