Home
last modified time | relevance | path

Searched refs:mTask (Results 1 – 25 of 41) 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/
DAppChangeTransitionTests.java57 private Task mTask; field in AppChangeTransitionTests
62 mTask = mActivity.getTask(); in setUpOnDisplay()
104 mTask.setWindowingMode(WINDOWING_MODE_FREEFORM); in testModeChangeRemoteAnimatorNoSnapshot()
109 assertNull(mTask.mSurfaceFreezer.mSnapshot); in testModeChangeRemoteAnimatorNoSnapshot()
110 assertTrue(mTask.isInChangeTransition()); in testModeChangeRemoteAnimatorNoSnapshot()
121 mTask.setWindowingMode(WINDOWING_MODE_FREEFORM); in testCancelPendingChangeOnRemove()
123 assertTrue(mTask.isInChangeTransition()); in testCancelPendingChangeOnRemove()
129 assertFalse(mTask.isInChangeTransition()); in testCancelPendingChangeOnRemove()
142 assertEquals(WINDOWING_MODE_FREEFORM, mTask.getWindowingMode()); in testNoChangeOnOldDisplayWhenMoveDisplay()
147 mTask.reparent(mDisplayContent.getDefaultTaskDisplayArea(), true); in testNoChangeOnOldDisplayWhenMoveDisplay()
[all …]
DContentRecorderTests.java82 private Task mTask; field in ContentRecorderTests
327 Configuration config = mTask.getConfiguration(); in testOnTaskOrientationConfigurationChanged_resizesSurface()
336 mTask.onConfigurationChanged(config); in testOnTaskOrientationConfigurationChanged_resizesSurface()
347 mTask.getRootTask().setWindowingMode(WindowConfiguration.WINDOWING_MODE_MULTI_WINDOW); in testOnTaskBoundsConfigurationChanged_notifiesCallback()
358 mTask.setMinDimensions(info); in testOnTaskBoundsConfigurationChanged_notifiesCallback()
366 Configuration configuration = mTask.getConfiguration(); in testOnTaskBoundsConfigurationChanged_notifiesCallback()
370 mTask.onConfigurationChanged(configuration); in testOnTaskBoundsConfigurationChanged_notifiesCallback()
386 mTask.setWindowingMode(WINDOWING_MODE_FULLSCREEN); in testTaskWindowingModeChanged_changeWindowMode_notifyWindowModeChanged()
397 mTask.setWindowingMode(WINDOWING_MODE_MULTI_WINDOW); in testTaskWindowingModeChanged_changeWindowMode_notifyWindowModeChanged()
398 Configuration configuration = mTask.getConfiguration(); in testTaskWindowingModeChanged_changeWindowMode_notifyWindowModeChanged()
[all …]
DSizeCompatTests.java162 private Task mTask; field in SizeCompatTests
186 mTask = new TaskBuilder(mSupervisor).setDisplay(display).setCreateActivity(true).build(); in setUpApp()
187 mActivity = mTask.getTopNonFinishingActivity(); in setUpApp()
247 mTask.addChild(translucentActivity); in testReachabilityEnabledForTranslucentActivity()
403 resizeDisplay(mTask.mDisplayContent, 600, 1200); in testRestartProcessIfVisible()
489 mTask.reparent(newDisplay.getDefaultTaskDisplayArea(), true /* onTop */); in testFixedScreenConfigurationWhenMovingToDisplay()
613 mActivity.onConfigurationChanged(mTask.getConfiguration()); in testLetterboxFullscreenBoundsAndNotImeAttachable()
691 mTask.reparent(newDisplay.getDefaultTaskDisplayArea(), true /* onTop */); in testMoveToDifferentOrientationDisplay()
747 assertEquals(ROTATION_270, mTask.getWindowConfiguration().getRotation()); in testFixedOrientationRotateCutoutDisplay()
814 Configuration c = new Configuration(mTask.getRequestedOverrideConfiguration()); in testFixedScreenLayoutSizeBits()
[all …]
DTaskPositionerTests.java118 mPositioner.mTask.setBounds(r); in testMoveWindow()
140 mPositioner.mTask.setBounds(r, true); in testBasicFreeWindowResizing()
202 mPositioner.mTask.setBounds(r, true); in testFreeWindowResizingTestAllEdges()
284 mPositioner.mTask.setBounds(r, true); in testLandscapePreservedWindowResizingDragTopLeft()
323 mPositioner.mTask.setBounds(r, true); in testLandscapePreservedWindowResizingDragLeft()
364 mPositioner.mTask.setBounds(r, true); in testLandscapePreservedWindowResizingDragTop()
400 mPositioner.mTask.setBounds(r, true); in testPortraitPreservedWindowResizingDragTopLeft()
434 mPositioner.mTask.setBounds(r, true); in testPortraitPreservedWindowResizingDragLeft()
477 mPositioner.mTask.setBounds(r, true); in testPortraitPreservedWindowResizingDragTop()
DLaunchParamsModifierTestsBase.java106 private Task mTask; field in LaunchParamsModifierTestsBase.CalculateRequestBuilder
117 mTask = task; in setTask()
152 return mTarget.onCalculate(mTask, mLayout, mActivity, mSource, mOptions, mRequest, in calculate()
DDisplayRotationCompatPolicyTests.java100 private Task mTask; field in DisplayRotationCompatPolicyTests
152 spyOn(mTask); in testOpenedCameraInSplitScreen_showToast()
154 doReturn(WINDOWING_MODE_MULTI_WINDOW).when(mTask).getWindowingMode(); in testOpenedCameraInSplitScreen_showToast()
175 spyOn(mTask); in testOpenedCameraInSplitScreen_orientationNotFixed_doNotShowToast()
177 doReturn(WINDOWING_MODE_MULTI_WINDOW).when(mTask).getWindowingMode(); in testOpenedCameraInSplitScreen_orientationNotFixed_doNotShowToast()
588 mTask = new TaskBuilder(mSupervisor) in configureActivityAndDisplay()
595 .setTask(mTask) in configureActivityAndDisplay()
DCameraStateMonitorTests.java69 private Task mTask; field in CameraStateMonitorTests
214 mTask = new TaskBuilder(mSupervisor) in configureActivity()
220 .setTask(mTask) in configureActivity()
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/
DTaskWrapper.java31 private final Task mTask; field in TaskWrapper
34 mTask = task; in TaskWrapper()
54 return mTask.mUserId; in getUserId()
61 return create(mTask.getRootTask()); in getRootTask()
68 return TaskDisplayAreaWrapper.create(mTask.getTaskDisplayArea()); in getTaskDisplayArea()
73 return mTask.toString(); in toString()
DCalculateParams.java30 private TaskWrapper mTask; field in CalculateParams
51 params.mTask = TaskWrapper.create(task); in create()
68 return mTask; in getTask()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DHwcAsyncWorker.cpp48 mTask = std::packaged_task<bool()>([task = std::move(task)]() { return task(); }); in send()
51 return mTask.get_future(); in send()
64 if (mTaskRequested && mTask.valid()) { in run()
65 mTask(); in run()
/frameworks/base/services/core/java/com/android/server/wm/
DRecentsAnimationController.java207 final Task task = adapter.mTask;
236 if (taskAdapter.mTask.mTaskId == taskId) {
279 final Task task = mPendingAnimations.get(i).mTask;
518 "removeAnimation(%d)", taskAdapter.mTask.mTaskId); in removeAnimation()
570 .map(anim->anim.mTask.mTaskId).collect(Collectors.toList())); in startAnimation()
600 final Task task = adapter.mTask; in attachNavigationBarToApp()
739 if (target.mTask.mTaskId == taskId && target.mTask.isOnTop()) { in removeTaskInternal()
919 final Task task = adapter.mTask;
948 taskAdapter.mTask.dontAnimateDimExit();
1107 if (task == mPendingAnimations.get(i).mTask) {
[all …]
DTaskPositioner.java85 Task mTask; field in TaskPositioner
143 mTask.getDimBounds(mTmpRect); in onInputEvent()
149 mTask.mTaskId, mWindowDragBounds, RESIZE_MODE_USER); in onInputEvent()
176 mTask.getDimBounds(mTmpRect); in onInputEvent()
182 mTask.mTaskId, mWindowDragBounds, RESIZE_MODE_USER_FORCED); in onInputEvent()
265 mTask = win.getTask(); in register()
319 mTask.getBounds(startBounds);
359 mTask.mTaskId, startBounds, RESIZE_MODE_USER_FORCED);
370 mTask.setDragResizing(false);
382 mTask.setDragResizing(true);
[all …]
DResetTargetTaskHelper.java35 private Task mTask; field in ResetTargetTaskHelper
50 mTask = task; in reset()
109 && !r.taskAffinity.equals(mTask.affinity)) { in test()
216 + "adding to task=%s Callers=%s", p, mTask, targetTask, Debug.getCallers(4)); in processResultActivities()
/frameworks/opt/car/services/builtInServices/tests/src/com/android/server/wm/
DTaskWrapperTest.java32 private Task mTask; field in TaskWrapperTest
36 TaskWrapper wrapper = TaskWrapper.create(mTask); in create_returnsActivityOptionWrapper()
38 assertThat(wrapper.toString()).isEqualTo(mTask.toString()); in create_returnsActivityOptionWrapper()
DCalculateParamsTest.java41 private Task mTask; field in CalculateParamsTest
61 CalculateParams params = CalculateParams.create(mTask,mLayout, mActvity, mSource, mOptions, in createReturnsCalculateParams()
65 assertThat(params.getTask().toString()).isEqualTo(mTask.toString()); in createReturnsCalculateParams()
/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/opt/car/services/updatableServices/tests/src/com/android/server/wm/
DCarLaunchParamsModifierUpdatableTest.java144 private Task mTask; field in CarLaunchParamsModifierUpdatableTest
263 mTask.mUserId = userId; in assertDisplayIsAllowed()
266 assertThat(mModifier.onCalculate(mTask, mWindowLayout, mActivityRecordActivity, in assertDisplayIsAllowed()
275 mTask.mUserId = userId; in assertDisplayIsReassigned()
281 assertThat(mModifier.onCalculate(mTask, mWindowLayout, mActivityRecordActivity, in assertDisplayIsReassigned()
290 if (mTask != null) { in assertDisplayIsAssigned()
291 mTask.mUserId = userId; in assertDisplayIsAssigned()
294 assertThat(mModifier.onCalculate(mTask, mWindowLayout, mActivityRecordActivity, in assertDisplayIsAssigned()
302 mTask.mUserId = userId; in assertNoDisplayIsAssigned()
304 assertThat(mModifier.onCalculate(mTask, mWindowLayout, mActivityRecordActivity, in assertNoDisplayIsAssigned()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTestExecutorService.java43 private final Callable<T> mTask; field in TestExecutorService.CompletedFuture
48 mTask = task; in CompletedFuture()
53 mTask = task; in CompletedFuture()
59 mTask = (Callable<T>) Executors.callable(task); in CompletedFuture()
82 return mTask.call(); in get()
92 return mTask.call(); in get()
/frameworks/native/services/surfaceflinger/Scheduler/
DMessageQueue.h50 explicit Task(F&& f) : mTask(std::move(f)) {} in Task()
52 void handleMessage(const Message&) override { mTask(); } in handleMessage()
55 std::packaged_task<T()> mTask; variable
61 return std::make_pair(task, task->mTask.get_future()); in makeTask()
/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/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DSoundTriggerHalWatchdog.java168 private final @NonNull UptimeTimer.Task mTask; field in SoundTriggerHalWatchdog.Watchdog
174 mTask = mTimer.createTask(() -> { in Watchdog()
182 mTask.cancel(); in close()
/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()
/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()

12