/system/bt/test/suite/rfcomm/ |
D | rfcomm_unittest.cc | 43 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/ |
D | ScopedSignalHandler.h | 45 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()
|
D | ThreadCapture.cpp | 87 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()
|
D | HeapWalker.h | 67 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/ |
D | hidl_test_servers.cpp | 43 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()
|
D | FooCallback.cpp | 39 mCond.signal(); in heyItsYou() 55 mCond.signal(); in heyItsYouIsntIt() 71 mCond.signal(); in heyItsTheMeaningOfLife() 119 mCond.signal(); in youBlockedMeFor()
|
/system/vold/ |
D | Process.cpp | 86 int KillProcessesWithMounts(const std::string& prefix, int signal) { in KillProcessesWithMounts() argument 120 if (signal != 0) { in KillProcessesWithMounts() 122 LOG(WARNING) << "Killing pid "<< pid << " with signal " << strsignal(signal) << in KillProcessesWithMounts() 124 kill(pid, signal); in KillProcessesWithMounts() 130 int KillProcessesWithOpenFiles(const std::string& prefix, int signal) { in KillProcessesWithOpenFiles() argument 170 if (signal != 0) { in KillProcessesWithOpenFiles() 172 LOG(WARNING) << "Sending " << strsignal(signal) << " to " << pid; in KillProcessesWithOpenFiles() 173 kill(pid, signal); in KillProcessesWithOpenFiles()
|
D | Process.h | 23 int KillProcessesWithOpenFiles(const std::string& path, int signal); 24 int KillProcessesWithMounts(const std::string& path, int signal);
|
/system/connectivity/wificond/ |
D | main.cpp | 56 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/ |
D | Condition.h | 73 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/ |
D | audioserver.te | 5 # 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/ |
D | audioserver.te | 5 # Allow audioserver to signal audio HAL processes and dump their stacks. 6 allow audioserver hal_audio_server:process signal;
|
/system/core/libprocessgroup/ |
D | processgroup.cpp | 233 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/prebuilts/api/30.0/private/ |
D | crash_dump.te | 19 }: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 };
|
D | traced_perf.te | 17 # 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/private/ |
D | crash_dump.te | 19 }: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 };
|
D | traced_perf.te | 17 # 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/ |
D | crash_dump.te | 19 }: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/bt/gd/cert/ |
D | gd_base_test_facade_only.py | 23 import signal 68 self.rootcanal_process.send_signal(signal.SIGINT) 72 rootcanal_return_code != -signal.SIGINT:
|
D | gd_base_test.py | 22 import signal 70 self.rootcanal_process.send_signal(signal.SIGINT) 74 rootcanal_return_code != -signal.SIGINT:
|
/system/core/libsparse/ |
D | simg_dump.py | 22 import signal 38 signal.signal(signal.SIGPIPE, signal.SIG_DFL)
|
/system/core/toolbox/ |
D | toolbox.c | 21 static void SIGPIPE_handler(int signal) { in SIGPIPE_handler() argument 33 signal(SIGPIPE, SIGPIPE_handler); in main()
|
/system/core/libprocessgroup/include/processgroup/ |
D | processgroup.h | 52 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/core/init/ |
D | reboot_utils.cpp | 158 action.sa_handler = [](int signal) { in InstallRebootSignalHandlers() argument 162 _exit(signal); in InstallRebootSignalHandlers() 169 InitFatalReboot(signal); in InstallRebootSignalHandlers()
|
/system/update_engine/ |
D | dbus_test_utils.h | 31 mock_signal_handler, mock_proxy, signal) \ argument 34 Register##signal##SignalHandler(::testing::_, ::testing::_)) \
|