Home
last modified time | relevance | path

Searched refs:task (Results 1 – 25 of 45) sorted by relevance

12

/cts/apps/CtsVerifier/src/com/android/cts/verifier/voicemail/
DCtsVisualVoicemailService.java31 public abstract void onCellServiceConnected(VisualVoicemailTask task, in onCellServiceConnected() argument
34 public abstract void onSimRemoved(VisualVoicemailTask task, in onSimRemoved() argument
45 public void onCellServiceConnected(VisualVoicemailTask task, in onCellServiceConnected() argument
48 sCallback.onCellServiceConnected(task, phoneAccountHandle); in onCellServiceConnected()
50 task.finish(); in onCellServiceConnected()
54 public void onSmsReceived(VisualVoicemailTask task, VisualVoicemailSms sms) { in onSmsReceived() argument
55 task.finish(); in onSmsReceived()
59 public void onSimRemoved(VisualVoicemailTask task, PhoneAccountHandle phoneAccountHandle) { in onSimRemoved() argument
61 sCallback.onSimRemoved(task, phoneAccountHandle); in onSimRemoved()
63 task.finish(); in onSimRemoved()
[all …]
DVisualVoicemailServiceActivity.java59 public void onCellServiceConnected(VisualVoicemailTask task,
68 public void onSimRemoved(VisualVoicemailTask task, PhoneAccountHandle phoneAccountHandle) {
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DTestTaskQueue.java46 for (Runnable task : mTasks) { in quit()
47 mHandler.removeCallbacks(task); in quit()
75 Runnable task = new Runnable() { in addTask() local
82 mTasks.add(task); in addTask()
83 mHandler.postDelayed(task, delay); in addTask()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DMockVisualVoicemailService.java38 public void onCellServiceConnected(VisualVoicemailTask task, in onCellServiceConnected() argument
44 public void onSmsReceived(VisualVoicemailTask task, VisualVoicemailSms sms) { in onSmsReceived() argument
51 public void onSimRemoved(VisualVoicemailTask task, PhoneAccountHandle phoneAccountHandle) { in onSimRemoved() argument
56 public void onStopped(VisualVoicemailTask task) { in onStopped() argument
/cts/tests/app/src/android/app/cts/
DAppTaskTests.java175 final ActivityManager.AppTask task = getAppTask(a1); in testStartActivityInTask_NoNewTask() local
178 task.startActivity(mTargetContext, intent, null); in testStartActivityInTask_NoNewTask()
183 final ActivityManager.RecentTaskInfo taskInfo = task.getTaskInfo(); in testStartActivityInTask_NoNewTask()
196 final ActivityManager.AppTask task = getAppTask(a1); in testStartActivityInTask_NewTask() local
200 task.startActivity(mTargetContext, intent, null); in testStartActivityInTask_NewTask()
202 final ActivityManager.RecentTaskInfo taskInfo = task.getTaskInfo(); in testStartActivityInTask_NewTask()
254 for (ActivityManager.AppTask task : appTasks) { in getAppTask()
255 if (task.getTaskInfo().taskId == activity.getTaskId()) { in getAppTask()
256 return task; in getAppTask()
267 for (ActivityManager.AppTask task : appTasks) { in removeAllAppTasks()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DAttributionSourceService.java181 SettableFuture<Byte> task = mFuturesQueue.poll(); in handleMessage() local
182 if (task == null) break; in handleMessage()
185 task.setResult(result); in handleMessage()
285 SettableFuture<Byte> task = new SettableFuture<>(); in postAttributionSource() local
288 mReplyHandler.addFuture(task); in postAttributionSource()
299 byte byteResult = (timeout < 0) ? task.get() : in postAttributionSource()
300 task.get(timeout, TimeUnit.MILLISECONDS); in postAttributionSource()
/cts/tests/tests/wifi/src/android/net/wifi/nl80211/cts/
DWifiNl80211ManagerTest.java64 public void execute(Runnable task) { in execute() argument
65 tasks.add(task); in execute()
69 Runnable task = tasks.poll(); in runAll() local
70 while (task != null) { in runAll()
71 task.run(); in runAll()
72 task = tasks.poll(); in runAll()
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DFreeformWindowingModeTests.java229 Task task = wmState.getTaskByActivity(activityName); in waitForEnterFullscreen()
230 return task != null && task.getWindowingMode() == WINDOWING_MODE_FULLSCREEN; in waitForEnterFullscreen()
236 Task task = wmState.getTaskByActivity(activityName); in waitForExitFullscreen()
237 return task != null && task.getWindowingMode() != WINDOWING_MODE_FULLSCREEN; in waitForExitFullscreen()
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/
DBackgroundActivityTestBase.java176 Task task = mWmState.getTaskByActivity(sourceComponent); in assertTaskStackIsEmpty() local
177 assertWithMessage("task for %s", sourceComponent.flattenToShortString()).that(task) in assertTaskStackIsEmpty()
183 Task task = mWmState.getTaskByActivity(sourceComponent); in assertTaskStackHasComponents() local
184 assertWithMessage("task for %s", sourceComponent.flattenToShortString()).that(task) in assertTaskStackHasComponents()
186 Log.d(TAG, "Task for " + sourceComponent.flattenToShortString() + ": " + task in assertTaskStackHasComponents()
187 + " Activities: " + task.mActivities); in assertTaskStackHasComponents()
188 List<String> actualNames = getActivityNames(task.mActivities); in assertTaskStackHasComponents()
198 Task task = mWmState.getTaskByActivity(sourceComponent); in assertTaskDoesNotHaveVisibleComponents() local
199 Log.d(TAG, "Task for " + sourceComponent.flattenToShortString() + ": " + task); in assertTaskDoesNotHaveVisibleComponents()
200 List<WindowManagerState.Activity> actual = getVisibleActivities(task.mActivities); in assertTaskDoesNotHaveVisibleComponents()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DMultiWindowTests.java343 WindowManagerState.Task task = mWmState.getTaskByActivity(targetActivityName, in launchTargetToSide() local
346 if (task != null) { in launchTargetToSide()
347 secondaryTaskId2 = task.getTaskId(); in launchTargetToSide()
454 final WindowManagerState.Task task = in testDisallowUpdateWindowingModeWhenInLockedTask() local
460 runWithShellPermission(() -> mAtm.startSystemLockTaskMode(task.getTaskId())); in testDisallowUpdateWindowingModeWhenInLockedTask()
468 mTaskOrganizer.getTaskInfo(task.getTaskId()).getToken(), in testDisallowUpdateWindowingModeWhenInLockedTask()
486 final WindowManagerState.Task task = mWmState in testDisallowReparentOperationWhenInLockedTask() local
495 mAtm.startSystemLockTaskMode(task.getTaskId()); in testDisallowReparentOperationWhenInLockedTask()
508 mTaskOrganizer.getTaskInfo(task.getTaskId()).getToken(); in testDisallowReparentOperationWhenInLockedTask()
519 .getTaskInfo(task.getTaskId()) in testDisallowReparentOperationWhenInLockedTask()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/midilib/
DMidiTestModule.java121 TimerTask task = new TimerTask() { in startTimeoutHandler() local
133 mTimeoutTimer.schedule(task, TEST_TIMEOUT_MS); in startTimeoutHandler()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTouchHelper.java126 public void tapOnTaskCenter(WindowManagerState.Task task) { in tapOnTaskCenter() argument
127 tapOnCenter(task.getBounds(), task.mDisplayId); in tapOnTaskCenter()
184 public void tapOnTaskCenterAsync(WindowManagerState.Task task) { in tapOnTaskCenterAsync() argument
185 final Rect bounds = task.getBounds(); in tapOnTaskCenterAsync()
188 tapOnDisplay(x, y, task.mDisplayId, false /* sync*/); in tapOnTaskCenterAsync()
DWindowManagerState.java403 Task task = display.mRootTasks.get(i); in updateForDisplayContent() local
404 mRootTasks.add(task); in updateForDisplayContent()
405 addResumedActivity(task); in updateForDisplayContent()
414 private void addResumedActivity(Task task) { in addResumedActivity() argument
415 final int numChildTasks = task.mTasks.size(); in addResumedActivity()
418 addResumedActivity(task.mTasks.get(i)); in addResumedActivity()
420 } else if (task.mResumedActivity != null) { in addResumedActivity()
421 mResumedActivitiesInRootTasks.add(task.mResumedActivity); in addResumedActivity()
725 final Task task = getTaskByActivity(activityComponent); in getDisplayByActivity() local
726 if (task == null) { in getDisplayByActivity()
[all …]
DCtsWindowInfoUtils.java401 TimerTask[] task = {null}; in waitForStableWindowGeometry() local
426 if (task[0] != null) { in waitForStableWindowGeometry()
427 task[0].cancel(); in waitForStableWindowGeometry()
429 task[0] = new TimerTask() { in waitForStableWindowGeometry()
436 timer.schedule(task[0], 200 * HW_TIMEOUT_MULTIPLIER); in waitForStableWindowGeometry()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DPinnedStackTests.java641 final Task task = mWmState.getTaskByActivity(activity.getComponentName()); in testShouldDockBigOverlaysWithExpandedPip() local
642 final TaskInfo info = mTaskOrganizer.getTaskInfo(task.getTaskId()); in testShouldDockBigOverlaysWithExpandedPip()
1075 final Task task = mWmState.getTaskByActivity(LAUNCH_ENTER_PIP_ACTIVITY); in testEnterPipFromTaskWithMultipleActivities() local
1076 assertEquals(1, task.getActivities().size()); in testEnterPipFromTaskWithMultipleActivities()
1093 final Task task = mWmState.getTaskByActivity(LAUNCH_ENTER_PIP_ACTIVITY); in testAutoEnterPipFromTaskWithMultipleActivities() local
1094 assertEquals(1, task.getActivities().size()); in testAutoEnterPipFromTaskWithMultipleActivities()
1109 final Task task = mWmState.getTaskByActivity(LAUNCH_ENTER_PIP_ACTIVITY); in testPipFromTaskWithMultipleActivitiesAndExpandPip() local
1110 assertEquals(2, task.getActivities().size()); in testPipFromTaskWithMultipleActivitiesAndExpandPip()
1123 final Task task = mWmState.getTaskByActivity(LAUNCH_ENTER_PIP_ACTIVITY); in testPipFromTaskWithMultipleActivitiesAndDismissPip() local
1124 assertFalse(task.hasChildPipActivity()); in testPipFromTaskWithMultipleActivitiesAndDismissPip()
[all …]
DLockTaskModeTests.java62 Task task = mWmState.getRootTaskByActivity(session.getActivity().getComponentName()); in startAllowedPackageIntoLockTaskMode_anotherAppPinned_exitsPinningEntersLockTaskMode() local
63 runWithShellPermission(() -> mAtm.startSystemLockTaskMode(task.getTaskId())); in startAllowedPackageIntoLockTaskMode_anotherAppPinned_exitsPinningEntersLockTaskMode()
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DPersistence.java459 for (WindowManagerState.Task task : trimTasks(activityTasks, baseStacks)) { in fromTasks()
460 tasks.add(new TaskState(task)); in fromTasks()
471 for (TaskState task : mTasks) { in toJson()
472 tasks.put(task.toJson()); in toJson()
498 for (WindowManagerState.Task task : trimFrom) { in trimTasks()
499 toTrim.removeIf(t -> t.getRootTaskId() == task.getRootTaskId()); in trimTasks()
581 TaskState task = (TaskState) o; in equals()
582 return Objects.equals(mResumedActivity, task.mResumedActivity) in equals()
583 && Objects.equals(mActivities, task.mActivities); in equals()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java136 switch (step.task.getStatus()) { in onClick()
138 step.task.execute(); in onClick()
153 step.task.cancel(false); in onClick()
202 if (step.task.getStatus() == AsyncTask.Status.PENDING) { in updateUi()
523 AsyncTask<Void, Void, Void> task; field in KeyChainTest.Step
525 public Step(int instructionTextId, boolean skippable, AsyncTask<Void, Void, Void> task) { in Step() argument
528 this.task = task; in Step()
/cts/common/host-side/util-axt/src/com/android/compatibility/common/util/
DWindowManagerUtil.java152 final TaskProto task = child.getTask(); in collectWindowStates() local
153 collectWindowStates(task.getWindowContainer(), out); in collectWindowStates()
195 final TaskProto task = child.getTask(); in collectActivityRecords() local
196 collectActivityRecords(task.getWindowContainer(), out); in collectActivityRecords()
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DErrorLoggingService.java419 SettableFuture<List<LogEvent>> task = mFuturesQueue.poll(); in handleMessage() local
420 if (task == null) break; in handleMessage()
426 task.setResult(res); in handleMessage()
641 SettableFuture<List<LogEvent>> task = new SettableFuture<>(); in retrieveLog() local
655 mReplyHandler.addFuture(task); in retrieveLog()
666 res = (timeout < 0) ? task.get() : task.get(timeout, TimeUnit.MILLISECONDS); in retrieveLog()
/cts/hostsidetests/appsecurity/test-apps/rro/OverlayApp/src/com/android/cts/overlay/app/
DOverlayableTest.java74 FutureTask<Boolean> task = new FutureTask<>(() -> { in assertOverlayEnabled() local
85 mExecutor.execute(task); in assertOverlayEnabled()
86 assertTrue("Failed to load overlay " + overlayPackage, task.get(TIMEOUT, TimeUnit.SECONDS)); in assertOverlayEnabled()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/lifecycle/
DActivityLifecycleFreeformTests.java284 WindowManagerState.Task task = mWmState.getTopRootTaskByWindowingMode( in assertFullscreenActivityBehaviour() local
286 assertThat(task).isNotNull(); in assertFullscreenActivityBehaviour()
289 if (task == mWmState.getRootTaskByActivity( in assertFullscreenActivityBehaviour()
294 assertThat(task.getResumedActivity()).isNotNull(); in assertFullscreenActivityBehaviour()
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DRecentTasksTest.java115 .stream().anyMatch(task -> task.taskId == taskId); in isTaskIncludedInRecents()
/cts/tests/tests/systemui/src/android/systemui/cts/tv/
DBasicPipTests.kt153 state.getTaskByActivity(PIP_ACTIVITY)?.let { task -> in <lambda>() method
154 task.windowingMode == WindowConfiguration.WINDOWING_MODE_PINNED in <lambda>()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioOutColdStartLatencyActivity.java114 TimerTask task = new TimerTask() { in startOutTimer() local
139 mTimer.schedule(task, 500L /*delay*/); in startOutTimer()

12