Home
last modified time | relevance | path

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

12345678910>>...15

/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DExposureChangesCategoryPreferenceControllerTest.java94 assertThat(preference.isVisible()).isTrue(); in testOnPreferenceAvailabilityUpdated()
99 assertThat(preference.isVisible()).isTrue(); in testOnPreferenceAvailabilityUpdated()
104 assertThat(preference.isVisible()).isTrue(); in testOnPreferenceAvailabilityUpdated()
119 assertThat(preference.isVisible()).isTrue(); in testUpdateState()
124 assertThat(mController.isAvailable()).isTrue(); in testIsAvailableForUi()
130 assertThat(mController.isAvailable()).isTrue(); in testIsAvailableForUi()
136 assertThat(mController.isAvailable()).isTrue(); in testIsAvailableForUi()
157 assertThat(controller.isAvailable()).isTrue(); in testIsAvailableForSearch()
164 assertThat(controller.isAvailable()).isTrue(); in testIsAvailableForSearch()
171 assertThat(controller.isAvailable()).isTrue(); in testIsAvailableForSearch()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/suggestions/
DSuggestionFeatureProviderImplTest.java133 DoubleTapPowerSuggestionActivity.class))).isTrue(); in isSuggestionCompleted_doubleTapPower_trueWhenNotAvailable()
156 DoubleTapPowerSuggestionActivity.class))).isTrue(); in isSuggestionCompleted_doubleTapPower_trueWhenVisited()
168 DoubleTwistSuggestionActivity.class))).isTrue(); in isSuggestionCompleted_doubleTwist_trueWhenNotAvailable()
195 AmbientDisplaySuggestionActivity.class))).isTrue(); in isSuggestionCompleted_ambientDisplay_trueWhenVisited()
222 AmbientDisplayPickupSuggestionActivity.class))).isTrue(); in isSuggestionCompleted_ambientDisplayPickup_trueWhenVisited()
234 new ComponentName(mContext, SwipeToNotificationSuggestionActivity.class))).isTrue(); in isSuggestionCompleted_swipeToNotification_trueWhenNotHardwareNotAvailable()
246 new ComponentName(mContext, SwipeToNotificationSuggestionActivity.class))).isTrue(); in isSuggestionCompleted_swipeToNotification_trueWhenNotAvailable()
275 new ComponentName(mContext, SwipeToNotificationSuggestionActivity.class))).isTrue(); in isSuggestionCompleted_swipeToNotification_trueWhenVisited()
289 assertThat(mProvider.isSuggestionEnabled(mContext)).isTrue(); in isSuggestionEnabled_isNotLowMemoryDevice_shouldReturnTrue()
410 assertThat(mProvider.hasUsedNightDisplay(mContext)).isTrue(); in hasUsedNightDisplay_returnsTrue_ifPreviouslyActivatedAndManual()
[all …]
DSuggestionsChecksTest.java83 assertThat(mSuggestionsChecks.isSuggestionComplete(tile)).isTrue(); in testFingerprintEnrollmentIntroductionIsCompleteWhenFingerprintAdded()
101 assertThat(mSuggestionsChecks.isSuggestionComplete(tile)).isTrue(); in testFingerprintEnrollmentIntroductionIsCompleteWhenHardwareNotDetected()
108 assertThat(mSuggestionsChecks.isSuggestionComplete(tile)).isTrue(); in testFingerprintEnrollmentIntroductionIsCompleteWhenFingerprintNotSupported()
120 assertThat(mSuggestionsChecks.isSuggestionComplete(tile)).isTrue(); in testFingerprintEnrollmentIntroductionIsCompleteWhenFingerprintDisabled()
153 .isTrue(); in hasWallpaperSet_yes_shouldReturnTrue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageFeatureProviderImplTest.java70 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_uidRoot_returnTrue()
78 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_uidSystem_returnTrue()
86 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_uidMedia_returnTrue()
94 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_appCalendar_returnTrue()
102 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_appMedia_returnTrue()
110 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_appSystemUi_returnTrue()
131 assertThat(mPowerFeatureProvider.isAdvancedUiEnabled()).isTrue(); in testIsAdvancedUiEnabled_returnTrue()
136 assertThat(mPowerFeatureProvider.isPowerAccountingToggleEnabled()).isTrue(); in testIsPowerAccountingToggleEnabled_returnTrue()
DPowerUsageAdvancedTest.java286 assertThat(mPowerUsageAdvanced.shouldHideCategory(mPowerUsageData)).isTrue(); in testShouldHideCategory_typeUnAccounted_returnTrue()
293 assertThat(mPowerUsageAdvanced.shouldHideCategory(mPowerUsageData)).isTrue(); in testShouldHideCategory_typeOverCounted_returnTrue()
301 assertThat(mPowerUsageAdvanced.shouldHideCategory(mPowerUsageData)).isTrue(); in testShouldHideCategory_typeUserAndOnlyOne_returnTrue()
310 assertThat(mPowerUsageAdvanced.shouldHideCategory(mPowerUsageData)).isTrue(); in testShouldHideCategory_typeCellWhileNotSupported_returnTrue()
341 assertThat(mPowerUsageAdvanced.shouldHideSummary(mPowerUsageData)).isTrue(); in testShouldHideSummary_typeCell_returnTrue()
348 assertThat(mPowerUsageAdvanced.shouldHideSummary(mPowerUsageData)).isTrue(); in testShouldHideSummary_typeSystem_returnTrue()
355 assertThat(mPowerUsageAdvanced.shouldHideSummary(mPowerUsageData)).isTrue(); in testShouldHideSummary_typeWifi_returnTrue()
362 assertThat(mPowerUsageAdvanced.shouldHideSummary(mPowerUsageData)).isTrue(); in testShouldHideSummary_typeBluetooth_returnTrue()
369 assertThat(mPowerUsageAdvanced.shouldHideSummary(mPowerUsageData)).isTrue(); in testShouldHideSummary_typeApp_returnTrue()
390 assertThat(mPowerUsageAdvanced.shouldShowBatterySipper(mNormalBatterySipper)).isTrue(); in testShouldShowBatterySipper_typeNormal_returnTrue()
DBatteryUtilsTest.java264 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeUnAccounted_ReturnTrue()
270 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeOverAccounted_ReturnTrue()
276 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeIdle_ReturnTrue()
282 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeCell_ReturnTrue()
288 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeScreen_ReturnTrue()
294 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeWifi_ReturnTrue()
300 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeBluetooth_ReturnTrue()
308 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeSystem_ReturnTrue()
324 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeService_ReturnTrue()
437 PACKAGE_NAME)).isTrue(); in testBackgroundRestrictionOn_restrictionOn_returnTrue()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DDownloadsDeletionTypeTest.java80 assertThat(fileSet.contains(temp)).isTrue(); in testFetchDownloads()
81 assertThat(fileSet.contains(temp2)).isTrue(); in testFetchDownloads()
93 assertThat(mDeletion.isChecked(temp)).isTrue(); in testSetChecked()
99 assertThat(mDeletion.isChecked(temp)).isTrue(); in testSetChecked()
114 assertThat(mDeletion.isChecked(temp)).isTrue(); in testUncheckedFilesDoNotCountForSize()
139 assertThat(mDeletion.isChecked(temp2)).isTrue(); in testSaveAndRestoreRemembersUncheckedFiles()
174 assertThat(mDeletion.isEmpty()).isTrue(); in testLoadingState_completeEmptyOnNothingFound()
186 assertThat(mDeletion.isComplete()).isTrue(); in testLoadingState_completeOnDeletableContentFound()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleDatabaseOperations.java269 Assert.isTrue(cursor.getCount() == 1); in getExistingConversation()
303 Assert.isTrue(cursor.getCount() == 1); in getThreadId()
370 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in createConversationInTransaction()
373 Assert.isTrue(!participant.isSelf()); in createConversationInTransaction()
407 Assert.isTrue(conversationRowId != -1); in createConversationInTransaction()
563 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in updateConversationMetadataInTransaction()
612 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in updateConversationArchiveStatusInTransaction()
719 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in updateConversationDraftSnippetAndPreviewInTransaction()
784 Assert.isTrue(exists); in updateConversationRow()
800 Assert.isTrue(exists); in updateMessageRow()
[all …]
DBitmapPool.java86 Assert.isTrue(maxSize > 0); in BitmapPool()
87 Assert.isTrue(!TextUtils.isEmpty(name)); in BitmapPool()
191 Assert.isTrue(width > 0); in decodeSampledBitmapFromResource()
192 Assert.isTrue(height > 0); in decodeSampledBitmapFromResource()
230 Assert.isTrue(width > 0); in decodeSampledBitmapFromInputStream()
231 Assert.isTrue(height > 0); in decodeSampledBitmapFromInputStream()
270 Assert.isTrue(width > 0); in decodeByteArray()
271 Assert.isTrue(height > 0); in decodeByteArray()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DInstalledAppCounterTest.java154 mPackageManager, mApp1)).isTrue(); in testIncludeInCount()
156 mPackageManager, mApp2)).isTrue(); in testIncludeInCount()
158 mPackageManager, mApp3)).isTrue(); in testIncludeInCount()
162 mPackageManager, mApp5)).isTrue(); in testIncludeInCount()
164 mPackageManager, mApp6)).isTrue(); in testIncludeInCount()
167 mPackageManager, mApp1)).isTrue(); in testIncludeInCount()
171 mPackageManager, mApp3)).isTrue(); in testIncludeInCount()
175 mPackageManager, mApp5)).isTrue(); in testIncludeInCount()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoaderTest.java130 assertThat(AppsAsyncLoader.FILTER_NO_THRESHOLD.filterApp(app)).isTrue(); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid()
138 assertThat(AppsAsyncLoader.FILTER_USAGE_STATS.filterApp(app)).isTrue(); in test_unusedApp_isValid()
146 assertThat(AppsAsyncLoader.FILTER_NO_THRESHOLD.filterApp(app)).isTrue(); in test_noThresholdFilter_unusedApp_isValid()
174 assertThat(AppsAsyncLoader.FILTER_NO_THRESHOLD.filterApp(app)).isTrue(); in test_noThresholdFilter_oldAppRecentlyUsed_isValid()
181 assertThat(AppsAsyncLoader.FILTER_USAGE_STATS.filterApp(app)).isTrue(); in test_oldUnusedApp_isValid()
188 assertThat(AppsAsyncLoader.FILTER_NO_THRESHOLD.filterApp(app)).isTrue(); in test_noThresholdFilter_oldUnusedApp_isValid()
255 assertThat(containsPackage(infos, PACKAGE_CLEARABLE)).isTrue(); in test_multipleApps_processCorrectly()
293 assertThat(containsPackage(infos, PACKAGE_CLEARABLE)).isTrue(); in test_noThresholdFilter_ignoresUsageForFiltering()
294 assertThat(containsPackage(infos, PACKAGE_TOO_NEW_TO_DELETE)).isTrue(); in test_noThresholdFilter_ignoresUsageForFiltering()
303 assertThat(AppsAsyncLoader.FILTER_USAGE_STATS.filterApp(app)).isTrue(); in testAppUsedOverOneYearAgoIsValid()
DAppStateUsageStatsBridgeTest.java126 assertThat(AppStateUsageStatsBridge.FILTER_NO_THRESHOLD.filterApp(app)).isTrue(); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid()
140 assertThat(AppStateUsageStatsBridge.FILTER_USAGE_STATS.filterApp(app)).isTrue(); in test_unusedApp_isValid()
154 assertThat(AppStateUsageStatsBridge.FILTER_NO_THRESHOLD.filterApp(app)).isTrue(); in test_noThresholdFilter_unusedApp_isValid()
214 assertThat(AppStateUsageStatsBridge.FILTER_NO_THRESHOLD.filterApp(app)).isTrue(); in test_noThresholdFilter_oldAppRecentlyUsed_isValid()
229 assertThat(AppStateUsageStatsBridge.FILTER_USAGE_STATS.filterApp(app)).isTrue(); in test_oldUnusedApp_isValid()
244 assertThat(AppStateUsageStatsBridge.FILTER_NO_THRESHOLD.filterApp(app)).isTrue(); in test_noThresholdFilter_oldUnusedApp_isValid()
334 assertThat(AppStateUsageStatsBridge.FILTER_USAGE_STATS.filterApp(clearable)).isTrue(); in test_multipleApps_processCorrectly()
363 assertThat(AppStateUsageStatsBridge.FILTER_NO_THRESHOLD.filterApp(clearable)).isTrue(); in test_noThresholdFilter_ignoresUsageForFiltering()
364 assertThat(AppStateUsageStatsBridge.FILTER_NO_THRESHOLD.filterApp(tooNewtoDelete)).isTrue(); in test_noThresholdFilter_ignoresUsageForFiltering()
381 assertThat(AppStateUsageStatsBridge.FILTER_USAGE_STATS.filterApp(app)).isTrue(); in testAppUsedOverOneYearAgoIsValid()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DAssert.java26 public static void isTrue(boolean condition) { in isTrue() method in Assert
34 isTrue(sIsMainThreadForTest); in isMainThread()
37 isTrue(Looper.getMainLooper().equals(Looper.myLooper())); in isMainThread()
42 isTrue(!sIsMainThreadForTest); in isNotMainThread()
45 isTrue(!Looper.getMainLooper().equals(Looper.myLooper())); in isNotMainThread()
/packages/services/Telephony/src/com/android/phone/
DAssert.java29 public static void isTrue(boolean condition) { in isTrue() method in Assert
37 isTrue(sIsMainThreadForTest); in isMainThread()
40 isTrue(Looper.getMainLooper().equals(Looper.myLooper())); in isMainThread()
45 isTrue(!sIsMainThreadForTest); in isNotMainThread()
48 isTrue(!Looper.getMainLooper().equals(Looper.myLooper())); in isNotMainThread()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDevicePreferenceTest.java136 assertThat(mPreference.shouldHideSecondTarget()).isTrue(); in shouldHideSecondTarget_noDevice_shouldReturnTrue()
143 assertThat(mPreference.shouldHideSecondTarget()).isTrue(); in shouldHideSecondTarget_notBond_shouldReturnTrue()
153 assertThat(mPreference.shouldHideSecondTarget()).isTrue(); in shouldHideSecondTarget_hasUserRestriction_shouldReturnTrue()
191 assertThat(preference.isVisible()).isTrue(); in testVisible_notVisibleThenVisible()
203 assertThat(preference.isVisible()).isTrue(); in testVisible_visibleThenNotVisible()
218 assertThat(preference.isVisible()).isTrue(); in testVisible_alwaysVisibleWhenEnabled()
221 assertThat(preference.isVisible()).isTrue(); in testVisible_alwaysVisibleWhenEnabled()
DBluetoothDetailsProfilesControllerTest.java232 assertThat(switches.get(0).isChecked()).isTrue(); in multipleProfiles()
236 assertThat(switches.get(0).isEnabled()).isTrue(); in multipleProfiles()
237 assertThat(switches.get(1).isEnabled()).isTrue(); in multipleProfiles()
260 assertThat(pref.isChecked()).isTrue(); in disableThenReenableOneProfile()
270 assertThat(pref.isChecked()).isTrue(); in disableThenReenableOneProfile()
271 assertThat(mConnectableProfiles.get(0).isPreferred(mDevice)).isTrue(); in disableThenReenableOneProfile()
300 assertThat(pref.isChecked()).isTrue(); in pbapProfileStartsEnabled()
423 assertThat(audioPref.isVisible()).isTrue(); in highQualityAudio_mediaAudioDisabledAndReEnabled()
433 assertThat(highQualityAudioPref.isVisible()).isTrue(); in highQualityAudio_mediaAudioDisabledAndReEnabled()
DDeviceListPreferenceFragmentTest.java93 assertThat(mFragment.mScanEnabled).isTrue(); in testEnableDisableScanning_testStateAfterEanbleDisable()
103 assertThat(mFragment.mScanEnabled).isTrue(); in testScanningStateChanged_testScanStarted()
115 assertThat(mFragment.mScanEnabled).isTrue(); in testScanningStateChanged_testScanFinished()
125 assertThat(mFragment.mScanEnabled).isTrue(); in testScanningStateChanged_testScanStateMultiple()
151 assertThat(mFragment.mScanEnabled).isTrue(); in testScanningStateChanged_testScanFinishedAfterDisable()
165 assertThat(mFragment.mScanEnabled).isTrue(); in testScanningStateChanged_testScanStartedAfterDisable()
DDeviceProfilesSettingsTest.java108 assertThat(box.isEnabled()).isTrue(); in deviceHasHighQualityAudio()
109 assertThat(box.isChecked()).isTrue(); in deviceHasHighQualityAudio()
147 assertThat(audioBox.isChecked()).isTrue(); in mediaAudioGetsDisabledAndReEnabled()
149 assertThat(highQualityAudioBox.isChecked()).isTrue(); in mediaAudioGetsDisabledAndReEnabled()
169 assertThat(audioBox.isChecked()).isTrue(); in mediaAudioGetsDisabledAndReEnabled()
171 assertThat(highQualityAudioBox.isChecked()).isTrue(); in mediaAudioGetsDisabledAndReEnabled()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DConversationData.java209 Assert.isTrue(data.getCount() == 1); in onLoadFinished()
471 Assert.isTrue(conversationId != null); in ConversationData()
595 Assert.isTrue(TextUtils.equals(mConversationId, message.getConversationId())); in sendMessage()
596 Assert.isTrue(binding.getData() == this); in sendMessage()
652 Assert.isTrue(binding.getData() == this); in downloadMessage()
658 Assert.isTrue(binding.getData() == this); in resendMessage()
664 Assert.isTrue(binding.getData() == this); in deleteMessage()
670 Assert.isTrue(binding.getData() == this); in deleteConversation()
681 Assert.isTrue(binding.getData() == this); in archiveConversation()
686 Assert.isTrue(binding.getData() == this); in unarchiveConversation()
DBlockedParticipantsData.java55 Assert.isTrue(id == BLOCKED_PARTICIPANTS_LOADER); in onCreateLoader()
69 Assert.isTrue(loader.getId() == BLOCKED_PARTICIPANTS_LOADER); in onLoadFinished()
71 Assert.isTrue(isBound(cursorLoader.getBindingId())); in onLoadFinished()
77 Assert.isTrue(loader.getId() == BLOCKED_PARTICIPANTS_LOADER); in onLoaderReset()
79 Assert.isTrue(isBound(cursorLoader.getBindingId())); in onLoaderReset()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DManageApplicationsUnitTest.java52 assertThat(filter.filterApp(appEntry)).isTrue(); in getCompositeFilter_filtersVolumeForAudio()
68 assertThat(filter.filterApp(appEntry)).isTrue(); in getCompositeFilter_filtersVolumeForVideo()
84 assertThat(filter.filterApp(appEntry)).isTrue(); in getCompositeFilter_filtersVolumeForGames()
117 assertThat(composedFilter.filterApp(appEntry)).isTrue(); in getCompositeFilter_worksWithInstantApps()
133 assertThat(filter.filterApp(appEntry)).isTrue(); in getCompositeFilter_worksForLegacyPrivateSettings()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/anomaly/
DAnomalyDetectionPolicyTest.java66 assertThat(anomalyDetectionPolicy.anomalyDetectionEnabled).isTrue(); in testInit_usesConfigValues()
69 assertThat(anomalyDetectionPolicy.wakeupAlarmDetectionEnabled).isTrue(); in testInit_usesConfigValues()
73 assertThat(anomalyDetectionPolicy.bluetoothScanDetectionEnabled).isTrue(); in testInit_usesConfigValues()
106 Anomaly.AnomalyType.WAKEUP_ALARM)).isTrue(); in testIsAnomalyDetectorEnabled_usesConfigValues()
108 Anomaly.AnomalyType.BLUETOOTH_SCAN)).isTrue(); in testIsAnomalyDetectorEnabled_usesConfigValues()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiUtilsTest.java36 assertThat(WifiUtils.isSSIDTooLong("☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎")).isTrue(); in testSSID()
39 assertThat(WifiUtils.isSSIDTooShort("")).isTrue(); in testSSID()
47 assertThat(WifiUtils.isPasswordValid("12345678")).isTrue(); in testPassword()
48 assertThat(WifiUtils.isPasswordValid("1234567890")).isTrue(); in testPassword()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DCondition.java13 public abstract boolean isTrue() throws Throwable; in isTrue() method in Condition
22 public boolean isTrue() throws Throwable { in runOnUiThread()
30 value.set(condition.isTrue()); in runOnUiThread()
49 public boolean isTrue() {
/packages/apps/Messaging/src/com/android/messaging/util/
DAvatarUriUtil.java99 Assert.isTrue(!participants.isEmpty()); in createAvatarUri()
121 Assert.isTrue(!avatarUris.isEmpty()); in joinAvatarUriToGroup()
125 Assert.isTrue(AvatarUriUtil.isAvatarUri(firstAvatar)); in joinAvatarUriToGroup()
137 Assert.isTrue(UriUtil.isLocalResourceUri(uri) || AvatarUriUtil.isAvatarUri(uri)); in joinAvatarUriToGroup()
199 Assert.isTrue(participantData.isActiveSubscription()); in createAvatarUri()
200 Assert.isTrue(!TextUtils.isEmpty(slotIdentifier) || in createAvatarUri()

12345678910>>...15