/frameworks/base/core/java/android/view/textclassifier/intent/ |
D | LegacyClassificationIntentFactory.java | 65 final List<LabeledIntent> actions; in create() local 68 actions = createForEmail(context, text); in create() 71 actions = createForPhone(context, text); in create() 74 actions = createForAddress(context, text); in create() 77 actions = createForUrl(context, text); in create() 84 actions = createForDatetime(context, type, referenceTime, parsedTime); in create() 86 actions = new ArrayList<>(); in create() 90 actions = createForFlight(context, text); in create() 93 actions = createForDictionary(context, text); in create() 96 actions = new ArrayList<>(); in create() [all …]
|
D | ClassificationIntentFactory.java | 46 List<LabeledIntent> actions, Context context, String text) { in insertTranslateAction() argument 47 actions.add(new LabeledIntent( in insertTranslateAction()
|
/frameworks/base/tools/preload2/src/com/android/preload/ |
D | Main.java | 21 import com.android.preload.actions.ClearTableAction; 22 import com.android.preload.actions.ComputeThresholdAction; 23 import com.android.preload.actions.ComputeThresholdXAction; 24 import com.android.preload.actions.DeviceSpecific; 25 import com.android.preload.actions.ExportAction; 26 import com.android.preload.actions.ImportAction; 27 import com.android.preload.actions.ReloadListAction; 28 import com.android.preload.actions.RunMonkeyAction; 29 import com.android.preload.actions.ScanAllPackagesAction; 30 import com.android.preload.actions.ScanPackageAction; [all …]
|
/frameworks/base/core/java/android/view/ |
D | HandlerActionQueue.java | 53 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/core/java/android/app/ |
D | PictureInPictureArgs.java | 72 public Builder setActions(List<RemoteAction> actions) { in setActions() argument 76 if (actions != null) { in setActions() 77 mUserActions = new ArrayList<>(actions); in setActions() 149 public PictureInPictureArgs(float aspectRatio, List<RemoteAction> actions) { in PictureInPictureArgs() argument 151 setActions(actions); in PictureInPictureArgs() 167 private PictureInPictureArgs(Rational aspectRatio, List<RemoteAction> actions, in PictureInPictureArgs() argument 170 mUserActions = actions; in PictureInPictureArgs() 189 public void setActions(List<RemoteAction> actions) { in setActions() argument 193 if (actions != null) { in setActions() 194 mUserActions = new ArrayList<>(actions); in setActions()
|
D | PictureInPictureParams.java | 74 public Builder setActions(List<RemoteAction> actions) { in setActions() argument 78 if (actions != null) { in setActions() 79 mUserActions = new ArrayList<>(actions); in setActions() 158 PictureInPictureParams(Rational aspectRatio, List<RemoteAction> actions, in PictureInPictureParams() argument 161 mUserActions = actions; in PictureInPictureParams()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyViewTest.java | 479 List<Notification.Action> actions = new ArrayList<>(); in createActions() local 481 actions.add(createAction(title)); in createActions() 483 return actions; in createActions() 492 List<Button> actions = mView.inflateSmartActions( in setSmartActions() local 498 mView.addPreInflatedButtons(actions); in setSmartActions() 527 CharSequence[] choices, int lineCount, List<Notification.Action> actions) { in buildExpectedView() argument 573 for (int i = 0; i < actions.size(); ++i) { in buildExpectedView() 574 Button current = inflateActionButton(actions.get(i)); in buildExpectedView() 679 String[] actions = new String[] {"Hi", "Hello", "Bye"}; in testMeasure_shortSmartActions() local 681 ViewGroup expectedView = buildExpectedView(new CharSequence[0], 1, createActions(actions)); in testMeasure_shortSmartActions() [all …]
|
D | InflatedSmartRepliesTest.java | 153 assertThat(repliesAndActions.smartActions.actions).isEqualTo(smartActions); in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions() 201 assertThat(repliesAndActions.smartActions.actions) in chooseSmartRepliesAndActions_sysGeneratedSmartActions() 225 assertThat(repliesAndActions.smartActions.actions).isEqualTo(appGenSmartActions); in chooseSmartRepliesAndActions_appGenPreferredOverSysGen() 267 assertThat(repliesAndActions.smartActions.actions).isEmpty(); in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartRepliesUnaffected() 290 List<Notification.Action> actions = new ArrayList<>(); in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartActionsAffected() local 291 actions.add(createAction("allowed action", WHITELISTED_TEST_INTENT)); in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartActionsAffected() 292 actions.add(createAction("non-allowed action", TEST_INTENT)); in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartActionsAffected() 293 mEntry.systemGeneratedSmartActions = actions; in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartActionsAffected() 299 assertThat(repliesAndActions.smartActions.actions.size()).isEqualTo(1); in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartActionsAffected() 300 assertThat(repliesAndActions.smartActions.actions.get(0)).isEqualTo( in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartActionsAffected() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipMediaController.java | 65 void onMediaActionsChanged(List<RemoteAction> actions); in onMediaActionsChanged() argument 170 long actions = mMediaController.getPlaybackState().getActions(); in getMediaActions() local 173 mPrevAction.setEnabled((actions & PlaybackState.ACTION_SKIP_TO_PREVIOUS) != 0); in getMediaActions() 177 if (!isPlaying && ((actions & PlaybackState.ACTION_PLAY) != 0)) { in getMediaActions() 179 } else if (isPlaying && ((actions & PlaybackState.ACTION_PAUSE) != 0)) { in getMediaActions() 184 mNextAction.setEnabled((actions & PlaybackState.ACTION_SKIP_TO_NEXT) != 0); in getMediaActions() 270 List<RemoteAction> actions = getMediaActions(); in notifyActionsChanged() local 271 mListeners.forEach(l -> l.onMediaActionsChanged(actions)); in notifyActionsChanged()
|
/frameworks/compile/mclinker/unittests/ |
D | InputTreeTest.cpp | 55 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/packages/SystemUI/src/com/android/systemui/pip/tv/ |
D | PipMenuActivity.java | 115 public void onPipMenuActionsChanged(ParceledListSlice actions) { in onPipMenuActionsChanged() argument 116 boolean hasCustomActions = actions != null && !actions.getList().isEmpty(); in onPipMenuActionsChanged() 117 mPipControlsView.setActions(hasCustomActions ? actions.getList() : Collections.EMPTY_LIST); in onPipMenuActionsChanged()
|
/frameworks/compile/mclinker/tools/mcld/ |
D | Main.cpp | 824 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/rs/tests/java_api/RSUnitTests/ |
D | RSUnitTests.py | 728 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/base/services/core/java/com/android/server/hdmi/ |
D | HotplugDetectionAction.java | 239 List<DeviceSelectAction> actions = getActions(DeviceSelectAction.class); in mayCancelDeviceSelect() local 240 if (actions.isEmpty()) { in mayCancelDeviceSelect() 245 DeviceSelectAction action = actions.get(0); in mayCancelDeviceSelect() 252 List<OneTouchRecordAction> actions = getActions(OneTouchRecordAction.class); in mayCancelOneTouchRecord() local 253 for (OneTouchRecordAction action : actions) { in mayCancelOneTouchRecord()
|
D | HdmiCecLocalDeviceSource.java | 103 List<OneTouchPlayAction> actions = getActions(OneTouchPlayAction.class); in oneTouchPlay() local 104 if (!actions.isEmpty()) { in oneTouchPlay() 106 actions.get(0).addCallback(callback); in oneTouchPlay()
|
/frameworks/base/tools/preload2/src/com/android/preload/ui/ |
D | SequenceUI.java | 17 private List<Action> actions; field in SequenceUI 31 List<Action> actions) { in prepare() argument 34 this.actions = actions; in prepare() 43 for (Action a : actions) { in action()
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | AccessibilityNodeInfoTest.java | 94 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/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CustomConfigLoader.java | 160 String[] actions = null; in matchConfig() local 162 actions = actionStr.split(INTRA_GROUP_DELIMITER); in matchConfig() 164 if (!ArrayUtils.isEmpty(actions)) { in matchConfig() 165 for (String idx : actions) { in matchConfig()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | RemoteInputController.java | 63 (n.actions == null || n.actions.length == 0)) { in processForRemoteInput() 67 List<Notification.Action> actions = we.getActions(); in processForRemoteInput() local 68 final int numActions = actions.size(); in processForRemoteInput() 71 Notification.Action action = actions.get(i); in processForRemoteInput()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastStats.java | 111 ArrayList<ActionEntry> actions = new ArrayList<>(mActions.size()); in dumpStats() local 113 actions.add(mActions.valueAt(i)); in dumpStats() 115 Collections.sort(actions, ACTIONS_COMPARATOR); in dumpStats() 116 for (int i=actions.size()-1; i>=0; i--) { in dumpStats() 117 ActionEntry ae = actions.get(i); in dumpStats()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | ActionReplacingCallback.java | 215 List<AccessibilityAction> actions = nodeWithReplacementActions.getActionList(); in replaceActionsOnInfoLocked() local 216 if (actions != null) { in replaceActionsOnInfoLocked() 217 for (int j = 0; j < actions.size(); j++) { in replaceActionsOnInfoLocked() 218 info.addAction(actions.get(j)); in replaceActionsOnInfoLocked()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/ |
D | ErrorFragment.java | 49 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument 50 actions.add(new GuidedAction.Builder(getContext()) in onCreateActions()
|
D | UninstallAlertFragment.java | 89 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument 90 actions.add(new GuidedAction.Builder(getContext()) in onCreateActions() 93 actions.add(new GuidedAction.Builder(getContext()) in onCreateActions()
|
/frameworks/base/media/java/android/media/ |
D | RemoteControlClient.java | 1096 long actions = 0; in getActionsFromRccControlFlags() local 1100 actions |= getActionForRccFlag((int) flag); in getActionsFromRccControlFlags() 1104 return actions; in getActionsFromRccControlFlags() 1107 static int getRccControlFlagsFromActions(long actions) { in getRccControlFlagsFromActions() argument 1110 while (action <= actions && action < Integer.MAX_VALUE) { in getRccControlFlagsFromActions() 1111 if ((action & actions) != 0) { in getRccControlFlagsFromActions()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | PinnedStackListenerForwarder.java | 88 public void onActionsChanged(ParceledListSlice actions) throws RemoteException { in onActionsChanged() argument 90 listener.onActionsChanged(actions); in onActionsChanged()
|