Home
last modified time | relevance | path

Searched refs:containsKey (Results 1 – 25 of 469) sorted by relevance

12345678910>>...19

/frameworks/base/core/tests/coretests/src/android/os/
DPerformanceCollectorTest.java183 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/
DKernelWakelockReaderTest.java92 assertTrue(staleStats.containsKey("Wakelock")); in testOneWakelock()
108 assertTrue(staleStats.containsKey("Wakelock")); in testTwoWakelocks()
109 assertTrue(staleStats.containsKey("Fakelock")); in testTwoWakelocks()
121 assertTrue(staleStats.containsKey("Wakelock")); in testDuplicateWakelocksAccumulate()
137 assertTrue(staleStats.containsKey("Fakelock")); in testWakelocksBecomeStale()
145 assertTrue(staleStats.containsKey("Wakelock")); in testWakelocksBecomeStale()
146 assertFalse(staleStats.containsKey("Fakelock")); in testWakelocksBecomeStale()
/frameworks/base/media/java/android/media/session/
DMediaSessionLegacyHelper.java83 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM)) { in getOldMetadata()
87 if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ART)) { in getOldMetadata()
91 } else if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ART)) { in getOldMetadata()
97 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ARTIST)) { in getOldMetadata()
101 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ARTIST)) { in getOldMetadata()
105 if (metadata.containsKey(MediaMetadata.METADATA_KEY_AUTHOR)) { in getOldMetadata()
109 if (metadata.containsKey(MediaMetadata.METADATA_KEY_COMPILATION)) { in getOldMetadata()
113 if (metadata.containsKey(MediaMetadata.METADATA_KEY_COMPOSER)) { in getOldMetadata()
117 if (metadata.containsKey(MediaMetadata.METADATA_KEY_DATE)) { in getOldMetadata()
121 if (metadata.containsKey(MediaMetadata.METADATA_KEY_DISC_NUMBER)) { in getOldMetadata()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DMockResources.java39 if (mBooleanValues.containsKey(id)) { in getBoolean()
48 if (mIntegerValues.containsKey(id)) { in getInteger()
57 if (mStringValues.containsKey(id)) { in getString()
66 if (mTextValues.containsKey(id)) { in getText()
75 if (mIntArrayValues.containsKey(id)) { in getIntArray()
/frameworks/base/tests/ShowWhenLockedApp/src/com/android/showwhenlocked/
DShowWhenLockedActivity.java134 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/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DTestMtpManager.java121 if (mObjectInfos.containsKey(key)) { in getObjectInfo()
131 if (mObjectHandles.containsKey(key)) { in getObjectHandles()
142 if (mImportFileBytes.containsKey(key)) { in importFile()
159 if (mObjectInfos.containsKey(key)) { in createDocument()
183 if (mThumbnailBytes.containsKey(key)) { in getThumbnail()
193 if (mObjectInfos.containsKey(key)) { in deleteDocument()
203 if (mObjectInfos.containsKey(key)) { in getParent()
230 if (mObjectSizeLongs.containsKey(key)) { in getObjectSizeLong()
/frameworks/base/core/java/com/android/internal/os/
DPowerProfile.java336 if ((sPowerItemMap.containsKey(key) && sPowerItemMap.get(key) > 0)) { in readPowerValuesFromXml()
354 if (sPowerArrayMap.containsKey(CPU_PER_CLUSTER_CORE_COUNT)) { in initCpuClusters()
367 if (sPowerItemMap.containsKey(CPU_PER_CLUSTER_CORE_COUNT)) { in initCpuClusters()
404 if (sPowerArrayMap.containsKey(mCpuClusters[cluster].freqKey)) { in getNumSpeedStepsInCpuCluster()
431 if (sPowerItemMap.containsKey(key)) { in getNumElements()
433 } else if (sPowerArrayMap.containsKey(key)) { in getNumElements()
448 if (sPowerItemMap.containsKey(type)) { in getAveragePowerOrDefault()
450 } else if (sPowerArrayMap.containsKey(type)) { in getAveragePowerOrDefault()
479 if (sPowerItemMap.containsKey(type)) { in getAveragePower()
481 } else if (sPowerArrayMap.containsKey(type)) { in getAveragePower()
[all …]
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/
DResourceEntry.java46 || !bundle.containsKey(KEY_PACKAGE_NAME) in fromBundle()
47 || !bundle.containsKey(KEY_RESOURCE_NAME) in fromBundle()
48 || !bundle.containsKey(KEY_RESOURCE_ID)) { in fromBundle()
DPartnerConfigHelper.java80 if (mPartnerResourceCache.containsKey(partnerConfig)) { in getColor()
116 if (mPartnerResourceCache.containsKey(partnerConfig)) { in getDrawable()
159 if (mPartnerResourceCache.containsKey(partnerConfig)) { in getString()
205 if (mPartnerResourceCache.containsKey(partnerConfig)) { in getDimension()
241 if (mPartnerResourceCache.containsKey(partnerConfig)) { in getBoolean()
/frameworks/base/telecomm/java/android/telecom/
DRemoteConnectionService.java85 if (mConnectionById.containsKey(confId)) {
105 if (mConnectionById.containsKey(callId)) {
135 if (mConnectionById.containsKey(callId)) {
146 if (mConnectionById.containsKey(callId)) {
164 if (mConnectionById.containsKey(callId)) {
176 if (mConnectionById.containsKey(callId)) {
268 if (mConnectionById.containsKey(callId)) {
354 if (mConnectionById.containsKey(id)) {
420 if (mConnectionById.containsKey(callId)) {
564 return mConnectionById.containsKey(callId); in hasConnection()
[all …]
DRemoteConnectionManager.java42 if (!mRemoteConnectionServices.containsKey(componentName)) { in addConnectionService()
63 if (!mRemoteConnectionServices.containsKey(componentName)) { in createRemoteConnection()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/
DAuthenticatorHelper.java98 if (mAccTypeIconCache.containsKey(accountType)) { in getDrawableForType()
102 if (mTypeToAuthDescription.containsKey(accountType)) { in getDrawableForType()
129 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType()
150 if (mTypeToAuthDescription.containsKey(accountType)) { in getPackageForType()
164 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelIdForType()
184 return mTypeToAuthDescription.containsKey(accountType); in containsAccountType()
/frameworks/base/core/java/android/hardware/radio/
DRadioMetadata.java301 public boolean containsKey(String key) { in containsKey() method in RadioMetadata
302 return mBundle.containsKey(key); in containsKey()
508 if (!METADATA_KEYS_TYPE.containsKey(key) || in putString()
552 if (!METADATA_KEYS_TYPE.containsKey(key) || in putBitmap()
573 if (!METADATA_KEYS_TYPE.containsKey(key) || in putClock()
614 if (!METADATA_KEYS_TYPE.containsKey(key) || in putStringFromNative()
624 if (!METADATA_KEYS_TYPE.containsKey(key) || in putBitmapFromNative()
642 if (!METADATA_KEYS_TYPE.containsKey(key) || in putClockFromNative()
/frameworks/base/services/core/java/com/android/server/notification/
DSnoozeHelper.java94 return mSnoozedNotifications.containsKey(userId) in isSnoozed()
95 && mSnoozedNotifications.get(userId).containsKey(pkg) in isSnoozed()
96 && mSnoozedNotifications.get(userId).get(pkg).containsKey(key); in isSnoozed()
100 if (mSnoozedNotifications.containsKey(userId) in getSnoozed()
101 && mSnoozedNotifications.get(userId).containsKey(pkg)) { in getSnoozed()
162 if (mSnoozedNotifications.containsKey(userId)) { in cancel()
206 if (mSnoozedNotifications.containsKey(userId)) { in cancel()
207 if (mSnoozedNotifications.get(userId).containsKey(pkg)) { in cancel()
271 if (mSnoozedNotifications.containsKey(userId)) { in repostGroupSummary()
275 if (keysByPackage != null && keysByPackage.containsKey(pkg)) { in repostGroupSummary()
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
DTile.java159 return mMetaData.containsKey(META_DATA_KEY_ORDER) in hasOrder()
170 if (mMetaData.containsKey(META_DATA_PREFERENCE_TITLE)) { in getTitle()
213 if (mMetaData.containsKey(META_DATA_PREFERENCE_SUMMARY_URI)) { in getSummary()
216 if (mMetaData.containsKey(META_DATA_PREFERENCE_SUMMARY)) { in getSummary()
263 return mMetaData != null && mMetaData.containsKey(META_DATA_PREFERENCE_KEYHINT); in hasKey()
288 if (!mMetaData.containsKey(META_DATA_PREFERENCE_ICON_URI)) { in getIcon()
313 && mMetaData.containsKey(TileUtils.META_DATA_PREFERENCE_ICON_TINTABLE)) { in isIconTintable()
/frameworks/base/core/java/android/appwidget/
DAppWidgetProvider.java71 if (extras != null && extras.containsKey(AppWidgetManager.EXTRA_APPWIDGET_ID)) { in onReceive()
77 if (extras != null && extras.containsKey(AppWidgetManager.EXTRA_APPWIDGET_ID) in onReceive()
78 && extras.containsKey(AppWidgetManager.EXTRA_APPWIDGET_OPTIONS)) { in onReceive()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/storage/
DTertiaryKeysTableTest.java142 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/
DCamera2RequestSettingsSet.java90 if (!mDictionary.containsKey(key) || !Objects.equals(value, currentValue)) { in set()
116 if (mDictionary.containsKey(key)) { in unset()
159 return mDictionary.containsKey(key); in contains()
/frameworks/base/tests/testables/src/android/testing/
DTestablePermissions.java53 return mPermissions.containsKey(permission); in wantsCall()
57 return mUris.containsKey(uri); in wantsCall()
/frameworks/base/media/java/android/media/
DMediaMetadata.java434 public boolean containsKey(String key) { in containsKey() method in MediaMetadata
435 return mBundle.containsKey(key); in containsKey()
611 if (mBundle.containsKey(METADATA_KEY_BT_FOLDER_TYPE)) { in getDescription()
789 if (METADATA_KEYS_TYPE.containsKey(key)) { in putText()
831 if (METADATA_KEYS_TYPE.containsKey(key)) { in putString()
858 if (METADATA_KEYS_TYPE.containsKey(key)) { in putLong()
882 if (METADATA_KEYS_TYPE.containsKey(key)) { in putRating()
912 if (METADATA_KEYS_TYPE.containsKey(key)) { in putBitmap()
DMediaExtractor.java343 if (formatMap.containsKey(MediaFormat.KEY_CA_SYSTEM_ID)) { in getCasInfo()
347 if (formatMap.containsKey(MediaFormat.KEY_CA_PRIVATE_DATA)) { in getCasInfo()
353 if (mMediaCas != null && formatMap.containsKey(MediaFormat.KEY_CA_SESSION_ID)) { in getCasInfo()
394 if (formatMap.containsKey("pssh")) { in getDrmInitData()
412 if (!trackFormatMap.containsKey("crypto-key")) { in getDrmInitData()
453 if (formatMap != null && formatMap.containsKey("pssh")) {
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DStopWatchMap.java84 if (!mStopWatches.containsKey(stopWatchName)) { in start()
94 if (!mStopWatches.containsKey(stopWatchName)) { in stop()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java631 assertFalse(allCallbacks.containsKey(cb)); in requestNetwork()
637 assertFalse(requested.containsKey(cb)); in requestNetwork()
650 assertFalse(allCallbacks.containsKey(cb)); in requestNetwork()
652 assertFalse(requested.containsKey(cb)); in requestNetwork()
654 assertFalse(legacyTypeMap.containsKey(cb)); in requestNetwork()
662 assertFalse(allCallbacks.containsKey(cb)); in registerNetworkCallback()
664 assertFalse(listening.containsKey(cb)); in registerNetworkCallback()
687 } else if (listening.containsKey(cb)) { in unregisterNetworkCallback()
689 } else if (requested.containsKey(cb)) { in unregisterNetworkCallback()
697 assertFalse(allCallbacks.containsKey(cb)); in unregisterNetworkCallback()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DTestableDependency.java58 if (mObjs.containsKey(key)) return (T) mObjs.get(key); in createDependency()
64 return mObjs.containsKey(key) || mInstantiatedObjects.contains(key); in hasInstantiatedDependency()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/
DPartnerConfigHelperTest.java84 assertThat(helper.mPartnerResourceCache).containsKey(TEST_DIMENSION_RESOURCE_NAME); in getDimension_shouldReturnExpectedDimension()
96 assertThat(helper.mPartnerResourceCache).containsKey(TEST_COLOR_RESOURCE_NAME); in getColor_shouldReturnExpectedColor()
108 assertThat(helper.mPartnerResourceCache).containsKey(TEST_STRING_RESOURCE_NAME); in getString_shouldReturnExpectedString()

12345678910>>...19