Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 164) sorted by relevance

1234567

/tools/repohooks/rh/
Dshell.py41 def shell_quote(s): argument
68 if isinstance(s, bytes):
69 s = s.encode('utf-8')
72 for c in s:
76 return s if s else u"''"
79 if "'" not in s:
80 return u"'%s'" % s
85 if c in s:
86 s = s.replace(c, r'\%s' % c)
87 return u'"%s"' % s
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextTypeItem.kt257 private fun substituteTypeParameters(s: String, context: Item?): String { in markRecent()
259 var end = s.indexOf('[') in markRecent()
261 end = s.length in markRecent()
263 if (s[0].isUpperCase() && s.lastIndexOf('.', end) == -1) { in markRecent()
264 val v = s.substring(0, end) in markRecent()
269 return bounds.first().qualifiedName() + s.substring(end) in markRecent()
273 return JAVA_LANG_OBJECT + s.substring(end) in markRecent()
279 return s in markRecent()
282 fun eraseTypeArguments(s: String): String { in markRecent()
283 val index = s.indexOf('<') in markRecent()
[all …]
DTextTypeParameterItem.kt91 val s = typeString ?: return emptyList() in bounds() constant
92 val index = s.indexOf("extends ") in bounds()
98 if (p.simpleName() == s) { in bounds()
108 val length = s.length in bounds()
110 val c = s[i] in bounds()
132 private fun add(list: MutableList<String>, s: String, from: Int, to: Int) { in add()
134 if (!Character.isWhitespace(s[i])) { in add()
136 while (end > i && s[end - 1].isWhitespace()) { in add()
140 while (begin < end && s[begin].isWhitespace()) { in add()
146 val element = s.substring(begin, end) in add()
DTextTypeParameterList.kt62 val s = typeString ?: return emptyList() in typeParameterStrings() constant
67 for (i in s.indices) { in typeParameterStrings()
68 val c = s[i] in typeParameterStrings()
75 add(list, s, start, i + 1) in typeParameterStrings()
78 add(list, s, start, i) in typeParameterStrings()
83 add(list, s, start, i) in typeParameterStrings()
96 private fun add(list: MutableList<String>, s: String, from: Int, to: Int) { in add()
98 if (!Character.isWhitespace(s[i])) { in add()
99 list.add(s.substring(i, to)) in add()
DTextCodebase.kt138 val s = existing ?: JAVA_LANG_OBJECT in resolveSuperclasses() constant
139s // unnecessary variable, works around current compiler believing the expression to be nullable in resolveSuperclasses()
440 private fun implicitJavaLangType(s: String): Boolean { in implicitJavaLangType()
441 if (s.length <= 1) { in implicitJavaLangType()
444 if (s[1] == '[') { in implicitJavaLangType()
448 val dotIndex = s.indexOf('.') in implicitJavaLangType()
449 val array = s.indexOf('[') in implicitJavaLangType()
450 val generics = s.indexOf('<') in implicitJavaLangType()
452 return dotIndex == -1 && !TextTypeItem.isPrimitive(s) in implicitJavaLangType()
466 …return (dotIndex == -1 || dotIndex > typeEnd) && !TextTypeItem.isPrimitive(s.substring(0, typeEnd)… in implicitJavaLangType()
/tools/dexter/testdata/expected/
Dexit_hooks.code_coverage1 1: mi=0 s=0 e=2
2 2: mi=0 s=5 e=5
3 3: mi=1 s=0 e=1
4 4: mi=1 s=3 e=3
5 5: mi=1 s=5 e=5
6 6: mi=1 s=8 e=8
7 7: mi=1 s=11 e=11
8 8: mi=1 s=13 e=13
9 9: mi=1 s=15 e=15
10 10: mi=1 s=18 e=18
[all …]
Dhello_nodebug.code_coverage1 1: mi=0 s=0 e=4
2 2: mi=0 s=6 e=7
3 3: mi=0 s=10 e=10
4 4: mi=1 s=0 e=2
5 5: mi=1 s=5 e=5
6 6: mi=2 s=0 e=2
7 7: mi=2 s=5 e=5
8 8: mi=3 s=0 e=2
9 9: mi=3 s=5 e=5
10 10: mi=3 s=7 e=7
[all …]
Dhello.code_coverage1 1: mi=0 s=0 e=4
2 2: mi=0 s=6 e=7
3 3: mi=0 s=10 e=10
4 4: mi=1 s=0 e=2
5 5: mi=1 s=5 e=5
6 6: mi=2 s=0 e=2
7 7: mi=2 s=5 e=5
8 8: mi=3 s=0 e=2
9 9: mi=3 s=5 e=5
10 10: mi=3 s=7 e=7
[all …]
Dentry_hooks.code_coverage1 1: mi=0 s=0 e=2
2 2: mi=0 s=5 e=5
3 3: mi=1 s=0 e=3
4 4: mi=1 s=5 e=5
5 5: mi=1 s=7 e=8
6 6: mi=1 s=10 e=15
7 7: mi=1 s=18 e=19
8 8: mi=1 s=21 e=26
9 9: mi=1 s=28 e=28
10 10: mi=1 s=31 e=34
[all …]
Dtry_catch.code_coverage1 1: mi=0 s=0 e=2
2 2: mi=0 s=5 e=5
3 3: mi=1 s=0 e=2
4 4: mi=1 s=5 e=5
5 5: mi=2 s=0 e=2
6 6: mi=2 s=5 e=5
7 7: mi=3 s=0 e=2
8 8: mi=3 s=4 e=5
9 9: mi=3 s=8 e=9
10 10: mi=3 s=10 e=10
[all …]
Dmi.code_coverage1 1: mi=0 s=0 e=0
2 2: mi=0 s=3 e=3
3 3: mi=1 s=0 e=1
4 4: mi=3 s=0 e=0
5 5: mi=3 s=3 e=3
6 6: mi=3 s=5 e=5
7 7: mi=3 s=7 e=7
8 8: mi=4 s=0 e=0
9 9: mi=4 s=2 e=2
10 10: mi=4 s=5 e=6
[all …]
/tools/test/connectivity/acts/framework/tests/
Dacts_records_test.py84 s = signals.TestPass(self.details, self.float_extra)
85 record.test_pass(s)
95 s = signals.TestPass(self.details, self.json_extra)
96 record.test_pass(s)
116 s = signals.TestFailure(self.details, self.float_extra)
117 record.test_fail(s)
127 s = signals.TestFailure(self.details, self.json_extra)
128 record.test_fail(s)
148 s = signals.TestSkip(self.details, self.float_extra)
149 record.test_skip(s)
[all …]
/tools/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/
DAuthorizationList.java517 StringBuilder s = new StringBuilder(); in toString() local
520 s.append("\nAlgorithm: ").append(algorithmToString(algorithm)); in toString()
524 s.append("\nKeySize: ").append(keySize); in toString()
528 s.append("\nPurposes: ").append(purposesToString(purposes)); in toString()
532 s.append("\nDigests: ").append(digestsToString(digests)); in toString()
536 s.append("\nPadding modes: ").append(paddingModesToString(paddingModes)); in toString()
540 s.append("\nEC Curve: ").append(ecCurveAsString()); in toString()
545 s.append(label).append(rsaPublicExponent); in toString()
549 s.append("\nActive: ").append(formatDate(activeDateTime)); in toString()
553 s.append("\nOrigination expire: ").append(formatDate(originationExpireDateTime)); in toString()
[all …]
DAttestation.java149 StringBuilder s = new StringBuilder(); in toString() local
150 s.append("Attestation version: " + attestationVersion); in toString()
151 s.append("\nAttestation security: " + securityLevelToString(attestationSecurityLevel)); in toString()
152 s.append("\nKM version: " + keymasterVersion); in toString()
153 s.append("\nKM security: " + securityLevelToString(keymasterSecurityLevel)); in toString()
155 s.append("\nChallenge"); in toString()
158 s.append(": [" + stringChallenge + "]"); in toString()
160 s.append(" (base64): [" + BaseEncoding.base64().encode(attestationChallenge) + "]"); in toString()
163 s.append("\nUnique ID (base64): [" + BaseEncoding.base64().encode(uniqueId) + "]"); in toString()
166 s.append("\n\n-- SW enforced --"); in toString()
[all …]
/tools/test/connectivity/acts/framework/tests/controllers/data/
Dsample_monsoon_data1 0s 3.67
2 1s 3.69
3 2s 0.95
4 3s 3.06
5 4s 2.17
6 5s 1.62
7 6s 3.95
8 7s 2.47
9 8s 1.11
10 9s 0.47
/tools/treble/hacksaw/bind/
Dremoteserver.go23 var s Server
24 s.priv = binder
25 return &s
40 func (s Server) BindReadOnly(args *BindReadOnlyArgs, reply *BindReadOnlyReply) error {
41 if err := s.priv.BindReadOnly(args.Source, args.Destination); err != nil {
59 func (s Server) BindReadWrite(args *BindReadWriteArgs, reply *BindReadWriteReply) error {
60 if err := s.priv.BindReadWrite(args.Source, args.Destination); err != nil {
77 func (s Server) Unbind(args *UnbindArgs, reply *UnbindReply) error {
78 if err := s.priv.Unbind(args.Destination); err != nil {
95 func (s Server) List(args *ListArgs, reply *ListReply) error {
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/bt/
Dcommand_input.py103 def str_to_bool(self, s): argument
104 if s.lower() == 'true':
106 elif s.lower() == 'false':
232 completions = [s for s in roles if s.startswith(text)]
254 s for s in sig_appearance_constants.keys()
255 if s.startswith(text)
272 completions = [s for s in options if s.startswith(text)]
298 completions = [s for s in options if s.startswith(text)]
492 completions = [s for s in self.le_ids if s.startswith(text)]
1383 s for s in gatt_test_database.GATT_SERVER_DB_MAPPING.keys()
[all …]
/tools/repohooks/tools/
Dcheckpatch.pl911 my $output = `git log --no-color --format='%H %s' -1 $commit 2>&1`;
961 my $lines = `git log --no-color --no-merges --pretty=format:'%H %s' $git_range`;
3363 my $s = $stat;
3364 $s =~ s/{.*$//s;
3367 if ($s =~ /$Ident:\*$/s) {
3370 } elsif ($s =~ /^.\s*$Ident\s*\(/s) {
3372 } elsif ($s =~ /^.\s*else\b/s) {
3375 …} elsif ($prev_values eq 'E' && $s =~ /^.\s*(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?((?:\s*$Id…
3378 possible($type, "A:" . $s);
3381 } elsif ($s =~ /^.(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?($Ident)\b\s*(?!:)/s) {
[all …]
/tools/test/connectivity/acts_tests/tests/google/bt/pts/
Dcmd_input.py417 s for s in gatt_test_database.GATT_SERVER_DB_MAPPING.keys()
418 if s.startswith(text)
428 s for s in gatt_server_responses.keys() if s.startswith(text)
439 s for s in gatt_server_responses.keys() if s.startswith(text)
450 s for s in gatt_server_responses.keys() if s.startswith(text)
563 completions = [s for s in options if s.startswith(text)]
572 completions = [s for s in options if s.startswith(text)]
580 completions = [s for s in str_adv_list if s.startswith(text)]
693 completions = [s for s in options if s.startswith(text)]
701 completions = [s for s in completions if s.startswith(text)]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DTypeItem.kt88 var s = toTypeString(context = context) in <lambda>() variable
89 while (s.contains(JAVA_LANG_PREFIX)) { in <lambda>()
90 s = s.replace(JAVA_LANG_PREFIX, "") in <lambda>()
92 if (s.contains("...")) { in <lambda>()
93 s = s.replace("...", "[]") in <lambda>()
96 return s in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiBasedCodebase.kt684 … fun createReferenceFromText(s: String, parent: PsiElement? = null): PsiJavaCodeReferenceElement = in <lambda>()
685 getFactory().createReferenceFromText(s, parent) in <lambda>()
687 fun createPsiMethod(s: String, parent: PsiElement? = null): PsiMethod = in <lambda>()
688 getFactory().createMethodFromText(s, parent) in <lambda>()
690 fun createConstructor(s: String, parent: PsiElement? = null): PsiMethod = in <lambda>()
691 getFactory().createConstructor(s, parent) in <lambda>()
693 fun createPsiType(s: String, parent: PsiElement? = null): PsiType = in <lambda>()
694 getFactory().createTypeFromText(s, parent) in <lambda>()
696 fun createPsiAnnotation(s: String, parent: PsiElement? = null): PsiAnnotation = in <lambda>()
697 getFactory().createAnnotationFromText(s, parent) in <lambda>()
[all …]
/tools/asuite/aidegen/
DREADME.md5 configure an IntelliJ project, such as all the project dependencies. It's a
14 * Launch IDE for specified folder(s) which contains build targets, i.e. cts.
53 $ aidegen Settings framework -s
63 | `-i` | `--ide` | Launch IDE type, j=IntelliJ s=Android Studio e=Eclipse c=CLion v=VS …
64 | `-p` | `--ide-path` | Specify user's IDE installed path. |
66 | `-r` | `--config-reset` | Reset all AIDEGen's saved configurations. |
67 | `-s` | `--skip-build` | Skip building jars or modules. |
/tools/metalava/src/main/java/com/android/tools/metalava/
DFileFormat.kt110 private fun firstLine(s: String): String { in firstLine()
111 val index = s.indexOf('\n') in firstLine()
113 return s in firstLine()
116 val end = if (index > 0 && s[index - 1] == '\r') index - 1 else index in firstLine()
117 return s.substring(0, end) in firstLine()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DExtraField.java126 .filter(s -> s.getHeaderId() == headerId) in getSingleSegment()
192 for (Segment s : segments) { in size()
193 sz += s.size(); in size()
212 for (Segment s : segments) { in write()
213 s.write(out); in write()
/tools/test/connectivity/acts/framework/acts/
Dlogger.py107 h, m, s = time.split(':')
108 s, ms = s.split('.')
109 return year, month, day, h, m, s, ms
157 s, ms = divmod(epoch_time, 1000)
158 d = datetime.datetime.fromtimestamp(s)

1234567