Home
last modified time | relevance | path

Searched refs:expectThat (Results 1 – 10 of 10) sorted by relevance

/packages/services/Car/libs/car-test-lib/src/android/car/test/
DAbstractExpectableTestCase.java76 protected final <ComparableT extends Comparable<?>> ComparableSubject<ComparableT> expectThat( in expectThat() method in AbstractExpectableTestCase
81 protected final BigDecimalSubject expectThat(BigDecimal actual) { in expectThat() method in AbstractExpectableTestCase
85 protected final Subject expectThat(Object actual) { in expectThat() method in AbstractExpectableTestCase
90 protected final ClassSubject expectThat(Class<?> actual) { in expectThat() method in AbstractExpectableTestCase
94 protected final ThrowableSubject expectThat(Throwable actual) { in expectThat() method in AbstractExpectableTestCase
98 protected final LongSubject expectThat(Long actual) { in expectThat() method in AbstractExpectableTestCase
102 protected final DoubleSubject expectThat(Double actual) { in expectThat() method in AbstractExpectableTestCase
106 protected final FloatSubject expectThat(Float actual) { in expectThat() method in AbstractExpectableTestCase
110 protected final IntegerSubject expectThat(Integer actual) { in expectThat() method in AbstractExpectableTestCase
114 protected final BooleanSubject expectThat(Boolean actual) { in expectThat() method in AbstractExpectableTestCase
[all …]
/packages/services/Car/tests/CarLibUnitTest/src/com/android/car/internal/property/
DCarPropertyHelperUnitTest.java42 expectThat(CarPropertyHelper.isSupported(VENDOR_PROPERTY)).isTrue(); in testIsSupported()
45 expectThat(CarPropertyHelper.isSupported( in testIsSupported()
48 expectThat(CarPropertyHelper.isSupported(VehiclePropertyIds.INFO_VIN)).isTrue(); in testIsSupported()
50 expectThat(CarPropertyHelper.isSupported(VehiclePropertyIds.INVALID)).isFalse(); in testIsSupported()
52 expectThat(CarPropertyHelper.isSupported(0x12100100)).isFalse(); in testIsSupported()
70 expectThat(CarPropertyHelper.isVendorOrBackportedProperty(VENDOR_PROPERTY)).isTrue(); in testIsVendorOrBackportedProperty()
71 expectThat(CarPropertyHelper.isVendorOrBackportedProperty(BACKPORTED_PROPERTY)).isTrue(); in testIsVendorOrBackportedProperty()
72 expectThat(CarPropertyHelper.isVendorOrBackportedProperty(SYSTEM_PROPERTY)).isFalse(); in testIsVendorOrBackportedProperty()
77 expectThat(CarPropertyHelper.isVendorProperty(VENDOR_PROPERTY)).isTrue(); in testIsVendorProperty()
78 expectThat(CarPropertyHelper.isVendorProperty(BACKPORTED_PROPERTY)).isFalse(); in testIsVendorProperty()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/property/
DSubscriptionManagerUnitTest.java110 expectThat(outPropertyIdsToUnsubscribe).isEmpty(); in testStageNewOptions_UpdateRateChangedToLowerRate()
111 expectThat(outDiffSubscribeOptions).containsExactlyElementsIn(newOptions); in testStageNewOptions_UpdateRateChangedToLowerRate()
133 expectThat(outPropertyIdsToUnsubscribe).isEmpty(); in testStageNewOptions_resolutionChangedToDifferentValue()
134 expectThat(outDiffSubscribeOptions).isEmpty(); in testStageNewOptions_resolutionChangedToDifferentValue()
145 expectThat(outPropertyIdsToUnsubscribe).isEmpty(); in testStageNewOptions_resolutionChangedToDifferentValue()
146 expectThat(outDiffSubscribeOptions).containsExactlyElementsIn(newOptions); in testStageNewOptions_resolutionChangedToDifferentValue()
216 expectThat(outPropertyIdsToUnsubscribe).isEmpty(); in testDiffBetweenCurrentAndStage_simpleAdd()
217 expectThat(outDiffSubscribeOptions).containsExactlyElementsIn(newOptions); in testDiffBetweenCurrentAndStage_simpleAdd()
236 expectThat(outPropertyIdsToUnsubscribe).isEqualTo(List.of(PROPERTY1)); in testDiffBetweenCurrentAndStage_simpleRemove()
237 expectThat(outDiffSubscribeOptions).isEmpty(); in testDiffBetweenCurrentAndStage_simpleRemove()
[all …]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarTest.java126 expectThat(Car.isApiVersionAtLeast(apiVersionMajorInt)).isTrue(); in testApiVersion_deprecated()
127 expectThat(Car.isApiVersionAtLeast(ApiVersionTooHigh)).isFalse(); in testApiVersion_deprecated()
129 expectThat(Car.isApiVersionAtLeast(apiVersionMajorInt - 1, MinorApiVersionTooHigh)) in testApiVersion_deprecated()
131 expectThat(Car.isApiVersionAtLeast(apiVersionMajorInt, apiVersionMinorInt)).isTrue(); in testApiVersion_deprecated()
132 expectThat(Car.isApiVersionAtLeast(apiVersionMajorInt, MinorApiVersionTooHigh)).isFalse(); in testApiVersion_deprecated()
133 expectThat(Car.isApiVersionAtLeast(ApiVersionTooHigh, 0)).isFalse(); in testApiVersion_deprecated()
135 expectThat(Car.isApiAndPlatformVersionAtLeast(apiVersionMajorInt, Build.VERSION.SDK_INT)) in testApiVersion_deprecated()
137 expectThat(Car.isApiAndPlatformVersionAtLeast(apiVersionMajorInt, in testApiVersion_deprecated()
142 expectThat(Car.isApiAndPlatformVersionAtLeast(apiVersionMajorInt, in testApiVersion_deprecated()
144 expectThat(Car.isApiAndPlatformVersionAtLeast(apiVersionMajorInt, in testApiVersion_deprecated()
/packages/services/Car/tests/CarLibUnitTest/src/com/android/car/internal/util/
DPairSparseArrayUnitTest.java159 expectThat(map.getSecondKeysForFirstKey(FIRST_KEY)).containsExactly(FIRST_KEY); in test_getSecondKeysForFirstKey()
160 expectThat(map.getSecondKeysForFirstKey(SECOND_KEY)).containsExactly(FIRST_KEY, SECOND_KEY); in test_getSecondKeysForFirstKey()
161 expectThat(map.getSecondKeysForFirstKey(THIRD_KEY)).containsExactly(FIRST_KEY, SECOND_KEY, in test_getSecondKeysForFirstKey()
163 expectThat(map.getSecondKeysForFirstKey(FOURTH_KEY)).containsExactly(FIRST_KEY, SECOND_KEY, in test_getSecondKeysForFirstKey()
191 expectThat(cloned.get(FIRST_KEY, FIRST_KEY)).isEqualTo(VALUE_1); in test_clone()
192 expectThat(cloned.get(SECOND_KEY, FIRST_KEY)).isEqualTo(VALUE_2); in test_clone()
193 expectThat(cloned.get(SECOND_KEY, SECOND_KEY)).isEqualTo(VALUE_2); in test_clone()
197 expectThat(cloned.get(SECOND_KEY, SECOND_KEY)).isEqualTo(VALUE_1); in test_clone()
198 expectThat(map.get(SECOND_KEY, SECOND_KEY)).isEqualTo(VALUE_2); in test_clone()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserHandleHelperUnitTest.java75 expectThat(mUserHandleHelper.getExistingUserHandle(100)).isEqualTo(user100); in testGetExistingUserHandle()
76 expectThat(mUserHandleHelper.getExistingUserHandle(101)).isEqualTo(user101); in testGetExistingUserHandle()
77 expectThat(mUserHandleHelper.getExistingUserHandle(102)).isEqualTo(user102); in testGetExistingUserHandle()
78 expectThat(mUserHandleHelper.getExistingUserHandle(103)).isNull(); in testGetExistingUserHandle()
DCarUserServiceTest.java934 expectThat(mCarUserService.stopBackgroundUserInGagageMode(TEST_USER_ID)).isTrue(); in testStopBackgroundUserInGarageMode()
937 expectThat(mCarUserService.stopBackgroundUserInGagageMode(TEST_USER_ID)).isFalse(); in testStopBackgroundUserInGarageMode()
941 expectThat(mCarUserService.stopBackgroundUserInGagageMode(UserHandle.USER_SYSTEM)) in testStopBackgroundUserInGarageMode()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DWatchdogPerfHandlerUnitTest.java3958 expectThat(overuseConfigurationCacheDump.getSafeToKillSystemPackages(0)) in testDumpProto()
3960 expectThat(overuseConfigurationCacheDump.getSafeToKillSystemPackages(1)) in testDumpProto()
3962 expectThat(overuseConfigurationCacheDump.getSafeToKillSystemPackages(2)) in testDumpProto()
3964 expectThat(overuseConfigurationCacheDump.getSafeToKillSystemPackages(3)) in testDumpProto()
3970 expectThat(overuseConfigurationCacheDump.getSafeToKillVendorPackages(0)) in testDumpProto()
3972 expectThat(overuseConfigurationCacheDump.getSafeToKillVendorPackages(1)) in testDumpProto()
3974 expectThat(overuseConfigurationCacheDump.getSafeToKillVendorPackages(2)) in testDumpProto()
3976 expectThat(overuseConfigurationCacheDump.getSafeToKillVendorPackages(3)) in testDumpProto()
3981 expectThat(overuseConfigurationCacheDump.getVendorPackagePrefixes(0)) in testDumpProto()
3983 expectThat(overuseConfigurationCacheDump.getVendorPackagePrefixes(1)) in testDumpProto()
[all …]
/packages/services/Car/tests/CarLibUnitTest/src/android/car/user/
DCarUserManagerUnitTest.java177 expectThat(mMgr.isValidUser(1)).isTrue(); in testIsValidUserId_found()
178 expectThat(mMgr.isValidUser(2)).isTrue(); in testIsValidUserId_found()
179 expectThat(mMgr.isValidUser(3)).isTrue(); in testIsValidUserId_found()
186 expectThat(mMgr.isValidUser(UserHandle.of(1))).isTrue(); in testIsValidUser_found()
187 expectThat(mMgr.isValidUser(UserHandle.of(2))).isTrue(); in testIsValidUser_found()
188 expectThat(mMgr.isValidUser(UserHandle.of(3))).isTrue(); in testIsValidUser_found()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DAddWifiPreferenceControllerTest.java284 expectThat(mPreference.isVisible()).isEqualTo(false); in onWifiStateChanged_invisible()
294 expectThat(mPreference.isVisible()).isEqualTo(true); in onWifiStateChanged_visible()