| /prebuilts/go/darwin-x86/test/fixedbugs/ |
| bug331.go | 11 func f() (_ string, x float64, err error) { 15 func g() (_ string, x float64, err error) { 19 var _ func() (string, float64, error) = f 20 var _ func() (string, float64, error) = g 32 bug331.go:12: cannot use "hello" (type string) as type float64 in assignment 34 float64 does not implement os.Error (missing String method)
|
| /prebuilts/go/linux-x86/src/cmd/compile/internal/gc/testdata/ |
| string.go | 5 // string_ssa.go tests string operations. 11 func testStringSlice1_ssa(a string, i, j int) string { 16 func testStringSlice2_ssa(a string, i, j int) string { 21 func testStringSlice12_ssa(a string, i, j int) string { 27 fn func(string, int, int) string 28 s string [all...] |
| /prebuilts/go/linux-x86/src/cmd/compile/internal/types/ |
| pkg.go | 16 var pkgMap = make(map[string]*Pkg) 19 Path string // string literal used in import statement, e.g. "runtime/internal/sys" 20 Name string // package name, e.g. "sys" 22 Prefix string // escaped path for use in symbol table 25 Syms map[string]*Sym 29 // Unless name is the empty string, if the package exists already, 31 func NewPkg(path, name string) *Pkg { 43 p.Syms = make(map[string]*Sym) 69 Syms: make(map[string]*Sym) [all...] |
| /prebuilts/go/linux-x86/src/os/ |
| env.go | 14 // Expand replaces ${var} or $var in the string based on the mapping function. 16 func Expand(s string, mapping func(string) string) string { 29 return string(buf) + s[i:] 32 // ExpandEnv replaces ${var} or $var in the string according to the values 34 // variables are replaced by the empty string. 35 func ExpandEnv(s string) string { [all...] |
| /prebuilts/go/linux-x86/src/runtime/ |
| error.go | 22 interfaceString string 23 concreteString string 24 assertedString string 25 missingMethod string // one method needed by Interface, missing from Concrete 30 func (e *TypeAssertionError) Error() string { 46 // An errorString represents a runtime error described by a single string. 47 type errorString string 51 func (e errorString) Error() string { 52 return "runtime error: " + string(e) 55 // plainError represents a runtime error described a string withou [all...] |
| /prebuilts/go/linux-x86/src/strings/ |
| export_test.go | 11 func (r *Replacer) PrintTrie() string { 16 func (r *genericReplacer) printNode(t *trieNode, depth int) (s string) { 30 s += Repeat(".", depth) + string([]byte{byte(b)}) 38 func StringFind(pattern, text string) int { 42 func DumpTables(pattern string) ([]int, []int) {
|
| /prebuilts/go/linux-x86/test/fixedbugs/ |
| bug221.go | 16 func f(n int) string { 17 s := string(gen) + string(n+'A'-1) 22 func g(x, y string) string {
|
| bug236.go | 11 func f(n int) string { 12 s := string(gen) + string(n+'A'-1) 17 func g(x, y string) string { return x + y }
|
| bug243.go | 35 func Listen(x, y string) (T, string) { 44 func (t T) Accept() (int, string) { 48 func Dial(x, y, z string) (int, string) {
|
| bug262.go | 14 var trace string 16 func f() string { 27 func h() string { 39 m := make(map[string]int) 45 mm := make(map[string]error)
|
| bug331.go | 11 func f() (_ string, x float64, err error) { 15 func g() (_ string, x float64, err error) { 19 var _ func() (string, float64, error) = f 20 var _ func() (string, float64, error) = g 32 bug331.go:12: cannot use "hello" (type string) as type float64 in assignment 34 float64 does not implement os.Error (missing String method)
|
| /system/extras/simpleperf/ |
| cmd_debug_unwind_test.cpp | 22 #include <string> 61 std::string Finish() { 66 std::string s; 80 std::string input_data = GetTestData(PERF_DATA_NO_UNWIND); 85 ASSERT_NE(capture.Finish().find("Unwinding sample count: 8"), std::string::npos); 90 ASSERT_NE(capture.Finish().find("Unwinding sample count: 1"), std::string::npos); 94 std::string input_data = GetTestData(NATIVELIB_IN_APK_PERF_DATA); 100 ASSERT_NE(capture.Finish().find("Unwinding sample count: 55"), std::string::npos); 106 std::unordered_map<std::string, std::string> info_map [all...] |
| /system/hardware/interfaces/net/netd/testutils/ |
| VtsHalNetNetdTestUtils.cpp | 18 #include <string> 47 static std::vector<std::string> runCommand(const std::string& command) { 48 std::vector<std::string> lines; 60 lines.push_back(std::string(line, linelen)); 68 static std::vector<std::string> listIpRules(const char* ipVersion) { 69 std::string command = StringPrintf("%s %s rule list", IP_PATH, ipVersion); 73 int countMatchingIpRules(const std::string& regexString) { 78 std::vector<std::string> rules = listIpRules(version); 91 std::string regex [all...] |
| /system/keymaster/tests/ |
| wrapped_key_test.cpp | 27 using ::std::string; 32 string test_wrapped_key = hex2str( 42 string test_tag = hex2str("94CD97F58DE55B737B60B3AD127B1C59"); 43 string test_iv = hex2str("D796B02C370F1FA4CC0124F1"); 44 string test_transit_key = 53 string test_secure_key = 56 string blob2string(keymaster_blob_t& blob) { 57 string s(reinterpret_cast<const char*>(blob.data), blob.data_length); 61 string keyblob2string(keymaster_key_blob_t& blob) { 62 string s(reinterpret_cast<const char*>(blob.key_material), blob.key_material_size) [all...] |
| /system/libvintf/ |
| KernelConfigParser.cpp | 42 std::map<std::string, std::string>& KernelConfigParser::configs() { 46 const std::map<std::string, std::string>& KernelConfigParser::configs() const { 51 std::string trimTrailingSpaces(const std::string& s) { 55 return std::string{s.begin(), r.base()}; 78 if (equalPos != std::string::npos) { 79 std::string key = mRemaining.substr(0, equalPos); 80 std::string value = mRemaining.substr(equalPos + 1) [all...] |
| /system/netd/server/ |
| ControllersTest.cpp | 20 #include <string> 45 std::set<std::string> findExistingChildChains(IptablesTarget a, const char* b, const char*c) { 60 std::set<std::string> expectedChains = { 65 std::set<std::string> actual = findExistingChildChains(V6, "raw", "PREROUTING"); 204 // Define a macro to remove a substring from a string. We use a macro instead of a function so 209 ASSERT_NE(std::string::npos, start); \ 211 ASSERT_EQ(std::string::npos, (str).find((substr))); \ 218 ASSERT_NE(std::string::npos, expected[7].second.find("*filter\n-S OUTPUT\n")); 228 ASSERT_NE(std::string::npos, expected[9].second.find("*filter\n-S OUTPUT\n")); 238 ASSERT_NE(std::string::npos, expected[13].second.find("*mangle\n-S POSTROUTING\n")) [all...] |
| /system/update_engine/common/ |
| http_fetcher.h | 21 #include <string> 69 void ResolveProxiesForUrl(const std::string& url, 72 void SetProxies(const std::deque<std::string>& proxies) { 75 const std::string& GetCurrentProxy() const { 91 virtual void BeginTransfer(const std::string& url) = 0; 100 virtual void SetHeader(const std::string& header_name, 101 const std::string& header_value) = 0; 142 std::string url_; 158 std::deque<std::string> proxies_; 171 void ProxiesResolved(const std::deque<std::string>& proxies) [all...] |
| /system/update_engine/update_manager/ |
| chromeos_policy.h | 20 #include <string> 58 EvaluationContext* ec, State* state, std::string* error, 64 std::string* error, 71 std::string* error, 78 std::string* error, 84 std::string* error, 90 std::string* error, 96 std::string PolicyName() const override { return "ChromeOSPolicy"; } 152 EvaluationContext* ec, State* state, std::string* error, 169 std::string* error [all...] |
| real_device_policy_provider.h | 22 #include <string> 58 Variable<std::string>* var_release_channel() override { 70 Variable<std::string>* var_target_version_prefix() override { 83 Variable<std::string>* var_owner() override { 106 void OnPropertyChangedCompletedSignal(const std::string& success); 110 void OnSignalConnected(const std::string& interface_name, 111 const std::string& signal_name, 161 AsyncCopyVariable<std::string> var_release_channel_{"release_channel"}; 165 AsyncCopyVariable<std::string> var_target_version_prefix_{ 171 AsyncCopyVariable<std::string> var_owner_{"owner"} [all...] |
| /system/vold/ |
| Process.cpp | 20 #include <string.h> 47 static bool checkMaps(const std::string& path, const std::string& prefix) { 50 std::string line; 52 std::string::size_type pos = line.find('/'); 53 if (pos != std::string::npos) { 64 static bool checkSymlink(const std::string& path, const std::string& prefix) { 65 std::string res; 75 int KillProcessesWithOpenFiles(const std::string& prefix, int signal) [all...] |
| /test/vts-testcase/hal/treble/vintf/ |
| utils.h | 21 #include <string> 59 using std::string; 64 const string& instance_name, Transport)>; 69 extern const string kDataDir; 71 extern const string kHashFileName; 73 extern const map<string, string> kPackageRoot; 75 extern const set<string> kPassthroughHals; 84 // For a given interface returns package root if known. Returns empty string 86 const string PackageRoot(const FQName& fq_iface_name) [all...] |
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
| BleServerTestBaseActivity.java | 84 setInfoResources(R.string.ble_server_start_name, 85 R.string.ble_server_start_info, -1); 142 testList.add(R.string.ble_server_add_service); 143 testList.add(R.string.ble_server_receiving_connect); 144 testList.add(R.string.ble_server_read_characteristic); 145 testList.add(R.string.ble_server_write_characteristic); 146 testList.add(R.string.ble_server_mtu_23bytes); 147 testList.add(R.string.ble_server_mtu_512bytes); 148 testList.add(R.string.ble_server_read_characteristic_without_permission); 149 testList.add(R.string.ble_server_write_characteristic_without_permission) [all...] |
| /external/webrtc/webrtc/system_wrappers/source/ |
| data_log.cc | 30 // A Row contains cells, which are indexed by the column names as std::string. 31 // The string index is treated in a case sensitive way. 40 int InsertCell(const std::string& column_name, 43 // Converts the value at the column specified by column_name to a string 46 void ToString(const std::string& column_name, std::string* value_string); 49 // Collection of containers indexed by column name as std::string 50 typedef std::map<std::string, const Container*> CellMap; 68 int AddColumn(const std::string& column_name, int multi_value_length); 78 int InsertCell(const std::string& column_name [all...] |
| /system/core/init/ |
| devices_test.cpp | 32 void TestGetSymlinks(const std::string& platform_device, const Uevent& uevent, 33 const std::vector<std::string> expected_links) { 37 std::string platform_device_dir = fake_sys_root.path + platform_device; 40 std::string platform_bus = fake_sys_root.path + "/bus/platform"s; 46 std::vector<std::string> result; 71 std::vector<std::string> expected_result{"/dev/block/platform/soc.0/f9824900.sdhci/mmcblk0"}; 85 std::vector<std::string> expected_result{ 101 std::vector<std::string> expected_result{ 116 std::vector<std::string> expected_result{ 130 std::vector<std::string> expected_result{"/dev/block/pci/pci0000:00/0000:00:1f.2/mmcblk0"} 204 std::string string = "abc!@#$%^&*()"; local 210 std::string string = "!@#$%^&*()"; local 216 std::string string = ")"; local [all...] |
| /art/libdexfile/dex/ |
| descriptors_names.cc | 29 void AppendPrettyDescriptor(const char* descriptor, std::string* result) { 60 // At this point, 'c' is a string of the form "fully/qualified/Type;" 76 std::string PrettyDescriptor(const char* descriptor) { 77 std::string result; 82 std::string GetJniShortName(const std::string& class_descriptor, const std::string& method) { 84 std::string class_name(class_descriptor); 90 std::string short_name; 99 std::string MangleForJni(const std::string& s) [all...] |