/packages/services/Car/car-lib/src/android/car/storagemonitoring/ |
D | UidIoRecord.java | 69 public UidIoRecord delta(IoStatsEntry other) { in delta() argument 70 if (uid != other.uid) { in delta() 75 foreground_rchar - other.foreground.bytesRead, in delta() 76 foreground_wchar - other.foreground.bytesWritten, in delta() 77 foreground_read_bytes - other.foreground.bytesReadFromStorage, in delta() 78 foreground_write_bytes - other.foreground.bytesWrittenToStorage, in delta() 79 foreground_fsync - other.foreground.fsyncCalls, in delta() 80 background_rchar - other.background.bytesRead, in delta() 81 background_wchar - other.background.bytesWritten, in delta() 82 background_read_bytes - other.background.bytesReadFromStorage, in delta() [all …]
|
D | IoStatsEntry.java | 152 public IoStatsEntry delta(IoStatsEntry other) { in delta() argument 153 if (uid != other.uid) { in delta() 157 runtimeMillis - other.runtimeMillis, in delta() 158 foreground.delta(other.foreground), background.delta(other.background)); in delta() 162 public boolean equals(Object other) { in equals() argument 163 if (other instanceof IoStatsEntry) { in equals() 164 IoStatsEntry uidIoStatEntry = (IoStatsEntry)other; in equals() 315 public Metrics delta(Metrics other) { in delta() argument 316 return new Metrics(bytesRead-other.bytesRead, in delta() 317 bytesWritten-other.bytesWritten, in delta() [all …]
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ChannelImpl.java | 277 ChannelImpl other = (ChannelImpl) o; in equals() local 279 return mId == other.mId in equals() 280 && TextUtils.equals(mInputId, other.mInputId) in equals() 281 && mIsPassthrough == other.mIsPassthrough; in equals() 329 public boolean hasSameReadOnlyInfo(Channel other) { in hasSameReadOnlyInfo() argument 330 return other != null in hasSameReadOnlyInfo() 331 && Objects.equals(mId, other.getId()) in hasSameReadOnlyInfo() 332 && Objects.equals(mPackageName, other.getPackageName()) in hasSameReadOnlyInfo() 333 && Objects.equals(mInputId, other.getInputId()) in hasSameReadOnlyInfo() 334 && Objects.equals(mType, other.getType()) in hasSameReadOnlyInfo() [all …]
|
D | PreviewProgramContent.java | 109 public void copyFrom(PreviewProgramContent other) { in copyFrom() argument 110 if (this == other) { in copyFrom() 113 mId = other.mId; in copyFrom() 114 mPreviewChannelId = other.mPreviewChannelId; in copyFrom() 115 mType = other.mType; in copyFrom() 116 mLive = other.mLive; in copyFrom() 117 mTitle = other.mTitle; in copyFrom() 118 mDescription = other.mDescription; in copyFrom() 119 mPosterArtUri = other.mPosterArtUri; in copyFrom() 120 mIntentUri = other.mIntentUri; in copyFrom() [all …]
|
D | Program.java | 438 public boolean equals(Object other) { in equals() argument 439 if (!(other instanceof Program)) { in equals() 443 Program program = (Program) other; in equals() 466 public int compareTo(@NonNull Program other) { in compareTo() argument 467 return Long.compare(mStartTimeUtcMillis, other.mStartTimeUtcMillis); in compareTo() 593 public void copyFrom(Program other) { in copyFrom() argument 594 if (this == other) { in copyFrom() 598 mId = other.mId; in copyFrom() 599 mPackageName = other.mPackageName; in copyFrom() 600 mChannelId = other.mChannelId; in copyFrom() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/ |
D | CallFilteringResult.java | 84 public CallFilteringResult combine(CallFilteringResult other) { in combine() argument 85 if (other == null) { in combine() 90 return getCombinedCallFilteringResult(other, mCallBlockReason, in combine() 92 } else if (isBlockedByProvider(other.mCallBlockReason)) { in combine() 93 return getCombinedCallFilteringResult(other, other.mCallBlockReason, in combine() 98 || other.mCallBlockReason == Calls.BLOCK_REASON_DIRECT_TO_VOICEMAIL) { in combine() 99 return getCombinedCallFilteringResult(other, Calls.BLOCK_REASON_DIRECT_TO_VOICEMAIL, in combine() 104 return getCombinedCallFilteringResult(other, Calls.BLOCK_REASON_CALL_SCREENING_SERVICE, in combine() 106 } else if (other.shouldReject && other.mCallBlockReason == CallLog.Calls in combine() 108 return getCombinedCallFilteringResult(other, Calls.BLOCK_REASON_CALL_SCREENING_SERVICE, in combine() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapAccountItem.java | 97 public int compareTo(BluetoothMapAccountItem other) { in compareTo() argument 99 if (!other.mId.equals(this.mId)) { in compareTo() 101 Log.d(TAG, "Wrong id : " + this.mId + " vs " + other.mId); in compareTo() 105 if (!other.mName.equals(this.mName)) { in compareTo() 107 Log.d(TAG, "Wrong name : " + this.mName + " vs " + other.mName); in compareTo() 111 if (!other.mPackageName.equals(this.mPackageName)) { in compareTo() 114 "Wrong packageName : " + this.mPackageName + " vs " + other.mPackageName); in compareTo() 118 if (!other.mProviderAuthority.equals(this.mProviderAuthority)) { in compareTo() 121 + other.mProviderAuthority); in compareTo() 125 if (other.mIsChecked != this.mIsChecked) { in compareTo() [all …]
|
D | BluetoothMapConvoContactElement.java | 293 BluetoothMapConvoContactElement other = (BluetoothMapConvoContactElement) obj; in equals() local 302 if (mChatState != other.mChatState) { in equals() 306 if (other.mDisplayName != null) { in equals() 309 } else if (!mDisplayName.equals(other.mDisplayName)) { in equals() 320 if (mLastActivity != other.mLastActivity) { in equals() 324 if (other.mName != null) { in equals() 327 } else if (!mName.equals(other.mName)) { in equals() 330 if (mPresenceAvailability != other.mPresenceAvailability) { in equals() 334 if (other.mPresenceStatus != null) { in equals() 337 } else if (!mPresenceStatus.equals(other.mPresenceStatus)) { in equals() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SuggestionData.java | 248 SuggestionData other = (SuggestionData)obj; in equals() 250 if (other.mFormat != null) in equals() 252 } else if (!mFormat.equals(other.mFormat)) in equals() 255 if (other.mIcon1 != null) in equals() 257 } else if (!mIcon1.equals(other.mIcon1)) in equals() 260 if (other.mIcon2 != null) in equals() 262 } else if (!mIcon2.equals(other.mIcon2)) in equals() 265 if (other.mIntentAction != null) in equals() 267 } else if (!mIntentAction.equals(other.mIntentAction)) in equals() 270 if (other.mIntentData != null) in equals() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardId.java | 125 private boolean equals(final KeyboardId other) { in equals() argument 126 if (other == this) in equals() 128 return other.mElementId == mElementId in equals() 129 && other.mMode == mMode in equals() 130 && other.mWidth == mWidth in equals() 131 && other.mHeight == mHeight in equals() 132 && other.passwordInput() == passwordInput() in equals() 133 && other.mClobberSettingsKey == mClobberSettingsKey in equals() 134 && other.mHasShortcutKey == mHasShortcutKey in equals() 135 && other.mLanguageSwitchKeyEnabled == mLanguageSwitchKeyEnabled in equals() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/ |
D | ContactInfo.java | 95 ContactInfo other = (ContactInfo) obj; in equals() local 96 if (!UriUtils.areEqual(lookupUri, other.lookupUri)) { in equals() 99 if (!TextUtils.equals(name, other.name)) { in equals() 102 if (!TextUtils.equals(nameAlternative, other.nameAlternative)) { in equals() 105 if (type != other.type) { in equals() 108 if (!TextUtils.equals(label, other.label)) { in equals() 111 if (!TextUtils.equals(number, other.number)) { in equals() 114 if (!TextUtils.equals(formattedNumber, other.formattedNumber)) { in equals() 117 if (!TextUtils.equals(normalizedNumber, other.normalizedNumber)) { in equals() 120 if (photoId != other.photoId) { in equals() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Account.java | 711 final Account other = (Account) o; in equals() local 712 return TextUtils.equals(displayName, other.displayName) && in equals() 713 TextUtils.equals(senderName, other.senderName) && in equals() 714 TextUtils.equals(accountManagerName, other.accountManagerName) && in equals() 715 TextUtils.equals(accountId, other.accountId) && in equals() 716 TextUtils.equals(type, other.type) && in equals() 717 capabilities == other.capabilities && in equals() 718 providerVersion == other.providerVersion && in equals() 719 Objects.equal(uri, other.uri) && in equals() 720 Objects.equal(folderListUri, other.folderListUri) && in equals() [all …]
|
D | Conversation.java | 314 public Conversation(Conversation other) { in Conversation() argument 315 if (other == null) { in Conversation() 319 id = other.id; in Conversation() 320 uri = other.uri; in Conversation() 321 dateMs = other.dateMs; in Conversation() 322 subject = other.subject; in Conversation() 323 hasAttachments = other.hasAttachments; in Conversation() 324 messageListUri = other.messageListUri; in Conversation() 325 sendingState = other.sendingState; in Conversation() 326 priority = other.priority; in Conversation() [all …]
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | CharMatcher.java | 293 @Override public CharMatcher and(CharMatcher other) { 294 return checkNotNull(other); 296 @Override public CharMatcher or(CharMatcher other) { 297 checkNotNull(other); 357 @Override public CharMatcher and(CharMatcher other) { 358 checkNotNull(other); 361 @Override public CharMatcher or(CharMatcher other) { 362 return checkNotNull(other); 389 @Override public CharMatcher and(CharMatcher other) { in is() argument 390 return other.matches(match) ? this : NONE; in is() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetModel.java | 148 EventInfo other = (EventInfo) obj; in equals() 149 if (id != other.id) in equals() 151 if (allDay != other.allDay) in equals() 153 if (end != other.end) in equals() 155 if (start != other.start) in equals() 158 if (other.title != null) in equals() 160 } else if (!title.equals(other.title)) in equals() 162 if (visibTitle != other.visibTitle) in equals() 164 if (visibWhen != other.visibWhen) in equals() 166 if (visibWhere != other.visibWhere) in equals() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/ |
D | ContactInfoRequest.java | 82 ContactInfoRequest other = (ContactInfoRequest) obj; in equals() local 84 if (!TextUtils.equals(number, other.number)) { in equals() 87 if (!TextUtils.equals(countryIso, other.countryIso)) { in equals() 90 if (!Objects.equals(callLogInfo, other.callLogInfo)) { in equals() 94 if (type != other.type) { in equals() 111 public int compareTo(ContactInfoRequest other) { in compareTo() argument 113 if (isLocalRequest() && !other.isLocalRequest()) { in compareTo() 116 if (!isLocalRequest() && other.isLocalRequest()) { in compareTo() 120 return sequenceNumber < other.sequenceNumber ? -1 : 1; in compareTo()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | SimCard.java | 57 public SimCard(SimCard other) { in SimCard() argument 58 mSimId = other.mSimId; in SimCard() 59 mSubscriptionId = other.mSubscriptionId; in SimCard() 60 mCarrierName = other.mCarrierName; in SimCard() 61 mDisplayName = other.mDisplayName; in SimCard() 62 mPhoneNumber = other.mPhoneNumber; in SimCard() 63 mCountryCode = other.mCountryCode; in SimCard() 64 mDismissed = other.mDismissed; in SimCard() 65 mImported = other.mImported; in SimCard() 66 if (other.mContacts != null) { in SimCard() [all …]
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/ |
D | ChannelInfo.java | 238 public Builder(ChannelInfo other) { in Builder() argument 239 mNumber = other.number; in Builder() 240 mName = other.name; in Builder() 241 mLogoUrl = other.name; in Builder() 242 mOriginalNetworkId = other.originalNetworkId; in Builder() 243 mVideoWidth = other.videoWidth; in Builder() 244 mVideoHeight = other.videoHeight; in Builder() 245 mVideoPixelAspectRatio = other.videoPixelAspectRatio; in Builder() 246 mAudioChannel = other.audioChannel; in Builder() 247 mAudioLanguageCount = other.audioLanguageCount; in Builder() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | Analytics.java | 255 CallInfoImpl(CallInfoImpl other) { in CallInfoImpl() argument 256 this.callId = other.callId; in CallInfoImpl() 257 this.startTime = other.startTime; in CallInfoImpl() 258 this.endTime = other.endTime; in CallInfoImpl() 259 this.callDirection = other.callDirection; in CallInfoImpl() 260 this.isAdditionalCall = other.isAdditionalCall; in CallInfoImpl() 261 this.isInterrupted = other.isInterrupted; in CallInfoImpl() 262 this.callTechnologies = other.callTechnologies; in CallInfoImpl() 263 this.createdFromExistingConnection = other.createdFromExistingConnection; in CallInfoImpl() 264 this.connectionService = other.connectionService; in CallInfoImpl() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | SimpleDate.java | 79 SimpleDate other = (SimpleDate) obj; in equals() local 80 if (year != other.year) { in equals() 83 if (month != other.month) { in equals() 86 if (day != other.day) { in equals() 93 public int compareTo(SimpleDate other) { in compareTo() argument 94 int yearDiff = this.year - other.getYear(); in compareTo() 98 int monthDiff = this.month - other.getMonth(); in compareTo() 102 return this.day - other.getDay(); in compareTo()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | AspectRatio.java | 139 public AspectRatio withOrientationOf(AspectRatio other) { in withOrientationOf() argument 140 if (other.isPortrait()) { in withOrientationOf() 150 public boolean isWiderThan(AspectRatio other) { in isWiderThan() argument 154 return this.mWidth * other.mHeight > other.mWidth * this.mHeight; in isWiderThan() 160 public boolean isTallerThan(AspectRatio other) { in isTallerThan() argument 164 return this.mWidth * other.mHeight < other.mWidth * this.mHeight; in isTallerThan()
|
/packages/services/Car/car-lib/src/android/car/content/pm/ |
D | AppBlockingPackageInfo.java | 183 AppBlockingPackageInfo other = (AppBlockingPackageInfo) obj; in equals() local 184 if (!Arrays.equals(activities, other.activities)) { in equals() 187 if (flags != other.flags) { in equals() 190 if (maxRevisionCode != other.maxRevisionCode) { in equals() 193 if (minRevisionCode != other.minRevisionCode) { in equals() 197 if (other.packageName != null) in equals() 199 } else if (!packageName.equals(other.packageName)) in equals() 201 if (!Arrays.equals(signatures, other.signatures)) { in equals()
|
/packages/services/Car/car-lib/src/android/car/drivingstate/ |
D | CarUxRestrictionsConfiguration.java | 460 CarUxRestrictionsConfiguration other = (CarUxRestrictionsConfiguration) obj; in equals() local 462 return mPhysicalPort == other.mPhysicalPort in equals() 463 && hasSameParameters(other) in equals() 464 && mBaselineUxRestrictions.equals(other.mBaselineUxRestrictions) in equals() 465 && mPassengerUxRestrictions.equals(other.mPassengerUxRestrictions); in equals() 471 public boolean hasSameParameters(CarUxRestrictionsConfiguration other) { in hasSameParameters() argument 472 return mMaxContentDepth == other.mMaxContentDepth in hasSameParameters() 473 && mMaxCumulativeContentItems == other.mMaxCumulativeContentItems in hasSameParameters() 474 && mMaxStringLength == other.mMaxStringLength; in hasSameParameters() 923 public int compareTo(SpeedRange other) { in compareTo() argument [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortDimension.java | 142 SortDimension other = (SortDimension) o; in equals() local 144 return mId == other.mId in equals() 145 && mLabelId == other.mLabelId in equals() 146 && mDataType == other.mDataType in equals() 147 && mSortCapability == other.mSortCapability in equals() 148 && mDefaultSortDirection == other.mDefaultSortDirection in equals() 149 && mSortDirection == other.mSortDirection in equals() 150 && mVisibility == other.mVisibility; in equals()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | DetailsContent.java | 199 public void copyFrom(DetailsContent other) { in copyFrom() argument 200 if (this == other) { in copyFrom() 203 mTitle = other.mTitle; in copyFrom() 204 mStartTimeUtcMillis = other.mStartTimeUtcMillis; in copyFrom() 205 mEndTimeUtcMillis = other.mEndTimeUtcMillis; in copyFrom() 206 mDescription = other.mDescription; in copyFrom() 207 mLogoImageUri = other.mLogoImageUri; in copyFrom() 208 mBackgroundImageUri = other.mBackgroundImageUri; in copyFrom() 209 mUsingChannelLogo = other.mUsingChannelLogo; in copyFrom() 210 mShowErrorMessage = other.mShowErrorMessage; in copyFrom()
|