Home
last modified time | relevance | path

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

12

/packages/apps/EmergencyInfo/tests/src/com/android/emergency/preferences/
DContactPreferenceTest.java78 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_VIEW); in testDisplayContact() local
79 intentFilter.addDataType(ContactsContract.Contacts.CONTENT_ITEM_TYPE); in testDisplayContact()
81 getInstrumentation().addMonitor(intentFilter, null, true /* block */); in testDisplayContact()
88 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_CALL); in testCallContact() local
89 intentFilter.addDataScheme("tel"); in testCallContact()
91 getInstrumentation().addMonitor(intentFilter, null, true /* block */); in testCallContact()
/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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DSystemStateProviderTest.java88 ArgumentCaptor<IntentFilter> intentFilter = ArgumentCaptor.forClass(IntentFilter.class); in testReceiverAndIntentFilter() local
90 verify(mContext).registerReceiver(any(BroadcastReceiver.class), intentFilter.capture()); in testReceiverAndIntentFilter()
92 assertEquals(2, intentFilter.getValue().countActions()); in testReceiverAndIntentFilter()
93 assertEquals(UiModeManager.ACTION_ENTER_CAR_MODE, intentFilter.getValue().getAction(0)); in testReceiverAndIntentFilter()
94 assertEquals(UiModeManager.ACTION_EXIT_CAR_MODE, intentFilter.getValue().getAction(1)); in testReceiverAndIntentFilter()
/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/apps/Settings/src/com/android/settings/accounts/
DManagedProfileSettings.java173 IntentFilter intentFilter = new IntentFilter(); in register() local
174 intentFilter.addAction(Intent.ACTION_MANAGED_PROFILE_REMOVED); in register()
175 intentFilter.addAction(Intent.ACTION_MANAGED_PROFILE_AVAILABLE); in register()
176 intentFilter.addAction(Intent.ACTION_MANAGED_PROFILE_UNAVAILABLE); in register()
177 context.registerReceiver(this, intentFilter); in register()
/packages/services/Telecomm/src/com/android/server/telecom/
DSystemStateProvider.java64 IntentFilter intentFilter = new IntentFilter(UiModeManager.ACTION_ENTER_CAR_MODE); in SystemStateProvider() local
65 intentFilter.addAction(UiModeManager.ACTION_EXIT_CAR_MODE); in SystemStateProvider()
66 mContext.registerReceiver(mBroadcastReceiver, intentFilter); in SystemStateProvider()
67 Log.i(this, "Registering car mode receiver: %s", intentFilter); in SystemStateProvider()
DDockManager.java72 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_DOCK_EVENT); in DockManager() local
73 context.registerReceiver(mReceiver, intentFilter); in DockManager()
DBluetoothManager.java160 IntentFilter intentFilter = in BluetoothManager() local
162 intentFilter.addAction(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED); in BluetoothManager()
163 context.registerReceiver(mReceiver, intentFilter); in BluetoothManager()
DTtyManager.java49 IntentFilter intentFilter = new IntentFilter( in TtyManager() local
51 mContext.registerReceiver(mReceiver, intentFilter); in TtyManager()
/packages/apps/EmergencyInfo/tests/src/com/android/emergency/edit/
DEditEmergencyContactsFragmentTest.java53 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_PICK); in testAddContactPreference() local
54 intentFilter.addDataType(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE); in testAddContactPreference()
57 getInstrumentation().addMonitor(intentFilter, null, true /* block */); in testAddContactPreference()
/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
DRegisteredNfcFServicesCache.java152 IntentFilter intentFilter = new IntentFilter(); in RegisteredNfcFServicesCache() local
153 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in RegisteredNfcFServicesCache()
154 intentFilter.addAction(Intent.ACTION_PACKAGE_CHANGED); in RegisteredNfcFServicesCache()
155 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in RegisteredNfcFServicesCache()
156 intentFilter.addAction(Intent.ACTION_PACKAGE_REPLACED); in RegisteredNfcFServicesCache()
157 intentFilter.addAction(Intent.ACTION_PACKAGE_FIRST_LAUNCH); in RegisteredNfcFServicesCache()
158 intentFilter.addAction(Intent.ACTION_PACKAGE_RESTARTED); in RegisteredNfcFServicesCache()
159 intentFilter.addDataScheme("package"); in RegisteredNfcFServicesCache()
160 mContext.registerReceiverAsUser(mReceiver.get(), UserHandle.ALL, intentFilter, null, null); in RegisteredNfcFServicesCache() local
/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/services/Telephony/src/com/android/phone/
DPhoneGlobals.java354 IntentFilter intentFilter = in onCreate() local
356 intentFilter.addAction(TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED); in onCreate()
357 intentFilter.addAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED); in onCreate()
358 intentFilter.addAction(TelephonyIntents.ACTION_RADIO_TECHNOLOGY_CHANGED); in onCreate()
359 intentFilter.addAction(TelephonyIntents.ACTION_SERVICE_STATE_CHANGED); in onCreate()
360 intentFilter.addAction(TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED); in onCreate()
361 registerReceiver(mReceiver, intentFilter); in onCreate()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapAppObserver.java209 IntentFilter intentFilter = new IntentFilter(); in createReceiver() local
210 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in createReceiver()
211 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in createReceiver()
212 intentFilter.addDataScheme("package"); in createReceiver()
290 mContext.registerReceiver(mReceiver,intentFilter); in createReceiver()
/packages/services/Telephony/src/com/android/services/telephony/
DTtyManager.java76 IntentFilter intentFilter = new IntentFilter( in TtyManager() local
78 intentFilter.addAction(TelecomManager.ACTION_TTY_PREFERRED_MODE_CHANGED); in TtyManager()
79 context.registerReceiver(mReceiver, intentFilter); in TtyManager()
/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/experimental/NotificationListenerSample/src/com/android/example/notificationlistener/
DListener.java249 final IntentFilter intentFilter = new IntentFilter(); in onCreate() local
250 intentFilter.addAction(ACTION_DISMISS); in onCreate()
251 intentFilter.addAction(ACTION_LAUNCH); in onCreate()
252 LocalBroadcastManager.getInstance(this).registerReceiver(mBroadcastReceiver, intentFilter); in onCreate()
/packages/apps/Dialer/src/com/android/dialer/voicemail/
DWiredHeadsetManager.java69 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_HEADSET_PLUG); in registerReceiver() local
70 mContext.registerReceiver(mReceiver, intentFilter); in registerReceiver()
/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/MusicFX/src/com/android/musicfx/
DActivityMusic.java477 final IntentFilter intentFilter = new IntentFilter(Intent.ACTION_HEADSET_PLUG); in onResume() local
478 intentFilter.addAction(BluetoothDevice.ACTION_ACL_CONNECTED); in onResume()
479 intentFilter.addAction(BluetoothDevice.ACTION_ACL_DISCONNECTED); in onResume()
480 intentFilter.addAction(AudioManager.ACTION_AUDIO_BECOMING_NOISY); in onResume()
481 registerReceiver(mReceiver, intentFilter); in onResume()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DInstallAppProgress.java201 IntentFilter intentFilter = new IntentFilter(); in onCreate() local
202 intentFilter.addAction(BROADCAST_ACTION); in onCreate()
204 mBroadcastReceiver, intentFilter, BROADCAST_SENDER_PERMISSION, null /*scheduler*/); in onCreate()
/packages/apps/Music/tests/src/com/android/music/functional/
DTestSongs.java106 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MEDIA_SCANNER_STARTED); in rescanSdcard() local
107 intentFilter.addDataScheme("file"); in rescanSdcard()

12