Home
last modified time | relevance | path

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

12345678910>>...68

/frameworks/base/tests/net/java/android/net/
DNetworkUtilsTest.java48 final TreeSet<IpPrefix> set = new TreeSet<>(IpPrefix.lengthComparator()); in testRoutedIPv4AddressCount() local
50 assertEquals(0, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
52 set.add(new IpPrefix("0.0.0.0/0")); in testRoutedIPv4AddressCount()
53 assertEquals(1l << 32, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
55 set.add(new IpPrefix("20.18.0.0/16")); in testRoutedIPv4AddressCount()
56 set.add(new IpPrefix("20.18.0.0/24")); in testRoutedIPv4AddressCount()
57 set.add(new IpPrefix("20.18.0.0/8")); in testRoutedIPv4AddressCount()
59 assertEquals(1l << 32, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
61 set.clear(); in testRoutedIPv4AddressCount()
62 set.add(new IpPrefix("20.18.0.0/24")); in testRoutedIPv4AddressCount()
[all …]
/frameworks/ex/camera2/portability/tests/src/com/android/ex/camera2/portability/
DCamera2PortabilityTest.java114 AndroidCamera2Settings set = new AndroidCamera2Settings( in camera2SettingsSetOptionsAndGetRequestSettings() local
119 set.setFocusMode(FocusMode.AUTO); in camera2SettingsSetOptionsAndGetRequestSettings()
120 camera2SettingsCheckSingleOption(set, CONTROL_AF_MODE, CONTROL_AF_MODE_AUTO); in camera2SettingsSetOptionsAndGetRequestSettings()
121 set.setFocusMode(FocusMode.CONTINUOUS_PICTURE); in camera2SettingsSetOptionsAndGetRequestSettings()
122 camera2SettingsCheckSingleOption(set, CONTROL_AF_MODE, CONTROL_AF_MODE_CONTINUOUS_PICTURE); in camera2SettingsSetOptionsAndGetRequestSettings()
123 set.setFocusMode(FocusMode.CONTINUOUS_VIDEO); in camera2SettingsSetOptionsAndGetRequestSettings()
124 camera2SettingsCheckSingleOption(set, CONTROL_AF_MODE, CONTROL_AF_MODE_CONTINUOUS_VIDEO); in camera2SettingsSetOptionsAndGetRequestSettings()
125 set.setFocusMode(FocusMode.EXTENDED_DOF); in camera2SettingsSetOptionsAndGetRequestSettings()
126 camera2SettingsCheckSingleOption(set, CONTROL_AF_MODE, CONTROL_AF_MODE_EDOF); in camera2SettingsSetOptionsAndGetRequestSettings()
127 set.setFocusMode(FocusMode.FIXED); in camera2SettingsSetOptionsAndGetRequestSettings()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DScheduleCalendarTest.java67 cal.set(Calendar.HOUR_OF_DAY, 1); in testGetNextChangeTime_startToday()
68 cal.set(Calendar.MINUTE, 15); in testGetNextChangeTime_startToday()
69 cal.set(Calendar.SECOND, 0); in testGetNextChangeTime_startToday()
70 cal.set(Calendar.MILLISECOND, 0); in testGetNextChangeTime_startToday()
81 expected.set(Calendar.HOUR_OF_DAY, mScheduleInfo.startHour); in testGetNextChangeTime_startToday()
93 cal.set(Calendar.HOUR_OF_DAY, 2); in testGetNextChangeTime_endToday()
94 cal.set(Calendar.MINUTE, 15); in testGetNextChangeTime_endToday()
95 cal.set(Calendar.SECOND, 0); in testGetNextChangeTime_endToday()
96 cal.set(Calendar.MILLISECOND, 0); in testGetNextChangeTime_endToday()
107 expected.set(Calendar.HOUR_OF_DAY, mScheduleInfo.endHour); in testGetNextChangeTime_endToday()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/util/
DArraySetPerfTest.java44 ArraySet<Integer> set = new ArraySet<>(); in testValueAt_InBounds() local
45 set.add(0); in testValueAt_InBounds()
48 set.valueAt(0); in testValueAt_InBounds()
56 ArraySet<Integer> set = new ArraySet<>(); in testValueAt_OutOfBounds_Negative() local
60 set.valueAt(-1); in testValueAt_OutOfBounds_Negative()
75 ArraySet<Integer> set = new ArraySet<>(); in testValueAt_OutOfBounds_EdgeCase() local
76 set.add(0); in testValueAt_OutOfBounds_EdgeCase()
80 set.valueAt(1); in testValueAt_OutOfBounds_EdgeCase()
98 ArraySet<Integer> set = new ArraySet<>(); in testRemoveIf_Small_Base() local
100 set.add(j); in testRemoveIf_Small_Base()
[all …]
/frameworks/base/cmds/statsd/tests/
DAlarmMonitor_test.cpp25 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> set; in TEST() local
29 set = am.popSoonerThan(5); in TEST()
30 EXPECT_TRUE(set.empty()); in TEST()
46 set = am.popSoonerThan(5); in TEST()
47 EXPECT_TRUE(set.empty()); in TEST()
49 set = am.popSoonerThan(30); in TEST()
50 EXPECT_EQ(4u, set.size()); in TEST()
51 EXPECT_EQ(1u, set.count(a)); in TEST()
52 EXPECT_EQ(1u, set.count(b)); in TEST()
53 EXPECT_EQ(1u, set.count(c)); in TEST()
[all …]
/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicColorMatrix.java159 mMatrix.set(0, 0, 0.299f); in setGreyscale()
160 mMatrix.set(1, 0, 0.587f); in setGreyscale()
161 mMatrix.set(2, 0, 0.114f); in setGreyscale()
162 mMatrix.set(0, 1, 0.299f); in setGreyscale()
163 mMatrix.set(1, 1, 0.587f); in setGreyscale()
164 mMatrix.set(2, 1, 0.114f); in setGreyscale()
165 mMatrix.set(0, 2, 0.299f); in setGreyscale()
166 mMatrix.set(1, 2, 0.587f); in setGreyscale()
167 mMatrix.set(2, 2, 0.114f); in setGreyscale()
178 mMatrix.set(0, 0, 1.f); in setYUVtoRGB()
[all …]
/frameworks/base/core/java/android/util/
DSparseSetArray.java34 ArraySet<T> set = mData.get(n); in add() local
35 if (set == null) { in add()
36 set = new ArraySet<>(); in add()
37 mData.put(n, set); in add()
39 if (set.contains(value)) { in add()
42 set.add(value); in add()
57 final ArraySet<T> set = mData.get(n); in contains() local
58 if (set == null) { in contains()
61 return set.contains(value); in contains()
76 final ArraySet<T> set = mData.get(n); in remove() local
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptIntrinsicColorMatrix.java146 mMatrix.set(0, 0, 0.299f);
147 mMatrix.set(1, 0, 0.587f);
148 mMatrix.set(2, 0, 0.114f);
149 mMatrix.set(0, 1, 0.299f);
150 mMatrix.set(1, 1, 0.587f);
151 mMatrix.set(2, 1, 0.114f);
152 mMatrix.set(0, 2, 0.299f);
153 mMatrix.set(1, 2, 0.587f);
154 mMatrix.set(2, 2, 0.114f);
165 mMatrix.set(0, 0, 1.f);
[all …]
/frameworks/base/core/java/android/provider/
DSettingsStringUtil.java85 final ColonDelimitedSet<String> set in addAll() local
87 return set.addAll(elements) ? set.toString() : delimitedElements; in addAll()
91 final ColonDelimitedSet<String> set in add() local
93 if (set.contains(element)) { in add()
96 set.add(element); in add()
97 return set.toString(); in add()
101 final ColonDelimitedSet<String> set in remove() local
103 if (!set.contains(element)) { in remove()
106 set.remove(element); in remove()
107 return set.toString(); in remove()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyResultMapper.java90 result.set(SENSOR_TIMESTAMP, timestamp); in cachedConvertResultMetadata()
129 result.set(COLOR_CORRECTION_ABERRATION_MODE, in convertResultMetadata()
162 result.set(CONTROL_CAPTURE_INTENT, captureIntent); in convertResultMetadata()
172 result.set(CONTROL_MODE, CONTROL_MODE_USE_SCENE_MODE); in convertResultMetadata()
174 result.set(CONTROL_MODE, CONTROL_MODE_AUTO); in convertResultMetadata()
185 result.set(CaptureResult.CONTROL_SCENE_MODE, mode); in convertResultMetadata()
191 result.set(CaptureResult.CONTROL_SCENE_MODE, CONTROL_SCENE_MODE_DISABLED); in convertResultMetadata()
202 result.set(CaptureResult.CONTROL_EFFECT_MODE, mode); in convertResultMetadata()
206 result.set(CaptureResult.CONTROL_EFFECT_MODE, CONTROL_EFFECT_MODE_OFF); in convertResultMetadata()
216 result.set(CONTROL_VIDEO_STABILIZATION_MODE, stabMode); in convertResultMetadata()
[all …]
DLegacyMetadataMapper.java173 m.set(LENS_FACING, i.facing == CameraInfo.CAMERA_FACING_BACK ? in mapCharacteristicsFromInfo()
175 m.set(SENSOR_ORIENTATION, i.orientation); in mapCharacteristicsFromInfo()
184 m.set(COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES, in mapCharacteristicsFromParameters()
220 m.set(NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES, in mapCharacteristicsFromParameters()
247 m.set(INFO_SUPPORTED_HARDWARE_LEVEL, INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY); in mapCharacteristicsFromParameters()
356 m.set(SCALER_AVAILABLE_STREAM_CONFIGURATIONS, in mapScalerStreamConfigs()
363 m.set(SCALER_AVAILABLE_MIN_FRAME_DURATIONS, new StreamConfigurationDuration[0]); in mapScalerStreamConfigs()
381 m.set(SCALER_AVAILABLE_STALL_DURATIONS, jpegStalls); in mapScalerStreamConfigs()
386 m.set(SENSOR_INFO_MAX_FRAME_DURATION, longestStallDuration); in mapScalerStreamConfigs()
407 m.set(CONTROL_AE_AVAILABLE_ANTIBANDING_MODES, Arrays.copyOf(modes, j)); in mapControlAe()
[all …]
/frameworks/base/tests/TouchLatency/
Dgradlew.bat12 set DEFAULT_JVM_OPTS=
14 set DIRNAME=%~dp0
15 if "%DIRNAME%" == "" set DIRNAME=.
16 set APP_BASE_NAME=%~n0
17 set APP_HOME=%DIRNAME%
22 set JAVA_EXE=java.exe
27 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
29 echo Please set the JAVA_HOME variable in your environment to match the
35 set JAVA_HOME=%JAVA_HOME:"=%
36 set JAVA_EXE=%JAVA_HOME%/bin/java.exe
[all …]
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/
Dgradlew.bat12 set DEFAULT_JVM_OPTS=
14 set DIRNAME=%~dp0
15 if "%DIRNAME%" == "" set DIRNAME=.
16 set APP_BASE_NAME=%~n0
17 set APP_HOME=%DIRNAME%
22 set JAVA_EXE=java.exe
27 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
29 echo Please set the JAVA_HOME variable in your environment to match the
35 set JAVA_HOME=%JAVA_HOME:"=%
36 set JAVA_EXE=%JAVA_HOME%/bin/java.exe
[all …]
/frameworks/base/libs/hwui/
DFrameInfo.h77 set(FrameInfoIndex::Vsync) = vsyncTime; in setVsync()
78 set(FrameInfoIndex::IntendedVsync) = intendedVsync; in setVsync()
81 set(FrameInfoIndex::HandleInputStart) = vsyncTime; in setVsync()
82 set(FrameInfoIndex::AnimationStart) = vsyncTime; in setVsync()
83 set(FrameInfoIndex::PerformTraversalsStart) = vsyncTime; in setVsync()
84 set(FrameInfoIndex::DrawStart) = vsyncTime; in setVsync()
89 set(FrameInfoIndex::Flags) |= static_cast<uint64_t>(frameInfoFlag); in addFlag()
94 inline int64_t& set(FrameInfoIndex index) { return mBuffer[static_cast<int>(index)]; } in set() function
103 void markSyncStart() { set(FrameInfoIndex::SyncStart) = systemTime(CLOCK_MONOTONIC); } in markSyncStart()
106 set(FrameInfoIndex::IssueDrawCommandsStart) = systemTime(CLOCK_MONOTONIC); in markIssueDrawCommandsStart()
[all …]
/frameworks/base/startop/apps/ColorChanging/
Dgradlew.bat11 set DIRNAME=%~dp0
12 if "%DIRNAME%" == "" set DIRNAME=.
13 set APP_BASE_NAME=%~n0
14 set APP_HOME=%DIRNAME%
17 set DEFAULT_JVM_OPTS=
22 set JAVA_EXE=java.exe
27 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
29 echo Please set the JAVA_HOME variable in your environment to match the
35 set JAVA_HOME=%JAVA_HOME:"=%
36 set JAVA_EXE=%JAVA_HOME%/bin/java.exe
[all …]
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/hvac/
DTemperatureTextAnimator.java127 AnimationSet set = new AnimationSet(true); in createFadeAnimation() local
130 set.addAnimation(new RotateAnimation(0, 0)); // Undo any previous rotation in createFadeAnimation()
131 set.addAnimation(alphaAnimation); in createFadeAnimation()
132 return set; in createFadeAnimation()
137 AnimationSet set = new AnimationSet(true); in createTranslateFadeAnimation() local
138 set.setInterpolator(ACCELERATE_DECELERATE_INTERPOLATOR); in createTranslateFadeAnimation()
139 set.setDuration(DURATION_MILLIS); in createTranslateFadeAnimation()
142 set.addAnimation( in createTranslateFadeAnimation()
146 set.addAnimation(new AlphaAnimation(in ? 0 : 1, in ? 1 : 0)); in createTranslateFadeAnimation()
147 return set; in createTranslateFadeAnimation()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/
DLogpersistPreferenceControllerTest.java58 SystemProperties.set("ro.debuggable", "1"); in setUp()
83 SystemProperties.set("ro.debuggable", ""); in testAvailable()
85 SystemProperties.set("ro.debuggable", "1"); in testAvailable()
87 SystemProperties.set("ro.debuggable", "0"); in testAvailable()
93 SystemProperties.set( in testUpdateLogpersistValues_null()
102 SystemProperties.set( in testUpdateLogpersistValues_all()
105 SystemProperties.set( in testUpdateLogpersistValues_all()
114 SystemProperties.set( in testUpdateLogpersistValues_defaultSecurityKernel()
117 SystemProperties.set( in testUpdateLogpersistValues_defaultSecurityKernel()
126 SystemProperties.set( in testUpdateLogpersistValues_kernel()
[all …]
/frameworks/native/opengl/libs/EGL/
DBlobCache_test.cpp57 mBC->set("abcd", 4, "efgh", 4); in TEST_F()
67 mBC->set("ab", 2, "cd", 2); in TEST_F()
68 mBC->set("ef", 2, "gh", 2); in TEST_F()
79 mBC->set("abcd", 4, "efgh", 4); in TEST_F()
91 mBC->set("abcd", 4, "efgh", 4); in TEST_F()
99 mBC->set("abcd", 4, "efgh", 4); in TEST_F()
105 mBC->set("abcd", 4, "efgh", 4); in TEST_F()
106 mBC->set("abcd", 4, "ijkl", 4); in TEST_F()
116 mBC->set("abcd", 4, "efgh", 4); in TEST_F()
117 mBC->set("abcd", 4, buf, MAX_VALUE_SIZE+1); in TEST_F()
[all …]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
DSurfaceTextureTarget.java283 mTargetQuad.p0.set(0f, 0.0f); in updateTargetRect()
284 mTargetQuad.p1.set(1f, 0.0f); in updateTargetRect()
285 mTargetQuad.p2.set(0f, 1.0f); in updateTargetRect()
286 mTargetQuad.p3.set(1f, 1.0f); in updateTargetRect()
292 mTargetQuad.p0.set(0.5f - 0.5f / relativeAspectRatio, 0.0f); in updateTargetRect()
293 mTargetQuad.p1.set(0.5f + 0.5f / relativeAspectRatio, 0.0f); in updateTargetRect()
294 mTargetQuad.p2.set(0.5f - 0.5f / relativeAspectRatio, 1.0f); in updateTargetRect()
295 mTargetQuad.p3.set(0.5f + 0.5f / relativeAspectRatio, 1.0f); in updateTargetRect()
299 mTargetQuad.p0.set(0.0f, 0.5f - 0.5f * relativeAspectRatio); in updateTargetRect()
300 mTargetQuad.p1.set(1.0f, 0.5f - 0.5f * relativeAspectRatio); in updateTargetRect()
[all …]
/frameworks/base/core/java/com/google/android/collect/
DSets.java71 HashSet<E> set = new HashSet<E>(capacity); in newHashSet() local
72 Collections.addAll(set, elements); in newHashSet()
73 return set; in newHashSet()
94 SortedSet<E> set = new TreeSet<E>(); in newSortedSet() local
95 Collections.addAll(set, elements); in newSortedSet()
96 return set; in newSortedSet()
113 ArraySet<E> set = new ArraySet<E>(capacity); in newArraySet() local
114 Collections.addAll(set, elements); in newArraySet()
115 return set; in newArraySet()
/frameworks/base/core/java/android/hardware/radio/
DUtils.java82 static <T extends Parcelable> void writeSet(@NonNull Parcel dest, @Nullable Set<T> set) { in writeSet() argument
83 if (set == null) { in writeSet()
87 dest.writeInt(set.size()); in writeSet()
88 set.stream().forEach(elem -> dest.writeTypedObject(elem, 0)); in writeSet()
93 Set<T> set = new HashSet<>(size); in createSet() local
95 set.add(in.readTypedObject(c)); in createSet()
97 return set; in createSet()
100 static void writeIntSet(@NonNull Parcel dest, @Nullable Set<Integer> set) { in writeIntSet() argument
101 if (set == null) { in writeIntSet()
105 dest.writeInt(set.size()); in writeIntSet()
[all …]
/frameworks/ml/nn/driver/cache/BlobCache/
DBlobCache_test.cpp68 mBC->set("abcd", 4, "efgh", 4); in TEST_P()
78 mBC->set("ab", 2, "cd", 2); in TEST_P()
79 mBC->set("ef", 2, "gh", 2); in TEST_P()
90 mBC->set("ab", 2, "cd", 2); in TEST_P()
91 mBC->set("ef", 2, "gh", 2); in TEST_P()
110 mBC->set("abcd", 4, "efgh", 4); in TEST_P()
122 mBC->set("abcd", 4, "efgh", 4); in TEST_P()
131 mBC->set("abcd", 4, "efgh", 4); in TEST_P()
145 mBC->set("abcd", 4, "efgh", 4); in TEST_P()
151 mBC->set("abcd", 4, "efgh", 4); in TEST_P()
[all …]
/frameworks/base/packages/Tethering/tests/unit/src/android/net/util/
DInterfaceSetTest.java34 final InterfaceSet set = new InterfaceSet(null, "if1", null, "if2", null); in testNullNamesIgnored() local
35 assertEquals(2, set.ifnames.size()); in testNullNamesIgnored()
36 assertTrue(set.ifnames.contains("if1")); in testNullNamesIgnored()
37 assertTrue(set.ifnames.contains("if2")); in testNullNamesIgnored()
42 final InterfaceSet set = new InterfaceSet("if1", "if2"); in testToString() local
43 final String setString = set.toString(); in testToString()
49 final InterfaceSet set = new InterfaceSet(null, null); in testToString_Empty() local
50 assertEquals("[]", set.toString()); in testToString_Empty()
/frameworks/base/telephony/java/android/telephony/
DMbmsDownloadSession.java311 sIsInitialized.set(false); in create()
344 sIsInitialized.set(false); in bindAndInitialize()
351 sIsInitialized.set(false); in bindAndInitialize()
362 sIsInitialized.set(false); in bindAndInitialize()
370 sIsInitialized.set(false); in bindAndInitialize()
373 mService.set(downloadService); in bindAndInitialize()
379 sIsInitialized.set(false); in bindAndInitialize()
380 mService.set(null); in bindAndInitialize()
388 sIsInitialized.set(false); in bindAndInitialize()
389 mService.set(null); in bindAndInitialize()
[all …]
/frameworks/base/core/tests/systemproperties/src/android/os/
DSystemPropertiesTest.java35 SystemProperties.set(PERSIST_KEY, Long.toString(i)); in testStressPersistPropertyConsistency()
44 SystemProperties.set(KEY, Long.toString(i)); in testStressMemoryPropertyConsistency()
54 SystemProperties.set(KEY, ""); in testProperties()
59 SystemProperties.set(KEY, null); in testProperties()
63 SystemProperties.set(KEY, "SA"); in testProperties()
70 SystemProperties.set(KEY, ""); in testProperties()
75 SystemProperties.set(KEY, "SA"); in testProperties()
76 SystemProperties.set(KEY, null); in testProperties()
85 SystemProperties.set(KEY, setVal); in testInt()
91 SystemProperties.set(KEY, setVal); in testLong()
[all …]

12345678910>>...68