Home
last modified time | relevance | path

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

12345

/cts/tests/tests/os/src/android/os/cts/
DConditionVariableTest.java41 assertFalse(mConditionVariable.block(BLOCK_TIME)); in testConstructor()
42 assertFalse(new ConditionVariable(false).block(BLOCK_TIME)); in testConstructor()
43 assertTrue(new ConditionVariable(true).block(BLOCK_TIME)); in testConstructor()
50 assertTrue(mConditionVariable.block(BLOCK_TIME)); in testConditionVariable()
56 assertFalse(mConditionVariable.block(BLOCK_TIME)); in testConditionVariable()
74 mConditionVariable.block(); in testConditionVariable()
93 assertTrue(mConditionVariable.block(BLOCK_TIME)); in testConditionVariable()
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerWhitelistApp/src/com/android/cts/packageinstallerpermissionwhitelistapp/
DPermissionWhitelistTest.kt58 val block = { in setTargetInstallerPackage() constant
63 assertThrows(SecurityException::class.java) { block() } in setTargetInstallerPackage()
65 block() in setTargetInstallerPackage()
79 val block = { in removeWhitelistRestrictedPermission() constant
87 assertThrows(SecurityException::class.java) { block() } in removeWhitelistRestrictedPermission()
89 assertThat(block()).isEqualTo(shouldSucceed.toBoolean()) in removeWhitelistRestrictedPermission()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2024-0023/
Dpoc.cpp32 std::shared_ptr<C2GraphicBlock> block; in main() local
42 {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block); in main()
43 FAIL_CHECK(block->map().get().layout().numPlanes == 3); in main()
46 C2GraphicView view = block->map().get(); in main()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaCodecBlockModelHelper.java91 MediaCodec.LinearBlock block; field in MediaCodecBlockModelHelper.LinearInputBlock
168 input.block.recycle(); in onInputSlot()
169 input.block = MediaCodec.LinearBlock.obtain(Math.toIntExact(size), codecNames); in onInputSlot()
171 input.block.isMappable()); in onInputSlot()
172 input.buffer = input.block.map(); in onInputSlot()
176 input.block.recycle(); in onInputSlot()
177 input.block = MediaCodec.LinearBlock.obtain( in onInputSlot()
180 input.block.isMappable()); in onInputSlot()
181 input.buffer = input.block.map(); in onInputSlot()
185 input.block.recycle(); in onInputSlot()
[all …]
/cts/tests/storageaccess/src/android/storageaccess/cts/
DActivityScenarioExt.kt23 fun launchClientActivity(block: (ActivityScenario<ClientActivity>) -> Unit) = in <lambda>()
24 ActivityScenario.launch(ClientActivity::class.java).use(block) in <lambda>()
/cts/tests/suspendapps/test-apps/TestDeviceAdmin/src/com/android/suspendapps/testdeviceadmin/
DTestCommsReceiver.java55 boolean block = false; in onReceive()
75 block = true; in onReceive()
82 dpm.setUninstallBlocked(deviceAdmin, packageName, block); in onReceive()
/cts/tests/app/src/android/app/cts/
DForceStopTest.java183 if (!gotRestarted.block(DELAY_MILLIS)) { in testPackageRestartedBroadcast()
227 if (!gotUnstopped.block(DELAY_MILLIS)) { in testPackageUnstoppedBroadcast()
268 assertTrue("Activity didn't start", gotActivityStarted.block(DELAY_MILLIS)); in testBootCompletedBroadcasts_activity()
275 assertTrue("Didn't get LOCKED_BOOT_COMPLETED", gotLockedBoot.block(DELAY_MILLIS)); in testBootCompletedBroadcasts_activity()
276 assertTrue("Didn't get BOOT_COMPLETED", gotBoot.block(DELAY_MILLIS)); in testBootCompletedBroadcasts_activity()
313 assertTrue("Activity didn't start", appStarted.block(DELAY_MILLIS)); in testBootCompletedBroadcasts_broadcast()
328 assertTrue("Didn't get LOCKED_BOOT_COMPLETED", gotLockedBoot.block(DELAY_MILLIS)); in testBootCompletedBroadcasts_broadcast()
329 assertTrue("Didn't get BOOT_COMPLETED", gotBoot.block(DELAY_MILLIS)); in testBootCompletedBroadcasts_broadcast()
387 assertTrue("Activity didn't start", gotActivityStarted.block(DELAY_MILLIS)); in testApplicationStartInfoWasForceStopped_activity()
423 serviceConnected.block(DELAY_MILLIS)); in getStartReasonFromAppPackageService()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DBasePermissionUiTest.kt167 block: () -> Unit in <lambda>()
171 block in <lambda>()
177 block: () -> Unit in <lambda>()
179 val result = requestAppPermissions(*permissions, block = block) in <lambda>()
203 block: () -> Unit in <lambda>()
221 block() in <lambda>()
DMediaServerCrashTest.java103 if (!mOnPrepareCalled.block(5000)) { in testIfMediaServerDied()
108 if (!mOnCompletionCalled.block(5000)) { in testIfMediaServerDied()
154 if (!mOnCompletionCalled.block(5000)) { in checkIfMediaServerDiedForDrm()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0213/
Dpoc.cpp56 explicit LinearBuffer(const std::shared_ptr<C2LinearBlock> &block) in LinearBuffer() argument
57 : C2Buffer({block->share(block->offset(), block->size(), ::C2Fence())}) {} in LinearBuffer()
59 explicit LinearBuffer(const std::shared_ptr<C2LinearBlock> &block, size_t size) in LinearBuffer() argument
60 : C2Buffer({block->share(block->offset(), size, ::C2Fence())}) {} in LinearBuffer()
356 std::shared_ptr<C2LinearBlock> block; in decodeNFrames() local
359 &block) != C2_OK) { in decodeNFrames()
362 if (!block) { in decodeNFrames()
367 C2WriteView view = block->map().get(); in decodeNFrames()
383 work->input.buffers.emplace_back(new LinearBuffer(block, size)); in decodeNFrames()
/cts/tests/tests/externalservice/src/android/externalservice/cts/
DSharedIsolatedServiceTest.java62 assertTrue(mCondition.block(RunningServiceInfo.CONDITION_TIMEOUT)); in testBasicConnection()
98 assertTrue(mCondition.block(RunningServiceInfo.CONDITION_TIMEOUT)); in testMultipleServicesWithSingleInstance()
119 assertTrue(mCondition.block(RunningServiceInfo.CONDITION_TIMEOUT)); in testMultipleServicesWithSingleInstance()
145 assertTrue(mCondition.block(RunningServiceInfo.CONDITION_TIMEOUT)); in testMultipleServicesWithMultiInstance()
166 assertTrue(mCondition.block(RunningServiceInfo.CONDITION_TIMEOUT)); in testMultipleServicesWithMultiInstance()
DExternalServiceTest.java135 assertTrue(mCondition.block(CONDITION_TIMEOUT)); in testBindExternalService()
161 assertTrue(mCondition.block(CONDITION_TIMEOUT)); in testBindExternalServiceWithRunningOwn()
194 assertTrue(mCondition.block(CONDITION_TIMEOUT)); in testBindExternalServiceWithRunningOwn()
210 assertTrue(mCondition.block(CONDITION_TIMEOUT)); in testBindExternalServiceWithRunningOwn()
259 assertTrue(mCondition.block(CONDITION_TIMEOUT)); in testBindExternalAboveClient()
272 assertTrue(mCondition.block(CONDITION_TIMEOUT)); in testBindExternalAboveClient()
300 assertTrue(mCondition.block(CONDITION_TIMEOUT)); in testBindExternalServiceWithZygote()
329 assertTrue(mCondition.block(CONDITION_TIMEOUT)); in testBindExternalServiceWithZygoteWithRunningOwn()
357 assertTrue(mCondition.block(CONDITION_TIMEOUT)); in testBindExternalServiceWithZygoteWithRunningOwn()
374 assertTrue(mCondition.block(CONDITION_TIMEOUT)); in testBindExternalServiceWithZygoteWithRunningOwn()
[all …]
/cts/hostsidetests/packagemanager/domainverification/device/multiuser/src/com/android/cts/packagemanager/verify/domain/device/multiuser/
DDomainVerificationWorkUtils.kt48 internal fun <T> withUserContext(user: UserReference, block: (context: Context) -> T) = in getWorkDevicePolicyManager()
51 .use { block(TestApis.context().androidContextAsUser(user)) } in getWorkDevicePolicyManager()
/cts/tests/tests/companion/common/src/android/companion/cts/common/
DAppHelper.kt57 fun withRole(role: String, block: () -> Unit) { in uninstall()
60 block() in uninstall()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/res/raw/
Dmake_certs.go16 block, _ := pem.Decode([]byte(in))
17 if block == nil || block.Type != "PRIVATE KEY" {
20 key, err := x509.ParsePKCS8PrivateKey(block.Bytes)
24 return block.Bytes, key.(*rsa.PrivateKey)
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionMultiDetectorTest.java105 assertThat(mIsTestServiceReady.block(TEST_SERVICE_TIMEOUT.toMillis())).isTrue(); in setUp()
113 assertThat(mIsTestServiceShutdown.block(TEST_SERVICE_TIMEOUT.toMillis())).isTrue(); in tearDown()
132 assertThat(availabilityChanged.block(TEST_SERVICE_TIMEOUT.toMillis())).isTrue(); in testAlwaysOnHotwordDetectorDestroy_throwsExceptionAfterDestroy()
174 assertThat(availabilityChanged.block(TEST_SERVICE_TIMEOUT.toMillis())).isTrue(); in testAlwaysOnHotwordDetectorCreate_rejectMultipleDetectorsOfTheSameType()
/cts/apps/CameraITS/tests/scene5/
Dtest_lens_shading_and_color_uniformity.py88 for block in ls_test_failed:
89 top, bottom, left, right = block['position']
92 left, right, block['val'], block['thresh_l'], ls_thresh_h)
283 for block in blocks_info:
284 top, bottom, left, right = block['position']
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DSessionParamsPermissionStateTest.kt219 val block = { in <lambda>() constant
227 assertFailsWith(SecurityException::class) { block() } in <lambda>()
231 { block() }, in <lambda>()
235 block() in <lambda>()
/cts/tests/tests/os/src/android/os/health/cts/
DPowerMonitorsTest.java65 done.block(); in testGetPowerMonitorsAsync()
104 done.block(); in testGetPowerMonitorsAsync()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCamera2SurfaceViewCtsActivity.java73 changeSucceeded = surfaceChangedDone.block(waitTimeMs); in waitForSurfaceSizeChanged()
120 stateReached = surfaceStateDone.block(waitTimeMs); in waitForSurfaceState()
/cts/tests/tests/util/src/android/util/cts/
DSparseArrayTest.java263 BiFunction<SparseArray<?>, SparseArray<?>, Boolean> block) { in testContentEquals() argument
265 assertTrue(block.apply(first, second)); in testContentEquals()
266 assertTrue(block.apply(second, first)); in testContentEquals()
282 BiFunction<SparseArray<?>, SparseArray<?>, Boolean> block) { in testContentNotEquals() argument
284 assertFalse(block.apply(first, second)); in testContentNotEquals()
285 assertFalse(block.apply(second, first)); in testContentNotEquals()
/cts/tests/inputmethod/mockspellchecker/src/com/android/cts/mockspellchecker/
DMockSpellChecker.kt29 internal inline fun <T> withLog(msg: String, block: () -> T): T { in withLog()
31 return block() in withLog()
/cts/tests/framework/base/windowmanager/backgroundactivity/common/src/android/server/wm/backgroundactivity/common/
DEventReceiver.java66 if (!mEventReceivedVariable.block(timeoutMs)) {
/cts/hostsidetests/voiceinteraction/app/src/com/android/cts/voiceinteraction/
DAbstractVoiceInteractionServiceTest.java120 assertThat(mIsTestServiceReady.block(TEST_SERVICE_TIMEOUT.toMillis())).isTrue(); in setUp()
128 assertThat(mIsTestServiceShutdown.block(TEST_SERVICE_TIMEOUT.toMillis())).isTrue(); in tearDown()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DHardwareBufferRendererTests.kt166 block: (Bitmap) -> Unit in <lambda>()
200 block(bitmap) in <lambda>()
210 block: (Bitmap) -> Unit, in <lambda>()
258 block(bitmap) in <lambda>()
678 block: (hardwareBuffer: HardwareBuffer, renderer: HardwareBufferRenderer) -> Unit, in <lambda>()
696 block(hardwareBuffer, renderer) in <lambda>()
703 private inline fun RenderNode.record(block: (canvas: Canvas) -> Unit): RenderNode { in <lambda>()
705 block(canvas) in <lambda>()

12345