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.java129 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/media/java/android/media/session/
DMediaSessionLegacyHelper.java82 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM)) { in getOldMetadata()
86 if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ART)) { in getOldMetadata()
90 } else if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ART)) { in getOldMetadata()
96 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ARTIST)) { in getOldMetadata()
100 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ARTIST)) { in getOldMetadata()
104 if (metadata.containsKey(MediaMetadata.METADATA_KEY_AUTHOR)) { in getOldMetadata()
108 if (metadata.containsKey(MediaMetadata.METADATA_KEY_COMPILATION)) { in getOldMetadata()
112 if (metadata.containsKey(MediaMetadata.METADATA_KEY_COMPOSER)) { in getOldMetadata()
116 if (metadata.containsKey(MediaMetadata.METADATA_KEY_DATE)) { in getOldMetadata()
120 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()
407 if (sPowerArrayMap.containsKey(mCpuClusters[cluster].freqKey)) { in getNumSpeedStepsInCpuCluster()
434 if (sPowerItemMap.containsKey(key)) { in getNumElements()
436 } else if (sPowerArrayMap.containsKey(key)) { in getNumElements()
451 if (sPowerItemMap.containsKey(type)) { in getAveragePowerOrDefault()
453 } else if (sPowerArrayMap.containsKey(type)) { in getAveragePowerOrDefault()
482 if (sPowerItemMap.containsKey(type)) { in getAveragePower()
484 } 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)) {
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)) {
276 if (mConnectionById.containsKey(callId)) {
362 if (mConnectionById.containsKey(id)) {
428 if (mConnectionById.containsKey(callId)) {
577 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.java302 public boolean containsKey(String key) { in containsKey() method in RadioMetadata
303 return mBundle.containsKey(key); in containsKey()
509 if (!METADATA_KEYS_TYPE.containsKey(key) || in putString()
553 if (!METADATA_KEYS_TYPE.containsKey(key) || in putBitmap()
574 if (!METADATA_KEYS_TYPE.containsKey(key) || in putClock()
615 if (!METADATA_KEYS_TYPE.containsKey(key) || in putStringFromNative()
625 if (!METADATA_KEYS_TYPE.containsKey(key) || in putBitmapFromNative()
643 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()
268 if (mSnoozedNotifications.containsKey(userId)) { in repostGroupSummary()
272 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/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/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/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/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/tests/testables/src/android/testing/
DTestablePermissions.java53 return mPermissions.containsKey(permission); in wantsCall()
57 return mUris.containsKey(uri); in wantsCall()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitorTest.java635 assertFalse(allCallbacks.containsKey(cb)); in requestNetwork()
641 assertFalse(requested.containsKey(cb)); in requestNetwork()
654 assertFalse(allCallbacks.containsKey(cb)); in requestNetwork()
656 assertFalse(requested.containsKey(cb)); in requestNetwork()
658 assertFalse(legacyTypeMap.containsKey(cb)); in requestNetwork()
666 assertFalse(allCallbacks.containsKey(cb)); in registerNetworkCallback()
668 assertFalse(listening.containsKey(cb)); in registerNetworkCallback()
691 } else if (listening.containsKey(cb)) { in unregisterNetworkCallback()
693 } else if (requested.containsKey(cb)) { in unregisterNetworkCallback()
701 assertFalse(allCallbacks.containsKey(cb)); in unregisterNetworkCallback()
[all …]
/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/packages/SystemUI/tests/src/com/android/systemui/
DTestableDependency.java54 if (mObjs.containsKey(key)) return (T) mObjs.get(key); in createDependency()
60 return mObjs.containsKey(key) || mInstantiatedObjects.contains(key); in hasInstantiatedDependency()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DImportTestProvider.java48 if (mMimeTypeToExpectedContentValues.containsKey(mimeType)) { in addExpectedContentValues()
87 if (!mMimeTypeToExpectedContentValues.containsKey(mimeType)) { in applyBatch()
112 if (actualContentValues.containsKey(Data.RAW_CONTACT_ID)) { in applyBatch()
221 if (!actual.containsKey(key)) { in equalsForContentValues()

12345678910>>...19