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.java81 for (AtomsProto.PackageNotificationPreferences pref : allPreferences) { in testNotificationPackagePreferenceExtraction()
82 assertThat(pref.getUid()).isGreaterThan(0); in testNotificationPackagePreferenceExtraction()
83 assertTrue(pref.hasImportance()); in testNotificationPackagePreferenceExtraction()
84 assertTrue(pref.hasVisibility()); in testNotificationPackagePreferenceExtraction()
85 assertTrue(pref.hasUserLockedFields()); in testNotificationPackagePreferenceExtraction()
86 if (pref.getUid() == uid) { in testNotificationPackagePreferenceExtraction()
87 assertThat(pref.getImportance()).isEqualTo(3); //IMPORTANCE_EDULT in testNotificationPackagePreferenceExtraction()
88 assertThat(pref.getVisibility()).isEqualTo(-1000); //UNSPECIFIED_VISIBILITY in testNotificationPackagePreferenceExtraction()
116 for (AtomsProto.PackageNotificationChannelPreferences pref : allChannelPreferences) { in testNotificationChannelPreferencesExtraction()
117 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.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.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/location/location_fine/src/android/location/cts/fine/
DScanningSettingsTest.java102 final UiObject2 pref = mDevice.findObject(By.text(res.getString(resId))); in testWifiScanningSettings() local
109 pref.click(); in testWifiScanningSettings()
116 pref.click(); in testWifiScanningSettings()
155 UiObject2 pref = mDevice.findObject(By.text(res.getString(resIdMenu))); in launchScanningSettingsFragment() local
156 while (pref == null) { in launchScanningSettingsFragment()
163 pref = in launchScanningSettingsFragment()
171 if (pref == null) { in launchScanningSettingsFragment()
172 pref = mDevice.findObject(By.text(res.getString(resIdMenu))); in launchScanningSettingsFragment()
187 pref.click(); in launchScanningSettingsFragment()
197 UiObject2 pref, ContentResolver resolver, String settingKey) { in clickAndWaitForSettingChange() argument
[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/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/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/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPersonalAppsSuspensionTest.java102 final SharedPreferences pref = in testComplianceAcknowledgementRequiredReceived() local
105 () -> pref.getBoolean(COMPLIANCE_ACK_PREF_KEY_BCAST_RECEIVED, false)); in testComplianceAcknowledgementRequiredReceived()
110 final SharedPreferences pref = in testSetOverrideOnComplianceAcknowledgementRequired() local
112 pref.edit().putBoolean(COMPLIANCE_ACK_PREF_KEY_OVERRIDE, true).commit(); in testSetOverrideOnComplianceAcknowledgementRequired()
129 final SharedPreferences pref = in testClearComplianceSharedPreference() local
131 pref.edit().clear().commit(); in testClearComplianceSharedPreference()
DBaseDeviceAdminTest.java109 final SharedPreferences pref = in onComplianceAcknowledgementRequired() local
112 pref.edit().putBoolean(COMPLIANCE_ACK_PREF_KEY_BCAST_RECEIVED, true).commit(); in onComplianceAcknowledgementRequired()
114 if (!pref.getBoolean(COMPLIANCE_ACK_PREF_KEY_OVERRIDE, false)) { in onComplianceAcknowledgementRequired()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListActivity.java412 SharedPreferences pref = getSharedPreferences(DisplayMode.class.getName(), MODE_PRIVATE);
413 pref.edit().putString(DisplayMode.class.getName(), mode).commit();
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationManagerBubbleTest.java203 private void setBubblesAppPref(int pref) throws Exception { in setBubblesAppPref() argument
207 + " " + Integer.toString(pref) in setBubblesAppPref()