Home
last modified time | relevance | path

Searched refs:addAction (Results 1 – 25 of 438) sorted by relevance

12345678910>>...18

/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetySourceIssueTest.kt316 Notification.Builder("", "").addAction(action1).addAction(action2).build() in notification_getActions_returnsActions()
325 Notification.Builder("", "").addAction(action1).addAction(action2).build() in notification_getActions_mutationsAreNotAllowed()
335 .addAction(action1) in notification_describeContents_returns0()
336 .addAction(action2) in notification_describeContents_returns0()
347 .addAction(action1) in notification_parcelRoundTrip_recreatesEqual()
348 .addAction(action2) in notification_parcelRoundTrip_recreatesEqual()
373 val notificationBuilder = Notification.Builder("", "").addAction(action1) in notification_builder_addAction_doesNotMutatePreviouslyBuiltInstance()
376 notificationBuilder.addAction(action2) in notification_builder_addAction_doesNotMutatePreviouslyBuiltInstance()
385 Notification.Builder("", "").addAction(Generic.asNull()) in notification_builder_addAction_withNull_throwsIllegalArgumentException()
392 val notificationBuilder = Notification.Builder("", "").addAction(action1) in notification_builder_addActions_keepsPreviouslyAddedActions()
[all …]
/packages/services/Car/tests/UserSwitchMonitorApp/src/com/google/android/car/userswitchmonitor/
DUserSwitchMonitorService.java124 filter.addAction(Intent.ACTION_BOOT_COMPLETED); in registerReceiver()
125 filter.addAction(Intent.ACTION_LOCKED_BOOT_COMPLETED); in registerReceiver()
126 filter.addAction(Intent.ACTION_PRE_BOOT_COMPLETED); in registerReceiver()
127 filter.addAction(Intent.ACTION_USER_ADDED); in registerReceiver()
128 filter.addAction(Intent.ACTION_USER_BACKGROUND); in registerReceiver()
129 filter.addAction(Intent.ACTION_USER_FOREGROUND); in registerReceiver()
130 filter.addAction(Intent.ACTION_USER_INFO_CHANGED); in registerReceiver()
131 filter.addAction(Intent.ACTION_USER_INITIALIZE); in registerReceiver()
132 filter.addAction(Intent.ACTION_USER_PRESENT); in registerReceiver()
133 filter.addAction(Intent.ACTION_USER_REMOVED); in registerReceiver()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DAccessibilityEventRouter.java70 addAction(info); in AccessibilityEventRouter()
74 addAction(info); in AccessibilityEventRouter()
77 addAction(info); in AccessibilityEventRouter()
101 private void addAction(AccessibilityNodeInfoCompat info) { in addAction() method in AccessibilityEventRouter
102 info.addAction(AccessibilityActionCompat.ACTION_CLICK); in addAction()
104 info.addAction(AccessibilityNodeInfoCompat.ACTION_LONG_CLICK); in addAction()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetySourceTestData.kt117 .addAction(action()) in createTestActivityRedirectPendingIntent()
139 .addAction(action()) in createTestActivityRedirectPendingIntent()
351 .addAction( in createTestActivityRedirectPendingIntent()
555 .addAction(criticalResolvingActionWithSuccessMessage) in recommendationIssueWithDeduplicationId()
567 .addAction(criticalResolvingActionWithSuccessMessage(sourceId = sourceId)) in recommendationIssueWithDeduplicationId()
582 .addAction( in recommendationIssueWithDeduplicationId()
599 .addAction(testActivityRedirectAction) in recommendationIssueWithDeduplicationId()
607 .addAction(criticalResolvingActionWithConfirmation) in recommendationIssueWithDeduplicationId()
625 .addAction(criticalResolvingAction(sourceId)) in recommendationIssueWithDeduplicationId()
700 .addAction(criticalResolvingActionWithSuccessMessage) in recommendationIssueWithDeduplicationId()
[all …]
/packages/services/Car/tests/MultiDisplaySecondaryHomeTestLauncher/src/com/android/car/multidisplay/launcher/
DPackageIntentReceiver.java36 filter.addAction(Intent.ACTION_PACKAGE_REMOVED); in PackageIntentReceiver()
37 filter.addAction(Intent.ACTION_PACKAGE_CHANGED); in PackageIntentReceiver()
43 sdFilter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE); in PackageIntentReceiver()
44 sdFilter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE); in PackageIntentReceiver()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java206 .addAction( in initImportanceHighBotton()
209 .addAction( in initImportanceHighBotton()
212 .addAction( in initImportanceHighBotton()
386 .addAction( in initCustomizableMessageButton()
391 .addAction( in initCustomizableMessageButton()
455 .addAction( in initMessagingStyleButtonForDiffPerson()
460 .addAction( in initMessagingStyleButtonForDiffPerson()
511 .addAction( in initMessagingStyleButtonForMessageSameGroup()
516 .addAction( in initMessagingStyleButtonForMessageSameGroup()
546 .addAction( in initMessagingStyleButtonForSamePerson()
[all …]
/packages/providers/MediaProvider/tools/dialogs/src/com/android/providers/media/tools/dialogs/
DDialogsActivity.java106 addAction("Request write", () -> { in onCreate()
109 addAction("Request trash", () -> { in onCreate()
112 addAction("Request untrash", () -> { in onCreate()
115 addAction("Request delete", () -> { in onCreate()
118 addAction("Request favorite", () -> { in onCreate()
122 addAction("Request unfavorite", () -> { in onCreate()
174 private Button addAction(String title, Supplier<PendingIntent> supplier) { in addAction() method in DialogsActivity
/packages/apps/Settings/src/com/android/settings/notification/
DAdjustVolumeRestrictedPreferenceController.java64 filter.addAction(AudioManager.VOLUME_CHANGED_ACTION); in getIntentFilter()
65 filter.addAction(AudioManager.STREAM_MUTE_CHANGED_ACTION); in getIntentFilter()
66 filter.addAction(AudioManager.MASTER_MUTE_CHANGED_ACTION); in getIntentFilter()
67 filter.addAction(AudioManager.STREAM_DEVICES_CHANGED_ACTION); in getIntentFilter()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/binder/
DCarouselAccessibilityDelegate.kt43 info.addAction(AccessibilityNodeInfo.ACTION_CLICK) // Standard click action in onInitializeAccessibilityNodeInfo()
45 info.addAction( in onInitializeAccessibilityNodeInfo()
51 info.addAction( in onInitializeAccessibilityNodeInfo()
57 info.addAction(AccessibilityNodeInfo.AccessibilityAction.ACTION_ACCESSIBILITY_FOCUS) in onInitializeAccessibilityNodeInfo()
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/
DNoReceiveSmsPermissionTest.java91 filter.addAction(TELEPHONY_SMS_RECEIVED); in testReceiveTextMessage()
92 filter.addAction(MESSAGE_SENT_ACTION); in testReceiveTextMessage()
93 filter.addAction(MESSAGE_STATUS_RECEIVED_ACTION); in testReceiveTextMessage()
122 filter.addAction(TELEPHONY_SMS_RECEIVED); in testAppSpecificSmsToken()
123 filter.addAction(MESSAGE_SENT_ACTION); in testAppSpecificSmsToken()
124 filter.addAction(MESSAGE_STATUS_RECEIVED_ACTION); in testAppSpecificSmsToken()
125 filter.addAction(APP_SPECIFIC_SMS_RECEIVED_ACTION); in testAppSpecificSmsToken()
/packages/apps/Settings/src/com/android/settings/network/
DDefaultSubscriptionReceiver.java24 filter.addAction(TelephonyManager.ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED); in registerReceiver()
25 filter.addAction(SubscriptionManager.ACTION_DEFAULT_SUBSCRIPTION_CHANGED); in registerReceiver()
26 filter.addAction(ACTION_DEFAULT_VOICE_SUBSCRIPTION_CHANGED); in registerReceiver()
27 filter.addAction(SubscriptionManager.ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED); in registerReceiver()
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleLinearLayoutManager.java101 info.addAction(mActionMoveUp); in onInitializeAccessibilityNodeInfoForItem()
102 info.addAction(mActionMoveTop); in onInitializeAccessibilityNodeInfoForItem()
105 info.addAction(mActionMoveDown); in onInitializeAccessibilityNodeInfoForItem()
106 info.addAction(mActionMoveBottom); in onInitializeAccessibilityNodeInfoForItem()
109 info.addAction(mActionRemove); in onInitializeAccessibilityNodeInfoForItem()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsPackageMonitor.java98 filter.addAction(Intent.ACTION_PACKAGE_UNSTOPPED); in registerReceiver()
99 filter.addAction(Intent.ACTION_PACKAGE_ADDED); in registerReceiver()
100 filter.addAction(Intent.ACTION_PACKAGE_REMOVED); in registerReceiver()
101 filter.addAction(Intent.ACTION_PACKAGE_REPLACED); in registerReceiver()
102 filter.addAction(Intent.ACTION_PACKAGE_CHANGED); in registerReceiver()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/datasources/
DLauncherActivitiesDataSource.kt111 filter.addAction(Intent.ACTION_PACKAGE_ADDED) in getOnPackagesChanged()
112 filter.addAction(Intent.ACTION_PACKAGE_CHANGED) in getOnPackagesChanged()
113 filter.addAction(Intent.ACTION_PACKAGE_REPLACED) in getOnPackagesChanged()
114 filter.addAction(Intent.ACTION_PACKAGE_REMOVED) in getOnPackagesChanged()
/packages/services/Car/service/src/com/android/car/bluetooth/
DBluetoothConnectionRetryManager.java376 filter.addAction(BluetoothDevice.ACTION_BOND_STATE_CHANGED); in init()
378 filter.addAction(BluetoothUtils.A2DP_SINK_CONNECTION_STATE_CHANGED); in init()
379 filter.addAction(BluetoothUtils.A2DP_SOURCE_CONNECTION_STATE_CHANGED); in init()
380 filter.addAction(BluetoothUtils.HFP_CLIENT_CONNECTION_STATE_CHANGED); in init()
381 filter.addAction(BluetoothUtils.MAP_CLIENT_CONNECTION_STATE_CHANGED); in init()
382 filter.addAction(BluetoothUtils.PAN_CONNECTION_STATE_CHANGED); in init()
383 filter.addAction(BluetoothUtils.PBAP_CLIENT_CONNECTION_STATE_CHANGED); in init()
/packages/services/Car/service/src/com/android/car/
DOnShutdownReboot.java62 filter.addAction(Intent.ACTION_SHUTDOWN); in init()
63 filter.addAction(Intent.ACTION_REBOOT); in init()
68 public OnShutdownReboot addAction(BiConsumer<Context, Intent> action) { in addAction() method in OnShutdownReboot
/packages/apps/Settings/src/com/android/settings/datetime/
DTimeChangeListenerMixin.java43 filter.addAction(Intent.ACTION_TIME_TICK); in onResume()
44 filter.addAction(Intent.ACTION_TIME_CHANGED); in onResume()
45 filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); in onResume()
/packages/apps/Nfc/src/com/android/nfc/
DRegisteredComponentCache.java80 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in RegisteredComponentCache()
81 intentFilter.addAction(Intent.ACTION_PACKAGE_CHANGED); in RegisteredComponentCache()
82 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in RegisteredComponentCache()
87 sdFilter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE); in RegisteredComponentCache()
88 sdFilter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE); in RegisteredComponentCache()
92 userFilter.addAction(Intent.ACTION_USER_SWITCHED); in RegisteredComponentCache()
/packages/apps/Settings/src/com/android/settings/connecteddevice/stylus/
DUsbStylusBroadcastReceiver.java42 intentFilter.addAction(UsbManager.ACTION_USB_DEVICE_ATTACHED); in register()
43 intentFilter.addAction(UsbManager.ACTION_USB_DEVICE_DETACHED); in register()
44 intentFilter.addAction(UsbManager.ACTION_USB_STATE); in register()
/packages/apps/TV/common/src/com/android/tv/common/recording/
DRecordingStorageStatusManager.java158 filter.addAction(Intent.ACTION_MEDIA_MOUNTED); in RecordingStorageStatusManager()
159 filter.addAction(Intent.ACTION_MEDIA_UNMOUNTED); in RecordingStorageStatusManager()
160 filter.addAction(Intent.ACTION_MEDIA_EJECT); in RecordingStorageStatusManager()
161 filter.addAction(Intent.ACTION_MEDIA_REMOVED); in RecordingStorageStatusManager()
162 filter.addAction(Intent.ACTION_MEDIA_BAD_REMOVAL); in RecordingStorageStatusManager()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothStateReceiver.java58 INTENT_FILTER.addAction(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED);
59 INTENT_FILTER.addAction(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED);
60 INTENT_FILTER.addAction(BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED);
61 INTENT_FILTER.addAction(BluetoothHearingAid.ACTION_CONNECTION_STATE_CHANGED);
62 INTENT_FILTER.addAction(BluetoothHearingAid.ACTION_ACTIVE_DEVICE_CHANGED);
63 INTENT_FILTER.addAction(BluetoothLeAudio.ACTION_LE_AUDIO_CONNECTION_STATE_CHANGED);
64 INTENT_FILTER.addAction(BluetoothLeAudio.ACTION_LE_AUDIO_ACTIVE_DEVICE_CHANGED);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicesService.java181 filter.addAction(BluetoothDevice.ACTION_ACL_DISCONNECT_REQUESTED); in onCreate()
182 filter.addAction(BluetoothDevice.ACTION_ACL_DISCONNECTED); in onCreate()
183 filter.addAction(BluetoothDevice.ACTION_BOND_STATE_CHANGED); in onCreate()
184 filter.addAction(BluetoothHidHost.ACTION_CONNECTION_STATE_CHANGED); in onCreate()
185 filter.addAction(BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED); // Headset connection in onCreate()
186 filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED); // Bluetooth toggle in onCreate()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterProperties.java264 filter.addAction(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED); in init()
265 filter.addAction(BluetoothHeadsetClient.ACTION_CONNECTION_STATE_CHANGED); in init()
266 filter.addAction(BluetoothHearingAid.ACTION_CONNECTION_STATE_CHANGED); in init()
267 filter.addAction(BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED); in init()
268 filter.addAction(BluetoothA2dpSink.ACTION_CONNECTION_STATE_CHANGED); in init()
269 filter.addAction(BluetoothHidDevice.ACTION_CONNECTION_STATE_CHANGED); in init()
270 filter.addAction(BluetoothHidHost.ACTION_CONNECTION_STATE_CHANGED); in init()
271 filter.addAction(BluetoothAvrcpController.ACTION_CONNECTION_STATE_CHANGED); in init()
272 filter.addAction(BluetoothPan.ACTION_CONNECTION_STATE_CHANGED); in init()
273 filter.addAction(BluetoothMap.ACTION_CONNECTION_STATE_CHANGED); in init()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingService.java161 .addAction(pairAction) in onStartCommand()
162 .addAction(dismissAction); in onStartCommand()
165 filter.addAction(BluetoothDevice.ACTION_BOND_STATE_CHANGED); in onStartCommand()
166 filter.addAction(BluetoothDevice.ACTION_PAIRING_CANCEL); in onStartCommand()
167 filter.addAction(ACTION_DISMISS_PAIRING); in onStartCommand()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryBroadcastReceiver.java98 intentFilter.addAction(Intent.ACTION_BATTERY_CHANGED); in register()
99 intentFilter.addAction(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED); in register()
100 intentFilter.addAction(BatteryUtils.BYPASS_DOCK_DEFENDER_ACTION); in register()
101 intentFilter.addAction(UsbManager.ACTION_USB_PORT_COMPLIANCE_CHANGED); in register()

12345678910>>...18