/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/ |
D | FocusFinderTest.java | 25 import android.view.View; 40 assertIsPartiallyInDirection(View.FOCUS_LEFT, src, in testPartiallyInDirection() 42 assertIsPartiallyInDirection(View.FOCUS_RIGHT, src, in testPartiallyInDirection() 44 assertIsPartiallyInDirection(View.FOCUS_UP, src, in testPartiallyInDirection() 46 assertIsPartiallyInDirection(View.FOCUS_DOWN, src, in testPartiallyInDirection() 55 assertIsInDirection(View.FOCUS_LEFT, src, new Rect(99, 100, 200, 200)); in testInDirection() 56 assertIsInDirection(View.FOCUS_RIGHT, src, new Rect(100, 99, 201, 200)); in testInDirection() 57 assertIsInDirection(View.FOCUS_UP, src, new Rect(101, 99, 199, 200)); in testInDirection() 58 assertIsInDirection(View.FOCUS_DOWN, src, new Rect(99, 100, 201, 201)); in testInDirection() 61 assertIsInDirection(View.FOCUS_LEFT, src, new Rect(0, 0, 50, 50)); in testInDirection() [all …]
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | SelfManagedCallListAdapter.java | 25 import android.view.View; 41 private View.OnClickListener mDisconnectListener = new View.OnClickListener() { 43 public void onClick(View v) { 44 View parent = (View) v.getParent().getParent(); 54 private View.OnClickListener mActiveListener = new View.OnClickListener() { 56 public void onClick(View v) { 57 View parent = (View) v.getParent().getParent(); 67 private View.OnClickListener mMissedListener = new View.OnClickListener() { 69 public void onClick(View v) { 70 View parent = (View) v.getParent().getParent(); [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/main/java/com/android/car/ui/utils/ |
D | ViewUtils.java | 27 import android.view.View; 144 public static boolean hideFocus(@NonNull View root) { in hideFocus() 159 public static FocusArea getAncestorFocusArea(@NonNull View view) { in getAncestorFocusArea() 175 public static ViewGroup getAncestorScrollableContainer(@Nullable View view) { in getAncestorScrollableContainer() 197 public static boolean requestFocus(@Nullable View view) { in requestFocus() 217 public static boolean adjustFocus(@NonNull View root, @Nullable View currentFocus) { in adjustFocus() 227 public static boolean adjustFocusImmediately(@NonNull View root, @Nullable View currentFocus) { in adjustFocusImmediately() 239 public static boolean initFocus(@NonNull View root, @Nullable View currentFocus) { in initFocus() 255 static boolean adjustFocus(@NonNull View root, @FocusLevel int currentLevel) { in adjustFocus() 266 public static boolean adjustFocus(@NonNull View root, in adjustFocus() [all …]
|
/packages/apps/Car/RotaryController/src/com/android/car/rotary/ |
D | FocusFinder.java | 20 import android.view.View; 38 View.FOCUS_LEFT, View.FOCUS_RIGHT, View.FOCUS_UP, View.FOCUS_DOWN 51 case View.FOCUS_LEFT: in isPartiallyInDirection() 53 case View.FOCUS_RIGHT: in isPartiallyInDirection() 55 case View.FOCUS_UP: in isPartiallyInDirection() 57 case View.FOCUS_DOWN: in isPartiallyInDirection() 91 case View.FOCUS_LEFT: in isInDirection() 93 case View.FOCUS_RIGHT: in isInDirection() 95 case View.FOCUS_UP: in isInDirection() 97 case View.FOCUS_DOWN: in isInDirection() [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/ |
D | CarUiListItemAdapter.java | 24 import android.view.View; 173 final View mActionDivider; 178 final View mTouchInterceptor; 179 final View mReducedTouchInterceptor; 180 final View mActionContainerTouchInterceptor; 182 ListItemViewHolder(@NonNull View itemView) { in ListItemViewHolder() 208 mTitle.setVisibility(View.VISIBLE); in bind() 210 mTitle.setVisibility(View.GONE); in bind() 215 mBody.setVisibility(View.VISIBLE); in bind() 217 mBody.setVisibility(View.GONE); in bind() [all …]
|
/packages/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/recyclerview/ |
D | ListItemAdapter.java | 21 import android.view.View; 198 public void setRecyclerView(View recyclerview) { in setRecyclerView() 245 BaseViewHolder(@NonNull View itemView) { in BaseViewHolder() 261 final View mActionDivider; 266 final View mTouchInterceptor; 267 final View mReducedTouchInterceptor; 268 final View mActionContainerTouchInterceptor; 270 ListItemViewHolder(@NonNull View itemView) { in ListItemViewHolder() 295 mTitle.setVisibility(View.VISIBLE); in bind() 297 mTitle.setVisibility(View.GONE); in bind() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherAnimUtils.java | 27 import android.view.View; 53 public static final FloatProperty<View> SCALE_PROPERTY = 54 new FloatProperty<View>("scale") { 56 public Float get(View view) { 61 public void setValue(View view, float scale) { 98 public static final FloatProperty<View> VIEW_TRANSLATE_X = 99 View.TRANSLATION_X instanceof FloatProperty ? (FloatProperty) View.TRANSLATION_X 100 : new FloatProperty<View>("translateX") { 102 public void setValue(View view, float v) { 107 public Float get(View view) { [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | CallLogListItemViewHolder.java | 48 import android.view.View; 108 implements View.OnClickListener, 110 View.OnCreateContextMenuListener { 115 public final View rootView; 119 public final View primaryActionView; 140 public View actionsView; 144 public View callButtonView; 145 public View videoCallButtonView; 146 public View setUpVideoButtonView; 147 public View inviteVideoButtonView; [all …]
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/ |
D | ViewUtils.java | 19 import static android.view.View.INVISIBLE; 20 import static android.view.View.VISIBLE; 26 import android.view.View; 49 void onAnimationEnd(View view); in onAnimationEnd() 53 public static void showHideViewAnimated(boolean show, @NonNull View view, int duration, in showHideViewAnimated() 68 public static void hideViewAnimated(@NonNull View view, int duration, in hideViewAnimated() 76 view.setVisibility(View.GONE); in hideViewAnimated() 96 public static void hideViewAnimated(@NonNull View view, int duration) { in hideViewAnimated() 101 public static Animator.AnimatorListener hideViewAfterAnimation(View view) { in hideViewAfterAnimation() 105 view.setVisibility(View.GONE); in hideViewAfterAnimation() [all …]
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | FilmstripBottomPanel.java | 22 import android.view.View; 23 import android.view.View.OnClickListener; 44 private final View mControlLayout; 49 private final View mMiddleFiller; 50 private View mProgressLayout; 52 private View mProgressErrorLayout; 92 mLayout.setVisibility(View.VISIBLE); in setVisible() 94 mLayout.setVisibility(View.INVISIBLE); in setVisible() 100 mEditButton.setVisibility(visible ? View.VISIBLE : View.GONE); in setEditButtonVisibility() 127 mDeleteButton.setVisibility(visible ? View.VISIBLE : View.INVISIBLE); in setDeleteButtonVisibility() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/contactgrid/ |
D | ContactGridManager.java | 29 import android.view.View; 53 private final View contactGridLayout; 92 private final View deviceNumberDivider; 100 View view, @Nullable ImageView avatarImageView, int avatarSize, boolean showAnonymousAvatar) { in ContactGridManager() 120 contactGridLayout = (View) contactNameTextView.getParent(); in ContactGridManager() 129 contactGridLayout.setVisibility(View.VISIBLE); in show() 133 contactGridLayout.setVisibility(View.GONE); in hide() 147 public View getContainerView() { in getContainerView() 157 contactNameTextView.setVisibility(isMiddleRowVisible ? View.VISIBLE : View.GONE); in setIsMiddleRowVisible() 201 private void dispatchPopulateAccessibilityEvent(AccessibilityEvent event, View view) { in dispatchPopulateAccessibilityEvent() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | ExpandingEntryCardView.java | 45 import android.view.View; 72 private static final Property<View, Integer> VIEW_LAYOUT_HEIGHT_PROPERTY = 73 new Property<View, Integer>(Integer.class, "height") { 75 public void set(View view, Integer height) { 83 public Integer get(View view) { 249 private View mExpandCollapseButton; 264 private List<List<View>> mEntryViews; 277 private List<View> mSeparators; 282 public void onClick(View v) { 298 View expandingEntryCardView = inflater.inflate(R.layout.expanding_entry_card_view, this); in ExpandingEntryCardView() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
D | CollapsedAlarmViewHolder.kt | 26 import android.view.View in <lambda>() 43 class CollapsedAlarmViewHolder private constructor(itemView: View) : AlarmItemViewHolder(itemView) { in <lambda>() 48 private val hairLine: View = itemView.findViewById(R.id.hairline) in <lambda>() 71 itemView.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO) in <lambda>() 88 alarmLabel.visibility = View.VISIBLE in <lambda>() 92 alarmLabel.visibility = View.GONE in <lambda>() 105 daysOfWeek.visibility = View.VISIBLE in <lambda>() 107 daysOfWeek.visibility = View.GONE in <lambda>() 113 upcomingInstanceLabel.visibility = View.GONE in <lambda>() 115 upcomingInstanceLabel.visibility = View.VISIBLE in <lambda>() [all …]
|
D | ExpandedAlarmViewHolder.kt | 32 import android.view.View in <lambda>() 33 import android.view.View.TRANSLATION_Y in <lambda>() 56 class ExpandedAlarmViewHolder private constructor(itemView: View, private val mHasVibrator: Boolean) in <lambda>() 65 private val hairLine: View = itemView.findViewById(R.id.hairline) in <lambda>() 78 val dayButtonFrame: View = inflater.inflate(R.layout.day_button, repeatDays, in <lambda>() 139 itemView.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO) in <lambda>() 185 repeatDays.visibility = View.VISIBLE in <lambda>() 188 repeatDays.visibility = View.GONE in <lambda>() 203 vibrate.visibility = View.INVISIBLE in <lambda>() 205 vibrate.visibility = View.VISIBLE in <lambda>() [all …]
|
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/homescreen/ |
D | HomeCardFragment.java | 23 import android.view.View; 50 public class HomeCardFragment extends Fragment implements HomeCardInterface.View { 55 private View mCardBackground; 57 private View mRootView; 62 private View mTextBlockLayoutView; 67 private View mDescriptiveTextOnlyLayoutView; 74 private View mDescriptiveTextWithControlsLayoutView; 78 private View mControlBarView; 89 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() 98 public void onViewCreated(View view, Bundle savedInstanceState) { in onViewCreated() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/video/impl/ |
D | SurfaceViewVideoCallFragment.java | 38 import android.view.View; 39 import android.view.View.OnClickListener; 40 import android.view.View.OnSystemUiVisibilityChangeListener; 100 private View endCallButton; 106 private View switchOnHoldButton; 107 private View onHoldContainer; 110 private View mutePreviewOverlay; 111 private View previewOffOverlay; 112 private View controls; 113 private View controlsContainer; [all …]
|
D | VideoCallFragment.java | 46 import android.view.View; 47 import android.view.View.OnClickListener; 48 import android.view.View.OnLayoutChangeListener; 49 import android.view.View.OnSystemUiVisibilityChangeListener; 117 public void getOutline(View view, Outline outline) { 128 private View endCallButton; 134 private View switchOnHoldButton; 135 private View onHoldContainer; 139 private View mutePreviewOverlay; 140 private View previewOffOverlay; [all …]
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/ |
D | FadeAndShortSlide.java | 27 import android.view.View; 51 ViewGroup sceneRoot, View view, int[] position, int distance); in getGoneX() 58 ViewGroup sceneRoot, View view, int[] position, int distance) { 60 sceneRoot.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; 75 ViewGroup sceneRoot, View view, int[] position, int distance) { 77 sceneRoot.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; 119 View view = transitionValues.view; in captureValues() 125 private int getDelayOrder(View view, boolean appear) { in getDelayOrder() 129 final View parentForDelay = findParentForDelay(view); in getDelayOrder() 133 List<View> transitionTargets = new ArrayList<>(); in getDelayOrder() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | EditorAnimator.java | 24 import android.view.View; 51 public void removeEditorView(final View victim) { in removeEditorView() 55 final List<View> viewsToMove = getViewsBelowOf(victim); in removeEditorView() 60 ObjectAnimator.ofFloat(victim, View.ALPHA, 1.0f, 0.0f); in removeEditorView() 72 final View view = viewsToMove.get(i); in removeEditorView() 94 target.setVisibility(View.VISIBLE); in slideAndFadeIn() 103 final List<View> viewsToMove = getViewsBelowOf(target); in slideAndFadeIn() 109 target, View.ALPHA, 0.0f, 1.0f); in slideAndFadeIn() 119 public void showFieldFooter(final View view) { in showFieldFooter() 121 if (view.getVisibility() == View.VISIBLE) return; in showFieldFooter() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AnimatorUtils.kt | 30 import android.view.View in <lambda>() 50 val BACKGROUND_ALPHA: Property<View, Int> = in <lambda>() 51 object : Property<View, Int>(Int::class.java, "background.alpha") { in <lambda>() 52 override fun get(view: View): Int { in <lambda>() 61 override fun set(view: View, value: Int) { in <lambda>() 75 fun setBackgroundAlpha(view: View, value: Int?) { in <lambda>() 176 fun getScaleAnimator(view: View?, vararg values: Float): ValueAnimator { in <lambda>() 178 PropertyValuesHolder.ofFloat(View.SCALE_X, *values), in <lambda>() 179 PropertyValuesHolder.ofFloat(View.SCALE_Y, *values)) in <lambda>() 183 fun getAlphaAnimator(view: View, vararg values: Float): ValueAnimator { in <lambda>() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraMediaChooser.java | 28 import android.view.View; 59 private View mEnabledView; 60 private View mMissingPermissionView; 76 public View destroyView() { in destroyView() 84 protected View createView(final ViewGroup container) { in createView() 95 mCameraPreviewHost.getView().setOnTouchListener(new View.OnTouchListener() { in createView() 97 public boolean onTouch(final View view, final MotionEvent motionEvent) { in createView() 108 final View shutterVisual = view.findViewById(R.id.camera_shutter_visual); in createView() 111 mFullScreenButton.setOnClickListener(new View.OnClickListener() { in createView() 113 public void onClick(final View view) { in createView() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | RotateDialogController.java | 24 import android.view.View; 39 private View mDialogRootLayout; 41 private View mRotateDialogTitleLayout; 42 private View mRotateDialogButtonLayout; 60 View v = inflater.inflate(mLayoutResourceID, layoutRoot); in inflateDialogLayout() 88 mRotateDialogTitleLayout.setVisibility(View.GONE); in resetRotateDialog() 89 mRotateDialogSpinner.setVisibility(View.GONE); in resetRotateDialog() 90 mRotateDialogButton1.setVisibility(View.GONE); in resetRotateDialog() 91 mRotateDialogButton2.setVisibility(View.GONE); in resetRotateDialog() 92 mRotateDialogButtonLayout.setVisibility(View.GONE); in resetRotateDialog() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/widget/ |
D | SearchEditTextLayout.java | 27 import android.view.View; 47 private View collapsed; 48 private View expanded; 50 private View searchIcon; 51 private View collapsedSearchBox; 52 private View voiceSearchButtonView; 53 private View overflowButtonView; 54 private View clearButtonView; 104 public boolean onLongClick(View view) { in onFinishInflate() 118 public void onFocusChange(View v, boolean hasFocus) { in onFinishInflate() [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/main/java/com/android/car/ui/ |
D | FocusArea.java | 43 import android.view.View; 138 private View mDefaultFocusView; 154 private SparseArray<View> mSpecifiedNudgeShortcutMap; 199 private View mFocusedView; 259 setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); in init() 279 View v = getFocusedChild(); in saveFocusHistory() 293 private void maybeUpdatePreviousFocusArea(boolean hasFocus, View oldFocus) { in maybeUpdatePreviousFocusArea() 308 private void maybeClearFocusAreaHistory(boolean hasFocus, View oldFocus) { in maybeClearFocusAreaHistory() 338 mDefaultFocusId = a.getResourceId(R.styleable.FocusArea_defaultFocus, View.NO_ID); in initAttrs() 418 a.getResourceId(R.styleable.FocusArea_nudgeLeftShortcut, View.NO_ID)); in initAttrs() [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | LoadingViewController.java | 21 import android.view.View; 35 private final View mLoadingView; 36 private final View mContentView; 37 private final View mEmptyView; 39 public LoadingViewController(View loadingView, View contentView) { in LoadingViewController() 43 public LoadingViewController(View loadingView, View contentView, @Nullable View emptyView) { in LoadingViewController() 105 public static void handleLoadingContainer(View loading, View content, boolean done, in handleLoadingContainer() 121 public static void handleLoadingContainer(View loading, View content, View empty, in handleLoadingContainer() 130 private static void setViewShown(final View view, boolean shown, boolean animate) { in setViewShown() 135 view.setVisibility(View.VISIBLE); in setViewShown() [all …]
|