Home
last modified time | relevance | path

Searched refs:set (Results 1 – 25 of 496) sorted by relevance

12345678910>>...20

/cts/tests/tests/animation/src/android/animation/cts/
DAnimatorSetTest.java111 AnimatorSet set = new AnimatorSet(); in testPlaySequentially() local
112 set.playSequentially(anim1, anim2); in testPlaySequentially()
113 verifySequentialPlayOrder(set, new Animator[] {anim1, anim2}); in testPlaySequentially()
123 private void verifySequentialPlayOrder(final AnimatorSet set, Animator[] animators) in verifySequentialPlayOrder() argument
147 set.addListener(new MyListener() { in verifySequentialPlayOrder()
154 long totalDuration = set.getTotalDuration(); in verifySequentialPlayOrder()
155 assertFalse(set.isRunning()); in verifySequentialPlayOrder()
157 set.start(); in verifySequentialPlayOrder()
164 assertTrue(set.isRunning()); in verifySequentialPlayOrder()
191 set.reverse(); in verifySequentialPlayOrder()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DArraySetTest.java140 private static <E> void compareSets(HashSet<E> set, ArraySet<E> array) { in compareSets() argument
141 assertEquals("Bad size", set.size(), array.size()); in compareSets()
144 for (E entry : set) { in compareSets()
151 set.contains(entry)); in compareSets()
158 set.contains(entry)); in compareSets()
161 if (set.hashCode() != array.hashCode()) { in compareSets()
162 assertEquals("Set hash codes differ", set.hashCode(), array.hashCode()); in compareSets()
165 assertTrue("HashSet.equals(ArraySet) failed", set.equals(array)); in compareSets()
166 assertTrue("ArraySet.equals(HashSet) failed", array.equals(set)); in compareSets()
168 assertTrue("HashSet.containsAll(ArraySet) failed", set.containsAll(array)); in compareSets()
[all …]
DPropertyTest.java49 RAW_FLOAT_PROP.set(this, testFloatValue); in testProperty()
52 RAW_POINT_PROP.set(this, testPointValue); in testProperty()
61 FLOAT_PROP.set(this, 5f); in testFloatProperty()
73 INT_PROP.set(this, 5); in testIntProperty()
112 public void set(PropertyTest object, Point value) {
125 public void set(PropertyTest object, Float value) {
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioMetadataTest.java75 audioMetadata.set(KEY_INTEGER, 10); in testMap()
85 audioMetadata.set(KEY_STRING, "abc"); in testMap()
105 audioMetadata.set(KEY_NUMBER, 2.125f); in testMap()
114 () -> { audioMetadata.set(null, 1); } in testMap()
117 () -> { audioMetadata.set(KEY_NUMBER, null); } in testMap()
127 audioMetadata.set(AudioMetadata.Format.KEY_PRESENTATION_ID, 1); in testFormatKeys()
128 audioMetadata.set(AudioMetadata.Format.KEY_PROGRAM_ID, 2); in testFormatKeys()
129 audioMetadata.set(AudioMetadata.Format.KEY_PRESENTATION_CONTENT_CLASSIFIER, in testFormatKeys()
131 audioMetadata.set(AudioMetadata.Format.KEY_PRESENTATION_LANGUAGE, in testFormatKeys()
133 audioMetadata.set(AudioMetadata.Format.KEY_ATMOS_PRESENT, true); in testFormatKeys()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DRegionTest.java153 assertTrue(mRegion.set(oriRegion)); in testSet1()
163 assertTrue(mRegion.set(rect)); in testSet2()
172 assertTrue(mRegion.set(1, 2, 3, 4)); in testSet3()
193 mRegion.set(1, 2, 3, 4); in testIsComplex()
198 mRegion.set(1, 1, 2, 2); in testIsComplex()
208 mRegion.set(rect); in testQuickContains1()
211 mRegion.set(5, 6, 7, 8); in testQuickContains1()
220 mRegion.set(1, 2, 3, 4); in testQuickContains2()
223 mRegion.set(5, 6, 7, 8); in testQuickContains2()
237 mRegion.set(rect2); in testUnion()
[all …]
DRegionIteratorTest.java45 region.set(1, 1, 10, 10); in testNext()
47 rect.set(1, 1, 1, 1); in testNext()
59 rect.set(1, 1, 1, 1); in testNext()
66 region.set(1, 1, 10, 10); in testNext()
67 rect.set(5, 5, 15, 15); in testNext()
86 rect.set(1, 1, 1, 1); in testNext()
93 region.set(1, 1, 10, 10); in testNext()
94 rect.set(5, 5, 15, 15); in testNext()
108 rect.set(1, 1, 1, 1); in testNext()
115 region.set(1, 1, 10, 10); in testNext()
[all …]
/cts/tests/tests/text/src/android/text/format/cts/
DTimeTest.java85 time.set(System.currentTimeMillis()); in testConstructor()
132 time.set(date, month, year); in testSet()
138 anotherTime.set(time); in testSet()
161 time.set(12, 10, 2008); in testGetWeekNumber()
263 time.set(second, minute, hour, monthDay, month, year); in checkIsEpochResult()
422 local.set(0, test.minute1, test.hour1, test.day1, test.month1, test.year1); in testNormalize1()
434 local.set(0, test.minute1, test.hour1, test.day1, test.month1, test.year1); in testNormalize1()
439 local.set(millis); in testNormalize1()
451 local.set(0, test.minute1, test.hour1, test.day1, test.month1, test.year1); in testNormalize1()
466 local.set(0, test.minute1, test.hour1, test.day1, test.month1, test.year1); in testNormalize1()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DCaptureValuesTest.java54 final TransitionSetCaptureValues set = new TransitionSetCaptureValues(); in testCaptureValues() local
55 set.addTransition(new FadeCaptureValues()); in testCaptureValues()
56 set.addTransition(new ChangeBoundsCaptureValues()); in testCaptureValues()
57 set.addTransition(new ChangeImageTransformCaptureValues()); in testCaptureValues()
58 set.addTransition(new ChangeTransformCaptureValues()); in testCaptureValues()
59 set.addTransition(new AutoTransitionCaptureValues()); in testCaptureValues()
60 set.addTransition(new ChangeClipBoundsCaptureValues()); in testCaptureValues()
61 set.addTransition(new ChangeScrollCaptureValues()); in testCaptureValues()
62 set.addTransition(new ExplodeCaptureValues()); in testCaptureValues()
63 set.addTransition(new SlideCaptureValues()); in testCaptureValues()
[all …]
/cts/tests/quicksettings/src/android/quicksettings/cts/
DTestTileService.java73 isListening.set(true); in onStartListening()
79 isListening.set(false); in onStopListening()
85 hasBeenClicked.set(true); in onClick()
92 isConnected.set(true); in onTileAdded()
99 isConnected.set(false); in onTileRemoved()
100 isListening.set(false); in onTileRemoved()
101 hasBeenClicked.set(false); in onTileRemoved()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DUnsupportedErrorDialogTests.java73 devDialogShow.set(1); in testDevSettingOverride()
75 showOnFirstCrash.set(0); in testDevSettingOverride()
76 showOnFirstCrashDev.set(1); in testDevSettingOverride()
96 devDialogShow.set(1); in testDevSettingPrecedence()
97 showOnFirstCrash.set(1); in testDevSettingPrecedence()
98 userDialogHide.set(1); in testDevSettingPrecedence()
113 devDialogShow.set(0); in testFirstCrashDialogNotShown()
115 showOnFirstCrash.set(1); in testFirstCrashDialogNotShown()
134 devDialogShow.set(0); in testRepeatedCrashDialogNotShown()
135 showOnFirstCrash.set(0); in testRepeatedCrashDialogNotShown()
[all …]
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/util/
DParcelableUtils.java82 public static void writeParcelableSet(Parcel parcel, Set<? extends Parcelable> set, int flags) { in writeParcelableSet() argument
83 parcel.writeList(new ArrayList<>(set)); in writeParcelableSet()
94 public static void writeSet(Parcel parcel, Set<?> set) { in writeSet() argument
95 parcel.writeList(new ArrayList<>(set)); in writeSet()
106 public static void writeStringSet(Parcel parcel, Set<String> set) { in writeStringSet() argument
107 parcel.writeStringList(new ArrayList<>(set)); in writeStringSet()
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DStateChangerRuleTest.java66 verify(mStateManager, times(1)).set("newValue"); in testSetAndRestoreOnSuccess()
67 verify(mStateManager, times(1)).set("before"); in testSetAndRestoreOnSuccess()
80 verify(mStateManager, never()).set(anyString()); in testDontSetIfSameValueOnSuccess()
93 verify(mStateManager, times(1)).set("newValue"); in testSetButDontRestoreIfSameValueOnSuccess()
107 verify(mStateManager, times(1)).set("sameValue"); in testDontSetButRestoreIfValueChangedOnSuccess()
123 verify(mStateManager, times(1)).set("newValue"); in testSetAndRestoreOnFailure()
124 verify(mStateManager, times(1)).set("before"); in testSetAndRestoreOnFailure()
139 verify(mStateManager, never()).set(anyString()); in testDontSetIfSameValueOnFailure()
154 verify(mStateManager, times(1)).set("newValue"); in testSetButDontRestoreIfSameValueOnFailure()
170 verify(mStateManager, times(1)).set("sameValue"); in testDontSetButRestoreIfValueChangedOnFailure()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DScriptGroupTest.java56 m.set(1, 0, 0.2f); in testScriptGroupSingleKernel()
57 m.set(1, 1, 0.9f); in testScriptGroupSingleKernel()
58 m.set(1, 2, 0.2f); in testScriptGroupSingleKernel()
92 m.set(1, 0, 0.2f); in testScriptGroupDisconnectedKernel()
93 m.set(1, 1, 0.9f); in testScriptGroupDisconnectedKernel()
94 m.set(1, 2, 0.2f); in testScriptGroupDisconnectedKernel()
141 m.set(1, 0, 0.2f); in testScriptGroupFieldConnection()
142 m.set(1, 1, 0.9f); in testScriptGroupFieldConnection()
143 m.set(1, 2, 0.2f); in testScriptGroupFieldConnection()
190 m.set(1, 0, 0.2f); in testScriptGroupDisconnectedDAG()
[all …]
DSetObjectTest.java76 field.set(mItem, 0, true); in testSetObjectElement()
96 field.set(mItem, 0, true); in testSetObjectType()
119 field.set(mItem, 0, true); in testSetObjectAllocation()
141 field.set(mItem, 0, true); in testSetObjectSampler()
163 field.set(mItem, 0, true); in testSetObjectScript()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSettingsUtils.java48 public static void set(@NonNull String namespace, @NonNull String key, @Nullable String value) { in set() method in SettingsUtils
64 public static void set(@NonNull String key, @Nullable String value) { in set() method in SettingsUtils
65 set(NAMESPACE_SECURE, key, value); in set()
86 set(namespace, key, value); in syncSet()
181 set(SettingsUtils.NAMESPACE_GLOBAL, key, value); in putGlobalSetting()
190 set(SettingsUtils.NAMESPACE_SECURE, key, value); in putSecureSetting()
218 set(namespace, key, value); in SettingResetter()
224 set(mNamespace, mKey, mOldValue); in close()
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DDateValueSanitizerTest.java65 inputCal.set(Calendar.YEAR, 2012); in testSanitize_ok()
66 inputCal.set(Calendar.MONTH, Calendar.DECEMBER); in testSanitize_ok()
67 inputCal.set(Calendar.DAY_OF_MONTH, 20); in testSanitize_ok()
74 expectedCal.set(Calendar.YEAR, 2012); in testSanitize_ok()
75 expectedCal.set(Calendar.MONTH, Calendar.DECEMBER); in testSanitize_ok()
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/
DCtsRecognitionService.java59 sIsActive.set(true); in onStartListening()
65 sIsActive.set(false); in onStartListening()
70 sIsActive.set(true); in onStopListening()
76 sIsActive.set(false); in onStopListening()
98 sIsActive.set(true); in onCancel()
104 sIsActive.set(false); in onCancel()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DSystemFontsUniqueNameTest.java39 Set<String> set = new HashSet<>(); in uniquePostScript() local
48 assertThat(set).doesNotContain(psName); in uniquePostScript()
51 set.add(psName); in uniquePostScript()
/cts/tests/camera/src/android/hardware/camera2/cts/
DBurstCaptureRawTest.java545 rawBurstBuilder.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_OFF); in createBurstRequest()
546 rawBurstBuilder.set(CaptureRequest.CONTROL_AWB_MODE, CaptureRequest.CONTROL_AWB_MODE_OFF); in createBurstRequest()
547 rawBurstBuilder.set(CaptureRequest.NOISE_REDUCTION_MODE, in createBurstRequest()
549 rawBurstBuilder.set(CaptureRequest.EDGE_MODE, CaptureRequest.EDGE_MODE_OFF); in createBurstRequest()
552 rawBurstBuilder.set(CaptureRequest.SENSOR_FRAME_DURATION, 0L); in createBurstRequest()
581 rawBurstBuilder.set(CaptureRequest.SENSOR_EXPOSURE_TIME, desiredExposure); in createBurstRequest()
582 rawBurstBuilder.set(CaptureRequest.SENSOR_SENSITIVITY, desiredSensitivity); in createBurstRequest()
604 rawBurstBuilder.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_ON); in createBurstRequestWith3A()
605 rawBurstBuilder.set(CaptureRequest.CONTROL_AWB_MODE, CaptureRequest.CONTROL_AWB_MODE_AUTO); in createBurstRequestWith3A()
606 rawBurstBuilder.set(CaptureRequest.NOISE_REDUCTION_MODE, in createBurstRequestWith3A()
[all …]
DBurstCaptureTest.java178 previewBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, in burstTestByCamera()
180 burstBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, in burstTestByCamera()
182 burstBuilder.set(CaptureRequest.CONTROL_AE_LOCK, true); in burstTestByCamera()
183 burstBuilder.set(CaptureRequest.CONTROL_AWB_LOCK, true); in burstTestByCamera()
185 previewBuilder.set(CaptureRequest.CONTROL_EXTENDED_SCENE_MODE, in burstTestByCamera()
187 burstBuilder.set(CaptureRequest.CONTROL_EXTENDED_SCENE_MODE, in burstTestByCamera()
236 previewBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, in burstTestByCamera()
239 previewBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, in burstTestByCamera()
264 previewBuilder.set(CaptureRequest.CONTROL_AE_LOCK, true); in burstTestByCamera()
265 previewBuilder.set(CaptureRequest.CONTROL_AWB_LOCK, true); in burstTestByCamera()
/cts/tests/app/src/android/app/cts/
DKeyguardManagerTest.java50 Method set = KeyguardManager.class.getMethod( in testPrivateNotificationsAllowed() local
55 set.invoke(keyguardManager, false); in testPrivateNotificationsAllowed()
57 set.invoke(keyguardManager, true); in testPrivateNotificationsAllowed()
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/
DFieldsClassificationTest.java237 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_exactMatchLast4Algorithm()
274 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_CreditCardAlgorithm()
312 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_useDefaultAlgorithm()
349 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in simpleHitTest()
386 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_sameValueForMultipleCategories()
435 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in manyUserData_oneDetectableField()
480 fieldId1.set(findAutofillIdByResourceId(context, ID_L1C1)); in testHit_oneUserData_manyDetectableFields()
481 fieldId2.set(findAutofillIdByResourceId(context, ID_L1C2)); in testHit_oneUserData_manyDetectableFields()
528 fieldId1.set(findAutofillIdByResourceId(context, ID_L1C1)); in testHit_manyUserData_manyDetectableFields()
529 fieldId2.set(findAutofillIdByResourceId(context, ID_L1C2)); in testHit_manyUserData_manyDetectableFields()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DCalendarViewTest.java104 newCalendar.set(Calendar.YEAR, newCalendar.get(Calendar.YEAR) - 1); in testAccessDate()
111 newCalendar.set(Calendar.YEAR, newCalendar.get(Calendar.YEAR) + 2); in testAccessDate()
123 minCalendar.set(Calendar.YEAR, minCalendar.get(Calendar.YEAR) - 1); in testAccessMinMaxDate()
125 maxCalendar.set(Calendar.YEAR, maxCalendar.get(Calendar.YEAR) + 1); in testAccessMinMaxDate()
142 minCalendar.set(Calendar.YEAR, minCalendar.get(Calendar.YEAR) - 1); in testMinMaxRangeRestrictionsHolo()
144 maxCalendar.set(Calendar.YEAR, maxCalendar.get(Calendar.YEAR) + 1); in testMinMaxRangeRestrictionsHolo()
169 minCalendar.set(Calendar.YEAR, minCalendar.get(Calendar.YEAR) - 1); in testMinMaxRangeClampingMaterial()
171 maxCalendar.set(Calendar.YEAR, maxCalendar.get(Calendar.YEAR) + 1); in testMinMaxRangeClampingMaterial()
218 calendar.set(Calendar.YEAR, 2008); in verifyOnDateChangeListener()
219 calendar.set(Calendar.MONTH, Calendar.SEPTEMBER); in verifyOnDateChangeListener()
[all …]
/cts/tests/signature/lib/common/src/android/signature/cts/
DAnnotationChecker.java92 for (Set<Constructor<?>> set : annotatedConstructorsMap.values()) { in checkDeferred()
93 for (Constructor<?> c : set) { in checkDeferred()
100 for (Set<Method> set : annotatedMethodsMap.values()) { in checkDeferred()
101 for (Method m : set) { in checkDeferred()
108 for (Set<Field> set : annotatedFieldsMap.values()) { in checkDeferred()
109 for (Field f : set) { in checkDeferred()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/appops/
DAppOps.java46 public void set(String appOpName, AppOpsMode mode) { in set() method in AppOps
47 set(TestApis.users().instrumented(), appOpName, mode); in set()
51 public void set(UserReference user, String appOpName, AppOpsMode mode) { in set() method in AppOps

12345678910>>...20