/external/autotest/server/site_tests/bluetooth_AdapterSRHealth/ |
D | bluetooth_AdapterSRHealth.py | 5 """ Server-side bluetooth adapter tests that involve suspend/resume with peers 14 - Wake from suspend test 17 - A2DP shouldn't wake from suspend 18 - Suspend while discovering (discovering should pause and unpause) 19 - Suspend while advertising (advertising should pause and unpause) 26 - Wake from suspend test 60 """Server side bluetooth adapter suspend resume test with peer.""" 71 # Reconnect after suspend tests 78 """ Reconnects a device after suspend/resume. 85 @params iterations: number of suspend/resume + reconnect iterations [all …]
|
/external/autotest/client/cros/power/ |
D | sys_power.py | 26 """Base class for a failure during a single suspend/resume cycle.""" 31 """Suspend took too long, got wakeup event (RTC tick) before it was done.""" 36 """Kernel problem encountered during suspend/resume. 97 """Suspend was not allowed to be performed.""" 114 """Prepare the device to wake up from an upcoming suspend. 116 @param seconds: The number of seconds to allow the device to suspend. 118 # May cause DUT not wake from sleep if the suspend time is 1 second. 125 logging.debug('Suspend for %d seconds, estimated wakealarm = %d', 139 raise SpuriousWakeupError('Woke from suspend early') 176 """Suspend using the power manager with a wakeup timeout. [all …]
|
D | power_suspend.py | 18 """Class for suspend/resume measurements. 24 device_times[]: List of individual device suspend/resume time dicts. 27 suspend: Do a suspend/resume cycle. Return timing measurement dict. 30 _logs: Array of /var/log/messages lines since start of suspend cycle. 33 _suspend: Set to the sys_power suspend function to use. 41 _set_pm_print_times: Enable/disable kernel device suspend timing output. 46 _individual_device_times: Reads individual device suspend/resume times. 50 # board-specific "time to suspend" values determined empirically 87 # Line to look for suspend abort due to override. 88 _ABORT_DUE_TO_OVERRIDE_LINE = 'Aborting suspend attempt for lockfile' [all …]
|
/external/autotest/server/site_tests/firmware_ECWakeSource/ |
D | firmware_ECWakeSource.py | 23 # Retries allowed for reaching S0ix|S3 after suspend and S0 after wake. 26 # suspend mode. 77 """Suspend and then wake up the device. 80 suspend_func: The method used to suspend the device 96 """Suspend and then check the the device doesn't wake up. 99 suspend_func: The method used to suspend the device 122 # suspend, instead of shutdown. 128 # With no display connected, pressing the power button in suspend mode 131 logging.info('Suspend and wake by power button.') 132 self.suspend_and_wake(self.suspend, self.servo.power_normal_press) [all …]
|
/external/llvm-project/llvm/test/Transforms/Coroutines/ |
D | no-suspend.ll | 1 ; Test no suspend coroutines 33 br i1 %need.dyn.free, label %dyn.free, label %suspend 36 br label %suspend 37 suspend: 43 ; replace suspend with a jump to %resume label turning it into no-suspend 74 %0 = call i8 @llvm.coro.suspend(token %save, i1 false) 75 switch i8 %0, label %suspend [i8 0, label %resume 88 br label %suspend 89 suspend: 95 ; replace suspend with a jump to %cleanup label turning it into no-suspend [all …]
|
D | coro-debug-frame-variable.ll | 89 br i1 %ready, label %init.ready, label %init.suspend 91 init.suspend: ; preds = %coro.init 94 %suspend = call i8 @llvm.coro.suspend(token %save, i1 false) 95 switch i8 %suspend, label %coro.ret [ 100 init.cleanup: ; preds = %init.suspend 103 init.ready: ; preds = %init.suspend, %coro.init 116 br i1 %ready.again, label %await.ready, label %await.suspend 118 await.suspend: ; preds = %init.ready 122 %suspend.again = call i8 @llvm.coro.suspend(token %save.again, i1 false) 123 switch i8 %suspend.again, label %coro.ret [ [all …]
|
D | coro-split-musttail3.ll | 1 ; Tests that coro-split will convert coro.resume followed by a suspend to a 17 %suspend = call i8 @llvm.coro.suspend(token %save, i1 false) 18 %cmp = icmp eq i8 %suspend, 0 19 br i1 %cmp, label %await.suspend, label %exit 20 await.suspend: 33 br label %final.suspend 39 br label %final.suspend 44 br label %final.suspend 45 final.suspend: 46 %suspend2 = call i8 @llvm.coro.suspend(token %save2, i1 false) [all …]
|
D | coro-split-musttail1.ll | 1 ; Tests that coro-split will convert coro.resume followed by a suspend to a 17 %suspend = call i8 @llvm.coro.suspend(token %save, i1 false) 18 switch i8 %suspend, label %exit [ 19 i8 0, label %await.suspend 22 await.suspend: 35 br label %final.suspend 41 br label %final.suspend 46 br label %final.suspend 47 final.suspend: 48 %suspend2 = call i8 @llvm.coro.suspend(token %save2, i1 false) [all …]
|
D | coro-materialize.ll | 1 ; Verifies that we materialize instruction across suspend points 13 %sp1 = call i8 @llvm.coro.suspend(token none, i1 false) 14 switch i8 %sp1, label %suspend [i8 0, label %resume1 18 %sp2 = call i8 @llvm.coro.suspend(token none, i1 false) 19 switch i8 %sp1, label %suspend [i8 0, label %resume2 30 br label %suspend 31 suspend: 42 declare i8 @llvm.coro.suspend(token, i1)
|
/external/llvm-project/llvm/docs/ |
D | Coroutines.rst | 18 LLVM coroutines are functions that have one or more `suspend points`_. 19 When a suspend point is reached, the execution of a coroutine is suspended and 21 to continue execution from the last suspend point or it can be destroyed. 57 the initial entrypoint of the coroutine, which executes until a suspend point 63 must unwind the coroutine without attempting to suspend it. 106 Because the resume and destroy functions are shared across all suspend 107 points, suspend points must store the index of the active suspend in 133 In this lowering, every suspend point takes a list of "yielded values" 138 these continuation functions, one for each suspend point. 143 - In normal returned-continuation lowering, the coroutine may suspend [all …]
|
/external/autotest/server/site_tests/audio_AudioBasicHotwording/ |
D | audio_AudioBasicHotwording.py | 35 def run_once(self, suspend=False): argument 38 @param suspend: True for suspend the device before playing hotword. 39 False for not suspend. 79 if suspend: 82 """Call the host method suspend.""" 83 logging.info('Suspend the DUT for %d secs', 85 self.host.suspend( 89 # Folk a thread to suspend the host 114 if suspend: 118 logging.info('Suspend for %f time.', real_suspend_time) [all …]
|
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/tailcall/ |
D | SimpleChannel.kt | 24 suspend fun send(element: Int) { in send() 43 suspend fun receive(): Int { in receive() 55 abstract suspend fun suspendReceive(): Int in suspendReceive() 56 abstract suspend fun suspendSend(element: Int) in suspendReceive() 60 override suspend fun suspendReceive(): Int = suspendCoroutineUninterceptedOrReturn { in suspendReceive() 65 override suspend fun suspendSend(element: Int) = suspendCoroutineUninterceptedOrReturn<Unit> { in suspendReceive() 73 override suspend fun suspendReceive(): Int = suspendCancellableCoroutine { in <lambda>() 78 override suspend fun suspendSend(element: Int) = suspendCancellableCoroutine<Unit> { in <lambda>() 87 override suspend fun suspendReceive(): Int = suspendCancellableCoroutineReusable { in <lambda>() 93 override suspend fun suspendSend(element: Int) = suspendCancellableCoroutineReusable<Unit> { in <lambda>()
|
/external/autotest/server/site_tests/firmware_Cr50DeepSleepStress/ |
D | firmware_Cr50DeepSleepStress.py | 21 Cr50 should enter deep sleep every suspend. Verify that by checking the 24 @param suspend_count: The number of times to reboot or suspend the device. 36 # The deep sleep count may not exactly match the suspend count. This is the 37 # ratio of difference the test tolerates. If the difference/total suspend 156 # power suspend stress needs to ssh into the DUT. If ethernet goes 158 # dts ethernet issues and the dut going down during the suspend stress. 173 """Suspend the device the requested number of times 175 @param suspend_count: the number of times to suspend the device. 214 logging.info('suspend %d: deep sleep count exp %d got %d', 217 # Cr50 sometimes misses a suspend. Don't fail if the mismatch is within [all …]
|
/external/llvm-project/mlir/test/Conversion/AsyncToLLVM/ |
D | convert-to-llvm.mlir | 44 // CHECK: %[[SUSPENDED:.*]] = llvm.call @llvm.coro.suspend(%[[STATE]] 46 // Decide the next block based on the code returned from suspend. 50 // CHECK: llvm.cond_br %[[IS_NONE]], ^[[SUSPEND:.*]], ^[[RESUME_OR_CLEANUP:.*]] 67 // Suspend coroutine, and also a return statement for ramp function. 68 // CHECK: ^[[SUSPEND]]: 102 // CHECK: llvm.call @llvm.coro.suspend 112 // Suspend coroutine in the beginning. 114 // CHECK: llvm.call @llvm.coro.suspend 116 // Suspend coroutine second time waiting for the completion of inner execute op. 120 // CHECK: llvm.call @llvm.coro.suspend [all …]
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/internal/ |
D | ChannelFlow.kt | 33 onBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND in <lambda>() 58 // shared code to create a suspend lambda from collectTo function in one place 59 internal val collectToFun: suspend (ProducerScope<T>) -> Unit 79 if (onBufferOverflow != BufferOverflow.SUSPEND) { in dropChannelOperators() 108 protected abstract suspend fun collectTo(scope: ProducerScope<T>) in create() 114 BufferOverflow.SUSPEND -> produceCapacity in create() 133 override suspend fun collect(collector: FlowCollector<T>): Unit = in produceImpl() 146 … if (onBufferOverflow != BufferOverflow.SUSPEND) props.add("onBufferOverflow=$onBufferOverflow") in additionalToStringProps() 158 protected abstract suspend fun flowCollect(collector: FlowCollector<T>) in flowCollect() 161 …private suspend fun collectWithContextUndispatched(collector: FlowCollector<T>, newContext: Corout… in flowCollect() [all …]
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/terminal/ |
D | Reduce.kt | 19 public suspend fun <S, T : S> Flow<T>.reduce(operation: suspend (accumulator: S, value: T) -> S): S… in <lambda>() 39 public suspend inline fun <T, R> Flow<T>.fold( in fold() 41 crossinline operation: suspend (acc: R, value: T) -> R in fold() 55 public suspend fun <T> Flow<T>.single(): T { in single() 70 public suspend fun <T> Flow<T>.singleOrNull(): T? { in singleOrNull() 90 public suspend fun <T> Flow<T>.first(): T { in first() 104 public suspend fun <T> Flow<T>.first(predicate: suspend (T) -> Boolean): T { in first() 122 public suspend fun <T> Flow<T>.firstOrNull(): T? { in firstOrNull() 135 public suspend fun <T> Flow<T>.firstOrNull(predicate: suspend (T) -> Boolean): T? { in firstOrNull()
|
/external/autotest/server/site_tests/hardware_MemoryIntegrity/ |
D | hardware_MemoryIntegrity.py | 54 def _wait(self, seconds, suspend): argument 56 Wait for specifed time. Also suspend if specified. 58 if suspend: 59 self._client.suspend(suspend_time=seconds) 90 def run_once(self, client_ip=None, seconds=3600, size=0, suspend=True): argument 95 idle or suspend for specify time and verify the integrity of that data. 98 @param seconds: seconds to idle / suspend. default = 3600 (1 hour) 100 @param suspend: set to suspend between write and verify phase. 118 self._wait(seconds, suspend)
|
/external/llvm-project/llvm/lib/Transforms/Coroutines/ |
D | Coroutines.cpp | 149 "llvm.coro.suspend", in isCoroutineIntrinsicName() 150 "llvm.coro.suspend.async", in isCoroutineIntrinsicName() 151 "llvm.coro.suspend.retcon", in isCoroutineIntrinsicName() 279 auto *Suspend = cast<CoroSuspendAsyncInst>(II); in buildFrom() local 280 Suspend->checkWellFormed(); in buildFrom() 281 CoroSuspends.push_back(Suspend); in buildFrom() 285 auto Suspend = cast<CoroSuspendRetconInst>(II); in buildFrom() local 286 CoroSuspends.push_back(Suspend); in buildFrom() 290 auto Suspend = cast<CoroSuspendInst>(II); in buildFrom() local 291 CoroSuspends.push_back(Suspend); in buildFrom() [all …]
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/share/ |
D | JDWPInvokeMethodWithSuspensionTestCase.java | 43 * - breakpoint #1 to suspend the current thread only when the debuggee starts 44 * - breakpoint #2 to suspend all threads from a new thread started by a method called through 64 // Set breakpoint with EVENT_THREAD suspend policy so only the event thread is suspended. in runInvokeMethodTest() 70 // Set breakpoint with ALL suspend policy to suspend all threads. The thread started in runInvokeMethodTest() 71 // during the invoke will suspend all threads, including the thread executing the invoke. in runInvokeMethodTest() 82 assertEquals("Invalid suspend count:", 1, suspendCount); in runInvokeMethodTest() 85 // that is going to hit a breakpoint and suspend all threads, including the thread invoking in runInvokeMethodTest() 88 final int invoke_options = 0; // resume/suspend all threads before/after the invoke. in runInvokeMethodTest() 105 assertEquals("Invalid suspend count:", 1, suspendCount); in runInvokeMethodTest() 108 // the invoke has resumed it too, its suspend count must remain 1. in runInvokeMethodTest() [all …]
|
/external/cros/system_api/dbus/power_manager/ |
D | suspend.proto | 12 // suspend. If any clients previously called RegisterSuspendDelay, suspending 23 // 3. When the power manager is about to suspend the system, it emits a 30 // ready to suspend, the system will be suspended. If the initial suspend 33 // 6. After the suspend request is complete, powerd emits a SuspendDone signal 34 // containing a SuspendDone message. The client should undo any pre-suspend 39 // Note that the original suspend request may be aborted before all clients have 65 // Unique ID corresponding to this suspend request. This is included in the 74 // a suspend request. Each SuspendImminent signal will be followed by a 79 // Unique ID corresponding to the suspend request. 105 // Unique ID assigned to the client that registered this suspend delay. This
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/ |
D | Coroutines.cpp | 145 "llvm.coro.suspend", in isCoroutineIntrinsicName() 146 "llvm.coro.suspend.retcon", in isCoroutineIntrinsicName() 274 auto Suspend = cast<CoroSuspendRetconInst>(II); in buildFrom() local 275 CoroSuspends.push_back(Suspend); in buildFrom() 279 auto Suspend = cast<CoroSuspendInst>(II); in buildFrom() local 280 CoroSuspends.push_back(Suspend); in buildFrom() 281 if (Suspend->isFinal()) { in buildFrom() 284 "Only one suspend point can be marked as final"); in buildFrom() 335 // Replace all coro.suspend with undef and remove related coro.saves if in buildFrom() 362 auto Suspend = dyn_cast<CoroSuspendInst>(AnySuspend); in buildFrom() local [all …]
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/channels/ |
D | BufferOverflow.kt | 13 * * [SUSPEND] — the upstream that is [sending][SendChannel.send] or 15 …op **the oldest** value in the buffer on overflow, add the new value to the buffer, do not suspend. 17 * (so that buffer contents stay the same), do not suspend. 21 * Suspend on buffer overflow. 23 SUSPEND, 26 …op **the oldest** value in the buffer on overflow, add the new value to the buffer, do not suspend. 32 * (so that buffer contents stay the same), do not suspend.
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/ |
D | ResumeTest.java | 61 * <BR> Then the test performs VirtualMachine.Suspend command and checks with help of 75 // Suspend all threads with VirtualMachine.Suspend command. in testResume001() 80 "after VirtualMachine.Suspend command..."); in testResume001() 106 * <BR> Then the test performs VirtualMachine.Suspend command twice and 123 // Suspend all threads with VirtualMachine.Suspend command. in testResume002() 128 "after VirtualMachine.Suspend command..."); in testResume002() 131 // Suspend all threads again. in testResume002() 136 "suspended after another VirtualMachine.Suspend command..."); in testResume002() 171 * does not cause any error if we do not perform VirtualMachine.Suspend 173 * <BR> Then the test performs VirtualMachine.Suspend command and checks [all …]
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/ |
D | UndispatchedResultTest.kt | 37 …private suspend fun invokeTest(scopeProvider: suspend (suspend CoroutineScope.() -> Unit) -> Unit)… in <lambda>() 42 private suspend fun invokeTest( in <lambda>() 44 scopeProvider: suspend (suspend CoroutineScope.() -> Unit) -> Unit in <lambda>() 54 private suspend fun CoroutineScope.block(context: CoroutineContext) { in <lambda>()
|
/external/autotest/server/site_tests/network_WiFi_WakeOnWiFiThrottling/ |
D | network_WiFi_WakeOnWiFiThrottling.py | 41 with self.dr_utils.suspend(): 42 # Wait for suspend actions to finish. 51 # dark resume, reconnect, then suspend again. 67 # Since we wake from suspend and suspend again, the throttling 70 with self.dr_utils.suspend(): 71 # Wait for suspend actions to finish. 79 # dark resume, reconnect, then suspend again. Wait longer
|