Home
last modified time | relevance | path

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

12345678910>>...34

/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DRestrictedEncryptionPreferenceControllerTest.java67 assertThat(mCredentialStoragePreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
68 assertThat(mInstallCredentialsPreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
69 assertThat(mResetCredentialsPreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
70 assertThat(mUserCredentialsPreferenceController.isAvailable()).isTrue(); in isAvailable_noRestriction_shouldReturnTrue()
77 assertThat(mCredentialStoragePreferenceController.isAvailable()).isFalse(); in isAvailable_hasRestriction_shouldReturnFalse()
78 assertThat(mInstallCredentialsPreferenceController.isAvailable()).isFalse(); in isAvailable_hasRestriction_shouldReturnFalse()
79 assertThat(mResetCredentialsPreferenceController.isAvailable()).isFalse(); in isAvailable_hasRestriction_shouldReturnFalse()
80 assertThat(mUserCredentialsPreferenceController.isAvailable()).isFalse(); in isAvailable_hasRestriction_shouldReturnFalse()
/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.java138 assertThat(mController.isAvailable()).isFalse(); in isAvailable_oneSubscription_availableFalse()
144 assertThat(mController.isAvailable()).isTrue(); in isAvailable_twoSubscriptions_availableTrue()
150 assertThat(mController.isAvailable()).isTrue(); in isAvailable_fiveSubscriptions_availableTrue()
156 assertThat(mController.isAvailable()).isTrue(); in isAvailable_airplaneModeOn_availableFalse()
158 assertThat(mController.isAvailable()).isFalse(); in isAvailable_airplaneModeOn_availableFalse()
166 assertThat(mController.isAvailable()).isTrue(); in onAirplaneModeChanged_airplaneModeTurnedOn_eventFired()
171 assertThat(mController.isAvailable()).isFalse(); in onAirplaneModeChanged_airplaneModeTurnedOn_eventFired()
181 assertThat(mController.isAvailable()).isFalse(); in onAirplaneModeChanged_airplaneModeTurnedOff_eventFired()
186 assertThat(mController.isAvailable()).isTrue(); in onAirplaneModeChanged_airplaneModeTurnedOff_eventFired()
196 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/Settings/tests/robotests/src/com/android/settings/notification/
DDescriptionPreferenceControllerTest.java69 mController.isAvailable(); in testNoCrashIfNoOnResume()
76 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNull()
84 assertFalse(mController.isAvailable()); in testIsAvailable_notIfChannelGroupBlocked()
93 assertFalse(mController.isAvailable()); in testIsAvailable_notIfChannelBlocked()
102 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNoChannelDesc()
110 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNoChannelGroupDesc()
120 assertTrue(mController.isAvailable()); in testIsAvailable_channel()
130 assertTrue(mController.isAvailable()); in testIsAvailable_channelGroup()
DBubblePreferenceControllerTest.java99 mController.isAvailable(); in testNoCrashIfNoOnResume()
110 assertFalse(mController.isAvailable()); in testIsAvailable_notIfAppBlocked()
120 assertFalse(mController.isAvailable()); in testIsAvailable_notIfChannelBlocked()
132 assertFalse(mController.isAvailable()); in testIsAvailable_channel_notIfAppOff()
142 assertFalse(mController.isAvailable()); in testIsNotAvailable_ifOffGlobally_app()
154 assertFalse(mController.isAvailable()); in testIsAvailable_notIfOffGlobally_channel()
164 assertTrue(mAppPageController.isAvailable()); in testIsAvailable_app_evenIfOffGlobally()
173 assertTrue(mController.isAvailable()); in testIsAvailable_app()
186 assertTrue(mController.isAvailable()); in testIsAvailable_defaultChannel()
198 assertTrue(mController.isAvailable()); in testIsAvailable_channel()
[all …]
DBadgePreferenceControllerTest.java86 mController.isAvailable(); in testNoCrashIfNoOnResume()
96 assertFalse(mController.isAvailable()); in testIsAvailable_notIfAppBlocked()
105 assertFalse(mController.isAvailable()); in testIsAvailable_notIfChannelBlocked()
116 assertFalse(mController.isAvailable()); in testIsAvailable_channel_notIfAppOff()
127 assertFalse(mController.isAvailable()); in testIsAvailable_notIfOffGlobally()
136 assertTrue(mController.isAvailable()); in testIsAvailable_app()
149 assertTrue(mController.isAvailable()); in testIsAvailable_defaultChannel()
161 assertTrue(mController.isAvailable()); in testIsAvailable_channel()
173 assertFalse(mController.isAvailable()); in testIsAvailable_channelAppOff()
DDeletedChannelsPreferenceControllerTest.java72 mController.isAvailable(); in noCrashIfNoOnResume()
81 assertFalse(mController.isAvailable()); in isAvailable_appScreen_notIfAppBlocked()
88 assertFalse(mController.isAvailable()); in isAvailable_groupScreen_never()
95 assertFalse(mController.isAvailable()); in isAvailable_channelScreen_never()
102 assertFalse(mController.isAvailable()); in isAvailable_appScreen_notIfNoDeletedChannels()
109 assertTrue(mController.isAvailable()); in isAvailable_appScreen()
DAppLinkPreferenceControllerTest.java70 mController.isAvailable(); in testNoCrashIfNoOnResume()
77 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNull()
85 assertFalse(mController.isAvailable()); in testIsAvailable_notIfAppBlocked()
94 assertFalse(mController.isAvailable()); in testIsAvailable_notIfChannelBlocked()
104 assertFalse(mController.isAvailable()); in testIsAvailable_notNoIntent()
115 assertTrue(mController.isAvailable()); in testIsAvailable()
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()
DZenModeStarredContactsPreferenceControllerTest.java107 assertThat(mCallsController.isAvailable()).isFalse(); in isAvailable_noCallers()
117 assertThat(mCallsController.isAvailable()).isFalse(); in isAvailable_anyCallers()
127 assertThat(mCallsController.isAvailable()).isTrue(); in isAvailable_starredCallers()
134 assertThat(mMessagesController.isAvailable()).isFalse(); in isAvailable_noMessages()
144 assertThat(mMessagesController.isAvailable()).isFalse(); in isAvailable_anyMessages()
154 assertThat(mMessagesController.isAvailable()).isTrue(); in isAvailable_starredMessageContacts()
DBlockPreferenceControllerTest.java92 mController.isAvailable(); in testNoCrashIfNoOnResume()
100 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNull()
110 assertTrue(mController.isAvailable()); in testIsAvailable_channelNotBlockable()
120 assertTrue(mController.isAvailable()); in testIsAvailable_channelNonDefault()
130 assertTrue(mController.isAvailable()); in testIsAvailable_ifChannelDefault()
138 assertTrue(mController.isAvailable()); in testIsAvailable_GroupNotBlockable()
146 assertTrue(mController.isAvailable()); in testIsAvailable_AppNotBlockable()
156 assertTrue(mController.isAvailable()); in testIsAvailable_systemApp()
166 assertTrue(mController.isAvailable()); in testIsAvailable_nonSystemApp()
DBubbleSummaryPreferenceControllerTest.java83 mController.isAvailable(); in testNoCrashIfNoOnResume()
92 assertFalse(mController.isAvailable()); in testIsAvailable_notIfAppBlocked()
104 assertFalse(mController.isAvailable()); in testIsAvailable_notIfOffGlobally()
113 assertTrue(mController.isAvailable()); in testIsAvailable_app()
123 assertFalse(mController.isAvailable()); in testIsNotAvailable_app_globalOff()
136 assertTrue(mController.isAvailable()); in testIsAvailable_defaultChannel()
DImportancePreferenceControllerTest.java90 mController.isAvailable(); in testNoCrashIfNoOnResume()
97 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNull()
105 assertFalse(mController.isAvailable()); in testIsAvailable_ifAppBlocked()
116 assertFalse(mController.isAvailable()); in testIsAvailable_isGroupBlocked()
125 assertFalse(mController.isAvailable()); in testIsAvailable_ifChannelBlocked()
135 assertFalse(mController.isAvailable()); in testIsAvailable_notForDefaultChannel()
144 assertTrue(mController.isAvailable()); in testIsAvailable()
/packages/apps/Settings/src/com/android/settings/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/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/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/TV/src/com/android/tv/menu/
DPlayControlsRowView.java189 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
200 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
211 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
222 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
233 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
335 if (mTimeShiftManager.isAvailable()) { in onBind()
342 if (mTimeShiftManager.isAvailable()) { in onBind()
349 if (mTimeShiftManager.isAvailable()) { in onBind()
357 if (mTimeShiftManager.isAvailable()) { in onBind()
404 mTimeShiftManager.isAvailable() && !mTimeShiftManager.isNormalPlaying(); in updateMenuVisibility()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DBasePreferenceControllerTest.java76 assertThat(mPreferenceController.isAvailable()).isTrue(); in isAvailable_availableStatusAvailable_returnsTrue()
83 assertThat(mPreferenceController.isAvailable()).isTrue(); in isAvailable_availableStatusUnSearchable_returnsTrue()
90 assertThat(mPreferenceController.isAvailable()).isFalse(); in isAvailable_availableStatusUnsupportedOnDevice_returnsFalse()
98 assertThat(mPreferenceController.isAvailable()).isFalse(); in isAvailable_availableStatusConditionallyUnavailable_returnsFalse()
105 assertThat(mPreferenceController.isAvailable()).isFalse(); in isAvailable_availableStatusDisabledForUser_returnsFalse()
112 assertThat(mPreferenceController.isAvailable()).isTrue(); in isAvailable_availableStatusBlockedDependent_returnsFalse()
/packages/apps/Settings/src/com/android/settings/network/
DAirplaneModePreferenceController.java83 if (isAvailable()) { in displayPreference()
88 public static boolean isAvailable(Context context) { in isAvailable() method in AirplaneModePreferenceController
101 return isAvailable(mContext) ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
106 if (isAvailable()) { in onResume()
113 if (isAvailable()) { in onPause()
/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()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DAirplaneModePreferenceController.java83 if (isAvailable()) { in displayPreference()
88 public static boolean isAvailable(Context context) { in isAvailable() method in AirplaneModePreferenceController
101 return isAvailable(mContext) ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
106 if (isAvailable()) { in onResume()
113 if (isAvailable()) { in onPause()

12345678910>>...34