Home
last modified time | relevance | path

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

12345678910>>...46

/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/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioContextTest.java181 .that(carAudioContextUsingCoreRouting.getContextForAttributes( in getContextForAudioAttribute_usingCoreRouting()
186 .that(carAudioContextUsingCoreRouting.getContextForAttributes( in getContextForAudioAttribute_usingCoreRouting()
197 .that(carAudioContextUsingCoreRouting.isOemExtensionAudioContext( in isOemExtensionAudioContext_whenUsingCoreRouting()
201 .that(carAudioContextUsingCoreRouting.isOemExtensionAudioContext( in isOemExtensionAudioContext_whenUsingCoreRouting()
205 .that(carAudioContextUsingCoreRouting.isOemExtensionAudioContext( in isOemExtensionAudioContext_whenUsingCoreRouting()
215 .that(TEST_CAR_AUDIO_CONTEXT.getContextForAttributes(attributes)) in getContextForAudioAttributes_forAttributeWithValidUsage_returnsContext()
222 .that(TEST_CAR_AUDIO_CONTEXT.getContextForAttributes(TEST_INVALID_ATTRIBUTE)) in getContextForAudioAttributes_forAttributesWithInvalidUsage_returnsInvalidContext()
231 .that(attributes).asList().containsExactly(UNKNOWN_USAGE_ATTRIBUTE, in getAudioAttributesForContext_withValidContext_returnsAttributes()
241 assertWithMessage("Invalid context exception").that(thrown) in getAudioAttributesForContext_withInvalidContext_throws()
257 .that(allUsages.addAll(attributesWrappers)).isTrue(); in getAudioAttributesForContext_returnsUniqueValuesForAllContexts()
[all …]
DCarVolumeGroupUnitTest.java130 .that(carVolumeGroup.getAddressForContext(TEST_MEDIA_CONTEXT_ID)) in getAddressForContext_withSupportedContext_returnsAddress()
139 .that(carVolumeGroup.getAddressForContext( in getAddressForContext_withUnsupportedContext_returnsNull()
148 .that(carVolumeGroup.setMute(true)).isTrue(); in setMuted_whenUnmuted_onActivation_returnsTrue()
156 .that(carVolumeGroup.setMute(false)).isFalse(); in setMuted_whenUnmuted_onDeactivation_returnsFalse()
166 .that(carVolumeGroup.setMute(false)).isTrue(); in setMuted_whenMuted_onDeactivation_returnsTrue()
175 .that(carVolumeGroup.setMute(true)).isFalse(); in setMuted_whenMuted_onActivation_returnsFalse()
191 .that(carVolumeGroup.setMute(true)).isTrue(); in setMuted_whenHalMuted_onActivation_returnsTrue()
207 .that(carVolumeGroup.setMute(false)).isFalse(); in setMuted_whenHalMuted_onDeactivation_returnsFalse()
215 .that(carVolumeGroup.isMuted()).isFalse(); in isMuted_whenDefault_returnsFalse()
224 expectWithMessage("Get mute state").that(carVolumeGroup.isMuted()).isTrue(); in isMuted_afterMuting_returnsTrue()
[all …]
DMediaRequestHandlerTest.java72 .that(thrown).hasMessageThat().contains("Media request callback"); in registerPrimaryZoneMediaAudioRequestCallback_withNullCallback_fails()
81 .that(registered).isTrue(); in registerPrimaryZoneMediaAudioRequestCallback()
92 .that(thrown).hasMessageThat().contains("Media request callback"); in unregisterPrimaryZoneMediaAudioRequestCallback_withNullCallback_fails()
104 .that(unregistered).isTrue(); in unregisterPrimaryZoneMediaAudioRequestCallback()
113 .that(unregistered).isFalse(); in unregisterPrimaryZoneMediaAudioRequestCallback_withoutRegistering()
125 .that(isRegistered).isTrue(); in isAudioMediaCallbackRegistered()
133 .that(isRegistered).isFalse(); in isAudioMediaCallbackRegistered_withNullToken()
142 .that(isRegistered).isFalse(); in isAudioMediaCallbackRegistered_withoutRegistering()
153 .that(thrown).hasMessageThat().contains("Media audio request status callback"); in requestMediaAudioOnPrimaryZone_withNullCallback()
164 .that(thrown).hasMessageThat().contains("Occupant zone info"); in requestMediaAudioOnPrimaryZone_withNullOccupantInfo()
[all …]
DCarAudioMirrorRequestHandlerTest.java75 expectWithMessage("Unique request id").that(requestId).isEqualTo(0); in getUniqueRequestIdAndAssignMirrorDevice()
84 expectWithMessage("Unique request id one").that(requestIdOne).isEqualTo(0); in getUniqueRequestIdAndAssignMirrorDevice_multipleTimes()
85 expectWithMessage("Unique request id two").that(requestIdTwo).isEqualTo(1); in getUniqueRequestIdAndAssignMirrorDevice_multipleTimes()
97 .that(requestIdThree).isEqualTo(INVALID_REQUEST_ID); in getUniqueRequestIdAndAssignMirrorDevice_forOutOfAvailableDevices()
107 .that(requestId).isEqualTo(INVALID_REQUEST_ID); in getUniqueRequestIdAndAssignMirrorDevice_forEmptyMirrorDevices()
118 .that(thrown).hasMessageThat().contains("Audio zones mirror status"); in registerAudioZonesMirrorStatusCallback_withNullCallback_fails()
129 .that(thrown).hasMessageThat().contains("Audio zones mirror status"); in unregisterAudioZonesMirrorStatusCallback_withNullCallback_fails()
138 .that(registered).isTrue(); in registerAudioZonesMirrorStatusCallback()
150 .that(registered).isFalse(); in registerAudioZonesMirrorStatusCallback_withNoMirroringDeviceAddress()
162 .that(registered).isTrue(); in registerAudioZonesMirrorStatusCallback_reRegisterFails()
[all …]
DCoreAudioHelperTest.java80 .that(CoreAudioHelper.getStrategyForAudioAttributes(MUSIC_ATTRIBUTES)) in getStrategyForAudioAttributes_withValidAttributes_succeeds()
83 .that(CoreAudioHelper.getStrategyForAudioAttributes(NAV_ATTRIBUTES)) in getStrategyForAudioAttributes_withValidAttributes_succeeds()
86 .that(CoreAudioHelper.getStrategyForAudioAttributes(OEM_ATTRIBUTES)) in getStrategyForAudioAttributes_withValidAttributes_succeeds()
94 .that(CoreAudioHelper.getStrategyForAudioAttributes(UNSUPPORTED_ATTRIBUTES)) in getStrategyForAudioAttributes_withInvalidAttributes_returnsInvalidStrategy()
101 .that(CoreAudioHelper.getStrategyForAudioAttributesOrDefault(MUSIC_ATTRIBUTES)) in getStrategyForAudioAttributesOrDefault_withValidAttributes_succeeds()
104 .that(CoreAudioHelper.getStrategyForAudioAttributesOrDefault(NAV_ATTRIBUTES)) in getStrategyForAudioAttributesOrDefault_withValidAttributes_succeeds()
107 .that(CoreAudioHelper.getStrategyForAudioAttributesOrDefault(OEM_ATTRIBUTES)) in getStrategyForAudioAttributesOrDefault_withValidAttributes_succeeds()
115 .that(CoreAudioHelper.getStrategyForAudioAttributesOrDefault( in getStrategyForAudioAttributesOrDefault_withInvalidAttributes_fallbacksOnDefault()
123 .that(CoreAudioHelper.getStrategy(MUSIC_STRATEGY_ID)) in getStrategy_withValidId_succeeds()
126 .that(CoreAudioHelper.getStrategy(NAV_STRATEGY_ID)) in getStrategy_withValidId_succeeds()
[all …]
DCoreAudioVolumeGroupTest.java191 expectWithMessage("Initial gain index").that(mMusicCoreAudioVolumeGroup.getMaxGainIndex()) in getMaxIndex()
193 expectWithMessage("Initial gain index").that(mNavCoreAudioVolumeGroup.getMaxGainIndex()) in getMaxIndex()
195 expectWithMessage("Initial gain index").that(mOemCoreAudioVolumeGroup.getMaxGainIndex()) in getMaxIndex()
201 expectWithMessage("Initial gain index").that(mMusicCoreAudioVolumeGroup.getMinGainIndex()) in getMinIndex()
203 expectWithMessage("Initial gain index").that(mNavCoreAudioVolumeGroup.getMinGainIndex()) in getMinIndex()
205 expectWithMessage("Initial gain index").that(mOemCoreAudioVolumeGroup.getMinGainIndex()) in getMinIndex()
211 expectWithMessage("check inside range").that(mMusicCoreAudioVolumeGroup.isValidGainIndex( in checkIndexRange()
215 .that(mMusicCoreAudioVolumeGroup.isValidGainIndex(MUSIC_MIN_INDEX - 1)) in checkIndexRange()
218 .that(mMusicCoreAudioVolumeGroup.isValidGainIndex(MUSIC_MAX_INDEX + 1)) in checkIndexRange()
225 .that(mMusicCoreAudioVolumeGroup.getAmLastAudibleIndex()) in setAndGetIndex()
[all …]
DCarVolumeCallbackHandlerTest.java64 .that(mCallback1.receivedGroupVolumeChanged()) in onVolumeGroupChange_callsAllRegisteredCallbacks()
67 .that(mCallback1.mZoneId).isEqualTo(ZONE_ID); in onVolumeGroupChange_callsAllRegisteredCallbacks()
69 .that(mCallback1.mGroupId).isEqualTo(GROUP_ID); in onVolumeGroupChange_callsAllRegisteredCallbacks()
71 .that(mCallback1.mFlags).isEqualTo(FLAGS); in onVolumeGroupChange_callsAllRegisteredCallbacks()
74 .that(mCallback2.receivedGroupVolumeChanged()) in onVolumeGroupChange_callsAllRegisteredCallbacks()
77 .that(mCallback2.mZoneId).isEqualTo(ZONE_ID); in onVolumeGroupChange_callsAllRegisteredCallbacks()
79 .that(mCallback2.mGroupId).isEqualTo(GROUP_ID); in onVolumeGroupChange_callsAllRegisteredCallbacks()
81 .that(mCallback2.mFlags).isEqualTo(FLAGS); in onVolumeGroupChange_callsAllRegisteredCallbacks()
91 .that(mCallback1.receivedGroupVolumeChanged()) in onVolumeGroupChange_doesNotCallUnregisteredCallbacks()
94 .that(mCallback2.receivedGroupVolumeChanged()) in onVolumeGroupChange_doesNotCallUnregisteredCallbacks()
[all …]
DCarAudioServiceUnitTest.java751 .that(thrown).hasMessageThat().contains("Context"); in constructor_withNullContext_fails()
763 .that(thrown).hasMessageThat().contains("Context"); in constructor_withNullContextAndNullPath_fails()
775 .that(thrown).hasMessageThat() in constructor_withInvalidVolumeConfiguration_fails()
784 .that(mCarAudioService.getAudioZoneIds()).asList() in getAudioZoneIds_withBaseConfiguration_returnAllTheZones()
794 .that(mCarAudioService.getVolumeGroupCount(PRIMARY_AUDIO_ZONE)) in getVolumeGroupCount_onPrimaryZone_returnsAllGroups()
808 .that(nonDynamicAudioService.getVolumeGroupCount(PRIMARY_AUDIO_ZONE)) in getVolumeGroupCount_onPrimaryZone_withNonDynamicRouting_returnsAllGroups()
817 .that(mCarAudioService.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, USAGE_MEDIA)) in getVolumeGroupIdForUsage_forMusicUsage()
831 .that(nonDynamicAudioService.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, in getVolumeGroupIdForUsage_withNonDynamicRouting_forMusicUsage()
840 .that(mCarAudioService.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, in getVolumeGroupIdForUsage_forNavigationUsage()
855 .that(nonDynamicAudioService.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, in getVolumeGroupIdForUsage_withNonDynamicRouting_forNavigationUsage()
[all …]
DCarAudioVolumeGroupTest.java160 expect.withMessage("Min index").that(carVolumeGroup.getMinGainIndex()) in testInitializedIndexes()
162 expect.withMessage("Max index").that(carVolumeGroup.getMaxGainIndex()) in testInitializedIndexes()
164 expect.withMessage("Default index").that(carVolumeGroup.getDefaultGainIndex()) in testInitializedIndexes()
172 expect.withMessage("Min index").that(carVolumeGroup.isValidGainIndex(MIN_GAIN_INDEX)) in checkValidGainIndexes()
174 expect.withMessage("Max index").that(carVolumeGroup.isValidGainIndex(MAX_GAIN_INDEX)) in checkValidGainIndexes()
177 .that(carVolumeGroup.isValidGainIndex(DEFAULT_GAIN_INDEX)) in checkValidGainIndexes()
181 .that(carVolumeGroup.isValidGainIndex(MIN_GAIN_INDEX - 1)) in checkValidGainIndexes()
184 .that(carVolumeGroup.isValidGainIndex(MAX_GAIN_INDEX + 1)) in checkValidGainIndexes()
194 .that(carVolumeGroup.getCurrentGainIndex()).isEqualTo(TEST_GAIN_INDEX); in setCurrentGainIndex_setsGainOnAllBoundDevices()
246 expect.withMessage("Media device info min gain").that(mMediaDeviceInfo.getMinGain()) in updateAudioDeviceInfo_succeeds()
[all …]
/packages/modules/StatsD/statsd/src/
DFieldValue.cpp211 bool Value::operator==(const Value& that) const { in operator ==()
212 if (type != that.getType()) return false; in operator ==()
216 return int_value == that.int_value; in operator ==()
218 return long_value == that.long_value; in operator ==()
220 return float_value == that.float_value; in operator ==()
222 return double_value == that.double_value; in operator ==()
224 return str_value == that.str_value; in operator ==()
226 return storage_value == that.storage_value; in operator ==()
232 bool Value::operator!=(const Value& that) const { in operator !=()
233 if (type != that.getType()) return true; in operator !=()
[all …]
DFieldValue.h167 inline bool operator==(const Field& that) const {
168 return mTag == that.getTag() && mField == that.getField();
171 inline bool operator!=(const Field& that) const {
172 return mTag != that.getTag() || mField != that.getField();
175 bool operator<(const Field& that) const {
176 if (mTag != that.getTag()) {
177 return mTag < that.getTag();
180 if (mField != that.getField()) {
181 return mField < that.getField();
187 bool matches(const Matcher& that) const;
[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/watchdog/
DWatchdogStorageUnitTest.java104 assertWithMessage("Start write on clean db").that(mService.startWrite()).isFalse(); in testStartWrite()
108 assertWithMessage("Start write on a dirty DB").that(mService.startWrite()).isTrue(); in testStartWrite()
113 assertWithMessage("Start write again").that(mService.startWrite()).isFalse(); in testStartWrite()
120 assertWithMessage("Start database write").that(mService.startWrite()).isTrue(); in testStartWriteAndMarkDirty()
126 assertWithMessage("Start write again").that(mService.startWrite()).isTrue(); in testStartWriteAndMarkDirty()
133 assertWithMessage("Start database write").that(mService.startWrite()).isTrue(); in testStartWriteTwice()
134 assertWithMessage("Start database write twice").that(mService.startWrite()) in testStartWriteTwice()
148 assertWithMessage("Start database write").that(mService.startWrite()).isTrue(); in testMarkSuccessfulWriteWithNoWriteInProgress()
157 assertWithMessage("User package settings").that(mService.getUserPackageSettings()) in testSaveUserPackageSettings()
161 .that(mService.hasPendingCloseDbHelperMessage()).isTrue(); in testSaveUserPackageSettings()
[all …]
/packages/services/Car/car-test-lib/src/android/car/test/
DAbstractExpectableTestCase.java78 return mExpect.that(actual); in expectThat()
82 return mExpect.that(actual); in expectThat()
86 return mExpect.that(actual); in expectThat()
91 return mExpect.that(actual); in expectThat()
95 return mExpect.that(actual); in expectThat()
99 return mExpect.that(actual); in expectThat()
103 return mExpect.that(actual); in expectThat()
107 return mExpect.that(actual); in expectThat()
111 return mExpect.that(actual); in expectThat()
115 return mExpect.that(actual); in expectThat()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/media/
DCarVolumeGroupInfoUnitTest.java78 .that(info.getZoneId()).isEqualTo(TEST_ZONE_ID); in build_buildsGroupInfo()
80 .that(info.getId()).isEqualTo(TEST_PRIMARY_GROUP_ID); in build_buildsGroupInfo()
82 .that(info.getName()).isEqualTo(TEST_GROUP_NAME); in build_buildsGroupInfo()
93 .that(thrown).hasMessageThat().contains("Volume info name"); in build_withNullName_fails()
101 .that(info.getVolumeGainIndex()).isEqualTo(9_001); in setVolumeGainIndex_buildsGroupInfo()
109 .that(info.getMinVolumeGainIndex()).isEqualTo(10); in setMinVolumeGainIndex_buildsGroupInfo()
117 .that(info.getMaxVolumeGainIndex()).isEqualTo(9_002); in setMaxVolumeGainIndex_buildsGroupInfo()
130 .that(thrown).hasMessageThat().contains("must be smaller than max"); in setMaxVolumeGainIndex_withMinLargerThanMax_buildFails()
143 .that(thrown).hasMessageThat().contains("out of range"); in setVolumeGainIndex_withGainOutOfMinMaxRange_buildFails()
151 .that(info.isMuted()).isTrue(); in setMuted_buildsGroupInfo()
[all …]
DCarAudioManagerUnitTest.java165 .that(mCarAudioManager.isAudioFeatureEnabled(AUDIO_FEATURE_DYNAMIC_ROUTING)) in isAudioFeatureEnabled()
175 .that(mCarAudioManager.isAudioFeatureEnabled(AUDIO_FEATURE_DYNAMIC_ROUTING)) in isAudioFeatureEnabled_withServiceRemoteException_returnsFalse()
213 .that(mCarAudioManager.getGroupMaxVolume(TEST_VOLUME_GROUP_ID)) in getGroupMaxVolume_withoutZoneId()
222 expectWithMessage("Rear right zone max volume").that(mCarAudioManager in getGroupMaxVolume_withZoneId()
233 .that(mCarAudioManager.getGroupMaxVolume(TEST_REAR_RIGHT_ZONE_ID, in getGroupMaxVolume_withServiceRemoteException()
243 .that(mCarAudioManager.getGroupMinVolume(TEST_VOLUME_GROUP_ID)) in getGroupMinVolume_withoutZoneId()
252 expectWithMessage("Rear right zone min volume").that(mCarAudioManager in getGroupMinVolume_withZoneId()
263 .that(mCarAudioManager.getGroupMinVolume(TEST_REAR_RIGHT_ZONE_ID, in getGroupMinVolume_withServiceRemoteException()
273 .that(mCarAudioManager.getGroupVolume(TEST_VOLUME_GROUP_ID)) in getGroupVolume_withoutZoneId()
282 expectWithMessage("Rear right zone volume").that(mCarAudioManager.getGroupVolume( in getGroupVolume_withZoneId()
[all …]
DCarVolumeGroupEventUnitTest.java71 expectWithMessage("Volume groups info").that(event.getCarVolumeGroupInfos()) in build()
73 expectWithMessage("Event types").that(event.getEventTypes()) in build()
75 expectWithMessage("Extra infos").that(event.getExtraInfos()) in build()
85 expectWithMessage("Volume groups info").that(event.getCarVolumeGroupInfos()) in build_withOut_extraInfo()
87 expectWithMessage("Event types").that(event.getEventTypes()) in build_withOut_extraInfo()
89 expectWithMessage("Extra infos").that(event.getExtraInfos()) in build_withOut_extraInfo()
105 .that(thrown).hasMessageThat().contains("should not be reused"); in builder_withReuse_fails()
117 .that(thrown).hasMessageThat().contains("Volume group info"); in build_withNullVolumeGroupInfo_fails()
129 .that(thrown).hasMessageThat().contains("Extra info"); in build_withNullExtraInfo_fails()
143 .that(thrown).hasMessageThat().contains("Volume group info"); in addCarVolumeGroupInfo_withNullEntry_fails()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DAccessCheckerTest.java78 .that(hasAccessToCollection(hasNoPerms, collection, false)) in testHasAccessToCollection_forRead_noPerms()
94 .that(hasAccessToCollection(hasReadMedia, collection, false)) in testHasAccessToCollection_forRead_hasReadMediaPerms()
103 .that(hasAccessToCollection(hasReadMedia, collection, false)) in testHasAccessToCollection_forRead_hasReadMediaPerms()
121 .that(hasAccessToCollection(hasLegacyRead, collection, false)) in testHasAccessToCollection_forRead_hasLegacyRead()
139 .that(hasAccessToCollection(hasNoPerms, collection, true)) in testHasAccessToCollection_forWrite_noPerms()
155 .that(hasAccessToCollection(hasWriteMedia, collection, true)) in testHasAccessToCollection_forWrite_hasWriteMediaPerms()
165 .that(hasAccessToCollection(hasWriteMedia, collection, true)) in testHasAccessToCollection_forWrite_hasWriteMediaPerms()
183 .that(hasAccessToCollection(hasLegacyWrite, collection, true)) in testHasAccessToCollection_forWrite_hasLegacyWrite()
193 .that(hasAccessToCollection(hasLegacyWrite, collection, true)) in testHasAccessToCollection_forWrite_hasLegacyWrite()
210 .that(hasUserSelectedAccess(hasNoPerms, collection, false)).isFalse(); in testHasUserSelectedAccess_noPerms()
[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/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioDeviceInfoTest.java79 .that(deviceInfo.getId()) in constructor_succeeds()
82 .that(deviceInfo.getName()) in constructor_succeeds()
85 .that(deviceInfo.getGainMinValue()) in constructor_succeeds()
88 .that(deviceInfo.getGainMaxValue()) in constructor_succeeds()
91 .that(deviceInfo.getGainDefaultValue()) in constructor_succeeds()
94 .that(deviceInfo.getGainStepValue()) in constructor_succeeds()
97 .that(deviceInfo.getType()) in constructor_succeeds()
100 .that(deviceInfo.getConnection()) in constructor_succeeds()
103 .that(deviceInfo.getAddress()) in constructor_succeeds()
106 .that(deviceInfo.isOutputDevice()) in constructor_succeeds()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/fakevhal/
DFakeVehicleStubUnitTest.java172 expect.that(fakeVehicleStub.isValid()).isTrue(); in testGetAllPropConfigsWithoutCustomConfig()
173 expect.that(propConfigInfo.getPropId()).isEqualTo(VehicleProperty.INFO_MAKE); in testGetAllPropConfigsWithoutCustomConfig()
174 expect.that(propConfigWindow.getAreaConfigs()[0].getAreaId()) in testGetAllPropConfigsWithoutCustomConfig()
176 expect.that(propConfigWindow.getAreaConfigs()[0].getMaxInt32Value()).isEqualTo(10); in testGetAllPropConfigsWithoutCustomConfig()
192 expect.that(propConfig.getPropId()).isEqualTo(VehicleProperty.TIRE_PRESSURE); in testGetAllPropConfigsWithCustomConfigHasExistingPropId()
193 expect.that(propConfig.getMaxSampleRate()).isEqualTo(2.5f); in testGetAllPropConfigsWithCustomConfigHasExistingPropId()
211 expect.that(propConfig.getPropId()).isEqualTo(123); in testGetAllPropConfigsWithCustomConfigHasNonExistingPropId()
212 expect.that(propConfig.getMaxSampleRate()).isEqualTo(5.0f); in testGetAllPropConfigsWithCustomConfigHasNonExistingPropId()
213 expect.that(allPropConfig.length).isEqualTo(new FakeVehicleStub(mMockRealVehicleStub, in testGetAllPropConfigsWithCustomConfigHasNonExistingPropId()
231 expect.that(propConfig.getAccess()).isEqualTo(VehiclePropertyAccess.READ_WRITE); in testGetAllPropConfigsWithSpecialProp()
[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 …]

12345678910>>...46