Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileUtils.java71 IntentFilter intentFilter = new IntentFilter(); in getIntentFilter() local
72 intentFilter.addAction(ACTION_READ_FROM_URI); in getIntentFilter()
73 intentFilter.addAction(ACTION_WRITE_TO_URI); in getIntentFilter()
74 intentFilter.addAction(ACTION_TAKE_PERSISTABLE_URI_PERMISSION); in getIntentFilter()
75 intentFilter.addAction(ACTION_COPY_TO_CLIPBOARD); in getIntentFilter()
76 return intentFilter; in getIntentFilter()
/cts/tests/tests/app/src/android/app/cts/
DDownloadManagerTest.java71 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadManager() local
72 mContext.registerReceiver(receiver, intentFilter); in testDownloadManager()
98 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadManagerSupportsHttp() local
99 mContext.registerReceiver(receiver, intentFilter); in testDownloadManagerSupportsHttp()
124 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadManagerSupportsHttpWithExternalWebServer() local
125 mContext.registerReceiver(receiver, intentFilter); in testDownloadManagerSupportsHttpWithExternalWebServer()
152 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadManagerSupportsHttpsWithExternalWebServer() local
153 mContext.registerReceiver(receiver, intentFilter); in testDownloadManagerSupportsHttpsWithExternalWebServer()
174 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testMinimumDownload() local
175 mContext.registerReceiver(receiver, intentFilter); in testMinimumDownload()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/jobscheduler/
DIdleConstraintTestActivity.java91 IntentFilter intentFilter = new IntentFilter(); in onCreate() local
92 intentFilter.addAction(Intent.ACTION_SCREEN_ON); in onCreate()
93 intentFilter.addAction(ACTION_EXPEDITE_IDLE_MODE); in onCreate()
95 registerReceiver(mIdleChangedReceiver, intentFilter); in onCreate()
DChargingConstraintTestActivity.java45 IntentFilter intentFilter = new IntentFilter(); in onCreate() local
46 intentFilter.addAction(Intent.ACTION_POWER_CONNECTED); in onCreate()
47 intentFilter.addAction(Intent.ACTION_POWER_DISCONNECTED); in onCreate()
49 registerReceiver(mChargingChangedReceiver, intentFilter); in onCreate()
DConnectivityConstraintTestActivity.java50 IntentFilter intentFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION); in onCreate() local
51 registerReceiver(mConnectivityChangedReceiver, intentFilter); in onCreate()
/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/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/
DAlarmOperation.java81 IntentFilter intentFilter = new IntentFilter(ACTION); in execute() local
88 mContext.registerReceiver(receiver, intentFilter); in execute()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DBasePackageInstallTest.java176 IntentFilter intentFilter = new IntentFilter(); in getCommitCallback() local
177 intentFilter.addAction(action); in getCommitCallback()
178 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()
DMessageTestActivity.java133 IntentFilter intentFilter = new IntentFilter(ACTION_PAIRING_REQUEST); in onCreate() local
134 registerReceiver(mPairingActionReceiver, intentFilter); in onCreate()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DExternalStorageTest.java123 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadManagerPackage() local
124 mContext.registerReceiver(receiver, intentFilter); in testDownloadManagerPackage()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMockTvInputService.java207 IntentFilter intentFilter = new IntentFilter(); in onCreate() local
208 intentFilter.addAction(TvInputManager.ACTION_BLOCKED_RATINGS_CHANGED); in onCreate()
209 intentFilter.addAction(TvInputManager.ACTION_PARENTAL_CONTROLS_ENABLED_CHANGED); in onCreate()
210 registerReceiver(mBroadcastReceiver, intentFilter); in onCreate()
/cts/tests/tests/content/src/android/content/cts/
DIntentFilterTest.java593 final IntentFilter intentFilter = new IntentFilter(); in testWriteToXml() local
594 intentFilter.readFromXml(parser); in testWriteToXml()
595 assertEquals(ACTION, intentFilter.getAction(0)); in testWriteToXml()
596 assertEquals(CATEGORY, intentFilter.getCategory(0)); in testWriteToXml()
597 assertEquals(DATA_TYPE, intentFilter.getDataType(0)); in testWriteToXml()
598 assertEquals(DATA_SCHEME, intentFilter.getDataScheme(0)); in testWriteToXml()
599 assertEquals(DATA_PATH, intentFilter.getDataPath(0).getPath()); in testWriteToXml()
600 assertEquals(HOST, intentFilter.getDataAuthority(0).getHost()); in testWriteToXml()
601 assertEquals(PORT, intentFilter.getDataAuthority(0).getPort()); in testWriteToXml()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java325 IntentFilter intentFilter = new IntentFilter(ACTIVITY_ACTION_NAME); in testAddPreferredActivity() local
328 mPackageManager.addPreferredActivity(intentFilter, IntentFilter.MATCH_CATEGORY_HOST, in testAddPreferredActivity()