Searched refs:rest (Results 1 - 7 of 7) sorted by relevance

/system/core/healthd/
H A DAnimationParser.cpp40 bool remove_prefix(const std::string& line, const char* prefix, const char** rest) { argument
50 *rest = &str[start];
93 const char* rest; local
97 } else if (remove_prefix(line, animation_prefix, &rest)) {
99 if (sscanf(rest, "%d %d %n%*s%n", &anim->num_cycles, &anim->first_frame_repeats,
105 anim->animation_file.assign(&rest[start], end - start);
107 } else if (remove_prefix(line, fail_prefix, &rest)) {
108 anim->fail_file.assign(rest);
109 } else if (remove_prefix(line, clock_prefix, &rest)) {
110 if (!parse_text_field(rest,
[all...]
H A DAnimationParser.h27 bool remove_prefix(const std::string& str, const char* prefix, const char** rest);
/system/core/healthd/tests/
H A DAnimationParser_test.cpp37 const char* rest = nullptr; local
38 EXPECT_FALSE(remove_prefix(TEST_STRING, "def", &rest));
40 EXPECT_FALSE(remove_prefix(TEST_STRING, TEST_STRING, &rest));
42 EXPECT_TRUE(remove_prefix(TEST_STRING, "abc", &rest));
43 EXPECT_STREQ("def", rest);
45 EXPECT_TRUE(remove_prefix(" abcdef", "abc", &rest));
46 EXPECT_STREQ("def", rest);
/system/core/logcat/tests/
H A Dlogcat_test.cpp53 // rest(), let the logs settle.
57 static void rest() { function
91 rest();
132 rest();
1451 rest();
1489 rest();
1580 // crafted to rest at least once after, and rest between retries.
1581 for (ret = -EBUSY; ret == -EBUSY; rest()) ret = ctx.write();
1593 for (ret = -EBUSY; ret == -EBUSY; rest()) re
[all...]
/system/bt/doc/
H A Ddirectory_layout.md29 * vnd - *Vendor* - Vendor specific APIs - *to be integrated into rest of stack ?*.
/system/netd/server/
H A DBandwidthController.cpp797 char rest[MAX_IPT_OUTPUT_LINE_LEN]; local
815 iface0[0] = iface1[0] = rest[0] = packets = bytes = 0;
820 &packets, &bytes, iface0, iface1, rest);
825 &packets, &bytes, iface0, iface1, rest);
827 ALOGV("parse res=%d iface0=<%s> iface1=<%s> pkts=%" PRId64" bytes=%" PRId64" rest=<%s> orig line=<%s>", res,
828 iface0, iface1, packets, bytes, rest, buffPtr);
/system/core/liblog/tests/
H A Dliblog_test.cpp1879 static const useconds_t rest = 20 * 1000; local
1880 for (; total_time < max_time; total_time += rest) {
1881 usleep(rest); // property system does not guarantee performance.
1884 if (total_time > rest) {

Completed in 6116 milliseconds