/system/core/libutils/ |
D | Printer.cpp | 79 void LogPrinter::printLine(const char* string) { in printLine() argument 80 if (string == NULL) { in printLine() 85 if (mIgnoreBlankLines || (*string)) { in printLine() 87 printRaw(string); in printLine() 94 void LogPrinter::printRaw(const char* string) { in printRaw() argument 95 __android_log_print(mPriority, mLogTag, "%s%s", mPrefix, string); in printRaw() 113 void FdPrinter::printLine(const char* string) { in printLine() argument 114 if (string == NULL) { in printLine() 123 fdprintf(mFd, mFormatString, mPrefix, string); in printLine() 139 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 | 152 : mString(allocFromUTF8(o.string(), o.size())) in String16() 196 return setTo(other.string()+begin, len); in setTo() 281 String8(*this).string(), pos, in insert() 282 len, myLen, String8(chrs, len).string()); in insert() 296 printf("Result (%d chrs): %s\n", size(), String8(*this).string()); in insert() 305 const char16_t* str = string(); in findFirst() 319 const char16_t* str = string(); in findLast() 335 return strzcmp16(mString, ps, prefix.string(), ps) == 0; in startsWith() 348 const char16_t* str = string(); in makeLower() 370 const char16_t* str = string(); in replaceAll()
|
D | README | 84 * tt: corresponds to the resource type (string, int, etc). Every 158 override the string/str1 resources in a package, the overlay package 159 would include a resource also named string/str1. The end user does not 257 string/str0 0x7f010000 - 258 string/str1 0x7f010001 0x7f010000 259 string/str2 0x7f010002 - 260 string/str3 0x7f010003 0x7f010001 261 string/str4 0x7f010004 - 278 0x00000003 # header; three types (string, bool, integer) in the target package 279 0x00000004 # header_block for type 0 (string) is located at offset 4 [all …]
|
D | ProcessCallStack.cpp | 219 getTimeString(mTimeUpdated).string()); in printInternal() 228 printer.printFormatLine("\"%s\" sysTid=%d", threadName.string(), tid); in printInternal()
|
/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/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);
|
D | String8.h | 66 inline const char* string() const; 207 String8& appendPath(const String8& leaf) { return appendPath(leaf.string()); } in appendPath() 214 String8 appendPathCopy(const String8& leaf) const { return appendPathCopy(leaf.string()); } in appendPathCopy() 253 inline const char* String8::string() const in string() function
|
D | String16.h | 66 inline const char16_t* string() const; 142 inline const char16_t* String16::string() const in string() function
|
/system/netd/ |
D | BandwidthController.h | 32 TetherStats(std::string intIfn, std::string extIfn, in TetherStats() 39 std::string intIface; 41 std::string extIface; 92 int getTetherStats(SocketClient *cli, TetherStats &stats, std::string &extraProcessingInfo); 103 QuotaInfo(std::string ifn, int64_t q, int64_t a) in QuotaInfo() 105 std::string ifaceName; 132 std::string makeIptablesSpecialAppCmd(IptOp op, int uid, const char *chain); 133 std::string makeIptablesQuotaCmd(IptOp op, const char *costName, int64_t quota); 165 std::string &extraProcessingInfo); 185 std::list<std::string> sharedQuotaIfaces;
|
D | BandwidthController.cpp | 180 std::string fullCmd = cmd; in runIptablesCmd() 299 std::string BandwidthController::makeIptablesSpecialAppCmd(IptOp op, int uid, const char *chain) { in makeIptablesSpecialAppCmd() 300 std::string res; in makeIptablesSpecialAppCmd() 409 std::string iptCmd; in manipulateSpecialApps() 473 std::string BandwidthController::makeIptablesQuotaCmd(IptOp op, const char *costName, int64_t quota… in makeIptablesQuotaCmd() 474 std::string res; in makeIptablesQuotaCmd() 508 std::string costString; in prepCostlyIface() 561 std::string costString; in cleanupCostlyIface() 597 std::string quotaCmd; in setInterfaceSharedQuota() 598 std::string ifaceName; in setInterfaceSharedQuota() [all …]
|
/system/extras/libc_test/ |
D | main.cpp | 255 char *string; in doStrcmpCheckRead() local 257 string = &memory[pagesize-i-1]; in doStrcmpCheckRead() 260 string[j] = other_string[j]; in doStrcmpCheckRead() 263 string[i] = '\0'; in doStrcmpCheckRead() 268 if (test_strcmp(other_string, string) != 0) { in doStrcmpCheckRead() 269 printf(" Failed at size %d, src1 %p, src2 %p\n", i, other_string, string); in doStrcmpCheckRead() 276 if (test_strcmp(string, other_string) != 0) { in doStrcmpCheckRead() 277 printf(" Failed at size %d, src1 %p, src2 %p\n", i, string, other_string); in doStrcmpCheckRead() 288 if (test_strcmp(other_string, string) == 0) { in doStrcmpCheckRead() 289 printf(" Failed at size %d, src1 %p, src2 %p\n", i, other_string, string); in doStrcmpCheckRead() [all …]
|
/system/media/camera/docs/ |
D | metadata_parser_xml.py | 94 if element.string is not None: 95 return [element.string] 108 self.metadata.insert_tag(tag['id'], tag.string) 115 languages[lang['name']] = lang.string 189 enum_notes[value_body] = notes.string 210 array_sizes.append(size.string) 233 d[i] = prop.string
|
/system/core/sh/ |
D | mystring.c | 95 prefix(const char *pfx, const char *string) in prefix() argument 98 if (*pfx++ != *string++) in prefix()
|
D | expand.c | 944 ifsbreakup(char *string, struct arglist *arglist) in ifsbreakup() argument 955 start = string; in ifsbreakup() 971 p = string + ifsp->begoff; in ifsbreakup() 974 while (p < string + ifsp->endoff) { in ifsbreakup() 1009 for (; p < string + ifsp->endoff; p++) { in ifsbreakup() 1331 patmatch(char *pattern, char *string, int squoted) in patmatch() argument 1335 return 1 - pmatch(pattern + 2, string); in patmatch() 1338 return pmatch(pattern, string, squoted); in patmatch() 1343 pmatch(char *pattern, char *string, int squoted) in pmatch() argument 1349 q = string; in pmatch()
|
D | nodetypes | 44 # string - a pointer to a nul terminated string 91 var string # the for variable 111 text string # the text of the word
|
D | input.c | 481 setinputstring(char *string, int push) in setinputstring() argument 486 parsenextc = string; in setinputstring() 487 parselleft = parsenleft = strlen(string); in setinputstring()
|
/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/security/keystore/ |
D | keystore.cpp | 249 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string()); in encode_key_length() 260 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string()); in encode_key() 826 PKCS5_PBKDF2_HMAC_SHA1(reinterpret_cast<const char*>(pw.string()), pw.length(), salt, in generateKeyFromPassword() 1130 ResponseCode responseCode = get(filepath8.string(), keyBlob, type, uid); in getKeyForName() 1139 responseCode = get(filepath8.string(), keyBlob, type, uid); in getKeyForName() 1148 strtoul(filename8.string(), &end, 10); in getKeyForName() 1153 filename8.string()); in getKeyForName() 1154 if (!hasGrant(filepath8.string(), uid)) { in getKeyForName() 1159 return get(filepath8.string(), keyBlob, type, uid); in getKeyForName() 1462 ALOGW("Could not read %s", name8.string()); in get() [all …]
|
/system/core/healthd/ |
D | BatteryMonitor.cpp | 100 int fd = open(path.string(), O_RDONLY, 0); in readFromFile() 102 KLOG_ERROR(LOG_TAG, "Could not open '%s'\n", path.string()); in readFromFile() 218 mChargerNames[i].string()); in update() 224 mChargerNames[i].string()); in update() 237 mChargerNames[i].string()); in update() 301 if (access(path.string(), R_OK) == 0) in init()
|
/system/core/toolbox/ |
D | dynarray.c | 84 STRLIST_FOREACH(list, string, free(string)); in strlist_done()
|
/system/core/adb/ |
D | OVERVIEW.TXT | 86 1. A 4-byte hexadecimal string giving the length of the payload 93 2. Send the string "000Chost:version" to the corresponding socket 101 1. For success, the 4-byte "OKAY" string 103 2. For failure, the 4-byte "FAIL" string, followed by a 104 4-byte hex length, followed by a string giving the reason 108 hex string corresponding to the server's internal version number
|
/system/core/libusbhost/ |
D | usbhost.c | 450 char string[256]; in usb_device_get_string() local 456 string[0] = 0; in usb_device_get_string() 477 string[i - 1] = buffer[i]; in usb_device_get_string() 478 string[i - 1] = 0; in usb_device_get_string() 479 return strdup(string); in usb_device_get_string()
|
/system/core/debuggerd/ |
D | debuggerd.c | 60 write_string(const char* file, const char* string) in write_string() argument 66 len = strlen(string); in write_string() 69 amt = write(fd, string, len); in write_string()
|