Home
last modified time | relevance | path

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

12

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredServicesCache.java145 IntentFilter intentFilter = new IntentFilter(); in RegisteredServicesCache() local
146 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in RegisteredServicesCache()
147 intentFilter.addAction(Intent.ACTION_PACKAGE_CHANGED); in RegisteredServicesCache()
148 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in RegisteredServicesCache()
149 intentFilter.addAction(Intent.ACTION_PACKAGE_REPLACED); in RegisteredServicesCache()
150 intentFilter.addAction(Intent.ACTION_PACKAGE_FIRST_LAUNCH); in RegisteredServicesCache()
151 intentFilter.addAction(Intent.ACTION_PACKAGE_RESTARTED); in RegisteredServicesCache()
152 intentFilter.addDataScheme("package"); in RegisteredServicesCache()
153 mContext.registerReceiverAsUser(mReceiver.get(), UserHandle.ALL, intentFilter, null, null); in RegisteredServicesCache() local
/packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/
DImsFrameworkApp.java56 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_AIRPLANE_MODE_CHANGED); in onCreate() local
57 intentFilter.addAction(TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED); in onCreate()
58 intentFilter.addAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED); in onCreate()
59 intentFilter.addAction(TelephonyIntents.ACTION_RADIO_TECHNOLOGY_CHANGED); in onCreate()
60 intentFilter.addAction(TelephonyIntents.ACTION_SERVICE_STATE_CHANGED); in onCreate()
61 registerReceiver(mReceiver, intentFilter); in onCreate()
/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.java47 IntentFilter intentFilter = new IntentFilter(); in onCreate() local
48 intentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in onCreate()
49 registerReceiver(mBroadcastReceiver, intentFilter); in onCreate()
/packages/services/Telephony/src/com/android/phone/
DPhoneGlobals.java417 IntentFilter intentFilter = in onCreate() local
419 intentFilter.addAction(TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED); in onCreate()
420 intentFilter.addAction(Intent.ACTION_DOCK_EVENT); in onCreate()
421 intentFilter.addAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED); in onCreate()
422 intentFilter.addAction(TelephonyIntents.ACTION_RADIO_TECHNOLOGY_CHANGED); in onCreate()
423 intentFilter.addAction(TelephonyIntents.ACTION_SERVICE_STATE_CHANGED); in onCreate()
424 intentFilter.addAction(TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED); in onCreate()
425 registerReceiver(mReceiver, intentFilter); in onCreate()
DEmergencyDialer.java233 final IntentFilter intentFilter = new IntentFilter(); in onCreate() local
234 intentFilter.addAction(Intent.ACTION_SCREEN_OFF); in onCreate()
235 registerReceiver(mBroadcastReceiver, intentFilter); in onCreate()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DMemory.java128 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MEDIA_SCANNER_STARTED); in onResume() local
129 intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_FINISHED); in onResume()
130 intentFilter.addDataScheme("file"); in onResume()
131 getActivity().registerReceiver(mMediaScannerReceiver, intentFilter); in onResume()
133 intentFilter = new IntentFilter(); in onResume()
134 intentFilter.addAction(UsbManager.ACTION_USB_STATE); in onResume()
135 getActivity().registerReceiver(mMediaScannerReceiver, intentFilter); in onResume()
/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()
DImageGallery.java441 IntentFilter intentFilter =
443 intentFilter.addAction(Intent.ACTION_MEDIA_UNMOUNTED);
444 intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_STARTED);
445 intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_FINISHED);
446 intentFilter.addAction(Intent.ACTION_MEDIA_EJECT);
447 intentFilter.addDataScheme("file");
470 registerReceiver(mReceiver, intentFilter);
/packages/apps/Camera/src/com/android/camera/
DActivityBase.java300 IntentFilter intentFilter = in installIntentFilter() local
302 intentFilter.addAction(Intent.ACTION_MEDIA_UNMOUNTED); in installIntentFilter()
303 intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_FINISHED); in installIntentFilter()
304 intentFilter.addAction(Intent.ACTION_MEDIA_CHECKING); in installIntentFilter()
305 intentFilter.addDataScheme("file"); in installIntentFilter()
306 registerReceiver(mReceiver, intentFilter); in installIntentFilter()
/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/Settings/src/com/android/settings/accounts/
DAuthenticatorHelper.java236 IntentFilter intentFilter = new IntentFilter(); in listenToAccountUpdates() local
237 intentFilter.addAction(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION); in listenToAccountUpdates()
240 intentFilter.addAction(Intent.ACTION_DEVICE_STORAGE_OK); in listenToAccountUpdates()
241 mContext.registerReceiverAsUser(this, mUserHandle, intentFilter, null, null); in listenToAccountUpdates()
DAccountSettings.java518 IntentFilter intentFilter = new IntentFilter(); in register() local
519 intentFilter.addAction(Intent.ACTION_MANAGED_PROFILE_REMOVED); in register()
520 intentFilter.addAction(Intent.ACTION_MANAGED_PROFILE_ADDED); in register()
521 context.registerReceiver(this, intentFilter); in register()
/packages/experimental/NotificationListenerSample/src/com/android/example/notificationlistener/
DListener.java208 final IntentFilter intentFilter = new IntentFilter(); in onCreate() local
209 intentFilter.addAction(ACTION_DISMISS); in onCreate()
210 intentFilter.addAction(ACTION_LAUNCH); in onCreate()
211 LocalBroadcastManager.getInstance(this).registerReceiver(mBroadcastReceiver, intentFilter); in onCreate()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapEmailAppObserver.java193 IntentFilter intentFilter = new IntentFilter(); in createReceiver() local
194 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in createReceiver()
195 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in createReceiver()
196 intentFilter.addDataScheme("package"); in createReceiver()
/packages/apps/MusicFX/src/com/android/musicfx/
DActivityMusic.java467 final IntentFilter intentFilter = new IntentFilter(Intent.ACTION_HEADSET_PLUG); in onResume() local
468 intentFilter.addAction(BluetoothDevice.ACTION_ACL_CONNECTED); in onResume()
469 intentFilter.addAction(BluetoothDevice.ACTION_ACL_DISCONNECTED); in onResume()
470 intentFilter.addAction(AudioManager.ACTION_AUDIO_BECOMING_NOISY); in onResume()
471 registerReceiver(mReceiver, intentFilter); in onResume()
/packages/services/Telephony/src/com/android/services/telephony/
DTtyManager.java75 IntentFilter intentFilter = new IntentFilter( in TtyManager() local
77 intentFilter.addAction(TelecomManager.ACTION_TTY_PREFERRED_MODE_CHANGED); in TtyManager()
78 context.registerReceiver(mReceiver, intentFilter); in TtyManager()
/packages/services/Telecomm/src/com/android/server/telecom/
DBluetoothManager.java96 IntentFilter intentFilter = in BluetoothManager() local
98 intentFilter.addAction(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED); in BluetoothManager()
99 context.registerReceiver(mReceiver, intentFilter); in BluetoothManager()
DWiredHeadsetManager.java67 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_HEADSET_PLUG); in WiredHeadsetManager() local
68 context.registerReceiver(mReceiver, intentFilter); in WiredHeadsetManager()
DTtyManager.java49 IntentFilter intentFilter = new IntentFilter( in TtyManager() local
51 mContext.registerReceiver(mReceiver, intentFilter); in TtyManager()
/packages/apps/Stk/src/com/android/stk/
DStkDialogActivity.java87 IntentFilter intentFilter = new IntentFilter(); in onCreate() local
88 intentFilter.addAction(ALARM_TIMEOUT); in onCreate()
89 mContext.registerReceiver(mBroadcastReceiver, intentFilter); in onCreate()
/packages/apps/LegacyCamera/src/com/android/camera/
DVideoCamera.java859 IntentFilter intentFilter = in doOnResume() local
861 intentFilter.addAction(Intent.ACTION_MEDIA_EJECT); in doOnResume()
862 intentFilter.addAction(Intent.ACTION_MEDIA_UNMOUNTED); in doOnResume()
863 intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_STARTED); in doOnResume()
864 intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_FINISHED); in doOnResume()
865 intentFilter.addDataScheme("file"); in doOnResume()
867 registerReceiver(mReceiver, intentFilter); in doOnResume()
DCamera.java1521 IntentFilter intentFilter = in installIntentFilter() local
1523 intentFilter.addAction(Intent.ACTION_MEDIA_UNMOUNTED); in installIntentFilter()
1524 intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_FINISHED); in installIntentFilter()
1525 intentFilter.addAction(Intent.ACTION_MEDIA_CHECKING); in installIntentFilter()
1526 intentFilter.addDataScheme("file"); in installIntentFilter()
1527 registerReceiver(mReceiver, intentFilter); in installIntentFilter()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsDatabaseHelper.java1671 IntentFilter intentFilter = new IntentFilter(); in getWritableDatabase() local
1672 intentFilter.addAction(Intent.ACTION_DEVICE_STORAGE_LOW); in getWritableDatabase()
1673 intentFilter.addAction(Intent.ACTION_DEVICE_STORAGE_OK); in getWritableDatabase()
1674 mContext.registerReceiver(mLowStorageMonitor, intentFilter); in getWritableDatabase()
/packages/apps/Mms/src/com/android/mms/transaction/
DSmsReceiverService.java681 IntentFilter intentFilter = new IntentFilter(); in registerForServiceStateChanges() local
682 intentFilter.addAction(TelephonyIntents.ACTION_SERVICE_STATE_CHANGED); in registerForServiceStateChanges()
687 context.registerReceiver(SmsReceiver.getInstance(), intentFilter); in registerForServiceStateChanges() local

12