Home
last modified time | relevance | path

Searched refs:that (Results 1 – 25 of 787) sorted by relevance

12345678910>>...32

/packages/modules/StatsD/framework/test/unittests/src/android/util/
DStatsEventTest.java54 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_OBJECT); in testNoFields()
57 .that(buffer.get()).isEqualTo(3); in testNoFields()
60 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_LONG); in testNoFields()
63 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testNoFields()
66 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_INT); in testNoFields()
69 .that(buffer.getInt()).isEqualTo(expectedAtomId); in testNoFields()
72 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_ERRORS); in testNoFields()
77 .that(errorMask).isEqualTo(StatsEvent.ERROR_NO_ATOM_ID); in testNoFields()
101 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_OBJECT); in testOnlyAtomId()
104 .that(buffer.get()).isEqualTo(2); in testOnlyAtomId()
[all …]
/packages/modules/StatsD/statsd/src/
DFieldValue.cpp208 bool Value::operator==(const Value& that) const { in operator ==()
209 if (type != that.getType()) return false; in operator ==()
213 return int_value == that.int_value; in operator ==()
215 return long_value == that.long_value; in operator ==()
217 return float_value == that.float_value; in operator ==()
219 return double_value == that.double_value; in operator ==()
221 return str_value == that.str_value; in operator ==()
223 return storage_value == that.storage_value; in operator ==()
229 bool Value::operator!=(const Value& that) const { in operator !=()
230 if (type != that.getType()) return true; in operator !=()
[all …]
DFieldValue.h168 inline bool operator==(const Field& that) const {
169 return mTag == that.getTag() && mField == that.getField();
172 inline bool operator!=(const Field& that) const {
173 return mTag != that.getTag() || mField != that.getField();
176 bool operator<(const Field& that) const {
177 if (mTag != that.getTag()) {
178 return mTag < that.getTag();
181 if (mField != that.getField()) {
182 return mField < that.getField();
188 bool matches(const Matcher& that) const;
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioContextTest.java136 .that(TEST_CAR_AUDIO_CONTEXT.getContextForAttributes(attributes)) in getContextForAudioAttributes_forAttributeWithValidUsage_returnsContext()
143 .that(TEST_CAR_AUDIO_CONTEXT.getContextForAttributes(TEST_INVALID_ATTRIBUTE)) in getContextForAudioAttributes_forAttributesWithInvalidUsage_returnsInvalidContext()
152 .that(attributes).asList().containsExactly(UNKNOWN_USAGE_ATTRIBUTE, in getAudioAttributesForContext_withValidContext_returnsAttributes()
162 assertWithMessage("Invalid context exception").that(thrown) in getAudioAttributesForContext_withInvalidContext_throws()
178 .that(allUsages.addAll(attributesWrappers)).isTrue(); in getAudioAttributesForContext_returnsUniqueValuesForAllContexts()
187 assertWithMessage("Empty unique context list").that(result).isEmpty(); in getUniqueContextsForAudioAttribute_withEmptyArray_returnsEmptySet()
200 .that(result).isEmpty(); in getUniqueContextsForAudioAttribute_withInvalidElement_returnsEmptySet()
210 .that(thrown).hasMessageThat().contains("can not be null"); in getUniqueContextsForAudioAttribute_withNullArray_fails()
223 .that(result).containsExactly(TEST_MEDIA_CONTEXT); in getUniqueContextsForAudioAttributes_withMultipleAttributes_filtersDupContexts()
237 .that(result).containsExactly(TEST_MEDIA_CONTEXT, in getUniqueContextsForAudioAttributes_withDiffAttributes_returnsAllUniqueContexts()
[all …]
DCarVolumeGroupUnitTest.java123 .that(carVolumeGroup.getAddresses()).containsExactly(MEDIA_DEVICE_ADDRESS, in setDeviceInfoForContext_associatesDeviceAddresses()
137 .that(carVolumeGroup.getContexts()).asList() in setDeviceInfoForContext_associatesContexts()
155 .that(thrown).hasMessageThat() in setDeviceInfoForContext_withDifferentStepSize_throws()
169 .that(thrown).hasMessageThat().contains("has already been set to"); in setDeviceInfoForContext_withSameContext_throws()
179 .that(builder.mMinGain).isEqualTo(mMediaDeviceInfo.getMinGain()); in setDeviceInfoForContext_withFirstCall_setsMinGain()
189 .that(builder.mMaxGain).isEqualTo(mMediaDeviceInfo.getMaxGain()); in setDeviceInfoForContext_withFirstCall_setsMaxGain()
199 .that(builder.mDefaultGain).isEqualTo(mMediaDeviceInfo.getDefaultGain()); in setDeviceInfoForContext_withFirstCall_setsDefaultGain()
212 .that(builder.mMinGain).isEqualTo(secondInfo.getMinGain()); in setDeviceInfoForContext_SecondCallWithSmallerMinGain_updatesMinGain()
225 .that(builder.mMinGain).isEqualTo(mMediaDeviceInfo.getMinGain()); in setDeviceInfoForContext_SecondCallWithLargerMinGain_keepsFirstMinGain()
238 .that(builder.mMaxGain).isEqualTo(secondInfo.getMaxGain()); in setDeviceInfoForContext_SecondCallWithLargerMaxGain_updatesMaxGain()
[all …]
DCarAudioServiceUnitTest.java356 .that(thrown).hasMessageThat().contains("Context"); in constructor_withNullContext_fails()
366 .that(thrown).hasMessageThat().contains("Context"); in constructor_withNullContextAndNullPath_fails()
378 .that(thrown).hasMessageThat() in constructor_withInvalidVolumeConfiguration_fails()
387 .that(mCarAudioService.getAudioZoneIds()) in getAudioZoneIds_withBaseConfiguration_returnAllTheZones()
396 .that(mCarAudioService.getVolumeGroupCount(PRIMARY_AUDIO_ZONE)) in getVolumeGroupCount_onPrimaryZone_returnsAllGroups()
410 .that(nonDynamicAudioService.getVolumeGroupCount(PRIMARY_AUDIO_ZONE)) in getVolumeGroupCount_onPrimaryZone__withNonDynamicRouting_returnsAllGroups()
419 .that(mCarAudioService.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, USAGE_MEDIA)) in getVolumeGroupIdForUsage_forMusicUsage()
433 .that(nonDynamicAudioService.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, in getVolumeGroupIdForUsage_withNonDynamicRouting_forMusicUsage()
442 .that(mCarAudioService.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, in getVolumeGroupIdForUsage_forNavigationUsage()
457 .that(nonDynamicAudioService.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, in getVolumeGroupIdForUsage_withNonDynamicRouting_forNavigationUsage()
[all …]
DCarAudioGainConfigInfoTest.java44 .that(carGainInfo.getAudioGainConfigInfo()) in constructor_succeeds()
47 .that(carGainInfo.getZoneId()) in constructor_succeeds()
50 .that(carGainInfo.getDeviceAddress()) in constructor_succeeds()
53 .that(carGainInfo.getVolumeIndex()) in constructor_succeeds()
55 assertWithMessage("Audio Gain Config Literal").that(carGainInfo.toString()).isNotNull(); in constructor_succeeds()
67 assertWithMessage("Audio Gain Configs").that(carGainInfo1 == carGainInfo2).isFalse(); in equals_succeeds()
68 assertWithMessage("Audio Gain Configs").that(carGainInfo1.equals(carGainInfo2)).isTrue(); in equals_succeeds()
69 assertWithMessage("Audio Gain Configs").that(carGainInfo1).isEqualTo(carGainInfo2); in equals_succeeds()
86 assertWithMessage("Audio Gain Configs").that(carGainInfo1.equals(carGainInfo2)).isFalse(); in equals_fails()
87 assertWithMessage("Audio Gain Configs").that(carGainInfo1).isNotEqualTo(carGainInfo2); in equals_fails()
[all …]
DCarAudioDeviceInfoTest.java62 .that(thrown).hasMessageThat().contains("Audio device port"); in constructor_requiresNonNullGain()
75 .that(thrown).hasMessageThat().contains("audio gain"); in constructor_requiresJointModeGain()
88 .that(thrown).hasMessageThat().contains("lower than"); in constructor_requiresMaxGainLargerThanMin()
102 .that(thrown).hasMessageThat().contains("not in range"); in constructor_requiresDefaultGainLargerThanMin()
116 .that(thrown).hasMessageThat().contains("not in range"); in constructor_requiresDefaultGainSmallerThanMax()
129 .that(thrown).hasMessageThat().contains("greater than min gain to max gain range"); in constructor_requiresGainStepSizeFactorOfRange()
141 assertWithMessage("Constructor exception").that(thrown).hasMessageThat() in constructor_requiresGainStepSizeFactorOfRangeToDefault()
154 assertWithMessage("Sample rate").that(sampleRate).isEqualTo(96000); in getSampleRate_withMultipleSampleRates_returnsMax()
165 assertWithMessage("Sample Rate").that(sampleRate).isEqualTo(DEFAULT_SAMPLE_RATE); in getSampleRate_withNullSampleRate_returnsDefault()
173 assertWithMessage("Device Info Address").that(info.getAddress()).isEqualTo(TEST_ADDRESS); in getAddress_returnsValueFromDeviceInfo()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/security/
DPasswordHelperTest.java99 .that(passwordHelper.validate(password, mExistingCredential)).isFalse(); in passwordComplexityNone_shortSequentialPassword_invalid()
101 .that(passwordHelper.validateSetupWizard(SHORT_SEQUENTIAL_PASSWORD.getBytes())) in passwordComplexityNone_shortSequentialPassword_invalid()
107 .that(passwordHelper.validateSetupWizardAndReturnError( in passwordComplexityNone_shortSequentialPassword_invalid()
113 assertWithMessage(ERROR_MESSAGE).that(messages).containsExactly(expectedError); in passwordComplexityNone_shortSequentialPassword_invalid()
124 .that(passwordHelper.validate(password, mExistingCredential)).isTrue(); in passwordComplexityNone_mediumSequentialPassword_valid()
126 .that(passwordHelper.validateSetupWizard(MEDIUM_SEQUENTIAL_PASSWORD.getBytes())) in passwordComplexityNone_mediumSequentialPassword_valid()
132 .that(noErrorMessage) in passwordComplexityNone_mediumSequentialPassword_valid()
144 .that(passwordHelper.validate(password, mExistingCredential)).isFalse(); in passwordComplexityLow_shortSequentialPassword_invalid()
146 .that(passwordHelper.validateSetupWizard(SHORT_SEQUENTIAL_PASSWORD.getBytes())) in passwordComplexityLow_shortSequentialPassword_invalid()
152 .that(passwordHelper.validateSetupWizardAndReturnError( in passwordComplexityLow_shortSequentialPassword_invalid()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DMatrix.java60 public Matrix(Matrix that) { in Matrix() argument
61 n = that.n; in Matrix()
62 m = that.m; in Matrix()
63 mem = new double[that.mem.length]; in Matrix()
65 mem[i] = that.mem[i]; in Matrix()
102 public Matrix plus(Matrix that) { in plus() argument
103 return plus(that, new Matrix(n, m)); in plus()
115 public Matrix plus(Matrix that, Matrix result) { in plus() argument
116 if (!(this.n == that.n && this.m == that.m && this.n == result.n && this.m == result.m)) { in plus()
120 result.mem[i] = this.mem[i] + that.mem[i]; in plus()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenRuleInfo.java12 ZenRuleInfo that = (ZenRuleInfo) o; in equals()
14 if (isSystem != that.isSystem) return false; in equals()
15 if (ruleInstanceLimit != that.ruleInstanceLimit) return false; in equals()
16 if (packageName != null ? !packageName.equals(that.packageName) : that.packageName != null) in equals()
18 if (title != null ? !title.equals(that.title) : that.title != null) return false; in equals()
20 that.settingsAction) : that.settingsAction != null) return false; in equals()
22 that.configurationActivity) : that.configurationActivity != null) return false; in equals()
24 that.defaultConditionId) : that.defaultConditionId != null) return false; in equals()
26 that.serviceComponent) : that.serviceComponent != null) return false; in equals()
27 if (id != null ? !id.equals(that.id) : that.id != null) in equals()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DPowerHalServiceTest.java33 .that(powerState.canPostponeShutdown()).isTrue(); in testCanPostponeShutdown()
37 .that(powerState.canPostponeShutdown()).isFalse(); in testCanPostponeShutdown()
41 .that(powerState.canPostponeShutdown()).isTrue(); in testCanPostponeShutdown()
45 .that(powerState.canPostponeShutdown()).isFalse(); in testCanPostponeShutdown()
49 .that(powerState.canPostponeShutdown()).isFalse(); in testCanPostponeShutdown()
53 .that(powerState.canPostponeShutdown()).isTrue(); in testCanPostponeShutdown()
66 .that(powerState.canSuspend()).isTrue(); in testCanSuspend()
70 .that(powerState.canSuspend()).isTrue(); in testCanSuspend()
74 .that(powerState.canSuspend()).isTrue(); in testCanSuspend()
78 .that(powerState.canSuspend()).isTrue(); in testCanSuspend()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/media/
DCarVolumeGroupInfoUnitTest.java61 .that(info.getZoneId()).isEqualTo(TEST_ZONE_ID); in build_buildsGroupInfo()
63 .that(info.getId()).isEqualTo(TEST_PRIMARY_GROUP_ID); in build_buildsGroupInfo()
65 .that(info.getName()).isEqualTo(TEST_GROUP_NAME); in build_buildsGroupInfo()
76 .that(thrown).hasMessageThat().contains("Volume info name"); in build_withNullName_fails()
84 .that(info.getVolumeGainIndex()).isEqualTo(9_001); in setVolumeGainIndex_buildsGroupInfo()
92 .that(info.getMinVolumeGainIndex()).isEqualTo(10); in setMinVolumeGainIndex_buildsGroupInfo()
100 .that(info.getMaxVolumeGainIndex()).isEqualTo(9_002); in setMaxVolumeGainIndex_buildsGroupInfo()
113 .that(thrown).hasMessageThat().contains("must be smaller than max"); in setMaxVolumeGainIndex_withMinLargerThanMax_buildFails()
126 .that(thrown).hasMessageThat().contains("out of range"); in setVolumeGainIndex_withGainOutOfMinMaxRange_buildFails()
134 .that(info.isMuted()).isTrue(); in setMuted_buildsGroupInfo()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DWatchdogStorageUnitTest.java89 assertWithMessage("Start write on clean db").that(mService.startWrite()).isFalse(); in testStartWrite()
93 assertWithMessage("Start write on a dirty DB").that(mService.startWrite()).isTrue(); in testStartWrite()
98 assertWithMessage("Start write again").that(mService.startWrite()).isFalse(); in testStartWrite()
105 assertWithMessage("Start database write").that(mService.startWrite()).isTrue(); in testStartWriteAndMarkDirty()
111 assertWithMessage("Start write again").that(mService.startWrite()).isTrue(); in testStartWriteAndMarkDirty()
118 assertWithMessage("Start database write").that(mService.startWrite()).isTrue(); in testStartWriteTwice()
119 assertWithMessage("Start database write twice").that(mService.startWrite()) in testStartWriteTwice()
133 assertWithMessage("Start database write").that(mService.startWrite()).isTrue(); in testMarkSuccessfulWriteWithNoWriteInProgress()
142 assertWithMessage("User package settings").that(mService.getUserPackageSettings()) in testSaveUserPackageSettings()
165 .that(mService.getUserPackageSettings()).containsExactlyElementsIn(expected); in testOverwriteUserPackageSettings()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
DLedConfiguration.java55 public LedConfiguration(LedConfiguration that) { in LedConfiguration() argument
56 this.color0 = that.color0; in LedConfiguration()
57 this.color1 = that.color1; in LedConfiguration()
58 this.pulse = that.pulse; in LedConfiguration()
66 final LedConfiguration that = (LedConfiguration)o; in equals() local
67 return areColorsEqual(that) in equals()
68 && this.pulse == that.pulse in equals()
69 && this.isTransient == that.isTransient; in equals()
72 public boolean areColorsEqual(LedConfiguration that) { in areColorsEqual() argument
73 if (that == null) { in areColorsEqual()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settingslib/enterprise/
DEnterprisePrivacyFeatureProviderImplTest.java57 .that(mProvider.getLastBugReportRequestTime()).isNull(); in testGetLastBugReportRequestTime_none()
66 assertWithMessage("getLastBugReportRequestTime()").that(last).isNotNull(); in testGetLastBugReportRequestTime_ok()
67 assertWithMessage("getLastBugReportRequestTime().getTime()").that(last.getTime()) in testGetLastBugReportRequestTime_ok()
76 .that(mProvider.getLastNetworkLogRetrievalTime()).isNull(); in testGetLastNetworkLogRetrievalTime_none()
85 assertWithMessage("getLastNetworkLogRetrievalTime()").that(last).isNotNull(); in testGetLastNetworkLogRetrievalTime_ok()
86 assertWithMessage("getLastNetworkLogRetrievalTime().getTime()").that(last.getTime()) in testGetLastNetworkLogRetrievalTime_ok()
95 .that(mProvider.getLastSecurityLogRetrievalTime()).isNull(); in testGetLastSecurityLogRetrievalTime_none()
104 assertWithMessage("getLastSecurityLogRetrievalTime()").that(last).isNotNull(); in testGetLastSecurityLogRetrievalTime_ok()
105 assertWithMessage("getLastSecurityLogRetrievalTime().getTime()").that(last.getTime()) in testGetLastSecurityLogRetrievalTime_ok()
113 assertWithMessage("getImeLabelIfOwnerSet()").that(mProvider.getImeLabelIfOwnerSet()) in testGetImeLabelIfOwnerSet_notSet()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/oem/
DOemCarAudioFocusEvaluationRequestUnitTest.java67 expectWithMessage("Audio focus request").that(request.getAudioFocusRequest()) in build()
69 expectWithMessage("Audio focus losers").that(request.getFocusLosers()) in build()
71 expectWithMessage("Audio focus holders").that(request.getFocusHolders()) in build()
73 expectWithMessage("Muted audio volume groups").that(request.getMutedVolumeGroups()) in build()
75 expectWithMessage("Request audio zone").that(request.getAudioZoneId()) in build()
86 .that(new OemCarAudioFocusEvaluationRequest(parcel)).isEqualTo(request); in writeToParcel()
95 .that(OemCarAudioFocusEvaluationRequest.CREATOR.createFromParcel(parcel)) in createFromParcel()
124 .that(thrown).hasMessageThat().contains("should not be reused"); in builder_withReuse_fails()
141 .that(nullFocusRequest).isEqualTo(request); in builder_withNullFocusRequest_succeeds()
143 .that(request.getAudioFocusRequest()).isNull(); in builder_withNullFocusRequest_succeeds()
[all …]
DAudioFocusEntryUnitTest.java49 expectWithMessage("Audio focus info from builder").that(entry.getAudioFocusInfo()) in build()
51 expectWithMessage("Audio context from builder").that(entry.getAudioContextId()) in build()
53 expectWithMessage("Volume group id from builder").that(entry.getAudioVolumeGroupId()) in build()
55 expectWithMessage("Audio focus results from builder").that(entry.getAudioFocusResult()) in build()
66 .that(new AudioFocusEntry(parcel)).isEqualTo(entry); in writeToParcel()
76 .that(AudioFocusEntry.CREATOR.createFromParcel(parcel)).isEqualTo(entry); in createFromParcel()
87 expectWithMessage("Second audio focus entry from builder").that(entry.getAudioFocusInfo()) in setAudioFocusEntry()
100 .that(thrown).hasMessageThat().contains("Audio focus info"); in setAudioFocusEntry_withNullInfo_fails()
111 expectWithMessage("Set audio context from builder").that(entry.getAudioContextId()) in setAudioContextId()
123 .that(entry.getAudioVolumeGroupId()).isEqualTo(testVolumeGroupId); in setAudioVolumeGroupId()
[all …]
DOemCarAudioVolumeRequestUnitTest.java76 .that(request.getAudioZoneId()).isEqualTo(PRIMARY_AUDIO_ZONE); in build()
85 .that(request.getActivePlaybackAttributes()) in setActivePlaybackAttributes()
95 .that(request.getActivePlaybackAttributes()).containsExactly(TEST_MEDIA_ATTRIBUTE); in addActivePlaybackAttributes()
104 .that(request.getDuckedAudioAttributes()) in setDuckedAudioAttributes()
114 .that(request.getDuckedAudioAttributes()).containsExactly(TEST_MEDIA_ATTRIBUTE); in addDuckedAudioAttributes()
123 .that(request.getCarVolumeGroupInfos()).containsExactly(TEST_VOLUME_INFO); in setCarVolumeGroupInfos()
132 .that(request.getCarVolumeGroupInfos()).containsExactly(TEST_VOLUME_INFO_2); in addCarVolumeGroupInfos()
141 .that(request.getCallState()).isEqualTo(TelephonyManager.CALL_STATE_OFFHOOK); in setCallState()
153 .that(thrown).hasMessageThat().contains("should not be reused"); in builder_withReuse_fails()
164 .that(OemCarAudioVolumeRequest.CREATOR.createFromParcel(parcel)) in writeToParcel()
[all …]
DOemCarAudioFocusResultUnitTest.java55 expectWithMessage("Newly lost entries").that(result.getNewlyLostAudioFocusEntries()) in build()
58 .that(result.getNewlyBlockedAudioFocusEntries()) in build()
60 expectWithMessage("Evaluated focus entry").that(result.getAudioFocusEntry()) in build()
62 expectWithMessage("Evaluation results").that(result.getAudioFocusResult()) in build()
73 .that(OemCarAudioFocusResult.CREATOR.createFromParcel(parcel)).isEqualTo(result); in writeToParcel_thenCreateFromParcel()
89 expectWithMessage("Duplicate audio focus result").that(result1).isEqualTo(result2); in equals_withDuplicate()
106 .that(result1).isNotEqualTo(result2); in equals_withDifferentFocusEntry()
123 .that(result1.hashCode()).isEqualTo(result2.hashCode()); in hashCode_withDuplicate()
140 .that(thrown).hasMessageThat().contains("should not be reused"); in builder_withReuse_fails()
153 .that(thrown).hasMessageThat().contains("Focus entry"); in setAudioFocusEntry_withNullEntry_fails()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/sound/
DVolumeSeekBarPreferenceTest.java65 assertWithMessage("Constructor Exception").that(thrown).hasMessageThat() in constructor_failOnNullContext()
74 .that(mVolumeSeekBarPreference.getMutedIcon()).isEqualTo(mMockMutedIconDrawable); in setMutedIcon_succeedsInSettingMutedIcon()
82 .that(mVolumeSeekBarPreference.getUnMutedIcon()) in setUnMutedIcon_succeedsInSettingUnMutedIcon()
92 .that(mVolumeSeekBarPreference.getIcon()).isEqualTo(mMockUnMutedIconDrawable); in setMutedIcon_withDefaults_setsIconToUnMuted()
102 .that(mVolumeSeekBarPreference.getIcon()).isEqualTo(mMockMutedIconDrawable); in setMutedIcon_afterSetIsMuteToTrue_setsIconToMuted()
112 .that(mVolumeSeekBarPreference.getIcon()).isEqualTo(mMockMutedIconDrawable); in setMutedIcon_afterSetIsMuteToFalse_setsIconToUnMuted()
120 .that(mVolumeSeekBarPreference.isMuted()).isEqualTo(true); in setIsMuted_withMuted_succeeds()
128 .that(mVolumeSeekBarPreference.isMuted()).isEqualTo(false); in setIsMuted_withUnMuted_succeeds()
140 .that(mVolumeSeekBarPreference.getIcon()).isEqualTo(mMockMutedIconDrawable); in setIsMuted_withMutedState_changesIconToMutedIcon()
152 .that(mVolumeSeekBarPreference.getIcon()).isEqualTo(mMockUnMutedIconDrawable); in setIsMuted_withUnMutedState_changesIconToUnMutedIcon()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/
DApiCheckerRuleTest.java108 assertWithMessage("exception (%s) message", e).that(e).hasMessageThat() in failWhenTestMethodIsMissingAnnotations()
121 assertWithMessage("exception (%s) message", e).that(e).hasMessageThat() in failWhenTestMethodHasApiTestAnnotationButItsNull()
134 assertWithMessage("exception (%s) message", e).that(e).hasMessageThat() in failWhenTestMethodHasApiTestAnnotationButItsEmpty()
148 assertWithMessage("exception (%s) message", e).that(e).hasMessageThat() in failWhenTestMethodHasApiTestAnnotationButItsInvalid()
164 assertWithMessage("exception (%s) message", e).that(e).hasMessageThat() in failWhenTestMethodHasInvalidApiTestAnnotatedWithIgnoreInvalidApiButWithoutApiRequirements()
195 assertWithMessage("exception (%s) message", e).that(e).hasMessageThat() in failWhenTestMethodHasValidApiTestAnnotationButNoApiRequirements()
222 assertWithMessage("exception (%s) message", e).that(e).hasMessageThat() in failWhenTestMethodHasValidApiTestAnnotationAndApiRequirements()
235 assertWithMessage("exception (%s) message", e).that(e).hasMessageThat().matches( in failWhenTestMethodHasCddTestAnnotationWithDeprecatedRequirement()
248 assertWithMessage("exception (%s) message", e).that(e).hasMessageThat() in failWhenTestMethodHasCddTestAnnotationWithEmptyRequirements()
261 assertWithMessage("exception (%s) message", e).that(e).hasMessageThat() in failWhenTestMethodHasCddTestAnnotationWithInvalidRequirements()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/
DPasspointConfiguration.java830 PasspointConfiguration that = (PasspointConfiguration) thatObject; in equals() local
831 return (mHomeSp == null ? that.mHomeSp == null : mHomeSp.equals(that.mHomeSp)) in equals()
832 && (mAaaServerTrustedNames == null ? that.mAaaServerTrustedNames == null in equals()
833 : Arrays.equals(mAaaServerTrustedNames, that.mAaaServerTrustedNames)) in equals()
834 && (mCredential == null ? that.mCredential == null in equals()
835 : mCredential.equals(that.mCredential)) in equals()
836 && (mPolicy == null ? that.mPolicy == null : mPolicy.equals(that.mPolicy)) in equals()
837 && (mSubscriptionUpdate == null ? that.mSubscriptionUpdate == null in equals()
838 : mSubscriptionUpdate.equals(that.mSubscriptionUpdate)) in equals()
839 && isTrustRootCertListEquals(mTrustRootCertList, that.mTrustRootCertList) in equals()
[all …]
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeCall.java141 public BluetoothLeCall(@NonNull BluetoothLeCall that) { in BluetoothLeCall() argument
142 mUuid = new UUID(that.getUuid().getMostSignificantBits(), in BluetoothLeCall()
143 that.getUuid().getLeastSignificantBits()); in BluetoothLeCall()
144 mUri = that.mUri; in BluetoothLeCall()
145 mFriendlyName = that.mFriendlyName; in BluetoothLeCall()
146 mState = that.mState; in BluetoothLeCall()
147 mCallFlags = that.mCallFlags; in BluetoothLeCall()
166 BluetoothLeCall that = (BluetoothLeCall) o; in equals()
167 return mUuid.equals(that.mUuid) && mUri.equals(that.mUri) in equals()
168 && mFriendlyName.equals(that.mFriendlyName) && mState == that.mState in equals()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/
DNotificationHelperTest.java112 assertWithMessage("exception message").that(exception.getMessage()).contains("context"); in testNewNotificationBuilder_nullContext()
136 assertWithMessage("notification").that(notification).isNotNull(); in testShowUserDisclaimerNotification()
208 assertWithMessage("notification icon").that(notification.getSmallIcon()).isNotNull(); in assertNotificationContents()
209 assertWithMessage("notification channel").that(notification.getChannelId()) in assertNotificationContents()
212 .that(notification.flags & FLAG_ONGOING_EVENT).isEqualTo(FLAG_ONGOING_EVENT); in assertNotificationContents()
215 .that(notification.contentIntent) in assertNotificationContents()
218 .that(notification.contentIntent.isImmutable()).isTrue(); in assertNotificationContents()
228 assertWithMessage("content intent").that(intent).isNotNull(); in assertNotificationContents()
229 assertWithMessage("content intent component").that(intent.getComponent()) in assertNotificationContents()
234 assertWithMessage("notification extras").that(notification.extras).isNotNull(); in assertNotificationContents()
[all …]

12345678910>>...32