Home
last modified time | relevance | path

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

12345678910>>...13

/packages/apps/Settings/src/com/android/settings/gestures/
DAssistGesturePreferenceController.java51 mWasAvailable = isAvailable(); in AssistGesturePreferenceController()
56 public boolean isAvailable() { in isAvailable() method in AssistGesturePreferenceController
72 if (mWasAvailable != isAvailable()) { in onResume()
76 mWasAvailable = isAvailable(); in onResume()
90 if (isAvailable()) { in updatePreference()
136 if (mWasAvailable != isAvailable()) { in onSettingChange()
138 mWasAvailable = isAvailable(); in onSettingChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DExposureChangesCategoryPreferenceControllerTest.java124 assertThat(mController.isAvailable()).isTrue(); in testIsAvailableForUi()
130 assertThat(mController.isAvailable()).isTrue(); in testIsAvailableForUi()
136 assertThat(mController.isAvailable()).isTrue(); in testIsAvailableForUi()
150 assertThat(controller.isAvailable()).isFalse(); in testIsAvailableForSearch()
157 assertThat(controller.isAvailable()).isTrue(); in testIsAvailableForSearch()
164 assertThat(controller.isAvailable()).isTrue(); in testIsAvailableForSearch()
171 assertThat(controller.isAvailable()).isTrue(); in testIsAvailableForSearch()
178 assertThat(controller.isAvailable()).isFalse(); in testIsAvailableForSearch()
DEnterpriseInstalledPackagesPreferenceControllerTest.java121 assertThat(controller.isAvailable()).isFalse(); in testIsAvailableSync()
126 assertThat(controller.isAvailable()).isTrue(); in testIsAvailableSync()
134 assertThat(mController.isAvailable()).isTrue(); in testIsAvailableAsync()
139 assertThat(mController.isAvailable()).isTrue(); in testIsAvailableAsync()
DAdminGrantedPermissionsPreferenceControllerTestBase.java118 assertThat(controller.isAvailable()).isFalse(); in testIsAvailableSync()
122 assertThat(controller.isAvailable()).isTrue(); in testIsAvailableSync()
129 assertThat(mController.isAvailable()).isTrue(); in testIsAvailableAsync()
133 assertThat(mController.isAvailable()).isTrue(); in testIsAvailableAsync()
DNetworkLogsPreferenceControllerTest.java57 assertThat(mController.isAvailable()).isFalse(); in testIsAvailable()
60 assertThat(mController.isAvailable()).isTrue(); in testIsAvailable()
65 assertThat(mController.isAvailable()).isTrue(); in testIsAvailable()
DSecurityLogsPreferenceControllerTest.java57 assertThat(mController.isAvailable()).isFalse(); in testIsAvailable()
60 assertThat(mController.isAvailable()).isTrue(); in testIsAvailable()
65 assertThat(mController.isAvailable()).isTrue(); in testIsAvailable()
/packages/apps/TV/src/com/android/tv/menu/
DPlayControlsRowView.java196 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
206 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
216 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
226 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
236 if (mTimeShiftManager.isAvailable()) { in onFinishInflate()
329 if (mTimeShiftManager.isAvailable() && isShown()) { in onBind()
336 if (mTimeShiftManager.isAvailable() && isShown()) { in onBind()
343 if (mTimeShiftManager.isAvailable() && isShown()) { in onBind()
351 if (mTimeShiftManager.isAvailable() && isShown()) { in onBind()
388 mTimeShiftManager.isAvailable() && !mTimeShiftManager.isNormalPlaying(); in updateMenuVisibility()
[all …]
/packages/apps/Settings/src/com/android/settings/development/
DBugReportInPowerPreferenceController.java58 if (isAvailable()) { in displayPreference()
69 public boolean isAvailable() { in isAvailable() method in BugReportInPowerPreferenceController
79 if (isAvailable()) { in enablePreference()
92 if (!isAvailable()) { in updatePreference()
102 if (!isAvailable()) { in updateBugreportOptions()
DTelephonyMonitorPreferenceController.java56 if (isAvailable()) { in displayPreference()
68 public boolean isAvailable() { in isAvailable() method in TelephonyMonitorPreferenceController
93 if (isAvailable()) { in enablePreference()
99 if (!isAvailable()) { in updatePreference()
DBugReportPreferenceController.java41 if (isAvailable()) { in displayPreference()
52 public boolean isAvailable() { in isAvailable() method in BugReportPreferenceController
57 if (isAvailable()) { in enablePreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DTelephonyMonitorPreferenceControllerTest.java73 assertThat(mController.isAvailable()).isTrue(); in isAvailable_trueShowFlagWithUserdebugBuild_shouldReturnTrue()
84 assertThat(mController.isAvailable()).isTrue(); in isAvailable_trueShowFlagWithEngBuild_shouldReturnTrue()
95 assertThat(mController.isAvailable()).isFalse(); in isAvailable_trueShowFlagWithUserBuild_shouldReturnFalse()
106 assertThat(mController.isAvailable()).isFalse(); in isAvailable_falseShowFlagWithUserdebugBuild_shouldReturnFalse()
117 assertThat(mController.isAvailable()).isFalse(); in isAvailable_falseShowFlagWithEngBuild_shouldReturnFalse()
128 assertThat(mController.isAvailable()).isFalse(); in isAvailable_falseShowFlagWithUserBuild_shouldReturnFalse()
/packages/apps/Settings/src/com/android/settings/notification/
DWorkSoundPreferenceController.java99 mWorkPreferenceCategory.setVisible(isAvailable()); in displayPreference()
125 public boolean isAvailable() { in isAvailable() method in WorkSoundPreferenceController
194 final boolean isAvailable = isAvailable(); in updateWorkPreferences()
195 mWorkPreferenceCategory.setVisible(isAvailable); in updateWorkPreferences()
196 if (!isAvailable) { in updateWorkPreferences()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java90 if (sA2dpSinkService != null && sA2dpSinkService.isAvailable()) { in getA2dpSinkService()
97 } else if (!(sA2dpSinkService.isAvailable())) { in getA2dpSinkService()
105 if (instance != null && instance.isAvailable()) { in setA2dpSinkService()
112 } else if (!sA2dpSinkService.isAvailable()) { in setA2dpSinkService()
253 if (mService != null && mService.isAvailable()) { in getService()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DAssistGestureSensitivityPreferenceControllerTest.java71 assertThat(mController.isAvailable()).isTrue(); in isAvailable_whenSupportedAndEnabled_shouldReturnTrue()
80 assertThat(mController.isAvailable()).isFalse(); in isAvailable_whenSupportedAndDisabled_shouldReturnFalse()
89 assertThat(mController.isAvailable()).isFalse(); in isAvailable_whenUnsupportedAndEnabled_shouldReturnFalse()
98 assertThat(mController.isAvailable()).isFalse(); in isAvailable_whenUnsupportedAndDisabled_shouldReturnFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DGameControllerPreferenceControllerTest.java80 assertThat(mController.isAvailable()).isTrue(); in testIsAvailable_hasDeviceWithVibrator_shouldReturnTrue()
90 assertThat(mController.isAvailable()).isFalse(); in testIsAvailable_hasNoVibratingDevice_shouldReturnFalse()
99 assertThat(mController.isAvailable()).isFalse(); in testIsAvailable_hasNoPhysicalDevice_shouldReturnFalse()
106 assertThat(mController.isAvailable()).isFalse(); in testIsAvailable_hasNoDevice_shouldReturnFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAutoSyncWorkDataPreferenceControllerTest.java73 assertThat(mController.isAvailable()).isFalse(); in checkIsAvailable_managedProfile_shouldNotDisplay()
81 assertThat(mController.isAvailable()).isFalse(); in checkIsAvailable_linkedUser_shouldNotDisplay()
93 assertThat(mController.isAvailable()).isFalse(); in checkIsAvailable_singleUserProfile_shouldNotDisplay()
110 assertThat(mController.isAvailable()).isTrue(); in multipleProfile_shouldInitWithWorkProfileUserHandle()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DPipInputSelectorFragment.java124 setEnabled(isAvailable()); in InputItem()
130 setEnabled(mPipInput.isAvailable()); in onUpdate()
151 private boolean isAvailable() { in isAvailable() method in PipInputSelectorFragment.InputItem
152 if (!mPipInput.isAvailable()) { in isAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/defaultapps/
DDefaultAutofillPreferenceControllerTest.java77 assertThat(mController.isAvailable()).isFalse(); in isAvailableIfHasFeatureAndSupported()
80 assertThat(mController.isAvailable()).isFalse(); in isAvailableIfHasFeatureAndSupported()
84 assertThat(mController.isAvailable()).isFalse(); in isAvailableIfHasFeatureAndSupported()
88 assertThat(mController.isAvailable()).isTrue(); in isAvailableIfHasFeatureAndSupported()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapClientService.java54 if (sMapClientService != null && sMapClientService.isAvailable()) { in getMapClientService()
61 } else if (!(sMapClientService.isAvailable())) { in getMapClientService()
69 if (instance != null && instance.isAvailable()) { in setService()
76 } else if (!sMapClientService.isAvailable()) { in setService()
222 if (mService != null && mService.isAvailable()) { in getService()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DMobileNetworkPreferenceControllerTest.java86 assertThat(mController.isAvailable()).isFalse(); in secondaryUser_prefIsNotAvailable()
98 assertThat(mController.isAvailable()).isFalse(); in wifiOnly_prefIsNotAvailable()
105 doReturn(true).when(mController).isAvailable(); in goThroughLifecycle_isAvailable_shouldListenToServiceChange()
124 doReturn(true).when(mController).isAvailable(); in serviceStateChange_shouldUpdatePrefSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DEmergencyBroadcastPreferenceControllerTest.java92 assertThat(mController.isAvailable()).isFalse(); in isAvailable_notAdminUser_shouldReturnFalse()
105 assertThat(mController.isAvailable()).isFalse(); in isAvailable_hasConfigCellBroadcastRestriction_shouldReturnFalse()
117 assertThat(mController.isAvailable()).isFalse(); in isAvailable_cellBroadcastAppLinkDisabled_shouldReturnFalse()
129 assertThat(mController.isAvailable()).isFalse(); in isAvailable_cellBroadcastReceiverDisabled_shouldReturnFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/
DAssistFlashScreenPreferenceControllerTest.java85 assertThat(mController.isAvailable()).isTrue(); in isAvailable_hasAssistantAndAllowDisclosure_shouldReturnTrue()
96 assertThat(mController.isAvailable()).isFalse(); in isAvailable_hasAssistantAndDisallowDisclosure_shouldReturnTrue()
104 assertThat(mController.isAvailable()).isFalse(); in isAvailable_hasNoAssistant_shouldReturnFalse()
112 doReturn(true).when(mController).isAvailable(); in onResume_shouldUpdatePreference()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientService.java173 if (mService != null && mService.isAvailable()) { in getService()
248 if (sPbapClientService != null && sPbapClientService.isAvailable()) { in getPbapClientService()
257 } else if (!(sPbapClientService.isAvailable())) { in getPbapClientService()
265 if (instance != null && instance.isAvailable()) { in setPbapClientService()
274 } else if (!sPbapClientService.isAvailable()) { in setPbapClientService()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java143 if (sAd2dpService != null && sAd2dpService.isAvailable()) { in getA2dpService()
150 } else if (!(sAd2dpService.isAvailable())) { in getA2dpService()
158 if (instance != null && instance.isAvailable()) { in setA2dpService()
165 } else if (!sAd2dpService.isAvailable()) { in setA2dpService()
349 if (mService != null && mService.isAvailable()) { in getService()
/packages/apps/Settings/src/com/android/settings/webview/
DWebViewAppPreferenceController.java54 if (isAvailable()) { in displayPreference()
65 public boolean isAvailable() { in isAvailable() method in WebViewAppPreferenceController
70 if (isAvailable()) { in enablePreference()

12345678910>>...13