Home
last modified time | relevance | path

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

/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceParentGroupTest.java68 CheckBoxPreference pref = new CheckBoxPreference(mActivity); in parentViaCodeTest() local
69 assertNull(pref.getParent()); in parentViaCodeTest()
74 category.addPreference(pref); in parentViaCodeTest()
75 assertEquals(category, pref.getParent()); in parentViaCodeTest()
80 category.removePreference(pref); in parentViaCodeTest()
81 assertNull(pref.getParent()); in parentViaCodeTest()
100 CheckBoxPreference pref = (CheckBoxPreference) screen.findPreference("pref_checkbox"); in parentViaInflationTest() local
101 assertNotNull(pref); in parentViaInflationTest()
106 assertEquals(screenInner, pref.getParent()); in parentViaInflationTest()
109 pref.getParent().removePreference(pref); in parentViaInflationTest()
[all …]
DPreferenceRecycleTest.java64 CustomCheckBoxPreference pref = new CustomCheckBoxPreference(mActivity); in recycleIsOnByDefaultTest() local
65 assertTrue(pref.isRecycleEnabled()); in recycleIsOnByDefaultTest()
71 Preference pref = new Preference(mActivity); in recycleSetGetTest() local
72 pref.setRecycleEnabled(false); in recycleSetGetTest()
73 assertFalse(pref.isRecycleEnabled()); in recycleSetGetTest()
DFragmentPreferencesTest.java54 Preference pref = mPrefsFragment.findPreference("checkbox_preference"); in testFindPreference() local
55 assertNotNull(pref); in testFindPreference()
DPreferenceDataStoreTest.java221 CheckBoxPreference pref = new CheckBoxPreference(mActivityRule.getActivity()); in testInitialValueIsFromDataStoreOnPreference() local
222 pref.setKey("CheckboxTestPref"); in testInitialValueIsFromDataStoreOnPreference()
223 pref.setPreferenceDataStore(mDataStore); in testInitialValueIsFromDataStoreOnPreference()
225 mScreen.addPreference(pref); in testInitialValueIsFromDataStoreOnPreference()
227 assertTrue(pref.isChecked()); in testInitialValueIsFromDataStoreOnPreference()
239 CheckBoxPreference pref = new CheckBoxPreference(mActivityRule.getActivity()); in testInitialValueIsFromDataStoreOnPreferenceManager() local
240 pref.setKey("CheckboxTestPref"); in testInitialValueIsFromDataStoreOnPreferenceManager()
242 mScreen.addPreference(pref); in testInitialValueIsFromDataStoreOnPreferenceManager()
244 assertTrue(pref.isChecked()); in testInitialValueIsFromDataStoreOnPreferenceManager()
/cts/tests/tests/rsblas/src/android/renderscript/cts/
Dverify.rs87 float2 pref = rsGetElementAt_float2(in1, x, y);
89 … double absErr = (pref.x - ptst.x) * (pref.x - ptst.x) + (pref.y - ptst.y) * (pref.y - ptst.y);
111 float pref = rsGetElementAt_float(in1, x, y);
113 double absErr = (pref - ptst) * (pref - ptst);
135 double2 pref = rsGetElementAt_double2(in1, x, y);
137 … double absErr = (pref.x - ptst.x) * (pref.x - ptst.x) + (pref.y - ptst.y) * (pref.y - ptst.y);
159 double pref = rsGetElementAt_double(in1, x, y);
161 double absErr = (pref - ptst) * (pref - ptst);
/cts/tests/tests/rscpp/src/android/cts/rscpp/
Dverify.rs43 float4 pref = rsGetElementAt_float4(in1, x, y);
45 bool e = !compare_float(pref.x, ptst.x);
46 e |= !compare_float(pref.y, ptst.y);
47 e |= !compare_float(pref.z, ptst.z);
48 e |= !compare_float(pref.w, ptst.w);
65 float3 pref = rsGetElementAt_float3(in1, x, y);
67 bool e = !compare_float(pref.x, ptst.x);
68 e |= !compare_float(pref.y, ptst.y);
69 e |= !compare_float(pref.z, ptst.z);
86 float2 pref = rsGetElementAt_float2(in1, x, y);
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dverify.rs37 float4 pref = rsGetElementAt_float4(in1, x, y);
39 bool e = !compare_float(pref.x, ptst.x);
40 e |= !compare_float(pref.y, ptst.y);
41 e |= !compare_float(pref.z, ptst.z);
42 e |= !compare_float(pref.w, ptst.w);
58 float3 pref = rsGetElementAt_float3(in1, x, y);
60 bool e = !compare_float(pref.x, ptst.x);
61 e |= !compare_float(pref.y, ptst.y);
62 e |= !compare_float(pref.z, ptst.z);
78 float2 pref = rsGetElementAt_float2(in1, x, y);
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DProvisioningTest.java168 SharedPreferences pref = getSharedPreferences(context); in loadBundle() local
171 pref.getString(ADMIN_EXTRAS_BUNDLE_KEY_1, null)); in loadBundle()