Home
last modified time | relevance | path

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

12345678910>>...27

/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/quicksettings/src/android/quicksettings/cts/
DCurrentTestState.java76 sInstance.set(null); in reset()
77 sHasTileBeenClicked.set(false); in reset()
78 sClassName.set(null); in reset()
79 sFgsLaunched.set(false); in reset()
87 CurrentTestState.sInstance.set(instance); in setCurrentInstance()
95 sClassName.set(className); in setTileServiceClass()
107 sHasTileBeenClicked.set(clicked); in setTileHasBeenClicked()
115 sFgsLaunched.set(launched); in setFgsLaunched()
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/collections/
DQueryableIntegerHashSet.java33 public QueryableIntegerHashSetQuery(Set<Integer> set) { in QueryableIntegerHashSetQuery() argument
34 super(set); in QueryableIntegerHashSetQuery()
48 QueryableIntegerHashSet set = new QueryableIntegerHashSet(); in of() local
50 boolean unused = set.add(value); in of()
52 return set; in of()
59 public QueryableIntegerHashSet(Set<Integer> set) { in QueryableIntegerHashSet() argument
60 super(set); in QueryableIntegerHashSet()
DQueryableActivityInfoHashSet.java34 public QueryableActivityInfoHashSetQuery(Set<ActivityInfo> set) { in QueryableActivityInfoHashSetQuery() argument
35 super(set); in QueryableActivityInfoHashSetQuery()
49 QueryableActivityInfoHashSet set = new QueryableActivityInfoHashSet(); in of() local
51 boolean unused = set.add(value); in of()
53 return set; in of()
60 public QueryableActivityInfoHashSet(Set<ActivityInfo> set) { in QueryableActivityInfoHashSet() argument
61 super(set); in QueryableActivityInfoHashSet()
DQueryableIntentFilterHashSet.java35 public QueryableIntentFilterHashSetQuery(Set<IntentFilter> set) { in QueryableIntentFilterHashSetQuery() argument
36 super(set); in QueryableIntentFilterHashSetQuery()
50 QueryableIntentFilterHashSet set = new QueryableIntentFilterHashSet(); in of() local
52 boolean unused = set.add(value); in of()
54 return set; in of()
61 public QueryableIntentFilterHashSet(Set<IntentFilter> set) { in QueryableIntentFilterHashSet() argument
62 super(set); in QueryableIntentFilterHashSet()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioMetadataTest.java78 audioMetadata.set(KEY_INTEGER, 10); in testMap()
88 audioMetadata.set(KEY_STRING, "abc"); in testMap()
108 audioMetadata.set(KEY_NUMBER, 2.125f); in testMap()
117 () -> { audioMetadata.set(null, 1); } in testMap()
120 () -> { audioMetadata.set(KEY_NUMBER, null); } in testMap()
130 audioMetadata.set(AudioMetadata.Format.KEY_PRESENTATION_ID, 1); in testFormatKeys()
131 audioMetadata.set(AudioMetadata.Format.KEY_PROGRAM_ID, 2); in testFormatKeys()
132 audioMetadata.set(AudioMetadata.Format.KEY_PRESENTATION_CONTENT_CLASSIFIER, in testFormatKeys()
134 audioMetadata.set(AudioMetadata.Format.KEY_PRESENTATION_LANGUAGE, in testFormatKeys()
136 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 …]
DMatrix44Test.java70 mMatrix44.set(0, 0, 5); in testIsIdentity()
109 mMatrix44.set(0, 0, 5.0f); in testSet()
110 mMatrix44.set(3, 3, 2.0f); in testSet()
121 mMatrix44.set(2, 2, 5.0f); in testReset()
165 mMatrix44.set(1, 1, 2.0f); in testConcat()
166 mMatrix44.set(2, 3, 3.0f); in testConcat()
168 b.set(0, 0, 20.0f); in testConcat()
169 b.set(2, 3, 3.0f); in testConcat()
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/collections/
DQueryableIntegerHashSetTest.java39 QueryableIntegerHashSet set = QueryableIntegerHashSet.of(1, 2, 3, 4); in get_containsMatch_returnsOneMatch() local
41 assertThat(set.query() in get_containsMatch_returnsOneMatch()
50 QueryableIntegerHashSet set = QueryableIntegerHashSet.of(1, 2, 3, 4); in get_containsMultipleMatches_returnsOneMatch() local
52 assertThat(set.query() in get_containsMultipleMatches_returnsOneMatch()
61 QueryableIntegerHashSet set = QueryableIntegerHashSet.of(1, 2, 3, 4); in get_containsNoMatches_returnsNull() local
63 assertThat(set.query() in get_containsNoMatches_returnsNull()
72 QueryableIntegerHashSet set = QueryableIntegerHashSet.of(1, 2, 3, 4); in filter_filters() local
74 assertThat(set.query() in filter_filters()
DQueryableActivityInfoHashSetTest.java45 QueryableActivityInfoHashSet set = in get_containsMatch_returnsOneMatch() local
50 assertThat(set.query() in get_containsMatch_returnsOneMatch()
58 QueryableActivityInfoHashSet set = in get_containsMultipleMatches_returnsOneMatch() local
63 assertThat(set.query() in get_containsMultipleMatches_returnsOneMatch()
71 QueryableActivityInfoHashSet set = in get_containsNoMatches_returnsNull() local
75 assertThat(set.query() in get_containsNoMatches_returnsNull()
83 QueryableActivityInfoHashSet set = in filter_filters() local
88 assertThat(set.query() in filter_filters()
DQueryableIntentFilterHashSetTest.java61 QueryableIntentFilterHashSet set = in get_containsMatch_returnsOneMatch() local
66 assertThat(set.query() in get_containsMatch_returnsOneMatch()
74 QueryableIntentFilterHashSet set = in get_containsMultipleMatches_returnsOneMatch() local
79 assertThat(set.query() in get_containsMultipleMatches_returnsOneMatch()
87 QueryableIntentFilterHashSet set = in get_containsNoMatches_returnsNull() local
91 assertThat(set.query() in get_containsNoMatches_returnsNull()
99 QueryableIntentFilterHashSet set = in filter_filters() local
104 assertThat(set.query() in filter_filters()
/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/animation/src/android/animation/cts/
DAnimatorSetTest.java121 AnimatorSet set = new AnimatorSet(); in testPlaySequentially() local
122 set.playSequentially(anim1, anim2); in testPlaySequentially()
123 verifySequentialPlayOrder(set, new Animator[] {anim1, anim2}); in testPlaySequentially()
133 private void verifySequentialPlayOrder(final AnimatorSet set, Animator[] animators) in verifySequentialPlayOrder() argument
157 set.addListener(new MyListener() { in verifySequentialPlayOrder()
164 long totalDuration = set.getTotalDuration(); in verifySequentialPlayOrder()
165 assertFalse(set.isRunning()); in verifySequentialPlayOrder()
167 set.start(); in verifySequentialPlayOrder()
174 assertTrue(set.isRunning()); in verifySequentialPlayOrder()
201 set.reverse(); in verifySequentialPlayOrder()
[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/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicyStringResources.java55 public void set(String id, int resource) { in set() method in DevicePolicyStringResources
56 set(new DevicePolicyStringResource(TestApis.context().instrumentedContext(), id, resource)); in set()
62 public void set(Map<String, Integer> resources) { in set() method in DevicePolicyStringResources
63set(resources.keySet().stream().map(id -> new DevicePolicyStringResource(TestApis.context().instru… in set()
70 public void set(DevicePolicyStringResource... resources) { in set() method in DevicePolicyStringResources
71 set(new HashSet<>(Arrays.asList(resources))); in set()
77 public void set(Set<DevicePolicyStringResource> resources) { in set() method in DevicePolicyStringResources
DDevicePolicyDrawableResources.java54 public void set(String id, String style, int resource) { in set() method in DevicePolicyDrawableResources
55set(new DevicePolicyDrawableResource(TestApis.context().instrumentedContext(), id, style, resource… in set()
61 public void set(DevicePolicyDrawableResource... resources) { in set() method in DevicePolicyDrawableResources
62 set(new HashSet<>(Arrays.asList(resources))); in set()
68 public void set(Set<DevicePolicyDrawableResource> resources) { in set() method in DevicePolicyDrawableResources
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DUnsupportedErrorDialogTests.java77 devDialogShow.set(1); in testDevSettingOverride()
79 showOnFirstCrash.set(0); in testDevSettingOverride()
80 showOnFirstCrashDev.set(1); in testDevSettingOverride()
100 devDialogShow.set(1); in testDevSettingPrecedence()
101 showOnFirstCrash.set(1); in testDevSettingPrecedence()
102 userDialogHide.set(1); in testDevSettingPrecedence()
117 devDialogShow.set(0); in testFirstCrashDialogNotShown()
119 showOnFirstCrash.set(1); in testFirstCrashDialogNotShown()
138 devDialogShow.set(0); in testRepeatedCrashDialogNotShown()
139 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 …]
/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/flags/cc_tests/src/
DFlagMacrosTests.cpp25 static std::set<std::string> executed_tests;
32 std::set<std::string> TestFWithFlagsTest::executed_tests = {};
111 std::set<std::string> expected_executed_tests = { in TEST_F()
122 static std::set<std::string> executed_tests;
125 std::set<std::string> TestWithFlagsTestHelper::executed_tests = {};
208 std::set<std::string> expected_executed_tests = { in TEST()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DSystemFontsUniqueNameTest.java38 Set<String> set = new HashSet<>(); in uniquePostScript() local
47 assertThat(set).doesNotContain(psName); in uniquePostScript()
50 set.add(psName); in uniquePostScript()

12345678910>>...27