Home
last modified time | relevance | path

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

/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21129/src/android/security/cts/CVE_2023_21129/
DDeviceTest.java51 Semaphore broadcastReceived = new Semaphore(0); in testBubbleNotification() local
65 broadcastReceived.release(); in testBubbleNotification()
92 broadcastReceived.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)); in testBubbleNotification()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21088/src/android/security/cts/CVE_2023_21088/
DDeviceTest.java48 CompletableFuture<String> broadcastReceived = new CompletableFuture<String>(); in testCVE_2023_21088() local
60 broadcastReceived.complete(pocActivityStatus); in testCVE_2023_21088()
75 String pocActivityStatus = broadcastReceived.get(timeoutMs, TimeUnit.MILLISECONDS); in testCVE_2023_21088()
/cts/tests/tests/security/src/android/security/cts/CVE_2023_20916/
DCVE_2023_20916.java77 final Semaphore broadcastReceived = new Semaphore(0); in testPocCVE_2023_20916() local
84 broadcastReceived.release(); in testPocCVE_2023_20916()
102 broadcastReceived.tryAcquire(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPocCVE_2023_20916()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21272/test-app/src/android/security/cts/CVE_2023_21272_test/
DDeviceTest.java79 Semaphore broadcastReceived = new Semaphore(0); in testCVE_2023_21272() local
90 broadcastReceived.release(); in testCVE_2023_21272()
118 broadcastReceived.tryAcquire(5_000 /* waitMs */, TimeUnit.MILLISECONDS)); in testCVE_2023_21272()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21251/src/android/security/cts/CVE_2023_21251/
DDeviceTest.java56 Semaphore broadcastReceived = new Semaphore(0); in testPocCVE_2023_21251() local
62 broadcastReceived.release(); in testPocCVE_2023_21251()
79 broadcastReceived.tryAcquire(timeout, TimeUnit.MILLISECONDS)); in testPocCVE_2023_21251()
/cts/tests/tests/security/src/android/security/cts/CVE_2024_23713/
DCVE_2024_23713.java74 CompletableFuture<String> broadcastReceived = new CompletableFuture<>(); in testPocCVE_2024_23713() local
80 broadcastReceived.complete( in testPocCVE_2024_23713()
112 String exception = broadcastReceived.get(10_000L /* timeout */, TimeUnit.MILLISECONDS); in testPocCVE_2024_23713()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/broadcastreceivers/
DBroadcastReceiverEvents.kt33 fun broadcastReceived(): BroadcastReceivedEventQuery method
/cts/tests/tests/security/src/android/security/cts/CVE_2024_0024/
DCVE_2024_0024.java90 CompletableFuture<String> broadcastReceived = new CompletableFuture<String>(); in grantSmsPermission() local
96 broadcastReceived.complete( in grantSmsPermission()
109 String exception = broadcastReceived.get(10_000L /* timeout */, TimeUnit.MILLISECONDS); in grantSmsPermission()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20917/src/android/security/cts/CVE_2023_20917/
DDeviceTest.java64 Semaphore broadcastReceived = new Semaphore(0); in testCVE_2023_20917() local
75 broadcastReceived.release(); in testCVE_2023_20917()
149 broadcastReceived.tryAcquire(waitMS, TimeUnit.MILLISECONDS)); in testCVE_2023_20917()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21144/src/android/security/cts/CVE_2023_21144/
DDeviceTest.java103 Semaphore broadcastReceived = new Semaphore(0); in testPocCVE_2023_21144() local
109 broadcastReceived.release(); in testPocCVE_2023_21144()
124 broadcastReceived.tryAcquire(timeout, TimeUnit.MILLISECONDS)); in testPocCVE_2023_21144()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-0053/src/android/security/cts/CVE_2024_0053/
DDeviceTest.java134 CompletableFuture<String> broadcastReceived = new CompletableFuture<>(); in testPocCVE_2024_0053() local
140 broadcastReceived.complete(intent.getStringExtra("exception")); in testPocCVE_2024_0053()
174 String exception = broadcastReceived.get(10_000 /* timeout */, TimeUnit.MILLISECONDS); in testPocCVE_2024_0053()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/utils/
DPolicySetResultUtils.java40 final Intent receivedIntent = deviceState.dpc().events().broadcastReceived() in assertPolicySetResultReceived()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DDevicePolicyManagementRoleHolderTest.java144 EventLogsSubject.assertThat(sDeviceState.dpmRoleHolder().events().broadcastReceived() in profileRemoved_roleHolderReceivesBroadcast()
161 EventLogsSubject.assertThat(sDeviceState.dpmRoleHolder().events().broadcastReceived() in profileEntersQuietMode_roleHolderReceivesBroadcast()
181 EventLogsSubject.assertThat(sDeviceState.dpmRoleHolder().events().broadcastReceived() in profileStarted_roleHolderReceivesBroadcast()
DLostModeLocationTest.java118 final Intent receivedIntent = sDeviceState.dpc().events().broadcastReceived() in sendLostModeLocationUpdate_returnTrueAndSendLocationUpdate()
143 final Intent receivedIntent = sDeviceState.dpc().events().broadcastReceived() in sendLostModeLocationUpdate_sendMostRecentLocation()
DCheckFinancedTest.java156 assertThat(sDeviceState.dpc().events().broadcastReceived() in deviceFinancingStateChanged_roleAdded_ReceivesBroadcast()
DApplicationRestrictionsTest.java306 assertThat(testApp.events().broadcastReceived().whereIntent().action().isEqualTo( in setApplicationRestrictions_restrictionsChangedBroadcastIsReceived()
480 assertThat(testApp.events().broadcastReceived().whereIntent().action().isEqualTo( in roleHolderSetApplicationRestrictionsOnParent_successWithBroadcastSent()
DDelegationScopesTest.java473 EventLogsSubject.assertThat(testApp.events().broadcastReceived() in setDelegatedScopes_delegatedPackageReceivesScopesFromBroadcast()
DCrossProfileAppsTest.java1043 assertThat(parentTestApp.events().broadcastReceived() in setCrossProfilePackages_packageRemoved_packageReceivesBroadcast()
1046 assertThat(workTestApp.events().broadcastReceived() in setCrossProfilePackages_packageRemoved_packageReceivesBroadcast()
DProvisioningTest.kt1347 val event = personalInstance.events().broadcastReceived() in <lambda>()
1377 val event = personalInstance.events().broadcastReceived() in <lambda>()
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppInstanceTest.java198 assertThat(testAppInstance.events().broadcastReceived() in registerReceiver_receivesBroadcast()
213 assertThat(testAppInstance.events().broadcastReceived() in registerReceiver_multipleIntentFilters_receivesAllMatchingBroadcasts()
216 assertThat(testAppInstance.events().broadcastReceived() in registerReceiver_multipleIntentFilters_receivesAllMatchingBroadcasts()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCarrierConfigManagerTest.java617 Boolean broadcastReceived = queue.poll(BROADCAST_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testExtraRebroadcastOnUnlock() local
618 assertNotNull(broadcastReceived); in testExtraRebroadcastOnUnlock()
619 assertTrue(broadcastReceived); in testExtraRebroadcastOnUnlock()
/cts/tests/tests/widget/src/android/widget/cts/
DToastTest.java1177 ConditionVariable broadcastReceived = new ConditionVariable(false); in registerBlockingReceiver() local
1182 broadcastReceived.open(); in registerBlockingReceiver()
1185 return broadcastReceived; in registerBlockingReceiver()
/cts/tests/devicepolicy/telephony/src/android/devicepolicy/cts/telephony/
DWorkProfileTelephonyTest.java186 assertThat(smsApp.events().broadcastReceived().whereIntent().action().isEqualTo( in sendTextMessage_fromWorkProfile_allManagedSubscriptions_smsSentSuccessfully()
244 personalSmsApp.events().broadcastReceived() in sendTextMessage_fromPersonalProfile_allManagedSubscriptions_errorUserNotAllowed()
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/
DTestAppEvents.kt152 override fun broadcastReceived(): BroadcastReceivedEventQuery = method in com.android.bedstead.testapp.TestAppEvents
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandInstallTest.java2000 final CompletableFuture<Boolean> broadcastReceived = new CompletableFuture<>(); in runPackageVerifierTestSync() local
2008 broadcastReceived.complete(true); in runPackageVerifierTestSync()
2040 broadcastReceived.get(VERIFICATION_BROADCAST_RECEIVED_TIMEOUT_MS, TimeUnit.MILLISECONDS); in runPackageVerifierTestSync()