/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | SetDevicePolicyTaskTest.java | 61 private SetDevicePolicyTask mTask; field in SetDevicePolicyTaskTest 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 | CopyAccountToUserTaskTest.java | 71 private CopyAccountToUserTask mTask; field in CopyAccountToUserTaskTest 96 mTask.run(TEST_TARGET_USER_ID); in testRun() 107 verify(mCallback).onSuccess(mTask); in testRun() 120 mTask.run(TEST_TARGET_USER_ID); in testRun_error() 131 verify(mCallback).onSuccess(mTask); in testRun_error() 141 mTask.run(TEST_TARGET_USER_ID); in testRun_nullAccount() 147 verify(mCallback).onSuccess(mTask); in testRun_nullAccount() 157 mTask.run(TEST_SOURCE_USER_ID); in testRun_sameUser() 163 verify(mCallback).onSuccess(mTask); in testRun_sameUser() 177 assertTrue(mTask.maybeCopyAccount(TEST_TARGET_USER_ID)); in testMaybeCopyAccount_success() [all …]
|
D | InstallPackageTaskTest.java | 87 private InstallPackageTask mTask; field in InstallPackageTaskTest 119 mTask = new InstallPackageTask(mDownloadPackageTask, mMockContext, TEST_PARAMS, mCallback, in setUp() 129 mTask.run(TEST_USER_ID); in testNoDownloadLocation() 132 verify(mCallback).onSuccess(mTask); in testNoDownloadLocation() 142 mTask.run(TEST_USER_ID); in testSuccess() 155 verify(mCallback, timeout(TIMEOUT)).onSuccess(mTask); in testSuccess() 167 mTask.run(TEST_USER_ID); in testSuccess_allowTestOnly() 181 verify(mCallback, timeout(TIMEOUT)).onSuccess(mTask); in testSuccess_allowTestOnly() 192 mTask.run(TEST_USER_ID); in testInstallFailedVersionDowngrade() 207 verify(mCallback, timeout(TIMEOUT)).onSuccess(mTask); in testInstallFailedVersionDowngrade() [all …]
|
D | VerifyPackageTaskTest.java | 75 private AbstractProvisioningTask mTask; field in VerifyPackageTaskTest 106 verify(mCallback).onSuccess(mTask); in testDownloadLocationNull() 120 verify(mCallback).onError(mTask, ERROR_DEVICE_ADMIN_MISSING); in testMissingDeviceAdminComponent() 134 verify(mCallback).onSuccess(mTask); in testPackageChecksumSha256_success() 148 verify(mCallback).onSuccess(mTask); in testSignatureHash_success() 162 verify(mCallback).onError(mTask, ERROR_HASH_MISMATCH); in testSignatureHash_failure() 175 verify(mCallback).onError(mTask, ERROR_HASH_MISMATCH); in testSignatureHash_noSignature() 188 verify(mCallback).onError(mTask, ERROR_HASH_MISMATCH); in testSignatureHash_digestFailure() 203 mTask = new VerifyPackageTask(mUtils, mDownloadPackageTask, mContext, params, mCallback, in runWithDownloadInfo() 205 mTask.run(TEST_USER_ID); in runWithDownloadInfo()
|
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 | 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() 95 mTask.run(TEST_USER_ID); in testPackageNotFound() 98 verify(mCallback).onError(mTask, 0); in testPackageNotFound() 109 mTask.run(TEST_USER_ID); in testInstallFailed() 112 verify(mCallback).onError(mTask, 0); in testInstallFailed()
|
D | StartManagedProfileTaskTest.java | 69 private StartManagedProfileTask mTask; field in StartManagedProfileTaskTest 82 mTask = new StartManagedProfileTask(mIActivityManager, mContext, TEST_PARAMS, mCallback, in setUp() 89 }).when(mCallback).onSuccess(mTask); in setUp() 105 new Handler(mHandlerThread.getLooper()).post(() -> mTask.run(TEST_USER_ID)); in testSuccess() 125 verify(mCallback).onSuccess(mTask); in testSuccess() 137 mTask.run(TEST_USER_ID); in testError() 147 verify(mCallback).onError(mTask, 0); in testError() 160 mTask.run(TEST_USER_ID); in testRemoteException() 170 verify(mCallback).onError(mTask, 0); in testRemoteException()
|
D | CreateManagedProfileTaskTest.java | 65 private CreateManagedProfileTask mTask; field in CreateManagedProfileTaskTest 70 mTask = new CreateManagedProfileTask(InstrumentationRegistry.getTargetContext(), in setUp() 87 mTask.run(TEST_PARENT_USER_ID); in testSuccess() 89 verify(mCallback).onSuccess(mTask); in testSuccess() 95 assertEquals(TEST_USER_ID, mTask.getProfileUserId()); in testSuccess() 107 mTask.run(TEST_PARENT_USER_ID); in testError() 109 verify(mCallback).onError(mTask, 0); in testError()
|
D | ManagedProfileSettingsTaskTest.java | 75 private ManagedProfileSettingsTask mTask; field in ManagedProfileSettingsTaskTest 91 mTask = new ManagedProfileSettingsTask(mSettingsFacade, mCrossProfileIntentFiltersSetter, in testNoMainColor() 95 mTask.run(TEST_USER_ID); in testNoMainColor() 98 verify(mCallback).onSuccess(mTask); in testNoMainColor() 117 mTask = new ManagedProfileSettingsTask(mSettingsFacade, mCrossProfileIntentFiltersSetter, in testMainColor() 121 mTask.run(TEST_USER_ID); in testMainColor() 124 verify(mCallback).onSuccess(mTask); in testMainColor()
|
D | DownloadPackageTaskTest.java | 87 private DownloadPackageTask mTask; field in DownloadPackageTaskTest 97 mTask = new DownloadPackageTask( in setUp() 128 verify(mCallback).onError(mTask, ERROR_OTHER); in testNotConnected() 147 verify(mCallback).onError(mTask, ERROR_DOWNLOAD_FAILED); in testDownloadFailed() 218 verify(mCallback).onSuccess(mTask); in verifyOnTaskFinished() 219 assertEquals(location, mTask.getDownloadedPackageLocation()); in verifyOnTaskFinished() 226 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()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | StorageWizardFormatProgress.java | 46 private PartitionTask mTask; field in StorageWizardFormatProgress 63 mTask = (PartitionTask) getLastCustomNonConfigurationInstance(); in onCreate() 64 if (mTask == null) { in onCreate() 65 mTask = new PartitionTask(); in onCreate() 66 mTask.setActivity(this); in onCreate() 67 mTask.execute(); in onCreate() 69 mTask.setActivity(this); in onCreate() 75 return mTask; in onRetainCustomNonConfigurationInstance()
|
/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/recents_ui_overrides/src/com/android/quickstep/views/ |
D | TaskView.java | 151 private Task mTask; field in TaskView 242 mTask = task; in bind() 247 return mTask; in getTask() 304 if (mTask != null) { in launchTaskInternal() 311 ActivityManagerWrapper.getInstance().startActivityFromRecentsAsync(mTask.key, in launchTaskInternal() 324 ActivityManagerWrapper.getInstance().startActivityFromRecentsAsync(mTask.key, in launchTaskInternal() 338 if (mTask == null) { in onTaskListVisibilityChanged() 349 mTask, thumbnail -> mSnapshotView.setThumbnail(mTask, thumbnail)); in onTaskListVisibilityChanged() 350 mIconLoadRequest = iconCache.updateIconInBackground(mTask, in onTaskListVisibilityChanged() 356 mDigitalWellBeingToast.initialize(mTask); in onTaskListVisibilityChanged() [all …]
|
D | DigitalWellBeingToast.java | 62 private Task mTask; field in DigitalWellBeingToast 82 mTaskView.setContentDescription(mTask.titleDescription); in setNoLimit() 97 getContentDescriptionForTask(mTask, appUsageLimitTimeMs, appRemainingTimeMs)); in setLimit() 113 mTask = task; in initialize() 212 mTask.getTopComponent().getPackageName()).addFlags( in openAppUsageSettings() 224 + mTask.getTopComponent().getPackageName(), e); in openAppUsageSettings()
|
D | TaskThumbnailView.java | 97 private Task mTask; field in TaskThumbnailView 131 mTask = task; in bind() 141 mTask = task; in setThumbnail() 264 if (mTask != null && getTaskView().isRunningTask() && !getTaskView().showScreenshot()) { in drawOnCanvas() 273 final boolean drawBackgroundOnly = mTask == null || mTask.isLocked || mBitmapShader == null in drawOnCanvas() 306 mOverlay.initOverlay(mTask, mThumbnailData, mMatrix); in updateOverlay()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/ |
D | AddNewUserTaskTest.java | 41 private AddNewUserTask mTask; field in AddNewUserTaskTest 46 mTask = new AddNewUserTask(mCarUserManagerHelper, mAddNewUserListener); in createAsyncTask() 52 mTask.execute(newUserName); in testTaskCallsCreateNewNonAdminUser() 64 mTask.execute(newUserName); in testSwitchToNewUserIfUserCreated() 76 mTask.execute(newUserName); in testOnUserAddedSuccessCalledIfUserCreated() 87 mTask.execute(newUserName); in testOnUserAddedFailureCalledIfNullReturned()
|
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | OverviewTask.java | 30 private final UiObject2 mTask; field in OverviewTask 35 mTask = task; in OverviewTask() 52 final Rect taskBounds = mTask.getVisibleBounds(); in dismiss() 68 () -> mTask.click(), in open() 71 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/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/Launcher3/go/quickstep/src/com/android/quickstep/ |
D | TaskHolder.java | 33 private Task mTask; field in TaskHolder 58 mTask = task; in bindTask() 73 mTask = null; in bindEmptyUi() 83 return Optional.ofNullable(mTask); in getTask()
|
/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()
|