/frameworks/base/core/java/android/content/ |
D | AsyncTaskLoader.java | 135 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/ |
D | AppChangeTransitionTests.java | 57 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 …]
|
D | SizeCompatTests.java | 100 private Task mTask; field in SizeCompatTests 118 mTask = new TaskBuilder(mSupervisor).setDisplay(display).setCreateActivity(true).build(); in setUpApp() 119 mActivity = mTask.getTopNonFinishingActivity(); in setUpApp() 137 resizeDisplay(mTask.mDisplayContent, 600, 1200); in testRestartProcessIfVisible() 156 mTask.setBounds(bounds); in testKeepBoundsWhenChangingFromFreeformToFullscreen() 164 mTask.setBounds(bounds.left - dx, bounds.top, bounds.right - dx, bounds.bottom); in testKeepBoundsWhenChangingFromFreeformToFullscreen() 165 assertEquals(mTask.getBounds(), mActivity.getBounds()); in testKeepBoundsWhenChangingFromFreeformToFullscreen() 250 mTask.reparent(newDisplay.getDefaultTaskDisplayArea(), true /* onTop */); in testFixedScreenConfigurationWhenMovingToDisplay() 345 mActivity.onConfigurationChanged(mTask.getConfiguration()); in testLetterboxFullscreenBoundsAndNotImeAttachable() 413 mTask.reparent(newDisplay.getDefaultTaskDisplayArea(), true /* onTop */); in testMoveToDifferentOrientationDisplay() [all …]
|
D | TaskPositionerTests.java | 118 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()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/ |
D | InitializeRecoverableSecondaryKeyTaskTest.java | 57 private InitializeRecoverableSecondaryKeyTask mTask; field in InitializeRecoverableSecondaryKeyTaskTest 74 mTask = in setUp() 81 RecoverableKeyStoreSecondaryKey key = mTask.run(); in testRun_generatesNewKeyInRecoveryController() 89 RecoverableKeyStoreSecondaryKey key = mTask.run(); in testRun_setsAliasOnServer() 97 RecoverableKeyStoreSecondaryKey key = mTask.run(); in testRun_setsAliasInSettings() 104 mTask.run(); in testRun_initializesSettings() 117 assertThrows(IllegalArgumentException.class, () -> mTask.run()); in testRun_initializeSettingsFails_throws() 122 RecoverableKeyStoreSecondaryKey key1 = mTask.run(); in testRun_doesNotGenerateANewKeyIfOneIsAvailable() 123 RecoverableKeyStoreSecondaryKey key2 = mTask.run(); in testRun_doesNotGenerateANewKeyIfOneIsAvailable() 131 RecoverableKeyStoreSecondaryKey key = mTask.run(); in testRun_existingKeyButDestroyed_throws() [all …]
|
D | RotateSecondaryKeyTaskTest.java | 67 private RotateSecondaryKeyTask mTask; field in RotateSecondaryKeyTaskTest 92 mTask = in setUp() 110 mTask.run(); in run_failsIfThereIsNoActiveSecondaryKey() 125 mTask.run(); in run_failsIfActiveSecondaryIsNotInRecoveryController() 140 mTask.run(); in run_doesNothingIfFlagIsDisabled() 156 mTask.run(); in run_setsActiveSecondary() 172 mTask.run(); in run_rewrapsExistingTertiaryKeys() 194 mTask.run(); in run_persistsRewrappedKeysToDisk() 215 mTask.run(); in run_stillSetsActiveSecondaryIfNoTertiaries() 230 mTask.run(); in run_setsActiveSecondaryKeyAliasInSettings() [all …]
|
D | EncryptedFullBackupTaskTest.java | 76 private EncryptedFullBackupTask mTask; field in EncryptedFullBackupTaskTest 123 mTask = in setUp() 140 mTask.call(); in call_existingChunkListingButTertiaryKeyRotated_performsNonIncrementalBackup() 152 mTask.call(); in call_noExistingChunkListing_performsNonIncrementalBackup() 164 mTask.call(); in call_existingChunkListing_performsIncrementalBackup() 178 mTask.call(); in call_existingChunkListingWithNoFingerprintMixerSalt_doesntSetSaltBeforeIncBackup() 188 mTask.call(); in call_noExistingChunkListing_storesNewChunkListing() 196 mTask.call(); in call_existingChunkListing_storesNewChunkListing() 206 assertThrows(Exception.class, () -> mTask.call()); in call_exceptionDuringBackup_doesNotSaveNewChunkListing() 218 assertThrows(IOException.class, () -> mTask.call()); in call_incrementalThrowsPermanentException_clearsState() [all …]
|
D | BackupFileDecryptorTaskTest.java | 117 private BackupFileDecryptorTask mTask; field in BackupFileDecryptorTaskTest 132 mTask = new BackupFileDecryptorTask(mTertiaryKey); in setUp() 140 mTask.decryptFile( in decryptFile_throwsForNonExistentInput() 149 () -> mTask.decryptFile(mTemporaryFolder.newFolder(), mFileOutput)); in decryptFile_throwsForDirectoryInputFile() 157 mTask.decryptFile(mInputFile, mFileOutput); in decryptFile_withExplicitStarts_decryptsEncryptedData() 166 mTask.decryptFile(mInputFile, mKvOutput); in decryptFile_withInlineLengths_decryptsEncryptedData() 183 mTask.decryptFile(mInputFile, mFileOutput); in decryptFile_withNoChunkOrderingType_decryptsUsingExplicitStarts() 200 () -> mTask.decryptFile(mInputFile, mKvOutput)); in decryptFile_withInlineLengths_throwsForZeroLengths() 215 () -> mTask.decryptFile(mInputFile, mKvOutput)); in decryptFile_withInlineLengths_throwsForLongLengths() 241 () -> mTask.decryptFile(mInputFile, mFileOutput)); in decryptFile_withExplicitStarts_throwsForMangledOrdering() [all …]
|
D | EncryptedFullRestoreTaskTest.java | 57 private EncryptedFullRestoreTask mTask; field in EncryptedFullRestoreTaskTest 79 mTask = new EncryptedFullRestoreTask(mFolder, mFullRestorePackageWrapper, mDecryptorTask); in setUp() 87 int bytesRead = mTask.readNextChunk(buffer); in readNextChunk_downloadsAndDecryptsBackup() 90 bytesRead = mTask.readNextChunk(buffer); in readNextChunk_downloadsAndDecryptsBackup() 98 mTask.readNextChunk(new byte[10]); in finish_deletesTemporaryFiles() 99 mTask.finish(FullRestoreDownloader.FinishType.UNKNOWN_FINISH); in finish_deletesTemporaryFiles()
|
D | EncryptedKvBackupTaskTest.java | 92 private EncryptedKvBackupTask mTask; field in EncryptedKvBackupTaskTest 126 mTask = in setUp() 151 assertThrows(IOException.class, () -> mTask.performBackup(NON_INCREMENTAL)); in testPerformBackup_rotationRequired_deletesListings() 169 () -> mTask.performBackup(INCREMENTAL)); in testPerformBackup_rotationRequiredButIncremental_throws() 184 mTask.performBackup(NON_INCREMENTAL); in testPerformBackup_rotationRequiredAndNonIncremental_performsNonIncrementalBackup() 203 assertThrows(IOException.class, () -> mTask.performBackup(NON_INCREMENTAL)); in testPerformBackup_existingStateButNonIncremental_deletesListings() 220 assertThrows(IOException.class, () -> mTask.performBackup(NON_INCREMENTAL)); in testPerformBackup_keyValueListingMissing_deletesChunkListingAndPerformsNonIncremental() 238 assertThrows(IOException.class, () -> mTask.performBackup(NON_INCREMENTAL)); in testPerformBackup_chunkListingMissing_deletesKeyValueListingAndPerformsNonIncremental() 255 mTask.performBackup(INCREMENTAL); in testPerformBackup_existingStateAndIncremental_performsIncrementalBackup() 266 mTask.performBackup(NON_INCREMENTAL); in testPerformBackup_noExistingStateAndNonIncremental_performsNonIncrementalBackup() [all …]
|
D | EncryptedBackupTaskTest.java | 120 private EncryptedBackupTask mTask; field in EncryptedBackupTaskTest 134 mTask = in setUp() 150 mTask.performNonIncrementalBackup( in performNonIncrementalBackup_performsBackup() 174 mTask.performIncrementalBackup(mTertiaryKey, mWrappedTertiaryKey, mOldChunkListing); in performIncrementalBackup_performsBackup() 210 mTask.performIncrementalBackup(mTertiaryKey, mWrappedTertiaryKey, mOldChunkListing); in performIncrementalBackup_returnsNewChunkListingWithDocId() 237 mTask.performNonIncrementalBackup( in performNonIncrementalBackup_returnsNewChunkListingWithDocId() 259 mTask.performNonIncrementalBackup( in performNonIncrementalBackup_buildsCorrectChunkMetadata() 281 mTask.cancel(); in cancel_incrementalBackup_doesNotUploadOrSaveChunkListing() 285 mTask.performIncrementalBackup( in cancel_incrementalBackup_doesNotUploadOrSaveChunkListing() 300 mTask.cancel(); in cancel_nonIncrementalBackup_doesNotUploadOrSaveChunkListing() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | EnsureActivitiesVisibleHelper.java | 27 private final Task mTask; field in EnsureActivitiesVisibleHelper 38 mTask = container; in EnsureActivitiesVisibleHelper() 54 mTop = mTask.topRunningActivity(); in reset() 58 mContainerShouldBeVisible = mTask.shouldBeVisible(mStarting); in reset() 89 mTask.checkTranslucentActivityWaiting(mTop); in process() 96 && mTask.isTopActivityFocusable() in process() 97 && (starting == null || !starting.isDescendantOf(mTask)); in process() 99 mTask.forAllActivities(a -> { in process() 102 if (mTask.mAtmService.getTransitionController().getTransitionPlayer() != null) { in process() 103 mTask.getDisplayContent().mWallpaperController.adjustWallpaperWindows(); in process() [all …]
|
D | RecentsAnimationController.java | 215 final Task task = adapter.mTask; 244 if (taskAdapter.mTask.mTaskId == taskId) { 286 final Task task = mPendingAnimations.get(i).mTask; 535 "removeAnimation(%d)", taskAdapter.mTask.mTaskId); in removeAnimation() 595 .map(anim->anim.mTask.mTaskId).collect(Collectors.toList())); in startAnimation() 628 final Task task = adapter.mTask; in attachNavigationBarToApp() 766 if (target.mTask.mTaskId == taskId && target.mTask.isOnTop()) { in removeTaskInternal() 855 final Task task = adapter.mTask; 963 taskAdapter.mTask.dontAnimateDimExit(); 1107 if (task == mPendingAnimations.get(i).mTask) { [all …]
|
D | TaskPositioner.java | 83 Task mTask; field in TaskPositioner 144 mTask.getDimBounds(mTmpRect); in onInputEvent() 150 mTask.mTaskId, mWindowDragBounds, RESIZE_MODE_USER); in onInputEvent() 174 mTask.getDimBounds(mTmpRect); in onInputEvent() 180 mTask.mTaskId, mWindowDragBounds, RESIZE_MODE_USER_FORCED); in onInputEvent() 282 mTask = win.getTask(); in register() 334 mTask.getBounds(startBounds); in startDrag() 374 mTask.mTaskId, startBounds, RESIZE_MODE_USER_FORCED); in startDrag() 385 mTask.setDragResizing(false, DRAG_RESIZE_MODE_FREEFORM); in endDragLocked() 397 mTask.setDragResizing(true, DRAG_RESIZE_MODE_FREEFORM); in notifyMoveLocked() [all …]
|
D | ResetTargetTaskHelper.java | 36 private Task mTask; field in ResetTargetTaskHelper 50 mTask = task; in reset() 114 && !r.taskAffinity.equals(mTask.affinity)) { in processActivity() 220 + "adding to task=%s Callers=%s", p, mTask, targetTask, Debug.getCallers(4)); in processResultActivities()
|
D | StartingSurfaceController.java | 161 private final Task mTask; field in StartingSurfaceController.ShellStartingSurface 164 mTask = task; in ShellStartingSurface() 170 mService.mAtmService.mTaskOrganizerController.removeStartingWindow(mTask, animate); in remove()
|
/frameworks/opt/car/services/tests/src/com/android/server/wm/ |
D | CarLaunchParamsModifierTest.java | 124 private Task mTask; field in CarLaunchParamsModifierTest 198 mTask.mUserId = userId; in assertDisplayIsAllowed() 201 assertThat(mModifier.onCalculate(mTask, mWindowLayout, mActivityRecordActivity, in assertDisplayIsAllowed() 210 mTask.mUserId = userId; in assertDisplayIsReassigned() 216 assertThat(mModifier.onCalculate(mTask, mWindowLayout, mActivityRecordActivity, in assertDisplayIsReassigned() 225 if (mTask != null) { in assertDisplayIsAssigned() 226 mTask.mUserId = userId; in assertDisplayIsAssigned() 229 assertThat(mModifier.onCalculate(mTask, mWindowLayout, mActivityRecordActivity, in assertDisplayIsAssigned() 237 mTask.mUserId = userId; in assertNoDisplayIsAssigned() 239 assertThat(mModifier.onCalculate(mTask, mWindowLayout, mActivityRecordActivity, in assertNoDisplayIsAssigned() [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | BasicBitmapDrawable.java | 73 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/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/cache/ |
D | HandlerRunnable.java | 30 private final Supplier<T> mTask; field in HandlerRunnable 47 mTask = task; in HandlerRunnable() 64 T value = mTask.get(); in run()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedFullBackupTask.java | 75 private final EncryptedBackupTask mTask; field in EncryptedFullBackupTask 126 mTask = task; in EncryptedFullBackupTask() 160 mTask.performNonIncrementalBackup( in call() 171 mTask.performIncrementalBackup( in call() 195 mTask.cancel(); in cancel()
|
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/ |
D | SoundTriggerHw2Watchdog.java | 153 TimerTask mTask; field in SoundTriggerHw2Watchdog.Watchdog 159 mTask = new TimerTask() { in Watchdog() 166 mTimer.schedule(mTask, TIMEOUT_MS); in Watchdog() 171 mTask.cancel(); in close()
|
/frameworks/base/tests/benchmarks/internal/src/com/android/internal/ |
D | LambdaPerfTest.java | 74 private final Task mTask = new Task(); field in LambdaPerfTest 98 evaluate(LAMBDA_FORM_REGULAR, () -> forAllTask(t -> t.doSomething(mTask))); in test1ParamConsumer() 101 PooledLambda.__(Task.class), mTask); in test1ParamConsumer() 140 final Message m = Message.obtain().setCallback(() -> mTask.doSomething(mTaskId, mTime)); in testMessage() 145 final Message m = PooledLambda.obtainMessage(Task::doSomething, mTask, mTaskId, mTime); in testMessage() 154 final Runnable r = mTask::doSomething; in testRunnable() 158 final Runnable r = PooledLambda.obtainRunnable(Task::doSomething, mTask).recycleOnUse(); in testRunnable() 167 final Runnable regularAction = () -> forAllTask(t -> t.doSomething(mTask)); in testMultiThread() 174 PooledLambda.__(Task.class), mTask); in testMultiThread()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TestExecutorService.java | 43 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/ |
D | MessageQueue.h | 43 explicit Task(F&& f) : mTask(std::move(f)) {} in Task() 45 void handleMessage(const Message&) override { mTask(); } in handleMessage() 48 std::packaged_task<T()> mTask; variable 54 return std::make_pair(task, task->mTask.get_future()); in makeTask()
|
/frameworks/base/libs/hwui/renderthread/ |
D | RenderTask.h | 63 : mTask(task), mLock(lock), mSignal(signal), mHasRun(false) {} in SignalingRenderTask() 68 RenderTask* mTask;
|