/system/netd/server/ |
H A D | Network.h | 23 #include <string> 42 bool hasInterface(const std::string& interface) const; 43 const std::set<std::string>& getInterfaces() const; 46 virtual int addInterface(const std::string& interface) WARN_UNUSED_RESULT = 0; 47 virtual int removeInterface(const std::string& interface) WARN_UNUSED_RESULT = 0; 54 std::set<std::string> mInterfaces;
|
H A D | LocalNetwork.h | 29 int addInterface(const std::string& interface) override WARN_UNUSED_RESULT; 30 int removeInterface(const std::string& interface) override WARN_UNUSED_RESULT;
|
H A D | Network.cpp | 32 bool Network::hasInterface(const std::string& interface) const { 36 const std::set<std::string>& Network::getInterfaces() const { 42 // Make a copy of the string, so removeInterface() doesn't lose its parameter when it 43 // removes the string from the set. 44 std::string interface = *mInterfaces.begin();
|
H A D | PhysicalNetwork.h | 29 virtual int addFallthrough(const std::string& physicalInterface, 31 virtual int removeFallthrough(const std::string& physicalInterface, 47 int addInterface(const std::string& interface) override WARN_UNUSED_RESULT; 48 int removeInterface(const std::string& interface) override WARN_UNUSED_RESULT;
|
H A D | BandwidthController.h | 20 #include <string> 32 TetherStats(std::string intIfn, std::string extIfn, 39 std::string intIface; 41 std::string extIface; 45 * Allocates a new string representing this: 93 int getTetherStats(SocketClient *cli, TetherStats &stats, std::string &extraProcessingInfo); 104 QuotaInfo(std::string ifn, int64_t q, int64_t a) 106 std::string ifaceName; 133 std::string makeIptablesSpecialAppCm [all...] |
H A D | LocalNetwork.cpp | 34 int LocalNetwork::addInterface(const std::string& interface) { 46 int LocalNetwork::removeInterface(const std::string& interface) {
|
H A D | NatController.h | 22 #include <string> 39 std::list<std::string> ifacePairList;
|
H A D | PhysicalNetwork.cpp | 26 WARN_UNUSED_RESULT int addToDefault(unsigned netId, const std::string& interface, 38 WARN_UNUSED_RESULT int removeFromDefault(unsigned netId, const std::string& interface, 72 for (const std::string& interface : mInterfaces) { 81 for (const std::string& interface : mInterfaces) { 98 for (const std::string& interface : mInterfaces) { 111 for (const std::string& interface : mInterfaces) { 124 int PhysicalNetwork::addInterface(const std::string& interface) { 142 int PhysicalNetwork::removeInterface(const std::string& interface) {
|
H A D | VirtualNetwork.h | 44 int addInterface(const std::string& interface) override WARN_UNUSED_RESULT; 45 int removeInterface(const std::string& interface) override WARN_UNUSED_RESULT;
|
H A D | FirewallController.h | 20 #include <string>
|
H A D | VirtualNetwork.cpp | 44 for (const std::string& interface : mInterfaces) { 56 for (const std::string& interface : mInterfaces) { 71 int VirtualNetwork::addInterface(const std::string& interface) { 84 int VirtualNetwork::removeInterface(const std::string& interface) {
|
/system/core/libutils/ |
H A D | Printer.cpp | 24 #include <string.h> 49 ALOGE("%s: Failed to format string", __FUNCTION__); 75 void LogPrinter::printLine(const char* string) { argument 76 if (string == NULL) { 77 ALOGW("%s: NULL string passed in", __FUNCTION__); 81 if (mIgnoreBlankLines || (*string)) { 83 printRaw(string); 90 void LogPrinter::printRaw(const char* string) { argument 91 __android_log_print(mPriority, mLogTag, "%s%s", mPrefix, string); 109 void FdPrinter::printLine(const char* string) { argument 135 printLine(const char* string) argument 156 printLine(const char* string) argument [all...] |
H A D | PropertyMap.cpp | 20 #include <string.h> 85 int value = strtol(stringValue.string(), & end, 10); 88 key.string(), stringValue.string()); 102 float value = strtof(stringValue.string(), & end); 105 key.string(), stringValue.string()); 124 ALOGE("Error %d opening property file %s.", status, filename.string()); 139 tokenizer->getFilename().string(), tokenizer->getLineNumber(), 166 ALOGD("Parsing %s: '%s'.", mTokenizer->getLocation().string(), [all...] |
/system/core/libutils/tests/ |
H A D | String8_test.cpp | 37 EXPECT_STREQ(tmp.string(), "Hello, world!"); 46 EXPECT_STREQ(dst1.string(), "Hello, world!"); 47 EXPECT_STREQ(src1.string(), "Hello, "); 53 EXPECT_STREQ(dst2.string(), "Hello, world!"); 54 EXPECT_STREQ(src1.string(), "Hello, "); 55 EXPECT_STREQ(ssrc2.string(), "world!"); 64 EXPECT_STREQ(src1.string(), "My voice is my passport."); 65 EXPECT_STREQ(src2.string(), " is my passport."); 67 // Adding const char* to the previous string. 70 EXPECT_STREQ(src1.string(), "M [all...] |
/system/core/libbacktrace/ |
H A D | UnwindPtrace.h | 20 #include <string> 33 virtual std::string GetFunctionNameRaw(uintptr_t pc, uintptr_t* offset);
|
H A D | UnwindCurrent.h | 20 #include <string> 34 virtual std::string GetFunctionNameRaw(uintptr_t pc, uintptr_t* offset);
|
/system/core/toolbox/ |
H A D | start.c | 2 #include <string.h>
|
H A D | stop.c | 2 #include <string.h>
|
/system/core/include/utils/ |
H A D | Printer.h | 27 // Print a new line specified by 'string'. \n is appended automatically. 28 // -- Assumes that the string has no new line in it. 29 virtual void printLine(const char* string = "") = 0; 31 // Print a new line specified by the format string. \n is appended automatically. 32 // -- Assumes that the resulting string has no new line in it. 52 virtual void printLine(const char* string); 55 void printRaw(const char* string); 68 // - In addition, each line will be prefixed with the 'prefix' string. 72 virtual void printLine(const char* string); 91 // - In addition, each line will be prefixed with the 'prefix' string [all...] |
/system/core/libcutils/tests/ |
H A D | PropertiesTest.cpp | 23 #include <string> 39 static std::string HexString(T value) { 74 static std::string ToString(T value) { 122 // Set to empty string => get returns default always 133 std::string maxLengthString = std::string(PROPERTY_VALUE_MAX-1, 'a'); 146 std::string oneLongerString = std::string(PROPERTY_VALUE_MAX, 'a'); 164 std::string maxLengthString = std::string(PROPERTY_VALUE_MA [all...] |
/system/core/fastboot/ |
H A D | util_windows.c | 31 #include <string.h>
|
H A D | util_linux.c | 31 #include <string.h>
|
/system/core/libprocessgroup/ |
H A D | cleanup.cpp | 16 #include <string.h>
|
/system/extras/tests/bionic/libc/common/ |
H A D | test_gethostname.c | 30 #include <string.h>
|
/system/core/logd/ |
H A D | LogStatistics.cpp | 522 android::String8 string(" span -> size/num"); 530 oldLength = string.length(); 534 string.appendFormat("%*s%s", spaces, "", android_log_id_to_name(i)); 535 spaces += spaces_total + oldLength - string.length(); 549 string.appendFormat("\nTotal%4llu:%02llu:%02llu.%09llu", 557 oldLength = string.length(); 561 string.appendFormat("%*s%zu/%zu", spaces, "", 563 spaces += spaces_total + oldLength - string.length(); 568 string.appendFormat("\nNow%6llu:%02llu:%02llu.%09llu", 579 oldLength = string [all...] |