/frameworks/base/core/tests/coretests/src/android/os/ |
D | PerformanceCollectorTest.java | 183 assertTrue(results.containsKey("testAddMeasurementLongZero")); in testAddMeasurementLong() 185 assertTrue(results.containsKey("testAddMeasurementLongPos")); in testAddMeasurementLong() 187 assertTrue(results.containsKey("testAddMeasurementLongNeg")); in testAddMeasurementLong() 204 assertTrue(results.containsKey("testAddMeasurementFloatZero")); in testAddMeasurementFloat() 206 assertTrue(results.containsKey("testAddMeasurementFloatPos")); in testAddMeasurementFloat() 208 assertTrue(results.containsKey("testAddMeasurementFloatNeg")); in testAddMeasurementFloat() 225 assertTrue(results.containsKey("testAddMeasurementStringNull")); in testAddMeasurementString() 227 assertTrue(results.containsKey("testAddMeasurementStringEmpty")); in testAddMeasurementString() 229 assertTrue(results.containsKey("testAddMeasurementStringNonEmpty")); in testAddMeasurementString() 403 assertTrue(snapshot.containsKey(PerformanceCollector.METRIC_KEY_CPU_TIME)); in verifySnapshotBundle() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelWakelockReaderTest.java | 129 assertTrue(staleStats.containsKey("Wakelock")); in testOneWakelock() 148 assertTrue(staleStats.containsKey("Wakelock")); in testTwoWakelocks() 149 assertTrue(staleStats.containsKey("Fakelock")); in testTwoWakelocks() 163 assertTrue(staleStats.containsKey("Wakelock")); in testDuplicateWakelocksAccumulate() 181 assertTrue(staleStats.containsKey("Fakelock")); in testWakelocksBecomeStale() 190 assertTrue(staleStats.containsKey("Wakelock")); in testWakelocksBecomeStale() 191 assertFalse(staleStats.containsKey("Fakelock")); in testWakelocksBecomeStale() 213 assertTrue(staleStats.containsKey("WakeLock")); in testOneWakeLockInfo() 231 assertTrue(staleStats.containsKey("WakeLock1")); in testTwoWakeLockInfos() 232 assertTrue(staleStats.containsKey("WakeLock2")); in testTwoWakeLockInfos() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/ |
D | MessageRouterImpl.java | 56 if (mIdMessageCancelers.containsKey(id)) { in cancelMessages() 70 if (mDataMessageCancelers.containsKey(messageType)) { in cancelMessages() 100 if (mSimpleMessageListenerMap.containsKey(id)) { in unsubscribeFrom() 109 if (mDataMessageListenerMap.containsKey(messageType)) { in unsubscribeFrom() 149 if (mSimpleMessageListenerMap.containsKey(id)) { in onMessage() 157 if (mIdMessageCancelers.containsKey(id) && !mIdMessageCancelers.get(id).isEmpty()) { in onMessage() 168 if (mDataMessageListenerMap.containsKey(data.getClass())) { in onMessage() 177 if (mDataMessageCancelers.containsKey(data.getClass()) in onMessage()
|
/frameworks/base/media/java/android/media/session/ |
D | MediaSessionLegacyHelper.java | 85 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM)) { in getOldMetadata() 89 if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ART)) { in getOldMetadata() 93 } else if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ART)) { in getOldMetadata() 99 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ARTIST)) { in getOldMetadata() 103 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ARTIST)) { in getOldMetadata() 107 if (metadata.containsKey(MediaMetadata.METADATA_KEY_AUTHOR)) { in getOldMetadata() 111 if (metadata.containsKey(MediaMetadata.METADATA_KEY_COMPILATION)) { in getOldMetadata() 115 if (metadata.containsKey(MediaMetadata.METADATA_KEY_COMPOSER)) { in getOldMetadata() 119 if (metadata.containsKey(MediaMetadata.METADATA_KEY_DATE)) { in getOldMetadata() 123 if (metadata.containsKey(MediaMetadata.METADATA_KEY_DISC_NUMBER)) { in getOldMetadata() [all …]
|
/frameworks/base/tests/ShowWhenLockedApp/src/com/android/showwhenlocked/ |
D | ShowWhenLockedActivity.java | 134 if (extras.containsKey(EXTRA_SHOW_WHEN_LOCKED)) { in handleExtras() 140 if (extras.containsKey(EXTRA_TURN_SCREEN_ON)) { in handleExtras() 146 if (extras.containsKey(EXTRA_SHOW_WHEN_LOCKED_STOP)) { in handleExtras() 151 if (extras.containsKey(EXTRA_TURN_SCREEN_ON_STOP)) { in handleExtras() 156 if (extras.containsKey(EXTRA_DISMISS_KEYGUARD)) { in handleExtras()
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowApplicationPackageManager.java | 75 sUserPackageUids.containsKey(userId) in setPackageUidAsUser() 87 if (!sPackageAppEnabledStates.containsKey(packageName)) { in getApplicationEnabledSetting() 101 if (!sPackageInfos.containsKey(packageName)) { in getPackageInfoAsUser() 115 if (sUserPackageUids.containsKey(userId) in getPackageUidAsUser() 116 && sUserPackageUids.get(userId).containsKey(packageName)) { in getPackageUidAsUser() 119 if (!sPackageUids.containsKey(packageName)) { in getPackageUidAsUser()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/ |
D | FeatureFlagsRelease.java | 63 if (mBooleanCache.containsKey(flag.getName())) { 68 } else if (mStringCache.containsKey(flag.getName())) { 73 } else if (mIntCache.containsKey(flag.getName())) { 152 if (!mBooleanCache.containsKey(name)) { in isEnabledInternal() 181 if (!mStringCache.containsKey(name)) { in getStringInternal() 209 if (!mIntCache.containsKey(name)) { in getIntInternal() 230 if (!mBooleanCache.containsKey(flag.getName())) { in dump() 256 if (!mBooleanCache.containsKey(flag.getName())) { in dump()
|
D | FeatureFlagsDebug.java | 90 if (mBooleanFlagCache.containsKey(flag.getName())) { 95 } else if (mStringFlagCache.containsKey(flag.getName())) { 100 } else if (mIntFlagCache.containsKey(flag.getName())) { 164 if (!mBooleanFlagCache.containsKey(name)) { in isEnabledInternal() 175 if (!mBooleanFlagCache.containsKey(name)) { in isEnabled() 186 if (!mBooleanFlagCache.containsKey(name)) { in isEnabled() 203 if (!mStringFlagCache.containsKey(name)) { in getString() 216 if (!mStringFlagCache.containsKey(name)) { in getString() 231 if (!mIntFlagCache.containsKey(name)) { in getInt() 244 if (!mIntFlagCache.containsKey(name)) { in getInt() [all …]
|
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | Tile.java | 177 return mMetaData.containsKey(META_DATA_KEY_ORDER) in hasOrder() 185 return mMetaData != null && mMetaData.containsKey(META_DATA_PREFERENCE_SWITCH_URI); in hasSwitch() 195 if (mMetaData.containsKey(META_DATA_PREFERENCE_TITLE)) { in getTitle() 196 if (mMetaData.containsKey(META_DATA_PREFERENCE_TITLE_URI)) { in getTitle() 238 if (mMetaData.containsKey(META_DATA_PREFERENCE_SUMMARY_URI)) { in getSummary() 243 if (mMetaData.containsKey(META_DATA_PREFERENCE_SUMMARY)) { in getSummary() 290 return mMetaData != null && mMetaData.containsKey(META_DATA_PREFERENCE_KEYHINT); in hasKey() 332 && mMetaData.containsKey(TileUtils.META_DATA_PREFERENCE_ICON_TINTABLE)) { in isIconTintable() 343 && mMetaData.containsKey(META_DATA_NEW_TASK)) { in isNewTask()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | BiMap.java | 32 if (key == null || value == null || mPrimaryMap.containsKey(key) || in put() 33 mSecondaryMap.containsKey(value)) { in put() 46 if (mPrimaryMap.containsKey(key)) { in remove()
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/ |
D | ResourceEntry.java | 45 || !bundle.containsKey(KEY_PACKAGE_NAME) in fromBundle() 46 || !bundle.containsKey(KEY_RESOURCE_NAME) in fromBundle() 47 || !bundle.containsKey(KEY_RESOURCE_ID)) { in fromBundle()
|
D | PartnerConfigHelper.java | 79 if (mPartnerResourceCache.containsKey(partnerConfig)) { in getColor() 118 if (mPartnerResourceCache.containsKey(partnerConfig)) { in getColorStateList() 165 if (mPartnerResourceCache.containsKey(partnerConfig)) { in getDrawable() 208 if (mPartnerResourceCache.containsKey(partnerConfig)) { in getString() 254 if (mPartnerResourceCache.containsKey(partnerConfig)) { in getDimension() 290 if (mPartnerResourceCache.containsKey(partnerConfig)) { in getBoolean()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | SystemActionPerformer.java | 210 if (!mRegisteredSystemActions.containsKey(AccessibilityService.GLOBAL_ACTION_BACK)) { in addLegacySystemActions() 213 if (!mRegisteredSystemActions.containsKey(AccessibilityService.GLOBAL_ACTION_HOME)) { in addLegacySystemActions() 216 if (!mRegisteredSystemActions.containsKey(AccessibilityService.GLOBAL_ACTION_RECENTS)) { in addLegacySystemActions() 219 if (!mRegisteredSystemActions.containsKey( in addLegacySystemActions() 223 if (!mRegisteredSystemActions.containsKey( in addLegacySystemActions() 227 if (!mRegisteredSystemActions.containsKey( in addLegacySystemActions() 231 if (!mRegisteredSystemActions.containsKey( in addLegacySystemActions() 235 if (!mRegisteredSystemActions.containsKey( in addLegacySystemActions()
|
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/ |
D | PartnerConfigHelperTest.java | 85 assertThat(helper.mPartnerResourceCache).containsKey(TEST_DIMENSION_RESOURCE_NAME); in getDimension_shouldReturnExpectedDimension() 100 assertThat(helper.mPartnerResourceCache).containsKey(TEST_COLOR_RESOURCE_NAME); in getColor_shouldReturnExpectedColor() 119 assertThat(helper.mPartnerResourceCache).containsKey(TEST_COLOR_RESOURCE_NAME); in getColor_whenCacheHasColorStateList_shouldReturnExpectedColor() 138 .containsKey(TEST_COLOR_RESOURCE_NAME); in getColorStateList_shouldReturnExpectedColorStateList() 161 .containsKey(TEST_COLOR_RESOURCE_NAME); in getColorStateList_whenCacheHasColorValue_shouldReturnExpectedColorStateList() 173 assertThat(helper.mPartnerResourceCache).containsKey(TEST_STRING_RESOURCE_NAME); in getString_shouldReturnExpectedString()
|
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/ |
D | TestBpfMap.java | 77 if (!mMap.containsKey(key)) throw new NoSuchElementException(); in replaceEntry() 84 boolean ret = !mMap.containsKey(key); in insertOrReplaceEntry() 120 public boolean containsKey(@NonNull K key) throws ErrnoException { in containsKey() method in TestBpfMap 121 return mMap.containsKey(key); in containsKey()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/ |
D | AuthenticatorHelper.java | 100 if (mAccTypeIconCache.containsKey(accountType)) { in getDrawableForType() 104 if (mTypeToAuthDescription.containsKey(accountType)) { in getDrawableForType() 131 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType() 152 if (mTypeToAuthDescription.containsKey(accountType)) { in getPackageForType() 166 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelIdForType() 186 return mTypeToAuthDescription.containsKey(accountType); in containsAccountType()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/ |
D | UpdatableFontDirTest.java | 206 assertThat(dir.getPostScriptMap()).containsKey("foo"); in construct() 208 assertThat(dir.getPostScriptMap()).containsKey("bar"); in construct() 213 assertThat(dir.getFontFamilyMap()).containsKey("foobar"); in construct() 337 assertThat(dir.getPostScriptMap()).containsKey("bar"); in construct_olderThanPreinstalledFont() 386 assertThat(dir.getPostScriptMap()).containsKey("foo"); in construct_afterBatchFailure() 388 assertThat(dir.getFontFamilyMap()).containsKey("foobar"); in construct_afterBatchFailure() 403 assertThat(dir.getPostScriptMap()).containsKey("test"); in loadFontFileMap_twice() 418 assertThat(dir.getPostScriptMap()).containsKey("test"); in installFontFile() 438 assertThat(dir.getPostScriptMap()).containsKey("test"); in installFontFile_upgrade() 440 assertThat(mapBeforeUpgrade).containsKey("test"); in installFontFile_upgrade() [all …]
|
/frameworks/base/telecomm/java/android/telecom/ |
D | RemoteConnectionManager.java | 42 if (!mRemoteConnectionServices.containsKey(componentName)) { in addConnectionService() 66 if (!mRemoteConnectionServices.containsKey(componentName)) { in createRemoteConnection() 97 if (!mRemoteConnectionServices.containsKey(componentName)) { in createRemoteConference()
|
D | RemoteConnectionService.java | 85 if (mConnectionById.containsKey(confId)) { 113 if (mConnectionById.containsKey(callId)) { 143 if (mConnectionById.containsKey(callId)) { 154 if (mConnectionById.containsKey(callId)) { 172 if (mConnectionById.containsKey(callId)) { 184 if (mConnectionById.containsKey(callId)) { 275 if (mConnectionById.containsKey(callId)) { 361 if (mConnectionById.containsKey(id)) { 448 if (mConnectionById.containsKey(callId)) { 639 return mConnectionById.containsKey(callId); in hasConnection() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | PowerProfile.java | 437 if ((sPowerItemMap.containsKey(key) && sPowerItemMap.get(key) > 0)) { in readPowerValuesFromXml() 455 if (sPowerArrayMap.containsKey(CPU_PER_CLUSTER_CORE_COUNT)) { in initCpuClusters() 468 if (sPowerItemMap.containsKey(CPU_PER_CLUSTER_CORE_COUNT)) { in initCpuClusters() 508 if (sPowerArrayMap.containsKey(mCpuClusters[cluster].freqKey)) { in getNumSpeedStepsInCpuCluster() 620 if (sPowerItemMap.containsKey(key)) { in getNumElements() 622 } else if (sPowerArrayMap.containsKey(key)) { in getNumElements() 637 if (sPowerItemMap.containsKey(type)) { in getAveragePowerOrDefault() 639 } else if (sPowerArrayMap.containsKey(type)) { in getAveragePowerOrDefault() 705 if (sPowerItemMap.containsKey(type)) { in getAveragePower() 707 } else if (sPowerArrayMap.containsKey(type)) { in getAveragePower() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/ |
D | DeviceConfigProxyFake.java | 91 if (mProperties.containsKey(namespace) && mProperties.get(namespace).containsKey(name)) { in propsForNamespaceAndName() 95 if (mDefaultProperties.containsKey(namespace)) { in propsForNamespaceAndName() 150 if (mProperties.containsKey(namespace)) { in resetToDefaults()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DeviceManagementResourcesProvider.java | 127 if (!mUpdatedDrawablesForStyle.containsKey(drawableId)) { in updateDrawable() 144 if (!mUpdatedDrawablesForSource.containsKey(drawableId)) { in updateDrawableForSource() 149 if (!drawablesForId.containsKey(drawableSource)) { in updateDrawableForSource() 188 if (!mUpdatedDrawablesForStyle.containsKey(drawableId)) { in getDrawable() 198 if (!mUpdatedDrawablesForSource.containsKey(drawableId)) { in getDrawableForSourceLocked() 201 if (!mUpdatedDrawablesForSource.get(drawableId).containsKey(drawableSource)) { in getDrawableForSourceLocked() 442 if (!mUpdatedDrawablesForStyle.containsKey(id)) { in readInner() 455 if (!mUpdatedDrawablesForSource.containsKey(id)) { in readInner() 458 if (!mUpdatedDrawablesForSource.get(id).containsKey(source)) { in readInner()
|
/frameworks/base/core/java/android/hardware/radio/ |
D | RadioMetadata.java | 342 public boolean containsKey(String key) { in containsKey() method in RadioMetadata 343 return mBundle.containsKey(key); in containsKey() 549 if (!METADATA_KEYS_TYPE.containsKey(key) || in putString() 593 if (!METADATA_KEYS_TYPE.containsKey(key) || in putBitmap() 614 if (!METADATA_KEYS_TYPE.containsKey(key) || in putClock() 657 if (!METADATA_KEYS_TYPE.containsKey(key) || in putStringFromNative() 669 if (!METADATA_KEYS_TYPE.containsKey(key) || in putBitmapFromNative() 689 if (!METADATA_KEYS_TYPE.containsKey(key) || in putClockFromNative()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/storage/ |
D | TertiaryKeysTableTest.java | 142 assertThat(keysByPackageName).containsKey(PACKAGE_NAME); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary() 144 assertThat(keysByPackageName).containsKey(package2); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary() 146 assertThat(keysByPackageName).containsKey(package3); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary() 163 assertThat(keysByPackageName).containsKey(PACKAGE_NAME); in getAllKeys_withMatchingKeys_doesNotReturnKeysWrappedWithOtherAlias()
|
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/ |
D | Camera2RequestSettingsSet.java | 90 if (!mDictionary.containsKey(key) || !Objects.equals(value, currentValue)) { in set() 116 if (mDictionary.containsKey(key)) { in unset() 159 return mDictionary.containsKey(key); in contains()
|