Home
last modified time | relevance | path

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

12345678910>>...75

/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkUtilsTest.java58 final TreeSet<IpPrefix> set = new TreeSet<>(IpPrefix.lengthComparator()); in testRoutedIPv4AddressCount() local
60 assertEquals(0, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
62 set.add(new IpPrefix("0.0.0.0/0")); in testRoutedIPv4AddressCount()
63 assertEquals(1l << 32, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
65 set.add(new IpPrefix("20.18.0.0/16")); in testRoutedIPv4AddressCount()
66 set.add(new IpPrefix("20.18.0.0/24")); in testRoutedIPv4AddressCount()
67 set.add(new IpPrefix("20.18.0.0/8")); in testRoutedIPv4AddressCount()
69 assertEquals(1l << 32, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
71 set.clear(); in testRoutedIPv4AddressCount()
72 set.add(new IpPrefix("20.18.0.0/24")); in testRoutedIPv4AddressCount()
[all …]
/packages/services/Car/tests/BugReportApp/libs/
Dgoogle-api-services-storage-v1-rev158-1.25.0.jar ... .services.storage.Storage$BucketAccessControls$Delete set (java.lang.String, java.lang ...
/packages/modules/Wifi/framework/java/android/net/wifi/
DSecurityParams.java265 mAllowedKeyManagement.set(KeyMgmt.FILS_SHA256); in enableFils()
269 mAllowedKeyManagement.set(KeyMgmt.FILS_SHA384); in enableFils()
323 mAllowedSuiteBCiphers.set(SuiteBCipher.ECDHE_ECDSA); in enableSuiteBCiphers()
329 mAllowedSuiteBCiphers.set(SuiteBCipher.ECDHE_RSA); in enableSuiteBCiphers()
529 BitSet set = new BitSet(); in readBitSet() local
531 set.set(src.readInt()); in readBitSet()
534 return set; in readBitSet()
537 private static void writeBitSet(Parcel dest, BitSet set) { in writeBitSet() argument
540 dest.writeInt(set.cardinality()); in writeBitSet()
542 while ((nextSetBit = set.nextSetBit(nextSetBit + 1)) != -1) { in writeBitSet()
[all …]
/packages/modules/Virtualization/rialto/
Didmap.S22 .set .SZ_1K, 1024
23 .set .SZ_4K, 4 * .SZ_1K
24 .set .SZ_1M, 1024 * .SZ_1K
25 .set .SZ_2M, 2 * .SZ_1M
26 .set .SZ_1G, 1024 * .SZ_1M
28 .set .PAGE_SIZE, .SZ_4K
30 .set .ORIGIN_ADDR, 2 * .SZ_1G
31 .set .DTB_ADDR, .ORIGIN_ADDR + (0 * .SZ_2M)
32 .set .TEXT_ADDR, .ORIGIN_ADDR + (1 * .SZ_2M)
33 .set .DATA_ADDR, .ORIGIN_ADDR + (2 * .SZ_2M)
[all …]
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DIntSetTest.java39 IntSet set = new IntSet(); in shouldBeEmptyInitially() local
40 assertThat(set.size()).isEqualTo(0); in shouldBeEmptyInitially()
45 IntSet set = new IntSet(); in oneElementSet() local
46 set.add(2); in oneElementSet()
47 assertThat(set.size()).isEqualTo(1); in oneElementSet()
48 assertTrue(set.contains(2)); in oneElementSet()
49 assertFalse(set.contains(1)); in oneElementSet()
55 IntSet set = new IntSet(); in twoElementSet() local
56 set.add(2); in twoElementSet()
57 set.add(1); in twoElementSet()
[all …]
/packages/modules/Virtualization/vmbase/
Dentry.S19 .set .L_MAIR_DEV_nGnRE, 0x04
20 .set .L_MAIR_MEM_WBWA, 0xff
21 .set .Lmairval, .L_MAIR_DEV_nGnRE | (.L_MAIR_MEM_WBWA << 8)
24 .set .L_TCR_TG0_4KB, 0x0 << 14
26 .set .L_TCR_TG1_4KB, 0x2 << 30
28 .set .L_TCR_EPD1, 0x1 << 23
30 .set .L_TCR_SH_INNER, 0x3 << 12
35 .set .L_TCR_RGN_OWB, 0x1 << 10
40 .set .L_TCR_RGN_IWB, 0x1 << 8
42 .set .L_TCR_T0SZ_512, 64 - 39
[all …]
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/radar/
DRadarOpenSessionParams.java273 mSessionId.set(builder.mSessionId.get()); in Builder()
275 mBurstPeriod.set(builder.mBurstPeriod.get()); in Builder()
276 mSweepPeriod.set(builder.mSweepPeriod.get()); in Builder()
277 mSweepsPerBurst.set(builder.mSweepsPerBurst.get()); in Builder()
278 mSamplesPerSweep.set(builder.mSamplesPerSweep.get()); in Builder()
279 mChannelNumber.set(builder.mChannelNumber.get()); in Builder()
280 mSweepOffset.set(builder.mSweepOffset.get()); in Builder()
281 mRframeConfig.set(builder.mRframeConfig.get()); in Builder()
282 mPreambleDuration.set(builder.mPreambleDuration.get()); in Builder()
283 mPreambleCodeIndex.set(builder.mPreambleCodeIndex.get()); in Builder()
[all …]
/packages/modules/StatsD/statsd/tests/
DAlarmMonitor_test.cpp26 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> set; in TEST() local
31 set = am.popSoonerThan(5); in TEST()
32 EXPECT_TRUE(set.empty()); in TEST()
48 set = am.popSoonerThan(5); in TEST()
49 EXPECT_TRUE(set.empty()); in TEST()
51 set = am.popSoonerThan(30); in TEST()
52 ASSERT_EQ(4u, set.size()); in TEST()
53 EXPECT_EQ(1u, set.count(a)); in TEST()
54 EXPECT_EQ(1u, set.count(b)); in TEST()
55 EXPECT_EQ(1u, set.count(c)); in TEST()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DDistanceMeasurementManager.java142 CopyOnWriteArraySet<DistanceMeasurementTracker> set = in startRssiTracker() local
144 if (!set.add(tracker)) { in startRssiTracker()
156 CopyOnWriteArraySet<DistanceMeasurementTracker> set = in startCsTracker() local
158 if (!set.add(tracker)) { in startCsTracker()
208 CopyOnWriteArraySet<DistanceMeasurementTracker> set = mRssiTrackers.get(identityAddress); in stopRssiTracker() local
209 if (set == null) { in stopRssiTracker()
214 for (DistanceMeasurementTracker tracker : set) { in stopRssiTracker()
222 set.remove(tracker); in stopRssiTracker()
227 if (set.isEmpty()) { in stopRssiTracker()
237 CopyOnWriteArraySet<DistanceMeasurementTracker> set = mCsTrackers.get(identityAddress); in stopCsTracker() local
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_uid.cc42 uid_set_t* set = (uid_set_t*)osi_calloc(sizeof(uid_set_t)); in uid_set_create() local
43 return set; in uid_set_create()
46 void uid_set_destroy(uid_set_t* set) { in uid_set_destroy() argument
48 uid_set_node_t* node = set->head; in uid_set_destroy()
54 set->head = NULL; in uid_set_destroy()
55 osi_free(set); in uid_set_destroy()
59 static uid_set_node_t* uid_set_find_or_create_node(uid_set_t* set, in uid_set_find_or_create_node() argument
61 uid_set_node_t* node = set->head; in uid_set_find_or_create_node()
69 node->next = set->head; in uid_set_find_or_create_node()
70 set->head = node; in uid_set_find_or_create_node()
[all …]
/packages/modules/Virtualization/pvmfw/
Didmap.S17 .set .L_TT_TYPE_BLOCK, 0x1
18 .set .L_TT_TYPE_PAGE, 0x3
19 .set .L_TT_TYPE_TABLE, 0x3
22 .set .L_TT_AF, 0x1 << 10
24 .set .L_TT_NG, 0x1 << 11
25 .set .L_TT_RO, 0x2 << 6
26 .set .L_TT_XN, 0x3 << 53
28 .set .L_TT_MT_DEV, 0x0 << 2 // MAIR #0 (DEV_nGnRE)
29 .set .L_TT_MT_MEM, (0x1 << 2) | (0x3 << 8) // MAIR #1 (MEM_WBWA), inner shareable
31 .set .L_BLOCK_RO, .L_TT_TYPE_BLOCK | .L_TT_MT_MEM | .L_TT_AF | .L_TT_RO | .L_TT_XN
[all …]
/packages/modules/Virtualization/vmbase/example/
Didmap.S17 .set .L_TT_TYPE_BLOCK, 0x1
18 .set .L_TT_TYPE_PAGE, 0x3
19 .set .L_TT_TYPE_TABLE, 0x3
22 .set .L_TT_AF, 0x1 << 10
24 .set .L_TT_NG, 0x1 << 11
25 .set .L_TT_RO, 0x2 << 6
26 .set .L_TT_XN, 0x3 << 53
28 .set .L_TT_MT_DEV, 0x0 << 2 // MAIR #0 (DEV_nGnRE)
29 .set .L_TT_MT_MEM, (0x1 << 2) | (0x3 << 8) // MAIR #1 (MEM_WBWA), inner shareable
31 .set .L_BLOCK_RO, .L_TT_TYPE_BLOCK | .L_TT_MT_MEM | .L_TT_AF | .L_TT_RO | .L_TT_XN
[all …]
/packages/modules/Connectivity/tests/mts/
Dbpf_existence_test.cpp29 using std::set;
50 static const set<string> PLATFORM_ONLY_IN_R = {
59 static const set<string> MAINLINE_FOR_S_PLUS = {
84 static const set<string> MAINLINE_FOR_S_5_10_PLUS = {
89 static const set<string> MAINLINE_FOR_T_PLUS = {
123 static const set<string> MAINLINE_FOR_T_4_14_PLUS = {
128 static const set<string> MAINLINE_FOR_T_4_19_PLUS = {
134 static const set<string> MAINLINE_FOR_T_5_15_PLUS = {
139 static const set<string> MAINLINE_FOR_U_PLUS = {
144 static const set<string> MAINLINE_FOR_U_5_10_PLUS = {
[all …]
/packages/inputmethods/LatinIME/
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 …]
/packages/apps/Car/DebuggingRestrictionController/
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 …]
/packages/modules/Bluetooth/android/leaudio/
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 …]
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/ccc/
DCccOpenRangingParams.java401 mProtocolVersion.set(builder.mProtocolVersion.get()); in Builder()
402 mUwbConfig.set(builder.mUwbConfig.get()); in Builder()
403 mPulseShapeCombo.set(builder.mPulseShapeCombo.get()); in Builder()
404 mSessionId.set(builder.mSessionId.get()); in Builder()
406 mRanMultiplier.set(builder.mRanMultiplier.get()); in Builder()
407 mChannel.set(builder.mChannel.get()); in Builder()
408 mNumChapsPerSlot.set(builder.mNumChapsPerSlot.get()); in Builder()
409 mNumResponderNodes.set(builder.mNumResponderNodes.get()); in Builder()
410 mNumSlotsPerRound.set(builder.mNumSlotsPerRound.get()); in Builder()
411 mSyncCodeIndex.set(builder.mSyncCodeIndex.get()); in Builder()
[all …]
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/aliro/
DAliroOpenRangingParams.java401 mProtocolVersion.set(builder.mProtocolVersion.get()); in Builder()
402 mUwbConfig.set(builder.mUwbConfig.get()); in Builder()
403 mPulseShapeCombo.set(builder.mPulseShapeCombo.get()); in Builder()
404 mSessionId.set(builder.mSessionId.get()); in Builder()
406 mRanMultiplier.set(builder.mRanMultiplier.get()); in Builder()
407 mChannel.set(builder.mChannel.get()); in Builder()
408 mNumChapsPerSlot.set(builder.mNumChapsPerSlot.get()); in Builder()
409 mNumResponderNodes.set(builder.mNumResponderNodes.get()); in Builder()
410 mNumSlotsPerRound.set(builder.mNumSlotsPerRound.get()); in Builder()
411 mSyncCodeIndex.set(builder.mSyncCodeIndex.get()); in Builder()
[all …]
/packages/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache_test.cpp67 mBC->set("abcd", 4, "efgh", 4); in TEST_P()
77 mBC->set("ab", 2, "cd", 2); in TEST_P()
78 mBC->set("ef", 2, "gh", 2); in TEST_P()
89 mBC->set("ab", 2, "cd", 2); in TEST_P()
90 mBC->set("ef", 2, "gh", 2); in TEST_P()
109 mBC->set("abcd", 4, "efgh", 4); in TEST_P()
121 mBC->set("abcd", 4, "efgh", 4); in TEST_P()
130 mBC->set("abcd", 4, "efgh", 4); in TEST_P()
144 mBC->set("abcd", 4, "efgh", 4); in TEST_P()
150 mBC->set("abcd", 4, "efgh", 4); in TEST_P()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DCaptureLayoutHelper.java252 config.mPreviewRect.set(0, 0, width, height); in getPositionConfiguration()
255 config.mBottomBarRect.set(width - mBottomBarOptimalHeight, 0, width, height); in getPositionConfiguration()
257 config.mBottomBarRect.set(0, height - mBottomBarOptimalHeight, width, height); in getPositionConfiguration()
282 … config.mPreviewRect.set(0, height / 2 - previewShorterEdge / 2, previewLongerEdge, in getPositionConfiguration()
284 config.mBottomBarRect.set(width - barSize, height / 2 - previewShorterEdge / 2, in getPositionConfiguration()
287 config.mPreviewRect.set(width / 2 - previewShorterEdge / 2, 0, in getPositionConfiguration()
289 config.mBottomBarRect.set(width / 2 - previewShorterEdge / 2, height - barSize, in getPositionConfiguration()
303 config.mPreviewRect.set(left, 0, right, previewShorterEdge); in getPositionConfiguration()
304 config.mBottomBarRect.set(width - barSize, 0, width, height); in getPositionConfiguration()
308 config.mPreviewRect.set(0, top, previewShorterEdge, bottom); in getPositionConfiguration()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DNativeUtilTest.java276 expectedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP); in testPairwiseCiphersMergedForSaeAutoUpgradeOffloadSupported()
277 expectedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP); in testPairwiseCiphersMergedForSaeAutoUpgradeOffloadSupported()
278 expectedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.GCMP_128); in testPairwiseCiphersMergedForSaeAutoUpgradeOffloadSupported()
279 expectedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.GCMP_256); in testPairwiseCiphersMergedForSaeAutoUpgradeOffloadSupported()
287 expectedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP40); in testPairwiseCiphersMergedForSaeAutoUpgradeOffloadSupported()
288 expectedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP104); in testPairwiseCiphersMergedForSaeAutoUpgradeOffloadSupported()
289 expectedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP); in testPairwiseCiphersMergedForSaeAutoUpgradeOffloadSupported()
290 expectedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP); in testPairwiseCiphersMergedForSaeAutoUpgradeOffloadSupported()
291 expectedGroupCiphers.set(WifiConfiguration.GroupCipher.GCMP_128); in testPairwiseCiphersMergedForSaeAutoUpgradeOffloadSupported()
292 expectedGroupCiphers.set(WifiConfiguration.GroupCipher.GCMP_256); in testPairwiseCiphersMergedForSaeAutoUpgradeOffloadSupported()
[all …]
/packages/services/Car/cpp/computepipe/tests/
DFakeRunner.cpp41 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION)); in setPipeInputSource()
46 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION)); in setPipeOffloadOptions()
51 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION)); in setPipeTermination()
60 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION)); in setPipeOutputConfig()
65 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION)); in applyPipeConfigs()
71 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION)); in resetPipeConfigs()
77 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION)); in startPipe()
82 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION)); in stopPipe()
87 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION)); in doneWithPacket()
93 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION)); in getPipeDebugger()
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DSets.java69 HashSet<E> set = new HashSet<E>(capacity); in newHashSet() local
70 Collections.addAll(set, elements); in newHashSet()
71 return set; in newHashSet()
91 SortedSet<E> set = new TreeSet<E>(); in newSortedSet() local
92 Collections.addAll(set, elements); in newSortedSet()
93 return set; in newSortedSet()
108 ArraySet<E> set = new ArraySet<E>(capacity); in newArraySet() local
109 Collections.addAll(set, elements); in newArraySet()
110 return set; in newArraySet()
/packages/modules/Bluetooth/system/btcore/include/
Ddevice_class.h73 void device_class_set_limited(bt_device_class_t* dc, bool set);
76 void device_class_set_positioning(bt_device_class_t* dc, bool set);
79 void device_class_set_networking(bt_device_class_t* dc, bool set);
82 void device_class_set_rendering(bt_device_class_t* dc, bool set);
85 void device_class_set_capturing(bt_device_class_t* dc, bool set);
88 void device_class_set_object_transfer(bt_device_class_t* dc, bool set);
91 void device_class_set_audio(bt_device_class_t* dc, bool set);
94 void device_class_set_telephony(bt_device_class_t* dc, bool set);
97 void device_class_set_information(bt_device_class_t* dc, bool set);
/packages/services/Telephony/testapps/TestSliceApp/
Dgradlew.bat27 set DIRNAME=%~dp0
28 if "%DIRNAME%" == "" set DIRNAME=.
29 set APP_BASE_NAME=%~n0
30 set APP_HOME=%DIRNAME%
33 for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
36 set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
41 set JAVA_EXE=java.exe
46 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48 echo Please set the JAVA_HOME variable in your environment to match the
54 set JAVA_HOME=%JAVA_HOME:"=%
[all …]

12345678910>>...75