Home
last modified time | relevance | path

Searched refs:ss (Results 1 – 25 of 126) sorted by relevance

123456

/hardware/interfaces/automotive/can/1.0/default/libnl++/
Dprinter.cpp31 static void flagsToStream(std::stringstream& ss, __u16 nlmsg_flags, protocols::MessageGenre genre) { in flagsToStream() argument
33 auto printFlag = [&ss, &first, &nlmsg_flags](__u16 flag, const std::string& name) { in flagsToStream()
40 ss << '|'; in flagsToStream()
43 ss << name; in flagsToStream()
78 if (!first) ss << '|'; in flagsToStream()
79 ss << std::hex << nlmsg_flags << std::dec; in flagsToStream()
83 static void toStream(std::stringstream& ss, const Buffer<uint8_t> data) { in toStream() argument
86 ss << std::hex; in toStream()
90 ss << std::endl << ' ' << std::dec << std::setw(4) << i << std::hex; in toStream()
92 if (i++ > 0 || dataLen > 16) ss << ' '; in toStream()
[all …]
/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/
Dstructs.cpp24 return [flags](std::stringstream& ss, const Buffer<nlattr> attr) { in flagsToStream() argument
26 flagsToStream(ss, flags, value); in flagsToStream()
30 void flagsToStream(std::stringstream& ss, const FlagsMap& flags, uint64_t val) { in flagsToStream() argument
36 if (!first) ss << '|'; in flagsToStream()
39 ss << name; in flagsToStream()
44 if (!first) ss << '|'; in flagsToStream()
45 ss << std::hex << val << std::dec; in flagsToStream()
48 void hwaddrToStream(std::stringstream& ss, const Buffer<nlattr> attr) { in hwaddrToStream() argument
49 ss << std::hex; in hwaddrToStream()
52 if (!first) ss << ':'; in hwaddrToStream()
[all …]
Dstructs.h26 void arrayToStream(std::stringstream& ss, const Buffer<nlattr> attr) { in arrayToStream() argument
27 ss << '{'; in arrayToStream()
29 ss << it << ','; in arrayToStream()
31 ss.seekp(-1, std::ios_base::cur); in arrayToStream()
32 ss << '}'; in arrayToStream()
37 void flagsToStream(std::stringstream& ss, const FlagsMap& flags, uint64_t value);
39 void hwaddrToStream(std::stringstream& ss, const Buffer<nlattr> attr);
DMessageDefinition.h100 using ToStream = std::function<void(std::stringstream& ss, const Buffer<nlattr> attr)>;
151 virtual void dataToStream(std::stringstream& ss, const Buffer<nlmsghdr> hdr) const = 0;
189 void dataToStream(std::stringstream& ss, const Buffer<nlmsghdr> hdr) const override { in dataToStream() argument
192 ss << "{incomplete payload}"; in dataToStream()
196 toStream(ss, msg); in dataToStream()
200 virtual void toStream(std::stringstream& ss, const T& data) const = 0;
/hardware/qcom/gps/msm8909w_3100/gnss/
DXtraSystemStatusObserver.cpp56 stringstream ss; in updateLockStatus() local
57 ss << "gpslock"; in updateLockStatus()
58 ss << " " << lock; in updateLockStatus()
59 ss << "\n"; // append seperator in updateLockStatus()
60 return ( sendEvent(ss) ); in updateLockStatus()
64 stringstream ss; in updateConnectionStatus() local
65 ss << "connection"; in updateConnectionStatus()
66 ss << " " << (connected ? "1" : "0"); in updateConnectionStatus()
67 ss << " " << (int)type; in updateConnectionStatus()
68 ss << "\n"; // append seperator in updateConnectionStatus()
[all …]
/hardware/qcom/sm8150/gps/gnss/
DXtraSystemStatusObserver.cpp131 stringstream ss; in updateLockStatus() local
132 ss << "gpslock"; in updateLockStatus()
133 ss << " " << mGpsLock; in updateLockStatus()
134 string s = ss.str(); in updateLockStatus()
154 stringstream ss; in updateConnections() local
155 ss << "connection" << endl << mConnections << endl in updateConnections()
166 string s = ss.str(); in updateConnections()
177 stringstream ss; in updateTac() local
178 ss << "tac"; in updateTac()
179 ss << " " << tac.c_str(); in updateTac()
[all …]
/hardware/qcom/sm7250/gps/gnss/
DXtraSystemStatusObserver.cpp131 stringstream ss; in updateLockStatus() local
132 ss << "gpslock"; in updateLockStatus()
133 ss << " " << mGpsLock; in updateLockStatus()
134 string s = ss.str(); in updateLockStatus()
154 stringstream ss; in updateConnections() local
155 ss << "connection" << endl << mConnections << endl in updateConnections()
166 string s = ss.str(); in updateConnections()
177 stringstream ss; in updateTac() local
178 ss << "tac"; in updateTac()
179 ss << " " << tac.c_str(); in updateTac()
[all …]
/hardware/qcom/sm8150p/gps/gnss/
DXtraSystemStatusObserver.cpp124 stringstream ss; in updateLockStatus() local
125 ss << "gpslock"; in updateLockStatus()
126 ss << " " << mGpsLock; in updateLockStatus()
127 string s = ss.str(); in updateLockStatus()
147 stringstream ss; in updateConnections() local
148 ss << "connection" << endl << mConnections << endl in updateConnections()
159 string s = ss.str(); in updateConnections()
170 stringstream ss; in updateTac() local
171 ss << "tac"; in updateTac()
172 ss << " " << tac.c_str(); in updateTac()
[all …]
/hardware/qcom/sm7150/gps/gnss/
DXtraSystemStatusObserver.cpp125 stringstream ss; in updateLockStatus() local
126 ss << "gpslock"; in updateLockStatus()
127 ss << " " << mGpsLock; in updateLockStatus()
128 string s = ss.str(); in updateLockStatus()
148 stringstream ss; in updateConnections() local
149 ss << "connection" << endl << mConnections << endl in updateConnections()
160 string s = ss.str(); in updateConnections()
171 stringstream ss; in updateTac() local
172 ss << "tac"; in updateTac()
173 ss << " " << tac.c_str(); in updateTac()
[all …]
/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/generic/
DGenericMessageBase.cpp29 void GenericMessageBase::toStream(std::stringstream& ss, const genlmsghdr& data) const { in toStream() argument
37 ss << *commandName; in toStream()
41 ss << "genlmsghdr{"; in toStream()
43 ss << "cmd=" << *commandName; in toStream()
45 ss << "cmd=" << unsigned(data.cmd); in toStream()
47 ss << ", version=" << unsigned(data.version); in toStream()
48 if (data.reserved != 0) ss << ", reserved=" << data.reserved; in toStream()
49 ss << "}"; in toStream()
/hardware/qcom/sm7250/gps/utils/
Dloc_misc_utils.h224 stringstream ss; in to_string_hex() local
227 ss << "-"; in to_string_hex()
229 ss << hex << "0x" << val; in to_string_hex()
230 return ss.str(); in to_string_hex()
251 stringstream ss; variable
253 ss << (decIfTrue ? to_string(arr[i]) : to_string_hex(arr[i]));
255 ss << " ";
258 return ss.str();
/hardware/qcom/sm8150/gps/utils/
Dloc_misc_utils.h224 stringstream ss; in to_string_hex() local
227 ss << "-"; in to_string_hex()
229 ss << hex << "0x" << val; in to_string_hex()
230 return ss.str(); in to_string_hex()
251 stringstream ss; variable
253 ss << (decIfTrue ? to_string(arr[i]) : to_string_hex(arr[i]));
255 ss << " ";
258 return ss.str();
/hardware/google/aemu/base/
DGLObjectCounter.cpp66 std::stringstream ss; in printUsage() local
67 ss << "VertexBuffer: " in printUsage()
69 ss << " Texture: " in printUsage()
71 ss << " RenderBuffer: " in printUsage()
73 ss << " FrameBuffer: " in printUsage()
75 ss << " ShaderOrProgram: " in printUsage()
77 ss << " Sampler: " in printUsage()
79 ss << " Query: " << mCounter[toIndex(NamedObjectType::QUERY)].load(); in printUsage()
80 ss << " VertexArrayObject: " in printUsage()
82 ss << " TransformFeedback: " in printUsage()
[all …]
DThread_win32.cpp62 std::stringstream ss; in start() local
63 ss << "Failed to set the thread name " << name.toString(); in start()
66 ss << " for thread " << threadId; in start()
68 ss << ": "; in start()
72 ss << errorMessage.toString().c_str() << "(" << res << ")"; in start()
74 ss << res; in start()
76 ss << "."; in start()
77 ERR("%s", ss.str().c_str()); in start()
DMemoryTracker.cpp134 std::stringstream ss; in printUsage() local
136 ss << "Memory tracker not enabled\n"; in printUsage()
137 return ss.str(); in printUsage()
141 ss << "EMUGL memory allocated: "; in printUsage()
142 ss << (float)stats->mAllocated.load() / 1048576.0f; in printUsage()
143 ss << "mb live: "; in printUsage()
144 ss << (float)stats->mLive.load() / 1048576.0f; in printUsage()
145 ss << "mb\n"; in printUsage()
159 ss << it->mName + " memory allocated: "; in printUsage()
160 ss << (float)it->mStats.mAllocated.load() / 1048576.0f; in printUsage()
[all …]
/hardware/google/aemu/base/include/aemu/base/testing/
DTestTempDir.h64 std::stringstream ss; in generate_uuid_v4() local
66 ss << std::hex; in generate_uuid_v4()
68 ss << dis(gen); in generate_uuid_v4()
70 ss << "-"; in generate_uuid_v4()
72 ss << dis(gen); in generate_uuid_v4()
74 ss << "-4"; in generate_uuid_v4()
76 ss << dis(gen); in generate_uuid_v4()
78 ss << "-"; in generate_uuid_v4()
79 ss << dis2(gen); in generate_uuid_v4()
81 ss << dis(gen); in generate_uuid_v4()
[all …]
/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/route/
Dstructs.cpp21 void mapToStream(std::stringstream& ss, const Buffer<nlattr> attr) { in mapToStream() argument
24 ss << "invalid structure"; in mapToStream()
27 ss << '{' // in mapToStream()
36 void ifla_cacheinfoToStream(std::stringstream& ss, const Buffer<nlattr> attr) { in ifla_cacheinfoToStream() argument
39 ss << "invalid structure"; in ifla_cacheinfoToStream()
42 ss << '{' // in ifla_cacheinfoToStream()
Dstructs.h29 void mapToStream(std::stringstream& ss, const Buffer<nlattr> attr);
32 void ifla_cacheinfoToStream(std::stringstream& ss, const Buffer<nlattr> attr);
38 void statsToStream(std::stringstream& ss, const Buffer<nlattr> attr) { in statsToStream() argument
41 ss << "invalid structure"; in statsToStream()
44 ss << '{' // in statsToStream()
DAddr.cpp50 void Addr::toStream(std::stringstream& ss, const ifaddrmsg& data) const { in toStream() argument
51 ss << "ifaddrmsg{" in toStream()
54 flagsToStream(ss, ifaFlagsMap, data.ifa_flags); in toStream()
55 ss << ", scope=" << unsigned(data.ifa_scope) << ", index=" << data.ifa_index << "}"; in toStream()
/hardware/qcom/gps/msm8998/android/
DAGnssRil.cpp98 std::stringstream ss; in sendConnectionEvent() local
99 ss << "connection"; in sendConnectionEvent()
100 ss << " " << (connected ? "1" : "0"); in sendConnectionEvent()
101 ss << " " << (int)type; in sendConnectionEvent()
102 ss << "\n"; // append seperator in sendConnectionEvent()
104 const std::string& data = ss.str(); in sendConnectionEvent()
/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/generic/families/
DMac80211hwsim.cpp29 static void hwsim_tx_rateToStream(std::stringstream& ss, const Buffer<nlattr> attr);
77 static void hwsim_tx_rateToStream(std::stringstream& ss, const Buffer<nlattr> attr) { in hwsim_tx_rateToStream() argument
78 ss << '{'; in hwsim_tx_rateToStream()
83 ss << (int)rate.idx << ": " << (unsigned)rate.count; in hwsim_tx_rateToStream()
85 if (!first) ss << ", "; in hwsim_tx_rateToStream()
88 ss << '}'; in hwsim_tx_rateToStream()
/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/common/
DError.cpp175 void Error::toStream(std::stringstream& ss, const nlmsgerr& data) const { in toStream() argument
176 ss << "nlmsgerr{"; in toStream()
178 ss << "ACK"; in toStream()
180 ss << "error="; in toStream()
183 ss << data.error; in toStream()
185 ss << nameIt->second; in toStream()
188 ss << ", msg=" << toString({&data.msg, sizeof(data.msg)}, mProtocol, false) << "}"; in toStream()
/hardware/google/pixel/pixelstats/
DWirelessChargeStats.cpp57 std::istringstream ss; in CheckWirelessContentsAndAck() local
62 ss.str(*file_contents); in CheckWirelessContentsAndAck()
64 if (!std::getline(ss, line)) { in CheckWirelessContentsAndAck()
106 std::istringstream ss; in CalculateWirelessChargeStats() local
109 ss.str(file_contents); in CalculateWirelessChargeStats()
111 while (std::getline(ss, line)) { in CalculateWirelessChargeStats()
/hardware/google/aemu/host-common/
Dlogging.cpp30 std::ostringstream ss; in getThreadID() local
32 ss << GetCurrentThreadId(); in getThreadID()
34 ss << syscall(__NR_gettid); in getThreadID()
36 ss << std::this_thread::get_id(); in getThreadID()
38 std::string result = ss.str(); in getThreadID()
/hardware/google/graphics/common/memtrack-pixel/core/
DGpuSysfsReader.cpp17 std::stringstream ss; in readNode() local
19 ss << kSysfsDevicePath << "/" << kProcessDir << "/" << pid << "/" << node; in readNode()
21 ss << kSysfsDevicePath << "/" << node; in readNode()
22 const std::string path = ss.str(); in readNode()

123456