Home
last modified time | relevance | path

Searched refs:existing (Results 1 – 25 of 69) sorted by relevance

123

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/om/
H A DOverlayReferenceMapperTests.kt58 val existing = mapper.addInOrder(overlay) { regex
62 mapper.addInOrder(target, existing = existing) {
87 val existing = mapper.addInOrder(overlay0, overlay1) { regex
91 mapper.addInOrder(target, existing = existing) {
122 val existing = mapper.addInOrder(target) { regex
126 mapper.addInOrder(overlay, existing = existing) {
179 existing: MutableMap<String, AndroidPackage> = mutableMapOf(),
184 changedPackages += addPkg(it, existing)
185 existing[it.packageName] = it
188 return existing
/aosp14/frameworks/base/tools/aapt2/tools/
H A Dfinalize_res.py94 existing = finalFile.read() variable
96 existing = "\n".join(existing.rsplit("</resources>", 1)) variable
99 collect_ids(existing)
112 finalFile.write(existing.strip("\n"))
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DMessagingPropertyAnimator.java142 ObjectAnimator existing = (ObjectAnimator) v.getTag(TAG_TOP_ANIMATOR); in startTopAnimation() local
143 if (existing != null) { in startTopAnimation()
144 existing.cancel(); in startTopAnimation()
182 ObjectAnimator existing = (ObjectAnimator) v.getTag(TAG_ALPHA_ANIMATOR); in fadeIn() local
183 if (existing != null) { in fadeIn()
184 existing.cancel(); in fadeIn()
215 ObjectAnimator existing = (ObjectAnimator) view.getTag(TAG_ALPHA_ANIMATOR); in fadeOut() local
216 if (existing != null) { in fadeOut()
217 existing.cancel(); in fadeOut()
H A DMessagingLayout.java539 MessagingMessage existing = mMessages.get(i); in findAndRemoveMatchingMessage() local
540 if (existing.sameAs(m)) { in findAndRemoveMatchingMessage()
542 return existing; in findAndRemoveMatchingMessage()
546 MessagingMessage existing = mHistoricMessages.get(i); in findAndRemoveMatchingMessage() local
547 if (existing.sameAs(m)) { in findAndRemoveMatchingMessage()
549 return existing; in findAndRemoveMatchingMessage()
563 MessagingMessage existing = mHistoricMessages.get(i); in updateHistoricMessageVisibility() local
564 existing.setVisibility(mShowHistoricMessages ? VISIBLE : GONE); in updateHistoricMessageVisibility()
H A DConversationLayout.java1004 MessagingMessage existing = mMessages.get(i); in findAndRemoveMatchingMessage() local
1005 if (existing.sameAs(m)) { in findAndRemoveMatchingMessage()
1007 return existing; in findAndRemoveMatchingMessage()
1011 MessagingMessage existing = mHistoricMessages.get(i); in findAndRemoveMatchingMessage() local
1012 if (existing.sameAs(m)) { in findAndRemoveMatchingMessage()
1014 return existing; in findAndRemoveMatchingMessage()
1028 MessagingMessage existing = mHistoricMessages.get(i); in updateHistoricMessageVisibility() local
1029 existing.setVisibility(mShowHistoricMessages ? VISIBLE : GONE); in updateHistoricMessageVisibility()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/listbuilder/
H A DSemiStableSort.kt148 existing: MutableList<T>,
152 if (DEBUG) println(" To $existing insert $preSortedAdditions with fewest misordering")
155 if (DEBUG) println(" need to add $toAdd to $existing, starting at $iStart")
160 for (i in iCmpSumMax until existing.size) {
161 val cmp = comparator.compare(toAdd, existing[i]).sign
170 existing.add(iCmpSumMax, toAdd)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/smartspace/filters/
H A DLockscreenAndDreamTargetFilter.kt48 val existing = field regex
50 if (existing != field) {
56 val existing = field regex
58 if (existing != field) {
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
H A DChartDataLoader.java142 NetworkTemplate template, int uid, int set, List<NetworkStats.Bucket> existing) { in collectHistoryForUid() argument
147 if (existing != null) { in collectHistoryForUid()
148 existing.addAll(history); in collectHistoryForUid()
149 return existing; in collectHistoryForUid()
/aosp14/frameworks/base/tests/TrustTests/
H A DREADME.md7 _closely_ matching existing test file or create a new test file. Prefer many test files over large
14 following the pattern fo the existing agents.
39 3. To re-use code between tests, prefer creating new rules alongside the existing rules or adding
40 functionality to a _closely_ matching existing rule.
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DOriginInfo.java55 private OriginInfo(File file, boolean staged, boolean existing) { in OriginInfo() argument
58 mExisting = existing; in OriginInfo()
H A DShortcutRequestPinProcessor.java304 final ShortcutInfo existing = ps.findShortcutById(inShortcut.getId()); in requestPinShortcutLocked() local
305 final boolean existsAlready = existing != null; in requestPinShortcutLocked()
306 final boolean existingIsVisible = existsAlready && existing.isVisibleToPublisher(); in requestPinShortcutLocked()
321 validateExistingShortcut(existing); in requestPinShortcutLocked()
324 launcherPackage, existing.getUserId(), launcherUserId).hasPinned(existing); in requestPinShortcutLocked()
336 shortcutForLauncher = existing.clone(ShortcutInfo.CLONE_REMOVE_FOR_LAUNCHER); in requestPinShortcutLocked()
H A DPreferredActivityHelper.java208 final ArrayList<PreferredActivity> existing = pir.findFilters(filter);
209 if (removeExisting && existing != null) {
210 Settings.removeFilters(pir, filter, existing);
263 final ArrayList<PreferredActivity> existing = pir.findFilters(filter);
264 if (existing != null && existing.size() == 1) {
265 final PreferredActivity cur = existing.get(0);
295 if (existing != null) {
296 Settings.removeFilters(pir, filter, existing);
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DFgsTempAllowList.java96 final Pair<Long, E> existing = mTempAllowList.get(uid); in add() local
98 if (existing == null || existing.first < expirationTime) { in add()
/aosp14/frameworks/base/services/core/java/com/android/server/connectivity/
H A DMultipathPolicyTracker.java479 MultipathTracker existing = mMultipathTrackers.get(network); in registerTrackMobileCallback()
480 if (existing != null) { in registerTrackMobileCallback()
481 existing.setNetworkCapabilities(nc); in registerTrackMobileCallback()
482 existing.updateMultipathBudget(); in registerTrackMobileCallback()
496 MultipathTracker existing = mMultipathTrackers.get(network); in registerTrackMobileCallback()
497 if (existing != null) { in registerTrackMobileCallback()
498 existing.shutdown(); in registerTrackMobileCallback()
/aosp14/frameworks/base/services/core/java/com/android/server/slice/
H A DSliceClientPermissions.java229 String[] existing = mPaths.valueAt(i); in addPath() local
230 if (isPathPrefixMatch(existing, pathSegs)) { in addPath()
234 if (isPathPrefixMatch(pathSegs, existing)) { in addPath()
246 String[] existing = mPaths.valueAt(i); in removePath() local
247 if (isPathPrefixMatch(pathSegs, existing)) { in removePath()
/aosp14/frameworks/base/core/java/com/android/server/net/
H A DNetlinkTracker.java346 DnsServerEntry existing = mIndex.get(address); in updateExistingEntry() local
347 if (existing != null) { in updateExistingEntry()
348 existing.expiry = expiry; in updateExistingEntry()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DPreferencesHelper.java923 if (existing != null && fromTargetApp) { in createNotificationChannel()
925 if (existing.isDeleted()) { in createNotificationChannel()
927 existing.setDeleted(false); in createNotificationChannel()
928 existing.setDeletedTimeMs(-1); in createNotificationChannel()
939 existing.setName(channel.getName().toString()); in createNotificationChannel()
947 existing.setBlockable(channel.isBlockable()); in createNotificationChannel()
951 existing.setGroup(channel.getGroup()); in createNotificationChannel()
960 if (existing.getUserLockedFields() == 0 && in createNotificationChannel()
971 existing.setBypassDnd(bypassDnd); in createNotificationChannel()
1006 channel.setAllowBubbles(existing != null in createNotificationChannel()
[all …]
/aosp14/frameworks/base/tools/aapt2/link/
H A DTableMerger.cpp180 bool override_styles_instead_of_overlaying, Value* existing, Value* incoming, in ResolveMergeCollision() argument
182 if (Styleable* existing_styleable = ValueCast<Styleable>(existing)) { in ResolveMergeCollision()
189 if (Style* existing_style = ValueCast<Style>(existing)) { in ResolveMergeCollision()
198 return ResourceTable::ResolveValueCollision(existing, incoming); in ResolveMergeCollision()
/aosp14/frameworks/base/packages/SystemUI/docs/
H A Dcorestartable.md40 that doesn't have a clear initialization path in existing code, strongly consider defining a _new_
41 CoreStartable instead of inserting into a random place in an existing one.
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/virtual/
H A DVirtualDeviceManagerService.java296 PendingTrampoline existing = mPendingTrampolines.put(
299 if (existing != null) {
300 existing.mResultReceiver.send(
738 PendingTrampoline existing = mMap.put(packageName, pendingTrampoline); in put() local
739 mHandler.removeCallbacksAndMessages(existing); in put()
750 return existing; in put()
/aosp14/frameworks/base/cmds/uinput/src/com/android/commands/uinput/
H A DEvent.java399 final int[] existing = configuration.get(type); in readConfiguration() local
400 configuration.put(type, existing == null ? data.toArray() in readConfiguration()
401 : IntStream.concat(IntStream.of(existing), data).toArray()); in readConfiguration()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DEventLogTags.logtags12 # An existing activity is being given a new intent:
16 # A new activity is being created in an existing task:
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDeviceAdminServiceController.java128 final PersistentConnection<IDeviceAdminService> existing = in startServiceForAdmin() local
131 if (existing != null) { in startServiceForAdmin()
/aosp14/frameworks/base/packages/SystemUI/tools/lint/
H A DREADME8 baseline.xml contains the list of existing "grandfathered" lint
/aosp14/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
H A DLocalTransport.java600 long[] existing = new long[POSSIBLE_SETS.length + 1]; in getAvailableRestoreSets() local
606 existing[num++] = token; in getAvailableRestoreSets()
610 existing[num++] = CURRENT_SET_TOKEN; in getAvailableRestoreSets()
616 available[i] = new RestoreSet("Local disk image", deviceName, existing[i]); in getAvailableRestoreSets()

123