Home
last modified time | relevance | path

Searched refs:actions (Results 1 – 25 of 240) sorted by relevance

12345678910

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DSystemActionPerformerTest.java143 List<AccessibilityAction> actions, AccessibilityAction action) { in assertHasLegacyAccessibilityAction() argument
145 for (AccessibilityAction a : actions) { in assertHasLegacyAccessibilityAction()
155 List<AccessibilityAction> actions, AccessibilityAction action) { in assertHasNoLegacyAccessibilityAction() argument
157 for (AccessibilityAction a : actions) { in assertHasNoLegacyAccessibilityAction()
170 List<AccessibilityAction> actions = mSystemActionPerformer.getSystemActions(); in testRegisterSystemAction_addedIntoAvailableSystemActions() local
171 assertEquals(LEGACY_SYSTEM_ACTION_COUNT, actions.size()); in testRegisterSystemAction_addedIntoAvailableSystemActions()
174 actions = mSystemActionPerformer.getSystemActions(); in testRegisterSystemAction_addedIntoAvailableSystemActions()
175 assertEquals(LEGACY_SYSTEM_ACTION_COUNT + 1, actions.size()); in testRegisterSystemAction_addedIntoAvailableSystemActions()
176 assertThat(actions, hasItem(NEW_ACCESSIBILITY_ACTION)); in testRegisterSystemAction_addedIntoAvailableSystemActions()
183 List<AccessibilityAction> actions = mSystemActionPerformer.getSystemActions(); in testRegisterSystemAction_overrideLegacyAction() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ui/viewmodel/
DScreenshotViewModelTest.kt35 assertThat(viewModel.actions.value).isEmpty() in testAddAction()
39 assertThat(viewModel.actions.value).hasSize(1) in testAddAction()
41 val added = viewModel.actions.value[0] in testAddAction()
53 assertThat(viewModel.actions.value).hasSize(2) in testRemoveAction()
58 assertThat(viewModel.actions.value).hasSize(1) in testRemoveAction()
60 val remaining = viewModel.actions.value[0] in testRemoveAction()
74 assertThat(viewModel.actions.value).hasSize(1) in testUpdateActionAppearance()
75 val updated = viewModel.actions.value[0] in testUpdateActionAppearance()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java549 List<Notification.Action> actions = new ArrayList<>(); in createActions() local
551 actions.add(createAction(title)); in createActions()
553 return actions; in createActions()
565 Stream<Button> buttons = IntStream.range(0, smartActions.actions.size()).mapToObj(idx -> in setSmartActions()
571 smartActions.actions.get(idx), in setSmartActions()
593 IntStream.range(0, smartActions.actions.size()) in setSmartRepliesAndActions()
599 smartActions.actions.get(idx), in setSmartRepliesAndActions()
614 CharSequence[] choices, int lineCount, List<Notification.Action> actions) { in buildExpectedView() argument
647 SmartReplyView.SmartActions smartActions = new SmartReplyView.SmartActions(actions, false); in buildExpectedView()
649 IntStream.range(0, smartActions.actions.size()) in buildExpectedView()
[all …]
DInflatedSmartRepliesTest.java176 assertThat(smartReplyState.getSmartActions().actions) in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions()
236 assertThat(smartReplyState.getSmartActions().actions) in chooseSmartRepliesAndActions_sysGeneratedSmartActions()
249 mNotification.actions = new Notification.Action[]{ in chooseSmartRepliesAndActions_sysGeneratedPhishingSmartAction()
269 assertThat(smartReplyState.getSmartActions().actions) in chooseSmartRepliesAndActions_sysGeneratedPhishingSmartAction()
298 assertThat(smartReplyState.getSmartActions().actions) in chooseSmartRepliesAndActions_appGenPreferredOverSysGen()
347 assertThat(smartReplyState.getSmartActions().actions).isEmpty(); in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartRepliesUnaffected()
370 ArrayList<Notification.Action> actions = new ArrayList<>(); in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartActionsAffected() local
371 actions.add(createAction("allowed action", ALLOWLISTED_TEST_INTENT)); in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartActionsAffected()
372 actions.add(createAction("non-allowed action", TEST_INTENT)); in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartActionsAffected()
376 .setSmartActions(actions) in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartActionsAffected()
[all …]
/frameworks/base/core/java/android/view/
DHandlerActionQueue.java53 final HandlerAction[] actions = mActions; in removeCallbacks() local
55 if (actions[i].matches(action)) { in removeCallbacks()
64 actions[j] = actions[i]; in removeCallbacks()
75 actions[j] = null; in removeCallbacks()
82 final HandlerAction[] actions = mActions; in executeActions() local
84 final HandlerAction handlerAction = actions[i]; in executeActions()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DSaveImageInBackgroundTaskTest.kt140 val actions = ArrayList<Notification.Action>() in testQueryQuickShare_withActions() constant
141 actions.add(constructAction("Action One", mutablePendingIntent)) in testQueryQuickShare_withActions()
142 actions.add(constructAction("Action Two", mutablePendingIntent)) in testQueryQuickShare_withActions()
152 .thenReturn(actions) in testQueryQuickShare_withActions()
178 val actions = ArrayList<Notification.Action>() in testCreateQuickShareAction_immutableIntentDifferentAction_returnsNull() constant
179 actions.add(constructAction("New Test Action", immutablePendingIntent)) in testCreateQuickShareAction_immutableIntentDifferentAction_returnsNull()
189 .thenReturn(actions) in testCreateQuickShareAction_immutableIntentDifferentAction_returnsNull()
207 val actions = ArrayList<Notification.Action>() in testCreateQuickShareAction_mutableIntent_returnsSafeIntent() constant
209 actions.add(action) in testCreateQuickShareAction_mutableIntent_returnsSafeIntent()
219 .thenReturn(actions) in testCreateQuickShareAction_mutableIntent_returnsSafeIntent()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsDialogLiteTest.java230 String[] actions = { in testShouldLogClose_backButton() local
236 doReturn(actions).when(mGlobalActionsDialogLite).getDefaultActions(); in testShouldLogClose_backButton()
249 String[] actions = { in testPredictiveBackCallbackRegisteredAndUnregistered() local
255 doReturn(actions).when(mGlobalActionsDialogLite).getDefaultActions(); in testPredictiveBackCallbackRegisteredAndUnregistered()
279 String[] actions = { in testPredictiveBackInvocationDismissesDialog() local
285 doReturn(actions).when(mGlobalActionsDialogLite).getDefaultActions(); in testPredictiveBackInvocationDismissesDialog()
306 String[] actions = { in testSingleTap_logAndDismiss() local
312 doReturn(actions).when(mGlobalActionsDialogLite).getDefaultActions(); in testSingleTap_logAndDismiss()
327 String[] actions = { in testSwipeDownLockscreen_logAndOpenQS() local
333 doReturn(actions).when(mGlobalActionsDialogLite).getDefaultActions(); in testSwipeDownLockscreen_logAndOpenQS()
[all …]
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/
DSearchScaffold.kt75 actions: @Composable RowScope.() -> Unit = {}, in <lambda>()
88 actions = actions, in <lambda>()
122 actions: @Composable RowScope.() -> Unit, in SearchableTopAppBar()
134 actions = actions, in SearchableTopAppBar()
143 actions() in SearchableTopAppBar()
153 actions: @Composable RowScope.() -> Unit = {}, in SearchTopAppBar()
158 actions = { in <lambda>()
162 actions() in <lambda>()
DSettingsTopAppBar.kt29 actions: @Composable RowScope.() -> Unit, in SettingsTopAppBar()
34 actions = actions, in SettingsTopAppBar()
DCustomizedAppBar.kt93 actions: @Composable RowScope.() -> Unit = {},
99 actions = actions,
114 actions: @Composable RowScope.() -> Unit = {},
125 actions = actions,
231 actions: @Composable (RowScope.() -> Unit), in SingleRowTopAppBar()
240 content = actions in SingleRowTopAppBar()
263 actions = actionsRow, in SingleRowTopAppBar()
286 actions: @Composable RowScope.() -> Unit, in TwoRowsTopAppBar()
330 content = actions in TwoRowsTopAppBar()
378 actions = actionsRow, in TwoRowsTopAppBar()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DWatchedIntentHandlingTest.java65 Iterator<String> actions = f.actionsIterator(); in testWatchedIntentFilter() local
68 while (actions.hasNext()) { in testWatchedIntentFilter()
69 assertTrue(f.hasAction(actions.next())); in testWatchedIntentFilter()
75 actions = f.actionsIterator(); in testWatchedIntentFilter()
77 while (actions.hasNext()) { in testWatchedIntentFilter()
78 if (actions.next().equals("action-3")) { in testWatchedIntentFilter()
79 actions.remove(); in testWatchedIntentFilter()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipMediaController.kt51 fun onMediaActionsChanged(actions: List<RemoteAction?>?) in <lambda>()
234 val actions = playbackState.actions in <lambda>() constant in com.android.wm.shell.common.pip.PipMediaController
238 actions and PlaybackState.ACTION_SKIP_TO_PREVIOUS != 0L in <lambda>()
242 if (!isPlaying && actions and PlaybackState.ACTION_PLAY != 0L) { in <lambda>()
244 } else if (isPlaying && actions and PlaybackState.ACTION_PAUSE != 0L) { in <lambda>()
250 actions and PlaybackState.ACTION_SKIP_TO_NEXT != 0L in <lambda>()
328 val actions = mediaActions in <lambda>() constant
330 Consumer { l: ActionListener -> l.onMediaActionsChanged(actions) }) in <lambda>()
/frameworks/compile/mclinker/unittests/
DInputTreeTest.cpp55 std::vector<InputAction*> actions; in TEST_F() local
58 actions.push_back(new StartGroupAction(position++)); in TEST_F()
59 actions.push_back(new InputFileAction(position++, "path1")); in TEST_F()
60 actions.push_back(new EndGroupAction(position++)); in TEST_F()
63 for (action = actions.begin(); action != actions.end(); ++action) { in TEST_F()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/sysui/
DShellCommandHandler.java77 public <T> void addCommandCallback(String commandClass, ShellCommandActionHandler actions, in addCommandCallback() argument
79 mCommands.put(commandClass, actions); in addCommandCallback()
110 final ShellCommandActionHandler actions = mCommands.get(args[1]); in handleCommand() local
112 actions.onShellCommand(cmdClassArgs, pw); in handleCommand()
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DBroadcastWaiter.java56 public BroadcastWaiter(Context context, String tag, int timeoutInSecond, String... actions) { in BroadcastWaiter() argument
61 mActions = new HashSet<>(Arrays.asList(actions)); in BroadcastWaiter()
124 String... actions) { in runThenWaitForBroadcasts() argument
125 for (String action : actions) { in runThenWaitForBroadcasts()
129 for (String action : actions) { in runThenWaitForBroadcasts()
/frameworks/rs/tests/java_api/RSUnitTests/
DRSUnitTests.py728 actions = []
734 actions.append(GenerateBackward)
736 actions.append(GenerateBackward19)
738 actions.append(GenerateForward)
740 actions.append(GenerateSupportLibUnitTests)
742 actions.append(GenerateSupportLib19)
749 elif actions:
750 for action in actions:
/frameworks/compile/mclinker/tools/mcld/
DMain.cpp824 std::vector<Action> actions; in TranslateArguments() local
826 actions.reserve(32); in TranslateArguments()
840 actions.push_back(std::move(action)); in TranslateArguments()
843 actions.push_back(std::move(action)); in TranslateArguments()
847 actions.push_back(std::move(action)); in TranslateArguments()
860 actions.push_back(std::move(action)); in TranslateArguments()
868 actions.push_back(std::move(action)); in TranslateArguments()
871 actions.push_back(std::move(action)); in TranslateArguments()
875 actions.push_back(std::move(action)); in TranslateArguments()
884 actions.push_back(std::move(action)); in TranslateArguments()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipParamsChangedForwarder.java83 public void notifyActionsChanged(List<RemoteAction> actions, RemoteAction closeAction) { in notifyActionsChanged() argument
85 listener.onActionsChanged(actions, closeAction); in notifyActionsChanged()
110 default void onActionsChanged(List<RemoteAction> actions, RemoteAction closeAction) { in onActionsChanged() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DLegacyMediaDataManagerImplTest.kt939 assertThat(data.actions).hasSize(1) in testAddResumptionControls()
966 assertThat(data.actions).hasSize(1) in testAddResumptionControls_withExplicitIndicator()
1640 assertThat(mediaDataCaptor.value.actions.size) in testTooManyNotificationActions_isTruncated()
1675 assertThat(mediaDataCaptor.value!!.actions).hasSize(1) in testPlaybackActions_noState_usesNotification()
1676 assertThat(mediaDataCaptor.value!!.actions[0]!!.contentDescription).isEqualTo(desc) in testPlaybackActions_noState_usesNotification()
1696 val actions = mediaDataCaptor.value!!.semanticActions!! in testPlaybackActions_hasPrevNext() constant
1698 assertThat(actions.playOrPause).isNotNull() in testPlaybackActions_hasPrevNext()
1699 assertThat(actions.playOrPause!!.contentDescription) in testPlaybackActions_hasPrevNext()
1701 actions.playOrPause!!.action!!.run() in testPlaybackActions_hasPrevNext()
1704 assertThat(actions.prevOrCustom).isNotNull() in testPlaybackActions_hasPrevNext()
[all …]
DMediaDataProcessorTest.kt973 assertThat(data.actions).hasSize(1) in testAddResumptionControls()
1000 assertThat(data.actions).hasSize(1) in testAddResumptionControls_withExplicitIndicator()
1664 assertThat(mediaDataCaptor.value.actions.size) in testTooManyNotificationActions_isTruncated()
1699 assertThat(mediaDataCaptor.value!!.actions).hasSize(1) in testPlaybackActions_noState_usesNotification()
1700 assertThat(mediaDataCaptor.value!!.actions[0]!!.contentDescription).isEqualTo(desc) in testPlaybackActions_noState_usesNotification()
1720 val actions = mediaDataCaptor.value!!.semanticActions!! in testPlaybackActions_hasPrevNext() constant
1722 assertThat(actions.playOrPause).isNotNull() in testPlaybackActions_hasPrevNext()
1723 assertThat(actions.playOrPause!!.contentDescription) in testPlaybackActions_hasPrevNext()
1725 actions.playOrPause!!.action!!.run() in testPlaybackActions_hasPrevNext()
1728 assertThat(actions.prevOrCustom).isNotNull() in testPlaybackActions_hasPrevNext()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DChallengeDialogs.kt22 import android.service.controls.actions.BooleanAction in <lambda>()
23 import android.service.controls.actions.CommandAction in <lambda>()
24 import android.service.controls.actions.ControlAction in <lambda>()
25 import android.service.controls.actions.FloatAction in <lambda>()
26 import android.service.controls.actions.ModeAction in <lambda>()
/frameworks/av/services/mediametrics/include/mediametricsservice/
DAnalyticsActions.h94 std::vector<Action> actions; in getActionsForItem() local
100 actions.push_back(action); in getActionsForItem()
106 return actions; in getActionsForItem()
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityNodeInfoTest.java94 ArraySet<AccessibilityAction> actions = AccessibilityAction.sStandardActions; in testStandardActions_idsAreUnique() local
95 for (int i = 0; i < actions.size(); i++) { in testStandardActions_idsAreUnique()
97 int id = actions.valueAt(i).getId(); in testStandardActions_idsAreUnique()
98 if (id == actions.valueAt(j).getId()) { in testStandardActions_idsAreUnique()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/ui/
DTaskSwitcherNotificationCoordinatorTest.kt153 return notification.actions.first { in findSwitchAction()
159 return notification.actions.first { in findGoBackAction()
179 val actions = notification.value.actions in assertNotification() constant
180 assertThat(actions).hasLength(2) in assertNotification()
/frameworks/base/core/tests/coretests/src/android/service/notification/
DNotificationRankingUpdateTest.java256 ArrayList<Notification.Action> actions = new ArrayList<>(); in getSmartActions() local
263 actions.add(new Notification.Action.Builder(null /*icon*/, key, intent).build()); in getSmartActions()
265 return actions; in getSmartActions()
435 String key, int rank, ArrayList<Notification.Action> actions) { in createEmptyTestRanking() argument
455 /* smartActions= */ actions, in createEmptyTestRanking()
622 ArrayList<Notification.Action> actions = new ArrayList<>(); in testRankingUpdate_writesSmartActionToParcel() local
628 actions.add(new Notification.Action.Builder(null /*icon*/, TEST_KEY, intent).build()); in testRankingUpdate_writesSmartActionToParcel()
631 createEmptyTestRanking(TEST_KEY, 123, actions); in testRankingUpdate_writesSmartActionToParcel()
650 assertEquals(actions.size(), recoveredActions.size()); in testRankingUpdate_writesSmartActionToParcel()
651 assertEquals(actions.get(0).title.toString(), recoveredActions.get(0).title.toString()); in testRankingUpdate_writesSmartActionToParcel()
[all …]

12345678910