/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/task/ |
D | ConnectMobileNetworkTaskRoboTest.java | 1 package com.android.managedprovisioning.task; 19 import com.android.managedprovisioning.task.AbstractProvisioningTask.Callback; 67 ConnectMobileNetworkTask task = buildTask(callback); in run_withoutConnection_noCallbackSuccess() local 69 runTask(task); in run_withoutConnection_noCallbackSuccess() 71 assertThat(callback.getSuccessCount(task)).isEqualTo(0); in run_withoutConnection_noCallbackSuccess() 78 ConnectMobileNetworkTask task = buildTask(callback); in connectToNetwork_afterRun_callbackSuccess() local 80 runTask(task); in connectToNetwork_afterRun_callbackSuccess() 84 assertThat(callback.getSuccessCount(task)).isEqualTo(1); in connectToNetwork_afterRun_callbackSuccess() 85 assertThat(callback.getErrorCount(task)).isEqualTo(0); in connectToNetwork_afterRun_callbackSuccess() 91 ConnectMobileNetworkTask task = buildTask(callback); in connectToNetworkTwice_afterRun_oneCallbackSuccess() local [all …]
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/app/ |
D | TaskInfoHelper.java | 35 public static int getDisplayId(@NonNull TaskInfo task) { in getDisplayId() argument 36 return task.displayId; in getDisplayId() 41 public static int getUserId(@NonNull TaskInfo task) { in getUserId() argument 42 return task.userId; in getUserId() 47 public static boolean isVisible(@NonNull TaskInfo task) { in isVisible() argument 48 return task.isVisible && task.isRunning && !task.isSleeping; in isVisible() 53 public static String toString(@Nullable TaskInfo task) { in toString() argument 54 if (task == null) { in toString() 58 + "taskId=" + task.taskId in toString() 59 + " userId=" + task.userId in toString() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/ |
D | TaskQueue.java | 44 for (Task task : queue) { in toBundles() 45 result.add(Tasks.toBundle(task)); in toBundles() 54 Task task = Tasks.createTask(context, pendingTask); in fromBundles() local 55 task.onRestore(pendingTask); in fromBundles() 56 add(task); in fromBundles() 70 public boolean add(Task task) { in add() argument 71 if (task.getId().id == Task.TASK_INVALID) { in add() 74 if (task.getId().id != Task.TASK_ALLOW_DUPLICATES) { in add() 75 Task oldTask = getTask(task.getId()); in add() 77 oldTask.onDuplicatedTaskAdded(task); in add() [all …]
|
D | RetryPolicy.java | 38 private BaseTask task; field in RetryPolicy 64 public void onCreate(BaseTask task, Bundle extras) { in onCreate() argument 65 this.task = task; in onCreate() 73 + this.task in onCreate() 76 this.task.setExecutionTime(this.task.getTimeMillis() + retryDelayMillis); in onCreate() 78 PhoneAccountHandle phoneAccountHandle = task.getPhoneAccountHandle(); in onCreate() 80 VvmLog.e(TAG, "null phone account for phoneAccountHandle " + task.getPhoneAccountHandle()); in onCreate() 84 voicemailStatusEditor = VoicemailStatus.deferredEdit(task.getContext(), phoneAccountHandle); in onCreate() 94 VvmLog.i(TAG, task + " completed successfully"); in onCompleted() 97 VvmLog.i(TAG, "Retry limit for " + task + " reached"); in onCompleted() [all …]
|
D | PostponePolicy.java | 33 private BaseTask task; field in PostponePolicy 40 public void onCreate(BaseTask task, Bundle extras) { in onCreate() argument 41 this.task = task; in onCreate() 42 this.task.setExecutionTime(this.task.getTimeMillis() + postponeMillis); in onCreate() 62 if (task.hasStarted()) { in onDuplicatedTaskAdded() 65 VvmLog.i(TAG, "postponing " + task); in onDuplicatedTaskAdded() 66 task.setExecutionTime(task.getTimeMillis() + postponeMillis); in onDuplicatedTaskAdded()
|
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/ |
D | DownloadService.java | 201 final DownloadTask task = new DownloadTask(mNextDownloadId.getAndIncrement(), in enqueueDownloadTask() local 205 mQueue.add(task); in enqueueDownloadTask() 207 startForeground(NOTE_DOWNLOAD_PROGRESS, makeProgressNotification(task, in enqueueDownloadTask() 213 return task.mId; in enqueueDownloadTask() 278 final DownloadTask task; in run() local 280 task = mQueue.poll(); in run() 281 if (task == null) { in run() 288 processDownload(task); in run() 292 private void processDownload(@NonNull final DownloadTask task) { in processDownload() argument 295 updateNotification(nm, NOTE_DOWNLOAD_PROGRESS, task.mMimeType, in processDownload() [all …]
|
/packages/services/Car/service/src/com/android/car/telemetry/databroker/ |
D | DataBrokerImpl.java | 355 ScriptExecutionTask task = it.next(); in removeMetricsConfig() local 356 if (task.isAssociatedWithMetricsConfig(metricsConfigName)) { in removeMetricsConfig() 357 mTaskQueue.remove(task); in removeMetricsConfig() 359 task.getPublisherType(), in removeMetricsConfig() 360 mPublisherCountArray.get(task.getPublisherType()) - 1); in removeMetricsConfig() 374 public int addTaskToQueue(@NonNull ScriptExecutionTask task) { in addTaskToQueue() argument 376 return mPublisherCountArray.get(task.getPublisherType()); in addTaskToQueue() 378 mTaskQueue.add(task); in addTaskToQueue() 380 task.getPublisherType(), in addTaskToQueue() 381 mPublisherCountArray.get(task.getPublisherType()) + 1); in addTaskToQueue() [all …]
|
/packages/services/Mtp/src/com/android/mtp/ |
D | DocumentLoader.java | 74 LoaderTask task = mTaskList.findTask(parent); in queryChildDocuments() local 75 if (task == null) { in queryChildDocuments() 85 task = new LoaderTask(mMtpManager, mDatabase, mDevice.operationsSupported, parent); in queryChildDocuments() 86 task.loadObjectHandles(); in queryChildDocuments() 87 task.loadObjectInfoList(NUM_INITIAL_ENTRIES); in queryChildDocuments() 90 mTaskList.remove(task); in queryChildDocuments() 93 mTaskList.addFirst(task); in queryChildDocuments() 94 if (task.getState() == LoaderTask.STATE_LOADING) { in queryChildDocuments() 97 return task.createCursor(mResolver, columnNames); in queryChildDocuments() 120 for (final LoaderTask task : mTaskList) { in getNextTaskOrReleaseBackgroundThread() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | DesktopTaskView.java | 142 public void bind(Task task, RecentsOrientedState orientedState) { in bind() argument 143 bind(Collections.singletonList(task), orientedState); in bind() 153 for (Task task : tasks) { in bind() 154 sb.append(" key=").append(task.key).append("\n"); in bind() 182 Task task = mTasks.get(i); in bind() local 184 snapshotView.bind(task); in bind() 185 mSnapshotViewMap.put(task.key.id, snapshotView); in bind() 208 Task task = mTasks.get(i); in updateTaskIdAttributeContainer() local 209 TaskThumbnailView thumbnailView = mSnapshotViewMap.get(task.key.id); in updateTaskIdAttributeContainer() 210 mTaskIdAttributeContainer[i] = createAttributeContainer(task, thumbnailView); in updateTaskIdAttributeContainer() [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestTimer.java | 48 Task task = mTaskList.getFirst(); in fastForwardTo() local 49 if (!task.isCancelled()) { in fastForwardTo() 50 task.run(); in fastForwardTo() 78 Task task = iter.next(); in purge() local 79 if (task.isCancelled()) { in purge() 88 public void schedule(TimerTask task, Date time) { in schedule() argument 90 scheduleAtTime(task, executeTime); in schedule() 94 public void schedule(TimerTask task, Date firstTime, long period) { in schedule() argument 99 public void schedule(TimerTask task, long delay) { in schedule() argument 101 scheduleAtTime(task, executeTime); in schedule() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/ |
D | DeviceOwnerProvisioningController.java | 24 import com.android.managedprovisioning.task.AbstractProvisioningTask; 25 import com.android.managedprovisioning.task.AddWifiNetworkTask; 26 import com.android.managedprovisioning.task.ConnectMobileNetworkTask; 27 import com.android.managedprovisioning.task.DownloadPackageTask; 28 import com.android.managedprovisioning.task.InstallPackageTask; 29 import com.android.managedprovisioning.task.ProvisionFullyManagedDeviceTask; 30 import com.android.managedprovisioning.task.VerifyAdminPackageTask; 87 protected int getErrorMsgId(AbstractProvisioningTask task, int errorCode) { in getErrorMsgId() argument 88 if (task instanceof AddWifiNetworkTask) { in getErrorMsgId() 90 } else if (task instanceof DownloadPackageTask) { in getErrorMsgId() [all …]
|
D | AbstractProvisioningController.java | 37 import com.android.managedprovisioning.task.AbstractProvisioningTask; 38 import com.android.managedprovisioning.task.DownloadPackageTask; 39 import com.android.managedprovisioning.task.InstallExistingPackageTask; 40 import com.android.managedprovisioning.task.InstallPackageTask; 41 import com.android.managedprovisioning.task.VerifyAdminPackageTask; 97 for (AbstractProvisioningTask task : tasks) { in addTasks() 98 mTasks.add(task); in addTasks() 104 protected abstract int getErrorMsgId(AbstractProvisioningTask task, int errorCode); in getErrorMsgId() argument 105 protected abstract boolean getRequireFactoryReset(AbstractProvisioningTask task, int errorCode); in getRequireFactoryReset() argument 157 public synchronized void onSuccess(AbstractProvisioningTask task) { in onSuccess() argument [all …]
|
D | DownloadRoleHolderController.java | 27 import com.android.managedprovisioning.task.AbstractProvisioningTask; 28 import com.android.managedprovisioning.task.AddWifiNetworkTask; 29 import com.android.managedprovisioning.task.ConnectMobileNetworkTask; 30 import com.android.managedprovisioning.task.DownloadPackageTask; 31 import com.android.managedprovisioning.task.InstallPackageTask; 32 import com.android.managedprovisioning.task.VerifyAdminPackageTask; 33 import com.android.managedprovisioning.task.VerifyRoleHolderPackageTask; 109 protected int getErrorMsgId(AbstractProvisioningTask task, int errorCode) { in getErrorMsgId() argument 110 if (task instanceof AddWifiNetworkTask) { in getErrorMsgId() 112 } else if (task instanceof DownloadPackageTask) { in getErrorMsgId() [all …]
|
D | AdminIntegratedFlowPrepareController.java | 27 import com.android.managedprovisioning.task.AbstractProvisioningTask; 28 import com.android.managedprovisioning.task.AddWifiNetworkTask; 29 import com.android.managedprovisioning.task.ConnectMobileNetworkTask; 30 import com.android.managedprovisioning.task.DownloadPackageTask; 31 import com.android.managedprovisioning.task.InstallPackageTask; 32 import com.android.managedprovisioning.task.VerifyAdminPackageTask; 92 protected int getErrorMsgId(AbstractProvisioningTask task, int errorCode) { in getErrorMsgId() argument 93 if (task instanceof AddWifiNetworkTask) { in getErrorMsgId() 95 } else if (task instanceof DownloadPackageTask) { in getErrorMsgId() 102 } else if (task instanceof VerifyAdminPackageTask) { in getErrorMsgId() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | OmtpService.java | 52 VisualVoicemailTask task, final PhoneAccountHandle phoneAccountHandle) { in onCellServiceConnected() argument 56 task.finish(); in onCellServiceConnected() 62 task.finish(); in onCellServiceConnected() 68 task.finish(); in onCellServiceConnected() 74 task.finish(); in onCellServiceConnected() 78 public void onSmsReceived(VisualVoicemailTask task, final VisualVoicemailSms sms) { in onSmsReceived() argument 82 task.finish(); in onSmsReceived() 94 task.finish(); in onSmsReceived() 105 task.finish(); in onSmsReceived() 110 final VisualVoicemailTask task, final PhoneAccountHandle phoneAccountHandle) { in onSimRemoved() argument [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | ProvisionFullyManagedDeviceTaskTest.java | 17 package com.android.managedprovisioning.task; 96 ProvisionFullyManagedDeviceTask task = createProvisioningTask(TEST_PARAMS); in testSuccess() local 98 task.run(TEST_USER_ID); in testSuccess() 100 verify(mCallback).onSuccess(task); in testSuccess() 106 ProvisionFullyManagedDeviceTask task = createProvisioningTask(TEST_PARAMS); in testError() local 110 task.run(TEST_USER_ID); in testError() 112 verify(mCallback).onError(task, 0, /* errorMessage= */ null); in testError() 118 ProvisionFullyManagedDeviceTask task = createProvisioningTask(TEST_PARAMS); in testTextError() local 122 task.run(TEST_USER_ID); in testTextError() 124 verify(mCallback).onError(task, 0, TEST_ERROR_MESSAGE); in testTextError() [all …]
|
D | InstallPackageTaskTest.java | 17 package com.android.managedprovisioning.task; 22 import static com.android.managedprovisioning.task.InstallPackageTask.ERROR_INSTALLATION_FAILED; 78 InstallPackageTask task = new InstallPackageTask( in run_success() local 87 sInstrumentation.runOnMainSync(() -> task.run(USER_ID)); in run_success() 99 InstallPackageTask task = new InstallPackageTask( in run_fileIsNull_success() local 106 task.run(USER_ID); in run_fileIsNull_success() 114 InstallPackageTask task = new InstallPackageTask( in run_fileDoesNotExist_fail() local 121 sInstrumentation.runOnMainSync(() -> task.run(USER_ID)); in run_fileDoesNotExist_fail() 134 InstallPackageTask task = new InstallPackageTask( in run_packageAlreadyInstalled_success() local 143 sInstrumentation.runOnMainSync(() -> task.run(USER_ID)); in run_packageAlreadyInstalled_success() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | SeriesRecordingScheduler.java | 114 SeriesRecordingUpdateTask task = iter.next(); 116 task.getSeriesRecordings(), 120 task.cancel(true); 125 FetchSeriesInfoTask task = 127 if (task != null) { 128 task.cancel(true); 244 FetchSeriesInfoTask task = mFetchSeriesInfoTasks.get(mFetchSeriesInfoTasks.keyAt(i)); in stop() local 245 task.cancel(true); in stop() 248 for (SeriesRecordingUpdateTask task : mScheduleTasks) { in stop() 249 task.cancel(true); in stop() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | ProcessingTaskController.java | 42 ProcessingTask task = mTasks.get(msg.what); 43 if (task != null) { 45 task.onResult((ProcessingTask.Result) msg.obj); 47 task.onUpdate((ProcessingTask.Update) msg.obj); 57 ProcessingTask task = mTasks.get(msg.what); in handleMessage() local 58 if (task != null) { in handleMessage() 59 task.processRequest((ProcessingTask.Request) msg.obj); in handleMessage() 89 public void add(ProcessingTask task) { in add() argument 90 task.added(this); in add() 91 mTasks.put(task.getType(), task); in add() local
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/ |
D | OtaControllerTest.java | 40 import com.android.managedprovisioning.task.AbstractProvisioningTask; 41 import com.android.managedprovisioning.task.DeleteNonRequiredAppsTask; 42 import com.android.managedprovisioning.task.DisallowAddUserTask; 43 import com.android.managedprovisioning.task.InstallExistingPackageTask; 44 import com.android.managedprovisioning.task.MigrateSystemAppsSnapshotTask; 45 import com.android.managedprovisioning.task.UpdateInteractAcrossProfilesAppOpTask; 224 public synchronized void execute(int userId, AbstractProvisioningTask task) { in execute() argument 225 mTasks.add(Pair.create(userId, task)); in execute() 257 for (Pair<Integer, Class> task : tasks) { in assertTaskList() 258 assertTaskListContains(task.first, task.second); in assertTaskList() [all …]
|
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | BaseOverview.java | 129 OverviewTask task = getCurrentTask(); in scrollCurrentTaskOffScreen() local 130 mLauncher.assertNotNull("current task is null", task); in scrollCurrentTaskOffScreen() 132 task.getVisibleWidth() + mLauncher.getOverviewPageSpacing()); in scrollCurrentTaskOffScreen() 146 !getCurrentTask().equals(task)); in scrollCurrentTaskOffScreen() 179 UiObject2 task = null; in getTestActivityTask() local 183 task = taskView; in getTestActivityTask() 188 "Unable to find a task with " + activityName + " from the task list", task); in getTestActivityTask() 190 return new OverviewTask(mLauncher, task, this); in getTestActivityTask() 255 OverviewTask task = mLauncher.isTablet() ? getFocusedTaskForTablet() : getCurrentTask(); in isActionsViewVisible() local 256 if (task == null) { in isActionsViewVisible() [all …]
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | ImageBackend.java | 326 public boolean appendTasks(ImageToProcess img, TaskImageContainer task) { in appendTasks() argument 328 tasks.add(task); in appendTasks() 349 public boolean receiveImage(ImageToProcess img, TaskImageContainer task, in receiveImage() argument 352 return receiveImage(img, task, blockUntilImageRelease, closeOnImageRelease, in receiveImage() 375 public boolean receiveImage(ImageToProcess img, TaskImageContainer task, in receiveImage() argument 380 passTasks.add(task); in receiveImage() 592 for (TaskImageContainer task : tasks) { in initializeTaskDone() 593 sessionSet.add(task.mSession); in initializeTaskDone() 594 Integer currentCount = sessionTaskCount.get(task.mSession); in initializeTaskDone() 596 sessionTaskCount.put(task.mSession, 1); in initializeTaskDone() [all …]
|
/packages/modules/Virtualization/compos/composd/src/ |
D | odrefresh_task.rs | 51 let task = self.take(); in cancel() localVariable 53 drop(task); in cancel() 79 let task = RunningTask { comp_os, callback: callback.clone() }; in start() localVariable 80 let task = OdrefreshTask { running_task: Arc::new(Mutex::new(Some(task))) }; in start() localVariable 82 task.clone().start_thread(service, compilation_mode, target_dir_name); in start() 84 Ok(task) in start() 96 let task = self.take(); in start_thread() localVariable 98 if let Some(task) = task { in start_thread() 102 task.callback.onSuccess() in start_thread() 107 task.callback in start_thread() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/ |
D | DeviceOwnerProvisioningControllerTest.java | 36 import com.android.managedprovisioning.task.AbstractProvisioningTask; 37 import com.android.managedprovisioning.task.AddWifiNetworkTask; 38 import com.android.managedprovisioning.task.ConnectMobileNetworkTask; 39 import com.android.managedprovisioning.task.DownloadPackageTask; 40 import com.android.managedprovisioning.task.ProvisionFullyManagedDeviceTask; 41 import com.android.managedprovisioning.task.VerifyAdminPackageTask; 158 AbstractProvisioningTask task = verifyTaskRun(AddWifiNetworkTask.class); in testErrorAddWifiTask() local 161 mController.onError(task, 0, /* errorMessage= */ null); in testErrorAddWifiTask() 179 AbstractProvisioningTask task = verifyTaskRun(DownloadPackageTask.class); in testErrorDownloadAppTask() local 182 mController.onError(task, 0, /* errorMessage= */ null); in testErrorDownloadAppTask() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | TaskThumbnailCache.java | 106 public void updateThumbnailInCache(Task task) { in updateThumbnailInCache() argument 107 if (task == null) { in updateThumbnailInCache() 112 if (task.thumbnail == null) { in updateThumbnailInCache() 113 updateThumbnailInBackground(task.key, true /* lowResolution */, in updateThumbnailInCache() 114 t -> task.thumbnail = t); in updateThumbnailInCache() 133 Task task, Consumer<ThumbnailData> callback) { in updateThumbnailInBackground() argument 137 if (task.thumbnail != null && task.thumbnail.thumbnail != null in updateThumbnailInBackground() 138 && (!task.thumbnail.reducedResolution || lowResolution)) { in updateThumbnailInBackground() 141 callback.accept(task.thumbnail); in updateThumbnailInBackground() 145 return updateThumbnailInBackground(task.key, !mHighResLoadingState.isEnabled(), t -> { in updateThumbnailInBackground() [all …]
|