Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java105 IntentFilter intentFilter = new IntentFilter(); in startMonitoring() local
106 intentFilter.addAction(Intent.ACTION_USER_ADDED); in startMonitoring()
107 intentFilter.addAction(Intent.ACTION_USER_REMOVED); in startMonitoring()
108 mContext.registerReceiverAsUser(mIntentReceiver, UserHandle.ALL, intentFilter, null, null); in startMonitoring()
110 intentFilter = new IntentFilter(); in startMonitoring()
111 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in startMonitoring()
112 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in startMonitoring()
113 intentFilter.addDataScheme("package"); in startMonitoring()
114 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.java151 IntentFilter intentFilter = new IntentFilter(); in start() local
152 intentFilter.addAction(Intent.ACTION_USER_SWITCHED); in start()
153 intentFilter.addAction(Intent.ACTION_USER_UNLOCKED); in start()
166 }, UserHandle.ALL, intentFilter, null, mHandler); in start()
DLocationManagerService.java308 IntentFilter intentFilter = new IntentFilter(); in systemRunning() local
309 intentFilter.addAction(Intent.ACTION_USER_SWITCHED); in systemRunning()
310 intentFilter.addAction(Intent.ACTION_MANAGED_PROFILE_ADDED); in systemRunning()
311 intentFilter.addAction(Intent.ACTION_MANAGED_PROFILE_REMOVED); in systemRunning()
312 intentFilter.addAction(Intent.ACTION_SHUTDOWN); in systemRunning()
327 }, UserHandle.ALL, intentFilter, null, mLocationHandler); in systemRunning()
/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/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.java2133 IntentFilter intentFilter;
2135 intentFilter = new IntentFilter();
2136 intentFilter.addAction(Intents.DATA_SMS_RECEIVED_ACTION);
2137 intentFilter.addDataScheme("sms");
2138 intentFilter.addDataAuthority("localhost", "7275");
2139 mContext.registerReceiver(mBroadcastReceiver, intentFilter, null, this);
2141 intentFilter = new IntentFilter();
2142 intentFilter.addAction(Intents.WAP_PUSH_RECEIVED_ACTION);
2144 intentFilter.addDataType("application/vnd.omaloc-supl-init");
2148 mContext.registerReceiver(mBroadcastReceiver, intentFilter, null, this);
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java1405 IntentFilter intentFilter = new IntentFilter(); in registerForBroadcasts() local
1406 intentFilter.addAction(Intent.ACTION_SCREEN_ON); in registerForBroadcasts()
1407 intentFilter.addAction(Intent.ACTION_USER_PRESENT); in registerForBroadcasts()
1408 intentFilter.addAction(Intent.ACTION_SCREEN_OFF); in registerForBroadcasts()
1409 intentFilter.addAction(Intent.ACTION_BATTERY_CHANGED); in registerForBroadcasts()
1410 intentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in registerForBroadcasts()
1411 intentFilter.addAction(BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED); in registerForBroadcasts()
1412 intentFilter.addAction(TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED); in registerForBroadcasts()
1413 intentFilter.addAction(PowerManager.ACTION_DEVICE_IDLE_MODE_CHANGED); in registerForBroadcasts()
1418 intentFilter.addAction(TelephonyIntents.ACTION_EMERGENCY_CALL_STATE_CHANGED); in registerForBroadcasts()
[all …]
/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.java152 IntentFilter intentFilter = new IntentFilter(); in RegisteredServicesCache() local
153 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in RegisteredServicesCache()
154 intentFilter.addAction(Intent.ACTION_PACKAGE_CHANGED); in RegisteredServicesCache()
155 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in RegisteredServicesCache()
156 intentFilter.addDataScheme("package"); in RegisteredServicesCache()
157 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/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()
/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/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/opt/telephony/src/java/com/android/internal/telephony/
DSmsApplication.java730 IntentFilter intentFilter = new IntentFilter(); in replacePreferredActivity() local
731 intentFilter.addAction(Intent.ACTION_SENDTO); in replacePreferredActivity()
732 intentFilter.addCategory(Intent.CATEGORY_DEFAULT); in replacePreferredActivity()
733 intentFilter.addDataScheme(scheme); in replacePreferredActivity()
734 packageManager.replacePreferredActivityAsUser(intentFilter, in replacePreferredActivity()
DSubscriptionInfoUpdater.java126 IntentFilter intentFilter = new IntentFilter(TelephonyIntents.ACTION_SIM_STATE_CHANGED); in SubscriptionInfoUpdater() local
127 intentFilter.addAction(IccCardProxy.ACTION_INTERNAL_SIM_STATE_CHANGED); in SubscriptionInfoUpdater()
128 intentFilter.addAction(Intent.ACTION_USER_UNLOCKED); in SubscriptionInfoUpdater()
129 mContext.registerReceiver(sReceiver, intentFilter); in SubscriptionInfoUpdater()
/frameworks/base/docs/html/training/tv/tif/
Dtvinput.jd132 IntentFilter intentFilter = new IntentFilter();
133 intentFilter.addAction(TvInputManager
135 intentFilter.addAction(TvInputManager
137 registerReceiver(mBroadcastReceiver, 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/services/core/java/com/android/server/content/
DSyncManager.java533 IntentFilter intentFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION); in SyncManager() local
534 context.registerReceiver(mConnectivityIntentReceiver, intentFilter); in SyncManager()
537 intentFilter = new IntentFilter(Intent.ACTION_BOOT_COMPLETED); in SyncManager()
538 intentFilter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY); in SyncManager()
539 context.registerReceiver(mBootCompletedReceiver, intentFilter); in SyncManager()
542 intentFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW); in SyncManager()
543 intentFilter.addAction(Intent.ACTION_DEVICE_STORAGE_OK); in SyncManager()
544 context.registerReceiver(mStorageIntentReceiver, intentFilter); in SyncManager()
546 intentFilter = new IntentFilter(Intent.ACTION_SHUTDOWN); in SyncManager()
547 intentFilter.setPriority(100); in SyncManager()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/
DPipManager.java216 IntentFilter intentFilter = new IntentFilter(); in initialize() local
217 intentFilter.addAction(Intent.ACTION_MEDIA_RESOURCE_GRANTED); in initialize()
218 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/vr/
DVrManagerService.java449 IntentFilter intentFilter = new IntentFilter(); in setEnabledStatusOfVrComponents() local
450 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); in setEnabledStatusOfVrComponents()
451 intentFilter.addDataScheme("package"); in setEnabledStatusOfVrComponents()
467 }, intentFilter); in setEnabledStatusOfVrComponents()
/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(
/frameworks/base/core/java/android/accounts/
DAccountManager.java2602 IntentFilter intentFilter = new IntentFilter();
2603 intentFilter.addAction(LOGIN_ACCOUNTS_CHANGED_ACTION);
2605 intentFilter.addAction(Intent.ACTION_DEVICE_STORAGE_OK);
2606 mContext.registerReceiver(mAccountsChangedBroadcastReceiver, intentFilter);

12