/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | RestrictedEncryptionPreferenceControllerTest.java | 73 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() 85 assertThat(mInstallCertificatePreferenceController.isAvailable()).isFalse(); in isAvailable_hasRestriction_shouldReturnFalse() 86 assertThat(mResetCredentialsPreferenceController.isAvailable()).isFalse(); in isAvailable_hasRestriction_shouldReturnFalse() 87 assertThat(mUserCredentialsPreferenceController.isAvailable()).isFalse(); in isAvailable_hasRestriction_shouldReturnFalse() 88 assertThat(mInstallCaCertificatePreferenceController.isAvailable()).isFalse(); in isAvailable_hasRestriction_shouldReturnFalse() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | MultiNetworkHeaderControllerTest.java | 92 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()
|
D | SubscriptionsPreferenceControllerTest.java | 140 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 …]
|
D | TopLevelNetworkEntryPreferenceControllerTest.java | 90 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/ |
D | DescriptionPreferenceControllerTest.java | 69 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()
|
D | BubblePreferenceControllerTest.java | 99 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 …]
|
D | AppLinkPreferenceControllerTest.java | 70 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()
|
D | DeletedChannelsPreferenceControllerTest.java | 72 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()
|
D | BadgePreferenceControllerTest.java | 86 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()
|
D | ZenRuleStarredContactsPreferenceControllerTest.java | 111 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()
|
D | ZenModeStarredContactsPreferenceControllerTest.java | 107 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()
|
D | BlockPreferenceControllerTest.java | 92 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()
|
D | BubbleSummaryPreferenceControllerTest.java | 83 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()
|
/packages/apps/Settings/src/com/android/settings/gestures/ |
D | AssistGestureSettingsPreferenceController.java | 53 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()
|
D | GesturesSettingPreferenceController.java | 51 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/ |
D | AssistGestureSettingsPreferenceController.java | 53 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()
|
D | GesturesSettingPreferenceController.java | 51 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/ |
D | PictureColorModePreferenceControllerTest.java | 80 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/ |
D | PreferenceCategoryControllerTest.java | 53 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/ |
D | PlayControlsRowView.java | 190 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/core/ |
D | BasePreferenceControllerTest.java | 76 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/ |
D | AirplaneModePreferenceController.java | 52 if (isAvailable(mContext)) { in AirplaneModePreferenceController() 83 public static boolean isAvailable(Context context) { in isAvailable() method in AirplaneModePreferenceController 96 return isAvailable(mContext) ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus() 101 if (isAvailable()) { in onResume() 108 if (isAvailable()) { in onPause()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | NrDisabledInDsdsFooterPreferenceControllerTest.java | 63 assertThat(mController.isAvailable()).isFalse(); in isAvailable_noInit_notAvailable() 73 assertThat(mController.isAvailable()).isTrue(); in isAvailable_dataOnAndDsdsAnd5GSupported_Available() 83 assertThat(mController.isAvailable()).isFalse(); in isAvailable_5gNotSupported_notAvailable() 93 assertThat(mController.isAvailable()).isFalse(); in isAvailable_mobileDataOff_notAvailable() 103 assertThat(mController.isAvailable()).isFalse(); in isAvailable_singleSimMode_notAvailable()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/ |
D | AirplaneModePreferenceController.java | 83 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/ |
D | AutoSyncWorkDataPreferenceControllerTest.java | 68 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()
|