Home
last modified time | relevance | path

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

123456789

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DBaseActionFragment.java79 public static Bundle buildArgs(ArrayList<Action> actions, String name) { in buildArgs() argument
80 return buildArgs(actions, name, -1); in buildArgs()
86 public static Bundle buildArgs(ArrayList<Action> actions, int index) { in buildArgs() argument
87 return buildArgs(actions, null, index); in buildArgs()
93 public static Bundle buildArgs(ArrayList<Action> actions, String name, int index) { in buildArgs() argument
95 args.putParcelableArrayList(EXTRA_ACTIONS, actions); in buildArgs()
105 ArrayList<Action> actions = savedInstanceState.getParcelableArrayList(EXTRA_ACTIONS); in onCreate() local
107 if (actions != null) { in onCreate()
108 for (Action action : actions) { in onCreate()
111 if (savedIndex >= 0 && savedIndex < actions.size()) { in onCreate()
[all …]
DActionFragment.java35 public static ActionFragment newInstance(ArrayList<Action> actions) { in newInstance() argument
36 return newInstance(actions, null); in newInstance()
39 public static ActionFragment newInstance(ArrayList<Action> actions, String name) { in newInstance() argument
41 fragment.setArguments(BaseActionFragment.buildArgs(actions, name)); in newInstance()
45 public static ActionFragment newInstance(ArrayList<Action> actions, int index) { in newInstance() argument
47 fragment.setArguments(BaseActionFragment.buildArgs(actions, index)); in newInstance()
51 public static ActionFragment newInstance(ArrayList<Action> actions, String name, int index) { in newInstance() argument
53 fragment.setArguments(BaseActionFragment.buildArgs(actions, name, index)); in newInstance()
DDialogActivity.java114 ArrayList<Action> actions) { in createIntent() argument
116 Color.TRANSPARENT, actions); in createIntent()
121 int imageBackground, ArrayList<Action> actions) { in createIntent() argument
128 intent.putParcelableArrayListExtra(EXTRA_PARCELABLE_ACTIONS, actions); in createIntent()
135 ArrayList<Action> actions, Class<? extends DialogActivity> activityClass) { in createIntent() argument
137 actions, activityClass); in createIntent()
142 ArrayList<Action> actions, Class<? extends DialogActivity> activityClass) { in createIntent() argument
149 intent.putParcelableArrayListExtra(EXTRA_PARCELABLE_ACTIONS, actions); in createIntent()
156 ArrayList<Action> actions, Class<? extends DialogActivity> activityClass, in createIntent() argument
164 intent.putParcelableArrayListExtra(EXTRA_PARCELABLE_ACTIONS, actions); in createIntent()
[all …]
/packages/apps/TV/partner_support/samples/src/com/example/partnersupportsampletvinput/
DChannelScanFragment.java100 List<GuidedAction> actions = new ArrayList<>(); in onResume() local
101 onCreateActions(actions, mSavedInstanceState); in onResume()
102 setActions(actions); in onResume()
103 actions = new ArrayList<>(); in onResume()
104 onCreateButtonActions(actions, mSavedInstanceState); in onResume()
105 setButtonActions(actions); in onResume()
115 public void onCreateActions(@NonNull List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument
116 actions.add( in onCreateActions()
129 @NonNull List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateButtonActions()
137 actions.add(mNextAction); in onCreateButtonActions()
[all …]
DResultFragment.java42 public void onCreateActions(@NonNull List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument
45 actions.add( in onCreateActions()
56 @NonNull List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateButtonActions()
57 actions.add( in onCreateButtonActions()
62 actions.add( in onCreateButtonActions()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DUpdateHandler.java485 final ActionBatch actions = new ActionBatch(); in publishUpdateWordListCompleted() local
486 actions.add(new ActionBatch.InstallAfterDownloadAction(clientId, in publishUpdateWordListCompleted()
488 actions.execute(context, new LogProblemReporter(TAG)); in publishUpdateWordListCompleted()
598 final ActionBatch actions = computeUpgradeTo(context, clientId, newMetadata); in handleMetadata() local
601 actions.execute(context, new LogProblemReporter(TAG)); in handleMetadata()
743 final ActionBatch actions = new ActionBatch(); in compareMetadataForUpgrade() local
779 actions.add(new ActionBatch.MakeAvailableAction(clientId, newInfo)); in compareMetadataForUpgrade()
787 actions.add(new ActionBatch.ForgetAction(clientId, currentInfo, false)); in compareMetadataForUpgrade()
797 actions.add(new ActionBatch.UpdateDataAction(clientId, newInfo)); in compareMetadataForUpgrade()
804 actions.add(new ActionBatch.MakeAvailableAction(clientId, newInfo)); in compareMetadataForUpgrade()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DSimpleBroadcastReceiver.java45 public void register(Context context, String... actions) { in register() argument
46 context.registerReceiver(this, getFilter(actions)); in register()
52 public void registerPkgActions(Context context, @Nullable String pkg, String... actions) { in registerPkgActions() argument
53 context.registerReceiver(this, getPackageFilter(pkg, actions)); in registerPkgActions()
59 public static IntentFilter getPackageFilter(String pkg, String... actions) { in getPackageFilter() argument
60 IntentFilter filter = getFilter(actions); in getPackageFilter()
68 private static IntentFilter getFilter(String... actions) { in getFilter() argument
70 for (String action : actions) { in getFilter()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DBroadcastReceiverHelpers.java35 public static BroadcastReceiver getRegisteredReceiverWithActions(List<String> actions) { in getRegisteredReceiverWithActions() argument
36 ShadowApplication.Wrapper wrapper = getRegisteredReceiverWrapperWithActions(actions); in getRegisteredReceiverWithActions()
41 List<String> actions) { in getRegisteredReceiverWrapperWithActions() argument
49 if (matchesActions(wrapper.getIntentFilter(), actions)) { in getRegisteredReceiverWrapperWithActions()
61 private static boolean matchesActions(IntentFilter filter, List<String> actions) { in matchesActions() argument
62 if (filter.countActions() != actions.size()) { in matchesActions()
66 for (String action : actions) { in matchesActions()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/widget/
DScrollableActionRow.kt42 override fun setActions(actions: List<ActionRow.Action>) { in <lambda>()
43 actionsAdapter.setActions(actions) in <lambda>()
57 private var actions: List<ActionRow.Action> = emptyList() in <lambda>() variable in com.android.intentresolver.widget.ScrollableActionRow.Adapter
66 holder.bind(actions[position]) in <lambda>()
69 override fun getItemCount() = actions.size in <lambda>()
80 fun setActions(actions: List<ActionRow.Action>) { in <lambda>()
81 this.actions = ArrayList(actions) in <lambda>()
DChooserActionRow.kt46 private var actions: List<Action> = emptyList() variable in com.android.intentresolver.widget.ChooserActionRow
50 setActions(actions) in onRestoreInstanceState()
53 override fun setActions(actions: List<Action>) { in setActions()
55 this.actions = ArrayList(actions) in setActions()
56 for (action in actions) { in setActions()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/common/bluetooth/fastpair/
DSimpleBroadcastReceiver.java57 Context context, Preferences preferences, String... actions) { in oneShotReceiver() argument
58 return new SimpleBroadcastReceiver(context, preferences, actions) { in oneShotReceiver()
74 String... actions) {
75 Log.v(TAG, this + " listening for actions " + Arrays.toString(actions));
81 for (String action : actions) {
87 public SimpleBroadcastReceiver(Context context, Preferences preferences, String... actions) {
88 this(context, preferences, /* handler= */ null, actions);
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DFilesActivity.java139 mInjector.actions = new ActionHandler<>( in onCreate()
160 mAppsRowManager = new AppsRowManager(mInjector.actions, mState.supportsCrossProfile(), in onCreate()
165 new ActivityInputHandler(mInjector.actions::showDeleteDialog); in onCreate()
181 mInjector.actions.initLocation(intent); in onCreate()
309 mInjector.actions.showCreateDirectoryDialog(); in onOptionsItemSelected()
312 mInjector.actions.openInNewWindow(mState.stack); in onOptionsItemSelected()
315 mInjector.actions.openSettings(getCurrentRoot()); in onOptionsItemSelected()
318 mInjector.actions.selectAllFiles(); in onOptionsItemSelected()
321 mInjector.actions.showInspector(getCurrentDirectory()); in onOptionsItemSelected()
387 mInjector.actions.selectAllFiles(); in onKeyShortcut()
[all …]
/packages/apps/Dialer/java/com/android/dialer/precall/impl/
DPreCallImpl.java35 private final ImmutableList<PreCallAction> actions; field in PreCallImpl
38 PreCallImpl(ImmutableList<PreCallAction> actions) { in PreCallImpl() argument
39 this.actions = actions; in PreCallImpl()
48 for (PreCallAction action : actions) { in buildIntent()
60 for (PreCallAction action : actions) { in requiresUi()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/presence/
DFastAdvertisement.java67 List<Integer> actions = request.getActions(); in createFromRequest() local
75 !actions.isEmpty(), "FastAdvertisement must contain at least one action"); in createFromRequest()
77 actions.size() <= MAX_ACTION_COUNT, in createFromRequest()
84 actions, in createFromRequest()
122 List<Integer> actions, in FastAdvertisement() argument
127 this.mActions = actions; in FastAdvertisement()
134 + actions.size(); in FastAdvertisement()
/packages/apps/TV/src/com/android/tv/onboarding/
DSetupSourcesFragment.java248 @NonNull List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
249 createActionsInternal(actions); in onCreateActions()
282 List<GuidedAction> actions = new ArrayList<>(); in updateActions() local
283 createActionsInternal(actions); in updateActions()
284 setActions(actions); in updateActions()
287 private void createActionsInternal(List<GuidedAction> actions) { in createActionsInternal() argument
292 actions.add( in createActionsInternal()
304 actions.add( in createActionsInternal()
337 actions.add( in createActionsInternal()
347 actions.add(GuidedActionsStylistWithDivider.createDividerAction(getContext())); in createActionsInternal()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/
DLineupFragment.java184 @NonNull List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
185 actions.addAll(buildActions()); in onCreateActions()
194 List<GuidedAction> actions = new ArrayList<>(); in buildActions() local
197 actions.add( in buildActions()
202 actions.add( in buildActions()
208 actions.add( in buildActions()
224 actions.add( in buildActions()
232 return actions; in buildActions()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DBottomActionBar.java419 public void showActions(BottomAction... actions) { in showActions() argument
420 for (BottomAction action : actions) { in showActions()
430 public void hideActions(BottomAction... actions) { in hideActions() argument
431 for (BottomAction action : actions) { in hideActions()
454 public void showActionsOnly(BottomAction... actions) { in showActionsOnly() argument
455 final Set<BottomAction> actionsSet = new HashSet<>(Arrays.asList(actions)); in showActionsOnly()
472 public boolean areActionsShown(BottomAction... actions) { in areActionsShown() argument
473 final Set<BottomAction> actionsSet = new HashSet<>(Arrays.asList(actions)); in areActionsShown()
502 public void enableActions(BottomAction... actions) { in enableActions() argument
503 for (BottomAction action : actions) { in enableActions()
[all …]
/packages/apps/Dialer/java/com/android/dialer/performancereport/
DPerformanceReport.java35 private static final List<UiAction.Type> actions = new ArrayList<>(); field in PerformanceReport
65 if (!actions.isEmpty()) { in startRecording()
66 actions.clear(); in startRecording()
100 if (actions.isEmpty()) { in recordClick()
103 actions.add(action); in recordClick()
138 return actions; in getActions()
/packages/apps/Messaging/src/com/android/messaging/ui/
DSmsStorageLowWarningFragment.java102 final List<String> actions = loadFreeStorageActions(getActivity().getResources()); in onCreateDialog() local
103 final ActionListAdapter listAdapter = new ActionListAdapter(getActivity(), actions); in onCreateDialog()
126 public ActionListAdapter(final Context context, final List<String> actions) { in ActionListAdapter() argument
127 super(context, R.layout.sms_free_storage_action_item_view, actions); in ActionListAdapter()
259 final List<String> actions = Lists.newArrayList(); in loadFreeStorageActions() local
260 actions.add(resources.getString(R.string.delete_all_media)); in loadFreeStorageActions()
261 actions.add(resources.getString(R.string.delete_oldest_messages, durationString)); in loadFreeStorageActions()
265 return actions; in loadFreeStorageActions()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DInputCustomNameFragment.java65 public void onCreateButtonActions(@NonNull List<GuidedAction> actions, in onCreateButtonActions() argument
67 actions.add(new GuidedAction.Builder(getContext()) in onCreateButtonActions()
70 actions.add(new GuidedAction.Builder(getContext()) in onCreateButtonActions()
76 public void onCreateActions(@NonNull List<GuidedAction> actions, in onCreateActions() argument
78 actions.add(new GuidedAction.Builder(getContext()) in onCreateActions()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DSelectWifiState.java152 public void onCreateActions(@NonNull List<GuidedAction> actions, in onCreateActions() argument
154 actions.addAll(getNetworks()); in onCreateActions()
159 ArrayList<WifiGuidedAction> actions = new ArrayList<>(); in getNetworks() local
182 actions.add(new WifiGuidedAction.Builder(context) in getNetworks()
191 actions.sort(mWifiComparator); in getNetworks()
194 actions.add(new WifiGuidedAction.Builder(context) in getNetworks()
202 actions.add(new WifiGuidedAction.Builder(context) in getNetworks()
208 return actions; in getNetworks()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrSeriesDeletionFragment.java109 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument
110 actions.add( in onCreateActions()
115 actions.add( in onCreateActions()
120 actions.add(GuidedActionsStylistWithDivider.createDividerAction(getContext())); in onCreateActions()
138 actions.add( in onCreateActions()
149 public void onCreateButtonActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateButtonActions() argument
150 actions.add( in onCreateButtonActions()
155 actions.add( in onCreateButtonActions()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DBackupAppsStepFragment.java141 public void onCreateActions(@NonNull List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument
145 actions.addAll(getAppActions(true, entries)); in onCreateActions()
152 final List<GuidedAction> actions = new ArrayList<>(entries.size() + 1); in getAppActions() local
171 actions.add(new GuidedAction.Builder(getContext()) in getAppActions()
181 actions.add(new GuidedAction.Builder(getContext()) in getAppActions()
199 if (actions.size() == 0) { in getAppActions()
200 actions.add(new GuidedAction.Builder(getContext()) in getAppActions()
205 return actions; in getAppActions()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerNotificationBuilder.kt74 val actions: MutableList<Action> = ArrayList<Action>(2) in build() constant
94 actions.add(Action.Builder(icon1, title1, intent1).build()) in build()
104 actions.add(Action.Builder(icon2, title2, intent2).build()) in build()
117 actions.add(Action.Builder(icon1, title1, intent1).build()) in build()
127 actions.add(Action.Builder(icon2, title2, intent2).build()) in build()
143 actions.add(Action.Builder(icon1, title1, intent1).build()) in build()
171 for (action in actions) { in build()
230 val actions: MutableList<Action> = ArrayList<Action>(2) in buildHeadsUp() constant
241 actions.add(Action.Builder(icon1, title1, intent1).build()) in buildHeadsUp()
248 actions.add(Action.Builder(icon2, title2, intent2).build()) in buildHeadsUp()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipUtils.java32 import com.android.settings.fuelgauge.batterytip.actions.BatteryTipAction;
33 import com.android.settings.fuelgauge.batterytip.actions.OpenBatterySaverAction;
34 import com.android.settings.fuelgauge.batterytip.actions.OpenRestrictAppFragmentAction;
35 import com.android.settings.fuelgauge.batterytip.actions.RestrictAppAction;
36 import com.android.settings.fuelgauge.batterytip.actions.SmartBatteryAction;
37 import com.android.settings.fuelgauge.batterytip.actions.UnrestrictAppAction;

123456789