/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkUtilsTest.java | 40 final TreeSet<IpPrefix> set = new TreeSet<>(IpPrefix.lengthComparator()); in testRoutedIPv4AddressCount() local 42 assertEquals(0, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount() 44 set.add(new IpPrefix("0.0.0.0/0")); in testRoutedIPv4AddressCount() 45 assertEquals(1l << 32, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount() 47 set.add(new IpPrefix("20.18.0.0/16")); in testRoutedIPv4AddressCount() 48 set.add(new IpPrefix("20.18.0.0/24")); in testRoutedIPv4AddressCount() 49 set.add(new IpPrefix("20.18.0.0/8")); in testRoutedIPv4AddressCount() 51 assertEquals(1l << 32, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount() 53 set.clear(); in testRoutedIPv4AddressCount() 54 set.add(new IpPrefix("20.18.0.0/24")); in testRoutedIPv4AddressCount() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | SecurityParams.java | 264 mAllowedKeyManagement.set(KeyMgmt.FILS_SHA256); in enableFils() 268 mAllowedKeyManagement.set(KeyMgmt.FILS_SHA384); in enableFils() 322 mAllowedSuiteBCiphers.set(SuiteBCipher.ECDHE_ECDSA); in enableSuiteBCiphers() 328 mAllowedSuiteBCiphers.set(SuiteBCipher.ECDHE_RSA); in enableSuiteBCiphers() 528 BitSet set = new BitSet(); in readBitSet() local 530 set.set(src.readInt()); in readBitSet() 533 return set; in readBitSet() 536 private static void writeBitSet(Parcel dest, BitSet set) { in writeBitSet() argument 539 dest.writeInt(set.cardinality()); in writeBitSet() 541 while ((nextSetBit = set.nextSetBit(nextSetBit + 1)) != -1) { in writeBitSet() [all …]
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/util/ |
D | IntSetTest.java | 36 IntSet set = new IntSet(); in shouldBeEmptyInitially() local 37 assertThat(set.size()).isEqualTo(0); in shouldBeEmptyInitially() 42 IntSet set = new IntSet(); in oneElementSet() local 43 set.add(2); in oneElementSet() 44 assertThat(set.size()).isEqualTo(1); in oneElementSet() 45 assertTrue(set.contains(2)); in oneElementSet() 46 assertFalse(set.contains(1)); in oneElementSet() 52 IntSet set = new IntSet(); in twoElementSet() local 53 set.add(2); in twoElementSet() 54 set.add(1); in twoElementSet() [all …]
|
/packages/modules/StatsD/statsd/tests/ |
D | AlarmMonitor_test.cpp | 26 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 …]
|
D | MetricsManager_test.cpp | 40 using std::set; 96 set<int32_t> unionSet(const vector<set<int32_t>> sets) { in unionSet() 97 set<int32_t> toRet; in unionSet() 98 for (const set<int32_t>& s : sets) { in unionSet() 107 set<int32_t> app1Uids = {1111, 11111}; in TEST() 109 set<int32_t> app2Uids = {2222}; in TEST() 111 set<int32_t> app3Uids = {3333, 1111}; in TEST() 113 map<string, set<int32_t>> pkgToUids; in TEST() 127 return set<int32_t>(); in TEST() 142 const set<int32_t> defaultPullUids = {AID_SYSTEM, AID_ROOT}; in TEST() [all …]
|
/packages/modules/NeuralNetworks/driver/cache/BlobCache/ |
D | BlobCache_test.cpp | 67 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/inputmethods/LatinIME/ |
D | gradlew.bat | 12 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/ |
D | gradlew.bat | 11 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/apps/Car/libs/car-ui-lib/paintbooth/ |
D | gradlew.bat | 11 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/apps/Test/connectivity/sl4n/rapidjson/doc/ |
D | Doxyfile.in | 63 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub- 73 # If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII 74 # characters to appear in the names of generated files. If set to NO, non-ASCII 96 # If the BRIEF_MEMBER_DESC tag is set to YES doxygen will include brief member 103 # If the REPEAT_BRIEF tag is set to YES doxygen will prepend the brief 106 # Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the 133 # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then 140 # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all 148 # If the FULL_PATH_NAMES tag is set to YES doxygen will prepend the full path 149 # before files name in the file list and in the header files. If set to NO the [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CaptureLayoutHelper.java | 252 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/apps/Car/SystemUI/src/com/android/systemui/car/hvac/ |
D | TemperatureTextAnimator.java | 127 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 …]
|
/packages/apps/Car/libs/car-ui-lib/ |
D | gradlew.bat | 27 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 …]
|
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/ |
D | config_update_utils.h | 68 std::set<int>& allTagIds, 71 std::set<int64_t>& replacedMatchers); 90 const std::set<int64_t>& replacedMatchers, 110 const std::set<int64_t>& replacedMatchers, 117 std::set<int64_t>& replacedConditions); 124 std::set<int64_t>& replacedStates); 141 const set<int64_t>& replacedMatchers, 142 const set<int64_t>& replacedConditions, 143 const set<int64_t>& replacedStates, 170 const std::set<int64_t>& replacedMatchers, [all …]
|
D | config_update_utils.cpp | 113 set<int>& allTagIds, in updateAtomMatchingTrackers() 116 set<int64_t>& replacedMatchers) { in updateAtomMatchingTrackers() 191 const set<int>& tagIds = matcher->getAtomIds(); in updateAtomMatchingTrackers() 204 const set<int64_t>& replacedMatchers, in determineConditionUpdateStatus() 300 const set<int64_t>& replacedMatchers, in updateConditions() 306 vector<ConditionState>& conditionCache, set<int64_t>& replacedConditions) { in updateConditions() 334 set<int> preservedConditions; in updateConditions() 402 map<int64_t, uint64_t>& newStateProtoHashes, set<int64_t>& replacedStates) { in updateStates() 419 const int64_t metricId, const set<int64_t>& replacedMatchers) { in metricActivationDepsChange() 442 const MetricType metricType, const set<int64_t>& matcherDependencies, in determineMetricUpdateStatus() [all …]
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/ |
D | RandomVariable.cpp | 159 std::set<int> st; in getInitRange() 171 static inline bool isContinuous(const std::set<int>* range) { in isContinuous() 176 static inline void fillRange(std::set<int>* range, int lower, int upper) { in fillRange() 181 void IRandomVariableOp::eval(const std::set<int>* parent1In, const std::set<int>* parent2In, in eval() 182 const std::set<int>* childIn, std::set<int>* parent1Out, in eval() 183 std::set<int>* parent2Out, std::set<int>* childOut) const { in eval() 220 virtual void eval(const std::set<int>* parent1In, const std::set<int>* parent2In, in eval() 221 const std::set<int>* childIn, std::set<int>* parent1Out, in eval() 222 std::set<int>* parent2Out, std::set<int>* childOut) const override { in eval() 253 virtual void eval(const std::set<int>* parent1In, const std::set<int>* parent2In, in eval() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/doc/ |
D | dbreg_API_doxyfile | 43 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 65 # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will 72 # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend 74 # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the 101 # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then 107 # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all 114 # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full 115 # path before files name in the file list and in the header files. If set 120 # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag 138 # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/doc/ |
D | feature_mos_API_doxyfile | 43 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 65 # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will 72 # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend 74 # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the 101 # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then 107 # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all 114 # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full 115 # path before files name in the file list and in the header files. If set 120 # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag 138 # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter [all …]
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/ |
D | PawAnswerHint.java | 138 AnimatorSet set = new AnimatorSet(); in createFadeIn() local 139 set.play(createFadeInScaleAndAlpha(payloadView)); in createFadeIn() 140 return set; in createFadeIn() 160 AnimatorSet set = new AnimatorSet(); in createFadeInScaleAndAlpha() local 161 set.play(scale).with(alpha); in createFadeInScaleAndAlpha() 162 return set; in createFadeInScaleAndAlpha() 166 AnimatorSet set = new AnimatorSet(); in createFadeOut() local 167 set.play(createFadeOutScaleAndAlpha(payloadView, FADE_OUT_DELAY_SCALE_SMALL_MILLIS)); in createFadeOut() 168 return set; in createFadeOut() 188 AnimatorSet set = new AnimatorSet(); in createFadeOutScaleAndAlpha() local [all …]
|
D | DotAnswerHint.java | 138 AnimatorSet set = new AnimatorSet(); in createFadeIn() local 139 set.play( in createFadeIn() 157 return set; in createFadeIn() 179 AnimatorSet set = new AnimatorSet(); in createFadeInScaleAndAlpha() local 180 set.play(scale).with(alpha); in createFadeInScaleAndAlpha() 181 return set; in createFadeInScaleAndAlpha() 185 AnimatorSet set = new AnimatorSet(); in createFadeOut() local 186 set.play( in createFadeOut() 207 return set; in createFadeOut() 233 AnimatorSet set = new AnimatorSet(); in createFadeOutScaleAndAlpha() local [all …]
|
/packages/services/Car/cpp/computepipe/tests/ |
D | FakeRunner.cpp | 41 _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/modules/Wifi/service/java/com/android/server/wifi/coex/ |
D | CoexUtils.java | 74 NavigableSet<Integer> set = new TreeSet<>(); in create5g20MhzChannels() local 76 set.add(chan); in create5g20MhzChannels() 79 set.add(chan); in create5g20MhzChannels() 82 set.add(chan); in create5g20MhzChannels() 84 return set; in create5g20MhzChannels() 88 NavigableSet<Integer> set = new TreeSet<>(); in create5g40MhzChannels() local 89 set.add(34); in create5g40MhzChannels() 91 set.add(chan); in create5g40MhzChannels() 94 set.add(chan); in create5g40MhzChannels() 97 set.add(chan); in create5g40MhzChannels() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | VerifyAppsOverUsbPreferenceControllerTest.java | 69 public GlobalSetter set(String setting, int value) { in set() method in VerifyAppsOverUsbPreferenceControllerTest.GlobalSetter 106 mGlobals.set(Global.ADB_ENABLED, 1 /* setting enabled */) in updateState_settingEnabled_preferenceShouldBeChecked() 107 .set(Global.PACKAGE_VERIFIER_INCLUDE_ADB, 1 /* setting enabled */); in updateState_settingEnabled_preferenceShouldBeChecked() 116 mGlobals.set(Global.ADB_ENABLED, 1 /* setting enabled */) in updateState_settingDisabled_preferenceShouldNotBeChecked() 117 .set(Global.PACKAGE_VERIFIER_INCLUDE_ADB, 0 /* setting disabled */); in updateState_settingDisabled_preferenceShouldNotBeChecked() 126 mGlobals.set(Global.ADB_ENABLED, 0 /* setting disabled */) in updateState_adbDisabled_preferenceShouldNotBeChecked() 127 .set(Global.PACKAGE_VERIFIER_INCLUDE_ADB, 1 /* setting enabled */); in updateState_adbDisabled_preferenceShouldNotBeChecked() 136 mGlobals.set(Global.ADB_ENABLED, 1 /* setting enabled */) in updateState_noBroadcastReceivers_preferenceShouldNotBeChecked() 137 .set(Global.PACKAGE_VERIFIER_INCLUDE_ADB, 1 /* setting enabled */); in updateState_noBroadcastReceivers_preferenceShouldNotBeChecked() 147 mGlobals.set(Global.ADB_ENABLED, 1 /* setting enabled */) in updateState_restrictedByAdmin_preferenceShouldBeDisabled() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/ |
D | WifiConfigurationProvider.java | 124 wifiConf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in generateWifiConfiguration() 125 wifiConf.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN); in generateWifiConfiguration() 160 wifiConf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in maybeUpdateForEAPConfigurationOrThrow() 161 wifiConf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in maybeUpdateForEAPConfigurationOrThrow() 239 wifiConf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in updateForWPAConfiguration() 240 wifiConf.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN); in updateForWPAConfiguration() 241 wifiConf.allowedProtocols.set(WifiConfiguration.Protocol.WPA); // For WPA in updateForWPAConfiguration() 242 wifiConf.allowedProtocols.set(WifiConfiguration.Protocol.RSN); // For WPA2 in updateForWPAConfiguration() 243 wifiConf.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP); in updateForWPAConfiguration() 244 wifiConf.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP); in updateForWPAConfiguration() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | InitialUserSetterTest.java | 123 assertThrows(IllegalArgumentException.class, () -> mSetter.set(null)); in testSet_null() 158 mSetter.set(new Builder(InitialUserSetter.TYPE_SWITCH) in testSwitchUser_ok_nonGuest() 173 mSetter.set(new Builder(InitialUserSetter.TYPE_SWITCH) in testSwitchUser_ok_systemUser() 192 mSetter.set(new Builder(InitialUserSetter.TYPE_SWITCH) in testSwitchUser_ok_guestReplaced() 210 mSetter.set(new Builder(InitialUserSetter.TYPE_SWITCH) in testSwitchUser_ok_guestDoesNotNeedToBeReplaced() 228 mSetter.set(new Builder(InitialUserSetter.TYPE_SWITCH) in testSwitchUser_fail_guestReplacementFailed() 243 mSetter.set(new Builder(InitialUserSetter.TYPE_SWITCH) in testSwitchUser_fail_switchFail() 256 mSetter.set(new Builder(InitialUserSetter.TYPE_SWITCH) in testSwitchUser_fail_userDoesntExist() 270 mSetter.set(new Builder(InitialUserSetter.TYPE_SWITCH) in testSwitchUser_fail_switchThrowsException() 284 mSetter.set(new Builder(InitialUserSetter.TYPE_SWITCH) in testSwitchUser_ok_targetIsCurrentUser() [all …]
|