/packages/apps/Settings/src/com/android/settings/gestures/ |
D | AssistGesturePreferenceController.java | 51 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/ |
D | ExposureChangesCategoryPreferenceControllerTest.java | 124 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()
|
D | EnterpriseInstalledPackagesPreferenceControllerTest.java | 121 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()
|
D | AdminGrantedPermissionsPreferenceControllerTestBase.java | 118 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()
|
D | NetworkLogsPreferenceControllerTest.java | 57 assertThat(mController.isAvailable()).isFalse(); in testIsAvailable() 60 assertThat(mController.isAvailable()).isTrue(); in testIsAvailable() 65 assertThat(mController.isAvailable()).isTrue(); in testIsAvailable()
|
D | SecurityLogsPreferenceControllerTest.java | 57 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/ |
D | PlayControlsRowView.java | 196 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/ |
D | BugReportInPowerPreferenceController.java | 58 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()
|
D | TelephonyMonitorPreferenceController.java | 56 if (isAvailable()) { in displayPreference() 68 public boolean isAvailable() { in isAvailable() method in TelephonyMonitorPreferenceController 93 if (isAvailable()) { in enablePreference() 99 if (!isAvailable()) { in updatePreference()
|
D | BugReportPreferenceController.java | 41 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/ |
D | TelephonyMonitorPreferenceControllerTest.java | 73 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/ |
D | WorkSoundPreferenceController.java | 99 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/ |
D | A2dpSinkService.java | 90 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/ |
D | AssistGestureSensitivityPreferenceControllerTest.java | 71 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/ |
D | GameControllerPreferenceControllerTest.java | 80 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/ |
D | AutoSyncWorkDataPreferenceControllerTest.java | 73 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/ |
D | PipInputSelectorFragment.java | 124 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/ |
D | DefaultAutofillPreferenceControllerTest.java | 77 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/ |
D | MapClientService.java | 54 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/ |
D | MobileNetworkPreferenceControllerTest.java | 86 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/ |
D | EmergencyBroadcastPreferenceControllerTest.java | 92 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/ |
D | AssistFlashScreenPreferenceControllerTest.java | 85 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/ |
D | PbapClientService.java | 173 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/ |
D | A2dpService.java | 143 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/ |
D | WebViewAppPreferenceController.java | 54 if (isAvailable()) { in displayPreference() 65 public boolean isAvailable() { in isAvailable() method in WebViewAppPreferenceController 70 if (isAvailable()) { in enablePreference()
|