/system/core/libnativebridge/tests/ |
H A D | DummyNativeBridge2.cpp | 21 #include <signal.h> 59 extern "C" android::NativeBridgeSignalHandlerFn native_bridge2_get_signal_handler(int signal) { argument 60 if (signal == SIGSEGV) {
|
H A D | DummyNativeBridge3.cpp | 21 #include <signal.h> 60 extern "C" android::NativeBridgeSignalHandlerFn native_bridge3_getSignalHandler(int signal) { argument 61 if (signal == SIGSEGV) {
|
/system/core/libsparse/ |
H A D | simg_dump.py | 22 import signal namespace 38 signal.signal(signal.SIGPIPE, signal.SIG_DFL)
|
/system/bt/test/suite/rfcomm/ |
H A D | rfcomm_unittest.cc | 44 sock_connect_signal_t signal; local 48 len = read(fd, &signal, sizeof(signal)); 49 EXPECT_TRUE(len == sizeof(signal)) 50 << "Connection signal not read from RFCOMM socket. Bytes read: " << len; 52 EXPECT_TRUE(signal.bd_addr == bt_remote_bdaddr_) 54 EXPECT_TRUE(channel == signal.channel) 56 << signal.channel; 86 sock_connect_signal_t signal; local 94 len = read(fd, &signal, sizeo [all...] |
/system/core/libmemunreachable/ |
H A D | ScopedSignalHandler.h | 21 #include <signal.h> 39 void install(int signal, F&& f) { argument 43 [=](int signal, siginfo_t* si, void* uctx) { f(*this, signal, si, uctx); }); 46 act.sa_sigaction = [](int signal, siginfo_t* si, void* uctx) { handler_(signal, si, uctx); }; 49 int ret = sigaction(signal, &act, &old_act_); 54 signal_ = signal;
|
H A D | HeapWalker.cpp | 164 void HeapWalker::HandleSegFault(ScopedSignalHandler& handler, int signal, siginfo_t* si, argument 171 MEM_ALOGW("failed to read page at %p, signal %d", si->si_addr, signal);
|
H A D | ThreadCapture.cpp | 87 bool ReleaseThread(pid_t tid, unsigned int signal); 89 void PtraceDetach(pid_t tid, unsigned int signal); 178 // Detatches from a thread, delivering signal if nonzero, logs on error 179 void ThreadCaptureImpl::PtraceDetach(pid_t tid, unsigned int signal) { argument 180 void* sig_ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(signal)); 271 unsigned int signal = WSTOPSIG(status); local 273 switch (signal) { 284 MEM_ALOGE("unexpected signal %d with PTRACE_EVENT_STOP for thread %d of process %d", signal, 289 // signal 305 ReleaseThread(pid_t tid, unsigned int signal) argument [all...] |
/system/core/toolbox/ |
H A D | toolbox.c | 1 #include <signal.h> 21 static void SIGPIPE_handler(int signal) { argument 33 signal(SIGPIPE, SIGPIPE_handler);
|
/system/tools/hidl/test/ |
H A D | hidl_test_servers.cpp | 42 #include <signal.h> 64 void signal_handler_server(int signal) { argument 65 if (signal == SIGTERM) { 77 signal(SIGTERM, signal_handler_server); 102 void signal_handler(int signal) { argument 103 if (signal == SIGTERM) { 118 signal(SIGTERM, signal_handler);
|
/system/connectivity/wificond/ |
H A D | main.cpp | 55 LOG(FATAL) << "Only instantiate one signal handler per process!"; 58 std::signal(SIGINT, &ScopedSignalHandler::LeaveLoop); 59 std::signal(SIGTERM, &ScopedSignalHandler::LeaveLoop); 63 std::signal(SIGINT, SIG_DFL); 64 std::signal(SIGTERM, SIG_DFL); 70 static void LeaveLoop(int signal) { argument
|
/system/core/debuggerd/ |
H A D | signal_sender.cpp | 17 #define LOG_TAG "debuggerd-signal" 21 #include <signal.h> 39 int signal; member in struct:signal_message 70 ALOGE("debuggerd: attempted to start signal sender multiple times"); 76 ALOGE("debuggerd: failed to create socketpair for signal sender: %s", strerror(errno)); 83 ALOGE("debuggerd: failed to initialize signal sender: fork failed: %s", strerror(errno)); 94 ALOGE("debuggerd: signal sender failed to read from socket"); 97 ALOGE("debuggerd: signal sender read unexpected number of bytes: %d", rc); 101 // Report success after sending a signal 104 if (syscall(SYS_tgkill, msg.pid, msg.tid, msg.signal) ! 151 send_signal(pid_t pid, pid_t tid, int signal) argument [all...] |
H A D | crash_dump.cpp | 106 static bool activity_manager_notify(pid_t pid, int signal, const std::string& amfd_data) { argument 130 // pid and signal number, followed by the raw text of the dump, culminating 137 datum = htonl(signal); 139 PLOG(ERROR) << "AM signal write failed"; 222 PLOG(FATAL) << "failed to set signal mask"; 273 // Reparent ourselves to init, so that the signal handler can waitpid on the 372 // in ptrace-stopped state. After resumption, the triggering signal that has 383 printf("failed to wait for signal in tid %d: %s\n", main_tid, strerror(errno)); 426 // signal. 433 PLOG(ERROR) << "failed to resend signal " << sign [all...] |
/system/core/include/utils/ |
H A D | Condition.h | 71 void signal(); 73 void signal(WakeUpType type) { function in class:android::Condition 75 signal(); 150 inline void Condition::signal() { function in class:android::Condition
|
/system/core/libutils/include/utils/ |
H A D | Condition.h | 71 void signal(); 73 void signal(WakeUpType type) { function in class:android::Condition 75 signal(); 150 inline void Condition::signal() { function in class:android::Condition
|
/system/bt/stack/rfcomm/ |
H A D | port_utils.cc | 420 uint8_t signal) { 421 uint8_t changed_signals = (signal ^ old_signals); 427 if (signal & PORT_DTRDSR_ON) events |= PORT_EV_DSRS; 433 if (signal & PORT_CTSRTS_ON) events |= PORT_EV_CTSS; 441 if (signal & PORT_DCD_ON) events |= PORT_EV_RLSDS; 419 port_get_signal_changes(tPORT* p_port, uint8_t old_signals, uint8_t signal) argument
|
H A D | port_api.cc | 191 RFCOMM_TRACE_EVENT("RFCOMM_CreateConnection dlci:%d signal state:0x%x", dlci, 690 * signal = specify the function to be passed 693 int PORT_Control(uint16_t handle, uint8_t signal) { argument 697 RFCOMM_TRACE_API("PORT_Control() handle:%d signal:0x%x", handle, signal); 713 switch (signal) { 747 if (signal == PORT_BREAK) 925 RFCOMM_TRACE_API("PORT_GetModemStatus() handle:%d signal:%x", handle,
|
/system/chre/host/common/ |
H A D | socket_server.cc | 263 std::signal(SIGINT, signalHandler); 264 std::signal(SIGTERM, signalHandler); 295 void SocketServer::signalHandler(int signal) { argument 296 LOGD("Caught signal %d", signal);
|
/system/core/debuggerd/client/ |
H A D | debuggerd_client.cpp | 20 #include <signal.h> 46 const int signal = (dump_type == kDebuggerdJavaBacktrace) ? SIGQUIT : DEBUGGER_SIGNAL; local 50 if (sigqueue(pid, signal, val) != 0) { 51 PLOG(ERROR) << "libdebuggerd_client: failed to send signal to pid " << pid;
|
/system/vold/ |
H A D | Process.cpp | 28 #include <signal.h> 173 extern "C" void vold_killProcessesWithOpenFiles(const char *path, int signal) { argument 174 Process::killProcessesWithOpenFiles(path, signal); 180 int Process::killProcessesWithOpenFiles(const char *path, int signal) { argument 214 if (signal != 0) { 215 SLOGW("Sending %s to process %d", strsignal(signal), pid); 216 kill(pid, signal);
|
/system/connectivity/wificond/scanning/ |
H A D | scan_utils.cpp | 160 int32_t signal; local 161 if (!bss.GetAttributeValue(NL80211_BSS_SIGNAL_MBM, &signal)) { 179 NativeScanResult(ssid, bssid, ie, freq, signal,
|
/system/extras/alloc-stress/ |
H A D | alloc-stress.cpp | 65 void signal() { function in class:Pipe 198 p.signal(); 214 //;cout << getpid() << ":" << "parent signal" << endl; 215 p.signal();
|
/system/libhwbinder/vts/performance/ |
H A D | PerfTest.h | 39 inline void signal() { function in class:Pipe
|
H A D | Benchmark_throughput.cpp | 69 void signal() { function in class:Pipe 191 p.signal(); 203 p.signal(); 248 p.signal(); 295 v[i].signal();
|
/system/core/libprocessgroup/ |
H A D | processgroup.cpp | 252 static int doKillProcessGroupOnce(uid_t uid, int initialPid, int signal) { argument 300 if (kill(-pgid, signal) == -1) { 301 PLOG(WARNING) << "kill(" << -pgid << ", " << signal << ") failed"; local 310 if (kill(pid, signal) == -1) { 311 PLOG(WARNING) << "kill(" << pid << ", " << signal << ") failed"; local 318 static int killProcessGroup(uid_t uid, int initialPid, int signal, int retries) { argument 323 while ((processes = doKillProcessGroupOnce(uid, initialPid, signal)) > 0) { 364 int killProcessGroup(uid_t uid, int initialPid, int signal) { argument 365 return killProcessGroup(uid, initialPid, signal, 40 /*retries*/); 368 int killProcessGroupOnce(uid_t uid, int initialPid, int signal) { argument [all...] |
/system/nfc/src/adaptation/ |
H A D | NfcAdaptation.cpp | 276 ** Function: NfcAdaptation::signal() 278 ** Description: signal the CondVar to release the thread that is waiting 283 void NfcAdaptation::signal() { mCondVar.signal(); } function in class:NfcAdaptation 323 NfcAdaptation::GetInstance().signal(); 622 mHalOpenCompletedEvent.signal(); 627 mHalCloseCompletedEvent.signal(); 740 ** Function: ThreadCondVar::signal() 742 ** Description: signal the mCondVar 747 void ThreadCondVar::signal() { function in class:ThreadCondVar [all...] |