Home
last modified time | relevance | path

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

12

/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileUtils.java75 IntentFilter intentFilter = new IntentFilter(); in getIntentFilter() local
76 intentFilter.addAction(ACTION_READ_FROM_URI); in getIntentFilter()
77 intentFilter.addAction(ACTION_WRITE_TO_URI); in getIntentFilter()
78 intentFilter.addAction(ACTION_TAKE_PERSISTABLE_URI_PERMISSION); in getIntentFilter()
79 intentFilter.addAction(ACTION_COPY_TO_CLIPBOARD); in getIntentFilter()
80 intentFilter.addAction(ACTION_NOTIFY_URI_CHANGE); in getIntentFilter()
81 intentFilter.addAction(ACTION_OBSERVE_URI_CHANGE); in getIntentFilter()
82 return intentFilter; in getIntentFilter()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTest.java64 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadManager() local
65 mContext.registerReceiver(receiver, intentFilter); in testDownloadManager()
93 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadManagerSupportsHttp() local
94 mContext.registerReceiver(receiver, intentFilter); in testDownloadManagerSupportsHttp()
126 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadManagerSupportsHttpWithExternalWebServer() local
127 mContext.registerReceiver(receiver, intentFilter); in testDownloadManagerSupportsHttpWithExternalWebServer()
160 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadManagerSupportsHttpsWithExternalWebServer() local
161 mContext.registerReceiver(receiver, intentFilter); in testDownloadManagerSupportsHttpsWithExternalWebServer()
184 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testMinimumDownload() local
185 mContext.registerReceiver(receiver, intentFilter); in testMinimumDownload()
[all …]
/cts/hostsidetests/devicepolicy/app/Assistant/src/com/android/cts/devicepolicy/assistapp/
DMyInteractionService.java41 IntentFilter intentFilter = new IntentFilter(); in onCreate() local
42 intentFilter.addAction(ACTION_CHECK_IS_READY); in onCreate()
43 intentFilter.addAction(ACTION_SHOW_SESSION); in onCreate()
44 registerReceiver(mReceiver, intentFilter); in onCreate()
/cts/tests/tests/wifi/src/android/net/wifi/rtt/cts/
DTestBase.java101 IntentFilter intentFilter = new IntentFilter(); in setUp() local
102 intentFilter.addAction(WifiRttManager.ACTION_WIFI_RTT_STATE_CHANGED); in setUp()
104 mContext.registerReceiver(receiver, intentFilter); in setUp()
199 IntentFilter intentFilter = new IntentFilter(); in scanAps() local
200 intentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in scanAps()
202 mContext.registerReceiver(receiver, intentFilter); in scanAps()
/cts/tests/tests/media/src/android/media/cts/
DDeviceUtils.java52 IntentFilter intentFilter = new IntentFilter(); in isHDMIConnected() local
53 intentFilter.addAction(AudioManager.ACTION_HDMI_AUDIO_PLUG); in isHDMIConnected()
54 Intent intent = context.registerReceiver(null, intentFilter); in isHDMIConnected()
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/
DDownloadManagerApi28Test.java54 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testSetDestinationUri_publicDir() local
55 mContext.registerReceiver(receiver, intentFilter); in testSetDestinationUri_publicDir()
80 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testSetDestinationUri_sdcardPath() local
81 mContext.registerReceiver(receiver, intentFilter); in testSetDestinationUri_sdcardPath()
108 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDestinationInExternalPublicDir() local
109 mContext.registerReceiver(receiver, intentFilter); in testDestinationInExternalPublicDir()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTestAppInterface.java53 final IntentFilter intentFilter = new IntentFilter(); in TestAppInterface() local
54 intentFilter.addAction(ACTION_JOB_STARTED); in TestAppInterface()
55 intentFilter.addAction(ACTION_JOB_STOPPED); in TestAppInterface()
56 mContext.registerReceiver(mReceiver, intentFilter); in TestAppInterface()
DJobThrottlingTest.java123 final IntentFilter intentFilter = new IntentFilter(); in setUp() local
124 intentFilter.addAction(ACTION_DEVICE_IDLE_MODE_CHANGED); in setUp()
125 intentFilter.addAction(ACTION_LIGHT_DEVICE_IDLE_MODE_CHANGED); in setUp()
126 mContext.registerReceiver(mReceiver, intentFilter); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DSensorTestScreenManipulator.java109 IntentFilter intentFilter = new IntentFilter(); in initialize() local
110 intentFilter.addAction(Intent.ACTION_POWER_DISCONNECTED); in initialize()
111 mActivity.registerReceiver(mBroadcastReceiver, intentFilter); in initialize()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DLockTaskHostDrivenTest.java316 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MAIN); in setDefaultHomeIntentReceiver() local
317 intentFilter.addCategory(Intent.CATEGORY_HOME); in setDefaultHomeIntentReceiver()
318 intentFilter.addCategory(Intent.CATEGORY_DEFAULT); in setDefaultHomeIntentReceiver()
320 ADMIN_RECEIVER_COMPONENT, intentFilter, in setDefaultHomeIntentReceiver()
/cts/tests/tests/wifi/src/android/net/wifi/aware/cts/
DSingleDeviceTest.java378 IntentFilter intentFilter = new IntentFilter(); in setUp() local
379 intentFilter.addAction(WifiAwareManager.ACTION_WIFI_AWARE_STATE_CHANGED); in setUp()
381 mContext.registerReceiver(receiver, intentFilter); in setUp()
435 IntentFilter intentFilter = new IntentFilter(); in testAvailabilityStatusChange() local
436 intentFilter.addAction(WifiAwareManager.ACTION_WIFI_AWARE_STATE_CHANGED); in testAvailabilityStatusChange()
440 mContext.registerReceiver(receiver1, intentFilter); in testAvailabilityStatusChange()
449 mContext.registerReceiver(receiver2, intentFilter); in testAvailabilityStatusChange()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DBasePackageInstallTest.java147 IntentFilter intentFilter = new IntentFilter(); in getCommitCallback() local
148 intentFilter.addAction(action); in getCommitCallback()
149 mContext.registerReceiver(mBroadcastReceiver, intentFilter); in getCommitCallback()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
DAlarmOperation.java81 IntentFilter intentFilter = new IntentFilter(ACTION); in execute() local
88 mContext.registerReceiver(receiver, intentFilter); in execute()
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DBackgroundRestrictedAlarmsTest.java90 final IntentFilter intentFilter = new IntentFilter(); in setUp() local
91 intentFilter.addAction(TestAlarmReceiver.ACTION_REPORT_ALARM_EXPIRED); in setUp()
92 mContext.registerReceiver(mAlarmStateReceiver, intentFilter); in setUp()
DAppStandbyTests.java171 final IntentFilter intentFilter = new IntentFilter(); in setUp() local
172 intentFilter.addAction(TestAlarmReceiver.ACTION_REPORT_ALARM_EXPIRED); in setUp()
173 mContext.registerReceiver(mAlarmStateReceiver, intentFilter); in setUp()
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DBasePackageInstallTest.java189 IntentFilter intentFilter = new IntentFilter(); in getCommitCallback() local
190 intentFilter.addAction(action); in getCommitCallback()
191 mContext.registerReceiver(mBroadcastReceiver, intentFilter); in getCommitCallback()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DConnectionAccessServerActivity.java79 IntentFilter intentFilter = new IntentFilter(ACTION_CONNECTION_ACCESS_REQUEST); in onCreate() local
80 registerReceiver(mConnectionAccessRequestReceiver, intentFilter); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DTestUtils.java57 IntentFilter intentFilter = new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in startScanAndWaitForResults() local
71 mContext.registerReceiver(broadcastReceiver, intentFilter); in startScanAndWaitForResults()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMockTvInputService.java224 IntentFilter intentFilter = new IntentFilter(); in onCreate() local
225 intentFilter.addAction(TvInputManager.ACTION_BLOCKED_RATINGS_CHANGED); in onCreate()
226 intentFilter.addAction(TvInputManager.ACTION_PARENTAL_CONTROLS_ENABLED_CHANGED); in onCreate()
227 registerReceiver(mBroadcastReceiver, intentFilter); in onCreate()
/cts/tests/DropBoxManager/src/android/dropboxmanager/cts/
DDropBoxTests.java118 final IntentFilter intentFilter = new IntentFilter(); in setUp() local
119 intentFilter.addAction(DropBoxManager.ACTION_DROPBOX_ENTRY_ADDED); in setUp()
120 mContext.registerReceiver(mDropBoxEntryAddedReceiver, intentFilter); in setUp()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DExternalStorageTest.java122 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadManagerPackage() local
123 mContext.registerReceiver(receiver, intentFilter); in testDownloadManagerPackage()
/cts/tests/tests/permission2/src/android/permission2/cts/
DRestrictedPermissionsTest.java127 final IntentFilter intentFilter = new IntentFilter(); in setUpOnce() local
128 intentFilter.addAction("installRestrictedPermissionUserApp"); in setUpOnce()
129 intentFilter.addAction("uninstallApp"); in setUpOnce()
130 getContext().registerReceiver(sCommandReceiver, intentFilter); in setUpOnce()
731 final IntentFilter intentFilter = new IntentFilter(action); in installRestrictedPermissionUserApp() local
732 getContext().registerReceiver(installReceiver, intentFilter); in installRestrictedPermissionUserApp()
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DAtomTests.java423 IntentFilter intentFilter = new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in testWifiScan() local
430 BroadcastReceiver receiver = registerReceiver(context, onReceiveLatch, intentFilter); in testWifiScan()
492 Context ctx, CountDownLatch onReceiveLatch, IntentFilter intentFilter) { in registerReceiver() argument
505 ctx.registerReceiver(receiver, intentFilter, null, handler); in registerReceiver()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/testcase/
DNetworkSuggestionTestCase.java112 IntentFilter intentFilter = in executeTest() local
128 mContext.registerReceiver(mBroadcastReceiver, intentFilter); in executeTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DMultiNetworkConnectivityTestActivity.java362 IntentFilter intentFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION); in setupBroadcastReceivers() local
363 intentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in setupBroadcastReceivers()
364 intentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); in setupBroadcastReceivers()
365 intentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); in setupBroadcastReceivers()
366 registerReceiver(mMultiNetConnectivityReceiver, intentFilter); in setupBroadcastReceivers()

12