Home
last modified time | relevance | path

Searched refs:isAvailable (Results 1 – 25 of 901) sorted by relevance

12345678910>>...37

/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DRestrictedEncryptionPreferenceControllerTest.java76 assertThat(mCredentialStoragePreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
77 assertThat(mInstallCertificatePreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
78 assertThat(mResetCredentialsPreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
79 assertThat(mUserCredentialsPreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
80 assertThat(mInstallCaCertificatePreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
81 assertThat(mInstallUserCertificatePreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
82 assertThat(mInstallWifiCertificatePreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
89 assertThat(mCredentialStoragePreferenceController.isAvailable()).isFalse(); in isAvailable_hasRestriction_shouldReturnFalse()
90 assertThat(mInstallCertificatePreferenceController.isAvailable()).isFalse(); in isAvailable_hasRestriction_shouldReturnFalse()
91 assertThat(mResetCredentialsPreferenceController.isAvailable()).isFalse(); in isAvailable_hasRestriction_shouldReturnFalse()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DMultiNetworkHeaderControllerTest.java92 assertThat(mHeaderController.isAvailable()).isFalse(); in isAvailable_beforeInitIsCalled_notAvailable()
99 when(mWifiController.isAvailable()).thenReturn(wifiAvailable); in displayPreferenceTest()
100 when(mSubscriptionsController.isAvailable()).thenReturn(subscriptionsAvailable); in displayPreferenceTest()
130 when(mSubscriptionsController.isAvailable()).thenReturn(false); in onChildUpdated_subscriptionsBecameAvailable_categoryIsVisible()
134 when(mSubscriptionsController.isAvailable()).thenReturn(true); in onChildUpdated_subscriptionsBecameAvailable_categoryIsVisible()
150 when(mSubscriptionsController.isAvailable()).thenReturn(true); in onChildUpdated_subscriptionsBecameUnavailable_categoryIsNotVisible()
154 when(mSubscriptionsController.isAvailable()).thenReturn(false); in onChildUpdated_subscriptionsBecameUnavailable_categoryIsNotVisible()
171 when(mSubscriptionsController.isAvailable()).thenReturn(false); in onChildUpdated_noExpandedChildCountAndAvailable_doesNotSetExpandedCount()
175 when(mSubscriptionsController.isAvailable()).thenReturn(true); in onChildUpdated_noExpandedChildCountAndAvailable_doesNotSetExpandedCount()
DSubscriptionsPreferenceControllerTest.java140 assertThat(mController.isAvailable()).isFalse(); in isAvailable_oneSubscription_availableFalse()
146 assertThat(mController.isAvailable()).isTrue(); in isAvailable_twoSubscriptions_availableTrue()
152 assertThat(mController.isAvailable()).isTrue(); in isAvailable_fiveSubscriptions_availableTrue()
158 assertThat(mController.isAvailable()).isTrue(); in isAvailable_airplaneModeOn_availableFalse()
160 assertThat(mController.isAvailable()).isFalse(); in isAvailable_airplaneModeOn_availableFalse()
168 assertThat(mController.isAvailable()).isTrue(); in onAirplaneModeChanged_airplaneModeTurnedOn_eventFired()
173 assertThat(mController.isAvailable()).isFalse(); in onAirplaneModeChanged_airplaneModeTurnedOn_eventFired()
183 assertThat(mController.isAvailable()).isFalse(); in onAirplaneModeChanged_airplaneModeTurnedOff_eventFired()
188 assertThat(mController.isAvailable()).isTrue(); in onAirplaneModeChanged_airplaneModeTurnedOff_eventFired()
198 assertThat(mController.isAvailable()).isFalse(); in onSubscriptionsChanged_countBecameTwo_eventFired()
[all …]
DTopLevelNetworkEntryPreferenceControllerTest.java90 when(mWifiPreferenceController.isAvailable()).thenReturn(true); in getSummary_hasMobileAndHotspot_shouldReturnMobileSummary()
91 when(mMobileNetworkPreferenceController.isAvailable()).thenReturn(true); in getSummary_hasMobileAndHotspot_shouldReturnMobileSummary()
92 when(mTetherPreferenceController.isAvailable()).thenReturn(true); in getSummary_hasMobileAndHotspot_shouldReturnMobileSummary()
100 when(mWifiPreferenceController.isAvailable()).thenReturn(true); in getSummary_noMobileOrHotspot_shouldReturnSimpleSummary()
101 when(mMobileNetworkPreferenceController.isAvailable()).thenReturn(false); in getSummary_noMobileOrHotspot_shouldReturnSimpleSummary()
102 when(mTetherPreferenceController.isAvailable()).thenReturn(false); in getSummary_noMobileOrHotspot_shouldReturnSimpleSummary()
/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/model/theme/
DThemeManagerTest.java133 when(mThemeBundleProvider.isAvailable()).thenReturn(true); in isAvailable_ThemeBundleProviderAndOverlayManagerAreAvailable_ReturnsTrue()
134 when(mMockOm.isAvailable()).thenReturn(true); in isAvailable_ThemeBundleProviderAndOverlayManagerAreAvailable_ReturnsTrue()
136 assertTrue(mThemeManager.isAvailable()); in isAvailable_ThemeBundleProviderAndOverlayManagerAreAvailable_ReturnsTrue()
141 when(mThemeBundleProvider.isAvailable()).thenReturn(false); in isAvailable_ThemeBundleProviderOrOverlayManagerIsAvailable_ReturnsFalse()
142 when(mMockOm.isAvailable()).thenReturn(true); in isAvailable_ThemeBundleProviderOrOverlayManagerIsAvailable_ReturnsFalse()
143 assertFalse(mThemeManager.isAvailable()); in isAvailable_ThemeBundleProviderOrOverlayManagerIsAvailable_ReturnsFalse()
145 when(mThemeBundleProvider.isAvailable()).thenReturn(true); in isAvailable_ThemeBundleProviderOrOverlayManagerIsAvailable_ReturnsFalse()
146 when(mMockOm.isAvailable()).thenReturn(false); in isAvailable_ThemeBundleProviderOrOverlayManagerIsAvailable_ReturnsFalse()
147 assertFalse(mThemeManager.isAvailable()); in isAvailable_ThemeBundleProviderOrOverlayManagerIsAvailable_ReturnsFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DDescriptionPreferenceControllerTest.java71 mController.isAvailable(); in testNoCrashIfNoOnResume()
78 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNull()
86 assertFalse(mController.isAvailable()); in testIsAvailable_notIfChannelGroupBlocked()
95 assertFalse(mController.isAvailable()); in testIsAvailable_notIfChannelBlocked()
104 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNoChannelDesc()
112 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNoChannelGroupDesc()
122 assertTrue(mController.isAvailable()); in testIsAvailable_channel()
132 assertTrue(mController.isAvailable()); in testIsAvailable_channelGroup()
DAppLinkPreferenceControllerTest.java72 mController.isAvailable(); in testNoCrashIfNoOnResume()
79 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNull()
87 assertFalse(mController.isAvailable()); in testIsAvailable_notIfAppBlocked()
96 assertFalse(mController.isAvailable()); in testIsAvailable_notIfChannelBlocked()
106 assertFalse(mController.isAvailable()); in testIsAvailable_notNoIntent()
117 assertTrue(mController.isAvailable()); in testIsAvailable()
DDeletedChannelsPreferenceControllerTest.java74 mController.isAvailable(); in noCrashIfNoOnResume()
83 assertFalse(mController.isAvailable()); in isAvailable_appScreen_notIfAppBlocked()
90 assertFalse(mController.isAvailable()); in isAvailable_groupScreen_never()
98 assertFalse(mController.isAvailable()); in isAvailable_channelScreen_never()
105 assertFalse(mController.isAvailable()); in isAvailable_appScreen_notIfNoDeletedChannels()
112 assertTrue(mController.isAvailable()); in isAvailable_appScreen()
DBubbleSummaryPreferenceControllerTest.java82 mController.isAvailable(); in isAvailable_noOnResume_shouldNotCrash()
91 assertFalse(mController.isAvailable()); in isAvailable_appBlocked_shouldReturnFalse()
99 assertTrue(mController.isAvailable()); in isAvailable_NOTIFICATION_BUBBLESisOn_shouldReturnTrue()
108 assertFalse(mController.isAvailable()); in isAvailable_NOTIFICATION_BUBBLESisOn_neverSentMsg_shouldReturnFalse()
117 assertFalse(mController.isAvailable()); in isAvailable_NOTIFICATION_BUBBLESisOff_shouldReturnFalse()
128 assertFalse(mController.isAvailable()); in isAvailable_nonNullChannelNOTIFICATION_BUBBLESisOff_shouldReturnFalse()
139 assertTrue(mController.isAvailable()); in isAvailable_defaultChannelNOTIFICATION_BUBBLESisOn_shouldReturnTrue()
DBadgePreferenceControllerTest.java87 mController.isAvailable(); in testNoCrashIfNoOnResume()
97 assertFalse(mController.isAvailable()); in testIsAvailable_notIfAppBlocked()
106 assertFalse(mController.isAvailable()); in testIsAvailable_notIfChannelBlocked()
117 assertFalse(mController.isAvailable()); in testIsAvailable_channel_notIfAppOff()
128 assertFalse(mController.isAvailable()); in testIsAvailable_notIfOffGlobally()
137 assertTrue(mController.isAvailable()); in testIsAvailable_app()
150 assertTrue(mController.isAvailable()); in testIsAvailable_defaultChannel()
162 assertTrue(mController.isAvailable()); in testIsAvailable_channel()
174 assertFalse(mController.isAvailable()); in testIsAvailable_channelAppOff()
DBlockPreferenceControllerTest.java93 mController.isAvailable(); in testNoCrashIfNoOnResume()
101 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNull()
111 assertTrue(mController.isAvailable()); in testIsAvailable_channelNotBlockable()
121 assertTrue(mController.isAvailable()); in testIsAvailable_channelNonDefault()
131 assertTrue(mController.isAvailable()); in testIsAvailable_ifChannelDefault()
139 assertTrue(mController.isAvailable()); in testIsAvailable_GroupNotBlockable()
147 assertTrue(mController.isAvailable()); in testIsAvailable_AppNotBlockable()
157 assertTrue(mController.isAvailable()); in testIsAvailable_systemApp()
167 assertTrue(mController.isAvailable()); in testIsAvailable_nonSystemApp()
DImportancePreferenceControllerTest.java91 mController.isAvailable(); in testNoCrashIfNoOnResume()
98 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNull()
106 assertFalse(mController.isAvailable()); in testIsAvailable_ifAppBlocked()
117 assertFalse(mController.isAvailable()); in testIsAvailable_isGroupBlocked()
126 assertFalse(mController.isAvailable()); in testIsAvailable_ifChannelBlocked()
136 assertFalse(mController.isAvailable()); in testIsAvailable_notForDefaultChannel()
145 assertTrue(mController.isAvailable()); in testIsAvailable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/gestures/
DAssistGestureSettingsPreferenceController.java53 mWasAvailable = isAvailable(); in AssistGestureSettingsPreferenceController()
58 final boolean isAvailable = mAssistOnly ? mFeatureProvider.isSupported(mContext) in getAvailabilityStatus()
60 return isAvailable ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
72 if (mWasAvailable != isAvailable()) { in onResume()
76 mWasAvailable = isAvailable(); in onResume()
90 if (isAvailable()) { in updatePreference()
DGesturesSettingPreferenceController.java51 boolean isAvailable = false; in getAvailabilityStatus()
53 isAvailable = isAvailable || controller.isAvailable(); in getAvailabilityStatus()
55 return isAvailable ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
/packages/apps/Settings/src/com/android/settings/gestures/
DAssistGestureSettingsPreferenceController.java55 mWasAvailable = isAvailable(); in AssistGestureSettingsPreferenceController()
62 final boolean isAvailable = mAssistOnly ? isSupported : isSensorAvailable; in getAvailabilityStatus()
65 return isAvailable ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
77 if (mWasAvailable != isAvailable()) { in onStart()
81 mWasAvailable = isAvailable(); in onStart()
95 if (isAvailable()) { in updatePreference()
DGesturesSettingPreferenceController.java55 boolean isAvailable = false; in getAvailabilityStatus()
57 isAvailable = isAvailable || controller.isAvailable(); in getAvailabilityStatus()
59 return isAvailable ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DPictureColorModePreferenceControllerTest.java80 assertThat(mController.isAvailable()).isFalse(); in isAvailable_shouldReturnFalseWhenWideColorGambit()
89 assertThat(mController.isAvailable()).isTrue(); in isAvailable_shouldReturnTrueWhenNotWideColorGambit()
98 assertThat(mController.isAvailable()).isFalse(); in isAvailable_shouldReturnFalseWhenColorCountIsOne()
107 assertThat(mController.isAvailable()).isTrue(); in isAvailable_shouldReturnTrueWhenColorCountIsTwo()
113 doReturn(true).when(mController).isAvailable(); in onDeveloperOptionEnabled_shouldEnablePreference()
122 doReturn(true).when(mController).isAvailable(); in onDeveloperOptionDisabled_shouldDisablePreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DPreferenceCategoryControllerTest.java53 assertThat(mController.isAvailable()).isFalse(); in isAvailable_noChildren_false()
59 when(child.isAvailable()).thenReturn(true); in isAvailable_childrenAvailable_true()
63 assertThat(mController.isAvailable()).isTrue(); in isAvailable_childrenAvailable_true()
69 when(child.isAvailable()).thenReturn(false); in isAvailable_childrenUnavailable_false()
73 assertThat(mController.isAvailable()).isFalse(); in isAvailable_childrenUnavailable_false()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DZenRuleStarredContactsPreferenceControllerTest.java111 assertThat(mCallsController.isAvailable()).isFalse(); in isAvailable_noCallers()
121 assertThat(mCallsController.isAvailable()).isFalse(); in isAvailable_anyCallers()
131 assertThat(mCallsController.isAvailable()).isTrue(); in isAvailable_starredCallers()
140 assertThat(mCallsController.isAvailable()).isFalse(); in isAvailable_noMessages()
150 assertThat(mMessagesController.isAvailable()).isFalse(); in isAvailable_anyMessages()
160 assertThat(mMessagesController.isAvailable()).isTrue(); in isAvailable_starredMessageContacts()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DBasePreferenceControllerTest.java77 assertThat(mPreferenceController.isAvailable()).isTrue(); in isAvailable_availableStatusAvailable_returnsTrue()
84 assertThat(mPreferenceController.isAvailable()).isTrue(); in isAvailable_availableStatusUnSearchable_returnsTrue()
91 assertThat(mPreferenceController.isAvailable()).isFalse(); in isAvailable_availableStatusUnsupportedOnDevice_returnsFalse()
99 assertThat(mPreferenceController.isAvailable()).isFalse(); in isAvailable_availableStatusConditionallyUnavailable_returnsFalse()
106 assertThat(mPreferenceController.isAvailable()).isFalse(); in isAvailable_availableStatusDisabledForUser_returnsFalse()
113 assertThat(mPreferenceController.isAvailable()).isTrue(); in isAvailable_availableStatusBlockedDependent_returnsFalse()
/packages/apps/TV/src/com/android/tv/menu/
DPlayControlsRowView.java190 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
201 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
212 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
223 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
234 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
336 if (mTimeShiftManager.isAvailable()) { in onBind()
343 if (mTimeShiftManager.isAvailable()) { in onBind()
350 if (mTimeShiftManager.isAvailable()) { in onBind()
358 if (mTimeShiftManager.isAvailable()) { in onBind()
405 mTimeShiftManager.isAvailable() && !mTimeShiftManager.isNormalPlaying(); in updateMenuVisibility()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DNrDisabledInDsdsFooterPreferenceControllerTest.java64 assertThat(mController.isAvailable()).isFalse(); in isAvailable_noInit_notAvailable()
75 assertThat(mController.isAvailable()).isTrue(); in isAvailable_dataOnAndDsdsAnd5GSupported_Available()
85 assertThat(mController.isAvailable()).isFalse(); in isAvailable_5gNotSupported_notAvailable()
95 assertThat(mController.isAvailable()).isFalse(); in isAvailable_mobileDataOff_notAvailable()
105 assertThat(mController.isAvailable()).isFalse(); in isAvailable_singleSimMode_notAvailable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DAirplaneModePreferenceController.java82 if (isAvailable()) { in displayPreference()
87 public static boolean isAvailable(Context context) { in isAvailable() method in AirplaneModePreferenceController
100 return isAvailable(mContext) ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
105 if (isAvailable()) { in onResume()
112 if (isAvailable()) { in onPause()
/packages/apps/Settings/src/com/android/settings/network/
DAirplaneModePreferenceController.java65 if (isAvailable(mContext)) { in AirplaneModePreferenceController()
106 public static boolean isAvailable(Context context) { in isAvailable() method in AirplaneModePreferenceController
119 return isAvailable(mContext) ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
124 if (isAvailable()) { in onStart()
131 if (isAvailable()) { in onStop()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DAutoSyncWorkDataPreferenceControllerTest.java68 assertThat(mController.isAvailable()).isFalse(); in checkIsAvailable_managedProfile_shouldNotDisplay()
76 assertThat(mController.isAvailable()).isFalse(); in checkIsAvailable_linkedUser_shouldNotDisplay()
88 assertThat(mController.isAvailable()).isFalse(); in checkIsAvailable_singleUserProfile_shouldNotDisplay()
103 assertThat(mController.isAvailable()).isFalse(); in checkIsAvailable_null_workProfileUserHandle_shouldNotDisplay()
120 assertThat(mController.isAvailable()).isTrue(); in multipleProfile_shouldInitWithWorkProfileUserHandle()

12345678910>>...37