Home
last modified time | relevance | path

Searched refs:equals (Results 1 – 25 of 1929) sorted by relevance

12345678910>>...78

/packages/apps/Contacts/src/com/android/contacts/list/
DContactsIntentResolver.java62 if (UiIntentActions.LIST_DEFAULT.equals(action) ) { in resolveIntent()
64 } else if (UiIntentActions.LIST_ALL_CONTACTS_ACTION.equals(action)) { in resolveIntent()
66 } else if (UiIntentActions.LIST_CONTACTS_WITH_PHONES_ACTION.equals(action)) { in resolveIntent()
68 } else if (UiIntentActions.LIST_STARRED_ACTION.equals(action)) { in resolveIntent()
70 } else if (UiIntentActions.LIST_FREQUENT_ACTION.equals(action)) { in resolveIntent()
72 } else if (UiIntentActions.LIST_STREQUENT_ACTION.equals(action)) { in resolveIntent()
74 } else if (UiIntentActions.LIST_GROUP_ACTION.equals(action)) { in resolveIntent()
77 } else if (UiIntentActions.ACTION_SELECT_ITEMS.equals(action)) { in resolveIntent()
79 if (Phone.CONTENT_TYPE.equals(resolvedType)) { in resolveIntent()
81 } else if (Email.CONTENT_TYPE.equals(resolvedType)) { in resolveIntent()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DCling.java124 if (mDrawIdentifier.equals(WORKSPACE_PORTRAIT)) { in getPunchThroughPositions()
126 } else if (mDrawIdentifier.equals(WORKSPACE_LANDSCAPE)) { in getPunchThroughPositions()
128 } else if (mDrawIdentifier.equals(WORKSPACE_LARGE)) { in getPunchThroughPositions()
133 } else if (mDrawIdentifier.equals(ALLAPPS_PORTRAIT) || in getPunchThroughPositions()
134 mDrawIdentifier.equals(ALLAPPS_LANDSCAPE) || in getPunchThroughPositions()
135 mDrawIdentifier.equals(ALLAPPS_LARGE)) { in getPunchThroughPositions()
153 return (mDrawIdentifier.equals(WORKSPACE_PORTRAIT) in onHoverEvent()
154 || mDrawIdentifier.equals(WORKSPACE_LANDSCAPE) in onHoverEvent()
155 || mDrawIdentifier.equals(WORKSPACE_LARGE) in onHoverEvent()
156 || mDrawIdentifier.equals(ALLAPPS_PORTRAIT) in onHoverEvent()
[all …]
DAllAppsList.java106 if (info.user.equals(user) && packageName.equals(component.getPackageName())) { in removePackage()
129 if (user.equals(applicationInfo.user) in updatePackage()
130 && packageName.equals(component.getPackageName())) { in updatePackage()
162 if (user.equals(applicationInfo.user) in updatePackage()
163 && packageName.equals(component.getPackageName())) { in updatePackage()
179 if (info.getUser().equals(user) in findActivity()
180 && info.getComponentName().equals(component)) { in findActivity()
196 if (info.user.equals(user) && info.componentName.equals(component)) { in findActivity()
211 if (user.equals(info.user) && packageName.equals(component.getPackageName()) in findApplicationInfoLocked()
212 && className.equals(component.getClassName())) { in findApplicationInfoLocked()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DBmessageParser.java117 if (!prop.equals(BEGIN_BMSG)) { in parse()
123 while (prop.equals(BEGIN_VCARD)) { in parse()
133 if (!prop.equals(BEGIN_BENV)) { in parse()
139 if (!prop.equals(END_BMSG)) { in parse()
164 if (prop.name.equals("VERSION")) { in parseProperties()
167 } else if (prop.name.equals("STATUS")) { in parseProperties()
169 if (prop.value.equals(s.toString())) { in parseProperties()
175 } else if (prop.name.equals("TYPE")) { in parseProperties()
177 if (prop.value.equals(t.toString())) { in parseProperties()
183 } else if (prop.name.equals("FOLDER")) { in parseProperties()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java136 public boolean equals(Uri uri, String[] projection, String selection, in equals() method in MockContentProvider.Query
142 } else if (!uri.equals(mUri)) { in equals()
146 if (!mAnyProjection && !Arrays.equals(projection, mProjection)) { in equals()
150 if (!mAnySelection && !Objects.equals(selection, mSelection)) { in equals()
154 if (!mAnySelection && !Arrays.equals(selectionArgs, mSelectionArgs)) { in equals()
158 if (!mAnySortOrder && !Objects.equals(sortOrder, mSortOrder)) { in equals()
229 public boolean equals(Uri uri) { in equals() method in MockContentProvider.TypeQuery
230 return getUri().equals(uri); in equals()
266 private boolean equals(Uri uri, ContentValues contentValues) { in equals() method in MockContentProvider.Insert
267 return mUri.equals(uri) && mContentValues.equals(contentValues); in equals()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java291 .filter(account -> groupId.equals(account.getGroupId()) && in getPhoneAccountByGroupId()
292 !account.getAccountHandle().equals(excludePhoneAccountHandle) && in getPhoneAccountByGroupId()
293 Objects.equals(account.getAccountHandle().getComponentName(), in getPhoneAccountByGroupId()
397 && Objects.equals(component, systemSimCallManagerComponent) in getSimCallManager()
403 && Objects.equals(component.getPackageName(), dialerPackage) in getSimCallManager()
487 if (phoneAccountHandle.equals(entry.getValue().phoneAccountHandle)) { in removeDefaultPhoneAccountHandle()
525 return phoneAccountUserHandle.equals(userHandle); in isVisibleForUser()
734 if (Objects.equals(packageName, handle.getComponentName().getPackageName()) in clearAccounts()
735 && Objects.equals(userHandle, handle.getUserHandle())) { in clearAccounts()
809 if (!Objects.equals(obj1, obj2)) { in appendDiff()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/account/
DBaseAccountType.java672 if (Tag.DATA_KIND.equals(tag)) { in parseEditSchema()
814 if (Tag.TYPE.equals(tag)) { in parseTypes()
1045 if ("home".equals(type)) return build(Phone.TYPE_HOME, false); in buildEditTypeForTypeTag()
1046 if ("mobile".equals(type)) return build(Phone.TYPE_MOBILE, false); in buildEditTypeForTypeTag()
1047 if ("work".equals(type)) return build(Phone.TYPE_WORK, false); in buildEditTypeForTypeTag()
1048 if ("fax_work".equals(type)) return build(Phone.TYPE_FAX_WORK, true); in buildEditTypeForTypeTag()
1049 if ("fax_home".equals(type)) return build(Phone.TYPE_FAX_HOME, true); in buildEditTypeForTypeTag()
1050 if ("pager".equals(type)) return build(Phone.TYPE_PAGER, true); in buildEditTypeForTypeTag()
1051 if ("other".equals(type)) return build(Phone.TYPE_OTHER, false); in buildEditTypeForTypeTag()
1052 if ("callback".equals(type)) return build(Phone.TYPE_CALLBACK, true); in buildEditTypeForTypeTag()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/data/
DRecordedProgram.java624 if (TextUtils.equals(mSeasonNumber, "0")) { in getEpisodeDisplayNumber()
745 public boolean equals(Object o) { in equals() method in RecordedProgram
749 return Objects.equals(mId, that.mId) && in equals()
750 Objects.equals(mChannelId, that.mChannelId) && in equals()
751 Objects.equals(mSeriesId, that.mSeriesId) && in equals()
752 Objects.equals(mSeasonNumber, that.mSeasonNumber) && in equals()
753 Objects.equals(mSeasonTitle, that.mSeasonTitle) && in equals()
754 Objects.equals(mEpisodeNumber, that.mEpisodeNumber) && in equals()
755 Objects.equals(mStartTimeUtcMillis, that.mStartTimeUtcMillis) && in equals()
756 Objects.equals(mEndTimeUtcMillis, that.mEndTimeUtcMillis) && in equals()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DCalendarEventModel.java55 public boolean equals(Object obj) { in equals() method in CalendarEventModel.Attendee
63 if (!TextUtils.equals(mEmail, other.mEmail)) { in equals()
143 public boolean equals(Object obj) { in equals() method in CalendarEventModel.ReminderEntry
531 public boolean equals(Object obj) { in equals() method in CalendarEventModel
551 } else if (!mLocation.equals(other.mLocation)) { in equals()
559 } else if (!mTitle.equals(other.mTitle)) { in equals()
567 } else if (!mDescription.equals(other.mDescription)) { in equals()
575 } else if (!mDuration.equals(other.mDuration)) { in equals()
604 } else if (!mOriginalSyncId.equals(other.mOriginalSyncId)) { in equals()
612 } else if (!mRrule.equals(other.mRrule)) { in equals()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java149 if (currentCity.equals(addr1Locality) || currentCity.equals(addr2Locality)) { in computeAddress()
151 if (currentCity.equals(addr1Locality)) { in computeAddress()
155 if (!currentCountry.equals(addr2CountryCode)) { in computeAddress()
166 if (!currentCountry.equals(addr1CountryCode)) { in computeAddress()
175 if (closestCommonLocation != null && !("null".equals(closestCommonLocation))) { in computeAddress()
176 if (!currentCity.equals(otherCity)) { in computeAddress()
184 if (closestCommonLocation != null && !("null".equals(closestCommonLocation))) { in computeAddress()
191 if (closestCommonLocation != null && !("".equals(closestCommonLocation))) { in computeAddress()
195 if (!countryCode.equals(currentCountry)) { in computeAddress()
206 if (currentAdminArea.equals(addr1AdminArea) && currentAdminArea.equals(addr2AdminArea)) { in computeAddress()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/account/
DBaseAccountType.java543 if (Tag.DATA_KIND.equals(tag)) { in parseEditSchema()
930 if (Tag.TYPE.equals(tag)) { in parseTypes()
1244 if ("home".equals(type)) { in buildEditTypeForTypeTag()
1247 if ("mobile".equals(type)) { in buildEditTypeForTypeTag()
1250 if ("work".equals(type)) { in buildEditTypeForTypeTag()
1253 if ("fax_work".equals(type)) { in buildEditTypeForTypeTag()
1256 if ("fax_home".equals(type)) { in buildEditTypeForTypeTag()
1259 if ("pager".equals(type)) { in buildEditTypeForTypeTag()
1262 if ("other".equals(type)) { in buildEditTypeForTypeTag()
1265 if ("callback".equals(type)) { in buildEditTypeForTypeTag()
[all …]
DExternalAccountType.java357 if (!TAG_CONTACTS_ACCOUNT_TYPE.equals(rootTag) in inflate()
358 && !TAG_CONTACTS_SOURCE_LEGACY.equals(rootTag)) { in inflate()
372 if (ATTR_EDIT_CONTACT_ACTIVITY.equals(attr)) { in inflate()
374 } else if (ATTR_CREATE_CONTACT_ACTIVITY.equals(attr)) { in inflate()
376 } else if (ATTR_INVITE_CONTACT_ACTIVITY.equals(attr)) { in inflate()
378 } else if (ATTR_INVITE_CONTACT_ACTION_LABEL.equals(attr)) { in inflate()
380 } else if (ATTR_VIEW_CONTACT_NOTIFY_SERVICE.equals(attr)) { in inflate()
382 } else if (ATTR_VIEW_GROUP_ACTIVITY.equals(attr)) { in inflate()
384 } else if (ATTR_VIEW_GROUP_ACTION_LABEL.equals(attr)) { in inflate()
386 } else if (ATTR_DATA_SET.equals(attr)) { in inflate()
[all …]
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DProgramInfo.java186 if (!GEN_TITLE.equals(title) in build()
188 && !GEN_POSTER.equals(posterArtUri) in build()
190 && !GEN_GENRE.equals(genre)) { in build()
194 GEN_TITLE.equals(title) ? "Title(" + index + ")" : title, in build()
195 GEN_EPISODE.equals(episode) ? "Episode(" + index + ")" : episode, in build()
198 GEN_POSTER.equals(posterArtUri) in build()
205 GEN_GENRE.equals(genre) ? GENRES[index % GENRES.length] : genre, in build()
217 public boolean equals(Object o) { in equals() method in ProgramInfo
225 return Objects.equals(seasonNumber, that.seasonNumber) && in equals()
226 Objects.equals(episodeNumber, that.episodeNumber) && in equals()
[all …]
DChannelInfo.java159 public boolean equals(Object o) { in equals() method in ChannelInfo
167 return Objects.equals(originalNetworkId, that.originalNetworkId) && in equals()
168 Objects.equals(videoWidth, that.videoWidth) && in equals()
169 Objects.equals(videoHeight, that.videoHeight) && in equals()
170 Objects.equals(audioChannel, that.audioChannel) && in equals()
171 Objects.equals(audioLanguageCount, that.audioLanguageCount) && in equals()
172 Objects.equals(hasClosedCaption, that.hasClosedCaption) && in equals()
173 Objects.equals(appLinkColor, that.appLinkColor) && in equals()
174 Objects.equals(number, that.number) && in equals()
175 Objects.equals(name, that.name) && in equals()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/utils/
DXmlUtils.java39 if (parser.getName().equals(endTag)) { in readThisArrayMapXml()
75 if (parser.getName().equals(endTag)) { in readThisListXml()
106 if (parser.getName().equals("item")) { in readThisStringArrayXml()
118 if (parser.getName().equals(endTag)) { in readThisStringArrayXml()
120 } else if (parser.getName().equals("item")) { in readThisStringArrayXml()
141 if (tagName.equals("null")) { in readThisValueXml()
143 } else if (tagName.equals("string")) { in readThisValueXml()
148 if (parser.getName().equals("string")) { in readThisValueXml()
162 } else if (tagName.equals("string-array")) { in readThisValueXml()
166 } else if (tagName.equals("list")) { in readThisValueXml()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/usb/
DUsbDeviceHandlerResolver.java196 if (!aoapData && "manufacturer-name".equals(name)) { in read()
198 } else if (!aoapData && "product-name".equals(name)) { in read()
200 } else if (!aoapData && "serial-number".equals(name)) { in read()
202 } else if (aoapData && "manufacturer".equals(name)) { in read()
204 } else if (aoapData && "model".equals(name)) { in read()
206 } else if (aoapData && "description".equals(name)) { in read()
208 } else if (aoapData && "version".equals(name)) { in read()
210 } else if (aoapData && "uri".equals(name)) { in read()
212 } else if (aoapData && "serial".equals(name)) { in read()
214 } else if (aoapData && "service".equals(name)) { in read()
[all …]
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbDeviceHandlerResolver.java206 if (!aoapData && "manufacturer-name".equals(name)) { in read()
208 } else if (!aoapData && "product-name".equals(name)) { in read()
210 } else if (!aoapData && "serial-number".equals(name)) { in read()
212 } else if (aoapData && "manufacturer".equals(name)) { in read()
214 } else if (aoapData && "model".equals(name)) { in read()
216 } else if (aoapData && "description".equals(name)) { in read()
218 } else if (aoapData && "version".equals(name)) { in read()
220 } else if (aoapData && "uri".equals(name)) { in read()
222 } else if (aoapData && "serial".equals(name)) { in read()
224 } else if (aoapData && "service".equals(name)) { in read()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DDataItem.java61 if (GroupMembership.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
63 } else if (StructuredName.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
65 } else if (Phone.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
67 } else if (Email.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
69 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
71 } else if (Im.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
73 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
75 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
77 } else if (Note.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
79 } else if (Website.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/
DUtils.java74 if (modernGroup.equals(name)) { in isModernPermissionGroup()
93 final boolean isPlatformPermission = group.getDeclaringPackage().equals(OS_PKG); in shouldShowPermission()
157 return Manifest.permission_group.SMS.equals(group) in areGroupPermissionsIndividuallyControlled()
158 || Manifest.permission_group.PHONE.equals(group) in areGroupPermissionsIndividuallyControlled()
159 || Manifest.permission_group.CONTACTS.equals(group); in areGroupPermissionsIndividuallyControlled()
166 return Manifest.permission.READ_CONTACTS.equals(permission) in isPermissionIndividuallyControlled()
167 || Manifest.permission.WRITE_CONTACTS.equals(permission) in isPermissionIndividuallyControlled()
168 || Manifest.permission.SEND_SMS.equals(permission) in isPermissionIndividuallyControlled()
169 || Manifest.permission.RECEIVE_SMS.equals(permission) in isPermissionIndividuallyControlled()
170 || Manifest.permission.READ_SMS.equals(permission) in isPermissionIndividuallyControlled()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiStatusTest.java90 if (intent.getAction().equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
93 } else if (intent.getAction().equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
96 } else if (intent.getAction().equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
98 } else if (intent.getAction().equals(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION)) {
100 } else if (intent.getAction().equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) {
105 } else if (intent.getAction().equals(WifiManager.RSSI_CHANGED_ACTION)) {
107 } else if (intent.getAction().equals(WifiManager.NETWORK_IDS_CHANGED_ACTION)) {
201 if(SupplicantState.FOUR_WAY_HANDSHAKE.equals(supplicantState)) { in setSupplicantStateText()
203 } else if(SupplicantState.ASSOCIATED.equals(supplicantState)) { in setSupplicantStateText()
205 } else if(SupplicantState.ASSOCIATING.equals(supplicantState)) { in setSupplicantStateText()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DDataItem.java58 if (GroupMembership.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
60 } else if (StructuredName.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
62 } else if (Phone.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
64 } else if (Email.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
66 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
68 } else if (Im.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
70 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
72 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
74 } else if (Note.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
76 } else if (Website.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPhonebookEntry.java38 public boolean equals(Object o) { in equals() method in PhonebookEntry.Name
44 return (family == n.family || family != null && family.equals(n.family)) && in equals()
45 (given == n.given || given != null && given.equals(n.given)) && in equals()
46 (middle == n.middle || middle != null && middle.equals(n.middle)) && in equals()
47 (prefix == n.prefix || prefix != null && prefix.equals(n.prefix)) && in equals()
48 (suffix == n.suffix || suffix != null && suffix.equals(n.suffix)); in equals()
84 public boolean equals(Object o) { in equals() method in PhonebookEntry.Phone
90 return (number == p.number || number != null && number.equals(p.number)) in equals()
111 public boolean equals(Object object) { in equals() method in PhonebookEntry
113 return equals((PhonebookEntry) object); in equals()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DCommandInterceptor.java85 if ("qv".equals(tokens[0])) { in quickViewer()
93 } else if ("deqv".equals(tokens[0])) { in quickViewer()
102 if ("gs".equals(tokens[0])) { in gestureScale()
115 if ("jpd".equals(tokens[0])) { in jobProgressDialog()
128 if ("zip".equals(tokens[0])) { in archiveCreation()
141 if ("inspect".equals(tokens[0])) { in docInspector()
154 if ("docinfo".equals(tokens[0])) { in docDetails()
167 if ("page".equals(tokens[0])) { in forcePaging()
183 } else if ("deqv".equals(tokens[0])) { in forcePaging()
192 if (val == null || val.equals("0")) { in asBool()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachine.java316 mTargetDevice.equals(device) ) { in processMessage()
357 if ((mCurrentDevice != null) && mCurrentDevice.equals(device)) { in processConnectionEvent()
381 } else if (mTargetDevice != null && mTargetDevice.equals(device)) { in processConnectionEvent()
389 } else if (mIncomingDevice != null && mIncomingDevice.equals(device)) { in processConnectionEvent()
402 if ((mCurrentDevice != null) && mCurrentDevice.equals(device)) { in processConnectionEvent()
415 } else if (mTargetDevice != null && mTargetDevice.equals(device)) { in processConnectionEvent()
424 } else if (mIncomingDevice != null && mIncomingDevice.equals(device)) { in processConnectionEvent()
450 if ((mCurrentDevice != null) && mCurrentDevice.equals(device)) { in processConnectionEvent()
453 } else if (mTargetDevice != null && mTargetDevice.equals(device)) { in processConnectionEvent()
459 else if (mIncomingDevice != null && mIncomingDevice.equals(device)) { in processConnectionEvent()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java125 if (!"external".equals(volumeName)) return; in onMediaStoreInsert()
143 if (!"external".equals(volumeName)) return; in onMediaStoreDelete()
192 if (TYPE_IMAGE.equals(ident.type) && ident.id != -1) { in getUriForDocumentId()
195 } else if (TYPE_VIDEO.equals(ident.type) && ident.id != -1) { in getUriForDocumentId()
198 } else if (TYPE_AUDIO.equals(ident.type) && ident.id != -1) { in getUriForDocumentId()
238 if (TYPE_IMAGES_ROOT.equals(ident.type)) { in queryDocument()
241 } else if (TYPE_IMAGES_BUCKET.equals(ident.type)) { in queryDocument()
250 } else if (TYPE_IMAGE.equals(ident.type)) { in queryDocument()
259 } else if (TYPE_VIDEOS_ROOT.equals(ident.type)) { in queryDocument()
262 } else if (TYPE_VIDEOS_BUCKET.equals(ident.type)) { in queryDocument()
[all …]

12345678910>>...78