Home
last modified time | relevance | path

Searched refs:isTrue (Results 1 – 25 of 343) sorted by relevance

12345678910>>...14

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/
DLifecycleTest.java165 assertThat(activity.mActObserver.mOnStartObserved).isTrue(); in runThroughActivityLifecycles_shouldObserveEverything()
166 assertThat(activity.mActObserver.mOnResumeObserved).isTrue(); in runThroughActivityLifecycles_shouldObserveEverything()
168 assertThat(activity.mActObserver.mOnCreateOptionsMenuObserved).isTrue(); in runThroughActivityLifecycles_shouldObserveEverything()
170 assertThat(activity.mActObserver.mOnPrepareOptionsMenuObserved).isTrue(); in runThroughActivityLifecycles_shouldObserveEverything()
172 assertThat(activity.mActObserver.mOnOptionsItemSelectedObserved).isTrue(); in runThroughActivityLifecycles_shouldObserveEverything()
174 assertThat(activity.mActObserver.mOnPauseObserved).isTrue(); in runThroughActivityLifecycles_shouldObserveEverything()
176 assertThat(activity.mActObserver.mOnStopObserved).isTrue(); in runThroughActivityLifecycles_shouldObserveEverything()
178 assertThat(activity.mActObserver.mOnDestroyObserved).isTrue(); in runThroughActivityLifecycles_shouldObserveEverything()
189 assertThat(fragment.mFragObserver.mOnCreateOptionsMenuObserved).isTrue(); in runThroughDialogFragmentLifecycles_shouldObserveEverything()
190 assertThat(fragment.mFragObserver.mOnPrepareOptionsMenuObserved).isTrue(); in runThroughDialogFragmentLifecycles_shouldObserveEverything()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/telephony/
DTelephonyCallbackTest.java43 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_ActiveDataSubscriptionIdListener()
45 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_ActiveDataSubscriptionIdListener()
52 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_CallStateListener()
54 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_CallStateListener()
61 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_ServiceStateListener()
63 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_ServiceStateListener()
71 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testRemoveListener_ActiveDataSubscriptionIdListener()
73 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testRemoveListener_ActiveDataSubscriptionIdListener()
83 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testRemoveListener_CallStateListener()
85 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testRemoveListener_CallStateListener()
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/applications/
DApplicationsStateTest.java45 assertThat(ApplicationsState.FILTER_GAMES.filterApp(mEntry)).isTrue(); in testGamesFilterAcceptsGameDeprecated()
52 assertThat(ApplicationsState.FILTER_GAMES.filterApp(mEntry)).isTrue(); in testGameFilterAcceptsCategorizedGame()
60 assertThat(ApplicationsState.FILTER_GAMES.filterApp(mEntry)).isTrue(); in testGameFilterAcceptsCategorizedGameAndDeprecatedIsGame()
74 assertThat(ApplicationsState.FILTER_AUDIO.filterApp(mEntry)).isTrue(); in testAudioFilterAcceptsCategorizedAudio()
116 assertThat(ApplicationsState.FILTER_OTHER_APPS.filterApp(mEntry)).isTrue(); in testOtherAppsAcceptsDefaultCategory()
123 assertThat(ApplicationsState.FILTER_PHOTOS.filterApp(mEntry)).isTrue(); in testPhotosFilterAcceptsFilter()
151 assertThat(ApplicationsState.FILTER_APPS_EXCEPT_GAMES.filterApp(mEntry)).isTrue(); in testAppsExceptGamesFilterAcceptsImage()
158 assertThat(ApplicationsState.FILTER_APPS_EXCEPT_GAMES.filterApp(mEntry)).isTrue(); in testAppsExceptGamesFilterAcceptsVideo()
165 assertThat(ApplicationsState.FILTER_APPS_EXCEPT_GAMES.filterApp(mEntry)).isTrue(); in testAppsExceptGamesFilterAcceptsAudio()
175 .isTrue(); in testDownloadAndLauncherAndInstantAcceptsCorrectApps()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
DMultiRateLimiterTest.java67 assertThat(multiRateLimiter.isWithinQuota(USER_ID, PACKAGE_NAME_1, TAG)).isTrue(); in testSingleRateLimit_belowLimit_isWithinQuota()
71 assertThat(multiRateLimiter.isWithinQuota(USER_ID, PACKAGE_NAME_1, TAG)).isTrue(); in testSingleRateLimit_belowLimit_isWithinQuota()
75 assertThat(multiRateLimiter.isWithinQuota(USER_ID, PACKAGE_NAME_1, TAG)).isTrue(); in testSingleRateLimit_belowLimit_isWithinQuota()
119 assertThat(multiRateLimiter.isWithinQuota(USER_ID, PACKAGE_NAME_1, TAG)).isTrue(); in testSingleRateLimit_afterGoingAboveQuotaAndWaitingWindow_isBackWithinQuota()
132 assertThat(multiRateLimiter.isWithinQuota(USER_ID, PACKAGE_NAME_1, TAG)).isTrue(); in createMultipleRateLimits_testTheyLimitsAsExpected()
136 assertThat(multiRateLimiter.isWithinQuota(USER_ID, PACKAGE_NAME_1, TAG)).isTrue(); in createMultipleRateLimits_testTheyLimitsAsExpected()
140 assertThat(multiRateLimiter.isWithinQuota(USER_ID, PACKAGE_NAME_1, TAG)).isTrue(); in createMultipleRateLimits_testTheyLimitsAsExpected()
147 assertThat(multiRateLimiter.isWithinQuota(USER_ID, PACKAGE_NAME_1, TAG)).isTrue(); in createMultipleRateLimits_testTheyLimitsAsExpected()
155 assertThat(multiRateLimiter.isWithinQuota(USER_ID, PACKAGE_NAME_1, TAG)).isTrue(); in createMultipleRateLimits_testTheyLimitsAsExpected()
163 assertThat(multiRateLimiter.isWithinQuota(USER_ID, PACKAGE_NAME_1, TAG)).isTrue(); in createMultipleRateLimits_testTheyLimitsAsExpected()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DTypeClassifierTest.java75 assertThat(mClassifier.classifyGesture(QUICK_SETTINGS, 0.5, 0).isFalse()).isTrue(); in testFalse_QuickSettings()
79 assertThat(mClassifier.classifyGesture(QUICK_SETTINGS, 0.5, 0).isFalse()).isTrue(); in testFalse_QuickSettings()
98 assertThat(mClassifier.classifyGesture(PULSE_EXPAND, 0.5, 0).isFalse()).isTrue(); in testFalse_PulseExpand()
102 assertThat(mClassifier.classifyGesture(PULSE_EXPAND, 0.5, 0).isFalse()).isTrue(); in testFalse_PulseExpand()
121 assertThat(mClassifier.classifyGesture(NOTIFICATION_DRAG_DOWN, 0.5, 0).isFalse()).isTrue(); in testFalse_NotificationDragDown()
125 assertThat(mClassifier.classifyGesture(NOTIFICATION_DRAG_DOWN, 0.5, 0).isFalse()).isTrue(); in testFalse_NotificationDragDown()
155 assertThat(mClassifier.classifyGesture(NOTIFICATION_DISMISS, 0.5, 0).isFalse()).isTrue(); in testFalse_NotificationDismiss()
159 assertThat(mClassifier.classifyGesture(NOTIFICATION_DISMISS, 0.5, 0).isFalse()).isTrue(); in testFalse_NotificationDismiss()
163 assertThat(mClassifier.classifyGesture(NOTIFICATION_DISMISS, 0.5, 0).isFalse()).isTrue(); in testFalse_NotificationDismiss()
167 assertThat(mClassifier.classifyGesture(NOTIFICATION_DISMISS, 0.5, 0).isFalse()).isTrue(); in testFalse_NotificationDismiss()
[all …]
DDistanceClassifierTest.java56 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in testPass_noPointer()
63 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in testPass_fling()
66 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in testPass_fling()
75 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in testFail_flingShort()
78 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in testFail_flingShort()
81 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in testFail_flingShort()
89 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in testFail_flingSlowly()
92 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in testFail_flingSlowly()
98 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in testFail_flingSlowly()
DZigZagClassifierTest.java100 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in testFail_minimumTouchesVertical()
108 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in testFail_minimumTouchesHorizontal()
146 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in testFail_horizontalZigZagVerticalStraight()
156 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in testFail_horizontalStraightVerticalZigZag()
182 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in test_between0And45()
208 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in test_between45And90()
234 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in test_between90And135()
260 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in test_between135And180()
286 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in test_between180And225()
312 assertThat(mClassifier.classifyGesture(0, 0.5, 1).isFalse()).isTrue(); in test_between225And270()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DPowerAllowlistBackendTest.java85 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_ONE)).isTrue(); in testIsAllowlisted()
87 assertThat(mPowerAllowlistBackend.isAllowlisted(new String[] {PACKAGE_ONE})).isTrue(); in testIsAllowlisted()
93 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_ONE)).isTrue(); in testIsAllowlisted()
94 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_TWO)).isTrue(); in testIsAllowlisted()
96 new String[] {PACKAGE_ONE, PACKAGE_TWO})).isTrue(); in testIsAllowlisted()
101 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_ONE)).isTrue(); in testIsAllowlisted()
103 assertThat(mPowerAllowlistBackend.isAllowlisted(new String[] {PACKAGE_ONE})).isTrue(); in testIsAllowlisted()
122 assertThat(mPowerAllowlistBackend.isAllowlisted(testSms)).isTrue(); in isAllowlisted_shouldAllowlistDefaultSms()
123 assertThat(mPowerAllowlistBackend.isDefaultActiveApp(testSms)).isTrue(); in isAllowlisted_shouldAllowlistDefaultSms()
133 assertThat(mPowerAllowlistBackend.isAllowlisted(testDialer)).isTrue(); in isAllowlisted_shouldAllowlistDefaultDialer()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DViewInputConnectionTest.java86 assertThat(editText1.isFocused()).isTrue(); in testInputConnectionCallbacks()
94 assertThat(editText1.mCalledOnCreateInputConnection).isTrue(); in testInputConnectionCallbacks()
95 assertThat(editText1.mCalledOnInputConnectionOpened).isTrue(); in testInputConnectionCallbacks()
107 assertThat(editText2.isFocused()).isTrue(); in testInputConnectionCallbacks()
115 assertThat(editText1.mCalledOnCreateInputConnection).isTrue(); in testInputConnectionCallbacks()
116 assertThat(editText1.mCalledOnInputConnectionOpened).isTrue(); in testInputConnectionCallbacks()
117 assertThat(editText1.mCalledOnInputConnectionClosed).isTrue(); in testInputConnectionCallbacks()
119 assertThat(editText2.mCalledOnCreateInputConnection).isTrue(); in testInputConnectionCallbacks()
120 assertThat(editText2.mCalledOnInputConnectionOpened).isTrue(); in testInputConnectionCallbacks()
140 assertThat(editText1.isFocused()).isTrue(); in testInputConnectionCallbacks_nullInputConnection()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiUtilsTest.java281 Constants.ADDR_TV)).isTrue(); in isEligibleAddressForDevice()
300 Constants.ADDR_RECORDER_1)).isTrue(); in isEligibleAddressForDevice()
317 Constants.ADDR_RECORDER_2)).isTrue(); in isEligibleAddressForDevice()
338 Constants.ADDR_TUNER_1)).isTrue(); in isEligibleAddressForDevice()
357 Constants.ADDR_PLAYBACK_1)).isTrue(); in isEligibleAddressForDevice()
376 Constants.ADDR_AUDIO_SYSTEM)).isTrue(); in isEligibleAddressForDevice()
389 Constants.ADDR_TUNER_2)).isTrue(); in isEligibleAddressForDevice()
406 Constants.ADDR_TUNER_3)).isTrue(); in isEligibleAddressForDevice()
425 Constants.ADDR_PLAYBACK_2)).isTrue(); in isEligibleAddressForDevice()
436 Constants.ADDR_RECORDER_3)).isTrue(); in isEligibleAddressForDevice()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationHistoryFilterTest.java87 assertThat(filter.matchesCountFilter(history)).isTrue(); in testMatchesCountFilter()
89 assertThat(filter.matchesCountFilter(history)).isTrue(); in testMatchesCountFilter()
91 assertThat(filter.matchesCountFilter(history)).isTrue(); in testMatchesCountFilter()
102 assertThat(filter.matchesCountFilter(history)).isTrue(); in testMatchesCountFilter_noCountFilter()
104 assertThat(filter.matchesCountFilter(history)).isTrue(); in testMatchesCountFilter_noCountFilter()
114 assertThat(filter.matchesPackageAndChannelFilter(hnMatches)).isTrue(); in testMatchesPackageAndChannelFilter_pkgOnly()
116 assertThat(filter.matchesPackageAndChannelFilter(hnMatches2)).isTrue(); in testMatchesPackageAndChannelFilter_pkgOnly()
132 assertThat(filter.matchesPackageAndChannelFilter(hn2)).isTrue(); in testMatchesPackageAndChannelFilter_channelAlso()
147 assertThat(filter.isFiltering()).isTrue(); in testIsFiltering()
152 assertThat(filter.isFiltering()).isTrue(); in testIsFiltering()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/integrity/
DCompoundFormulaTest.java109 assertThat(compoundFormula.matches(appInstallMetadata)).isTrue(); in testFormulaMatches_notFalse_true()
117 assertThat(ATOMIC_FORMULA_1.matches(appInstallMetadata)).isTrue(); in testFormulaMatches_notTrue_false()
132 assertThat(ATOMIC_FORMULA_1.matches(appInstallMetadata)).isTrue(); in testFormulaMatches_trueAndTrue_true()
133 assertThat(ATOMIC_FORMULA_1.matches(appInstallMetadata)).isTrue(); in testFormulaMatches_trueAndTrue_true()
135 assertThat(compoundFormula.matches(appInstallMetadata)).isTrue(); in testFormulaMatches_trueAndTrue_true()
146 assertThat(ATOMIC_FORMULA_1.matches(appInstallMetadata)).isTrue(); in testFormulaMatches_trueAndFalse_false()
160 assertThat(ATOMIC_FORMULA_2.matches(appInstallMetadata)).isTrue(); in testFormulaMatches_falseAndTrue_false()
185 assertThat(ATOMIC_FORMULA_1.matches(appInstallMetadata)).isTrue(); in testFormulaMatches_trueOrTrue_true()
186 assertThat(ATOMIC_FORMULA_2.matches(appInstallMetadata)).isTrue(); in testFormulaMatches_trueOrTrue_true()
187 assertThat(compoundFormula.matches(appInstallMetadata)).isTrue(); in testFormulaMatches_trueOrTrue_true()
[all …]
DAtomicFormulaTest.java69 assertThat(stringAtomicFormula.getIsHashedValue()).isTrue(); in testValidAtomicFormula_stringValue_autoHash_longPackageName()
92 assertThat(stringAtomicFormula.getIsHashedValue()).isTrue(); in testValidAtomicFormula_stringValue_autoHash_longInstallerName()
103 assertThat(stringAtomicFormula.getIsHashedValue()).isTrue(); in testValidAtomicFormula_stringValue_appCertificateIsNotAutoHashed()
116 assertThat(stringAtomicFormula.getIsHashedValue()).isTrue(); in testValidAtomicFormula_stringValue_installerCertificateIsNotAutoHashed()
135 assertThat(atomicFormula.getValue()).isTrue(); in testValidAtomicFormula_boolValue()
244 assertThat(stringAtomicFormula.matches(appInstallMetadata)).isTrue(); in testFormulaMatches_string_packageNameFormula_true()
270 assertThat(stringAtomicFormula.matches(appInstallMetadata)).isTrue(); in testFormulaMatches_string_multipleAppCertificates_true()
299 assertThat(stringAtomicFormula.matches(appInstallMetadata)).isTrue(); in testFormulaMatches_string_multipleInstallerCertificates_true()
323 assertThat(stringAtomicFormula.isAppCertificateFormula()).isTrue(); in testIsAppCertificateFormula_string_true()
353 assertThat(stringAtomicFormula.isInstallerFormula()).isTrue(); in testIsInstallerFormula_string_installerName_true()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
DCompatConfigTest.java73 assertThat(dir.mkdirs()).isTrue(); in createTempDir()
106 .isTrue(); in testUnknownChangeEnabled()
137 ApplicationInfoBuilder.create().withTargetSdk(3).build())).isTrue(); in testTargetSdkChangeEnabled()
186 .withPackageName("com.some.package").build())).isTrue(); in testPackageOverrideEnabled()
206 .withPackageName("com.other.package").build())).isTrue(); in testPackageOverrideDisabled()
224 .withPackageName("com.other.package").build())).isTrue(); in testPackageOverrideUnknownPackage()
238 assertThat(compatConfig.isChangeEnabled(enabledChangeId, null)).isTrue(); in testIsChangeEnabledForInvalidApp()
240 assertThat(compatConfig.isChangeEnabled(targetSdkChangeId, null)).isTrue(); in testIsChangeEnabledForInvalidApp()
296 assertThat(compatConfig.isChangeEnabled(disabledChangeId1, applicationInfo)).isTrue(); in testInstallerCanSetOverrides()
331 assertThat(compatConfig.isChangeEnabled(disabledChangeId1, applicationInfo)).isTrue(); in testPreventInstallerSetNonOverridable()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DRollbackUnitTest.java85 assertThat(rollback.isEnabling()).isTrue(); in newEmptyStagedRollbackDefaults()
87 assertThat(rollback.isStaged()).isTrue(); in newEmptyStagedRollbackDefaults()
98 assertThat(rollback.isEnabling()).isTrue(); in newEmptyNonStagedRollbackDefaults()
108 assertThat(rollback.isEnabling()).isTrue(); in rollbackMadeAvailable()
116 assertThat(rollback.isAvailable()).isTrue(); in rollbackMadeAvailable()
128 assertThat(rollback.isDeleted()).isTrue(); in deletedRollbackCannotBeMadeAvailable()
133 assertThat(rollback.isDeleted()).isTrue(); in deletedRollbackCannotBeMadeAvailable()
160 assertThat(rollback.includesPackage(PKG_2)).isTrue(); in includesPackagesAfterEnable()
161 assertThat(rollback.includesPackage(PKG_3)).isTrue(); in includesPackagesAfterEnable()
165 assertThat(rollback.includesPackageWithDifferentVersion(PKG_1, 1)).isTrue(); in includesPackagesAfterEnable()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DKeyguardStateControllerTest.java72 assertThat(mKeyguardStateController.isShowing()).isTrue(); in testIsShowing()
81 assertThat(mKeyguardStateController.isMethodSecure()).isTrue(); in testIsMethodSecure()
88 assertThat(mKeyguardStateController.isOccluded()).isTrue(); in testIsOccluded()
94 assertThat(mKeyguardStateController.canDismissLockScreen()).isTrue(); in testCanSkipLockScreen()
104 assertThat(mKeyguardStateController.canDismissLockScreen()).isTrue(); in testCanSkipLockScreen()
111 assertThat(mKeyguardStateController.isUnlocked()).isTrue(); in testIsUnlocked()
115 assertThat(mKeyguardStateController.isUnlocked()).isTrue(); in testIsUnlocked()
125 assertThat(mKeyguardStateController.isUnlocked()).isTrue(); in testIsUnlocked()
135 assertThat(mKeyguardStateController.isTrusted()).isTrue(); in testIsTrusted()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCbGeoUtilsTest.java129 assertThat(polygon.contains(new LatLng(0, 0))).isTrue(); in testPointInPolygon()
131 assertThat(polygon.contains(new LatLng(0.5, 0.5))).isTrue(); in testPointInPolygon()
152 assertThat(polygon.contains(new LatLng(68.65294, 177.16205))).isTrue(); in testPointInPolygon_crossing180thMeridian()
153 assertThat(polygon.contains(new LatLng(68.60522, 178.83294))).isTrue(); in testPointInPolygon_crossing180thMeridian()
154 assertThat(polygon.contains(new LatLng(68.63098, -179.90943))).isTrue(); in testPointInPolygon_crossing180thMeridian()
155 assertThat(polygon.contains(new LatLng(67.51219, -179.74427))).isTrue(); in testPointInPolygon_crossing180thMeridian()
156 assertThat(polygon.contains(new LatLng(67.91933, 179.46802))).isTrue(); in testPointInPolygon_crossing180thMeridian()
174 assertThat(polygon.contains(new LatLng(51.78091, 0.97431))).isTrue(); in testPointInPolygon_crossing0thMeridian()
175 assertThat(polygon.contains(new LatLng(49.97102, 0.72206))).isTrue(); in testPointInPolygon_crossing0thMeridian()
176 assertThat(polygon.contains(new LatLng(50.82538, -0.17881))).isTrue(); in testPointInPolygon_crossing0thMeridian()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DCachedAppOptimizerTest.java256 assertThat(mCachedAppOptimizerUnderTest.useCompaction()).isTrue(); in init_withDeviceConfigSetsParameters()
257 assertThat(mCachedAppOptimizerUnderTest.mCachedAppOptimizerThread.isAlive()).isTrue(); in init_withDeviceConfigSetsParameters()
300 assertThat(mCachedAppOptimizerUnderTest.useFreezer()).isTrue(); in init_withDeviceConfigSetsParameters()
314 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChanges()
317 assertThat(mCachedAppOptimizerUnderTest.useCompaction()).isTrue(); in useCompaction_listensToDeviceConfigChanges()
318 assertThat(mCachedAppOptimizerUnderTest.mCachedAppOptimizerThread.isAlive()).isTrue(); in useCompaction_listensToDeviceConfigChanges()
324 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChanges()
338 assertThat(mCachedAppOptimizerUnderTest.useFreezer()).isTrue(); in useFreeze_doesNotListenToDeviceConfigChanges()
345 assertThat(mCachedAppOptimizerUnderTest.useFreezer()).isTrue(); in useFreeze_doesNotListenToDeviceConfigChanges()
347 assertThat(mCachedAppOptimizerUnderTest.mCachedAppOptimizerThread.isAlive()).isTrue(); in useFreeze_doesNotListenToDeviceConfigChanges()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/tv/tunerresourcemanager/
DTunerResourceManagerServiceTest.java299 .requestFrontendInternal(request, frontendHandle)).isTrue(); in requestFrontendTest_FrontendWithNoExclusiveGroupAvailable()
338 .requestFrontendInternal(request, frontendHandle)).isTrue(); in requestFrontendTest_FrontendWithExclusiveGroupAvailable()
344 .requestFrontendInternal(request, frontendHandle)).isTrue(); in requestFrontendTest_FrontendWithExclusiveGroupAvailable()
347 .isTrue(); in requestFrontendTest_FrontendWithExclusiveGroupAvailable()
349 .isTrue(); in requestFrontendTest_FrontendWithExclusiveGroupAvailable()
388 .requestFrontendInternal(request, frontendHandle)).isTrue(); in requestFrontendTest_NoFrontendAvailable_RequestWithLowerPriority()
438 .requestFrontendInternal(request, frontendHandle)).isTrue(); in requestFrontendTest_NoFrontendAvailable_RequestWithHigherPriority()
447 .requestFrontendInternal(request, frontendHandle)).isTrue(); in requestFrontendTest_NoFrontendAvailable_RequestWithHigherPriority()
450 .isInUse()).isTrue(); in requestFrontendTest_NoFrontendAvailable_RequestWithHigherPriority()
452 .isInUse()).isTrue(); in requestFrontendTest_NoFrontendAvailable_RequestWithHigherPriority()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DOwnersTest.java140 assertThat(owners.getDeviceOwnerFile().exists()).isTrue(); // TODO Check content in testUpgrade02()
147 assertThat(owners.hasDeviceOwner()).isTrue(); in testUpgrade02()
159 assertThat(owners.getDeviceOwnerUserRestrictionsNeedsMigration()).isTrue(); in testUpgrade02()
171 assertThat(owners.hasDeviceOwner()).isTrue(); in testUpgrade02()
183 assertThat(owners.getDeviceOwnerUserRestrictionsNeedsMigration()).isTrue(); in testUpgrade02()
209 assertThat(owners.getProfileOwnerFile(10).exists()).isTrue(); in testUpgrade03()
210 assertThat(owners.getProfileOwnerFile(11).exists()).isTrue(); in testUpgrade03()
235 assertThat(owners.getProfileOwnerUserRestrictionsNeedsMigration(10)).isTrue(); in testUpgrade03()
236 assertThat(owners.getProfileOwnerUserRestrictionsNeedsMigration(11)).isTrue(); in testUpgrade03()
267 assertThat(owners.getProfileOwnerUserRestrictionsNeedsMigration(10)).isTrue(); in testUpgrade03()
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DWizardManagerHelperTest.java88 .isTrue(); in testIsSetupWizardTrue()
97 .isTrue(); in testIsDeferredSetupTrue()
106 .isTrue(); in testIsPreDeferredSetupTrue()
137 .isTrue(); in isLightTheme_shouldReturnTrue_whenThemeIsLight()
140 .isTrue(); in isLightTheme_shouldReturnTrue_whenThemeIsLight()
160 .isTrue(); in isLightTheme_shouldReturnFalse_whenThemeIsNotLight()
163 .isTrue(); in isLightTheme_shouldReturnFalse_whenThemeIsNotLight()
188 .isTrue(); in testIsLightThemeDefault()
199 .isTrue(); in testIsLightThemeUnspecified()
299 .isTrue(); in testCopyWizardManagerIntent()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNotificationShadeWindowControllerImplTest.java140 assertThat((mLayoutParameters.getValue().flags & FLAG_SHOW_WALLPAPER) != 0).isTrue(); in attach_visibleWithWallpaper()
151 assertThat((mLayoutParameters.getValue().flags & FLAG_SHOW_WALLPAPER) == 0).isTrue(); in attach_lightScrimHidesWallpaper()
162 assertThat((mLayoutParameters.getValue().flags & FLAG_SHOW_WALLPAPER) == 0).isTrue(); in attach_scrimHidesWallpaper()
175 assertThat((mLayoutParameters.getValue().flags & FLAG_SHOW_WALLPAPER) != 0).isTrue(); in attach_animatingKeyguardAndSurface_wallpaperVisible()
194 assertThat((mLayoutParameters.getValue().flags & FLAG_NOT_FOCUSABLE) == 0).isTrue(); in setBouncerShowing_isFocusable_whenNeedsInput()
195 assertThat((mLayoutParameters.getValue().flags & FLAG_ALT_FOCUSABLE_IM) == 0).isTrue(); in setBouncerShowing_isFocusable_whenNeedsInput()
205 assertThat((mLayoutParameters.getValue().flags & FLAG_NOT_FOCUSABLE) == 0).isTrue(); in setKeyguardShowing_focusable_notAltFocusable_whenNeedsInput()
206 assertThat((mLayoutParameters.getValue().flags & FLAG_ALT_FOCUSABLE_IM) == 0).isTrue(); in setKeyguardShowing_focusable_notAltFocusable_whenNeedsInput()
216 assertThat((mLayoutParameters.getValue().flags & FLAG_NOT_FOCUSABLE) == 0).isTrue(); in setPanelExpanded_notFocusable_altFocusable_whenPanelIsOpen()
217 assertThat((mLayoutParameters.getValue().flags & FLAG_ALT_FOCUSABLE_IM) != 0).isTrue(); in setPanelExpanded_notFocusable_altFocusable_whenPanelIsOpen()
[all …]
/frameworks/base/core/tests/coretests/src/android/service/notification/
DNotificationListenerFilterTest.java43 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_CONVERSATIONS)).isTrue(); in testEmptyConstructor()
44 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_ALERTING)).isTrue(); in testEmptyConstructor()
45 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_SILENT)).isTrue(); in testEmptyConstructor()
52 assertThat(nlf.isPackageAllowed(new VersionedPackage("any", 0))).isTrue(); in testEmptyConstructor()
64 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_ALERTING)).isTrue(); in testConstructor()
92 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_ALERTING)).isTrue(); in testSetTypes()
93 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_SILENT)).isTrue(); in testSetTypes()
123 assertThat(nlf1.isTypeAllowed(FLAG_FILTER_TYPE_ALERTING)).isTrue(); in testParceling()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/util/
DCarWizardManagerHelperTest.java87 false)).isTrue(); in testCopyWizardManagerExtras()
89 disIntent.getBooleanExtra(CarWizardManagerHelper.EXTRA_IS_DEALER, false)).isTrue(); in testCopyWizardManagerExtras()
91 false)).isTrue(); in testCopyWizardManagerExtras()
102 assertThat(CarWizardManagerHelper.isSetupWizardIntent(intent)).isTrue(); in testIsSetupWizardIntentTrue()
135 assertThat(CarWizardManagerHelper.isDeferredIntent(intent)).isTrue(); in testIsDeferredIntent_doesHaveExtra_shouldBeTrue()
146 assertThat(CarWizardManagerHelper.isDealerIntent(intent)).isTrue(); in testIsDealerIntentTrue()
168 assertThat(CarWizardManagerHelper.isUserSetupComplete(context)).isTrue(); in testIsUserSetupCompleteTrue()
190 assertThat(CarWizardManagerHelper.isDeviceProvisioned(context)).isTrue(); in testIsDeviceProvisionedTrue()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHelperTest.java143 assertThat(mBatteryStatsHelper.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeUnAccounted_ReturnTrue()
149 assertThat(mBatteryStatsHelper.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeOverAccounted_ReturnTrue()
155 assertThat(mBatteryStatsHelper.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeIdle_ReturnTrue()
161 assertThat(mBatteryStatsHelper.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeCell_ReturnTrue()
167 assertThat(mBatteryStatsHelper.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeScreen_ReturnTrue()
174 assertThat(mBatteryStatsHelper.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeSystem_ReturnTrue()
199 assertThat(mScreenBatterySipper.shouldHide).isTrue(); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
200 assertThat(mSystemBatterySipper.shouldHide).isTrue(); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
201 assertThat(mOvercountedBatterySipper.shouldHide).isTrue(); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
202 assertThat(mUnaccountedBatterySipper.shouldHide).isTrue(); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
[all …]

12345678910>>...14