/cts/tests/tests/animation/src/android/animation/cts/ |
D | AnimatorSetTest.java | 110 AnimatorSet set = new AnimatorSet(); in testPlaySequentially() local 111 set.playSequentially(anim1, anim2); in testPlaySequentially() 112 verifySequentialPlayOrder(set, new Animator[] {anim1, anim2}); in testPlaySequentially() 122 private void verifySequentialPlayOrder(final AnimatorSet set, Animator[] animators) in verifySequentialPlayOrder() argument 146 set.addListener(new MyListener() { in verifySequentialPlayOrder() 153 long totalDuration = set.getTotalDuration(); in verifySequentialPlayOrder() 154 assertFalse(set.isRunning()); in verifySequentialPlayOrder() 156 set.start(); in verifySequentialPlayOrder() 163 assertTrue(set.isRunning()); in verifySequentialPlayOrder() 190 set.reverse(); in verifySequentialPlayOrder() [all …]
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | TimeTest.java | 70 time.set(System.currentTimeMillis()); in testConstructor() 117 time.set(date, month, year); in testSet() 123 anotherTime.set(time); in testSet() 146 time.set(12, 10, 2008); in testGetWeekNumber() 215 time.set(1, 2, 1970); in testIsEpoch() 374 local.set(0, test.minute1, test.hour1, test.day1, test.month1, test.year1); in testNormalize1() 386 local.set(0, test.minute1, test.hour1, test.day1, test.month1, test.year1); in testNormalize1() 391 local.set(millis); in testNormalize1() 403 local.set(0, test.minute1, test.hour1, test.day1, test.month1, test.year1); in testNormalize1() 418 local.set(0, test.minute1, test.hour1, test.day1, test.month1, test.year1); in testNormalize1() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | RegionTest.java | 152 assertTrue(mRegion.set(oriRegion)); in testSet1() 162 assertTrue(mRegion.set(rect)); in testSet2() 171 assertTrue(mRegion.set(1, 2, 3, 4)); in testSet3() 192 mRegion.set(1, 2, 3, 4); in testIsComplex() 197 mRegion.set(1, 1, 2, 2); in testIsComplex() 207 mRegion.set(rect); in testQuickContains1() 210 mRegion.set(5, 6, 7, 8); in testQuickContains1() 219 mRegion.set(1, 2, 3, 4); in testQuickContains2() 222 mRegion.set(5, 6, 7, 8); in testQuickContains2() 236 mRegion.set(rect2); in testUnion() [all …]
|
D | RegionIteratorTest.java | 44 region.set(1, 1, 10, 10); in testNext() 46 rect.set(1, 1, 1, 1); in testNext() 58 rect.set(1, 1, 1, 1); in testNext() 65 region.set(1, 1, 10, 10); in testNext() 66 rect.set(5, 5, 15, 15); in testNext() 85 rect.set(1, 1, 1, 1); in testNext() 92 region.set(1, 1, 10, 10); in testNext() 93 rect.set(5, 5, 15, 15); in testNext() 107 rect.set(1, 1, 1, 1); in testNext() 114 region.set(1, 1, 10, 10); in testNext() [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | ArraySetTest.java | 139 private static <E> void compareSets(HashSet<E> set, ArraySet<E> array) { in compareSets() argument 140 assertEquals("Bad size", set.size(), array.size()); in compareSets() 143 for (E entry : set) { in compareSets() 150 set.contains(entry)); in compareSets() 157 set.contains(entry)); in compareSets() 160 if (set.hashCode() != array.hashCode()) { in compareSets() 161 assertEquals("Set hash codes differ", set.hashCode(), array.hashCode()); in compareSets() 164 assertTrue("HashSet.equals(ArraySet) failed", set.equals(array)); in compareSets() 165 assertTrue("ArraySet.equals(HashSet) failed", array.equals(set)); in compareSets() 167 assertTrue("HashSet.containsAll(ArraySet) failed", set.containsAll(array)); in compareSets() [all …]
|
D | PropertyTest.java | 47 RAW_FLOAT_PROP.set(this, testFloatValue); in testProperty() 50 RAW_POINT_PROP.set(this, testPointValue); in testProperty() 59 FLOAT_PROP.set(this, 5f); in testFloatProperty() 71 INT_PROP.set(this, 5); in testIntProperty() 110 public void set(PropertyTest object, Point value) { 123 public void set(PropertyTest object, Float value) {
|
D | TimeUtilsTest.java | 49 c.set(2016, Calendar.OCTOBER, 20, 12, 0, 0); in testUnitedStates() 53 c.set(2017, Calendar.JANUARY, 20, 12, 0, 0); in testUnitedStates() 71 c.set(2016, Calendar.OCTOBER, 20, 12, 0, 0); in testWeirdUnitedStates() 88 c.set(2005, Calendar.OCTOBER, 20, 12, 0, 0); in testOld() 109 c.set(2016, Calendar.JULY, 20, 12, 0, 0); in testWorldWeird()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | CaptureValuesTest.java | 53 final TransitionSetCaptureValues set = new TransitionSetCaptureValues(); in testCaptureValues() local 54 set.addTransition(new FadeCaptureValues()); in testCaptureValues() 55 set.addTransition(new ChangeBoundsCaptureValues()); in testCaptureValues() 56 set.addTransition(new ChangeImageTransformCaptureValues()); in testCaptureValues() 57 set.addTransition(new ChangeTransformCaptureValues()); in testCaptureValues() 58 set.addTransition(new AutoTransitionCaptureValues()); in testCaptureValues() 59 set.addTransition(new ChangeClipBoundsCaptureValues()); in testCaptureValues() 60 set.addTransition(new ChangeScrollCaptureValues()); in testCaptureValues() 61 set.addTransition(new ExplodeCaptureValues()); in testCaptureValues() 62 set.addTransition(new SlideCaptureValues()); in testCaptureValues() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/common/ |
D | StateChangerRuleTest.java | 69 verify(mStateManager, times(1)).set("newValue"); in testSetAndRestoreOnSuccess() 70 verify(mStateManager, times(1)).set("before"); in testSetAndRestoreOnSuccess() 83 verify(mStateManager, never()).set(anyString()); in testDontSetIfSameValueOnSuccess() 96 verify(mStateManager, times(1)).set("newValue"); in testSetButDontRestoreIfSameValueOnSuccess() 110 verify(mStateManager, times(1)).set("sameValue"); in testDontSetButRestoreIfValueChangedOnSuccess() 126 verify(mStateManager, times(1)).set("newValue"); in testSetAndRestoreOnFailure() 127 verify(mStateManager, times(1)).set("before"); in testSetAndRestoreOnFailure() 142 verify(mStateManager, never()).set(anyString()); in testDontSetIfSameValueOnFailure() 157 verify(mStateManager, times(1)).set("newValue"); in testSetButDontRestoreIfSameValueOnFailure() 173 verify(mStateManager, times(1)).set("sameValue"); in testDontSetButRestoreIfValueChangedOnFailure()
|
D | StateKeeperRuleTest.java | 67 verify(mStateManager, times(1)).set("before"); in testRestoreOnSuccess() 82 verify(mStateManager, times(1)).set("before"); in testRestoreOnFailure() 94 verify(mStateManager, never()).set(anyString()); in testDoNotRestoreWhenNotChanged() 108 verify(mStateManager, never()).set(anyString()); in testDoNotRestoreOnFailure()
|
D | SettingsHelper.java | 40 public static void set(@NonNull String namespace, @NonNull String key, @Nullable String value) { in set() method in SettingsHelper 48 public static void set(@NonNull String key, @Nullable String value) { in set() method in SettingsHelper 49 set(NAMESPACE_SECURE, key, value); in set() 70 set(namespace, key, value); in syncSet()
|
/cts/hostsidetests/security/src/android/security/cts/ |
D | KernelConfigTest.java | 86 HashSet<String> set; in getDeviceConfig() local 88 set = cache.get(device); in getDeviceConfig() 90 if (set != null) { in getDeviceConfig() 91 return set; in getDeviceConfig() 98 set = new HashSet<String>(reader.lines().collect(Collectors.toList())); in getDeviceConfig() 101 cache.put(device, set); in getDeviceConfig() 103 return set; in getDeviceConfig()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | ScriptGroupTest.java | 56 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 …]
|
D | IsObjectTest.java | 75 filed.set(mItem, 0, true); in testIsObjectElement() 95 filed.set(mItem, 0, true); in testIsObjectType() 119 filed.set(mItem, 0, true); in testIsObjectAllocation() 142 filed.set(mItem, 0, true); in testIsObjectSampler() 164 filed.set(mItem, 0, true); in testIsObjectScript()
|
D | SetObjectTest.java | 76 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/tests/autofillservice/src/android/autofillservice/cts/ |
D | DateValueSanitizerTest.java | 64 inputCal.set(Calendar.YEAR, 2012); in testSanitize_ok() 65 inputCal.set(Calendar.MONTH, Calendar.DECEMBER); in testSanitize_ok() 66 inputCal.set(Calendar.DAY_OF_MONTH, 20); in testSanitize_ok() 73 expectedCal.set(Calendar.YEAR, 2012); in testSanitize_ok() 74 expectedCal.set(Calendar.MONTH, Calendar.DECEMBER); in testSanitize_ok()
|
/cts/tests/signature/src/android/signature/cts/ |
D | AnnotationChecker.java | 74 for (Set<Constructor<?>> set : annotatedConstructorsMap.values()) { in checkDeferred() 75 for (Constructor<?> c : set) { in checkDeferred() 81 for (Set<Method> set : annotatedMethodsMap.values()) { in checkDeferred() 82 for (Method m : set) { in checkDeferred() 88 for (Set<Field> set : annotatedFieldsMap.values()) { in checkDeferred() 89 for (Field f : set) { in checkDeferred()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | BurstCaptureRawTest.java | 536 rawBurstBuilder.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_OFF); in createBurstRequest() 537 rawBurstBuilder.set(CaptureRequest.CONTROL_AWB_MODE, CaptureRequest.CONTROL_AWB_MODE_OFF); in createBurstRequest() 538 rawBurstBuilder.set(CaptureRequest.NOISE_REDUCTION_MODE, in createBurstRequest() 540 rawBurstBuilder.set(CaptureRequest.EDGE_MODE, CaptureRequest.EDGE_MODE_OFF); in createBurstRequest() 543 rawBurstBuilder.set(CaptureRequest.SENSOR_FRAME_DURATION, 0L); in createBurstRequest() 572 rawBurstBuilder.set(CaptureRequest.SENSOR_EXPOSURE_TIME, desiredExposure); in createBurstRequest() 573 rawBurstBuilder.set(CaptureRequest.SENSOR_SENSITIVITY, desiredSensitivity); in createBurstRequest() 595 rawBurstBuilder.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_ON); in createBurstRequestWith3A() 596 rawBurstBuilder.set(CaptureRequest.CONTROL_AWB_MODE, CaptureRequest.CONTROL_AWB_MODE_AUTO); in createBurstRequestWith3A() 597 rawBurstBuilder.set(CaptureRequest.NOISE_REDUCTION_MODE, in createBurstRequestWith3A() [all …]
|
D | BurstCaptureTest.java | 120 previewBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, in yuvBurstTestByCamera() 122 burstBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, in yuvBurstTestByCamera() 124 burstBuilder.set(CaptureRequest.CONTROL_AE_LOCK, true); in yuvBurstTestByCamera() 125 burstBuilder.set(CaptureRequest.CONTROL_AWB_LOCK, true); in yuvBurstTestByCamera() 171 previewBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, in yuvBurstTestByCamera() 174 previewBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, in yuvBurstTestByCamera() 199 previewBuilder.set(CaptureRequest.CONTROL_AE_LOCK, true); in yuvBurstTestByCamera() 200 previewBuilder.set(CaptureRequest.CONTROL_AWB_LOCK, true); in yuvBurstTestByCamera()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | DateSorterTest.java | 47 HashSet<String> set = new HashSet<String>(); in testGetLabel() local 53 assertFalse(set.contains(label)); in testGetLabel() 54 set.add(label); in testGetLabel()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | RunOnMainUtils.java | 37 returnValue.set(callable.call()); in getOnMain() 39 throwable.set(e); in getOnMain()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | CalendarViewTest.java | 102 newCalendar.set(Calendar.YEAR, newCalendar.get(Calendar.YEAR) - 1); in testAccessDate() 109 newCalendar.set(Calendar.YEAR, newCalendar.get(Calendar.YEAR) + 2); in testAccessDate() 121 minCalendar.set(Calendar.YEAR, minCalendar.get(Calendar.YEAR) - 1); in testAccessMinMaxDate() 123 maxCalendar.set(Calendar.YEAR, maxCalendar.get(Calendar.YEAR) + 1); in testAccessMinMaxDate() 140 minCalendar.set(Calendar.YEAR, minCalendar.get(Calendar.YEAR) - 1); in testMinMaxRangeRestrictionsHolo() 142 maxCalendar.set(Calendar.YEAR, maxCalendar.get(Calendar.YEAR) + 1); in testMinMaxRangeRestrictionsHolo() 167 minCalendar.set(Calendar.YEAR, minCalendar.get(Calendar.YEAR) - 1); in testMinMaxRangeClampingMaterial() 169 maxCalendar.set(Calendar.YEAR, maxCalendar.get(Calendar.YEAR) + 1); in testMinMaxRangeClampingMaterial() 216 calendar.set(Calendar.YEAR, 2008); in verifyOnDateChangeListener() 217 calendar.set(Calendar.MONTH, Calendar.SEPTEMBER); in verifyOnDateChangeListener() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityMagnificationTest.java | 79 mService.runOnServiceSync(() -> result.set(controller.setScale(scale, false))); in testSetScale() 84 mService.runOnServiceSync(() -> result.set(controller.reset(false))); in testSetScale() 104 setScale.set(controller.setScale(scale, false)); in testSetScaleAndCenter() 105 setCenter.set(controller.setCenter(x, y, false)); in testSetScaleAndCenter() 115 mService.runOnServiceSync(() -> result.set(controller.reset(false))); in testSetScaleAndCenter() 130 mService.runOnServiceSync(() -> result.set(controller.setScale(scale, false))); in testListener() 136 mService.runOnServiceSync(() -> result.set(controller.reset(false))); in testListener()
|
/cts/tests/tests/background/src/android/app/cts/backgroundrestrictions/ |
D | MyReceiver.java | 41 sCallback.set(callback); in setCallback() 45 sCallback.set(null); in clearCallback()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | PrecomputedTextTest.java | 450 rect.set(0, 0, 0, 0); in testGetBounds() 454 rect.set(0, 0, 0, 0); in testGetBounds() 458 rect.set(0, 0, 0, 0); in testGetBounds() 462 rect.set(0, 0, 0, 0); in testGetBounds() 466 rect.set(0, 0, 0, 0); in testGetBounds() 470 rect.set(0, 0, 0, 0); in testGetBounds() 474 rect.set(0, 0, 0, 0); in testGetBounds() 478 rect.set(0, 0, 0, 0); in testGetBounds() 482 rect.set(0, 0, 0, 0); in testGetBounds() 486 rect.set(0, 0, 0, 0); in testGetBounds() [all …]
|