Home
last modified time | relevance | path

Searched refs:putIfAbsent (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/mime/java-res/
Dvendor.mime.types22 # mimeToExt.putIfAbsent("mime", "ext1");
23 # extToMime.putIfAbsent("ext1", "mime");
24 # extToMime.putIfAbsent("ext2", "mime");
25 # extToMime.putIfAbsent("ext3", "mime");
Dandroid.mime.types10 # (putIfAbsent() semantics).
23 # mimeToExt.putIfAbsent("mime", "ext1");
25 # extToMime.putIfAbsent("ext2", "mime");
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/
DMessageRouterImpl.java84 mSimpleMessageListenerMap.putIfAbsent(id, new ArrayList<>()); in subscribeTo()
92 mDataMessageListenerMap.putIfAbsent(messageType, new ArrayList<>()); in subscribeTo()
135 mIdMessageCancelers.putIfAbsent(id, new ArrayList<>()); in addCanceler()
142 mDataMessageCancelers.putIfAbsent(data, new ArrayList<>()); in addCanceler()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DDexManager.java383 PackageCodeLocations pcl = putIfAbsent(mPackageCodeLocationsCache, packageName, in cachePackageCodeLocation()
421 Set<Integer> users = putIfAbsent( in loadInternal()
425 Set<String> codePaths = putIfAbsent( in loadInternal()
577 private static <K,V> V putIfAbsent(Map<K,V> map, K key, V newValue) { in putIfAbsent() method in DexManager
578 V existingValue = map.putIfAbsent(key, newValue); in putIfAbsent()
739 Set<String> dataDirs = putIfAbsent(mAppDataDirs, userId, new HashSet<>()); in mergeAppDataDirs()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/flags/
DFakeFeatureFlags.kt88 fun setDefault(flag: BooleanFlag) = booleanFlags.putIfAbsent(flag.name, flag.default) in <lambda>()
100 fun setDefault(flag: SysPropBooleanFlag) = booleanFlags.putIfAbsent(flag.name, flag.default) in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/settings/
DFakeSettings.java73 mContentObserversAllUsers.putIfAbsent(uri.toString(), new ArrayList<>()); in registerContentObserverForUserSync()
77 mContentObservers.putIfAbsent(key, new ArrayList<>()); in registerContentObserverForUserSync()
DFakeGlobalSettings.java50 mContentObserversAllUsers.putIfAbsent(uri.toString(), new ArrayList<>()); in registerContentObserverSync()
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
DViewerConfigProtoBuilder.kt37 groupIds.putIfAbsent(it, groupIds.size + 1) in <lambda>()
/frameworks/base/services/flags/java/com/android/server/flags/
DFlagCache.java84 V value = nsCache.putIfAbsent(name, defaultValue); in getOrSet()
DFlagOverrideStore.java107 results.putIfAbsent(ns, new HashMap<>()); in getFlagsForNamespace()
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowUserManager.java97 mUserPropertiesMap.putIfAbsent(userId, userProperties); in setupUserProperty()
/frameworks/base/core/java/android/net/
DPacProxyManager.java67 if (null != mListenerMap.putIfAbsent(listener, listenerProxy)) { in addPacProxyInstalledListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DWakeLock.java127 mActiveClients.putIfAbsent(why, 0);
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/
DDeviceConfigProxyFake.java80 properties.putIfAbsent(namespace, new HashMap<>()); in setPropertyInternal()
/frameworks/base/telephony/java/android/telephony/
DSignalStrengthUpdateRequest.java292 ranToTypes.putIfAbsent(ran, new HashSet<>()); in validate()
/frameworks/base/services/core/java/com/android/server/pm/
DUpdateOwnershipHelper.java136 ArraySet<String> priorDenyListOwners = mUpdateOwnerOptOutsToOwners.putIfAbsent( in addToUpdateOwnerDenyList()
/frameworks/base/core/java/android/content/pm/parsing/result/
DParseTypeImpl.java165 mDeferredErrors.putIfAbsent(deferredError, parseError);
/frameworks/base/services/core/java/com/android/server/security/rkp/
DRemoteProvisioningRegistration.java114 if (mGetKeyOperations.putIfAbsent(callback.asBinder(), cancellationSignal) != null) { in getKey()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DTraceMarkParser.java85 final Integer existingDepth = mDepthMap.putIfAbsent(line.taskPid, 1); in visit()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowContextListenerController.java278 mListeners.putIfAbsent(token, this); in register()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothLeBroadcastAssistant.java315 mCachedCallbackExecutorMap.putIfAbsent(callback, executor); in registerServiceCallBack()
/frameworks/base/core/java/com/android/internal/protolog/
DPerfettoProtoLogImpl.java634 mLogLevelCounts.putIfAbsent(group, new ArrayMap<>()); in onTracingInstanceStart()
660 mLogLevelCounts.putIfAbsent(group, new ArrayMap<>()); in onTracingInstanceStop()
/frameworks/base/core/java/android/net/vcn/
DVcnManager.java436 if (REGISTERED_POLICY_LISTENERS.putIfAbsent(listener, binder) != null) { in addVcnNetworkPolicyChangeListener()
/frameworks/base/tools/lock_agent/java/com/android/lock_checker/
DOnThreadLockChecker.java198 sLockOrderMap.putIfAbsent(new LockPair(alreadyHeld, lock), orderData); in handlePre()
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationDebug.java177 reusedMap.putIfAbsent(domain, DomainVerificationState.STATE_NO_RESPONSE); in printState()

12