/system/core/libutils/ |
D | Printer.cpp | 75 void LogPrinter::printLine(const char* string) { in printLine() argument 76 if (string == NULL) { in printLine() 81 if (mIgnoreBlankLines || (*string)) { in printLine() 83 printRaw(string); in printLine() 90 void LogPrinter::printRaw(const char* string) { in printRaw() argument 91 __android_log_print(mPriority, mLogTag, "%s%s", mPrefix, string); in printRaw() 109 void FdPrinter::printLine(const char* string) { in printLine() argument 110 if (string == NULL) { in printLine() 119 dprintf(mFd, mFormatString, mPrefix, string); in printLine() 135 void String8Printer::printLine(const char* string) { in printLine() argument [all …]
|
D | PropertyMap.cpp | 85 int value = strtol(stringValue.string(), & end, 10); in tryGetProperty() 88 key.string(), stringValue.string()); in tryGetProperty() 102 float value = strtof(stringValue.string(), & end); in tryGetProperty() 105 key.string(), stringValue.string()); in tryGetProperty() 124 ALOGE("Error %d opening property file %s.", status, filename.string()); in load() 139 tokenizer->getFilename().string(), tokenizer->getLineNumber(), in load() 166 ALOGD("Parsing %s: '%s'.", mTokenizer->getLocation().string(), in parse() 167 mTokenizer->peekRemainderOfLine().string()); in parse() 175 ALOGE("%s: Expected non-empty property key.", mTokenizer->getLocation().string()); in parse() 183 mTokenizer->getLocation().string()); in parse() [all …]
|
D | Tokenizer.cpp | 58 int fd = ::open(filename.string(), O_RDONLY); in open() 61 ALOGE("Error opening file '%s', %s.", filename.string(), strerror(errno)); in open() 66 ALOGE("Error getting size of file '%s', %s.", filename.string(), strerror(errno)); in open() 88 ALOGE("Error reading file '%s', %s.", filename.string(), strerror(errno)); in open() 114 result.appendFormat("%s:%d", mFilename.string(), mLineNumber); in getLocation()
|
D | String16.cpp | 149 : mString(allocFromUTF8(o.string(), o.size())) in String16() 193 return setTo(other.string()+begin, len); in setTo() 278 String8(*this).string(), pos, in insert() 279 len, myLen, String8(chrs, len).string()); in insert() 293 printf("Result (%d chrs): %s\n", size(), String8(*this).string()); in insert() 302 const char16_t* str = string(); in findFirst() 316 const char16_t* str = string(); in findLast() 332 return strzcmp16(mString, ps, prefix.string(), ps) == 0; in startsWith() 345 const char16_t* str = string(); in makeLower() 367 const char16_t* str = string(); in replaceAll()
|
/system/core/libutils/tests/ |
D | String8_test.cpp | 37 EXPECT_STREQ(tmp.string(), "Hello, world!"); in TEST_F() 46 EXPECT_STREQ(dst1.string(), "Hello, world!"); in TEST_F() 47 EXPECT_STREQ(src1.string(), "Hello, "); in TEST_F() 53 EXPECT_STREQ(dst2.string(), "Hello, world!"); in TEST_F() 54 EXPECT_STREQ(src1.string(), "Hello, "); in TEST_F() 55 EXPECT_STREQ(ssrc2.string(), "world!"); in TEST_F() 64 EXPECT_STREQ(src1.string(), "My voice is my passport."); in TEST_F() 65 EXPECT_STREQ(src2.string(), " is my passport."); in TEST_F() 70 EXPECT_STREQ(src1.string(), "My voice is my passport. Verify me."); in TEST_F() 71 EXPECT_STREQ(src2.string(), " is my passport."); in TEST_F()
|
/system/core/logd/ |
D | LogStatistics.cpp | 538 android::String8 string(" span -> size/num"); in format() local 546 oldLength = string.length(); in format() 550 string.appendFormat("%*s%s", spaces, "", android_log_id_to_name(i)); in format() 551 spaces += spaces_total + oldLength - string.length(); in format() 567 string.appendFormat("\nTotal%4llu:%02llu:%02llu.%09llu", in format() 575 oldLength = string.length(); in format() 579 string.appendFormat("%*s%zu/%zu", spaces, "", in format() 581 spaces += spaces_total + oldLength - string.length(); in format() 587 string.appendFormat("\nNow%6llu:%02llu:%02llu.%09llu", in format() 598 oldLength = string.length(); in format() [all …]
|
D | LogWhiteBlackList.cpp | 183 android::String8 string; in format() local 186 string.setTo("~!"); in format() 196 string.appendFormat(fmt, a); in format() 208 string.appendFormat(fmt, a); in format() 214 *strp = strdup(string.string()); in format()
|
/system/core/libcutils/tests/ |
D | PropertiesTest.cpp | 39 static std::string HexString(T value) { in HexString() 74 static std::string ToString(T value) { in ToString() 133 std::string maxLengthString = std::string(PROPERTY_VALUE_MAX-1, 'a'); in TEST_F() 146 std::string oneLongerString = std::string(PROPERTY_VALUE_MAX, 'a'); in TEST_F() 164 std::string maxLengthString = std::string(PROPERTY_VALUE_MAX-1, 'a'); in TEST_F() 165 std::string oneLongerString = std::string(PROPERTY_VALUE_MAX, 'a'); in TEST_F() 218 const std::string longMaxString = ToString(INT64_MAX); in TEST_F() 219 const std::string longStringOverflow = longMaxString + "0"; in TEST_F() 221 const std::string longMinString = ToString(INT64_MIN); in TEST_F() 222 const std::string longStringUnderflow = longMinString + "0"; in TEST_F() [all …]
|
/system/netd/server/ |
D | Network.h | 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;
|
D | BandwidthController.h | 32 TetherStats(std::string intIfn, std::string extIfn, in TetherStats() 39 std::string intIface; 41 std::string extIface; 93 int getTetherStats(SocketClient *cli, TetherStats &stats, std::string &extraProcessingInfo); 104 QuotaInfo(std::string ifn, int64_t q, int64_t a) in QuotaInfo() 106 std::string ifaceName; 133 std::string makeIptablesSpecialAppCmd(IptOp op, int uid, const char *chain); 134 std::string makeIptablesQuotaCmd(IptOp op, const char *costName, int64_t quota); 166 std::string &extraProcessingInfo); 186 std::list<std::string> sharedQuotaIfaces;
|
D | PhysicalNetwork.cpp | 26 WARN_UNUSED_RESULT int addToDefault(unsigned netId, const std::string& interface, in addToDefault() 38 WARN_UNUSED_RESULT int removeFromDefault(unsigned netId, const std::string& interface, in removeFromDefault() 72 for (const std::string& interface : mInterfaces) { in setPermission() 81 for (const std::string& interface : mInterfaces) { in setPermission() 98 for (const std::string& interface : mInterfaces) { in addAsDefault() 111 for (const std::string& interface : mInterfaces) { in removeAsDefault() 124 int PhysicalNetwork::addInterface(const std::string& interface) { in addInterface() 142 int PhysicalNetwork::removeInterface(const std::string& interface) { in removeInterface()
|
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;
|
D | Network.cpp | 32 bool Network::hasInterface(const std::string& interface) const { in hasInterface() 36 const std::set<std::string>& Network::getInterfaces() const { in getInterfaces() 44 std::string interface = *mInterfaces.begin(); in clearInterfaces()
|
D | VirtualNetwork.cpp | 44 for (const std::string& interface : mInterfaces) { in addUsers() 56 for (const std::string& interface : mInterfaces) { in removeUsers() 71 int VirtualNetwork::addInterface(const std::string& interface) { in addInterface() 84 int VirtualNetwork::removeInterface(const std::string& interface) { in removeInterface()
|
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;
|
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;
|
D | LocalNetwork.cpp | 34 int LocalNetwork::addInterface(const std::string& interface) { in addInterface() 46 int LocalNetwork::removeInterface(const std::string& interface) { in removeInterface()
|
D | BandwidthController.cpp | 184 std::string fullCmd = cmd; in runIptablesCmd() 303 std::string BandwidthController::makeIptablesSpecialAppCmd(IptOp op, int uid, const char *chain) { in makeIptablesSpecialAppCmd() 304 std::string res; in makeIptablesSpecialAppCmd() 412 std::string iptCmd; in manipulateSpecialApps() 476 std::string BandwidthController::makeIptablesQuotaCmd(IptOp op, const char *costName, int64_t quota… in makeIptablesQuotaCmd() 477 std::string res; in makeIptablesQuotaCmd() 511 std::string costString; in prepCostlyIface() 564 std::string costString; in cleanupCostlyIface() 599 std::string quotaCmd; in setInterfaceSharedQuota() 600 std::string ifaceName; in setInterfaceSharedQuota() [all …]
|
/system/core/include/utils/ |
D | Printer.h | 29 virtual void printLine(const char* string = "") = 0; 52 virtual void printLine(const char* string); 55 void printRaw(const char* string); 72 virtual void printLine(const char* string); 96 virtual void printLine(const char* string); 110 virtual void printLine(const char* string);
|
/system/core/include/backtrace/ |
D | Backtrace.h | 43 std::string func_name; // The function name associated with this pc, NULL if not found. 79 virtual std::string GetFunctionName(uintptr_t pc, uintptr_t* offset); 89 virtual std::string FormatFrameData(size_t frame_num); 90 virtual std::string FormatFrameData(const backtrace_frame_data_t* frame);
|
/system/media/camera/docs/ |
D | metadata_parser_xml.py | 111 if element.string is not None: 112 return [element.string] 125 self.metadata.insert_tag(tag['id'], tag.string) 132 languages[lang['name']] = lang.string 225 enum_notes[value_body] = notes.string 247 array_sizes.append(size.string) 270 d[i] = prop.string
|
/system/extras/memtrack/ |
D | memtrack.h | 51 std::string name; 63 typedef std::map<std::string, process_info_t> processes_t; 70 typedef std::map<std::string, cur_process_info_t> cur_processes_t;
|
/system/core/libziparchive/ |
D | zip_archive_test.cc | 27 static std::string test_data_dir; 29 static const std::string kMissingZip = "missing.zip"; 30 static const std::string kValidZip = "valid.zip"; 43 static int32_t OpenArchiveWrapper(const std::string& name, in OpenArchiveWrapper() 45 const std::string abs_path = test_data_dir + "/" + name; in OpenArchiveWrapper() 49 static void AssertNameEquals(const std::string& name_str, in AssertNameEquals()
|
/system/core/libbacktrace/ |
D | BacktraceImpl.cpp | 66 std::string Backtrace::GetFunctionName(uintptr_t pc, uintptr_t* offset) { in GetFunctionName() 67 std::string func_name = impl_->GetFunctionNameRaw(pc, offset); in GetFunctionName() 93 std::string Backtrace::FormatFrameData(size_t frame_num) { in FormatFrameData() 100 std::string Backtrace::FormatFrameData(const backtrace_frame_data_t* frame) { in FormatFrameData()
|
D | BacktraceImpl.h | 33 virtual std::string GetFunctionNameRaw(uintptr_t pc, uintptr_t* offset) = 0; 43 inline std::string GetFunctionName(uintptr_t pc, uintptr_t* offset) { in GetFunctionName()
|