Home
last modified time | relevance | path

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

1234567891011

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallExtrasTest.java64 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey( in testCsPutExtras()
66 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey( in testCsPutExtras()
86 .containsKey(EXTRA_KEY_BOOL)); in testCsPutBooleanExtra()
107 mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey(EXTRA_KEY_INT)); in testCsPutIntExtra()
129 mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey(EXTRA_KEY_STR)); in testCsPutStringExtra()
152 mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey(EXTRA_KEY_STR)); in testCsRemoveExtra()
160 mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey(EXTRA_KEY_STR)); in testCsRemoveExtra()
162 .containsKey(EXTRA_KEY_STR2)); in testCsRemoveExtra()
185 mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey(EXTRA_KEY_STR)); in testCsUpdateExisting()
187 mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey(EXTRA_KEY_INT)); in testCsUpdateExisting()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionTest.java76 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionStartTransitionsCorrectly()
87 assertFalse(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionStartTransitionsCorrectly()
96 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionStartAssertsFromIncorrectState()
107 assertFalse(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionStartAssertsFromIncorrectState()
116 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionTransitionsEndToEndWithRequests()
160 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionTransitionsEndToEndWithRequests()
172 assertFalse(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionTransitionsEndToEndWithRequests()
181 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionTransitionsEndToEndFailsRequests()
218 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionTransitionsEndToEndFailsRequests()
227 assertFalse(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionTransitionsEndToEndFailsRequests()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForOrganization.java59 boolean containsCompany = values.containsKey(Organization.COMPANY); in update()
60 boolean containsTitle = values.containsKey(Organization.TITLE); in update()
117 return values.containsKey(Organization.COMPANY) in containsSearchableColumns()
118 || values.containsKey(Organization.DEPARTMENT) in containsSearchableColumns()
119 || values.containsKey(Organization.JOB_DESCRIPTION) in containsSearchableColumns()
120 || values.containsKey(Organization.OFFICE_LOCATION) in containsSearchableColumns()
121 || values.containsKey(Organization.PHONETIC_NAME) in containsSearchableColumns()
122 || values.containsKey(Organization.SYMBOL) in containsSearchableColumns()
123 || values.containsKey(Organization.TITLE); in containsSearchableColumns()
DDataRowHandlerForStructuredName.java78 if (values.containsKey(StructuredName.DISPLAY_NAME)) { in update()
150 if (!update.containsKey(StructuredName.FULL_NAME_STYLE)) { in fixStructuredNameComponents()
154 if (!update.containsKey(StructuredName.PHONETIC_NAME_STYLE)) { in fixStructuredNameComponents()
171 return values.containsKey(StructuredName.FAMILY_NAME) in containsSearchableColumns()
172 || values.containsKey(StructuredName.GIVEN_NAME) in containsSearchableColumns()
173 || values.containsKey(StructuredName.MIDDLE_NAME) in containsSearchableColumns()
174 || values.containsKey(StructuredName.PHONETIC_FAMILY_NAME) in containsSearchableColumns()
175 || values.containsKey(StructuredName.PHONETIC_GIVEN_NAME) in containsSearchableColumns()
176 || values.containsKey(StructuredName.PHONETIC_MIDDLE_NAME) in containsSearchableColumns()
177 || values.containsKey(StructuredName.PREFIX) in containsSearchableColumns()
[all …]
DDataRowHandlerForIdentity.java40 if (values.containsKey(Identity.IDENTITY) || values.containsKey(Identity.NAMESPACE)) { in insert()
55 if (values.containsKey(Identity.IDENTITY) || values.containsKey(Identity.NAMESPACE)) { in update()
DDataRowHandler.java225 && (values.containsKey(Data.DATA1) || values.containsKey(Data.DATA2))) { in handleHashIdForUpdate()
233 data1 = values.containsKey(Data.DATA1) ? data1 : c.getString(0); in handleHashIdForUpdate()
234 data2 = values.containsKey(Data.DATA2) ? data2 : c.getString(1); in handleHashIdForUpdate()
402 if (!changing && update.containsKey(key)) { in getAugmentedValues()
442 if (values.containsKey(key)) { in areAnySpecified()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DValuesDelta.java88 public boolean containsKey(String key) { in containsKey() method in ValuesDelta
89 return ((mAfter != null && mAfter.containsKey(key)) || in containsKey()
90 (mBefore != null && mBefore.containsKey(key))); in containsKey()
94 if (mAfter != null && mAfter.containsKey(key)) { in getAsString()
96 } else if (mBefore != null && mBefore.containsKey(key)) { in getAsString()
104 if (mAfter != null && mAfter.containsKey(key)) { in getAsByteArray()
106 } else if (mBefore != null && mBefore.containsKey(key)) { in getAsByteArray()
114 if (mAfter != null && mAfter.containsKey(key)) { in getAsLong()
116 } else if (mBefore != null && mBefore.containsKey(key)) { in getAsLong()
128 if (mAfter != null && mAfter.containsKey(key)) { in getAsInteger()
[all …]
/packages/apps/Email/tests/src/com/android/email/
DMockSharedPreferences.java43 return mValues.containsKey(key); in contains()
51 if (mValues.containsKey(key)) { in getBoolean()
58 if (mValues.containsKey(key)) { in getFloat()
65 if (mValues.containsKey(key)) { in getInt()
72 if (mValues.containsKey(key)) { in getLong()
79 if (mValues.containsKey(key)) in getString()
86 if (mValues.containsKey(key)) { in getStringSet()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
DMockSharedPreferences.java41 return mValues.containsKey(key); in contains()
49 if (mValues.containsKey(key)) { in getBoolean()
56 if (mValues.containsKey(key)) { in getFloat()
63 if (mValues.containsKey(key)) { in getInt()
70 if (mValues.containsKey(key)) { in getLong()
77 if (mValues.containsKey(key)) in getString()
84 if (mValues.containsKey(key)) { in getStringSet()
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
DMockSharedPreferences.java41 return mValues.containsKey(key); in contains()
49 if (mValues.containsKey(key)) { in getBoolean()
56 if (mValues.containsKey(key)) { in getFloat()
63 if (mValues.containsKey(key)) { in getInt()
70 if (mValues.containsKey(key)) { in getLong()
77 if (mValues.containsKey(key)) in getString()
84 if (mValues.containsKey(key)) { in getStringSet()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java842 whereArgs[i++] = values.containsKey(APN) ? in deleteRow()
844 whereArgs[i++] = values.containsKey(USER) ? in deleteRow()
846 whereArgs[i++] = values.containsKey(SERVER) ? in deleteRow()
848 whereArgs[i++] = values.containsKey(PASSWORD) ? in deleteRow()
850 whereArgs[i++] = values.containsKey(PROXY) ? in deleteRow()
852 whereArgs[i++] = values.containsKey(PORT) ? in deleteRow()
854 whereArgs[i++] = values.containsKey(MMSPROXY) ? in deleteRow()
856 whereArgs[i++] = values.containsKey(MMSPORT) ? in deleteRow()
858 whereArgs[i++] = values.containsKey(MMSC) ? in deleteRow()
860 whereArgs[i++] = values.containsKey(AUTH_TYPE) ? in deleteRow()
[all …]
DProviderUtil.java61 (!values.containsKey(Telephony.Sms.CREATOR) && in shouldSetCreator()
62 !values.containsKey(Telephony.Mms.CREATOR)); in shouldSetCreator()
74 (values.containsKey(Telephony.Sms.CREATOR) || in shouldRemoveCreator()
75 values.containsKey(Telephony.Mms.CREATOR)); in shouldRemoveCreator()
/packages/apps/Calendar/tests/src/com/android/calendar/
DFakeSharedPreferences.java39 return mValues.containsKey(key); in contains()
49 if (mValues.containsKey(key)) { in getBoolean()
57 if (mValues.containsKey(key)) { in getFloat()
65 if (mValues.containsKey(key)) { in getInt()
73 if (mValues.containsKey(key)) { in getLong()
81 if (mValues.containsKey(key)) in getString()
89 if (mValues.containsKey(key)) { in getStringSet()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockResources.java38 if (!mPackages.containsKey(resId)) { in getResourceName()
46 if (!mPackages.containsKey(resId)) { in getResourcePackageName()
54 if (!mPackages.containsKey(resId)) { in getResourceTypeName()
62 if (!mPackages.containsKey(resId)) { in getResourceEntryName()
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/
DDrawerApiAdapter.java102 if (item.containsKey(KEY_EMPTY_PLACEHOLDER) && item.getBoolean(KEY_EMPTY_PLACEHOLDER)) { in getItemViewType()
107 if ((flags & FLAG_BROWSABLE) != 0 || item.containsKey(KEY_RIGHTICON)) { in getItemViewType()
111 if (!item.containsKey(KEY_WIDGET)) { in getItemViewType()
207 if (bundle.containsKey(KEY_EMPTY_PLACEHOLDER) in setItems()
216 if (bundle.containsKey(KEY_TEXT) || bundle.containsKey(KEY_REMOTEVIEWS)) { in setItems()
219 if (bundle.containsKey(KEY_LEFTICON)) { in setItems()
222 if (bundle.containsKey(KEY_FLAGS) && in setItems()
363 if (item.containsKey(KEY_REMOTEVIEWS)) { in onBindNormalView()
399 if (item.containsKey(key)) { in maybeSetText()
415 if (item.containsKey(key)) { in maybeSetBitmap()
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleWeeksAdapter.java137 if (params.containsKey(WEEK_PARAMS_FOCUS_MONTH)) { in updateParams()
140 if (params.containsKey(WEEK_PARAMS_FOCUS_MONTH)) { in updateParams()
143 if (params.containsKey(WEEK_PARAMS_SHOW_WEEK)) { in updateParams()
146 if (params.containsKey(WEEK_PARAMS_WEEK_START)) { in updateParams()
149 if (params.containsKey(WEEK_PARAMS_JULIAN_DAY)) { in updateParams()
154 if (params.containsKey(WEEK_PARAMS_DAYS_PER_WEEK)) { in updateParams()
DSimpleWeekView.java213 if (!params.containsKey(VIEW_PARAMS_WEEK)) { in setWeekParams()
219 if (params.containsKey(VIEW_PARAMS_HEIGHT)) { in setWeekParams()
225 if (params.containsKey(VIEW_PARAMS_SELECTED_DAY)) { in setWeekParams()
229 if (params.containsKey(VIEW_PARAMS_NUM_DAYS)) { in setWeekParams()
232 if (params.containsKey(VIEW_PARAMS_SHOW_WK_NUM)) { in setWeekParams()
257 if (params.containsKey(VIEW_PARAMS_WEEK_START)) { in setWeekParams()
282 int focusMonth = params.containsKey(VIEW_PARAMS_FOCUS_MONTH) ? params.get( in setWeekParams()
/packages/apps/Dialer/src/com/android/dialer/calllog/calllogcache/
DCallLogCacheLollipopMr1.java67 if (mVoicemailQueryCache.containsKey(key)) { in isVoicemailNumber()
79 if (mPhoneAccountLabelCache.containsKey(accountHandle)) { in getAccountLabel()
90 if (mPhoneAccountColorCache.containsKey(accountHandle)) { in getAccountColor()
101 if (mPhoneAccountCallWithNoteCache.containsKey(accountHandle)) { in doesAccountSupportCallSubject()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DEntityDelta.java233 return mEntries.containsKey(mimeType); in hasMimeEntries()
536 if (mAfter != null && mAfter.containsKey(key)) { in getAsString()
538 } else if (mBefore != null && mBefore.containsKey(key)) { in getAsString()
546 if (mAfter != null && mAfter.containsKey(key)) { in getAsByteArray()
548 } else if (mBefore != null && mBefore.containsKey(key)) { in getAsByteArray()
556 if (mAfter != null && mAfter.containsKey(key)) { in getAsLong()
558 } else if (mBefore != null && mBefore.containsKey(key)) { in getAsLong()
570 if (mAfter != null && mAfter.containsKey(key)) { in getAsInteger()
572 } else if (mBefore != null && mBefore.containsKey(key)) { in getAsInteger()
610 return (mBefore != null && mBefore.containsKey(mIdColumn)); in beforeExists()
[all …]
/packages/apps/TV/usbtuner/src/com/google/android/exoplayer/
DMediaFormatUtil.java46 for (int i = 0; format.containsKey("csd-" + i); i++) { in createMediaFormat()
53 long durationUs = format.containsKey(android.media.MediaFormat.KEY_DURATION) in createMediaFormat()
86 return format.containsKey(key) ? format.getString(key) : null; in getOptionalStringV16()
90 return format.containsKey(key) ? format.getInteger(key) : MediaFormat.NO_VALUE; in getOptionalIntegerV16()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/cache/
DDvrStorageManager.java190 if (format.containsKey(key)) { in writeFormatInt()
199 if (format.containsKey(key)) { in writeFormatLong()
208 if (format.containsKey(key)) { in writeFormatFloat()
225 if (format.containsKey(key)) { in writeFormatString()
246 if (format.containsKey(key)) { in writeFormatByteBuffer()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallIdMapper.java36 if (key == null || value == null || mPrimaryMap.containsKey(key) || in put()
37 mSecondaryMap.containsKey(value)) { in put()
50 if (mPrimaryMap.containsKey(key)) { in remove()
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailProvider.java923 if (!values.containsKey(BodyColumns.MESSAGE_KEY)) { in insert()
956 if (values.containsKey(MailboxColumns.TYPE)) { in insert()
981 if (values.containsKey(AttachmentColumns.FLAGS)) { in insert()
1391 if (map.containsKey(BodyColumns.HTML_CONTENT) || in query()
1392 map.containsKey(BodyColumns.TEXT_CONTENT)) { in query()
1889 if (values.containsKey(MailboxColumns.SYNC_LOOKBACK) || in restartPushForMailbox()
1890 values.containsKey(MailboxColumns.SYNC_INTERVAL)) { in restartPushForMailbox()
1906 if (values.containsKey(AccountColumns.SYNC_LOOKBACK) || in restartPushForAccount()
1907 values.containsKey(AccountColumns.SYNC_INTERVAL)) { in restartPushForAccount()
2089 if (values.containsKey(AttachmentColumns.FLAGS)) { in update()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpControllerClasses.java190 if(mMetaData.containsKey(MediaMetadata.METADATA_KEY_GENRE)) in displayMetaData()
192 if(mMetaData.containsKey(MediaMetadata.METADATA_KEY_MEDIA_ID)) in displayMetaData()
194 if(mMetaData.containsKey(MediaMetadata.METADATA_KEY_TRACK_NUMBER)) in displayMetaData()
196 if(mMetaData.containsKey(MediaMetadata.METADATA_KEY_NUM_TRACKS)) in displayMetaData()
198 if(mMetaData.containsKey(MediaMetadata.METADATA_KEY_TRACK_NUMBER)) in displayMetaData()
200 if(mMetaData.containsKey(MediaMetadata.METADATA_KEY_TRACK_NUMBER)) in displayMetaData()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationCheckedSet.java124 private boolean containsKey(Long key) { in containsKey() method in ConversationCheckedSet
126 return mInternalMap.containsKey(key); in containsKey()
137 return containsKey(conversation.id); in contains()
251 if (containsKey(conversationId)) { in toggle()

1234567891011