/frameworks/base/core/tests/coretests/src/android/os/ |
D | PerformanceCollectorTest.java | 208 assertTrue(results.containsKey("testAddMeasurementLongZero")); in testAddMeasurementLong() 210 assertTrue(results.containsKey("testAddMeasurementLongPos")); in testAddMeasurementLong() 212 assertTrue(results.containsKey("testAddMeasurementLongNeg")); in testAddMeasurementLong() 230 assertTrue(results.containsKey("testAddMeasurementFloatZero")); in testAddMeasurementFloat() 232 assertTrue(results.containsKey("testAddMeasurementFloatPos")); in testAddMeasurementFloat() 234 assertTrue(results.containsKey("testAddMeasurementFloatNeg")); in testAddMeasurementFloat() 252 assertTrue(results.containsKey("testAddMeasurementStringNull")); in testAddMeasurementString() 254 assertTrue(results.containsKey("testAddMeasurementStringEmpty")); in testAddMeasurementString() 256 assertTrue(results.containsKey("testAddMeasurementStringNonEmpty")); in testAddMeasurementString() 433 assertTrue(snapshot.containsKey(PerformanceCollector.METRIC_KEY_CPU_TIME)); in verifySnapshotBundle() [all …]
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | KernelWakelockReaderTest.java | 156 assertTrue(staleStats.containsKey("Wakelock")); in testOneWakelock() 177 assertTrue(staleStats.containsKey("Wakelock")); in testTwoWakelocks() 178 assertTrue(staleStats.containsKey("Fakelock")); in testTwoWakelocks() 193 assertTrue(staleStats.containsKey("Wakelock")); in testDuplicateWakelocksAccumulate() 212 assertTrue(staleStats.containsKey("Fakelock")); in testWakelocksBecomeStale() 221 assertTrue(staleStats.containsKey("Wakelock")); in testWakelocksBecomeStale() 222 assertFalse(staleStats.containsKey("Fakelock")); in testWakelocksBecomeStale() 246 assertTrue(staleStats.containsKey("WakeLock")); in testOneWakeLockInfo() 266 assertTrue(staleStats.containsKey("WakeLock1")); in testTwoWakeLockInfos() 267 assertTrue(staleStats.containsKey("WakeLock2")); in testTwoWakeLockInfos() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/ |
D | ShadowPermissionChecker.java | 37 if (!RESULTS.containsKey(packageName)) { in setResult() 50 return RESULTS.containsKey(packageName) && RESULTS.get(packageName).containsKey(permission) in checkCallingPermissionForDataDelivery() 65 return RESULTS.containsKey(packageName) && RESULTS.get(packageName).containsKey(permission) in checkPermissionForDataDelivery() 82 return RESULTS.containsKey(packageName) && RESULTS.get(packageName).containsKey(permission) in checkPermissionForPreflight()
|
/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() 100 if (!sPackageInfos.containsKey(packageName)) { in getPackageInfoAsUser() 114 if (sUserPackageUids.containsKey(userId) in getPackageUidAsUser() 115 && sUserPackageUids.get(userId).containsKey(packageName)) { in getPackageUidAsUser() 118 if (!sPackageUids.containsKey(packageName)) { in getPackageUidAsUser()
|
/frameworks/base/media/java/android/media/ |
D | LoudnessCodecDispatcher.java | 90 if (params.containsKey(infoKey)) { in dispatchLoudnessCodecParameterChange() 98 if (bundle == null && !params.containsKey(mediaCodecKey)) { in dispatchLoudnessCodecParameterChange() 136 if (bundle.containsKey(KEY_AAC_DRC_TARGET_REFERENCE_LEVEL)) { in filterLoudnessParams() 140 if (bundle.containsKey(KEY_AAC_DRC_HEAVY_COMPRESSION)) { in filterLoudnessParams() 144 if (bundle.containsKey(KEY_AAC_DRC_EFFECT_TYPE)) { in filterLoudnessParams() 148 if (bundle.containsKey(KEY_AAC_DRC_BOOST_FACTOR)) { in filterLoudnessParams() 152 if (bundle.containsKey(KEY_AAC_DRC_ATTENUATION_FACTOR)) { in filterLoudnessParams() 156 if (bundle.containsKey(KEY_AAC_DRC_ALBUM_MODE)) { in filterLoudnessParams()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/satellite/ |
D | SatelliteServiceUtilsTest.java | 87 assertTrue(supportedServiceMap.containsKey(plmn1)); in testParseSupportedSatelliteServicesFromPersistableBundle() 94 assertTrue(supportedServiceMap.containsKey(plmn2)); in testParseSupportedSatelliteServicesFromPersistableBundle() 101 assertTrue(supportedServiceMap.containsKey(plmn3)); in testParseSupportedSatelliteServicesFromPersistableBundle() 105 assertFalse(supportedServiceMap.containsKey(plmn4)); in testParseSupportedSatelliteServicesFromPersistableBundle() 106 assertFalse(supportedServiceMap.containsKey(plmn5)); in testParseSupportedSatelliteServicesFromPersistableBundle()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/ |
D | FeatureFlagsClassicRelease.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() 207 if (!mIntCache.containsKey(name)) { in getIntInternal() 228 if (!mBooleanCache.containsKey(flag.getName())) { in dump() 254 if (!mBooleanCache.containsKey(flag.getName())) { in dump()
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | BackupManagerMonitorDumpsysUtils.java | 112 if (!eventBundle.containsKey(BackupManagerMonitor.EXTRA_LOG_EVENT_ID) in parseBackupManagerMonitorRestoreEventForDumpsys() 113 || !eventBundle.containsKey(BackupManagerMonitor.EXTRA_LOG_EVENT_CATEGORY)) { in parseBackupManagerMonitorRestoreEventForDumpsys() 144 if (eventBundle.containsKey(BackupManagerMonitor.EXTRA_LOG_EVENT_PACKAGE_NAME)) { in parseBackupManagerMonitorRestoreEventForDumpsys() 158 if (eventBundle.containsKey(BackupManagerMonitor.EXTRA_LOG_AGENT_LOGGING_RESULTS)) { in hasAgentLogging() 214 if (eventBundle.containsKey(BackupManagerMonitor.EXTRA_LOG_RESTORE_ANYWAY)) { in addExtrasIfAvailable() 218 if (eventBundle.containsKey(BackupManagerMonitor.EXTRA_LOG_RESTORE_VERSION)) { in addExtrasIfAvailable() 222 if (eventBundle.containsKey( in addExtrasIfAvailable() 232 if (eventBundle.containsKey( in addExtrasIfAvailable() 239 if (eventBundle.containsKey( in addExtrasIfAvailable()
|
/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/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | Tile.java | 174 && mMetaData.containsKey(META_DATA_KEY_ORDER) in hasOrder() 180 return mMetaData != null && mMetaData.containsKey(META_DATA_PREFERENCE_SWITCH_URI); in hasSwitch() 193 if (mMetaData != null && mMetaData.containsKey(META_DATA_PREFERENCE_TITLE)) { in getTitle() 194 if (mMetaData.containsKey(META_DATA_PREFERENCE_TITLE_URI)) { in getTitle() 234 if (mMetaData.containsKey(META_DATA_PREFERENCE_SUMMARY_URI)) { in getSummary() 239 if (mMetaData.containsKey(META_DATA_PREFERENCE_SUMMARY)) { in getSummary() 280 return mMetaData != null && mMetaData.containsKey(META_DATA_PREFERENCE_KEYHINT); in hasKey() 323 && mMetaData.containsKey(TileUtils.META_DATA_PREFERENCE_ICON_TINTABLE)) { in isIconTintable() 331 if (mMetaData != null && mMetaData.containsKey(META_DATA_NEW_TASK)) { in isNewTask()
|
/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/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() 130 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType() 151 if (mTypeToAuthDescription.containsKey(accountType)) { in getPackageForType() 165 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelIdForType() 185 return mTypeToAuthDescription.containsKey(accountType); in containsAccountType()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | SystemActionPerformer.java | 220 if (!mRegisteredSystemActions.containsKey(AccessibilityService.GLOBAL_ACTION_BACK)) { in addLegacySystemActions() 223 if (!mRegisteredSystemActions.containsKey(AccessibilityService.GLOBAL_ACTION_HOME)) { in addLegacySystemActions() 226 if (!mRegisteredSystemActions.containsKey(AccessibilityService.GLOBAL_ACTION_RECENTS)) { in addLegacySystemActions() 229 if (!mRegisteredSystemActions.containsKey( in addLegacySystemActions() 233 if (!mRegisteredSystemActions.containsKey( in addLegacySystemActions() 237 if (!mRegisteredSystemActions.containsKey( in addLegacySystemActions() 241 if (!mRegisteredSystemActions.containsKey( in addLegacySystemActions() 245 if (!mRegisteredSystemActions.containsKey( in addLegacySystemActions()
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | AdditionalSubtypeMap.java | 80 if (isEmpty() || !containsKey(key)) { in cloneWithRemoveOrSelf() 136 boolean containsKey(@Nullable String key) { in containsKey() method in AdditionalSubtypeMap 137 return mMap.containsKey(key); in containsKey()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/ |
D | DeviceConfigProxyFake.java | 85 if (mProperties.containsKey(namespace) && mProperties.get(namespace).containsKey(name)) { in propsForNamespaceAndName() 89 if (mDefaultProperties.containsKey(namespace)) { in propsForNamespaceAndName() 144 if (mProperties.containsKey(namespace)) { in resetToDefaults()
|
/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/ |
D | WallpaperEventLoggerTest.java | 155 assertThat(result.getErrors()).containsKey(WALLPAPER_ERROR); in onSystemImgWallpaperBackupFailed_logsFail() 167 assertThat(result.getErrors()).containsKey(WALLPAPER_ERROR); in onLockImgWallpaperBackupFailed_logsFail() 180 assertThat(result.getErrors()).containsKey(WALLPAPER_ERROR); in onSystemLiveWallpaperBackupFailed_logsFail() 192 assertThat(result.getErrors()).containsKey(WALLPAPER_ERROR); in onLockLiveWallpaperBackupFailed_logsFail() 309 assertThat(result.getErrors()).containsKey(WALLPAPER_ERROR); in onSystemImgWallpaperRestoreFailed_logsFail() 321 assertThat(result.getErrors()).containsKey(WALLPAPER_ERROR); in onLockImgWallpaperRestoreFailed_logsFail() 334 assertThat(result.getErrors()).containsKey(WALLPAPER_ERROR); in onSystemLiveWallpaperRestoreFailed_logsFail() 346 assertThat(result.getErrors()).containsKey(WALLPAPER_ERROR); in onLockLiveWallpaperRestoreFailed_logsFail()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | RemoteConnectionService.java | 88 if (mConnectionById.containsKey(confId)) { 116 if (mConnectionById.containsKey(callId)) { 146 if (mConnectionById.containsKey(callId)) { 157 if (mConnectionById.containsKey(callId)) { 175 if (mConnectionById.containsKey(callId)) { 187 if (mConnectionById.containsKey(callId)) { 278 if (mConnectionById.containsKey(callId)) { 364 if (mConnectionById.containsKey(id)) { 451 if (mConnectionById.containsKey(callId)) { 686 return mConnectionById.containsKey(callId); in hasConnection() [all …]
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DeviceManagementResourcesProvider.java | 128 if (!mUpdatedDrawablesForStyle.containsKey(drawableId)) { in updateDrawable() 145 if (!mUpdatedDrawablesForSource.containsKey(drawableId)) { in updateDrawableForSource() 150 if (!drawablesForId.containsKey(drawableSource)) { in updateDrawableForSource() 189 if (!mUpdatedDrawablesForStyle.containsKey(drawableId)) { in getDrawable() 199 if (!mUpdatedDrawablesForSource.containsKey(drawableId)) { in getDrawableForSourceLocked() 202 if (!mUpdatedDrawablesForSource.get(drawableId).containsKey(drawableSource)) { in getDrawableForSourceLocked() 443 if (!mUpdatedDrawablesForStyle.containsKey(id)) { in readInner() 456 if (!mUpdatedDrawablesForSource.containsKey(id)) { in readInner() 459 if (!mUpdatedDrawablesForSource.get(id).containsKey(source)) { in readInner()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/touch/ |
D | TouchInsetManager.java | 119 if (!affectedSurfaces.containsKey(surface)) { in updateTouchRegions() 183 if (!affectedSurfaces.containsKey(surface)) { in updateTouchInsets() 197 if (!affectedSurfaces.containsKey(surface)) { in updateTouchInsets() 217 if (!mSessionRegions.containsKey(session)) { in recycleRegions()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | ColorSpaceProfiles.java | 90 if (!mProfileMap.containsKey(namedColorSpace)) { in ColorSpaceProfiles() 95 if (!mProfileMap.get(namedColorSpace).containsKey(imageFormat)) { in ColorSpaceProfiles() 157 if (imageFormatMap.containsKey(imageFormat)) { in getSupportedColorSpaces() 248 } else if (imageFormatMap.containsKey(imageFormat)) { in getSupportedColorSpacesForDynamicRange()
|