| /prebuilts/go/linux-x86/src/internal/pprof/profile/ |
| profile.go | 28 DropFrames string 29 KeepFrames string 38 stringTable []string 43 Type string // cpu, wall, inuse_space, etc 44 Unit string // seconds, nanoseconds, bytes, etc 54 Label map[string][]string 55 NumLabel map[string][]int64 75 File string 76 BuildID string [all...] |
| /prebuilts/go/linux-x86/src/net/ |
| dnsclient_unix.go | 30 dialDNS(ctx context.Context, network, addr string) (dnsConn, error) 119 func (d *Dialer) dialDNS(ctx context.Context, network, server string) (dnsConn, error) { 144 func exchange(ctx context.Context, server, name string, qtype uint16, timeout time.Duration) (*dnsMsg, error) { 154 for _, network := range []string{"udp", "tcp"} { 184 func tryOneName(ctx context.Context, cfg *dnsConfig, name string, qtype uint16) (string, []dnsRR, error) { 275 func (conf *resolverConfig) tryUpdate(name string) { 317 func lookup(ctx context.Context, name string, qtype uint16) (cname string, rrs []dnsRR, err error) { 349 func avoidDNS(name string) bool [all...] |
| /prebuilts/go/linux-x86/src/net/http/cookiejar/ |
| jar_test.go | 24 func (testPSL) String() string { 27 func (testPSL) PublicSuffix(d string) string { 44 s, suffix string 117 var canonicalHostTests = map[string]string{ 151 var hasPortTests = map[string]bool{ 168 var jarKeyTests = map[string]string{ [all...] |
| /prebuilts/go/linux-x86/src/net/rpc/jsonrpc/ |
| all_test.go | 111 if resp.Id.(string) != string(i) { 112 t.Fatalf("resp: bad id %q want %q", resp.Id.(string), string(i)) 134 t.Errorf("Add: expected no error but got string %q", err.Error()) 144 t.Errorf("Mul: expected no error but got string %q", err.Error()) 159 t.Errorf("Add: expected no error but got string %q", addCall.Error.Error()) 167 t.Errorf("Mul: expected no error but got string %q", mulCall.Error.Error()) 232 if !strings.Contains(out.String(), errorText) { 235 if strings.Contains(out.String(), valueText) [all...] |
| /prebuilts/go/linux-x86/src/regexp/ |
| find_test.go | 16 // and the byte results from the string results. Therefore the table includes 19 pat string 20 text string 24 func (t FindTest) String() string { 151 if re.String() != test.pat { 152 t.Errorf("String() = `%s`; should be `%s`", re.String(), test.pat) 164 if expect != string(result) { 246 if expect != string(result[k]) [all...] |
| /prebuilts/go/linux-x86/src/regexp/syntax/ |
| prog.go | 40 var instOpNames = []string{ 54 func (i InstOp) String() string { 119 func (p *Prog) String() string { 122 return b.String() 146 // Prefix returns a literal string that all matches for the 149 func (p *Prog) Prefix() (prefix string, complete bool) { 163 return buf.String(), i.Op == InstMatch 206 // Special case: single-rune slice is from literal string, not char class [all...] |
| regexp.go | 27 Name string // capturing name, for OpCapture 39 OpEmptyMatch // matches empty string 44 OpBeginLine // matches empty string at beginning of line 45 OpEndLine // matches empty string at end of line 46 OpBeginText // matches empty string at beginning of text 47 OpEndText // matches empty string at end of text 245 func (re *Regexp) String() string { 248 return b.String() 306 func (re *Regexp) CapNames() []string { [all...] |
| /prebuilts/go/linux-x86/src/text/template/parse/ |
| lex_test.go | 13 var itemName = map[itemType]string{ 27 itemRawString: "raw string", 31 itemString: "string", 47 func (i itemType) String() string { 56 name string 57 input string 61 func mkItem(typ itemType, text string) item { 324 mkItem(itemError, "unterminated quoted string"), 328 mkItem(itemError, "unterminated raw quoted string"), [all...] |
| /prebuilts/go/linux-x86/src/vendor/golang_org/x/text/transform/ |
| transform.go | 566 // String returns a string with the result of converting s[:n] using t, where 568 func String(t Transformer, s string) (result string, n int, err error) { 584 // The input string s is transformed in multiple chunks (starting with a 595 // result string. 621 return string(s[:pPrefix]), pPrefix, err 645 return string(dst[:pDst]), pSrc, err 666 return string(dst[:pDst]), pSrc, er [all...] |
| /prebuilts/go/linux-x86/src/vendor/golang_org/x/text/unicode/norm/ |
| normalize.go | 26 // the bytes or string x converted to the given form. 56 // String returns f(s). 57 func (f Form) String(s string) string { 67 return string(doAppendInner(&rb, n)) 110 func (f Form) IsNormalString(s string) bool { 259 func (f Form) AppendString(out []byte, src string) []byte { 286 func (f Form) SpanString(s string, atEOF bool) (n int, err error) { 358 func (f Form) QuickSpanString(s string) int [all...] |
| /prebuilts/go/linux-x86/test/ |
| 64bit.go | 208 func (a Uint64) String() string { return fmt.Sprintf("%#x%08x", a.hi, a.lo) } 310 func (a Int64) String() string { 314 return a.Uint64().String()
|
| /prebuilts/go/linux-x86/test/ken/ |
| rob2.go | 17 str string 45 func (this *Slist) String() string { 58 // free(slist.String()); 72 var input string 97 func (slist *Slist) PrintOne(doparen bool) string { 101 var r string 104 r = slist.String() 124 func (slist *Slist) Print() string { 230 slist.atom.str = string(tokenbuf[0:tokenlen] [all...] |
| /prebuilts/ndk/r11/sources/android/support/tests/minitest/ |
| minitest.cc | 26 String::String(const char* str, size_t len) { 32 String& String::operator+=(const String& other) { 39 String& String::operator+=(const char* str) { 47 String& String::operator+=(char ch) { 53 String& String::operator<<(const String& other) [all...] |
| minitest.h | 72 // TEST_TEXT << "Checking string : " 78 #include <string.h> 107 // String class used to accumulate error messages. 108 // Very similar to std::string but also supports streaming into it 111 // String str; 119 class String { 121 String() : str_(NULL), size_(0), capacity_(0) {} 122 String(const char* str, size_t len); 124 explicit String(const char* str) { String(str, ::strlen(str)); [all...] |
| /prebuilts/ndk/r13/sources/android/support/tests/minitest/ |
| minitest.cc | 26 String::String(const char* str, size_t len) { 32 String& String::operator+=(const String& other) { 39 String& String::operator+=(const char* str) { 47 String& String::operator+=(char ch) { 53 String& String::operator<<(const String& other) [all...] |
| minitest.h | 72 // TEST_TEXT << "Checking string : " 78 #include <string.h> 107 // String class used to accumulate error messages. 108 // Very similar to std::string but also supports streaming into it 111 // String str; 119 class String { 121 String() : str_(NULL), size_(0), capacity_(0) {} 122 String(const char* str, size_t len); 124 explicit String(const char* str) { String(str, ::strlen(str)); [all...] |
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/ |
| fixer_util.py | 80 """A numeric or string subscript""" 85 def String(string, prefix=None): 86 """A string leaf""" 87 return Leaf(token.STRING, string, prefix=prefix) 323 node.children[0].type == token.STRING):
|
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/ |
| fixer_util.py | 80 """A numeric or string subscript""" 85 def String(string, prefix=None): 86 """A string leaf""" 87 return Leaf(token.STRING, string, prefix=prefix) 323 node.children[0].type == token.STRING):
|
| /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/ |
| BooleanXmlPropertyEditor.java | 53 assert value == null || value instanceof String; 54 if (value == null || value instanceof String) { 55 String text = (String) value; 104 if (value == null || value instanceof String) { 106 String text = (String) value;
|
| /tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
| NativeLeakCollector.java | 43 private static final String UNREACHABLE_MEMINFO_CMD = "dumpsys -t %d meminfo --unreachable -a"; 44 private static final String DIRECT_UNREACHABLE_CMD = "dumpsys -t %d %s --unreachable"; 45 private static final String OUTPUT_HEADER = "\nExecuted command: %s\n"; 58 private String mLogFilename = "unreachable-meminfo"; 62 private List<String> mAdditionalProc = new ArrayList<String>(); 90 String allCommand = String.format(UNREACHABLE_MEMINFO_CMD, mDumpTimeout / 1000); 91 writeToReceiver(String.format(OUTPUT_HEADER, allCommand), receiver); 94 for (String proc : mAdditionalProc) [all...] |
| PushFilePreparer.java | 44 private static final String LOG_TAG = "PushFilePreparer"; 45 private static final String MEDIA_SCAN_INTENT = 48 private static final String HOST_TESTCASES = "host/testcases"; 49 private static final String TARGET_TESTCASES = "target/testcases"; 54 private Collection<String> mPushSpecs = new ArrayList<>(); 60 private Collection<String> mPostPushCommands = new ArrayList<>(); 79 private Collection<String> mFilesPushed = null; 85 private void fail(String message, ITestDevice device) throws TargetSetupError { 113 public File resolveRelativeFilePath(IBuildInfo buildInfo, String fileName) { 155 for (String pushspec : mPushSpecs) [all...] |
| /frameworks/opt/net/voip/src/java/android/net/sip/ |
| SimpleSessionDescription.java | 67 public SimpleSessionDescription(long sessionId, String address) { 70 mFields.parse(String.format(Locale.US, "o=- %d %d %s", sessionId, 82 public SimpleSessionDescription(String message) { 83 String[] lines = message.trim().replaceAll(" +", " ").split("[\r\n]+"); 86 for (String line : lines) { 92 String[] parts = line.substring(2).split(" ", 4); 93 String[] ports = parts[1].split("/", 2); 97 for (String format : parts[3].split(" ")) { 118 public Media newMedia(String type, int port, int portCount, 119 String protocol) [all...] |
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
| StringTest.java | 29 * Tests for the class {@link String}. 33 private static final Constructor<String> UNSAFE_CONSTRUCTOR; 36 Constructor<String> uc; 38 uc = String.class.getDeclaredConstructor(new Class[] { int.class, 47 private static String newString(int start, int len, char[] data) throws Exception { 49 return new String(data, start, len); 78 String s1 = "ABCDEFG"; 79 String s2 = "abcdefg"; 81 assertTrue(String.CASE_INSENSITIVE_ORDER.compare(s1, s2) == 0); 85 assertEquals("Created incorrect string", "", new String()) [all...] |
| /libcore/luni/src/test/java/libcore/java/lang/ |
| OldStringTest.java | 27 String hw1 = "HelloWorld"; 29 String hw2 = "HelloWorld"; 31 String hwlc = "helloworld"; 33 String hwuc = "HELLOWORLD"; 35 String comp11 = "Test String"; 40 // Test for method char java.lang.String.charAt(int) 44 String testString = "Test String"; 70 assertTrue("Returned incorrect value for empty string.", hw1.endsWith("")) [all...] |
| /art/test/100-reflect2/src/ |
| Main.java | 178 // Sort the return values by their string values since the order is undefined by the spec. 179 System.out.println(Arrays.toString(sort(String.class.getDeclaredConstructors(), comp))); 180 System.out.println(Arrays.toString(sort(String.class.getDeclaredFields(), comp))); 181 System.out.println(Arrays.toString(sort(String.class.getDeclaredMethods(), comp))); 184 System.out.println(Arrays.toString(String.class.getInterfaces())); 187 System.out.println(String.class.getModifiers()); 189 System.out.println(String.class.isAssignableFrom(Object.class)); 190 System.out.println(Object.class.isAssignableFrom(String.class)); 192 System.out.println(String.class.isInstance("hello")); 193 System.out.println(String.class.isInstance(123)) [all...] |