Home
last modified time | relevance | path

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

12345678910>>...34

/packages/apps/TV/tests/unit/src/com/android/tv/dvr/recorder/
DDvrRecordingServiceTest.java63 assertThat(getService().mInForeground).isTrue(); in testStartService_null()
64 assertThat(getService().mIsRecording).isTrue(); in testStartService_null()
74 assertThat(getService().mInForeground).isTrue(); in testStartService_noUpcomingRecording()
82 assertThat(getService().mInForeground).isTrue(); in testStartService_noUpcomingRecording()
83 assertThat(getService().mForegroundForUpcomingRecording).isTrue(); in testStartService_noUpcomingRecording()
84 assertThat(getService().mIsRecording).isTrue(); in testStartService_noUpcomingRecording()
96 assertThat(getService().mInForeground).isTrue(); in testStartService_noUpcomingRecording()
97 assertThat(getService().mForegroundForUpcomingRecording).isTrue(); in testStartService_noUpcomingRecording()
98 assertThat(getService().mIsRecording).isTrue(); in testStartService_noUpcomingRecording()
100 assertThat(getService().mInForeground).isTrue(); in testStartService_noUpcomingRecording()
[all …]
/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/
DLiveDataFunctionsTest.java64 assertThat(observer.hasBeenNotified()).isTrue(); in testNullLiveData()
74 assertThat(observer.hasBeenNotified()).isTrue(); in testTrueLiveData()
75 assertThat(observer.getObservedValue()).isTrue(); in testTrueLiveData()
76 assertThat(trueLiveData().getValue()).isTrue(); in testTrueLiveData()
84 assertThat(observer.hasBeenNotified()).isTrue(); in testFalseLiveData()
118 assertThat(observer.hasBeenNotified()).isTrue(); in testDistinct()
126 assertThat(observer.hasBeenNotified()).isTrue(); in testDistinct()
139 assertThat(observer.hasBeenNotified()).isTrue(); in testFreezable()
145 assertThat(observer.hasBeenNotified()).isTrue(); in testFreezable()
156 assertThat(observer.hasBeenNotified()).isTrue(); in testFreezable()
[all …]
DLoadingSwitchMapTest.java72 assertThat(mObserver.hasBeenNotified()).isTrue(); in testIsLoading_initializedTrigger()
73 assertThat(mObserver.getObservedValue().isLoading()).isTrue(); in testIsLoading_initializedTrigger()
86 assertThat(mObserver.hasBeenNotified()).isTrue(); in testIsLoading_alreadyLoaded()
99 assertThat(mObserver.hasBeenNotified()).isTrue(); in testIsLoading_normalFlow()
100 assertThat(mObserver.getObservedValue().isLoading()).isTrue(); in testIsLoading_normalFlow()
119 assertThat(mObserver.hasBeenNotified()).isTrue(); in testIsLoading_secondLoad()
120 assertThat(mObserver.getObservedValue().isLoading()).isTrue(); in testIsLoading_secondLoad()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipPolicyTest.java67 assertThat(batteryTipPolicy.batteryTipEnabled).isTrue(); in testInit_usesConfigValues()
70 assertThat(batteryTipPolicy.highUsageEnabled).isTrue(); in testInit_usesConfigValues()
74 assertThat(batteryTipPolicy.appRestrictionEnabled).isTrue(); in testInit_usesConfigValues()
76 assertThat(batteryTipPolicy.reducedBatteryEnabled).isTrue(); in testInit_usesConfigValues()
82 assertThat(batteryTipPolicy.testBatterySaverTip).isTrue(); in testInit_usesConfigValues()
84 assertThat(batteryTipPolicy.testSmartBatteryTip).isTrue(); in testInit_usesConfigValues()
85 assertThat(batteryTipPolicy.testLowBatteryTip).isTrue(); in testInit_usesConfigValues()
95 assertThat(batteryTipPolicy.batteryTipEnabled).isTrue(); in testInit_defaultValues()
96 assertThat(batteryTipPolicy.summaryEnabled).isTrue(); in testInit_defaultValues()
97 assertThat(batteryTipPolicy.batterySaverTipEnabled).isTrue(); in testInit_defaultValues()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DVendorServiceInfoTest.java68 assertThat(info.isSystemUserService()).isTrue(); in testServiceNameWithDefaults()
69 assertThat(info.isForegroundUserService()).isTrue(); in testServiceNameWithDefaults()
70 assertThat(info.shouldStartOnUnlock()).isTrue(); in testServiceNameWithDefaults()
85 assertThat(info.shouldBeBound()).isTrue(); in bindService()
93 assertThat(info.shouldBeStartedInForeground()).isTrue(); in startServiceInForeground()
105 assertThat(info.shouldStartOnUnlock()).isTrue(); in triggerUnlocked()
117 assertThat(info.isForegroundUserService()).isTrue(); in userScopeForeground()
125 assertThat(info.isSystemUserService()).isTrue(); in userScopeSystem()
131 assertThat(info.isForegroundUserService()).isTrue(); in userScopeAll()
132 assertThat(info.isSystemUserService()).isTrue(); in userScopeAll()
[all …]
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/util/
DCommonUtilsTest.java39 assertThat(file.createNewFile()).isTrue(); in deleteDirOrFile_file()
40 assertThat(CommonUtils.deleteDirOrFile(file)).isTrue(); in deleteDirOrFile_file()
47 assertThat(dir.mkdirs()).isTrue(); in deleteDirOrFile_Dir()
48 assertThat(new File(dir, "file").createNewFile()).isTrue(); in deleteDirOrFile_Dir()
49 assertThat(CommonUtils.deleteDirOrFile(dir)).isTrue(); in deleteDirOrFile_Dir()
56 assertThat(dir.mkdirs()).isTrue(); in deleteDirOrFile_unreadableDir()
57 assertThat(new File(dir, "file").createNewFile()).isTrue(); in deleteDirOrFile_unreadableDir()
62 assertThat(dir.exists()).isTrue(); in deleteDirOrFile_unreadableDir()
69 assertThat(subDir.mkdirs()).isTrue(); in deleteDirOrFile_unreadableSubDir()
71 assertThat(file.createNewFile()).isTrue(); in deleteDirOrFile_unreadableSubDir()
[all …]
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DBasicKeyChainServiceTest.java109 assertThat(mIsSupportServiceBound).isTrue(); in setUp()
111 assertThat(mIsKeyChainServiceBound).isTrue(); in setUp()
138 assertThat(mTestSupportService.keystoreReset()).isTrue(); in testCanAccessKeyAfterGettingGrant()
149 assertThat(mTestSupportService.keystoreReset()).isTrue(); in testInstallAndRemoveKeyPair()
160 ALIAS_IMPORTED)).isTrue(); in testInstallAndRemoveKeyPair()
173 assertThat(mTestSupportService.removeKeyPair(ALIAS_IMPORTED)).isTrue(); in testInstallAndRemoveKeyPair()
179 assertThat(mTestSupportService.keystoreReset()).isTrue(); in testUserSelectability()
185 ALIAS_IMPORTED)).isTrue(); in testUserSelectability()
189 assertThat(mKeyChainService.isUserSelectable(ALIAS_IMPORTED)).isTrue(); in testUserSelectability()
194 assertThat(mTestSupportService.removeKeyPair(ALIAS_IMPORTED)).isTrue(); in testUserSelectability()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DMobileNetworkSwitchControllerTest.java115 assertThat(mSwitchBar.isShowing()).isTrue(); in displayPreference_oneEnabledSubscription_switchBarNotHidden()
123 assertThat(mSwitchBar.isShowing()).isTrue(); in displayPreference_oneDisabledSubscription_switchBarNotHidden()
130 assertThat(mSwitchBar.isShowing()).isTrue(); in displayPreference_subscriptionEnabled_switchIsOn()
131 assertThat(mSwitchBar.isChecked()).isTrue(); in displayPreference_subscriptionEnabled_switchIsOn()
138 assertThat(mSwitchBar.isShowing()).isTrue(); in displayPreference_subscriptionDisabled_switchIsOff()
146 assertThat(mSwitchBar.isShowing()).isTrue(); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly()
147 assertThat(mSwitchBar.isChecked()).isTrue(); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly()
158 assertThat(mSwitchBar.isShowing()).isTrue(); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledFailed()
159 assertThat(mSwitchBar.isChecked()).isTrue(); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledFailed()
162 assertThat(mSwitchBar.isChecked()).isTrue(); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledFailed()
[all …]
DSignalStrengthListenerTest.java102 assertThat(captor1.getValue() != captor2.getValue()).isTrue(); in updateSubscriptionIds_beforeResume_startedListening()
130 assertThat(captor1.getAllValues().get(0) == captor1.getAllValues().get(1)).isTrue(); in updateSubscriptionIds_twoCalls_oneIdRemoved()
149 assertThat(captor1.getValue() != captor2.getValue()).isTrue(); in updateSubscriptionIds_twoCalls_twoIdsRemovedOneAdded()
150 assertThat(captor1.getAllValues().get(0) == captor1.getAllValues().get(1)).isTrue(); in updateSubscriptionIds_twoCalls_twoIdsRemovedOneAdded()
151 assertThat(captor2.getAllValues().get(0) == captor2.getAllValues().get(1)).isTrue(); in updateSubscriptionIds_twoCalls_twoIdsRemovedOneAdded()
170 assertThat(captor1.getAllValues().get(0) == captor1.getAllValues().get(1)).isTrue(); in updateSubscriptionIds_thenPauseResume_correctlyStartsAndStops()
171 assertThat(captor1.getAllValues().get(0) == captor1.getAllValues().get(2)).isTrue(); in updateSubscriptionIds_thenPauseResume_correctlyStartsAndStops()
173 assertThat(captor2.getAllValues().get(0) == captor2.getAllValues().get(1)).isTrue(); in updateSubscriptionIds_thenPauseResume_correctlyStartsAndStops()
174 assertThat(captor2.getAllValues().get(0) == captor2.getAllValues().get(2)).isTrue(); in updateSubscriptionIds_thenPauseResume_correctlyStartsAndStops()
DMobileNetworkUtilsTest.java174 assertThat(MobileNetworkUtils.isCdmaOptions(mContext, SUB_ID_1)).isTrue(); in isCdmaOptions_phoneTypeCdma_returnTrue()
186 assertThat(MobileNetworkUtils.isCdmaOptions(mContext, SUB_ID_1)).isTrue(); in isCdmaOptions_worldModeWithGsmWcdma_returnTrue()
196 assertThat(MobileNetworkUtils.isCdmaOptions(mContext, SUB_ID_1)).isTrue(); in isCdmaOptions_carrierWorldModeWithoutHideCarrier_returnTrue()
232 .isTrue(); in shouldDisplayNetworkSelectOptions_allCheckPass_returnTrue()
259 assertThat(MobileNetworkUtils.shouldSpeciallyUpdateGsmCdma(mContext, SUB_ID_1)).isTrue(); in shouldSpeciallyUpdateGsmCdma_ModeLteTdscdmaGsm_returnTrue()
270 assertThat(MobileNetworkUtils.shouldSpeciallyUpdateGsmCdma(mContext, SUB_ID_1)).isTrue(); in shouldSpeciallyUpdateGsmCdma_ModeLteTdscdmaGsmWcdma_returnTrue()
281 assertThat(MobileNetworkUtils.shouldSpeciallyUpdateGsmCdma(mContext, SUB_ID_1)).isTrue(); in shouldSpeciallyUpdateGsmCdma_ModeLteTdscdma_returnTrue()
292 assertThat(MobileNetworkUtils.shouldSpeciallyUpdateGsmCdma(mContext, SUB_ID_1)).isTrue(); in shouldSpeciallyUpdateGsmCdma_ModeLteTdscdmaWcdma_returnTrue()
303 assertThat(MobileNetworkUtils.shouldSpeciallyUpdateGsmCdma(mContext, SUB_ID_1)).isTrue(); in shouldSpeciallyUpdateGsmCdma_ModeLteTdscdmaCdmaEvdoGsmWcdma_returnTrue()
314 assertThat(MobileNetworkUtils.shouldSpeciallyUpdateGsmCdma(mContext, SUB_ID_1)).isTrue(); in shouldSpeciallyUpdateGsmCdma_ModeLteCdmaEvdoGsmWcdma_returnTrue()
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DCarUserManagerHelperTest.java123 assertThat(mCarUserManagerHelper.isHeadlessSystemUser()).isTrue(); in checkHeadlessSystemUserFlag()
131 assertThat(mCarUserManagerHelper.isSystemUser(testInfo)).isTrue(); in checkIsSystemUser()
216 assertThat(mCarUserManagerHelper.canUserBeRemoved(testInfo)).isTrue(); in testUserCanBeRemoved()
223 assertThat(mCarUserManagerHelper.canCurrentProcessAddUsers()).isTrue(); in testCurrentProcessCanAddUsers()
234 assertThat(mCarUserManagerHelper.canCurrentProcessRemoveUsers()).isTrue(); in testCurrentProcessCanRemoveUsers()
245 assertThat(mCarUserManagerHelper.canCurrentProcessSwitchUsers()).isTrue(); in testCurrentProcessCanSwitchUsers()
254 assertThat(mCarUserManagerHelper.canCurrentProcessModifyAccounts()).isTrue(); in testCurrentGuestProcessCannotModifyAccounts()
263 assertThat(mCarUserManagerHelper.canCurrentProcessModifyAccounts()).isTrue(); in testCurrentDemoProcessCannotModifyAccounts()
272 assertThat(mCarUserManagerHelper.canCurrentProcessModifyAccounts()).isTrue(); in testCurrentDisallowModifyAccountsProcessIsEnforced()
323 assertThat(mCarUserManagerHelper.isUserLimitReached()).isTrue(); in testHeadlessSystemUser_IsUserLimitReached()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageFeatureProviderImplTest.java74 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_uidRoot_returnTrue()
82 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_uidSystem_returnTrue()
90 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_uidMedia_returnTrue()
98 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_appCalendar_returnTrue()
106 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_appMedia_returnTrue()
114 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_appSystemUi_returnTrue()
135 assertThat(mPowerFeatureProvider.isAdvancedUiEnabled()).isTrue(); in testIsAdvancedUiEnabled_returnTrue()
140 assertThat(mPowerFeatureProvider.isPowerAccountingToggleEnabled()).isTrue(); in testIsPowerAccountingToggleEnabled_returnTrue()
148 assertThat(mPowerFeatureProvider.isSmartBatterySupported()).isTrue(); in testIsSmartBatterySupported_smartBatterySupported_returnTrue()
DBatteryUtilsTest.java308 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeUnAccounted_ReturnTrue()
314 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeOverAccounted_ReturnTrue()
320 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeIdle_ReturnTrue()
326 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeCell_ReturnTrue()
332 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeScreen_ReturnTrue()
338 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeWifi_ReturnTrue()
344 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeBluetooth_ReturnTrue()
352 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeSystem_ReturnTrue()
368 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeService_ReturnTrue()
377 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_hiddenSystemModule_ReturnTrue()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DExternalSourcesDetailsTest.java106 assertThat(UserHandle.isCore(mockUid)).isTrue(); in setCanInstallApps_false_shouldNotKillCoreUid()
151 assertThat(mFragment.refreshUi()).isTrue(); in refreshUi_hasApplicationInfo_shouldReturnTrue()
185 assertThat(fragment.refreshUi()).isTrue(); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference()
190 UserHandle.of(UserHandle.myUserId()))).isTrue(); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference()
191 assertThat(mSwitchPref.isDisabledByAdmin()).isTrue(); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference()
224 assertThat(fragment.refreshUi()).isTrue(); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference()
229 UserHandle.of(UserHandle.myUserId()))).isTrue(); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference()
230 assertThat(mSwitchPref.isDisabledByAdmin()).isTrue(); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference()
265 assertThat(fragment.refreshUi()).isTrue(); in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
270 UserHandle.of(UserHandle.myUserId()))).isTrue(); in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
[all …]
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/activecall/
DOnGoingCallControllerBarFragmentTest.java113 assertThat(muteButton.hasOnClickListeners()).isTrue(); in testMuteButton()
117 assertThat(muteButton.isActivated()).isTrue(); in testMuteButton()
134 assertThat(dialpadButton.hasOnClickListeners()).isTrue(); in testDialpadButton()
139 assertThat(dialpadButton.isActivated()).isTrue(); in testDialpadButton()
140 assertThat(mDialpadStateLiveData.getValue()).isTrue(); in testDialpadButton()
153 assertThat(endCallButton.hasOnClickListeners()).isTrue(); in testEndCallButton()
176 assertThat(audioRouteButton.hasOnClickListeners()).isTrue(); in testAudioRouteButtonView_withMultipleAudioRoutes()
185 assertThat(pauseButton.hasOnClickListeners()).isTrue(); in testClickPauseButton_activeCall()
186 assertThat(pauseButton.isEnabled()).isTrue(); in testClickPauseButton_activeCall()
203 assertThat(pauseButton.isEnabled()).isTrue(); in testClickPauseButton_onholdCall()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DWifiTetherFragmentTest.java81 assertThat(findSwitch(mFragment.requireActivity()).isChecked()).isTrue(); in onStart_tetherStateOn_shouldReturnSwitchStateOn()
102 assertThat(getShadowConnectivityManager().verifyStartTetheringCalled(1)).isTrue(); in onSwitchOn_shouldAttemptTetherOn()
104 == ConnectivityManager.TETHERING_WIFI).isTrue(); in onSwitchOn_shouldAttemptTetherOn()
115 assertThat(getShadowConnectivityManager().verifyStopTetheringCalled(1)).isTrue(); in onSwitchOff_shouldAttemptTetherOff()
117 == ConnectivityManager.TETHERING_WIFI).isTrue(); in onSwitchOff_shouldAttemptTetherOff()
139 assertThat(findSwitch(mFragment.requireActivity()).isEnabled()).isTrue(); in onTetherEnabled_shouldReturnSwitchStateEnabledAndOn()
140 assertThat(findSwitch(mFragment.requireActivity()).isChecked()).isTrue(); in onTetherEnabled_shouldReturnSwitchStateEnabledAndOn()
151 assertThat(findSwitch(mFragment.requireActivity()).isEnabled()).isTrue(); in onTetherDisabled_shouldReturnSwitchStateEnabledAndOff()
165 assertThat(findSwitch(mFragment.requireActivity()).isEnabled()).isTrue(); in onEnableTetherFailed_shouldReturnSwitchStateEnabledAndOff()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DChooseLockGenericTest.java91 assertThat(mActivity.isFinishing()).isTrue(); in onCreate_deviceNotProvisioned_shouldFinishActivity()
220 assertThat(mActivity.isFinishing()).isTrue(); in onActivityResult_requestcode101_shouldFinish()
230 assertThat(mActivity.isFinishing()).isTrue(); in onActivityResult_requestcode102_shouldFinish()
241 assertThat(mActivity.isFinishing()).isTrue(); in onActivityResult_requestcode103_shouldFinish()
252 assertThat(mActivity.isFinishing()).isTrue(); in onActivityResult_requestcode104_shouldFinish()
266 assertThat(result).isTrue(); in onPreferenceTreeClick_fingerprintPassesMinComplexityInfoOntoNextActivity()
268 assertThat(actualIntent.hasExtra(EXTRA_KEY_REQUESTED_MIN_COMPLEXITY)).isTrue(); in onPreferenceTreeClick_fingerprintPassesMinComplexityInfoOntoNextActivity()
271 assertThat(actualIntent.hasExtra(EXTRA_KEY_CALLER_APP_NAME)).isTrue(); in onPreferenceTreeClick_fingerprintPassesMinComplexityInfoOntoNextActivity()
287 assertThat(result).isTrue(); in onPreferenceTreeClick_facePassesMinComplexityInfoOntoNextActivity()
289 assertThat(actualIntent.hasExtra(EXTRA_KEY_REQUESTED_MIN_COMPLEXITY)).isTrue(); in onPreferenceTreeClick_facePassesMinComplexityInfoOntoNextActivity()
[all …]
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/connectivity/
DWifiConfigHelperTest.java47 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
49 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
51 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
53 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
55 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
57 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
59 assertThat(isDoubleQuoted(s)).isTrue(); in testSetConfigSsid()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DMasterCheckBoxPreferenceTest.java68 assertThat(checkBox.isChecked()).isTrue(); in setChecked_shouldUpdateCheckBoxCheckedState()
83 assertThat(checkBox.isEnabled()).isTrue(); in setEnabled_shouldUpdateCheckBoxEnabledState()
98 assertThat(mPreference.isEnabled()).isTrue(); in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState()
102 assertThat(mPreference.isEnabled()).isTrue(); in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState()
103 assertThat(checkBox.isEnabled()).isTrue(); in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState()
116 assertThat(mPreference.isEnabled()).isTrue(); in onBindViewHolder_shouldSetCheckboxEnabledState()
120 assertThat(mPreference.isEnabled()).isTrue(); in onBindViewHolder_shouldSetCheckboxEnabledState()
121 assertThat(checkBox.isEnabled()).isTrue(); in onBindViewHolder_shouldSetCheckboxEnabledState()
137 assertThat(checkBox.isChecked()).isTrue(); in clickWidgetView_shouldToggleCheckBox()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DResetNetworkConfirmFragmentTest.java117 assertThat(ShadowConnectivityManager.verifyFactoryResetCalled(/* numTimes */ 1)).isTrue(); in testResetButtonClick_connectivityManagerReset()
123 assertThat(ShadowWifiManager.verifyFactoryResetCalled(/* numTimes */ 1)).isTrue(); in testResetButtonClick_wifiManagerReset()
129 assertThat(ShadowBluetoothAdapter.verifyFactoryResetCalled(/* numTimes */ 1)).isTrue(); in testResetButtonClick_bluetoothAdapterReset()
143 assertThat(ShadowRecoverySystem.verifyWipeEuiccDataCalled(/* numTimes */ 1)).isTrue(); in testResetButtonClick_euiccResetEnabled_euiccReset()
164 SubscriptionManager.INVALID_SUBSCRIPTION_ID, /* numTimes */ 1)).isTrue(); in testResetButtonClick_emptyNetworkSubscriptionId_telephonyNotReset()
171 assertThat(ShadowTelephonyManager.verifyFactoryResetCalled(123, /* numTimes */ 1)).isTrue(); in testResetButtonClick_validNetworkSubscriptionId_telephonyReset()
179 1)).isTrue(); in testResetButtonClick_emptyNetworkSubscriptionId_networkManagerNotReset()
187 ShadowTelephonyManager.SUBSCRIBER_ID, /* numTimes */ 1)).isTrue(); in testResetButtonClick_validNetworkSubscriptionId_networkManagerReset()
207 assertThat(uri.toString().contains("subId/123")).isTrue(); in testResetButtonClick_validNetworkSubscriptionId_restoreDefaultApn()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DDownloadsDeletionTypeTest.java79 assertThat(fileSet.contains(temp)).isTrue(); in testFetchDownloads()
80 assertThat(fileSet.contains(temp2)).isTrue(); in testFetchDownloads()
92 assertThat(mDeletion.isChecked(temp)).isTrue(); in testSetChecked()
98 assertThat(mDeletion.isChecked(temp)).isTrue(); in testSetChecked()
113 assertThat(mDeletion.isChecked(temp)).isTrue(); in testUncheckedFilesDoNotCountForSize()
138 assertThat(mDeletion.isChecked(temp2)).isTrue(); in testSaveAndRestoreRemembersUncheckedFiles()
173 assertThat(mDeletion.isEmpty()).isTrue(); in testLoadingState_completeEmptyOnNothingFound()
185 assertThat(mDeletion.isComplete()).isTrue(); in testLoadingState_completeOnDeletableContentFound()
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DChannelDataManagerTest.java89 .isTrue(); in setUp()
142 .isTrue(); in startAndWaitForComplete()
161 assertThat(mChannelDataManager.isDbLoadFinished()).isTrue(); in testIsDbLoadFinished()
191 assertWithMessage("Cannot find (" + channel + ")").that(found).isTrue(); in testGetChannels()
221 assertWithMessage("Cannot find (" + browsableChannel + ")").that(found).isTrue(); in testBrowsable()
234 assertThat(mListener.channelBrowsableChangedCalled).isTrue(); in testBrowsable()
304 assertThat(mChannelDataManager.getChannel(channel.getId()).isLocked()).isTrue(); in testLocked()
311 assertThat(mChannelDataManager.getChannel(channel.getId()).isLocked()).isTrue(); in testLocked()
329 .isTrue(); in testChannelListChanged()
341 .isTrue(); in testChannelListChanged()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImplTest.java111 assertThat(mProvider.hasDeviceOwner()).isTrue(); in testHasDeviceOwner()
120 assertThat(mProvider.isInCompMode()).isTrue(); in testIsInCompMode()
190 assertThat(mProvider.isSecurityLoggingEnabled()).isTrue(); in testIsSecurityLoggingEnabled()
199 assertThat(mProvider.isNetworkLoggingEnabled()).isTrue(); in testIsNetworkLoggingEnabled()
209 assertThat(mProvider.isAlwaysOnVpnSetInCurrentUser()).isTrue(); in testIsAlwaysOnVpnSetInCurrentUser()
224 assertThat(mProvider.isAlwaysOnVpnSetInManagedProfile()).isTrue(); in testIsAlwaysOnVpnSetInManagedProfileProfile()
234 assertThat(mProvider.isGlobalHttpProxySet()).isTrue(); in testIsGlobalHttpProxySet()
381 assertThat(mProvider.hasWorkPolicyInfo()).isTrue(); in workPolicyInfo_deviceOwner_shouldResolveIntent()
382 assertThat(mProvider.showWorkPolicyInfo()).isTrue(); in workPolicyInfo_deviceOwner_shouldResolveIntent()
398 assertThat(mProvider.hasWorkPolicyInfo()).isTrue(); in workPolicyInfo_profileOwner_shouldResolveIntent()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DRestrictedEncryptionPreferenceControllerTest.java73 assertThat(mInstallCertificatePreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
74 assertThat(mResetCredentialsPreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
75 assertThat(mUserCredentialsPreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
76 assertThat(mInstallCaCertificatePreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
77 assertThat(mInstallUserCertificatePreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
78 assertThat(mInstallWifiCertificatePreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/
DConnectedDeviceManagerTest.java150 assertThat(connectedDevice.hasSecureChannel()).isTrue(); in getActiveUserConnectedDevices_reflectsSecureChannelEstablished()
186 assertThat(messageCaptor.getValue().isMessageEncrypted()).isTrue(); in sendMessageSecurely_sendsEncryptedMessage()
220 assertThat(tryAcquire(semaphore)).isTrue(); in connectionCallback_onDeviceConnectedInvokedForNewlyConnectedDevice()
265 assertThat(tryAcquire(semaphore)).isTrue(); in connectionCallback_onDeviceDisconnectedInvokedForActiveUserDevice()
322 assertThat(tryAcquire(firstSemaphore)).isTrue(); in registerDeviceCallback_blacklistsDuplicateRecipientId()
323 assertThat(tryAcquire(secondSemaphore)).isTrue(); in registerDeviceCallback_blacklistsDuplicateRecipientId()
333 assertThat(tryAcquire(thirdSemaphore)).isTrue(); in registerDeviceCallback_blacklistsDuplicateRecipientId()
351 assertThat(tryAcquire(semaphore)).isTrue(); in deviceCallback_onSecureChannelEstablishedInvoked()
385 assertThat(tryAcquire(semaphore)).isTrue(); in deviceCallback_onMessageReceivedInvokedForSameRecipientId()
415 assertThat(tryAcquire(semaphore)).isTrue(); in deviceCallback_onDeviceErrorInvokedOnChannelError()
[all …]

12345678910>>...34