Searched refs:pref (Results 1 – 8 of 8) sorted by relevance
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceParentGroupTest.java | 69 CheckBoxPreference pref = new CheckBoxPreference(mActivity); in parentViaCodeTest() local 70 assertNull(pref.getParent()); in parentViaCodeTest() 75 category.addPreference(pref); in parentViaCodeTest() 76 assertEquals(category, pref.getParent()); in parentViaCodeTest() 81 category.removePreference(pref); in parentViaCodeTest() 82 assertNull(pref.getParent()); in parentViaCodeTest() 101 CheckBoxPreference pref = (CheckBoxPreference) screen.findPreference("pref_checkbox"); in parentViaInflationTest() local 102 assertNotNull(pref); in parentViaInflationTest() 107 assertEquals(screenInner, pref.getParent()); in parentViaInflationTest() 110 pref.getParent().removePreference(pref); in parentViaInflationTest() [all …]
|
D | PreferenceRecycleTest.java | 65 CustomCheckBoxPreference pref = new CustomCheckBoxPreference(mActivity); in recycleIsOnByDefaultTest() local 66 assertTrue(pref.isRecycleEnabled()); in recycleIsOnByDefaultTest() 72 Preference pref = new Preference(mActivity); in recycleSetGetTest() local 73 pref.setRecycleEnabled(false); in recycleSetGetTest() 74 assertFalse(pref.isRecycleEnabled()); in recycleSetGetTest()
|
D | FragmentPreferencesTest.java | 53 Preference pref = mPrefsFragment.findPreference("checkbox_preference"); in testFindPreference() local 54 assertNotNull(pref); in testFindPreference()
|
D | PreferenceDataStoreTest.java | 222 CheckBoxPreference pref = new CheckBoxPreference(mActivityRule.getActivity()); in testInitialValueIsFromDataStoreOnPreference() local 223 pref.setKey("CheckboxTestPref"); in testInitialValueIsFromDataStoreOnPreference() 224 pref.setPreferenceDataStore(mDataStore); in testInitialValueIsFromDataStoreOnPreference() 226 mScreen.addPreference(pref); in testInitialValueIsFromDataStoreOnPreference() 228 assertTrue(pref.isChecked()); in testInitialValueIsFromDataStoreOnPreference() 240 CheckBoxPreference pref = new CheckBoxPreference(mActivityRule.getActivity()); in testInitialValueIsFromDataStoreOnPreferenceManager() local 241 pref.setKey("CheckboxTestPref"); in testInitialValueIsFromDataStoreOnPreferenceManager() 243 mScreen.addPreference(pref); in testInitialValueIsFromDataStoreOnPreferenceManager() 245 assertTrue(pref.isChecked()); in testInitialValueIsFromDataStoreOnPreferenceManager()
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | verify.rs | 87 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/renderscript/src/android/renderscript/cts/ |
D | verify.rs | 37 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/tests/tests/rscpp/src/android/cts/rscpp/ |
D | verify.rs | 43 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/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | ProvisioningTest.java | 171 SharedPreferences pref = getSharedPreferences(context); in loadBundle() local 174 pref.getString(ADMIN_EXTRAS_BUNDLE_KEY_1, null)); in loadBundle()
|