/packages/apps/EmergencyInfo/tests/src/com/android/emergency/preferences/ |
D | ContactPreferenceTest.java | 78 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/ |
D | ImsFrameworkApp.java | 56 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/ |
D | SystemStateProviderTest.java | 88 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/ |
D | RegisteredComponentCache.java | 70 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()
|
D | ConfirmConnectToWifiNetworkActivity.java | 47 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/ |
D | ManagedProfileSettings.java | 173 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/ |
D | SystemStateProvider.java | 64 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()
|
D | DockManager.java | 72 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_DOCK_EVENT); in DockManager() local 73 context.registerReceiver(mReceiver, intentFilter); in DockManager()
|
D | BluetoothManager.java | 160 IntentFilter intentFilter = in BluetoothManager() local 162 intentFilter.addAction(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED); in BluetoothManager() 163 context.registerReceiver(mReceiver, intentFilter); in BluetoothManager()
|
D | TtyManager.java | 49 IntentFilter intentFilter = new IntentFilter( in TtyManager() local 51 mContext.registerReceiver(mReceiver, intentFilter); in TtyManager()
|
/packages/apps/EmergencyInfo/tests/src/com/android/emergency/edit/ |
D | EditEmergencyContactsFragmentTest.java | 53 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/ |
D | RegisteredServicesCache.java | 145 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
|
D | RegisteredNfcFServicesCache.java | 152 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/ |
D | ProcessingService.java | 112 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/ |
D | PhoneGlobals.java | 354 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/ |
D | BluetoothMapAppObserver.java | 209 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/ |
D | TtyManager.java | 76 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/ |
D | GalleryPicker.java | 277 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()
|
D | ImageGallery.java | 441 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/ |
D | Listener.java | 249 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/ |
D | WiredHeadsetManager.java | 69 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/ |
D | StkDialogActivity.java | 87 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/ |
D | ActivityMusic.java | 477 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/ |
D | InstallAppProgress.java | 201 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/ |
D | TestSongs.java | 106 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MEDIA_SCANNER_STARTED); in rescanSdcard() local 107 intentFilter.addDataScheme("file"); in rescanSdcard()
|