Home
last modified time | relevance | path

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

123

/packages/apps/Car/Messenger/src/com/android/car/messenger/bluetooth/
DBluetoothMonitor.java202 IntentFilter intentFilter = new IntentFilter(); in MapDeviceMonitor() local
203 intentFilter.addAction(BluetoothMapClient.ACTION_CONNECTION_STATE_CHANGED); in MapDeviceMonitor()
204 mContext.registerReceiver(this, intentFilter, in MapDeviceMonitor()
247 IntentFilter intentFilter = new IntentFilter(); in BluetoothMapReceiver() local
248 intentFilter.addAction(BluetoothMapClient.ACTION_MESSAGE_SENT_SUCCESSFULLY); in BluetoothMapReceiver()
249 intentFilter.addAction(BluetoothMapClient.ACTION_MESSAGE_RECEIVED); in BluetoothMapReceiver()
250 mContext.registerReceiver(this, intentFilter); in BluetoothMapReceiver()
288 IntentFilter intentFilter = new IntentFilter(); in BluetoothSdpReceiver() local
289 intentFilter.addAction(BluetoothDevice.ACTION_SDP_RECORD); in BluetoothSdpReceiver()
290 mContext.registerReceiver(this, intentFilter); in BluetoothSdpReceiver()
/packages/apps/PermissionController/src/com/android/packageinstaller/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.java85 IntentFilter intentFilter = intentFilterData.createIntentFilter(); in configure() local
86 intentFilter.addCategory(Intent.CATEGORY_DEFAULT); in configure()
93 packageManager.replacePreferredActivity(intentFilter, match, activities, 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()
/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/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryBroadcastReceiver.java88 final IntentFilter intentFilter = new IntentFilter(); in register() local
89 intentFilter.addAction(Intent.ACTION_BATTERY_CHANGED); in register()
90 intentFilter.addAction(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED); in register()
92 final Intent intent = mContext.registerReceiver(this, intentFilter); in register()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryBroadcastReceiver.java88 final IntentFilter intentFilter = new IntentFilter(); in register() local
89 intentFilter.addAction(Intent.ACTION_BATTERY_CHANGED); in register()
90 intentFilter.addAction(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED); in register()
92 final Intent intent = mContext.registerReceiver(this, intentFilter); in register()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredServicesCache.java146 IntentFilter intentFilter = new IntentFilter(); in RegisteredServicesCache() local
147 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in RegisteredServicesCache()
148 intentFilter.addAction(Intent.ACTION_PACKAGE_CHANGED); in RegisteredServicesCache()
149 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in RegisteredServicesCache()
150 intentFilter.addAction(Intent.ACTION_PACKAGE_REPLACED); in RegisteredServicesCache()
151 intentFilter.addAction(Intent.ACTION_PACKAGE_FIRST_LAUNCH); in RegisteredServicesCache()
152 intentFilter.addAction(Intent.ACTION_PACKAGE_RESTARTED); in RegisteredServicesCache()
153 intentFilter.addDataScheme("package"); in RegisteredServicesCache()
154 mContext.registerReceiverAsUser(mReceiver.get(), UserHandle.ALL, intentFilter, null, null); in RegisteredServicesCache() local
DRegisteredNfcFServicesCache.java153 IntentFilter intentFilter = new IntentFilter(); in RegisteredNfcFServicesCache() local
154 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in RegisteredNfcFServicesCache()
155 intentFilter.addAction(Intent.ACTION_PACKAGE_CHANGED); in RegisteredNfcFServicesCache()
156 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in RegisteredNfcFServicesCache()
157 intentFilter.addAction(Intent.ACTION_PACKAGE_REPLACED); in RegisteredNfcFServicesCache()
158 intentFilter.addAction(Intent.ACTION_PACKAGE_FIRST_LAUNCH); in RegisteredNfcFServicesCache()
159 intentFilter.addAction(Intent.ACTION_PACKAGE_RESTARTED); in RegisteredNfcFServicesCache()
160 intentFilter.addDataScheme("package"); in RegisteredNfcFServicesCache()
161 mContext.registerReceiverAsUser(mReceiver.get(), UserHandle.ALL, intentFilter, null, null); in RegisteredNfcFServicesCache() local
/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/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbConnectionBroadcastReceiver.java97 final IntentFilter intentFilter = new IntentFilter(); in register() local
98 intentFilter.addAction(UsbManager.ACTION_USB_STATE); in register()
99 intentFilter.addAction(UsbManager.ACTION_USB_PORT_CHANGED); in register()
100 final Intent intent = mContext.registerReceiver(this, intentFilter); in register()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/connecteddevice/usb/
DUsbConnectionBroadcastReceiver.java97 final IntentFilter intentFilter = new IntentFilter(); in register() local
98 intentFilter.addAction(UsbManager.ACTION_USB_STATE); in register()
99 intentFilter.addAction(UsbManager.ACTION_USB_PORT_CHANGED); in register()
100 final Intent intent = mContext.registerReceiver(this, intentFilter); in register()
/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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
DMapMceTestFragment.java179 IntentFilter intentFilter = new IntentFilter(); in onResume() local
180 intentFilter.addAction(BluetoothMapClient.ACTION_MESSAGE_SENT_SUCCESSFULLY); in onResume()
181 intentFilter.addAction(BluetoothMapClient.ACTION_MESSAGE_DELIVERED_SUCCESSFULLY); in onResume()
182 intentFilter.addAction(BluetoothMapClient.ACTION_MESSAGE_RECEIVED); in onResume()
183 intentFilter.addAction(BluetoothMapClient.ACTION_CONNECTION_STATE_CHANGED); in onResume()
184 getContext().registerReceiver(mTransmissionStatusReceiver, intentFilter); in onResume()
/packages/services/Telecomm/src/com/android/server/telecom/
DSystemStateHelper.java91 IntentFilter intentFilter = new IntentFilter( in SystemStateHelper() local
93 intentFilter.addAction(UiModeManager.ACTION_EXIT_CAR_MODE_PRIORITIZED); in SystemStateHelper()
94 mContext.registerReceiver(mBroadcastReceiver, intentFilter); in SystemStateHelper()
95 Log.i(this, "Registering car mode receiver: %s", intentFilter); in SystemStateHelper()
/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/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/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/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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DSystemStateHelperTest.java132 ArgumentCaptor<IntentFilter> intentFilter = ArgumentCaptor.forClass(IntentFilter.class); in testReceiverAndIntentFilter() local
134 verify(mContext).registerReceiver(any(BroadcastReceiver.class), intentFilter.capture()); in testReceiverAndIntentFilter()
136 assertEquals(2, intentFilter.getValue().countActions()); in testReceiverAndIntentFilter()
138 intentFilter.getValue().getAction(0)); in testReceiverAndIntentFilter()
140 intentFilter.getValue().getAction(1)); in testReceiverAndIntentFilter()
/packages/services/Telephony/src/com/android/phone/
DPhoneGlobals.java420 IntentFilter intentFilter = in onCreate() local
422 intentFilter.addAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED); in onCreate()
423 intentFilter.addAction(TelephonyIntents.ACTION_RADIO_TECHNOLOGY_CHANGED); in onCreate()
424 intentFilter.addAction(TelephonyIntents.ACTION_SERVICE_STATE_CHANGED); in onCreate()
425 intentFilter.addAction(TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED); in onCreate()
426 intentFilter.addAction(TelephonyIntents.ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED); in onCreate()
427 intentFilter.addAction(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED); in onCreate()
428 registerReceiver(mReceiver, intentFilter); in onCreate()
/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/service/src/com/android/car/user/
DCarUserNoticeService.java369 IntentFilter intentFilter = new IntentFilter(); in init() local
370 intentFilter.addAction(Intent.ACTION_SCREEN_OFF); in init()
371 intentFilter.addAction(Intent.ACTION_SCREEN_ON); in init()
372 mContext.registerReceiver(mDisplayBroadcastReceiver, intentFilter); in init()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DManagedProfileSettings.java148 IntentFilter intentFilter = new IntentFilter(); in register() local
149 intentFilter.addAction(Intent.ACTION_MANAGED_PROFILE_REMOVED); in register()
150 context.registerReceiver(this, intentFilter); in register()

123