/system/bt/btcore/src/ |
H A D | bdaddr.c | 22 #include <string.h> 47 const char *bdaddr_to_string(const bt_bdaddr_t *addr, char *string, size_t size) { argument 49 assert(string != NULL); 55 sprintf(string, "%02x:%02x:%02x:%02x:%02x:%02x", 58 return string; 61 bool string_is_bdaddr(const char *string) { argument 62 assert(string != NULL); 64 size_t len = strlen(string); 70 if (((i + 1) % 3) == 0 && string[i] != ':') 74 if (((i + 1) % 3) != 0 && !isxdigit(string[ 80 string_to_bdaddr(const char *string, bt_bdaddr_t *addr) argument [all...] |
H A D | uuid.c | 22 #include <string.h> 31 char string[0]; member in struct:uuid_string_t 54 return (const char *)uuid_string->string; 132 char *string = uuid_string->string; local 135 string += sprintf(string, "%02x", uuid->uu[i]); 137 string += sprintf(string, "-"); 139 string [all...] |
/system/core/include/utils/ |
H A D | String16.h | 40 //! This is a string holding UTF-16 characters. 66 inline const char16_t* string() const; 142 inline const char16_t* String16::string() const function in class:android::String16
|
H A D | String8.h | 24 #include <string.h> // for strcmp 34 //! This is a string holding UTF-8 characters. Does not allow the value more 65 inline const char* string() const; 131 // return true if this string contains the specified substring 145 * These methods operate on the string as if it were a path name. 213 String8& appendPath(const String8& leaf) { return appendPath(leaf.string()); } 216 * Like appendPath(), but does not affect this string. Returns a new one instead. 220 String8 appendPathCopy(const String8& leaf) const { return appendPathCopy(leaf.string()); } 223 * Converts all separators in this string to /, the default path separator. 259 inline const char* String8::string() cons function in class:android::String8 [all...] |
/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...] |
/system/core/logd/ |
H A D | LogWhiteBlackList.cpp | 39 std::string Prune::format() { 50 return std::string("/"); 89 std::string filter; 218 std::string PruneList::format() { 222 std::string string; local 225 string = "~!"; 228 string += " ~1000/!"; 235 string += android::base::StringPrintf(fmt, (*it).format().c_str()); 242 string [all...] |
/system/bt/vendor_libs/test_vendor_lib/scripts/ |
H A D | test_channel.py | 43 import string namespace 52 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \ 53 string.digits) for _ in range(DEVICE_NAME_LENGTH)) 56 return ''.join(random.SystemRandom().choice(string.digits) for _ in \ 135 explicit name or address is not provided, a random string of characters
|
/system/extras/tests/net_test/ |
H A D | cstruct.py | 50 import string namespace 116 # Initializing from a string. 119 raise TypeError("%s requires string of length %d, got %d" % 169 c not in string.printable for c in value):
|
/system/connectivity/shill/ |
H A D | eap_credentials.cc | 20 #include <string> 42 using std::string; 45 using std::string; 51 static string ObjectID(const EapCredentials* e) { return "(eap_credentials)"; } 86 string ca_cert = ca_cert_; 150 // is a uint32_t, not a string. 222 bool EapCredentials::IsEapAuthenticationProperty(const string property) { 286 void EapCredentials::Load(StoreInterface* storage, const string& id) { 295 string key_management; 337 void EapCredentials::Save(StoreInterface* storage, const string 502 HelpRegisterDerivedString( PropertyStore* store, const string& name, string(EapCredentials::*get)(Error* error), bool(EapCredentials::*set)(const string&, Error*)) argument 513 HelpRegisterWriteOnlyDerivedString( PropertyStore* store, const string& name, bool(EapCredentials::*set)(const string&, Error*), void(EapCredentials::*clear)(Error* error), const string* default_value) argument [all...] |
H A D | property_store_unittest.cc | 22 #include <string> 44 using std::string; 65 const brillo::Any PropertyStoreTest::kStringV = brillo::Any(string()); 98 string()) { function in namespace:shill 138 PropertyStore* store, const string& name, Error* error); 192 PropertyStore* store, const string& name, Error* error) { 198 PropertyStore* store, const string& name, Error* error) { 204 PropertyStore* store, const string& name, Error* error) { 209 template<> bool PropertyStoreTypedTest<string>::SetProperty( 210 PropertyStore* store, const string [all...] |
H A D | service.cc | 25 #include <string> 58 using std::string; 65 static string ObjectID(const Service* s) { return s->GetRpcIdentifier(); } 340 string log_message = base::StringPrintf( 366 void Service::ActivateCellularModem(const string& /*carrier*/, 448 void Service::SetPortalDetectionFailure(const string& phase, 449 const string& status) { 504 string Service::GetRpcIdentifier() const { 508 string Service::GetLoadableStorageIdentifier( 518 const string i 1363 HelpRegisterDerivedString( const string& name, string(Service::*get)(Error* error), bool(Service::*set)(const string&, Error*)) argument [all...] |
H A D | manager.cc | 24 #include <string> 90 using std::string; 97 static string ObjectID(const Manager* m) { return "manager"; } 127 const string& run_directory, 128 const string& storage_directory, 129 const string& user_storage_directory) 250 void Manager::SetBlacklistedDevices(const vector<string>& blacklisted_devices) { 254 void Manager::SetWhitelistedDevices(const vector<string>& whitelisted_devices) { 361 string path; 374 void Manager::CreateProfile(const string 1771 HelpRegisterDerivedString( const string& name, string(Manager::*get)(Error* error), bool(Manager::*set)(const string&, Error*)) argument [all...] |
/system/sepolicy/tools/sepolicy-analyze/ |
H A D | neverallow.c | 466 static int check_neverallows_string(policydb_t *policydb, char *string, size_t len) argument 469 text = string;
|
/system/core/adb/ |
H A D | test_device.py | 30 import string namespace 273 shell_args: List of string arguments to `adb shell`. 454 large_input = '\n'.join(c * 100 for c in (string.ascii_letters + 455 string.digits)) 577 def compute_md5(string): 579 hsh.update(string)
|
H A D | transport.cpp | 26 #include <string.h> 51 static std::string dump_packet(const char* name, const char* func, apacket* p) { 82 std::string result = android::base::StringPrintf("%s: %s: [%s] arg0=%s arg1=%s (len=%d) ", 371 static int device_tracker_send(device_tracker* tracker, const std::string& string) { argument 375 snprintf(reinterpret_cast<char*>(p->data), 5, "%04x", static_cast<int>(string.size())); 376 memcpy(&p->data[4], string.data(), string.size()); 377 p->len = 4 + string.size(); 389 std::string transport [all...] |
/system/core/include/log/ |
H A D | log.h | 569 char *string; member in union:__anon1534::__anon1535 623 /* XXX Macros to work around syntax errors in places where format string 686 * Send a simple string to the log.
|
/system/core/libnetutils/ |
H A D | ifc_utils.c | 20 #include <string.h> 49 #include <string.h> 103 int string_to_ip(const char *string, struct sockaddr_storage *ss) { argument 116 ret = getaddrinfo(string, NULL, &hints, &ai); 290 // Convert string representation to sockaddr_storage.
|
/system/core/libpixelflinger/codeflinger/ |
H A D | ARMAssembler.cpp | 108 void ARMAssembler::comment(const char* string) argument 110 mComments.add(mPC, string);
|
H A D | ARMAssemblerProxy.cpp | 68 void ARMAssemblerProxy::comment(const char* string) { argument 69 mTarget->comment(string);
|
H A D | MIPS64Assembler.cpp | 113 void ArmToMips64Assembler::comment(const char* string) argument 115 mMips->comment(string);
|
H A D | Arm64Assembler.cpp | 33 #include <string.h> 256 void ArmToArm64Assembler::comment(const char* string) argument 258 mComments.add(mPC, string); 259 LOG_INSTR("//%s\n", string);
|
H A D | MIPSAssembler.cpp | 132 void ArmToMipsAssembler::comment(const char* string) argument 134 mMips->comment(string); 1372 void MIPSAssembler::comment(const char* string) argument 1374 mComments.add(pc(), string); local
|
/system/media/audio_route/ |
H A D | audio_route.c | 25 #include <string.h> 420 static int mixer_enum_string_to_value(struct mixer_ctl *ctl, const char *string) argument 426 if (strcmp(mixer_ctl_get_enum_string(ctl, i), string) == 0)
|
/system/core/libusbhost/ |
H A D | usbhost.c | 35 #include <string.h> 59 // Some devices fail to send string descriptors if we attempt reading > 255 bytes 454 char string[256]; local 462 string[0] = 0; 480 // skip first word, and copy the rest to the string, changing shorts to bytes. 483 string[i - 1] = buffer[i]; 484 string[i - 1] = 0; 485 return strdup(string);
|
/system/connectivity/shill/wifi/ |
H A D | wifi_service.cc | 21 #include <string> 54 using std::string; 61 static string ObjectID(const WiFiService* w) { return w->GetRpcIdentifier(); } 86 const string& mode, 87 const string& security, 141 string ssid_string( 218 void WiFiService::SetEAPKeyManagement(const string& key_management) { 258 string WiFiService::GetStorageIdentifier() const { 262 bool WiFiService::SetPassphrase(const string& passphrase, Error* error) { 282 const string 552 HelpRegisterDerivedString( const string& name, string(WiFiService::*get)(Error* error), bool(WiFiService::*set)(const string&, Error*)) argument 561 HelpRegisterWriteOnlyDerivedString( const string& name, bool(WiFiService::*set)(const string&, Error*), void(WiFiService::*clear)(Error* error), const string* default_value) argument [all...] |