Home
last modified time | relevance | path

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

12345678910>>...111

/frameworks/base/tests/net/java/android/net/
DNetworkUtilsTest.java34 final TreeSet<IpPrefix> set = new TreeSet<>(IpPrefix.lengthComparator()); in testRoutedIPv4AddressCount() local
36 assertEquals(0, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
38 set.add(new IpPrefix("0.0.0.0/0")); in testRoutedIPv4AddressCount()
39 assertEquals(1l << 32, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
41 set.add(new IpPrefix("20.18.0.0/16")); in testRoutedIPv4AddressCount()
42 set.add(new IpPrefix("20.18.0.0/24")); in testRoutedIPv4AddressCount()
43 set.add(new IpPrefix("20.18.0.0/8")); in testRoutedIPv4AddressCount()
45 assertEquals(1l << 32, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
47 set.clear(); in testRoutedIPv4AddressCount()
48 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/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/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/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/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/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/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/opt/gamesdk/third_party/protobuf-3.0.0/cmake/
Dprotobuf-config-version.cmake.in1 set(PACKAGE_VERSION "@protobuf_VERSION@")
2 set(${PACKAGE_FIND_NAME}_VERSION_PRERELEASE "@protobuf_VERSION_PRERELEASE@" PARENT_SCOPE)
7 set("${${PACKAGE_FIND_NAME}_FIND_VERSION_PRERELEASE}" "")
9 set(PACKAGE_FIND_VERSION ${PACKAGE_FIND_VERSION}-${${PACKAGE_FIND_NAME}_FIND_VERSION_PRERELEASE})
11 set(PACKAGE_FIND_VERSION_PRERELEASE "${${PACKAGE_FIND_NAME}_FIND_VERSION_PRERELEASE}")
15 set(PACKAGE_VERSION_EXACT TRUE)
18 set(PACKAGE_VERSION_COMPATIBLE TRUE) #Assume true until shown otherwise
21 set(PACKAGE_VERSION_COMPATIBLE FALSE)
23 set(PACKAGE_VERSION_COMPATIBLE FALSE)
27 …message(AUTHOR_WARNING "To use this prerelease version of ${PACKAGE_FIND_NAME}, set ${PACKAGE_FIND…
[all …]
/frameworks/opt/gamesdk/samples/bouncyball/
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/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/opt/gamesdk/third_party/cube/
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/opt/gamesdk/samples/cube/
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/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 …]
/frameworks/opt/gamesdk/
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/opt/gamesdk/samples/unitypackaging/
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/opt/gamesdk/samples/tuningfork/tftestapp/
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/opt/gamesdk/src/tuningfork/tools/validation/
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/opt/gamesdk/src/protobuf/
Dprotobuf.cmake3 set( PROTOBUF_INSTALL_DIR "${CMAKE_CURRENT_LIST_DIR}/../../third_party/protobuf-3.0.0/install/linux…
4 set( PROTOBUF_SRC_DIR "${CMAKE_CURRENT_LIST_DIR}/../../third_party/protobuf-3.0.0/src")
6 set( PROTOBUF_NANO_SRC_DIR "${EXTERNAL_ROOT}/nanopb-c")
8 set(PROTOC_EXE ${PROTOBUF_INSTALL_DIR}/bin/protoc)
9 set( PROTOBUF_INCLUDE_DIR ${PROTOBUF_SRC_DIR} )
11 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Werror -Wthread-safety" )
12 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D _LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Os -fPIC" )
13 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti" )
14 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGOOGLE_PROTOBUF_NO_RTTI -DHAVE_PTHREAD")
15 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffunction-sections -fdata-sections" )
[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/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dextension_set.h719 static inline ConstType Get(int number, const ExtensionSet& set,
722 ConstType value, ExtensionSet* set);
734 static inline Type Get(int number, const ExtensionSet& set, int index);
735 static inline void Set(int number, int index, Type value, ExtensionSet* set);
737 bool is_packed, Type value, ExtensionSet* set);
740 GetRepeated(int number, const ExtensionSet& set);
743 bool is_packed, ExtensionSet* set);
766 int number, const ExtensionSet& set, TYPE default_value) { \
767 return set.Get##METHOD(number, default_value); \
770 int number, FieldType field_type, TYPE value, ExtensionSet* set) { \
[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()

12345678910>>...111