/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/androidTest/java/com/android/car/ui/utils/ |
D | ViewUtilsTest.java | 28 import static com.android.car.ui.utils.ViewUtils.DEFAULT_FOCUS; 29 import static com.android.car.ui.utils.ViewUtils.FOCUSED_BY_DEFAULT; 30 import static com.android.car.ui.utils.ViewUtils.IMPLICIT_DEFAULT_FOCUS; 31 import static com.android.car.ui.utils.ViewUtils.NO_FOCUS; 32 import static com.android.car.ui.utils.ViewUtils.REGULAR_FOCUS; 33 import static com.android.car.ui.utils.ViewUtils.SCROLLABLE_CONTAINER_FOCUS; 34 import static com.android.car.ui.utils.ViewUtils.setRotaryScrollEnabled; 108 mRoot.post(() -> assertThat(ViewUtils.getAncestorFocusArea(mView2)).isEqualTo(mFocusArea2)); in testGetAncestorFocusArea() 113 mRoot.post(() -> assertThat(ViewUtils.getAncestorFocusArea(mFocusArea2)).isNull()); in testGetAncestorFocusArea_doesNotReturnItself() 118 mRoot.post(() -> assertThat(ViewUtils.getAncestorFocusArea(mFpv)).isNull()); in testGetAncestorFocusArea_outsideFocusArea() [all …]
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/ |
D | MetadataController.java | 35 import com.android.car.apps.common.util.ViewUtils; 109 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() [all …]
|
D | PlaybackErrorViewController.java | 29 import com.android.car.apps.common.util.ViewUtils; 55 ViewUtils.hideViewAnimated(mErrorMessageView, mFadeDuration); in hideError() 56 ViewUtils.hideViewAnimated(mErrorButton, mFadeDuration); in hideError() 61 ViewUtils.hideViewAnimated(mErrorMessageView, 0); in hideErrorNoAnim() 62 ViewUtils.hideViewAnimated(mErrorButton, 0); in hideErrorNoAnim() 69 ViewUtils.showViewAnimated(mErrorMessageView, mFadeDuration); in setError() 88 ViewUtils.showViewAnimated(mErrorButton, mFadeDuration); in setError() 90 ViewUtils.hideViewAnimated(mErrorButton, mFadeDuration); in setError()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/ |
D | ContactListViewHolder.java | 27 import com.android.car.apps.common.util.ViewUtils; 80 ViewUtils.setVisible(mHeaderView, showHeader); in bind() 82 ViewUtils.setText(mHeaderView, header); in bind() 122 ViewUtils.setEnabled(mCallActionView, hasPhoneNumbers); in setCallActionView() 123 ViewUtils.setVisible(mCallActionView, hasPhoneNumbers || forceShowButton); in setCallActionView() 126 ViewUtils.setOnClickListener(mCallActionView, view -> { in setCallActionView() 132 ViewUtils.setOnClickListener(mCallActionView, null); in setCallActionView() 143 ViewUtils.setEnabled(mShowContactDetailView, hasContactDetail); in setShowContactDetailView() 144 ViewUtils.setVisible(mShowContactDetailView, hasContactDetail || forceShowButton); in setShowContactDetailView() 147 ViewUtils.setOnClickListener(mShowContactDetailView, in setShowContactDetailView() [all …]
|
D | ContactDetailsViewHolder.java | 35 import com.android.car.apps.common.util.ViewUtils; 119 ViewUtils.setText(mTitle, R.string.error_contact_deleted); in bind() 132 ViewUtils.setText(mTitle, contact.getDisplayName()); in bind() 192 ViewUtils.setActivated(mFavoriteActionView, phoneNumber.isFavorite()); in bind() 193 ViewUtils.setEnabled(mFavoriteActionView, true); in bind() 194 ViewUtils.setOnClickListener(mFavoriteActionView, v -> { in bind() 202 ViewUtils.setActivated(mFavoriteActionView, false); in bind() 203 ViewUtils.setEnabled(mFavoriteActionView, false); in bind() 204 ViewUtils.setOnClickListener(mFavoriteActionView, null); in bind() 213 ViewUtils.setText(mText, postalAddress.getReadableLabel(resources)); in bind()
|
/packages/apps/Car/Media/src/com/android/car/media/ |
D | PlaybackFragment.java | 50 import com.android.car.apps.common.util.ViewUtils; 167 ViewUtils.setVisible(mThumbnailContainer, mShowThumbnailForQueueItem); in bind() 173 ViewUtils.setVisible(mSpacer, !mShowThumbnailForQueueItem); in bind() 185 ViewUtils.setVisible(mCurrentTime, shouldShowTime); in bind() 186 ViewUtils.setVisible(mMaxTime, shouldShowTime); in bind() 187 ViewUtils.setVisible(mTimeSeparator, shouldShowTime); in bind() 192 ViewUtils.setVisible(mActiveIcon, shouldShowIcon); in bind() 497 ViewUtils.setVisible(mBackgroundScrim, false); in onViewCreated() 500 ViewUtils.setVisible(mControlBarScrim, false); in onViewCreated() 547 ViewUtils.Filter ignoreSeekBarFilter = in onViewCreated() [all …]
|
D | BrowseViewController.java | 19 import static com.android.car.apps.common.util.ViewUtils.removeFromParent; 38 import com.android.car.apps.common.util.ViewUtils; 265 ViewUtils.showViewAnimated(mMessage, mFadeDuration); 277 ViewUtils.hideViewAnimated(mMessage, mFadeDuration); in stopLoadingIndicator() 333 ViewUtils.hideViewAnimated(mErrorIcon, 0); in onItemsUpdate() 334 ViewUtils.hideViewAnimated(mMessage, 0); in onItemsUpdate() 365 ViewUtils.hideViewAnimated(mBrowseList, duration); in onItemsUpdate() 366 ViewUtils.showViewAnimated(mMessage, duration); in onItemsUpdate() 367 ViewUtils.showViewAnimated(mErrorIcon, duration); in onItemsUpdate() 370 ViewUtils.hideViewAnimated(mBrowseList, duration); in onItemsUpdate() [all …]
|
D | MediaActivity.java | 55 import com.android.car.apps.common.util.ViewUtils; 386 ViewUtils.showViewAnimated(mErrorContainer, mFadeDuration); in changeModeInternal() 387 ViewUtils.hideViewAnimated(mPlaybackContainer, fadeOutDuration); in changeModeInternal() 388 ViewUtils.hideViewAnimated(mBrowseContainer, fadeOutDuration); in changeModeInternal() 394 ViewUtils.hideViewAnimated(mErrorContainer, fadeOutDuration); in changeModeInternal() 395 ViewUtils.showViewAnimated(mPlaybackContainer, mFadeDuration); in changeModeInternal() 396 ViewUtils.hideViewAnimated(mBrowseContainer, fadeOutDuration); in changeModeInternal() 404 ViewUtils.hideViewAnimated(mErrorContainer, 0); in changeModeInternal() 405 ViewUtils.showViewAnimated(mBrowseContainer, 0); in changeModeInternal() 408 ViewUtils.hideViewAnimated(mErrorContainer, fadeOutDuration); in changeModeInternal() [all …]
|
D | MediaActivityController.java | 21 import static com.android.car.apps.common.util.ViewUtils.showHideViewAnimated; 22 import static com.android.car.ui.utils.ViewUtils.LazyLayoutView; 40 import com.android.car.apps.common.util.ViewUtils; 41 import com.android.car.apps.common.util.ViewUtils.ViewAnimEndListener; 251 ViewUtils.setVisible(mSearchResultsController.getContent(), showingSearch); in MediaActivityController() 447 com.android.car.ui.utils.ViewUtils.initFocus(lazyLayoutView); in restoreFocusInCurrentNode() 469 com.android.car.ui.utils.ViewUtils.initFocus(lazyLayoutView); in showHideContentAnimated()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/widget/ |
D | LoadingFrameLayout.java | 36 import com.android.car.apps.common.util.ViewUtils; 231 ViewUtils.setVisible((View) findViewById(R.id.list_view), state == State.CONTENT); in switchTo() 344 ViewUtils.setText(mMessageView, messageResId); in setMessage() 346 ViewUtils.setVisible(mMessageView, false); in setMessage() 353 ViewUtils.setText(mSecondaryMessageView, secondaryMessageResId); in setSecondaryMessage() 355 ViewUtils.setVisible(mSecondaryMessageView, false); in setSecondaryMessage() 362 ViewUtils.setOnClickListener(mActionButton, actionButtonOnClickListener); in setActionButtonClickListener() 368 ViewUtils.setText(mActionButton, actionButtonTextResId); in setActionButtonText() 374 ViewUtils.setVisible(mActionButton, visible); in setActionButtonVisible() 384 ViewUtils.setVisible(mIconView, false); in setIcon()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/calllog/ |
D | CallLogViewHolder.java | 26 import com.android.car.apps.common.util.ViewUtils; 111 ViewUtils.setOnClickListener(mPlaceCallView, in bind() 122 ViewUtils.setOnClickListener(mPlaceCallView, null); in recycle() 133 ViewUtils.setVisible(mDivider, contact != null || forceShowActionButton); in setUpActionButton() 134 ViewUtils.setVisible(mActionButton, contact != null || forceShowActionButton); in setUpActionButton() 135 ViewUtils.setEnabled(mActionButton, contact != null); in setUpActionButton() 138 ViewUtils.setOnClickListener(mActionButton, in setUpActionButton() 141 ViewUtils.setOnClickListener(mActionButton, null); in setUpActionButton()
|
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/ui/conversationlist/ |
D | ConversationItemViewHolder.java | 36 import com.android.car.messenger.core.ui.shared.ViewUtils; 93 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/Car/Dialer/src/com/android/car/dialer/ui/dialpad/ |
D | DialpadFragment.java | 39 import com.android.car.apps.common.util.ViewUtils; 295 ViewUtils.setVisible(mDeleteButton, false); in presentDialedNumber() 304 ViewUtils.setVisible(mDeleteButton, true); in presentDialedNumber() 309 ViewUtils.setVisible(mRecyclerView, true); in presentDialedNumber() 322 ViewUtils.setText(mDisplayName, contact == null ? "" : contact.getDisplayName()); in presentContactInfo() 335 ViewUtils.setText(mLabel, phoneNumber.isPrimary() ? getContext().getString( in presentContactDetail() 337 ViewUtils.setVisible(mLabel, true); in presentContactDetail() 341 ViewUtils.setVisible(mAvatar, true); in presentContactDetail() 345 ViewUtils.setVisible(mLabel, false); in resetContactInfo() 346 ViewUtils.setVisible(mAvatar, false); in resetContactInfo() [all …]
|
/packages/apps/Car/Media/src/com/android/car/media/browse/ |
D | BrowseViewHolder.java | 30 import com.android.car.apps.common.util.ViewUtils; 88 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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/ |
D | AutoUnusedAppsFragment.kt | 27 import com.android.car.ui.utils.ViewUtils 28 import com.android.car.ui.utils.ViewUtils.LazyLayoutView 64 ViewUtils.hideFocus(getListView().getRootView()) in onActivityCreated() 66 ViewUtils.initFocus(lazyLayoutView) in onActivityCreated()
|
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/ui/shared/ |
D | LoadingFrameLayout.java | 207 ViewUtils.setVisible((View) findViewById(R.id.list_view), state == State.CONTENT); in switchTo() 276 ViewUtils.setVisible(mMessageView, false); in setMessage() 287 ViewUtils.setVisible(mSecondaryMessageView, false); in setSecondaryMessage() 308 ViewUtils.setVisible(mActionButton, visible); in setActionButtonVisible() 317 ViewUtils.setVisible(mIconView, false); in setIcon()
|
D | ViewUtils.java | 24 public class ViewUtils { class 26 private ViewUtils() {} in ViewUtils() method in ViewUtils
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/search/ |
D | ContactResultViewHolder.java | 27 import com.android.car.apps.common.util.ViewUtils; 78 ViewUtils.setText(mContactName, in bindSearchResult() 101 ViewUtils.setText(mContactNumber, in bindTypeDownResult() 104 ViewUtils.setText(mContactName, in bindTypeDownResult()
|
/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/main/java/com/android/car/ui/ |
D | FocusArea.java | 53 import com.android.car.ui.utils.ViewUtils; 298 mPreviousFocusArea = ViewUtils.getAncestorFocusArea(oldFocus); in maybeUpdatePreviousFocusArea() 315 FocusArea oldFocusArea = ViewUtils.getAncestorFocusArea(oldFocus); in maybeClearFocusAreaHistory() 532 return ViewUtils.initFocus(root, focus); in maybeInitFocus() 542 return ViewUtils.adjustFocus(root, focus); in maybeAdjustFocus() 572 return ViewUtils.adjustFocus(this, lastFocusedView, mDefaultFocusOverridesHistory); in focusOnDescendant() 597 return ViewUtils.requestFocus(targetView); in nudgeToShortcutView()
|
D | FocusParkingView.java | 40 import com.android.car.ui.utils.ViewUtils; 167 mScrollableContainer = ViewUtils.getAncestorScrollableContainer(focusedView); in updateFocusedView() 287 if (ViewUtils.adjustFocus( in restoreFocusInRoot()
|
/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/main/java/com/android/car/ui/utils/ |
D | ViewUtils.java | 48 public final class ViewUtils { class 99 private ViewUtils() { in ViewUtils() method in ViewUtils 386 return ViewUtils.adjustFocusImmediately(lazyView, visibleFocusedView); in initFocusImmediately() 499 View focusedView = ViewUtils.depthFirstSearch(root, in focusOnFirstRegularView() 513 View focusedView = ViewUtils.depthFirstSearch(root, in focusOnScrollableContainer()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | RecordingCardView.java | 38 import com.android.tv.ui.ViewUtils; 118 ViewUtils.setLayoutHeight( in RecordingCardView() 180 ViewUtils.setLayoutHeight(mTitleArea, mExpandedTitleHeight); in expandTitle() 184 ViewUtils.setLayoutHeight(mTitleArea, mFoldedTitleHeight); in expandTitle()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | ViewUtils.java | 30 public class ViewUtils { class 33 private ViewUtils() { in ViewUtils() method in ViewUtils
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/ |
D | FavoriteContactViewHolder.java | 27 import com.android.car.apps.common.util.ViewUtils; 91 ViewUtils.setText(mTitle, header.getHeader()); in onBind()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | MinimizedControlBar.java | 32 import com.android.car.apps.common.util.ViewUtils; 126 ViewUtils.setView(viewToUse, mSlots[CarControlBar.getSlotIndex(i, NUM_COLUMNS)]); in updateViewsLayout()
|