Home
last modified time | relevance | path

Searched refs:intentFilter (Results 1 – 25 of 69) sorted by relevance

123

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DIntentFilterData.java116 IntentFilter intentFilter = new IntentFilter(mAction); in createIntentFilter() local
120 intentFilter.addCategory(category); in createIntentFilter()
123 intentFilter.addDataScheme(mDataScheme); in createIntentFilter()
127 intentFilter.addDataType(mDataType); in createIntentFilter()
133 return intentFilter; in createIntentFilter()
DPreferredActivity.java86 IntentFilter intentFilter = intentFilterData.createIntentFilter(); in configure() local
87 intentFilter.addCategory(Intent.CATEGORY_DEFAULT); in configure()
110 packageManager.replacePreferredActivity(intentFilter, match, set, packageActivity); in configure()
/packages/apps/Nfc/src/com/android/nfc/
DRegisteredComponentCache.java70 IntentFilter intentFilter = new IntentFilter(); in RegisteredComponentCache() local
71 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in RegisteredComponentCache()
72 intentFilter.addAction(Intent.ACTION_PACKAGE_CHANGED); in RegisteredComponentCache()
73 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in RegisteredComponentCache()
74 intentFilter.addDataScheme("package"); in RegisteredComponentCache()
75 mContext.registerReceiverAsUser(receiver, UserHandle.ALL, intentFilter, null, null); in RegisteredComponentCache()
DConfirmConnectToWifiNetworkActivity.java49 IntentFilter intentFilter = new IntentFilter(); in onCreate() local
50 intentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in onCreate()
51 registerReceiver(mBroadcastReceiver, intentFilter); in onCreate()
/packages/apps/Dialer/java/com/android/dialer/blockreportspam/
DShowBlockReportSpamDialogReceiver.java65 IntentFilter intentFilter = new IntentFilter(); in getIntentFilter() local
66 intentFilter.addAction(ACTION_SHOW_DIALOG_TO_BLOCK_NUMBER_AND_OPTIONALLY_REPORT_SPAM); in getIntentFilter()
67 intentFilter.addAction(ACTION_SHOW_DIALOG_TO_BLOCK_NUMBER); in getIntentFilter()
68 intentFilter.addAction(ACTION_SHOW_DIALOG_TO_REPORT_NOT_SPAM); in getIntentFilter()
69 intentFilter.addAction(ACTION_SHOW_DIALOG_TO_UNBLOCK_NUMBER); in getIntentFilter()
70 return intentFilter; in getIntentFilter()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DSystemStateHelperTest.java197 Predicate<IntentFilter> carModeFilterTest = (intentFilter) -> in testReceiverAndIntentFilter()
198 2 == intentFilter.countActions() in testReceiverAndIntentFilter()
199 && intentFilter.hasAction(UiModeManager.ACTION_ENTER_CAR_MODE_PRIORITIZED) in testReceiverAndIntentFilter()
200 && intentFilter.hasAction(UiModeManager.ACTION_EXIT_CAR_MODE_PRIORITIZED); in testReceiverAndIntentFilter()
202 Predicate<IntentFilter> packageRemovedFilterTest = (intentFilter) -> in testReceiverAndIntentFilter()
203 1 == intentFilter.countActions() in testReceiverAndIntentFilter()
204 && intentFilter.hasAction(Intent.ACTION_PACKAGE_REMOVED) in testReceiverAndIntentFilter()
205 && intentFilter.hasDataScheme("package"); in testReceiverAndIntentFilter()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryBroadcastReceiver.java99 final IntentFilter intentFilter = new IntentFilter(); in register() local
100 intentFilter.addAction(Intent.ACTION_BATTERY_CHANGED); in register()
101 intentFilter.addAction(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED); in register()
103 final Intent intent = mContext.registerReceiver(this, intentFilter); in register()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDeviceNamePreferenceController.java70 final IntentFilter intentFilter = new IntentFilter(); in onStart() local
71 intentFilter.addAction(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED); in onStart()
72 intentFilter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED); in onStart()
73 mContext.registerReceiver(mReceiver, intentFilter); in onStart()
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanBroadcastReceiver.java43 IntentFilter intentFilter = new IntentFilter(); in startListening() local
44 intentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in startListening()
45 intentFilter.addAction(Intent.ACTION_AIRPLANE_MODE_CHANGED); in startListening()
46 context.registerReceiver(getInstance(), intentFilter); in startListening() local
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbConnectionBroadcastReceiver.java101 final IntentFilter intentFilter = new IntentFilter(); in register() local
102 intentFilter.addAction(UsbManager.ACTION_USB_STATE); in register()
103 intentFilter.addAction(UsbManager.ACTION_USB_PORT_CHANGED); in register()
104 final Intent intent = mContext.registerReceiver(this, intentFilter); in register()
/packages/modules/Permission/service/java/com/android/role/
DRoleService.java157 IntentFilter intentFilter = new IntentFilter(); in registerUserRemovedReceiver() local
158 intentFilter.addAction(Intent.ACTION_USER_REMOVED); in registerUserRemovedReceiver()
168 }, intentFilter, null, null); in registerUserRemovedReceiver()
175 IntentFilter intentFilter = new IntentFilter(); in onStart() local
176 intentFilter.addAction(Intent.ACTION_PACKAGE_CHANGED); in onStart()
177 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in onStart()
178 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in onStart()
179 intentFilter.addDataScheme("package"); in onStart()
180 intentFilter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY); in onStart()
196 }, intentFilter, null, null); in onStart()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredServicesCache.java147 IntentFilter intentFilter = new IntentFilter(); in RegisteredServicesCache() local
148 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in RegisteredServicesCache()
149 intentFilter.addAction(Intent.ACTION_PACKAGE_CHANGED); in RegisteredServicesCache()
150 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in RegisteredServicesCache()
151 intentFilter.addAction(Intent.ACTION_PACKAGE_REPLACED); in RegisteredServicesCache()
152 intentFilter.addAction(Intent.ACTION_PACKAGE_FIRST_LAUNCH); in RegisteredServicesCache()
153 intentFilter.addAction(Intent.ACTION_PACKAGE_RESTARTED); in RegisteredServicesCache()
154 intentFilter.addDataScheme("package"); in RegisteredServicesCache()
155 mContext.registerReceiverAsUser(mReceiver.get(), UserHandle.ALL, intentFilter, null, null); in RegisteredServicesCache() local
DRegisteredNfcFServicesCache.java154 IntentFilter intentFilter = new IntentFilter(); in RegisteredNfcFServicesCache() local
155 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in RegisteredNfcFServicesCache()
156 intentFilter.addAction(Intent.ACTION_PACKAGE_CHANGED); in RegisteredNfcFServicesCache()
157 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in RegisteredNfcFServicesCache()
158 intentFilter.addAction(Intent.ACTION_PACKAGE_REPLACED); in RegisteredNfcFServicesCache()
159 intentFilter.addAction(Intent.ACTION_PACKAGE_FIRST_LAUNCH); in RegisteredNfcFServicesCache()
160 intentFilter.addAction(Intent.ACTION_PACKAGE_RESTARTED); in RegisteredNfcFServicesCache()
161 intentFilter.addDataScheme("package"); in RegisteredNfcFServicesCache()
162 mContext.registerReceiverAsUser(mReceiver.get(), UserHandle.ALL, intentFilter, null, null); in RegisteredNfcFServicesCache() local
/packages/apps/Dialer/java/com/android/dialer/calllog/
DRefreshAnnotatedCallLogReceiver.java61 IntentFilter intentFilter = new IntentFilter(); in getIntentFilter() local
62 intentFilter.addAction(IntentNames.ACTION_REFRESH_ANNOTATED_CALL_LOG); in getIntentFilter()
63 intentFilter.addAction(IntentNames.ACTION_CANCEL_REFRESHING_ANNOTATED_CALL_LOG); in getIntentFilter()
64 return intentFilter; in getIntentFilter()
/packages/apps/Camera2/src/com/android/camera/processing/
DProcessingService.java112 IntentFilter intentFilter = new IntentFilter(); in onCreate() local
113 intentFilter.addAction(ACTION_PAUSE_PROCESSING_SERVICE); in onCreate()
114 intentFilter.addAction(ACTION_RESUME_PROCESSING_SERVICE); in onCreate()
115 LocalBroadcastManager.getInstance(this).registerReceiver(mServiceController, intentFilter); in onCreate()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultNetworkStatusNotifier.java70 IntentFilter intentFilter = new IntentFilter(); in registerListener() local
71 intentFilter.addAction(android.net.ConnectivityManager.CONNECTIVITY_ACTION); in registerListener()
77 mAppContext.registerReceiver(mReceiver, intentFilter); in registerListener()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapAppObserver.java243 IntentFilter intentFilter = new IntentFilter(); in createReceiver() local
244 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in createReceiver()
245 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in createReceiver()
246 intentFilter.addDataScheme("package"); in createReceiver()
333 mContext.registerReceiver(mReceiver, intentFilter); in createReceiver()
/packages/services/Telephony/src/com/android/phone/vvm/
DCarrierVvmPackageInstalledReceiver.java60 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_PACKAGE_ADDED); in register() local
61 intentFilter.addDataScheme("package"); in register()
62 context.registerReceiver(this, intentFilter); in register()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
DMapMceTestFragment.java287 IntentFilter intentFilter = new IntentFilter(); in registerMapServiceListenerAndNotificationReceiver() local
288 intentFilter.addAction(ACTION_MESSAGE_SENT_SUCCESSFULLY); in registerMapServiceListenerAndNotificationReceiver()
289 intentFilter.addAction(ACTION_MESSAGE_DELIVERED_SUCCESSFULLY); in registerMapServiceListenerAndNotificationReceiver()
290 intentFilter.addAction(BluetoothMapClient.ACTION_MESSAGE_RECEIVED); in registerMapServiceListenerAndNotificationReceiver()
291 intentFilter.addAction(BluetoothMapClient.ACTION_CONNECTION_STATE_CHANGED); in registerMapServiceListenerAndNotificationReceiver()
292 getContext().registerReceiver(mTransmissionStatusReceiver, intentFilter); in registerMapServiceListenerAndNotificationReceiver()
/packages/apps/Gallery/src/com/android/camera/
DGalleryPicker.java277 IntentFilter intentFilter = new IntentFilter(); in onStart() local
278 intentFilter.addAction(Intent.ACTION_MEDIA_MOUNTED); in onStart()
279 intentFilter.addAction(Intent.ACTION_MEDIA_UNMOUNTED); in onStart()
280 intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_STARTED); in onStart()
281 intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_FINISHED); in onStart()
282 intentFilter.addAction(Intent.ACTION_MEDIA_EJECT); in onStart()
283 intentFilter.addDataScheme("file"); in onStart()
285 registerReceiver(mReceiver, intentFilter); in onStart()
/packages/apps/Settings/src/com/android/settings/slices/
DVolumeSliceHelper.java48 static void registerIntentToUri(Context context, IntentFilter intentFilter, Uri sliceUri, in registerIntentToUri() argument
54 VolumeSliceRelayReceiver.class, intentFilter); in registerIntentToUri()
55 sIntentFilter = intentFilter; in registerIntentToUri()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DPackageBroadcastReceiver.kt35 private val intentFilter = IntentFilter(Intent.ACTION_PACKAGE_ADDED).apply { in <lambda>() constant
62 intentFilter, null, null) in <lambda>()
81 intentFilter, null, null) in <lambda>()
/packages/apps/Settings/src/com/android/settings/accounts/
DManagedProfileSettings.java156 IntentFilter intentFilter = new IntentFilter(); in register() local
157 intentFilter.addAction(Intent.ACTION_MANAGED_PROFILE_REMOVED); in register()
158 context.registerReceiver(this, intentFilter); in register()
/packages/services/Telephony/src/com/android/phone/
DPhoneGlobals.java496 IntentFilter intentFilter = in onCreate() local
498 intentFilter.addAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED); in onCreate()
499 intentFilter.addAction(TelephonyIntents.ACTION_RADIO_TECHNOLOGY_CHANGED); in onCreate()
500 intentFilter.addAction(TelephonyIntents.ACTION_SERVICE_STATE_CHANGED); in onCreate()
501 intentFilter.addAction(TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED); in onCreate()
502 intentFilter.addAction(TelephonyIntents.ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED); in onCreate()
503 intentFilter.addAction(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED); in onCreate()
504 registerReceiver(mReceiver, intentFilter); in onCreate()
/packages/modules/Connectivity/framework/src/android/net/util/
DMultinetworkPolicyTracker.java139 final IntentFilter intentFilter = new IntentFilter(); in start() local
140 intentFilter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); in start()
141 mContext.registerReceiverForAllUsers(mBroadcastReceiver, intentFilter, in start()

123