Lines Matching defs:tv

308                     TaskView tv = taskViews.get(i);
309 tv.startNoUserInteractionAnimation();
433 TaskView tv = taskViews.get(i);
434 Task task = tv.getTask();
438 return tv;
450 TaskView tv = taskViews.get(i);
451 if (tv.getTask() == t) {
452 return tv;
607 TaskView tv = taskViews.get(i);
608 Task task = tv.getTask();
625 mTmpTaskViewMap.put(task.key, tv);
627 if (mTouchExplorationEnabled && Utilities.isDescendentAccessibilityFocused(tv)) {
631 mViewPool.returnViewToPool(tv);
650 TaskView tv = mTmpTaskViewMap.get(task.key);
651 if (tv == null) {
652 tv = mViewPool.pickUpViewFromPool(task, task);
654 updateTaskViewToTransform(tv, transform, AnimationProps.IMMEDIATE);
657 updateTaskViewToTransform(tv, mLayoutAlgorithm.getBackOfStackTransform(),
660 updateTaskViewToTransform(tv, mLayoutAlgorithm.getFrontOfStackTransform(),
668 if (insertIndex != getTaskViews().indexOf(tv)){
669 detachViewFromParent(tv);
670 attachViewToParent(tv, insertIndex, tv.getLayoutParams());
721 TaskView tv = taskViews.get(i);
722 Task task = tv.getTask();
734 updateTaskViewToTransform(tv, transform, animation);
771 TaskView tv = getChildViewForTask(task);
772 if (tv != null) {
773 transform.fillIn(tv);
812 final TaskView tv = taskViews.get(i);
813 if (!mIgnoreTasks.contains(tv.getTask().key)) {
814 tv.cancelTransformAnimation();
834 TaskView tv = taskViews.get(i);
838 if (isIgnoredTask(tv.getTask())) {
842 tv.setTranslationZ(Math.max(tv.getTranslationZ(),
847 if (i < (taskViewCount - 1) && tv.shouldClipViewInStack()) {
862 float taskBottom = tv.getBottom();
870 tv.getViewBounds().setClipBottom(clipBottom);
871 tv.mThumbnailView.updateThumbnailVisibility(clipBottom - tv.getPaddingBottom());
872 prevVisibleTv = tv;
945 final TaskView tv = getChildViewForTask(mFocusedTask);
946 if (tv != null) {
947 tv.getHeaderView().cancelFocusTimerIndicator();
960 final TaskView tv = getChildViewForTask(mFocusedTask);
961 if (tv != null) {
962 tv.getHeaderView().startFocusTimerIndicator(timerIndicatorDuration);
1029 TaskView tv = getFrontMostTaskView(stackTasksOnly);
1030 if (tv != null) {
1031 newIndex = mStack.indexOfStackTask(tv.getTask());
1096 TaskView tv = getChildViewForTask(task);
1097 if (tv != null) {
1098 tv.setFocusedState(false, false /* requestViewFocus */);
1121 TaskView tv = taskViews.get(i);
1122 if (Utilities.isDescendentAccessibilityFocused(tv)) {
1123 return tv.getTask();
1328 private void measureTaskView(TaskView tv) {
1330 if (tv.getBackground() != null) {
1331 tv.getBackground().getPadding(padding);
1335 tv.measure(
1381 private void layoutTaskView(boolean changed, TaskView tv) {
1384 if (tv.getBackground() != null) {
1385 tv.getBackground().getPadding(padding);
1389 tv.cancelTransformAnimation();
1390 tv.layout(mTmpRect.left - padding.left, mTmpRect.top - padding.top,
1394 tv.layout(tv.getLeft(), tv.getTop(), tv.getRight(), tv.getBottom());
1429 public boolean isTouchPointInView(float x, float y, TaskView tv) {
1430 mTmpRect.set(tv.getLeft(), tv.getTop(), tv.getRight(), tv.getBottom());
1431 mTmpRect.offset((int) tv.getTranslationX(), (int) tv.getTranslationY());
1517 TaskView tv = getChildViewForTask(removedTask);
1518 if (tv != null) {
1519 mViewPool.returnViewToPool(tv);
1586 TaskView tv = taskViews.get(i);
1587 bindTaskView(tv, tv.getTask());
1603 public void onReturnViewToPool(TaskView tv) {
1604 final Task task = tv.getTask();
1607 unbindTaskView(tv, task);
1610 tv.clearAccessibilityFocus();
1611 tv.resetViewProperties();
1612 tv.setFocusedState(false, false /* requestViewFocus */);
1613 tv.setClipViewInStack(false);
1615 tv.hideActionButton(false /* fadeOut */, 0 /* duration */, false /* scaleDown */, null);
1619 detachViewFromParent(tv);
1625 public void onPickUpViewFromPool(TaskView tv, Task task, boolean isNewView) {
1635 addView(tv, insertIndex);
1639 ViewGroup.LayoutParams params = tv.getLayoutParams();
1643 addViewInLayout(tv, insertIndex, params, true /* preventRequestLayout */);
1644 measureTaskView(tv);
1645 layoutTaskView(true /* changed */, tv);
1648 attachViewToParent(tv, insertIndex, tv.getLayoutParams());
1654 bindTaskView(tv, task);
1657 tv.setCallbacks(this);
1658 tv.setTouchEnabled(true);
1659 tv.setClipViewInStack(true);
1661 tv.setFocusedState(true, false /* requestViewFocus */);
1664 tv.getHeaderView().startFocusTimerIndicator(mStartTimerIndicatorDuration);
1670 if (mScreenPinningEnabled && tv.getTask() ==
1672 tv.showActionButton(false /* fadeIn */, 0 /* fadeInDuration */);
1677 public boolean hasPreferredData(TaskView tv, Task preferredData) {
1678 return (tv.getTask() == preferredData);
1681 private void bindTaskView(TaskView tv, Task task) {
1683 tv.onTaskBound(task, mTouchExplorationEnabled, mDisplayOrientation, mDisplayRect);
1689 tv.setNoUserInteractionState();
1701 private void unbindTaskView(TaskView tv, Task task) {
1739 public void onTaskViewClipStateChanged(TaskView tv) {
1790 final TaskView tv = getChildViewForTask(t);
1791 if (tv != null) {
1793 tv.dismissTask();
1884 TaskView tv = getChildViewForTask(mFocusedTask);
1885 if (tv != null) {
1886 tv.dismissTask();
1989 TaskView tv = getChildViewForTask(mFocusedTask);
1990 if (tv != null) {
1991 tv.getHeaderView().cancelFocusTimerIndicator();
2180 TaskView tv = taskViews.get(i);
2181 Task task = tv.getTask();
2183 tv.setVisibility(event.visible ? View.VISIBLE : View.INVISIBLE);