Home
last modified time | relevance | path

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

12

/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.java94 private TaskRecord mTask; field in ActivityRecordTests
100 mTask = mStack.getChildAt(0); in setUp()
101 mActivity = mTask.getTopActivity(); in setUp()
115 mTask.removeActivity(mActivity); in testStackCleanupOnActivityRemoval()
121 mStack.removeTask(mTask, null /*reason*/, REMOVE_TASK_MODE_MOVING); in testStackCleanupOnTaskRemoval()
172 final ActivityRecord topActivity = new ActivityBuilder(mService).setTask(mTask).build(); in testPausingWhenVisibleFromStopped()
221 ActivityRecord activity2 = new ActivityBuilder(mService).setTask(mTask).build(); in testsApplyOptionsLocked()
251 mTask.getRequestedOverrideConfiguration()); in testNewParentConfigurationIncrementsSeq()
256 mTask.onRequestedOverrideConfigurationChanged(newConfig); in testNewParentConfigurationIncrementsSeq()
280 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.java83 private TaskRecord mTask; field in ActivityStackTests
91 mTask = new TaskBuilder(mSupervisor).setStack(mStack).build(); in setUp()
96 assertNotNull(mTask.getTask()); in testEmptyTaskCleanupOnRemove()
97 mStack.removeTask(mTask, "testEmptyTaskCleanupOnRemove", REMOVE_TASK_MODE_DESTROYING); in testEmptyTaskCleanupOnRemove()
98 assertNull(mTask.getTask()); in testEmptyTaskCleanupOnRemove()
103 final ActivityRecord r = new ActivityBuilder(mService).setTask(mTask).build(); in testOccupiedTaskCleanupOnRemove()
104 assertNotNull(mTask.getTask()); in testOccupiedTaskCleanupOnRemove()
105 mStack.removeTask(mTask, "testOccupiedTaskCleanupOnRemove", REMOVE_TASK_MODE_DESTROYING); in testOccupiedTaskCleanupOnRemove()
106 assertNotNull(mTask.getTask()); in testOccupiedTaskCleanupOnRemove()
111 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.java426 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.java189 final Task task = adapter.mTask;
238 final Task task = mPendingAnimations.get(i).mTask;
432 + taskAdapter.mTask.mTaskId + ")"); in removeAnimation()
433 taskAdapter.mTask.setCanAffectSystemUiFlags(true); in removeAnimation()
487 final Task task = mPendingAnimations.get(i).mTask; in startAnimation()
526 final Task task = mPendingAnimations.get(0).mTask; in cancelAnimation()
612 taskAdapter.mTask.dontAnimateDimExit(); in cleanupAnimation()
738 if (task == mPendingAnimations.get(i).mTask) { in isAnimatingTask()
747 final Task task = mPendingAnimations.get(i).mTask; in isAnimatingApp()
761 private final Task mTask; field in RecentsAnimationController.TaskAnimationAdapter
[all …]
DTaskPositioner.java110 Task mTask; field in TaskPositioner
170 mTask.getDimBounds(mTmpRect); in onInputEvent()
177 mTask.mTaskId, mWindowDragBounds, RESIZE_MODE_USER); in onInputEvent()
203 mTask.getDimBounds(mTmpRect); in onInputEvent()
210 mTask.mTaskId, mWindowDragBounds, RESIZE_MODE_USER_FORCED); in onInputEvent()
372 mTask = win.getTask(); in startDrag()
376 mTask.getBounds(mTmpRect); in startDrag()
425 mTask.mTaskId, startBounds, RESIZE_MODE_USER_FORCED); in startDrag()
438 mTask.setDragResizing(false, DRAG_RESIZE_MODE_FREEFORM); in endDragLocked()
449 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/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/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/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.java788 result.mTask.finish(result.mData[0]); in handleMessage()
791 result.mTask.onProgressUpdate(result.mData); in handleMessage()
803 final AsyncTask mTask; field in AsyncTask.AsyncTaskResult
807 mTask = task; in AsyncTaskResult()
DHandler.java947 private final Runnable mTask; field in Handler.BlockingRunnable
951 mTask = task; in BlockingRunnable()
957 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.java2827 private BackupRestoreTask mTask; field in FakeIBackupManager
2833 mTask = task; in setUp()
2838 assertThat(mTask).isNotNull(); in opComplete()
2841 BackupHandler.MSG_OP_COMPLETE, Pair.create(mTask, result)); in opComplete()

12