Home
last modified time | relevance | path

Searched refs:newSet (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/media/java/android/media/
DLoudnessCodecController.java217 Set<MediaCodec> newSet = mMediaCodecs.computeIfPresent(mcInfo, (info, codecSet) -> { in addMediaCodec() local
221 if (newSet == null) { in addMediaCodec()
222 newSet = new HashSet<>(); in addMediaCodec()
223 newSet.add(mc); in addMediaCodec()
224 mMediaCodecs.put(mcInfo, newSet); in addMediaCodec()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DFakeSettingsHelper.java141 public void setLocationPackageBlacklisted(int userId, Set<String> newSet) { in setLocationPackageBlacklisted() argument
142 mLocationPackageBlacklistSetting.setValue(newSet, userId); in setLocationPackageBlacklisted()
161 public void setBackgroundThrottlePackageWhitelist(Set<String> newSet) { in setBackgroundThrottlePackageWhitelist() argument
162 mBackgroundThrottlePackageWhitelistSetting.setValue(newSet); in setBackgroundThrottlePackageWhitelist()
/frameworks/base/core/java/android/animation/
DIntKeyframeSet.java51 IntKeyframeSet newSet = new IntKeyframeSet(newKeyframes); in clone() local
52 return newSet; in clone()
DFloatKeyframeSet.java51 FloatKeyframeSet newSet = new FloatKeyframeSet(newKeyframes); in clone() local
52 return newSet; in clone()
DKeyframeSet.java180 KeyframeSet newSet = new KeyframeSet(newKeyframes); in clone() local
181 return newSet; in clone()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DArrayMapTests.java437 ArraySet newSet = new ArraySet<Integer>(); in run()
439 newSet.add(i); in run()
441 ArraySet setCopy = new ArraySet(newSet); in run()
442 if (!compare(setCopy, newSet)) { in run()
444 newSet + ", got " + setCopy); in run()
445 dump(newSet, setCopy); in run()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutLauncher.java152 final ArraySet<String> newSet = new ArraySet<>(); in pinShortcuts() local
163 newSet.add(id); in pinShortcuts()
173 newSet.add(id); in pinShortcuts()
177 mPinnedShortcuts.put(up, newSet); in pinShortcuts()
/frameworks/base/core/java/android/content/
DIntentFilter.java404 String[] newSet = new String[(N*3)/2 + 2]; in addStringToSet() local
405 System.arraycopy(set, 0, newSet, 0, N); in addStringToSet()
406 set = newSet; in addStringToSet()
427 String[] newSet = new String[set.length/3]; in removeStringFromSet() local
428 if (pos > 0) System.arraycopy(set, 0, newSet, 0, pos); in removeStringFromSet()
429 if ((pos+1) < N) System.arraycopy(set, pos+1, newSet, pos, N-(pos+1)); in removeStringFromSet()
430 return newSet; in removeStringFromSet()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java2244 Sets.newSet(
2251 Sets.newSet(
7170 final Set<String> packages = Sets.newSet("TEST_PACKAGE", "TEST_COMMON_PACKAGE"); in testGetAllCrossProfilePackages_whenSet_returnsCombinedSet()
7187 final Set<String> packages = Sets.newSet("TEST_PACKAGE", "TEST_COMMON_PACKAGE"); in testGetAllCrossProfilePackages_whenSet_dpmsReinitialized_returnsCombinedSet()