Home
last modified time | relevance | path

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

/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/notification/
DNotificationStatsTests.java80 for (AtomsProto.PackageNotificationPreferences pref : allPreferences) { in testNotificationPackagePreferenceExtraction()
81 assertThat(pref.getUid()).isGreaterThan(0); in testNotificationPackagePreferenceExtraction()
82 assertTrue(pref.hasImportance()); in testNotificationPackagePreferenceExtraction()
83 assertTrue(pref.hasVisibility()); in testNotificationPackagePreferenceExtraction()
84 assertTrue(pref.hasUserLockedFields()); in testNotificationPackagePreferenceExtraction()
85 if (pref.getUid() == uid) { in testNotificationPackagePreferenceExtraction()
86 assertThat(pref.getImportance()).isEqualTo(-1000); //UNSPECIFIED_IMPORTANCE in testNotificationPackagePreferenceExtraction()
87 assertThat(pref.getVisibility()).isEqualTo(-1000); //UNSPECIFIED_VISIBILITY in testNotificationPackagePreferenceExtraction()
115 for (AtomsProto.PackageNotificationChannelPreferences pref : allChannelPreferences) { in testNotificationChannelPreferencesExtraction()
116 assertThat(pref.getUid()).isGreaterThan(0); in testNotificationChannelPreferencesExtraction()
[all …]
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceParentGroupTest.java69 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 …]
DPreferenceRecycleTest.java65 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()
DFragmentPreferencesTest.java53 Preference pref = mPrefsFragment.findPreference("checkbox_preference"); in testFindPreference() local
54 assertNotNull(pref); in testFindPreference()
DPreferenceDataStoreTest.java222 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/renderscript/src/android/renderscript/cts/
Dverify.rscript37 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/
Dverify.rscript43 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/rsblas/src/android/renderscript/cts/
Dverify.rscript87 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/location/location_fine/src/android/location/cts/fine/
DScanningSettingsTest.java98 final UiObject2 pref = mDevice.findObject(By.text(res.getString(resId))); in testWifiScanningSettings() local
105 pref.click(); in testWifiScanningSettings()
113 pref.click(); in testWifiScanningSettings()
158 UiObject2 pref = mDevice.findObject(By.text(res.getString(resId))); in launchScanningSettingsFragment() local
160 pref.click(); in launchScanningSettingsFragment()
166 private void clickAndWaitForSettingChange(UiObject2 pref, ContentResolver resolver, in clickAndWaitForSettingChange() argument
180 pref.click(); in clickAndWaitForSettingChange()
195 final UiObject2 pref = mDevice.findObject(By.text(res.getString(resId))); in toggleSettingAndVerify() local
200 clickAndWaitForSettingChange(pref, resolver, settingKey); in toggleSettingAndVerify()
204 clickAndWaitForSettingChange(pref, resolver, settingKey); in toggleSettingAndVerify()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPersonalAppsSuspensionTest.java99 final SharedPreferences pref = in testComplianceAcknowledgementRequiredReceived() local
101 assertThat(pref.getBoolean(COMPLIANCE_ACK_PREF_KEY_BCAST_RECEIVED, false)).isTrue(); in testComplianceAcknowledgementRequiredReceived()
106 final SharedPreferences pref = in testSetOverrideOnComplianceAcknowledgementRequired() local
108 pref.edit().putBoolean(COMPLIANCE_ACK_PREF_KEY_OVERRIDE, true).commit(); in testSetOverrideOnComplianceAcknowledgementRequired()
125 final SharedPreferences pref = in testClearComplianceSharedPreference() local
127 pref.edit().clear().commit(); in testClearComplianceSharedPreference()
DBaseDeviceAdminTest.java108 final SharedPreferences pref = in onComplianceAcknowledgementRequired() local
111 pref.edit().putBoolean(COMPLIANCE_ACK_PREF_KEY_BCAST_RECEIVED, true).commit(); in onComplianceAcknowledgementRequired()
113 if (!pref.getBoolean(COMPLIANCE_ACK_PREF_KEY_OVERRIDE, false)) { in onComplianceAcknowledgementRequired()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListActivity.java233 SharedPreferences pref = getSharedPreferences(DisplayMode.class.getName(), MODE_PRIVATE); in setCurrentDisplayMode() local
234 pref.edit().putString(DisplayMode.class.getName(), mode).commit(); in setCurrentDisplayMode()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java748 private void setBubblesAppPref(int pref) throws Exception { in setBubblesAppPref() argument
752 + " " + Integer.toString(pref) in setBubblesAppPref()