/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | PersistentPreferredActivitiesTest.java | 26 import static com.android.queryable.queries.IntentFilterQuery.intentFilter; 86 intentFilter() 95 intentFilter().where().actions().contains(TEST_ACTION)) 100 intentFilter().where().actions().contains(TEST_ACTION)) 110 IntentFilter intentFilter = new IntentFilter(TEST_ACTION); in addPersistentPreferredActivity_notPermitted_throwsException() local 111 intentFilter.addCategory(Intent.CATEGORY_DEFAULT); in addPersistentPreferredActivity_notPermitted_throwsException() 116 intentFilter, in addPersistentPreferredActivity_notPermitted_throwsException() 129 IntentFilter intentFilter = new IntentFilter(TEST_ACTION); in clearPackagePersistentPreferredActivities_notPermitted_throwsException() local 130 intentFilter.addCategory(Intent.CATEGORY_DEFAULT); in clearPackagePersistentPreferredActivities_notPermitted_throwsException() 161 IntentFilter intentFilter = new IntentFilter(TEST_ACTION); in sendIntent_hasPreferredReceiver_launchesPreferredActivity() local [all …]
|
D | PersistentIntentResolvingTest.java | 20 import static com.android.queryable.queries.IntentFilterQuery.intentFilter; 58 intentFilter() 67 intentFilter().where().actions().contains(TEST_ACTION)) 72 intentFilter().where().actions().contains(TEST_ACTION)) 98 IntentFilter intentFilter = new IntentFilter(TEST_ACTION); in sendIntent_hasPreferredReceiver_launchesPreferredActivity() local 99 intentFilter.addCategory(Intent.CATEGORY_DEFAULT); in sendIntent_hasPreferredReceiver_launchesPreferredActivity() 103 intentFilter, in sendIntent_hasPreferredReceiver_launchesPreferredActivity() local 138 IntentFilter intentFilter = new IntentFilter(TEST_ACTION); in addPersistentPreferredActivity_metricLogged() local 139 intentFilter.addCategory(Intent.CATEGORY_DEFAULT); in addPersistentPreferredActivity_metricLogged() 143 intentFilter, in addPersistentPreferredActivity_metricLogged() local [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BlockingBroadcastReceiver.java | 78 public static BlockingBroadcastReceiver create(Context context, IntentFilter intentFilter) { in create() argument 79 return create(context, intentFilter, /* checker= */ null); in create() 87 public static BlockingBroadcastReceiver create(Context context, IntentFilter intentFilter, in create() argument 89 return create(context, Set.of(intentFilter), checker); in create() 113 public BlockingBroadcastReceiver(Context context, IntentFilter intentFilter) { in BlockingBroadcastReceiver() argument 114 this(context, intentFilter, /* checker= */ null); in BlockingBroadcastReceiver() 117 public BlockingBroadcastReceiver(Context context, IntentFilter intentFilter, in BlockingBroadcastReceiver() argument 119 this(context, Set.of(intentFilter), checker); in BlockingBroadcastReceiver() 154 for (IntentFilter intentFilter : mIntentFilters) { in register() 155 mContext.registerReceiver(this, intentFilter, in register() [all …]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | BlockingBroadcastReceiver.java | 83 public static BlockingBroadcastReceiver create(Context context, IntentFilter intentFilter) { in create() argument 84 return create(context, intentFilter, /* checker= */ null); in create() 92 public static BlockingBroadcastReceiver create(Context context, IntentFilter intentFilter, in create() argument 94 return create(context, Set.of(intentFilter), checker); in create() 118 public BlockingBroadcastReceiver(Context context, IntentFilter intentFilter) { in BlockingBroadcastReceiver() argument 119 this(context, intentFilter, /* checker= */ null); in BlockingBroadcastReceiver() 122 public BlockingBroadcastReceiver(Context context, IntentFilter intentFilter, in BlockingBroadcastReceiver() argument 124 this(context, Set.of(intentFilter), checker); in BlockingBroadcastReceiver() 159 for (IntentFilter intentFilter : mIntentFilters) { in register() 160 mContext.registerReceiver(this, intentFilter, in register() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CrossProfileUtils.java | 82 IntentFilter intentFilter = new IntentFilter(); in getIntentFilter() local 83 intentFilter.addAction(ACTION_READ_FROM_URI); in getIntentFilter() 84 intentFilter.addAction(ACTION_WRITE_TO_URI); in getIntentFilter() 85 intentFilter.addAction(ACTION_TAKE_PERSISTABLE_URI_PERMISSION); in getIntentFilter() 86 intentFilter.addAction(ACTION_COPY_TO_CLIPBOARD); in getIntentFilter() 87 intentFilter.addAction(ACTION_NOTIFY_URI_CHANGE); in getIntentFilter() 88 intentFilter.addAction(ACTION_OBSERVE_URI_CHANGE); in getIntentFilter() 89 return intentFilter; in getIntentFilter()
|
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/ |
D | TestAppController.java | 41 public void registerReceiver(Context context, long receiverId, IntentFilter intentFilter) { in registerReceiver() argument 42 registerReceiver(context, receiverId, intentFilter, 0); in registerReceiver() 49 public void registerReceiver(Context context, long receiverId, IntentFilter intentFilter, in registerReceiver() argument 54 context.registerReceiver(broadcastReceiver, intentFilter, flags); in registerReceiver()
|
/cts/tests/tests/nfc/src/android/nfc/cts/ |
D | NfcUtils.java | 59 IntentFilter intentFilter = new IntentFilter(); in enableNfc() local 60 intentFilter.addAction(NfcAdapter.ACTION_ADAPTER_STATE_CHANGED); in enableNfc() 61 context.registerReceiver(nfcChangeListener, intentFilter, null, in enableNfc() 102 IntentFilter intentFilter = new IntentFilter(); in disableNfc() local 103 intentFilter.addAction(NfcAdapter.ACTION_ADAPTER_STATE_CHANGED); in disableNfc() 104 context.registerReceiver(nfcChangeListener, intentFilter, null, in disableNfc()
|
/cts/hostsidetests/devicepolicy/app/Assistant/src/com/android/cts/devicepolicy/assistapp/ |
D | MyInteractionService.java | 41 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, Context.RECEIVER_EXPORTED); in onCreate()
|
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/ |
D | TestAppInstance.java | 186 public void registerReceiver(IntentFilter intentFilter) { in registerReceiver() argument 187 registerReceiver(intentFilter, 0); in registerReceiver() 193 public void registerReceiver(IntentFilter intentFilter, int flags) { in registerReceiver() argument 194 if (mRegisteredBroadcastReceivers.containsKey(intentFilter)) { in registerReceiver() 199 registerReceiver(intentFilter, receiverId, flags); in registerReceiver() 203 private void registerReceiver(IntentFilter intentFilter, long receiverId) { in registerReceiver() argument 204 registerReceiver(intentFilter, receiverId, 0); in registerReceiver() 207 private void registerReceiver(IntentFilter intentFilter, long receiverId, int flags) { in registerReceiver() argument 209 mTestAppController.other().registerReceiver(receiverId, intentFilter, flags); in registerReceiver() 210 mRegisteredBroadcastReceivers.put(intentFilter, receiverId); in registerReceiver() [all …]
|
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
D | ActivityInterceptionTest.java | 99 IntentFilter intentFilter = new IntentFilter(ACTION_INTERCEPTED_RECEIVER); in interceptorRegistered_intentIsIntercepted() local 101 intentFilter, mContext.getMainExecutor(), mInterceptor); in interceptorRegistered_intentIsIntercepted() 116 IntentFilter intentFilter = new IntentFilter("ACTION_OTHER"); in noMatchingInterceptor_activityShouldLaunch() local 118 intentFilter, mContext.getMainExecutor(), mInterceptor); in noMatchingInterceptor_activityShouldLaunch() 128 IntentFilter intentFilter = new IntentFilter(ACTION_INTERCEPTED_RECEIVER); in interceptorRegistered_withExplicitAction_intentWithoutActionShouldLaunch() local 130 intentFilter, mContext.getMainExecutor(), mInterceptor); in interceptorRegistered_withExplicitAction_intentWithoutActionShouldLaunch() 143 IntentFilter intentFilter = new IntentFilter(ACTION_INTERCEPTED_RECEIVER); in differentInterceptorsRegistered_oneIntercepted() local 145 intentFilter, mContext.getMainExecutor(), mInterceptor); in differentInterceptorsRegistered_oneIntercepted()
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | DeviceUtils.java | 48 IntentFilter intentFilter = new IntentFilter(); in isHDMIConnected() local 49 intentFilter.addAction(AudioManager.ACTION_HDMI_AUDIO_PLUG); in isHDMIConnected() 50 Intent intent = context.registerReceiver(null, intentFilter); in isHDMIConnected()
|
/cts/tests/tests/security/src/android/security/cts/CVE_2021_0327/workprofilesetup/ |
D | ProvisionedActivity.java | 29 …IntentFilter intentFilter = new IntentFilter("android.security.cts.CVE_2021_0327.OTHER_USER_ACTIVI… in onCreate() local 31 intentFilter.addCategory(Intent.CATEGORY_DEFAULT); in onCreate() 35 intentFilter, in onCreate()
|
/cts/tests/app/src/android/app/cts/ |
D | DownloadManagerTest.java | 81 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadManager() local 82 mContext.registerReceiver(receiver, intentFilter, Context.RECEIVER_EXPORTED); in testDownloadManager() 110 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadManagerSupportsHttp() local 111 mContext.registerReceiver(receiver, intentFilter, Context.RECEIVER_EXPORTED); in testDownloadManagerSupportsHttp() 143 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadManagerSupportsHttpWithExternalWebServer() local 144 mContext.registerReceiver(receiver, intentFilter, Context.RECEIVER_EXPORTED); in testDownloadManagerSupportsHttpWithExternalWebServer() 177 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadManagerSupportsHttpsWithExternalWebServer() local 178 mContext.registerReceiver(receiver, intentFilter, Context.RECEIVER_EXPORTED); in testDownloadManagerSupportsHttpsWithExternalWebServer() 201 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testMinimumDownload() local 202 mContext.registerReceiver(receiver, intentFilter, Context.RECEIVER_EXPORTED); in testMinimumDownload() [all …]
|
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/ |
D | DownloadManagerApi28Test.java | 59 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testSetDestinationUri_publicDir() local 60 mContext.registerReceiver(receiver, intentFilter); in testSetDestinationUri_publicDir() 85 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testSetDestinationUri_sdcardPath() local 86 mContext.registerReceiver(receiver, intentFilter); in testSetDestinationUri_sdcardPath() 113 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testSetDestinationUri_privateAppDir() local 114 mContext.registerReceiver(receiver, intentFilter); in testSetDestinationUri_privateAppDir() 135 IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDestinationInExternalPublicDir() local 136 mContext.registerReceiver(receiver, intentFilter); in testDestinationInExternalPublicDir()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/activities/ |
D | ActivitiesTest.kt | 24 import com.android.queryable.queries.IntentFilterQuery.intentFilter 40 intentFilter().where().actions().contains(intent.action) in activityNameOfIntent_returnsActivityNameOfIntent() 58 intentFilter().where().actions().contains(intent.action) in getActivityNameOfIntent_isAlias_returnsTargetActivity()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | ScanResultTest.java | 142 IntentFilter intentFilter = new IntentFilter(); in setUpClass() local 143 intentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in setUpClass() 144 intentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in setUpClass() 145 intentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); in setUpClass() 146 intentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); in setUpClass() 147 intentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in setUpClass() 148 intentFilter.addAction(WifiManager.RSSI_CHANGED_ACTION); in setUpClass() 149 intentFilter.addAction(WifiManager.NETWORK_IDS_CHANGED_ACTION); in setUpClass() 150 intentFilter.addAction(WifiManager.ACTION_PICK_WIFI_NETWORK); in setUpClass() 153 sContext.registerReceiver(RECEIVER, intentFilter, RECEIVER_EXPORTED); in setUpClass() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | LockTaskHostDrivenTest.java | 167 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MAIN); in setDefaultHomeIntentReceiver() local 168 intentFilter.addCategory(Intent.CATEGORY_HOME); in setDefaultHomeIntentReceiver() 169 intentFilter.addCategory(Intent.CATEGORY_DEFAULT); in setDefaultHomeIntentReceiver() 171 ADMIN_RECEIVER_COMPONENT, intentFilter, in setDefaultHomeIntentReceiver()
|
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/ |
D | DeviceStateInternalTest.java | 29 import static com.android.queryable.queries.IntentFilterQuery.intentFilter; 111 intentFilter().where().actions().contains(INTENT_ACTION) in requirePackageRespondsToIntentAnnotation_packageRespondsToIntent() 134 … intentFilter().where().actions().contains(INTENT_ACTION))) in requirePackageRespondsToIntentAnnotation_workProfile_packageRespondsToIntent() 176 intentFilter().where().actions().contains(INTENT_ACTION) in requireNoPackageRespondsToIntentAnnotation_packageRespondsToIntent() 214 intentFilter().where().actions().contains(INTENT_ACTION) in ensureNoPackageRespondsToIntentAnnotation()
|
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/ |
D | ServiceQueryHelperTest.java | 20 import static com.android.queryable.queries.IntentFilterQuery.intentFilter; 107 intentFilter().where().actions().contains("action") in matches_intentFilters_matches_returnsTrue() 118 intentFilter().where().actions().doesNotContain("action") in matches_intentFilters_doesNotMatch_returnsFalse() 130 intentFilter().where().actions().doesNotContain("action") in parcel_parcelsCorrectly()
|
D | ActivityQueryHelperTest.java | 21 import static com.android.queryable.queries.IntentFilterQuery.intentFilter; 126 intentFilter().where().actions().contains("action") in matches_intentFilters_matches_returnsTrue() 137 intentFilter().where().actions().contains("action") in matches_intentFilters_doesNotMatch_returnsFalse() 151 intentFilter().where().actions().contains("action") in parcel_parcelsCorrectly()
|
/cts/tests/tests/wifi/src/android/net/wifi/mockwifi/cts/ |
D | MockWifiTest.java | 206 IntentFilter intentFilter = new IntentFilter(); in setUpClass() local 207 intentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in setUpClass() 208 intentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in setUpClass() 209 intentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); in setUpClass() 210 intentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); in setUpClass() 211 intentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in setUpClass() 212 intentFilter.addAction(WifiManager.RSSI_CHANGED_ACTION); in setUpClass() 213 intentFilter.addAction(WifiManager.NETWORK_IDS_CHANGED_ACTION); in setUpClass() 214 intentFilter.addAction(WifiManager.ACTION_PICK_WIFI_NETWORK); in setUpClass() 215 intentFilter.setPriority(999); in setUpClass() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageInstallerArchiveMultiUserTest.java | 148 final IntentFilter intentFilter = new IntentFilter(); in archiveApp_broadcast_multiuser() local 149 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); in archiveApp_broadcast_multiuser() 150 intentFilter.addAction(Intent.ACTION_PACKAGE_FULLY_REMOVED); in archiveApp_broadcast_multiuser() 151 intentFilter.addDataScheme("package"); in archiveApp_broadcast_multiuser() 160 intentFilter, /* broadcastPermission= */ null, backgroundHandler, in archiveApp_broadcast_multiuser() 163 intentFilter, /* broadcastPermission= */ null, backgroundHandler, in archiveApp_broadcast_multiuser() 169 intentFilter, /* broadcastPermission= */ null, backgroundHandler, in archiveApp_broadcast_multiuser() 172 intentFilter, /* broadcastPermission= */ null, backgroundHandler, in archiveApp_broadcast_multiuser()
|
D | PackageManagerShellCommandMultiUserTest.kt | 388 val intentFilter = IntentFilter() in testPackageRemovedBroadcastsMultiUser() constant 389 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED) in testPackageRemovedBroadcastsMultiUser() 390 intentFilter.addAction(Intent.ACTION_PACKAGE_FULLY_REMOVED) in testPackageRemovedBroadcastsMultiUser() 391 intentFilter.addDataScheme("package") in testPackageRemovedBroadcastsMultiUser() 404 intentFilter, in testPackageRemovedBroadcastsMultiUser() 411 intentFilter, in testPackageRemovedBroadcastsMultiUser() 418 intentFilter, in testPackageRemovedBroadcastsMultiUser() 425 intentFilter, in testPackageRemovedBroadcastsMultiUser() 1056 val intentFilter = IntentFilter() in testUpdateMimeGroup_changed_onlyInstalledUserReceivedBroadcast() constant 1057 intentFilter.addAction(Intent.ACTION_PACKAGE_CHANGED) in testUpdateMimeGroup_changed_onlyInstalledUserReceivedBroadcast() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20115/src/android/security/cts/CVE_2022_20115/ |
D | PocActivity.java | 94 IntentFilter intentFilter = new IntentFilter(); in onCreate() local 95 intentFilter.addAction(Intent.ACTION_SERVICE_STATE); in onCreate() 97 pocActivity.registerReceiver(pocActivity.broadcastReceiver, intentFilter); in onCreate()
|
/cts/hostsidetests/packagemanager/preferredactivity/apps/testapp/src/com/android/cts/packagemanager/preferredactivity/app/ |
D | PreferredActivityDeviceTests.java | 50 final IntentFilter intentFilter = new IntentFilter(ACTIVITY_ACTION_NAME); in testAddOnePreferredActivity() local 53 mPackageManager.addPreferredActivity(intentFilter, IntentFilter.MATCH_CATEGORY_HOST, in testAddOnePreferredActivity()
|