Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/
DAsyncTaskLoader.java135 volatile LoadTask mTask; field in AsyncTaskLoader
170 mTask = new LoadTask(); in onForceLoad()
171 if (DEBUG) Log.v(TAG, "Preparing load: mTask=" + mTask); in onForceLoad()
177 if (DEBUG) Log.v(TAG, "onCancelLoad: mTask=" + mTask); in onCancelLoad()
178 if (mTask != null) { in onCancelLoad()
187 if (mTask.waiting) { in onCancelLoad()
188 mTask.waiting = false; in onCancelLoad()
189 mHandler.removeCallbacks(mTask); in onCancelLoad()
191 mTask = null; in onCancelLoad()
193 } else if (mTask.waiting) { in onCancelLoad()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityRecordTests.java88 private TaskRecord mTask; field in ActivityRecordTests
94 mTask = mStack.getChildAt(0); in setUp()
95 mActivity = mTask.getTopActivity(); in setUp()
109 mTask.removeActivity(mActivity); in testStackCleanupOnActivityRemoval()
115 mStack.removeTask(mTask, null /*reason*/, REMOVE_TASK_MODE_MOVING); in testStackCleanupOnTaskRemoval()
166 final ActivityRecord topActivity = new ActivityBuilder(mService).setTask(mTask).build(); in testPausingWhenVisibleFromStopped()
215 ActivityRecord activity2 = new ActivityBuilder(mService).setTask(mTask).build(); in testsApplyOptionsLocked()
245 mTask.getRequestedOverrideConfiguration()); in testNewParentConfigurationIncrementsSeq()
250 mTask.onRequestedOverrideConfigurationChanged(newConfig); in testNewParentConfigurationIncrementsSeq()
274 mTask.onRequestedOverrideConfigurationChanged(mTask.getConfiguration()); in testSetsRelaunchReason_NotDragResizing()
[all …]
DAppChangeTransitionTests.java57 private Task mTask; field in AppChangeTransitionTests
62 mTask = createTaskInStack(mStack, 0 /* userId */); in setUpOnDisplay()
65 mTask.addChild(mToken, 0); in setUpOnDisplay()
105 mTask.setWindowingMode(WINDOWING_MODE_FREEFORM); in testModeChangeRemoteAnimatorNoSnapshot()
123 mTask.setWindowingMode(WINDOWING_MODE_FREEFORM); in testCancelPendingChangeOnRemove()
145 assertEquals(WINDOWING_MODE_FREEFORM, mTask.getWindowingMode()); in testNoChangeWhenMoveDisplay()
152 assertEquals(WINDOWING_MODE_FULLSCREEN, mTask.getWindowingMode()); in testNoChangeWhenMoveDisplay()
167 mTask.setWindowingMode(WINDOWING_MODE_FREEFORM); in testCancelPendingChangeOnHide()
DActivityStackTests.java80 private TaskRecord mTask; field in ActivityStackTests
87 mTask = new TaskBuilder(mSupervisor).setStack(mStack).build(); in setUp()
92 assertNotNull(mTask.getTask()); in testEmptyTaskCleanupOnRemove()
93 mStack.removeTask(mTask, "testEmptyTaskCleanupOnRemove", REMOVE_TASK_MODE_DESTROYING); in testEmptyTaskCleanupOnRemove()
94 assertNull(mTask.getTask()); in testEmptyTaskCleanupOnRemove()
99 final ActivityRecord r = new ActivityBuilder(mService).setTask(mTask).build(); in testOccupiedTaskCleanupOnRemove()
100 assertNotNull(mTask.getTask()); in testOccupiedTaskCleanupOnRemove()
101 mStack.removeTask(mTask, "testOccupiedTaskCleanupOnRemove", REMOVE_TASK_MODE_DESTROYING); in testOccupiedTaskCleanupOnRemove()
102 assertNotNull(mTask.getTask()); in testOccupiedTaskCleanupOnRemove()
107 final ActivityRecord r = new ActivityBuilder(mService).setTask(mTask).build(); in testResumedActivity()
[all …]
DAppWindowTokenTests.java79 Task mTask; field in AppWindowTokenTests
87 mTask = createTaskInStack(mStack, 0 /* userId */); in setUp()
90 mTask.addChild(mToken, 0); in setUp()
230 final Configuration newParentConfig = mTask.getConfiguration(); in testSizeCompatBounds()
352 mTask.mTaskRecord = Mockito.mock(TaskRecord.class, RETURNS_DEEP_STUBS); in testReportOrientationChangeOnVisibilityChange()
357 verify(mTask.mTaskRecord).onConfigurationChanged(any(Configuration.class)); in testReportOrientationChangeOnVisibilityChange()
374 mTask.mTaskRecord = Mockito.mock(TaskRecord.class, RETURNS_DEEP_STUBS); in testReportOrientationChangeOnOpeningClosingAppChange()
378 verify(mTask.mTaskRecord).onConfigurationChanged(any(Configuration.class)); in testReportOrientationChangeOnOpeningClosingAppChange()
491 mTask.setBounds(taskBounds); in testTransitionAnimationBounds()
494 mTask.setWindowingMode(WINDOWING_MODE_FREEFORM); in testTransitionAnimationBounds()
[all …]
DActivityMetricsLaunchObserverTests.java65 private TaskRecord mTask; field in ActivityMetricsLaunchObserverTests
83 mTask = new TaskBuilder(mSupervisor).setStack(mStack).build(); in setUpAMLO()
84 mActivityRecord = new ActivityBuilder(mService).setTask(mTask).build(); in setUpAMLO()
85 mActivityRecordTrampoline = new ActivityBuilder(mService).setTask(mTask).build(); in setUpAMLO()
DTaskPositionerTests.java87 mPositioner.mTask = mWindow.getTask(); in setUp()
121 mPositioner.mTask.setBounds(r, true); in testBasicFreeWindowResizing()
183 mPositioner.mTask.setBounds(r, true); in testFreeWindowResizingTestAllEdges()
266 mPositioner.mTask.setBounds(r, true); in testLandscapePreservedWindowResizingDragTopLeft()
305 mPositioner.mTask.setBounds(r, true); in testLandscapePreservedWindowResizingDragLeft()
346 mPositioner.mTask.setBounds(r, true); in testLandscapePreservedWindowResizingDragTop()
382 mPositioner.mTask.setBounds(r, true); in testPortraitPreservedWindowResizingDragTopLeft()
416 mPositioner.mTask.setBounds(r, true); in testPortraitPreservedWindowResizingDragLeft()
459 mPositioner.mTask.setBounds(r, true); in testPortraitPreservedWindowResizingDragTop()
DTaskRecordTests.java345 Mockito.doReturn(parentWindowContainer).when(task.mTask).getParent(); in testIgnoresForcedOrientationWhenParentHandles()
DActivityTestsBase.java399 mStack.getTaskStack().addChild(task.mTask, 0); in build()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskScreenshotAnimatable.java35 private Task mTask; field in TaskScreenshotAnimatable
58 mTask = task; in TaskScreenshotAnimatable()
80 return mTask.getPendingTransaction(); in getPendingTransaction()
85 mTask.commitPendingTransaction(); in commitPendingTransaction()
103 return mTask.makeAnimationLeash(); in makeAnimationLeash()
108 return mTask.getAnimationLeashParent(); in getAnimationLeashParent()
118 return mTask.mSurfaceControl; in getParentSurfaceControl()
DRecentsAnimationController.java168 final Task task = adapter.mTask;
218 final Task task = mPendingAnimations.get(i).mTask;
406 + taskAdapter.mTask.mTaskId + ")"); in removeAnimation()
407 taskAdapter.mTask.setCanAffectSystemUiFlags(true); in removeAnimation()
462 final Task task = mPendingAnimations.get(i).mTask; in startAnimation()
501 final Task task = mPendingAnimations.get(0).mTask; in cancelAnimation()
571 taskAdapter.mTask.dontAnimateDimExit(); in cleanupAnimation()
696 if (task == mPendingAnimations.get(i).mTask) { in isAnimatingTask()
705 final Task task = mPendingAnimations.get(i).mTask; in isAnimatingApp()
719 private final Task mTask; field in RecentsAnimationController.TaskAnimationAdapter
[all …]
DTaskPositioner.java109 Task mTask; field in TaskPositioner
169 mTask.getDimBounds(mTmpRect); in onInputEvent()
176 mTask.mTaskId, mWindowDragBounds, RESIZE_MODE_USER); in onInputEvent()
202 mTask.getDimBounds(mTmpRect); in onInputEvent()
209 mTask.mTaskId, mWindowDragBounds, RESIZE_MODE_USER_FORCED); in onInputEvent()
370 mTask = win.getTask(); in startDrag()
374 mTask.getBounds(mTmpRect); in startDrag()
423 mTask.mTaskId, startBounds, RESIZE_MODE_USER_FORCED); in startDrag()
436 mTask.setDragResizing(false, DRAG_RESIZE_MODE_FREEFORM); in endDragLocked()
447 mTask.setDragResizing(true, DRAG_RESIZE_MODE_FREEFORM); in notifyMoveLocked()
[all …]
DTaskRecord.java336 Task mTask; field in TaskRecord
446 return mTask; in getTask()
450 if (mTask != null) { in createTask()
451 throw new IllegalArgumentException("mTask=" + mTask in createTask()
462 mTask = new Task(taskId, stack, userId, mService.mWindowManager, mResizeMode, in createTask()
467 mTask.setOverrideDisplayedBounds(mDisplayedBounds); in createTask()
471 stack.addTask(mTask, position, showForAllUsers, onTop /* moveParents */); in createTask()
475 mTask = task; in setTask()
506 if (mTask == null) { in removeWindowContainer()
510 mTask.removeIfPossible(); in removeWindowContainer()
[all …]
DTaskPersister.java192 queueItem -> task == queueItem.mTask, TaskWriteQueueItem.class); in wakeup()
510 private final TaskRecord mTask; field in TaskPersister.TaskWriteQueueItem
513 mTask = task; in TaskWriteQueueItem()
545 TaskRecord task = mTask; in process()
587 return "TaskWriteQueueItem{task=" + mTask + "}"; in toString()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DBasicBitmapDrawable.java73 private DecodeTask mTask; field in BasicBitmapDrawable
228 if (mTask != null) { in setImage()
229 mTask.cancel(); in setImage()
230 mTask = null; in setImage()
329 if (mTask != null) { in decode()
330 mTask.cancel(); in decode()
334 mTask = new DecodeTask(mCurrKey, opts, factory, this, mCache); in decode()
335 mTask.executeOnExecutor(getExecutor()); in decode()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskView.java133 private Task mTask; field in TaskView
205 return mTask; in getTask()
401 EventBus.getDefault().send(new TaskViewDismissedEvent(mTask, tv, in dismissTask()
605 mTask = t; in onTaskBound()
607 mTask.addCallback(this); in onTaskBound()
608 mIsDisabledInSafeMode = !mTask.isSystemApp && ssp.isInSafeMode(); in onTaskBound()
609 mThumbnailView.bindToTask(mTask, mIsDisabledInSafeMode, displayOrientation, displayRect); in onTaskBound()
610 mHeaderView.bindToTask(mTask, mTouchExplorationEnabled, mIsDisabledInSafeMode); in onTaskBound()
637 mTask.removeCallback(this); in onTaskDataUnloaded()
646 mHeaderView.bindToTask(mTask, mTouchExplorationEnabled, mIsDisabledInSafeMode); in onTaskWindowingModeChanged()
[all …]
DTaskViewHeader.java146 Task mTask; field in TaskViewHeader
429 if (mTask != null) { in updateBackgroundColor()
451 mTask = t; in bindToTask()
485 if (mTask != null && mTask.icon != null) { in onTaskDataLoaded()
486 mIconView.setImageDrawable(mTask.icon); in onTaskDataLoaded()
492 mTask = null; in unbindFromTask()
572 EventBus.getDefault().send(new ShowApplicationInfoEvent(mTask)); in onClick()
582 EventBus.getDefault().send(new LaunchTaskEvent(tv, mTask, null, false, in onClick()
585 EventBus.getDefault().send(new ShowApplicationInfoEvent(mTask)); in onClick()
609 ComponentName cn = mTask.key.getComponent(); in showAppOverlay()
[all …]
DTaskViewThumbnail.java55 private Task mTask; field in TaskViewThumbnail
347 mTask = t; in bindToTask()
371 mTask = null; in unbindFromTask()
377 if (mTask == null || event.taskId != mTask.key.id || event.thumbnailData == null in onBusEvent()
/frameworks/base/libs/hwui/renderthread/
DRenderTask.h63 : mTask(task), mLock(lock), mSignal(signal), mHasRun(false) {} in SignalingRenderTask()
68 RenderTask* mTask;
DRenderTask.cpp27 mTask->run(); in run()
/frameworks/base/core/java/android/os/
DAsyncTask.java772 result.mTask.finish(result.mData[0]); in handleMessage()
775 result.mTask.onProgressUpdate(result.mData); in handleMessage()
787 final AsyncTask mTask; field in AsyncTask.AsyncTaskResult
791 mTask = task; in AsyncTaskResult()
DHandler.java896 private final Runnable mTask; field in Handler.BlockingRunnable
900 mTask = task; in BlockingRunnable()
906 mTask.run(); in run()
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DTestDocumentsProvider.java166 private WeakReference<CloudTask> mTask; field in TestDocumentsProvider
254 CloudTask task = mTask != null ? mTask.get() : null; in queryChildDocuments()
258 mTask = new WeakReference<CloudTask>(task); in queryChildDocuments()
265 while (mTask.get() != null) { in queryChildDocuments()
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DSurfaceCompositionMeasuringActivity.java583 private Runnable mTask; field in SurfaceCompositionMeasuringActivity.UIExecutor
587 mTask = task; in UIExecutor()
602 mTask.run(); in run()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java2828 private BackupRestoreTask mTask; field in FakeIBackupManager
2834 mTask = task; in setUp()
2839 assertThat(mTask).isNotNull(); in opComplete()
2842 BackupHandler.MSG_OP_COMPLETE, Pair.create(mTask, result)); in opComplete()