/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | SetDeviceOwnerPolicyTaskTest.java | 61 private SetDeviceOwnerPolicyTask mTask; field in SetDeviceOwnerPolicyTaskTest 96 mTask.run(TEST_USER_ID); in testEnableDevicePolicyApp_DefaultToDefault() 101 verify(mCallback).onSuccess(mTask); in testEnableDevicePolicyApp_DefaultToDefault() 114 mTask.run(TEST_USER_ID); in testEnableDevicePolicyApp_DisabledToDefault() 120 verify(mCallback).onSuccess(mTask); in testEnableDevicePolicyApp_DisabledToDefault() 133 mTask.run(TEST_USER_ID); in testEnableDevicePolicyApp_EnabledToEnabled() 138 verify(mCallback).onSuccess(mTask); in testEnableDevicePolicyApp_EnabledToEnabled() 151 mTask.run(TEST_USER_ID); in testEnableDevicePolicyApp_PackageNotFound() 154 verify(mCallback).onError(mTask, 0); in testEnableDevicePolicyApp_PackageNotFound() 164 mTask.run(TEST_USER_ID); in testSetActiveAdmin() [all …]
|
D | AddWifiNetworkTaskTest.java | 82 private AddWifiNetworkTask mTask; field in AddWifiNetworkTaskTest 97 mTask = new AddWifiNetworkTask(mNetworkMonitor, mWifiConfigurationProvider, mContext, in testNoWifiInfo() 105 verify(mCallback).onSuccess(mTask); in testNoWifiInfo() 111 mTask = new AddWifiNetworkTask(mNetworkMonitor, mWifiConfigurationProvider, mContext, in testWifiManagerNull() 121 verify(mCallback).onError(mTask, 0); in testWifiManagerNull() 127 mTask = new AddWifiNetworkTask(mNetworkMonitor, mWifiConfigurationProvider, mContext, in testFailToEnableWifi() 140 verify(mCallback).onError(mTask, 0); in testFailToEnableWifi() 146 mTask = new AddWifiNetworkTask(mNetworkMonitor, mWifiConfigurationProvider, mContext, in testIsConnectedToSpecifiedWifiTrue() 163 verify(mCallback).onSuccess(mTask); in testIsConnectedToSpecifiedWifiTrue() 169 mTask = new AddWifiNetworkTask(mNetworkMonitor, mWifiConfigurationProvider, mContext, in testNoWifiInfoInProvider() [all …]
|
D | DeleteNonRequiredAppsTaskTest.java | 68 private DeleteNonRequiredAppsTask mTask; field in DeleteNonRequiredAppsTaskTest 82 mTask = new DeleteNonRequiredAppsTask(mTestContext, TEST_PARAMS, mCallback, mLogic, in setUp() 93 mTask.run(TEST_USER_ID); in testNoAppsToDelete() 99 verify(mCallback).onSuccess(mTask); in testNoAppsToDelete() 115 mTask.run(TEST_USER_ID); in testAppsToDelete() 121 verify(mCallback).onSuccess(mTask); in testAppsToDelete() 135 mTask.run(TEST_USER_ID); in testAllAppsAlreadyDeleted() 141 verify(mCallback).onSuccess(mTask); in testAllAppsAlreadyDeleted() 159 mTask.run(TEST_USER_ID); in testDeletionFailed() 165 verify(mCallback).onError(mTask, 0); in testDeletionFailed()
|
D | VerifyPackageTaskTest.java | 78 private AbstractProvisioningTask mTask; field in VerifyPackageTaskTest 109 verify(mCallback).onSuccess(mTask); in testDownloadLocationNull() 123 verify(mCallback).onError(mTask, ERROR_DEVICE_ADMIN_MISSING); in testMissingDeviceAdminComponent() 137 verify(mCallback).onSuccess(mTask); in testPackageChecksumSha256_success() 151 verify(mCallback).onSuccess(mTask); in testSignatureHash_success() 165 verify(mCallback).onError(mTask, ERROR_HASH_MISMATCH); in testSignatureHash_failure() 178 verify(mCallback).onError(mTask, ERROR_HASH_MISMATCH); in testSignatureHash_noSignature() 191 verify(mCallback).onError(mTask, ERROR_HASH_MISMATCH); in testSignatureHash_digestFailure() 206 mTask = new VerifyPackageTask(mUtils, mDownloadPackageTask, mContext, params, mCallback, in runWithDownloadInfo() 208 mTask.run(TEST_USER_ID); in runWithDownloadInfo()
|
D | InstallExistingPackageTaskTest.java | 61 private InstallExistingPackageTask mTask; field in InstallExistingPackageTaskTest 69 mTask = new InstallExistingPackageTask(INSTALL_PACKAGE_NAME, mContext, TEST_PARAMS, in setUp() 80 mTask.run(TEST_USER_ID); in testSuccess() 84 verify(mCallback).onSuccess(mTask); in testSuccess() 113 mTask.run(TEST_USER_ID); in testPackageNotFound() 116 verify(mCallback).onError(mTask, 0); in testPackageNotFound() 127 mTask.run(TEST_USER_ID); in testInstallFailed() 130 verify(mCallback).onError(mTask, 0); in testInstallFailed()
|
D | DownloadPackageTaskTest.java | 86 private DownloadPackageTask mTask; field in DownloadPackageTaskTest 96 mTask = new DownloadPackageTask( in setUp() 127 verify(mCallback).onError(mTask, ERROR_OTHER); in testNotConnected() 147 verify(mCallback).onError(mTask, ERROR_DOWNLOAD_FAILED); in testDownloadFailed() 220 verify(mCallback).onSuccess(mTask); in verifyOnTaskFinished() 221 assertEquals(location, mTask.getPackageLocation()); in verifyOnTaskFinished() 228 mTask.run(TEST_USER_ID); in runTask()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | BitmapLoader.java | 45 private Future<Bitmap> mTask; field in BitmapLoader 51 mTask = null; in onFutureDone() 61 if (mState == STATE_REQUESTED) mTask = submitBitmapTask(this); in onFutureDone() 73 if (mTask == null) mTask = submitBitmapTask(this); in startLoad() 80 if (mTask != null) mTask.cancel(); in cancelLoad() 91 if (mTask != null) mTask.cancel(); in recycle()
|
D | MenuExecutor.java | 61 private Future<?> mTask; field in MenuExecutor 133 if (mTask != null) { in stopTaskAndDismissDialog() 134 if (!mWaitOnStop) mTask.cancel(); in stopTaskAndDismissDialog() 137 mTask = null; in stopTaskAndDismissDialog() 346 mTask = mActivity.getBatchServiceThreadPoolIfAvailable().submit(operation, null); in startAction() 355 mTask = mActivity.getBatchServiceThreadPoolIfAvailable().submit(operation, null); in startSingleItemAction()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageWizardFormatProgress.java | 47 private PartitionTask mTask; field in StorageWizardFormatProgress 65 mTask = (PartitionTask) getLastCustomNonConfigurationInstance(); in onCreate() 66 if (mTask == null) { in onCreate() 67 mTask = new PartitionTask(); in onCreate() 68 mTask.setActivity(this); in onCreate() 69 mTask.execute(); in onCreate() 71 mTask.setActivity(this); in onCreate() 77 return mTask; in onRetainCustomNonConfigurationInstance()
|
/packages/services/Telecomm/src/com/android/server/telecom/settings/ |
D | BlockNumberTaskFragment.java | 35 @Nullable private BlockNumberTask mTask; field in BlockNumberTaskFragment 65 mTask = null; in onPostExecute() 85 if (mTask != null) { in onDestroy() 86 mTask.cancel(true /* mayInterruptIfRunning */); in onDestroy() 99 mTask = new BlockNumberTask(); in blockIfNotAlreadyBlocked() 100 mTask.execute(number); in blockIfNotAlreadyBlocked()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | TaskView.java | 341 private Task mTask; field in TaskView 518 mTask = task; in bind() 524 return mTask; in getTask() 528 return mTask != null && mTask.key != null && mTask.key.id == taskId; in hasTaskId() 605 if (mTask != null) { in launchTaskAnimated() 607 TestProtocol.SEQUENCE_MAIN, "startActivityFromRecentsAsync", mTask); in launchTaskAnimated() 610 .startActivityFromRecents(mTask.key, opts.options)) { in launchTaskAnimated() 639 if (mTask != null) { in launchTask() 641 TestProtocol.SEQUENCE_MAIN, "startActivityFromRecentsAsync", mTask); in launchTask() 649 Task.TaskKey key = mTask.key; in launchTask() [all …]
|
D | DigitalWellBeingToast.java | 69 private Task mTask; field in DigitalWellBeingToast 85 mTaskView.setContentDescription(mTask.titleDescription); in setNoLimit() 100 getContentDescriptionForTask(mTask, appUsageLimitTimeMs, appRemainingTimeMs)); in setLimit() 112 mTask = task; in initialize() 211 mTask.getTopComponent().getPackageName()).addFlags( in openAppUsageSettings() 223 + mTask.getTopComponent().getPackageName(), e); in openAppUsageSettings()
|
D | TaskThumbnailView.java | 97 private Task mTask; field in TaskThumbnailView 134 mTask = task; in bind() 150 mTask = task; in setThumbnail() 311 if (mTask != null && getTaskView().isRunningTask() && !getTaskView().showScreenshot()) { in drawOnCanvas() 329 final boolean drawBackgroundOnly = mTask == null || mTask.isLocked || mBitmapShader == null in drawOnCanvas() 359 getTaskOverlay().initOverlay(mTask, mThumbnailData, mPreviewPositionHelper.mMatrix, in refreshOverlay() 426 return mThumbnailData.isRealSnapshot && !mTask.isLocked; in isRealSnapshot()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | AddNewProfileTaskTest.java | 56 private AddNewProfileTask mTask; field in AddNewProfileTaskTest 63 mTask = new AddNewProfileTask(mContext, mCarUserManager, mAddNewProfileListener); in createAsyncTask() 73 mTask.execute(newUserName); in testTaskCallsCreateNewUser() 86 mTask.execute(newUserName); in testSwitchToNewUserIfUserCreated() 99 mTask.execute(newUserName); in testOnUserAddedSuccessCalledIfUserCreated() 111 mTask.execute(newUserName); in testOnUserAddedFailureCalledIfNullReturned()
|
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | OverviewTask.java | 36 private final UiObject2 mTask; field in OverviewTask 41 mTask = task; in OverviewTask() 59 final Rect taskBounds = mLauncher.getVisibleBounds(mTask); in dismiss() 75 () -> mLauncher.clickLauncherObject(mTask), in open() 78 + mTask.getParent().getContentDescription(), in open()
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | InputTaskScheduler.java | 76 private final RecordingTask mTask; field in InputTaskScheduler.HandlerWrapper 82 mTask = recordingTask; in HandlerWrapper() 83 mTask.setHandler(this); in HandlerWrapper() 209 wrapper.mTask.cancel(); in handleRemoveSchedule() 229 && schedule.getStartTimeMs() > wrapper.mTask.getStartTimeMs()) { in handleUpdateSchedule() 233 wrapper.mTask.cancel(); in handleUpdateSchedule() 264 RecordingTask task = mPendingRecordings.get(mPendingRecordings.keyAt(i)).mTask; in handleStopSchedule() 369 RecordingTask task = mPendingRecordings.get(mPendingRecordings.keyAt(i)).mTask; in hasTaskWhichFinishEarlier() 385 RecordingTask task = mPendingRecordings.get(mPendingRecordings.keyAt(i)).mTask; in getReplacableTask()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/ |
D | UpdatePickResultTaskTest.java | 33 private UpdatePickResultTask mTask; field in UpdatePickResultTaskTest 38 mTask = new UpdatePickResultTask(context, new PickResult()); in setUp() 43 mTask.safeExecute(); in testSafeExcute_noCrash() 44 mTask.safeExecute(); in testSafeExcute_noCrash()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | SinglePhotoDataAdapter.java | 48 private Future<?> mTask; field in SinglePhotoDataAdapter 152 if (mTask == null) { in resume() 154 mTask = mThreadPool.submit( in resume() 157 mTask = mThreadPool.submit( in resume() 166 Future<?> task = mTask; in pause() 170 mTask = null; in pause()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | ImagePrintActivity.java | 74 private AsyncTask<?, ?, ?> mTask = null; field in ImagePrintActivity 99 mTask = new LoadBitmapTask().execute(contentUri); in onCreate() 200 if (mTask != null) { in onDestroy() 201 mTask.cancel(true); in onDestroy() 202 mTask = null; in onDestroy() 262 mTask = new ImageToPdfTask(ImagePrintActivity.this, getBitmap(mAttributes), mAttributes, in onWrite() 276 mTask = null; in onWrite()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | UserIconLoader.java | 33 private FetchUserIconTask mTask; field in UserIconLoader 51 mTask = Preconditions.checkNotNull(task); in UserIconLoader() 56 return mTask.getUserIcons(); in loadInBackground()
|
/packages/services/Telephony/tests/src/com/android/ |
D | TestExecutorService.java | 40 private final Callable<T> mTask; field in TestExecutorService.CompletedFuture 46 mTask = task; in CompletedFuture() 51 mTask = task; in CompletedFuture() 102 mFuture.complete(mTask.call()); in completeTask()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiThreadRunner.java | 249 private final Runnable mTask; field in WifiThreadRunner.BlockingRunnable 253 mTask = task; in BlockingRunnable() 259 mTask.run(); in run()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
D | TunerStorageCleanUpService.java | 44 private CleanUpStorageTask mTask; field in TunerStorageCleanUpService 54 mTask = new CleanUpStorageTask(this, this); in onCreate() 59 mTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params); in onStartJob()
|
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/ |
D | ContactsExecutors.java | 175 private final Callable<T> mTask; field in ContactsExecutors.HandlerFuture 183 mTask = task; in HandlerFuture() 225 mDelegate.set(mTask.call()); in run()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | TaskOverlayFactory.java | 301 protected final Task mTask; field in TaskOverlayFactory.TaskOverlay.OverlayUICallbacksImpl 305 mTask = task; in OverlayUICallbacksImpl() 318 endLiveTileMode(() -> saveScreenshot(mTask)); in onScreenshot()
|