Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java106 IntentFilter intentFilter = new IntentFilter(); in startMonitoring() local
107 intentFilter.addAction(Intent.ACTION_USER_ADDED); in startMonitoring()
108 intentFilter.addAction(Intent.ACTION_USER_REMOVED); in startMonitoring()
109 mContext.registerReceiverAsUser(mIntentReceiver, UserHandle.ALL, intentFilter, null, null); in startMonitoring()
111 intentFilter = new IntentFilter(); in startMonitoring()
112 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in startMonitoring()
113 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in startMonitoring()
114 intentFilter.addDataScheme("package"); in startMonitoring()
115 mContext.registerReceiverAsUser(mIntentReceiver, UserHandle.ALL, intentFilter, null, null); in startMonitoring()
DVpn.java310 IntentFilter intentFilter = new IntentFilter(); in maybeRegisterPackageChangeReceiverLocked() local
312 intentFilter.addAction(Intent.ACTION_PACKAGE_REPLACED); in maybeRegisterPackageChangeReceiverLocked()
313 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in maybeRegisterPackageChangeReceiverLocked()
314 intentFilter.addDataScheme("package"); in maybeRegisterPackageChangeReceiverLocked()
315 intentFilter.addDataSchemeSpecificPart(packageName, PatternMatcher.PATTERN_LITERAL); in maybeRegisterPackageChangeReceiverLocked()
317 mPackageIntentReceiver, UserHandle.of(mUserHandle), intentFilter, null, null); in maybeRegisterPackageChangeReceiverLocked()
/frameworks/base/services/core/java/com/android/server/
DNetworkTimeUpdateService.java139 IntentFilter intentFilter = new IntentFilter(); in registerForTelephonyIntents() local
140 intentFilter.addAction(TelephonyIntents.ACTION_NETWORK_SET_TIME); in registerForTelephonyIntents()
141 intentFilter.addAction(TelephonyIntents.ACTION_NETWORK_SET_TIMEZONE); in registerForTelephonyIntents()
142 mContext.registerReceiver(mNitzReceiver, intentFilter); in registerForTelephonyIntents()
156 IntentFilter intentFilter = new IntentFilter(); in registerForConnectivityIntents() local
157 intentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); in registerForConnectivityIntents()
158 mContext.registerReceiver(mConnectivityReceiver, intentFilter); in registerForConnectivityIntents()
DServiceWatcher.java155 IntentFilter intentFilter = new IntentFilter(); in start() local
156 intentFilter.addAction(Intent.ACTION_USER_SWITCHED); in start()
157 intentFilter.addAction(Intent.ACTION_USER_UNLOCKED); in start()
170 }, UserHandle.ALL, intentFilter, null, mHandler); in start()
/frameworks/base/services/net/java/android/net/util/
DAvoidBadWifiTracker.java91 final IntentFilter intentFilter = new IntentFilter(); in start() local
92 intentFilter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); in start()
94 mBroadcastReceiver, UserHandle.ALL, intentFilter, null, null); in start()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusedLocationProvider.java69 IntentFilter intentFilter = new IntentFilter(); in FusedLocationProvider() local
70 intentFilter.addAction(Intent.ACTION_USER_SWITCHED); in FusedLocationProvider()
79 }, UserHandle.ALL, intentFilter, null, mHandler); in FusedLocationProvider()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRatRatcheter.java56 IntentFilter intentFilter = new IntentFilter(); in RatRatcheter() local
57 intentFilter.addAction(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED); in RatRatcheter()
59 intentFilter, null, null); in RatRatcheter()
DSmsApplication.java746 IntentFilter intentFilter = new IntentFilter(); in replacePreferredActivity() local
747 intentFilter.addAction(Intent.ACTION_SENDTO); in replacePreferredActivity()
748 intentFilter.addCategory(Intent.CATEGORY_DEFAULT); in replacePreferredActivity()
749 intentFilter.addDataScheme(scheme); in replacePreferredActivity()
750 packageManager.replacePreferredActivityAsUser(intentFilter, in replacePreferredActivity()
DSubscriptionInfoUpdater.java127 IntentFilter intentFilter = new IntentFilter(TelephonyIntents.ACTION_SIM_STATE_CHANGED); in SubscriptionInfoUpdater() local
128 intentFilter.addAction(IccCardProxy.ACTION_INTERNAL_SIM_STATE_CHANGED); in SubscriptionInfoUpdater()
129 intentFilter.addAction(Intent.ACTION_USER_UNLOCKED); in SubscriptionInfoUpdater()
130 mContext.registerReceiver(sReceiver, intentFilter); in SubscriptionInfoUpdater()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/
DAuthenticatorHelper.java230 IntentFilter intentFilter = new IntentFilter(); in listenToAccountUpdates() local
231 intentFilter.addAction(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION); in listenToAccountUpdates()
234 intentFilter.addAction(Intent.ACTION_DEVICE_STORAGE_OK); in listenToAccountUpdates()
235 mContext.registerReceiverAsUser(this, mUserHandle, intentFilter, null, null); in listenToAccountUpdates()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java2212 IntentFilter intentFilter;
2214 intentFilter = new IntentFilter();
2215 intentFilter.addAction(Intents.DATA_SMS_RECEIVED_ACTION);
2216 intentFilter.addDataScheme("sms");
2217 intentFilter.addDataAuthority("localhost", "7275");
2218 mContext.registerReceiver(mBroadcastReceiver, intentFilter, null, this);
2220 intentFilter = new IntentFilter();
2221 intentFilter.addAction(Intents.WAP_PUSH_RECEIVED_ACTION);
2223 intentFilter.addDataType("application/vnd.omaloc-supl-init");
2227 mContext.registerReceiver(mBroadcastReceiver, intentFilter, null, this);
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java1482 IntentFilter intentFilter = new IntentFilter(); in registerForBroadcasts() local
1483 intentFilter.addAction(Intent.ACTION_SCREEN_ON); in registerForBroadcasts()
1484 intentFilter.addAction(Intent.ACTION_USER_PRESENT); in registerForBroadcasts()
1485 intentFilter.addAction(Intent.ACTION_SCREEN_OFF); in registerForBroadcasts()
1486 intentFilter.addAction(Intent.ACTION_BATTERY_CHANGED); in registerForBroadcasts()
1487 intentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in registerForBroadcasts()
1488 intentFilter.addAction(BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED); in registerForBroadcasts()
1489 intentFilter.addAction(TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED); in registerForBroadcasts()
1490 intentFilter.addAction(PowerManager.ACTION_DEVICE_IDLE_MODE_CHANGED); in registerForBroadcasts()
1495 intentFilter.addAction(TelephonyIntents.ACTION_EMERGENCY_CALL_STATE_CHANGED); in registerForBroadcasts()
[all …]
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java181 final IntentFilter intentFilter = new IntentFilter(Intent.ACTION_TIME_CHANGED); in startListening() local
182 intentFilter.addAction(Intent.ACTION_TIMEZONE_CHANGED); in startListening()
183 getContext().registerReceiver(mTimeChangedReceiver, intentFilter); in startListening()
/frameworks/base/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java206 IntentFilter intentFilter = new IntentFilter(); in GpsNetInitiatedHandler() local
207 intentFilter.addAction(Intent.ACTION_NEW_OUTGOING_CALL); in GpsNetInitiatedHandler()
208 intentFilter.addAction(LocationManager.MODE_CHANGED_ACTION); in GpsNetInitiatedHandler()
209 mContext.registerReceiver(mBroadcastReciever, intentFilter); in GpsNetInitiatedHandler()
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java154 IntentFilter intentFilter = new IntentFilter(); in RegisteredServicesCache() local
155 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in RegisteredServicesCache()
156 intentFilter.addAction(Intent.ACTION_PACKAGE_CHANGED); in RegisteredServicesCache()
157 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in RegisteredServicesCache()
158 intentFilter.addDataScheme("package"); in RegisteredServicesCache()
159 mContext.registerReceiverAsUser(mPackageReceiver, UserHandle.ALL, intentFilter, null, null); in RegisteredServicesCache()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java75 final IntentFilter intentFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION); in ConnectivityController() local
77 mConnectivityReceiver, UserHandle.SYSTEM, intentFilter, null, null); in ConnectivityController()
/frameworks/base/docs/html/training/managing-audio/
Daudio-output.jd79 private IntentFilter intentFilter = new IntentFilter(AudioManager.ACTION_AUDIO_BECOMING_NOISY);
82 registerReceiver(myNoisyAudioStreamReceiver(), intentFilter);
/frameworks/base/services/core/java/com/android/server/display/
DWifiDisplayController.java171 IntentFilter intentFilter = new IntentFilter(); in WifiDisplayController() local
172 intentFilter.addAction(WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION); in WifiDisplayController()
173 intentFilter.addAction(WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION); in WifiDisplayController()
174 intentFilter.addAction(WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION); in WifiDisplayController()
175 intentFilter.addAction(WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION); in WifiDisplayController()
176 context.registerReceiver(mWifiP2pReceiver, intentFilter, null, mHandler); in WifiDisplayController()
DNightDisplayService.java433 final IntentFilter intentFilter = new IntentFilter(Intent.ACTION_TIME_CHANGED); in onStart() local
434 intentFilter.addAction(Intent.ACTION_TIMEZONE_CHANGED); in onStart()
435 getContext().registerReceiver(mTimeChangedReceiver, intentFilter); in onStart()
/frameworks/base/docs/html/training/connect-devices-wirelessly/
Dwifi-direct.jd77 private final IntentFilter intentFilter = new IntentFilter();
85 intentFilter.addAction(WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION);
88 intentFilter.addAction(WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION);
91 intentFilter.addAction(WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION);
94 intentFilter.addAction(WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION);
169 registerReceiver(receiver, intentFilter);
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
DScoAudioTest.java103 IntentFilter intentFilter = in onCreate() local
105 intentFilter.addAction(AudioManager.ACTION_SCO_AUDIO_STATE_CHANGED); in onCreate()
106 intentFilter.addAction(AudioManager.ACTION_SCO_AUDIO_STATE_UPDATED); in onCreate()
107 registerReceiver(mReceiver, intentFilter); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/
DPipManager.java214 IntentFilter intentFilter = new IntentFilter(); in initialize() local
215 intentFilter.addAction(Intent.ACTION_MEDIA_RESOURCE_GRANTED); in initialize()
216 mContext.registerReceiver(mBroadcastReceiver, intentFilter); in initialize()
/frameworks/base/services/core/java/com/android/server/firewall/
DIntentFirewall.java441 FirewallIntentFilter intentFilter = new FirewallIntentFilter(this); in readChild() local
442 intentFilter.readFromXml(parser); in readChild()
443 mIntentFilters.add(intentFilter); in readChild()
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java547 IntentFilter intentFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION); in SyncManager() local
548 context.registerReceiver(mConnectivityIntentReceiver, intentFilter); in SyncManager()
551 intentFilter = new IntentFilter(Intent.ACTION_BOOT_COMPLETED); in SyncManager()
552 intentFilter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY); in SyncManager()
553 context.registerReceiver(mBootCompletedReceiver, intentFilter); in SyncManager()
556 intentFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW); in SyncManager()
557 intentFilter.addAction(Intent.ACTION_DEVICE_STORAGE_OK); in SyncManager()
558 context.registerReceiver(mStorageIntentReceiver, intentFilter); in SyncManager()
560 intentFilter = new IntentFilter(Intent.ACTION_SHUTDOWN); in SyncManager()
561 intentFilter.setPriority(100); in SyncManager()
[all …]
/frameworks/base/docs/html/work/
Dcosu.jd440 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MAIN);
441 intentFilter.addCategory(Intent.CATEGORY_HOME);
442 intentFilter.addCategory(Intent.CATEGORY_DEFAULT);
448 mAdminComponentName, intentFilter, new ComponentName(

12