Home
last modified time | relevance | path

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

12345678

/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/core/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.cpp55 std::signal(SIGINT, &ScopedSignalHandler::LeaveLoop); in ScopedSignalHandler()
56 std::signal(SIGTERM, &ScopedSignalHandler::LeaveLoop); in ScopedSignalHandler()
60 std::signal(SIGINT, SIG_DFL); in ~ScopedSignalHandler()
61 std::signal(SIGTERM, SIG_DFL); in ~ScopedSignalHandler()
67 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/core/libprocessgroup/
Dprocessgroup.cpp262 static int DoKillProcessGroupOnce(const char* cgroup, uid_t uid, int initialPid, int signal) { in DoKillProcessGroupOnce() argument
314 if (kill(-pgid, signal) == -1 && errno != ESRCH) { in DoKillProcessGroupOnce()
315 PLOG(WARNING) << "kill(" << -pgid << ", " << signal << ") failed"; in DoKillProcessGroupOnce()
324 if (kill(pid, signal) == -1 && errno != ESRCH) { in DoKillProcessGroupOnce()
325 PLOG(WARNING) << "kill(" << pid << ", " << signal << ") failed"; in DoKillProcessGroupOnce()
332 static int KillProcessGroup(uid_t uid, int initialPid, int signal, int retries) { in KillProcessGroup() argument
349 while ((processes = DoKillProcessGroupOnce(cgroup, uid, initialPid, signal)) > 0) { in KillProcessGroup()
390 int killProcessGroup(uid_t uid, int initialPid, int signal) { in killProcessGroup() argument
391 return KillProcessGroup(uid, initialPid, signal, 40 /*retries*/); in killProcessGroup()
394 int killProcessGroupOnce(uid_t uid, int initialPid, int signal) { in killProcessGroupOnce() argument
[all …]
/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/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 };
/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/libnativebridge/tests/
DDummyNativeBridge2.cpp59 extern "C" android::NativeBridgeSignalHandlerFn native_bridge2_get_signal_handler(int signal) { in native_bridge2_get_signal_handler() argument
60 if (signal == SIGSEGV) { in native_bridge2_get_signal_handler()
DDummyNativeBridge3.cpp60 extern "C" android::NativeBridgeSignalHandlerFn native_bridge3_getSignalHandler(int signal) { in native_bridge3_getSignalHandler() argument
61 if (signal == SIGSEGV) { in native_bridge3_getSignalHandler()
/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.h45 int killProcessGroup(uid_t uid, int initialPid, int signal);
49 int killProcessGroupOnce(uid_t uid, int initialPid, int signal);
/system/extras/libperfmgr/
DNodeLooperThread.cc62 wake_cond_.signal(); in Request()
87 wake_cond_.signal(); in Cancel()
137 wake_cond_.signal(); in Stop()
/system/update_engine/
Ddbus_test_utils.h31 mock_signal_handler, mock_proxy, signal) \ argument
34 Register##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,
/system/chre/host/common/
Dsocket_server.cc263 std::signal(SIGINT, signalHandler); in serviceSocket()
264 std::signal(SIGTERM, signalHandler); in serviceSocket()
295 void SocketServer::signalHandler(int signal) { in signalHandler() argument
296 LOGD("Caught signal %d", signal); in signalHandler()
/system/core/libnativebridge/include/nativebridge/
Dnative_bridge.h92 NativeBridgeSignalHandlerFn NativeBridgeGetSignalHandler(int signal);
254 NativeBridgeSignalHandlerFn (*getSignalHandler)(int signal);
/system/sepolicy/prebuilts/api/28.0/private/
Dcrash_dump.te14 }:process { ptrace signal sigchld sigstop sigkill };
/system/core/logcat/
Dlogcat_main.cpp25 signal(SIGPIPE, exit); in main()

12345678