Home
last modified time | relevance | path

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

123456789

/system/bt/test/suite/rfcomm/
Drfcomm_unittest.cc43 sock_connect_signal_t signal; in TEST_F() local
47 len = read(fd, &signal, sizeof(signal)); in TEST_F()
48 EXPECT_TRUE(len == sizeof(signal)) in TEST_F()
51 EXPECT_TRUE(signal.bd_addr == bt_remote_bdaddr_) in TEST_F()
53 EXPECT_TRUE(channel == signal.channel) in TEST_F()
55 << signal.channel; in TEST_F()
84 sock_connect_signal_t signal; in TEST_F() local
92 len = read(fd, &signal, sizeof(signal)); in TEST_F()
93 if (len != sizeof(signal)) { in TEST_F()
100 EXPECT_TRUE(signal.bd_addr == bt_remote_bdaddr_) in TEST_F()
[all …]
/system/memory/libmemunreachable/
DScopedSignalHandler.h45 void install(int signal, F&& f) { in install() argument
48 if (handler_map_->find(signal) != handler_map_->end()) { in install()
49 MEM_LOG_ALWAYS_FATAL("ScopedSignalHandler already installed for %d", signal); in install()
52 (*handler_map_)[signal] = in install()
53 SignalFn([=](int signal, siginfo_t* si, void* uctx) { f(*this, signal, si, uctx); }); in install()
56 act.sa_sigaction = [](int signal, siginfo_t* si, void* uctx) { in install()
57 ((*handler_map_)[signal])(signal, si, uctx); in install()
61 int ret = sigaction(signal, &act, &old_act_); in install()
66 signal_ = signal; in install()
DThreadCapture.cpp87 bool ReleaseThread(pid_t tid, unsigned int signal);
89 void PtraceDetach(pid_t tid, unsigned int signal);
179 void ThreadCaptureImpl::PtraceDetach(pid_t tid, unsigned int signal) { in PtraceDetach() argument
180 void* sig_ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(signal)); in PtraceDetach()
271 unsigned int signal = WSTOPSIG(status); in CaptureThread() local
273 switch (signal) { in CaptureThread()
284 MEM_ALOGE("unexpected signal %d with PTRACE_EVENT_STOP for thread %d of process %d", signal, in CaptureThread()
290 resume_signal = signal; in CaptureThread()
305 bool ThreadCaptureImpl::ReleaseThread(pid_t tid, unsigned int signal) { in ReleaseThread() argument
306 PtraceDetach(tid, signal); in ReleaseThread()
DHeapWalker.h67 SIGSEGV, [=](ScopedSignalHandler& handler, int signal, siginfo_t* siginfo, void* uctx) {
68 this->HandleSegFault(handler, signal, siginfo, uctx);
71 SIGBUS, [=](ScopedSignalHandler& handler, int signal, siginfo_t* siginfo, void* uctx) {
72 this->HandleSegFault(handler, signal, siginfo, uctx);
/system/tools/hidl/test/hidl_test/
Dhidl_test_servers.cpp43 void signal_handler_server(int signal) { in signal_handler_server() argument
44 if (signal == SIGTERM) { in signal_handler_server()
57 signal(SIGTERM, signal_handler_server); in run()
82 void signal_handler(int signal) { in signal_handler() argument
83 if (signal == SIGTERM) { in signal_handler()
98 signal(SIGTERM, signal_handler); in main()
DFooCallback.cpp39 mCond.signal(); in heyItsYou()
55 mCond.signal(); in heyItsYouIsntIt()
71 mCond.signal(); in heyItsTheMeaningOfLife()
119 mCond.signal(); in youBlockedMeFor()
/system/connectivity/wificond/
Dmain.cpp56 std::signal(SIGINT, &ScopedSignalHandler::LeaveLoop); in ScopedSignalHandler()
57 std::signal(SIGTERM, &ScopedSignalHandler::LeaveLoop); in ScopedSignalHandler()
61 std::signal(SIGINT, SIG_DFL); in ~ScopedSignalHandler()
62 std::signal(SIGTERM, SIG_DFL); in ~ScopedSignalHandler()
68 static void LeaveLoop(int signal) { in LeaveLoop() argument
/system/core/libutils/include/utils/
DCondition.h73 void signal();
75 void signal(WakeUpType type) { in signal() function
77 signal(); in signal()
152 inline void Condition::signal() { in signal() function
/system/sepolicy/public/
Daudioserver.te5 # Allow audioserver to signal audio HAL processes and dump their stacks.
6 allow audioserver hal_audio_server:process signal;
/system/sepolicy/prebuilts/api/30.0/public/
Daudioserver.te5 # Allow audioserver to signal audio HAL processes and dump their stacks.
6 allow audioserver hal_audio_server:process signal;
/system/core/libprocessgroup/
Dprocessgroup.cpp233 static int DoKillProcessGroupOnce(const char* cgroup, uid_t uid, int initialPid, int signal) { in DoKillProcessGroupOnce() argument
285 if (kill(-pgid, signal) == -1 && errno != ESRCH) { in DoKillProcessGroupOnce()
286 PLOG(WARNING) << "kill(" << -pgid << ", " << signal << ") failed"; in DoKillProcessGroupOnce()
295 if (kill(pid, signal) == -1 && errno != ESRCH) { in DoKillProcessGroupOnce()
296 PLOG(WARNING) << "kill(" << pid << ", " << signal << ") failed"; in DoKillProcessGroupOnce()
303 static int KillProcessGroup(uid_t uid, int initialPid, int signal, int retries, in KillProcessGroup() argument
325 while ((processes = DoKillProcessGroupOnce(cgroup, uid, initialPid, signal)) > 0) { in KillProcessGroup()
369 int killProcessGroup(uid_t uid, int initialPid, int signal, int* max_processes) { in killProcessGroup() argument
370 return KillProcessGroup(uid, initialPid, signal, 40 /*retries*/, max_processes); in killProcessGroup()
373 int killProcessGroupOnce(uid_t uid, int initialPid, int signal, int* max_processes) { in killProcessGroupOnce() argument
[all …]
/system/sepolicy/private/
Dcrash_dump.te19 }:process { ptrace signal sigchld sigstop sigkill };
21 allow crash_dump { apexd llkd logd vold }:process { ptrace signal sigchld sigstop sigkill };
46 }:process { signal sigstop sigkill };
Dtraced_perf.te17 # Allow CAP_KILL for delivery of dedicated signal to obtain proc-fds from a
39 # Do not audit failures to signal a process, as there are cases when this is
42 dontaudit traced_perf domain:process signal;
/system/sepolicy/prebuilts/api/30.0/private/
Dcrash_dump.te19 }:process { ptrace signal sigchld sigstop sigkill };
21 allow crash_dump { apexd llkd logd vold }:process { ptrace signal sigchld sigstop sigkill };
46 }:process { signal sigstop sigkill };
Dtraced_perf.te17 # Allow CAP_KILL for delivery of dedicated signal to obtain proc-fds from a
39 # Do not audit failures to signal a process, as there are cases when this is
42 dontaudit traced_perf domain:process signal;
/system/sepolicy/prebuilts/api/29.0/private/
Dcrash_dump.te19 }:process { ptrace signal sigchld sigstop sigkill };
21 allow crash_dump { apexd llkd logd vold }:process { ptrace signal sigchld sigstop sigkill };
46 }:process { signal sigstop sigkill };
/system/vold/
DProcess.cpp84 int KillProcessesWithOpenFiles(const std::string& prefix, int signal) { in KillProcessesWithOpenFiles() argument
124 if (signal != 0) { in KillProcessesWithOpenFiles()
126 LOG(WARNING) << "Sending " << strsignal(signal) << " to " << pid; in KillProcessesWithOpenFiles()
127 kill(pid, signal); in KillProcessesWithOpenFiles()
DProcess.h23 int KillProcessesWithOpenFiles(const std::string& path, int signal);
/system/core/libsparse/
Dsimg_dump.py22 import signal
38 signal.signal(signal.SIGPIPE, signal.SIG_DFL)
/system/core/toolbox/
Dtoolbox.c21 static void SIGPIPE_handler(int signal) { in SIGPIPE_handler() argument
33 signal(SIGPIPE, SIGPIPE_handler); in main()
/system/core/libprocessgroup/include/processgroup/
Dprocessgroup.h52 int killProcessGroup(uid_t uid, int initialPid, int signal, int* max_processes = nullptr);
56 int killProcessGroupOnce(uid_t uid, int initialPid, int signal, int* max_processes = nullptr);
/system/extras/libperfmgr/
DNodeLooperThread.cc62 wake_cond_.signal(); in Request()
87 wake_cond_.signal(); in Cancel()
137 wake_cond_.signal(); in Stop()
/system/core/init/
Dreboot_utils.cpp158 action.sa_handler = [](int signal) { in InstallRebootSignalHandlers() argument
162 _exit(signal); in InstallRebootSignalHandlers()
169 InitFatalReboot(signal); in InstallRebootSignalHandlers()
/system/update_engine/
Ddbus_test_utils.h33 mock_signal_handler, mock_proxy, signal) \ argument
36 DoRegister##signal##SignalHandler(::testing::_, ::testing::_)) \
/system/bt/include/hardware/
Dbluetooth_headset_interface.h114 int signal, int batt_chg,
141 int signal, int roam, int batt_chg,

123456789