Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 141) sorted by relevance

123456

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DJavadoc.kt325 val c = html[offset] in getBodyContents() constant
328 if (c == '<') { in getBodyContents()
339 if (c == '!') { in getBodyContents()
370 } else if (c == '/') { in getBodyContents()
375 } else if (c == '?') { in getBodyContents()
392 if (c == '>') { in getBodyContents()
411 val whitespace = Character.isWhitespace(c) in getBodyContents()
412 if (whitespace || c == '>') { in getBodyContents()
423 c == '>' -> { in getBodyContents()
426 c == '/' -> state = STATE_ENDING_TAG in getBodyContents()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DArgsOptionParserTest.java1025 IKeyStoreClient c = EasyMock.createNiceMock(IKeyStoreClient.class); in testKeyStore_string() local
1026 EasyMock.expect(c.isAvailable()).andReturn(true); in testKeyStore_string()
1027 EasyMock.expect(c.containsKey("foo")).andStubReturn(true); in testKeyStore_string()
1028 EasyMock.expect(c.fetchKey("foo")).andReturn(expectedValue); in testKeyStore_string()
1029 EasyMock.replay(c); in testKeyStore_string()
1032 parser.setKeyStore(c); in testKeyStore_string()
1036 EasyMock.verify(c); in testKeyStore_string()
1067 IKeyStoreClient c = EasyMock.createNiceMock(IKeyStoreClient.class); in testKeyStore_stringWithUnavalableKeyStore() local
1068 EasyMock.expect(c.isAvailable()).andStubReturn(false); in testKeyStore_stringWithUnavalableKeyStore()
1069 EasyMock.replay(c); in testKeyStore_stringWithUnavalableKeyStore()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/command/remote/
DRemoteManager.java329 private Thread processStartHandover(StartHandoverOp c, JSONObject result) { in processStartHandover() argument
330 final int port = c.getPort(); in processStartHandover()
344 private void processHandoverInitComplete(HandoverInitCompleteOp c, JSONObject result) { in processHandoverInitComplete() argument
349 private Thread processHandoverComplete(HandoverCompleteOp c, JSONObject result) { in processHandoverComplete() argument
360 private void processAllocate(AllocateDeviceOp c, JSONObject result) throws JSONException { in processAllocate() argument
361 ITestDevice allocatedDevice = mDeviceManager.forceAllocateDevice(c.getDeviceSerial()); in processAllocate()
363 CLog.logAndDisplay(LogLevel.INFO, "Remotely allocating device %s", c.getDeviceSerial()); in processAllocate()
366 String msg = "Failed to allocate device " + c.getDeviceSerial(); in processAllocate()
372 private void processFree(FreeDeviceOp c, JSONObject result) throws JSONException { in processFree() argument
373 if (FreeDeviceOp.ALL_DEVICES.equals(c.getDeviceSerial())) { in processFree()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextTypeItem.kt136 for (c in type) { in arrayDimensions() variable
137 if (c == '[') { in arrayDimensions()
218 for (c in typeString) { in markRecent() constant
219 if (c == '.') { in markRecent()
223 if (c == ' ' || c == '[' || c == '<') { in markRecent()
287 val c = s[i] in markRecent() constant
288 if (c == '<') { in markRecent()
290 } else if (c == '>') { in markRecent()
315 for (c in s) { in markRecent() variable
316 if (c == '!' || c == '?' && (prev != '<' && prev != ',' && prev != ' ')) { in markRecent()
[all …]
DApiFile.java1072 final char c = mBuf[mPos]; in getToken() local
1075 if (c == '"') { in getToken()
1104 } else if (isSeparator(c, parenIsSep)) { in getToken()
1105 mCurrent = Character.toString(c); in getToken()
1157 private static boolean isSpace(char c) { in isSpace() argument
1158 return c == ' ' || c == '\t' || c == '\n' || c == '\r'; in isSpace()
1161 private static boolean isNewline(char c) { in isNewline() argument
1162 return c == '\n' || c == '\r'; in isNewline()
1165 private static boolean isSeparator(char c, boolean parenIsSep) { in isSeparator() argument
1167 if (c == '(' || c == ')') { in isSeparator()
[all …]
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/
DAsn1BerParserTest.java183 ChoiceWithTwoOptions c = parse("0208ffffffffffffffff", ChoiceWithTwoOptions.class); in testChoiceWithDifferentTypedOptions() local
184 assertNull(c.oid); in testChoiceWithDifferentTypedOptions()
185 assertEquals(-1, c.num.intValue()); in testChoiceWithDifferentTypedOptions()
188 c = parse("060100", ChoiceWithTwoOptions.class); in testChoiceWithDifferentTypedOptions()
189 assertEquals("0.0", c.oid); in testChoiceWithDifferentTypedOptions()
190 assertNull(c.num); in testChoiceWithDifferentTypedOptions()
211 ChoiceWithThreeSequenceOptions c = parse("3000", ChoiceWithThreeSequenceOptions.class); in testChoiceWithSameTypedOptions() local
212 assertNotNull(c.s1); in testChoiceWithSameTypedOptions()
213 assertNull(c.s2); in testChoiceWithSameTypedOptions()
214 assertNull(c.s3); in testChoiceWithSameTypedOptions()
[all …]
/tools/repohooks/tools/
Dcheckpatch.pl1161 for my $c (split(//, $str)) {
1162 if ($c eq "\t") {
1170 $res .= $c;
1213 my $c;
1219 $c = substr($line, $off, 1);
1246 $c eq "\\") {
1252 if ($c eq "'" || $c eq '"') {
1254 $sanitise_quote = $c;
1256 substr($res, $off, 1, $c);
1258 } elsif ($sanitise_quote eq $c) {
[all …]
/tools/metalava/src/main/java/com/android/tools/lint/checks/infrastructure/
DClassName.kt54 for (c in source) { in packageNameWithDefault() constant
57 when (c) { in packageNameWithDefault()
61 sb.append(c) in packageNameWithDefault()
65 sb.append(c) in packageNameWithDefault()
67 else -> sb.append(c) in packageNameWithDefault()
72 c == '*' -> state = BLOCK_COMMENT in packageNameWithDefault()
73 c == '/' && stripLineComments -> state = LINE_COMMENT in packageNameWithDefault()
77 sb.append(c) in packageNameWithDefault()
82 when (c) { in packageNameWithDefault()
87 when (c) { in packageNameWithDefault()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Diperf_server.py57 for c in configs:
58 if type(c) in (str, int) and str(c).isdigit():
59 results.append(IPerfServer(int(c)))
60 elif type(c) is dict and 'AndroidDevice' in c and 'port' in c:
61 results.append(IPerfServerOverAdb(c['AndroidDevice'], c['port']))
62 elif type(c) is dict and 'ssh_config' in c and 'port' in c:
64 IPerfServerOverSsh(c['ssh_config'],
65 c['port'],
66 test_interface=c.get('test_interface'),
67 use_killall=c.get('use_killall')))
[all …]
Diperf_client.py57 for c in configs:
58 if type(c) is dict and 'AndroidDevice' in c:
60 IPerfClientOverAdb(c['AndroidDevice'],
61 test_interface=c.get('test_interface')))
62 elif type(c) is dict and 'ssh_config' in c:
64 IPerfClientOverSsh(c['ssh_config'],
65 use_paramiko=c.get('use_paramiko'),
66 test_interface=c.get('test_interface')))
Dattenuator.py30 for c in configs:
31 attn_model = c['Model']
33 protocol = c.get('Protocol', 'telnet')
37 inst_cnt = c['InstrumentCount']
41 ip_address = c[Config.key_address.value]
42 port = c[Config.key_port.value]
64 if 'Paths' in c:
66 setattr(attn, 'path', c['Paths'][i])
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DPythonUnitTestRunner.java120 CommandResult c = runUtil.runTimedCmd(1000, "which", "python"); in getPythonBinary() local
121 String pythonBin = c.getStdout().trim(); in getPythonBinary()
125 c = runUtil.runTimedCmd(1000, pythonBin, "--version"); in getPythonBinary()
127 CLog.i("Found python version: %s", c.getStderr()); in getPythonBinary()
128 checkPythonVersion(c); in getPythonBinary()
150 protected void checkPythonVersion(CommandResult c) { in checkPythonVersion() argument
152 Matcher versionParts = Pattern.compile(VERSION_REGEX).matcher(c.getStderr()); in checkPythonVersion()
164 String.format("Could not parse the current version: '%s'", c.getStderr())); in checkPythonVersion()
188 c.getStderr(), mMinPyVersion)); in checkPythonVersion()
202 CommandResult c = runUtil.runTimedCmd(mTestTimeout, cmd); in doRunTest() local
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DFieldItem.kt253 val c = str[i] in javaEscapeString() constant
254 result += when (c) { in javaEscapeString()
262 in ' '..'~' -> c in javaEscapeString()
263 else -> String.format("\\u%04x", c.toInt()) in javaEscapeString()
275 val c = str[i] in javaUnescapeString() constant
276 if (c == '\\') { in javaUnescapeString()
296 val c = str[i] in javaUnescapeString() constant
298 START -> if (c == '\\') { in javaUnescapeString()
301 buf.append(c) in javaUnescapeString()
303 ESCAPE -> when (c) { in javaUnescapeString()
[all …]
DAnnotationItem.kt749 val c = source[index] in createList() constant
750 if (c == '{') { in createList()
752 } else if (c == '"') { in createList()
754 } else if (c == ',') { in createList()
759 } else if (c == ' ' && index == begin) { in createList()
776 val c = source[i] in findEnd() constant
777 if (c == '\\') { in findEnd()
779 } else if (c == sentinel) { in findEnd()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DHexEncoding.java81 private static int getHexadecimalDigitValue(char c) { in getHexadecimalDigitValue() argument
82 if ((c >= 'a') && (c <= 'f')) { in getHexadecimalDigitValue()
83 return (c - 'a') + 0x0a; in getHexadecimalDigitValue()
84 } else if ((c >= 'A') && (c <= 'F')) { in getHexadecimalDigitValue()
85 return (c - 'A') + 0x0a; in getHexadecimalDigitValue()
86 } else if ((c >= '0') && (c <= '9')) { in getHexadecimalDigitValue()
87 return c - '0'; in getHexadecimalDigitValue()
91 + c + "' (0x" + Integer.toHexString(c) + ")"); in getHexadecimalDigitValue()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java154 char c = nameCharsUpperCase[i]; in getSafeSignerName() local
155 if (((c >= 'A') && (c <= 'Z')) in getSafeSignerName()
156 || ((c >= '0') && (c <= '9')) in getSafeSignerName()
157 || (c == '-') in getSafeSignerName()
158 || (c == '_')) { in getSafeSignerName()
159 result.append(c); in getSafeSignerName()
403 for (char c : name.toCharArray()) { in checkEntryNameValid()
404 if ((c == '\r') || (c == '\n') || (c == 0)) { in checkEntryNameValid()
408 (int) c, in checkEntryNameValid()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/utils/
DMsDosDateTimeUtilsTest.java27 Calendar c = Calendar.getInstance(); in packDate() local
29 c.set(Calendar.YEAR, 2016); in packDate()
30 c.set(Calendar.MONTH, 0); in packDate()
31 c.set(Calendar.DAY_OF_MONTH, 5); in packDate()
33 long time = c.getTime().getTime(); in packDate()
50 Calendar c = Calendar.getInstance(); in packTime() local
52 c.set(Calendar.HOUR_OF_DAY, 8); in packTime()
53 c.set(Calendar.MINUTE, 45); in packTime()
54 c.set(Calendar.SECOND, 20); in packTime()
56 long time = c.getTime().getTime(); in packTime()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/
DMsDosDateTimeUtils.java40 Calendar c = Calendar.getInstance(); in packTime() local
41 c.setTime(new Date(time)); in packTime()
43 int seconds = c.get(Calendar.SECOND); in packTime()
44 int minutes = c.get(Calendar.MINUTE); in packTime()
45 int hours = c.get(Calendar.HOUR_OF_DAY); in packTime()
74 Calendar c = Calendar.getInstance(); in packDate() local
75 c.setTime(new Date(time)); in packDate()
81 int day = c.get(Calendar.DAY_OF_MONTH); in packDate()
82 int month = c.get(Calendar.MONTH) + 1; in packDate()
88 int year = c.get(Calendar.YEAR) - 1980; in packDate()
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSourceTestBase.java49 try (CloseableWithDataSource c = createDataSource("Hello12345")) { in testSize() argument
50 DataSource ds = c.getDataSource(); in testSize()
57 try (CloseableWithDataSource c = createDataSource("Hello12345")) { in testSlice() argument
58 DataSource ds = c.getDataSource(); in testSlice()
95 try (CloseableWithDataSource c = createDataSource("test1234")) { in testGetByteBuffer() argument
96 DataSource ds = c.getDataSource(); in testGetByteBuffer()
131 try (CloseableWithDataSource c = createDataSource("test1234")) { in testFeed() argument
132 DataSource ds = c.getDataSource(); in testFeed()
169 try (CloseableWithDataSource c = createDataSource("abcdefghijklmnop")) { in testCopyTo() argument
170 DataSource ds = c.getDataSource(); in testCopyTo()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DPythonUnitTestRunnerTest.java138 CommandResult c = new CommandResult(); in testCheckPythonVersion_276given270min() local
139 c.setStderr("Python 2.7.6"); in testCheckPythonVersion_276given270min()
140 mRunner.checkPythonVersion(c); in testCheckPythonVersion_276given270min()
145 CommandResult c = new CommandResult(); in testCheckPythonVersion_276given331min() local
146 c.setStderr("Python 2.7.6"); in testCheckPythonVersion_276given331min()
149 mRunner.checkPythonVersion(c); in testCheckPythonVersion_276given331min()
158 CommandResult c = new CommandResult(); in testCheckPythonVersion_300given276min() local
159 c.setStderr("Python 3.0.0"); in testCheckPythonVersion_300given276min()
161 mRunner.checkPythonVersion(c); in testCheckPythonVersion_300given276min()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DFakeTest.java134 final String c = m.group(2); in decodeRle() local
143 out.append(c); in decodeRle()
204 for (char c : spec.toCharArray()) { in executeTestRun()
205 if (c != 'P' && c != 'F' && c != 'A' && c != 'I') { in executeTestRun()
207 "Received unexpected test spec character '%c' in spec \"%s\"", c, spec)); in executeTestRun()
215 switch (c) { in executeTestRun()
/tools/metalava/src/main/java/com/android/tools/metalava/
DAndroidApiChecks.kt123 val c = doc[i] in findDocumentation() constant
124 if (c != '*' && !Character.isWhitespace(c)) { in findDocumentation()
125 if (c == 'm' && doc.startsWith("@param", i - 5, true)) { in findDocumentation()
150 val c = doc[i] in findDocumentation() constant
152 if (c == '@' && (isLinePrefix || in findDocumentation()
159 } else if (c == '\n') { in findDocumentation()
161 } else if (c != '*' && !Character.isWhitespace(c)) { in findDocumentation()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DFlashingResourcesParser.java95 public FlashingResourcesParser(File deviceImgZipFile, Map<String, Constraint> c) in FlashingResourcesParser() argument
97 mReqs = getBuildRequirements(deviceImgZipFile, c); in FlashingResourcesParser()
121 public FlashingResourcesParser(BufferedReader infoReader, Map<String, Constraint> c) in FlashingResourcesParser() argument
123 mReqs = parseAndroidInfo(infoReader, c); in FlashingResourcesParser()
360 Constraint c = null; in parseAndroidInfo() local
362 c = constraints.get(key); in parseAndroidInfo()
368 if ((c == null) || c.shouldAccept(value)) { in parseAndroidInfo()
/tools/tradefederation/core/src/com/android/tradefed/config/
DArgsOptionParser.java559 IKeyStoreClient c = getKeyStore(); in getKeyStoreValueIfNeeded() local
560 if (c == null) { in getKeyStoreValueIfNeeded()
563 if (!c.isAvailable()) { in getKeyStoreValueIfNeeded()
565 + "we tried to fetch a key", c.getClass())); in getKeyStoreValueIfNeeded()
570 if (c instanceof DryRunKeyStore) { in getKeyStoreValueIfNeeded()
571 v = ((DryRunKeyStore) c).fetchKey(key, optionType); in getKeyStoreValueIfNeeded()
573 v = c.fetchKey(key); in getKeyStoreValueIfNeeded()
/tools/dexter/testdata/expected/
Dmin.map5 TypeIdItem : 84, c [3]
6 ProtoIdItem : 90, c [1]
7 MethodIdItem : 9c, 10 [2]
9 CodeItem : cc, 1c [1]
11 DebugInfoItem : 11c, 5 [1]
13 MapList : 12c, 88 [1]

123456