Home
last modified time | relevance | path

Searched refs:socketFd (Results 1 – 9 of 9) sorted by relevance

/hardware/qcom/sdm845/gps/msm8998/android/
DAGnssRil.cpp61 int socketFd = -1; in createSocket() local
63 if ((socketFd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in createSocket()
71 if (::connect(socketFd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in createSocket()
73 if (::close(socketFd)) { in createSocket()
76 socketFd = -1; in createSocket()
80 return socketFd; in createSocket()
83 static inline void closeSocket(const int socketFd) { in closeSocket() argument
84 if (socketFd >= 0) { in closeSocket()
85 if(::close(socketFd)) { in closeSocket()
92 int socketFd = createSocket(); in sendConnectionEvent() local
[all …]
/hardware/qcom/gps/msm8998/android/
DAGnssRil.cpp61 int socketFd = -1; in createSocket() local
63 if ((socketFd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in createSocket()
71 if (::connect(socketFd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in createSocket()
73 if (::close(socketFd)) { in createSocket()
76 socketFd = -1; in createSocket()
80 return socketFd; in createSocket()
83 static inline void closeSocket(const int socketFd) { in closeSocket() argument
84 if (socketFd >= 0) { in closeSocket()
85 if(::close(socketFd)) { in closeSocket()
92 int socketFd = createSocket(); in sendConnectionEvent() local
[all …]
/hardware/qcom/gps/msm8909w_3100/gnss/
DXtraSystemStatusObserver.cpp88 int socketFd = createSocket(); in sendEvent() local
89 if (socketFd < 0) { in sendEvent()
98 (sent = ::send(socketFd, data.c_str() + (data.length() - remain), in sendEvent()
107 closeSocket(socketFd); in sendEvent()
114 int socketFd = -1; in createSocket() local
116 if ((socketFd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in createSocket()
124 if (::connect(socketFd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in createSocket()
126 if (::close(socketFd)) { in createSocket()
129 socketFd = -1; in createSocket()
133 return socketFd; in createSocket()
[all …]
DXtraSystemStatusObserver.h64 void closeSocket(const int32_t socketFd);
/hardware/qcom/sdm845/gps/loc_api/libloc_api_50001/
Dloc.cpp990 int socketFd = -1; in createSocket() local
992 if ((socketFd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in createSocket()
1000 if (::connect(socketFd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in createSocket()
1002 if (::close(socketFd)) { in createSocket()
1005 socketFd = -1; in createSocket()
1009 return socketFd; in createSocket()
1012 static inline void closeSocket(const int socketFd) { in closeSocket() argument
1013 if (socketFd >= 0) { in closeSocket()
1014 if(::close(socketFd)) { in closeSocket()
1021 int socketFd = createSocket(); in sendConnectionEvent() local
[all …]
/hardware/qcom/gps/loc_api/libloc_api_50001/
Dloc.cpp990 int socketFd = -1; in createSocket() local
992 if ((socketFd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in createSocket()
1000 if (::connect(socketFd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in createSocket()
1002 if (::close(socketFd)) { in createSocket()
1005 socketFd = -1; in createSocket()
1009 return socketFd; in createSocket()
1012 static inline void closeSocket(const int socketFd) { in closeSocket() argument
1013 if (socketFd >= 0) { in closeSocket()
1014 if(::close(socketFd)) { in closeSocket()
1021 int socketFd = createSocket(); in sendConnectionEvent() local
[all …]
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/
Dloc.cpp144 int socketFd = -1; in createSocket() local
146 if ((socketFd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in createSocket()
154 if (::connect(socketFd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in createSocket()
156 if (::close(socketFd)) { in createSocket()
159 socketFd = -1; in createSocket()
163 return socketFd; in createSocket()
166 static inline void closeSocket(const int socketFd) { in closeSocket() argument
167 if (socketFd >= 0) { in closeSocket()
168 if(::close(socketFd)) { in closeSocket()
175 int socketFd = createSocket(); in sendConnectionEvent() local
[all …]
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/
Dloc.cpp995 int socketFd = -1; in createSocket() local
997 if ((socketFd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in createSocket()
1005 if (::connect(socketFd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in createSocket()
1007 if (::close(socketFd)) { in createSocket()
1010 socketFd = -1; in createSocket()
1014 return socketFd; in createSocket()
1017 static inline void closeSocket(const int socketFd) { in closeSocket() argument
1018 if (socketFd >= 0) { in closeSocket()
1019 if(::close(socketFd)) { in closeSocket()
1026 int socketFd = createSocket(); in sendConnectionEvent() local
[all …]
/hardware/qcom/sdm845/gps/msm8996/loc_api/libloc_api_50001/
Dloc.cpp143 int socketFd = -1; in createSocket() local
145 if ((socketFd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in createSocket()
153 if (::connect(socketFd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in createSocket()
155 if (::close(socketFd)) { in createSocket()
158 socketFd = -1; in createSocket()
162 return socketFd; in createSocket()
165 static inline void closeSocket(const int socketFd) { in closeSocket() argument
166 if (socketFd >= 0) { in closeSocket()
167 if(::close(socketFd)) { in closeSocket()
174 int socketFd = createSocket(); in sendConnectionEvent() local
[all …]