/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | HdmiCecMessageValidatorTest.java | 69 assertMessageValidity("F4:91").isEqualTo(OK); in isValid_unregisteredSource() 71 assertMessageValidity("FF:85").isEqualTo(OK); in isValid_unregisteredSource() 75 assertMessageValidity("FF:80:00:00:10:00").isEqualTo(OK); in isValid_unregisteredSource() 78 assertMessageValidity("FF:81:10:00").isEqualTo(OK); in isValid_unregisteredSource() 81 assertMessageValidity("F4:36").isEqualTo(OK); in isValid_unregisteredSource() 82 assertMessageValidity("FF:36").isEqualTo(OK); in isValid_unregisteredSource() 85 assertMessageValidity("FF:84:10:00:04").isEqualTo(OK); in isValid_unregisteredSource() 86 assertMessageValidity("FF:82:10:00").isEqualTo(OK); in isValid_unregisteredSource() 91 assertMessageValidity("04:8F").isEqualTo(OK); in isValid_giveDevicePowerStatus() 93 assertMessageValidity("0F:8F").isEqualTo(ERROR_DESTINATION); in isValid_giveDevicePowerStatus() [all …]
|
/frameworks/proto_logging/stats/stats_log_api_gen/test_java/src/com/android/test/statslogapigen/ |
D | VendorAtomCodeGenTest.java | 40 assertThat(VendorAtomsLog.VENDOR_ATOM1).isEqualTo(105501); in testAtomIdConstantsGeneration() 41 assertThat(VendorAtomsLog.VENDOR_ATOM2).isEqualTo(105502); in testAtomIdConstantsGeneration() 42 assertThat(VendorAtomsLog.VENDOR_ATOM4).isEqualTo(105504); in testAtomIdConstantsGeneration() 50 assertThat(VendorAtomsLog.VENDOR_ATOM1__ENUM_TYPE__TYPE_UNKNOWN).isEqualTo(0); in testAtomEnumConstantsGeneration() 51 assertThat(VendorAtomsLog.VENDOR_ATOM1__ENUM_TYPE__TYPE_1).isEqualTo(1); in testAtomEnumConstantsGeneration() 52 assertThat(VendorAtomsLog.VENDOR_ATOM1__ENUM_TYPE__TYPE_2).isEqualTo(2); in testAtomEnumConstantsGeneration() 53 assertThat(VendorAtomsLog.VENDOR_ATOM1__ENUM_TYPE__TYPE_3).isEqualTo(3); in testAtomEnumConstantsGeneration() 55 assertThat(VendorAtomsLog.VENDOR_ATOM1__ENUM_TYPE2__ANOTHER_TYPE_UNKNOWN).isEqualTo(0); in testAtomEnumConstantsGeneration() 56 assertThat(VendorAtomsLog.VENDOR_ATOM1__ENUM_TYPE2__ANOTHER_TYPE_1).isEqualTo(1); in testAtomEnumConstantsGeneration() 57 assertThat(VendorAtomsLog.VENDOR_ATOM1__ENUM_TYPE2__ANOTHER_TYPE_2).isEqualTo(2); in testAtomEnumConstantsGeneration() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/subscription/ |
D | SubscriptionInfoInternalTest.java | 160 assertThat(mSubInfo.getSubscriptionId()).isEqualTo(1); in testSubscriptionInfoInternalSetAndGet() 161 assertThat(mSubInfo.getIccId()).isEqualTo(SubscriptionDatabaseManagerTest.FAKE_ICCID1); in testSubscriptionInfoInternalSetAndGet() 162 assertThat(mSubInfo.getSimSlotIndex()).isEqualTo(0); in testSubscriptionInfoInternalSetAndGet() 163 assertThat(mSubInfo.getDisplayName()).isEqualTo( in testSubscriptionInfoInternalSetAndGet() 165 assertThat(mSubInfo.getCarrierName()).isEqualTo( in testSubscriptionInfoInternalSetAndGet() 167 assertThat(mSubInfo.getDisplayNameSource()).isEqualTo( in testSubscriptionInfoInternalSetAndGet() 169 assertThat(mSubInfo.getIconTint()).isEqualTo(SubscriptionDatabaseManagerTest.FAKE_COLOR1); in testSubscriptionInfoInternalSetAndGet() 170 assertThat(mSubInfo.getNumber()).isEqualTo( in testSubscriptionInfoInternalSetAndGet() 172 assertThat(mSubInfo.getDataRoaming()).isEqualTo(SubscriptionManager.DATA_ROAMING_ENABLE); in testSubscriptionInfoInternalSetAndGet() 173 assertThat(mSubInfo.getMcc()).isEqualTo(SubscriptionDatabaseManagerTest.FAKE_MCC1); in testSubscriptionInfoInternalSetAndGet() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/android/animation/ |
D | AnimatorTestRulePrecisionTest.kt | 59 assertThat(value1).isEqualTo(0f) in testSingleAnimator() 61 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(1) in testSingleAnimator() 64 assertThat(value1).isEqualTo(0.5f) in testSingleAnimator() 66 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(1) in testSingleAnimator() 69 assertThat(value1).isEqualTo(0.99f) in testSingleAnimator() 71 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(1) in testSingleAnimator() 74 assertThat(value1).isEqualTo(1f) in testSingleAnimator() 76 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(0) in testSingleAnimator() 84 assertThat(value1).isEqualTo(-1f) in testDelayedAnimator() 86 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(1) in testDelayedAnimator() [all …]
|
/frameworks/base/tools/hoststubgen/hoststubgen/test-tiny-framework/tiny-test/src/com/android/hoststubgen/test/tinyframework/ |
D | TinyFrameworkClassTest.java | 40 assertThat(tfc.addOne(1)).isEqualTo(2); in testSimple() 41 assertThat(tfc.stub).isEqualTo(1); in testSimple() 58 assertThat(tfc.addTwo(1)).isEqualTo(3); in testSubstitute() 64 assertThat(tfc.nativeAddThree(1)).isEqualTo(4); in testSubstituteNative() 78 assertThat(new TinyFrameworkNestedClasses().mSupplier.get()).isEqualTo(1); in testNestedClass1() 83 assertThat(TinyFrameworkNestedClasses.sSupplier.get()).isEqualTo(2); in testNestedClass2() 88 assertThat(new TinyFrameworkNestedClasses().getSupplier().get()).isEqualTo(3); in testNestedClass3() 93 assertThat(TinyFrameworkNestedClasses.getSupplier_static().get()).isEqualTo(4); in testNestedClass4() 98 assertThat((new TinyFrameworkNestedClasses()).new InnerClass().value).isEqualTo(5); in testNestedClass5() 103 assertThat(new TinyFrameworkNestedClasses.StaticNestedClass().value).isEqualTo(6); in testNestedClass6() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextLineLetterSpacingTest.kt | 48 .isEqualTo(WHOLE_LINE) in calculateRunFlagTest() 50 .isEqualTo(WHOLE_LINE) in calculateRunFlagTest() 55 .isEqualTo(LEFT_EDGE) in calculateRunFlagTest() 58 .isEqualTo(RIGHT_EDGE) in calculateRunFlagTest() 61 .isEqualTo(RIGHT_EDGE) in calculateRunFlagTest() 64 .isEqualTo(LEFT_EDGE) in calculateRunFlagTest() 69 .isEqualTo(LEFT_EDGE) in calculateRunFlagTest() 72 .isEqualTo(MIDDLE_OF_LINE) in calculateRunFlagTest() 75 .isEqualTo(RIGHT_EDGE) in calculateRunFlagTest() 78 .isEqualTo(RIGHT_EDGE) in calculateRunFlagTest() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/ |
D | MultiBiometricLockoutStateTest.java | 53 assertThat(lockoutState.getLockoutState(userId, BIOMETRIC_STRONG)).isEqualTo( in unlockAllBiometrics() 55 assertThat(lockoutState.getLockoutState(userId, BIOMETRIC_WEAK)).isEqualTo( in unlockAllBiometrics() 57 assertThat(lockoutState.getLockoutState(userId, BIOMETRIC_CONVENIENCE)).isEqualTo( in unlockAllBiometrics() 63 assertThat(lockoutState.getLockoutState(userId, BIOMETRIC_STRONG)).isEqualTo( in lockoutAllBiometrics() 65 assertThat(lockoutState.getLockoutState(userId, BIOMETRIC_WEAK)).isEqualTo( in lockoutAllBiometrics() 67 assertThat(lockoutState.getLockoutState(userId, BIOMETRIC_CONVENIENCE)).isEqualTo( in lockoutAllBiometrics() 88 assertThat(mLockoutState.getLockoutState(PRIMARY_USER, BIOMETRIC_STRONG)).isEqualTo( in testInitialStateLockedOut() 90 assertThat(mLockoutState.getLockoutState(PRIMARY_USER, BIOMETRIC_WEAK)).isEqualTo( in testInitialStateLockedOut() 92 assertThat(mLockoutState.getLockoutState(PRIMARY_USER, BIOMETRIC_CONVENIENCE)).isEqualTo( in testInitialStateLockedOut() 100 assertThat(mLockoutState.getLockoutState(PRIMARY_USER, BIOMETRIC_STRONG)).isEqualTo( in testConvenienceLockout() [all …]
|
D | AuthSessionCoordinatorTest.java | 61 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_CONVENIENCE)).isEqualTo( in testUserUnlockedWithWeak() 63 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_WEAK)).isEqualTo( in testUserUnlockedWithWeak() 65 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_STRONG)).isEqualTo( in testUserUnlockedWithWeak() 72 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_CONVENIENCE)).isEqualTo( in testUserUnlockedWithWeak() 74 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_WEAK)).isEqualTo( in testUserUnlockedWithWeak() 76 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_STRONG)).isEqualTo( in testUserUnlockedWithWeak() 89 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_CONVENIENCE)).isEqualTo( in testUserLocked() 91 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_WEAK)).isEqualTo( in testUserLocked() 93 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_STRONG)).isEqualTo( in testUserLocked() 100 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_CONVENIENCE)).isEqualTo( in testUserLocked() [all …]
|
D | AuthResultCoordinatorTest.java | 45 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_STRONG)).isEqualTo( in testDefaultMessage() 47 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_WEAK)).isEqualTo( in testDefaultMessage() 49 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_CONVENIENCE)).isEqualTo( in testDefaultMessage() 60 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_STRONG)).isEqualTo( in testSingleMessageCoordinator() 62 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_WEAK)).isEqualTo( in testSingleMessageCoordinator() 64 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_CONVENIENCE)).isEqualTo( in testSingleMessageCoordinator() 75 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_STRONG)).isEqualTo( in testConvenientLockout() 77 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_WEAK)).isEqualTo( in testConvenientLockout() 79 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_CONVENIENCE)).isEqualTo( in testConvenientLockout() 90 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_STRONG)).isEqualTo( in testConvenientLockoutTimed() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/data/repository/ |
D | ShadeRepositoryImplTest.kt | 49 assertThat(underTest.qsExpansion.value).isEqualTo(0f) in updateQsExpansion() 52 assertThat(underTest.qsExpansion.value).isEqualTo(.5f) in updateQsExpansion() 55 assertThat(underTest.qsExpansion.value).isEqualTo(.82f) in updateQsExpansion() 58 assertThat(underTest.qsExpansion.value).isEqualTo(1f) in updateQsExpansion() 64 assertThat(underTest.lockscreenShadeExpansion.value).isEqualTo(0f) in updateDragDownAmount() 67 assertThat(underTest.lockscreenShadeExpansion.value).isEqualTo(.5f) in updateDragDownAmount() 70 assertThat(underTest.lockscreenShadeExpansion.value).isEqualTo(.82f) in updateDragDownAmount() 73 assertThat(underTest.lockscreenShadeExpansion.value).isEqualTo(1f) in updateDragDownAmount() 79 assertThat(underTest.legacyShadeExpansion.value).isEqualTo(0f) in updateLegacyShadeExpansion() 82 assertThat(underTest.legacyShadeExpansion.value).isEqualTo(.5f) in updateLegacyShadeExpansion() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | InsertModeTransformationMethodTest.java | 183 assertThat(transformedText.toString()).isEqualTo(expected); in transformedText_toString() 197 assertThat(transformedText.toString()).isEqualTo(expected); in transformedText_toString_singleLine() 224 assertThat(spans0to2.length).isEqualTo(1); in transformedText_getSpans() 225 assertThat(spans0to2[0]).isEqualTo(span1); in transformedText_getSpans() 230 assertThat(spans3to4.length).isEqualTo(1); in transformedText_getSpans() 231 assertThat(spans3to4[0]).isEqualTo(span2); in transformedText_getSpans() 235 assertThat(spans1to6.length).isEqualTo(2); in transformedText_getSpans() 236 assertThat(spans1to6[0]).isEqualTo(span1); in transformedText_getSpans() 237 assertThat(spans1to6[1]).isEqualTo(span2); in transformedText_getSpans() 241 assertThat(spans4to6.length).isEqualTo(1); in transformedText_getSpans() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | UserInfoTest.java | 36 assertThat(ui.getUserHandle()).isEqualTo(UserHandle.of(10)); in testSimple() 37 assertThat(ui.name).isEqualTo("Test"); in testSimple() 40 assertThat(ui.isManagedProfile()).isEqualTo(false); in testSimple() 41 assertThat(ui.isGuest()).isEqualTo(true); in testSimple() 42 assertThat(ui.isRestricted()).isEqualTo(false); in testSimple() 43 assertThat(ui.isDemo()).isEqualTo(false); in testSimple() 44 assertThat(ui.isCloneProfile()).isEqualTo(false); in testSimple() 45 assertThat(ui.isCommunalProfile()).isEqualTo(false); in testSimple() 46 assertThat(ui.isPrivateProfile()).isEqualTo(false); in testSimple() 49 assertThat(ui.isPrimary()).isEqualTo(false); in testSimple() [all …]
|
D | LauncherActivityInfoTest.java | 43 .isEqualTo("\uD83E\uDD36"); in testTrimStart() 45 .isEqualTo("\uD83E\uDD36A"); in testTrimStart() 47 .isEqualTo("\uD83E\uDD36A\u0009\u0FE1"); in testTrimStart() 49 .isEqualTo("A\uD83E\uDD36\u0009\u0FE1A"); in testTrimStart() 52 .isEqualTo("A\uD83E\uDD36\u0009\u0FE1A\uD83E\uDD36"); in testTrimStart() 55 .isEqualTo("\uD83E\uDD36A\u0009\u0FE1"); in testTrimStart() 66 .isEqualTo("\uD83E\uDD36"); in testTrimEnd() 68 .isEqualTo("\u0009\u0FE1\uD83E\uDD36A"); in testTrimEnd() 70 .isEqualTo("\uD83E\uDD36A"); in testTrimEnd() 72 .isEqualTo("A\uD83E\uDD36\u0009\u0FE1A"); in testTrimEnd() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | DeviceIconUtilTest.java | 55 .isEqualTo(R.drawable.ic_headphone); in getIconResIdFromMediaRouteType_usbDevice_isHeadphone() 58 .isEqualTo(R.drawable.ic_headphone); in getIconResIdFromMediaRouteType_usbDevice_isHeadphone() 65 .isEqualTo(R.drawable.ic_headphone); in getIconResIdFromMediaRouteType_usbHeadset_isHeadphone() 68 .isEqualTo(R.drawable.ic_headphone); in getIconResIdFromMediaRouteType_usbHeadset_isHeadphone() 75 .isEqualTo(R.drawable.ic_headphone); in getIconResIdFromMediaRouteType_usbAccessory_isHeadphone() 82 .isEqualTo(R.drawable.ic_usb); in getIconResIdFromMediaRouteType_tv_usbAccessory_isUsb() 89 .isEqualTo(R.drawable.ic_dock_device); in getIconResIdFromMediaRouteType_dock_isDock() 92 .isEqualTo(R.drawable.ic_dock_device); in getIconResIdFromMediaRouteType_dock_isDock() 99 .isEqualTo(R.drawable.ic_external_display); in getIconResIdFromMediaRouteType_hdmi() 106 .isEqualTo(R.drawable.ic_tv); in getIconResIdFromMediaRouteType_tv_hdmi_isTv() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LooperStatsTest.java | 98 assertThat(entry.workSourceUid).isEqualTo(1000); in testSingleMessageDispatched() 99 assertThat(entry.threadName).isEqualTo("TestThread1"); in testSingleMessageDispatched() 100 assertThat(entry.handlerClassName).isEqualTo( in testSingleMessageDispatched() 102 assertThat(entry.messageName).isEqualTo("0x3e8" /* 1000 in hex */); in testSingleMessageDispatched() 103 assertThat(entry.isInteractive).isEqualTo(true); in testSingleMessageDispatched() 104 assertThat(entry.messageCount).isEqualTo(1); in testSingleMessageDispatched() 105 assertThat(entry.recordedMessageCount).isEqualTo(1); in testSingleMessageDispatched() 106 assertThat(entry.exceptionCount).isEqualTo(0); in testSingleMessageDispatched() 107 assertThat(entry.totalLatencyMicros).isEqualTo(100); in testSingleMessageDispatched() 108 assertThat(entry.maxLatencyMicros).isEqualTo(100); in testSingleMessageDispatched() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/ |
D | MediaOutputAdapterTest.java | 128 assertThat(mMediaOutputAdapter.getItemCount()).isEqualTo(mMediaItems.size()); in getItemCount_returnsMediaItemSize() 133 assertThat(mMediaOutputAdapter.getItemId(0)).isEqualTo(mMediaItems.get( in getItemId_validPosition_returnCorrespondingId() 140 assertThat(mMediaOutputAdapter.getItemId(invalidPosition)).isEqualTo(invalidPosition); in getItemId_invalidPosition_returnPosition() 154 assertThat(mViewHolder.mTitleText.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_bindPairNew_verifyView() 155 assertThat(mViewHolder.mTwoLineLayout.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindPairNew_verifyView() 156 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindPairNew_verifyView() 157 assertThat(mViewHolder.mCheckBox.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindPairNew_verifyView() 158 assertThat(mViewHolder.mTitleText.getText()).isEqualTo(mContext.getText( in onBindViewHolder_bindPairNew_verifyView() 175 assertThat(mViewHolder.mSeekBar.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_bindGroup_withSessionName_verifyView() 176 assertThat(mViewHolder.mTwoLineLayout.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindGroup_withSessionName_verifyView() [all …]
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
D | ThemeResolverTest.java | 47 assertThat(themeResolver.resolve("material")).isEqualTo(R.style.SuwThemeMaterial); in resolve_nonDayNight_shouldReturnCorrespondingTheme() 48 assertThat(themeResolver.resolve("material_light")).isEqualTo(R.style.SuwThemeMaterial_Light); in resolve_nonDayNight_shouldReturnCorrespondingTheme() 49 assertThat(themeResolver.resolve("glif")).isEqualTo(R.style.SuwThemeGlif); in resolve_nonDayNight_shouldReturnCorrespondingTheme() 50 assertThat(themeResolver.resolve("glif_light")).isEqualTo(R.style.SuwThemeGlif_Light); in resolve_nonDayNight_shouldReturnCorrespondingTheme() 51 assertThat(themeResolver.resolve("glif_v2")).isEqualTo(R.style.SuwThemeGlifV2); in resolve_nonDayNight_shouldReturnCorrespondingTheme() 52 assertThat(themeResolver.resolve("glif_v2_light")).isEqualTo(R.style.SuwThemeGlifV2_Light); in resolve_nonDayNight_shouldReturnCorrespondingTheme() 53 assertThat(themeResolver.resolve("glif_v3")).isEqualTo(R.style.SuwThemeGlifV3); in resolve_nonDayNight_shouldReturnCorrespondingTheme() 54 assertThat(themeResolver.resolve("glif_v3_light")).isEqualTo(R.style.SuwThemeGlifV3_Light); in resolve_nonDayNight_shouldReturnCorrespondingTheme() 55 assertThat(themeResolver.resolve("unknown_theme")).isEqualTo(defaultTheme); in resolve_nonDayNight_shouldReturnCorrespondingTheme() 62 assertThat(themeResolver.resolve("material")).isEqualTo(R.style.SuwThemeMaterial_DayNight); in resolve_dayNight_shouldReturnDayNightTheme() [all …]
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/wakeups/ |
D | WakingActivityHistoryTest.java | 71 assertThat(history.mWakingActivity.size()).isEqualTo(1); in recordActivityAppendsUids() 79 assertThat(recordedHistory.size()).isEqualTo(1); in recordActivityAppendsUids() 97 assertThat(recordedUids.size()).isEqualTo(4); in recordActivityAppendsUids() 99 assertThat(recordedUids.get(5, -1)).isEqualTo(2); in recordActivityAppendsUids() 100 assertThat(recordedUids.get(10, -1)).isEqualTo(12); in recordActivityAppendsUids() 101 assertThat(recordedUids.get(17, -1)).isEqualTo(53); in recordActivityAppendsUids() 117 assertThat(history.mWakingActivity.size()).isEqualTo(1); in recordActivityDoesNotDeleteExistingUids() 125 assertThat(recordedHistory.size()).isEqualTo(1); in recordActivityDoesNotDeleteExistingUids() 141 assertThat(recordedUids.size()).isEqualTo(4); in recordActivityDoesNotDeleteExistingUids() 142 assertThat(recordedUids.get(1, -1)).isEqualTo(17); in recordActivityDoesNotDeleteExistingUids() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | BackgroundStartPrivilegesTest.java | 52 assertThat(ALLOW_BAL.allowsBackgroundActivityStarts()).isEqualTo(true); in backgroundStartPrivilege_getters_work() 53 assertThat(ALLOW_BAL.allowsBackgroundFgsStarts()).isEqualTo(true); in backgroundStartPrivilege_getters_work() 54 assertThat(ALLOW_BAL.allowsAny()).isEqualTo(true); in backgroundStartPrivilege_getters_work() 55 assertThat(ALLOW_BAL.allowsNothing()).isEqualTo(false); in backgroundStartPrivilege_getters_work() 58 assertThat(ALLOW_FGS.allowsBackgroundActivityStarts()).isEqualTo(false); in backgroundStartPrivilege_getters_work() 59 assertThat(ALLOW_FGS.allowsBackgroundFgsStarts()).isEqualTo(true); in backgroundStartPrivilege_getters_work() 60 assertThat(ALLOW_FGS.allowsAny()).isEqualTo(true); in backgroundStartPrivilege_getters_work() 61 assertThat(ALLOW_FGS.allowsNothing()).isEqualTo(false); in backgroundStartPrivilege_getters_work() 64 assertThat(NONE.allowsBackgroundActivityStarts()).isEqualTo(false); in backgroundStartPrivilege_getters_work() 65 assertThat(NONE.allowsBackgroundFgsStarts()).isEqualTo(false); in backgroundStartPrivilege_getters_work() [all …]
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | PowerGroupTest.java | 117 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testDreamPowerGroup() 119 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_DREAMING); in testDreamPowerGroup() 129 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testDozePowerGroup() 131 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_DOZING); in testDozePowerGroup() 146 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_ASLEEP); in testDozePowerGroupWhenNonInteractiveHasNoEffect() 148 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_ASLEEP); in testDozePowerGroupWhenNonInteractiveHasNoEffect() 156 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testSleepPowerGroup() 159 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_ASLEEP); in testSleepPowerGroup() 173 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_DOZING); in testDreamPowerGroupWhenNotAwakeHasNoEffect() 175 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_DOZING); in testDreamPowerGroupWhenNotAwakeHasNoEffect() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/ |
D | AnimatorTestRuleOrderTest.kt | 78 assertThat(value1).isEqualTo(0f) in testTwoAnimators() 79 assertThat(value2).isEqualTo(0f) in testTwoAnimators() 84 assertThat(value1).isEqualTo(0.99f) in testTwoAnimators() 85 assertThat(value2).isEqualTo(0.495f) in testTwoAnimators() 90 assertThat(value1).isEqualTo(1f) in testTwoAnimators() 91 assertThat(value2).isEqualTo(0.5f) in testTwoAnimators() 96 assertThat(value1).isEqualTo(1f) in testTwoAnimators() 97 assertThat(value2).isEqualTo(0.995f) in testTwoAnimators() 102 assertThat(value1).isEqualTo(1f) in testTwoAnimators() 103 assertThat(value2).isEqualTo(1f) in testTwoAnimators() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenAdaptersTest.java | 52 assertThat(zenPolicy.getPriorityCategoryCalls()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_allCallers() 53 assertThat(zenPolicy.getPriorityCallSenders()).isEqualTo(ZenPolicy.PEOPLE_TYPE_ANYONE); in notificationPolicyToZenPolicy_allCallers() 63 assertThat(zenPolicy.getPriorityCategoryCalls()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_starredCallers() 64 assertThat(zenPolicy.getPriorityCallSenders()).isEqualTo(ZenPolicy.PEOPLE_TYPE_STARRED); in notificationPolicyToZenPolicy_starredCallers() 73 assertThat(zenPolicy.getPriorityCategoryCalls()).isEqualTo(ZenPolicy.STATE_DISALLOW); in notificationPolicyToZenPolicy_repeatCallers() 74 assertThat(zenPolicy.getPriorityCategoryRepeatCallers()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_repeatCallers() 75 assertThat(zenPolicy.getPriorityCallSenders()).isEqualTo(ZenPolicy.PEOPLE_TYPE_NONE); in notificationPolicyToZenPolicy_repeatCallers() 84 assertThat(zenPolicy.getPriorityCategoryCalls()).isEqualTo(ZenPolicy.STATE_DISALLOW); in notificationPolicyToZenPolicy_noCallers() 85 assertThat(zenPolicy.getPriorityCallSenders()).isEqualTo(ZenPolicy.PEOPLE_TYPE_NONE); in notificationPolicyToZenPolicy_noCallers() 94 assertThat(zenPolicy.getPriorityCategoryConversations()).isEqualTo(ZenPolicy.STATE_UNSET); in notificationPolicyToZenPolicy_conversationsAllowedSendersUnset() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | FalsingDataProviderTest.java | 86 assertThat(motionEventList.size()).isEqualTo(3); in test_trackMotionEvents_dropUpEvent() 87 assertThat(motionEventList.get(0).getActionMasked()).isEqualTo(MotionEvent.ACTION_DOWN); in test_trackMotionEvents_dropUpEvent() 88 assertThat(motionEventList.get(1).getActionMasked()).isEqualTo(MotionEvent.ACTION_MOVE); in test_trackMotionEvents_dropUpEvent() 89 assertThat(motionEventList.get(2).getActionMasked()).isEqualTo(MotionEvent.ACTION_MOVE); in test_trackMotionEvents_dropUpEvent() 90 assertThat(motionEventList.get(0).getEventTime()).isEqualTo(1L); in test_trackMotionEvents_dropUpEvent() 91 assertThat(motionEventList.get(1).getEventTime()).isEqualTo(2L); in test_trackMotionEvents_dropUpEvent() 92 assertThat(motionEventList.get(2).getEventTime()).isEqualTo(3L); in test_trackMotionEvents_dropUpEvent() 93 assertThat(motionEventList.get(0).getX()).isEqualTo(2f); in test_trackMotionEvents_dropUpEvent() 94 assertThat(motionEventList.get(1).getX()).isEqualTo(4f); in test_trackMotionEvents_dropUpEvent() 95 assertThat(motionEventList.get(2).getX()).isEqualTo(6f); in test_trackMotionEvents_dropUpEvent() [all …]
|
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/ |
D | SurroundingTextTest.java | 41 assertThat(surroundingText1.getText().toString()).isEqualTo("test"); in testSurroundingTextBasicCreation() 42 assertThat(surroundingText1.getSelectionStart()).isEqualTo(0); in testSurroundingTextBasicCreation() 43 assertThat(surroundingText1.getSelectionEnd()).isEqualTo(0); in testSurroundingTextBasicCreation() 44 assertThat(surroundingText1.getOffset()).isEqualTo(0); in testSurroundingTextBasicCreation() 48 assertThat(surroundingText2.getSelectionStart()).isEqualTo(-1); in testSurroundingTextBasicCreation() 49 assertThat(surroundingText2.getSelectionEnd()).isEqualTo(-1); in testSurroundingTextBasicCreation() 50 assertThat(surroundingText2.getOffset()).isEqualTo(-1); in testSurroundingTextBasicCreation() 53 assertThat(surroundingText3.getText().toString()).isEqualTo("hello"); in testSurroundingTextBasicCreation() 54 assertThat(surroundingText3.getSelectionStart()).isEqualTo(0); in testSurroundingTextBasicCreation() 55 assertThat(surroundingText3.getSelectionEnd()).isEqualTo(5); in testSurroundingTextBasicCreation() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | CombinedShadeHeaderConstraintsTest.kt | 62 assertThat(getConstraint(R.id.clock).layout.startToStart).isEqualTo(R.id.begin_guide) in <lambda>() 63 assertThat(getConstraint(R.id.clock).layout.horizontalBias).isEqualTo(0f) in <lambda>() 66 .isEqualTo(R.id.end_guide) in <lambda>() 68 .isEqualTo(1f) in <lambda>() 71 .isEqualTo(R.id.end_guide) in <lambda>() 73 .isEqualTo(1f) in <lambda>() 80 assertThat(transform.scaleX).isEqualTo(1f) in <lambda>() 81 assertThat(transform.scaleY).isEqualTo(1f) in <lambda>() 92 assertThat(getConstraint(R.id.clock).layout.startToStart).isEqualTo(PARENT_ID) in <lambda>() 93 assertThat(getConstraint(R.id.clock).layout.horizontalBias).isEqualTo(0.5f) in <lambda>() [all …]
|