Home
last modified time | relevance | path

Searched refs:setVisible (Results 1 – 25 of 382) sorted by relevance

12345678910>>...16

/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/
DVolumeOptionMenuControllerTest.java92 verify(mController.mFormat, atLeastOnce()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
93 verify(mController.mRename, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
94 verify(mController.mMount, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
95 verify(mController.mUnmount, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
96 verify(mController.mFormatAsPortable, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
97 verify(mController.mFormatAsInternal, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
98 verify(mController.mMigrate, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
99 verify(mController.mFree, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
100 verify(mController.mForget, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
111 verify(mController.mForget, atLeastOnce()).setVisible(true); in onPrepareOptionsMenu_missingVolumeRecord_forgetIsVisible()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DSecurityFragment.java229 mUnknownSourcesPref.setVisible(false); in refresh()
231 mRestrictedProfileGroup.setVisible(true); in refresh()
232 mRestrictedProfileEnterPref.setVisible(false); in refresh()
233 mRestrictedProfileExitPref.setVisible(true); in refresh()
234 mRestrictedProfileAppsPref.setVisible(false); in refresh()
235 mRestrictedProfilePinPref.setVisible(false); in refresh()
236 mRestrictedProfileCreatePref.setVisible(false); in refresh()
237 mRestrictedProfileDeletePref.setVisible(false); in refresh()
240 mUnknownSourcesPref.setVisible(true); in refresh()
242 mRestrictedProfileGroup.setVisible(true); in refresh()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DVolumeOptionMenuController.java106 mRename.setVisible(false); in onPrepareOptionsMenu()
107 mMount.setVisible(false); in onPrepareOptionsMenu()
108 mUnmount.setVisible(false); in onPrepareOptionsMenu()
109 mFormat.setVisible(false); in onPrepareOptionsMenu()
110 mFormatAsPortable.setVisible(false); in onPrepareOptionsMenu()
111 mFormatAsInternal.setVisible(false); in onPrepareOptionsMenu()
112 mMigrate.setVisible(false); in onPrepareOptionsMenu()
113 mFree.setVisible(false); in onPrepareOptionsMenu()
114 mForget.setVisible(false); in onPrepareOptionsMenu()
117 mFormat.setVisible(true); in onPrepareOptionsMenu()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java190 appPref.setVisible(false); in onCreatePreferences()
194 accountsPref.setVisible(false); in onCreatePreferences()
200 accessoryPreference.setVisible(false); in onCreatePreferences()
206 displaySoundPref.setVisible(true); in onCreatePreferences()
210 privacyPref.setVisible(true); in onCreatePreferences()
285 soundPref.setVisible(info != null); in updateSoundSettings()
388 connectedDevicesSlicePreference.setVisible(true); in updateAccessoryPref()
389 connectedDevicesPreference.setVisible(false); in updateAccessoryPref()
390 accessoryPreference.setVisible(false); in updateAccessoryPref()
400 connectedDevicesSlicePreference.setVisible(false); in updateAccessoryPref()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/
DPrivacyFragment.java83 accountPrefCategory.setVisible(false); in onCreatePreferences()
84 assistantSlicePreference.setVisible(false); in onCreatePreferences()
85 purchasesSlicePreference.setVisible(false); in onCreatePreferences()
86 adsPreference.setVisible(false); in onCreatePreferences()
89 updateSlicePreference.setVisible(false); in onCreatePreferences()
96 assistantSlicePreference.setVisible(true); in onCreatePreferences()
101 purchasesSlicePreference.setVisible(true); in onCreatePreferences()
103 accountPrefCategory.setVisible( in onCreatePreferences()
123 updateSlicePreference.setVisible( in onCreatePreferences()
139 overlaySecuritySlicePreference.setVisible(true); in showOverlaySecuritySlicePreference()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2Test.java710 verify(mMockTxLinkSpeedPref).setVisible(false); in linkSpeedPref_shouldNotShowIfNotSet()
721 verify(mMockTxLinkSpeedPref).setVisible(true); in linkSpeedPref_shouldVisibleForConnectedNetwork()
731 verify(mMockTxLinkSpeedPref).setVisible(false); in linkSpeedPref_shouldInvisibleForDisconnectedNetwork()
741 verify(mMockTxLinkSpeedPref).setVisible(false); in linkSpeedPref_shouldInvisibleForNotInRangeNetwork()
753 verify(mMockRxLinkSpeedPref).setVisible(false); in rxLinkSpeedPref_shouldNotShowIfNotSet()
764 verify(mMockRxLinkSpeedPref).setVisible(true); in rxLinkSpeedPref_shouldVisibleForConnectedNetwork()
774 verify(mMockRxLinkSpeedPref).setVisible(false); in rxLinkSpeedPref_shouldInvisibleForDisconnectedNetwork()
784 verify(mMockRxLinkSpeedPref).setVisible(false); in rxLinkSpeedPref_shouldInvisibleForNotInRangeNetwork()
798 verify(mMockSsidPref).setVisible(true); in ssidPref_isSubscription_show()
810 verify(mMockSsidPref).setVisible(false); in ssidPref_notSubscription_hide()
[all …]
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DMetadataController.java109 ViewUtils.setVisible(title, false); in MetadataController()
110 ViewUtils.setVisible(artist, false); in MetadataController()
111 ViewUtils.setVisible(albumTitle, false); in MetadataController()
112 ViewUtils.setVisible(albumArt, false); in MetadataController()
120 ViewUtils.setVisible(title, true); in MetadataController()
125 ViewUtils.setVisible(artist, !TextUtils.isEmpty(artistName)); in MetadataController()
128 ViewUtils.setVisible(albumArt, true); in MetadataController()
136 ViewUtils.setVisible(currentTime, hasTime); in MetadataController()
137 ViewUtils.setVisible(innerSeparator, hasTime); in MetadataController()
138 ViewUtils.setVisible(maxTime, hasTime); in MetadataController()
[all …]
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/inputmethod/
DKeyboardFragmentTest.java106 verify(mKeyboardCategory, atLeastOnce()).setVisible(false); in testUpdateAutofillSettings_noCandiate()
107 verify(mKeyboardCategory, never()).setVisible(true); in testUpdateAutofillSettings_noCandiate()
109 verify(mAutofillCategory, atLeastOnce()).setVisible(false); in testUpdateAutofillSettings_noCandiate()
110 verify(mAutofillCategory, never()).setVisible(true); in testUpdateAutofillSettings_noCandiate()
126 verify(mKeyboardCategory, atLeastOnce()).setVisible(true); in testUpdateAutofillSettings_selected()
127 verify(mKeyboardCategory, never()).setVisible(false); in testUpdateAutofillSettings_selected()
129 verify(mAutofillCategory, atLeastOnce()).setVisible(true); in testUpdateAutofillSettings_selected()
130 verify(mAutofillCategory, never()).setVisible(false); in testUpdateAutofillSettings_selected()
148 verify(mKeyboardCategory, atLeastOnce()).setVisible(true); in testUpdateAutofillSettings_selectedNone()
149 verify(mKeyboardCategory, never()).setVisible(false); in testUpdateAutofillSettings_selectedNone()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DAppsPreferenceController.java128 mAllAppsInfoPref.setVisible(false); in refreshUi()
129 mRecentAppsCategory.setVisible(true); in refreshUi()
130 mGeneralCategory.setVisible(true); in refreshUi()
131 mSeeAllPref.setVisible(true); in refreshUi()
133 mAllAppsInfoPref.setVisible(true); in refreshUi()
134 mRecentAppsCategory.setVisible(false); in refreshUi()
135 mGeneralCategory.setVisible(false); in refreshUi()
136 mSeeAllPref.setVisible(false); in refreshUi()
171 mRecentAppsCategory.setVisible(false); in initPreferences()
172 mGeneralCategory.setVisible(false); in initPreferences()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2.java433 headerPref.setVisible(false); in setupEntityHeader()
435 mDataUsageSummaryPref.setVisible(true); in setupEntityHeader()
572 mSignalStrengthPref.setVisible(false); in refreshRssiViews()
597 mSignalStrengthPref.setVisible(true); in refreshRssiViews()
629 mFrequencyPref.setVisible(false); in refreshFrequency()
646 mFrequencyPref.setVisible(false); in refreshFrequency()
653 mFrequencyPref.setVisible(true); in refreshFrequency()
663 mTxLinkSpeedPref.setVisible(false); in refreshTxSpeed()
668 mTxLinkSpeedPref.setVisible(txLinkSpeedMbps >= 0); in refreshTxSpeed()
676 mRxLinkSpeedPref.setVisible(false); in refreshRxSpeed()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DNetworkFragment.java196 mEnableWifiPref.setVisible(false); in onCreatePreferences()
216 networkDiagnosticsPref.setVisible(true); in onCreatePreferences()
219 networkDiagnosticsPref.setVisible(false); in onCreatePreferences()
243 dataSaverSlicePref.setVisible(isDataSaverVisible); in updateVisibilityForDataSaver()
244 dataAlertSlicePref.setVisible(isDataAlertVisible); in updateVisibilityForDataSaver()
302 mWifiNetworksCategory.setVisible(wifiEnabled); in updateConnectivity()
303 mCollapsePref.setVisible(wifiEnabled && mWifiNetworksCategory.shouldShowCollapsePref()); in updateConnectivity()
304 mAddPref.setVisible(wifiEnabled); in updateConnectivity()
306 mAddEasyConnectPref.setVisible(wifiEnabled && mWifiManager.isEasyConnectSupported()); in updateConnectivity()
329 mEthernetCategory.setVisible(ethernetAvailable); in updateConnectivity()
[all …]
DWifiDetailsFragment.java152 mIpAddressPref.setVisible(active); in update()
153 mSignalStrengthPref.setVisible(active); in update()
163 mMacAddressPref.setVisible(true); in update()
167 mMacAddressPref.setVisible(false); in update()
168 mRandomMacPref.setVisible(false); in update()
189 mProxySettingsPref.setVisible(wifiConfiguration != null); in update()
195 mIpSettingsPref.setVisible(wifiConfiguration != null); in update()
201 mForgetNetworkPref.setVisible(wifiConfiguration != null); in update()
256 mRandomMacPref.setVisible(mConnectivityListener.isMacAddressRandomizationSupported()); in updateRandomMacPref()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DActionButtonsPreferenceTest.java130 mPref.getButton(ActionButtons.BUTTON1).setText(R.string.settings_label).setVisible(false); in onBindViewHolder_setVisibleIsGoneAndSetTitle_shouldNotShowButton()
131 mPref.getButton(ActionButtons.BUTTON2).setText(R.string.settings_label).setVisible(false); in onBindViewHolder_setVisibleIsGoneAndSetTitle_shouldNotShowButton()
132 mPref.getButton(ActionButtons.BUTTON3).setText(R.string.settings_label).setVisible(false); in onBindViewHolder_setVisibleIsGoneAndSetTitle_shouldNotShowButton()
133 mPref.getButton(ActionButtons.BUTTON4).setText(R.string.settings_label).setVisible(false); in onBindViewHolder_setVisibleIsGoneAndSetTitle_shouldNotShowButton()
149 mPref.getButton(ActionButtons.BUTTON1).setIcon(R.drawable.ic_lock).setVisible(false); in onBindViewHolder_setVisibleIsGoneAndSetIcon_shouldNotShowButton()
150 mPref.getButton(ActionButtons.BUTTON2).setIcon(R.drawable.ic_lock).setVisible(false); in onBindViewHolder_setVisibleIsGoneAndSetIcon_shouldNotShowButton()
151 mPref.getButton(ActionButtons.BUTTON3).setIcon(R.drawable.ic_lock).setVisible(false); in onBindViewHolder_setVisibleIsGoneAndSetIcon_shouldNotShowButton()
152 mPref.getButton(ActionButtons.BUTTON4).setIcon(R.drawable.ic_lock).setVisible(false); in onBindViewHolder_setVisibleIsGoneAndSetIcon_shouldNotShowButton()
168 mPref.getButton(ActionButtons.BUTTON1).setText(R.string.settings_label).setVisible(false); in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility()
169 mPref.getButton(ActionButtons.BUTTON2).setText(R.string.settings_label).setVisible(false); in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DDisplayWhiteBalancePreferenceControllerTest.java142 verify(mPreference).setVisible(true); in visibility_configuredAvailableAccessibilityToggled()
147 verify(mPreference).setVisible(true); in visibility_configuredAvailableAccessibilityToggled()
152 verify(mPreference).setVisible(false); in visibility_configuredAvailableAccessibilityToggled()
157 verify(mPreference).setVisible(false); in visibility_configuredAvailableAccessibilityToggled()
164 verify(mPreference).setVisible(false); in visibility_configuredAvailableAccessibilityToggled()
169 verify(mPreference).setVisible(true); in visibility_configuredAvailableAccessibilityToggled()
182 verify(mPreference).setVisible(true); in visibility_configuredAvailableColorModeChanged()
187 verify(mPreference).setVisible(false); in visibility_configuredAvailableColorModeChanged()
193 verify(mPreference).setVisible(true); in visibility_configuredAvailableColorModeChanged()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastSettings.java586 mMasterToggle.setVisible(res.getBoolean(R.bool.show_main_switch_settings)); in updatePreferenceVisibility()
590 mPresidentialCheckBox.setVisible( in updatePreferenceVisibility()
595 mExtremeCheckBox.setVisible(res.getBoolean(R.bool.show_extreme_alert_settings) in updatePreferenceVisibility()
601 mSevereCheckBox.setVisible(res.getBoolean(R.bool.show_severe_alert_settings) in updatePreferenceVisibility()
607 mAmberCheckBox.setVisible(res.getBoolean(R.bool.show_amber_alert_settings) in updatePreferenceVisibility()
613 mPublicSafetyMessagesChannelCheckBox.setVisible( in updatePreferenceVisibility()
622 mPublicSafetyMessagesChannelFullScreenCheckBox.setVisible( in updatePreferenceVisibility()
629 mTestCheckBox.setVisible(isTestAlertsToggleVisible(getContext())); in updatePreferenceVisibility()
643 mExerciseTestCheckBox.setVisible(visible); in updatePreferenceVisibility()
657 mOperatorDefinedCheckBox.setVisible(visible); in updatePreferenceVisibility()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactPickerFragment.java351 addMoreParticipantsItem.setVisible(false); in updateVisualsForContactPickingMode()
352 confirmParticipantsItem.setVisible(false); in updateVisualsForContactPickingMode()
376 addMoreParticipantsItem.setVisible(true); in updateVisualsForContactPickingMode()
377 confirmParticipantsItem.setVisible(false); in updateVisualsForContactPickingMode()
391 addMoreParticipantsItem.setVisible(false); in updateVisualsForContactPickingMode()
392 confirmParticipantsItem.setVisible(true); in updateVisualsForContactPickingMode()
400 addMoreParticipantsItem.setVisible(false); in updateVisualsForContactPickingMode()
401 confirmParticipantsItem.setVisible(true); in updateVisualsForContactPickingMode()
422 deleteTextItem.setVisible(false); in updateTextInputButtonsVisibility()
423 keypadToggleItem.setVisible(true); in updateTextInputButtonsVisibility()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DMultiSelectActionModeCallback.java177 mAddContactMenuItem.setVisible(!conversation.isGroup && !isInContacts); in updateActionIconsVisiblity()
180 mBlockMenuItem.setVisible(otherParticipant != null in updateActionIconsVisiblity()
183 mBlockMenuItem.setVisible(false); in updateActionIconsVisiblity()
184 mAddContactMenuItem.setVisible(false); in updateActionIconsVisiblity()
213 mNotificationOffMenuItem.setVisible(hasCurrentlyOnNotification); in updateActionIconsVisiblity()
214 mNotificationOnMenuItem.setVisible(hasCurrentlyOffNotification); in updateActionIconsVisiblity()
216 mArchiveMenuItem.setVisible(hasCurrentlyUnarchived); in updateActionIconsVisiblity()
217 mUnarchiveMenuItem.setVisible(hasCurrentlyArchived); in updateActionIconsVisiblity()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DAppsFragment.java72 permissionPreference.setVisible(TextUtils.isEmpty(volumeUuid)); in onCreatePreferences()
86 updateSlicePreference.setVisible(false); in onCreatePreferences()
96 updateSlicePreference.setVisible( in onCreatePreferences()
113 overlaySecuritySlicePreference.setVisible(true); in showOverlaySecuritySlicePreference()
116 securityPreference.setVisible(false); in showOverlaySecuritySlicePreference()
124 securityPreference.setVisible(true); in showSecurityPreference()
127 overlaySecuritySlicePreference.setVisible(false); in showSecurityPreference()
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/ui/conversationlist/
DConversationItemViewHolder.java93 ViewUtils.setVisible(mDotSeparatorView, showDotSeparatorSubtitle); in bind()
94 ViewUtils.setVisible(mSubtitleIconView, uiData.getSubtitleIcon() != null); in bind()
108 ViewUtils.setVisible(mUnreadIconIndicator, /* visible= */ true); in setUpTextAppearance()
114 ViewUtils.setVisible(mUnreadIconIndicator, /* visible= */ false); in setUpTextAppearance()
131 ViewUtils.setVisible(mDivider, uiData.shouldShowReplyIcon() || uiData.shouldShowMuteIcon()); in setUpActionButton()
132 ViewUtils.setVisible(mMuteActionButton, uiData.shouldShowMuteIcon()); in setUpActionButton()
133 ViewUtils.setVisible(mReplyActionButton, uiData.shouldShowReplyIcon()); in setUpActionButton()
/packages/apps/Settings/src/com/android/settings/development/
DWirelessDebuggingFragment.java333 mDeviceNamePreference.setVisible(false); in showOffMessage()
334 mIpAddrPreference.setVisible(false); in showOffMessage()
335 mPairingMethodsCategory.setVisible(false); in showOffMessage()
336 mPairedDevicesCategory.setVisible(false); in showOffMessage()
337 mFooterCategory.setVisible(true); in showOffMessage()
341 mDeviceNamePreference.setVisible(true); in showDebuggingPreferences()
342 mIpAddrPreference.setVisible(true); in showDebuggingPreferences()
343 mPairingMethodsCategory.setVisible(true); in showDebuggingPreferences()
344 mPairedDevicesCategory.setVisible(true); in showDebuggingPreferences()
345 mFooterCategory.setVisible(false); in showDebuggingPreferences()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DStorageFragment.java173 mMigratePref.setVisible(showMigrate); in refresh()
182 mEjectPref.setVisible(!privateInternal); in refresh()
185 mErasePref.setVisible(!privateInternal); in refresh()
196 mAppsUsagePref.setVisible(isPrivate); in refresh()
199 mDcimUsagePref.setVisible(isPrivate); in refresh()
200 mMusicUsagePref.setVisible(isPrivate); in refresh()
201 mDownloadsUsagePref.setVisible(isPrivate); in refresh()
202 mCacheUsagePref.setVisible(isPrivate); in refresh()
/packages/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/toolbar/
DToolbarControllerImpl.java282 setVisible(mBackButtonView, mBackButtonVisible);
284 setVisible(mLogoInNavIconSpace, hasLogoInNavIconSpace);
285 setVisible(mLogo, mHasLogo && (mBackButtonVisible || !mLogoFillsNavSpace));
286 setVisible(mNavIconContainer,
288 setVisible(mTabContainer, hasTabs && !isSearching);
289 setVisible(mTitleView, !TextUtils.isEmpty(getTitle()) && !isSearching
291 setVisible(mSubtitleView, !TextUtils.isEmpty(getSubtitle()) && !isSearching
295 private static void setVisible(View view, boolean visible) {
/packages/apps/Car/Media/src/com/android/car/media/browse/
DBrowseViewHolder.java88 ViewUtils.setVisible(mSubtitle, showSubtitle); in bind()
96 ViewUtils.setVisible(mRightArrow, hasMediaItem && data.mMediaItem.isBrowsable()); in bind()
102 ViewUtils.setVisible(mTitleDownloadIcon, !showSubtitle && downloaded); in bind()
103 ViewUtils.setVisible(mTitleExplicitIcon, !showSubtitle && explicit); in bind()
104 ViewUtils.setVisible(mSubTitleDownloadIcon, showSubtitle && downloaded); in bind()
105 ViewUtils.setVisible(mSubTitleExplicitIcon, showSubtitle && explicit); in bind()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceController.java225 mPublicStoragePreference.setVisible(isValidPublicVolume()); in setVolume()
259 mImagesPreference.setVisible(visible); in setPrivateStorageCategoryPreferencesVisibility()
260 mVideosPreference.setVisible(visible); in setPrivateStorageCategoryPreferencesVisibility()
261 mAudioPreference.setVisible(visible); in setPrivateStorageCategoryPreferencesVisibility()
262 mAppsPreference.setVisible(visible); in setPrivateStorageCategoryPreferencesVisibility()
263 mGamesPreference.setVisible(visible); in setPrivateStorageCategoryPreferencesVisibility()
264 mSystemPreference.setVisible(visible); in setPrivateStorageCategoryPreferencesVisibility()
265 mTrashPreference.setVisible(visible); in setPrivateStorageCategoryPreferencesVisibility()
271 mDocumentsAndOtherPreference.setVisible(sharedVolume != null in setPrivateStorageCategoryPreferencesVisibility()
274 mDocumentsAndOtherPreference.setVisible(false); in setPrivateStorageCategoryPreferencesVisibility()
/packages/apps/Settings/src/com/android/settings/network/
DInternetResetHelper.java192 mWifiTogglePreferences.setVisible(false); in suspendPreferences()
196 pref.setVisible(false); in suspendPreferences()
199 mResettingPreference.setVisible(true); in suspendPreferences()
211 mWifiTogglePreferences.setVisible(true); in resumePreferences()
213 pref.setVisible(true); in resumePreferences()
220 mResettingPreference.setVisible(false); in resumePreferences()

12345678910>>...16