Home
last modified time | relevance | path

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

1234

/tools/metalava/src/main/java/com/android/tools/lint/checks/infrastructure/
DClassName.kt54 val c = source[i] 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/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/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/test/connectivity/tools/lab/
Dhealth_checker.py48 'GREATER_THAN': lambda k, c: HealthyIfGreaterThanConstantNumber(k, c),
49 'LESS_THAN': lambda k, c: HealthyIfLessThanConstantNumber(k, c),
50 'EQUALS': lambda k, c: HealthyIfEquals(k, c),
51 'IP_ADDR': lambda k, c: HealthyIfNotIpAddress(k),
52 'EQUALS_DICT': lambda k, c: HealthyIfValsEqual(k, c),
53 'STARTS_WITH': lambda k, c: HealthyIfStartsWith(k, c)
/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/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]
Dhello_nodebug.map5 TypeIdItem : 12c, 50 [20]
6 ProtoIdItem : 17c, 78 [10]
9 ClassDefItem : 29c, a0 [5]
10 AnnotationSetItem : 33c, 20 [3]
11 CodeItem : 35c, 258 [9]
Dtry_catch.map6 ProtoIdItem : 11c, 30 [4]
7 FieldIdItem : 14c, 8 [1]
11 CodeItem : 1fc, 17c [5]
18 MapList : 57c, c4 [1]
/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/apksig/src/test/java/com/android/apksig/internal/asn1/
DAsn1BerParserTest.java141 ChoiceWithTwoOptions c = parse("0208ffffffffffffffff", ChoiceWithTwoOptions.class); in testChoiceWithDifferentTypedOptions() local
142 assertNull(c.oid); in testChoiceWithDifferentTypedOptions()
143 assertEquals(-1, c.num.intValue()); in testChoiceWithDifferentTypedOptions()
146 c = parse("060100", ChoiceWithTwoOptions.class); in testChoiceWithDifferentTypedOptions()
147 assertEquals("0.0", c.oid); in testChoiceWithDifferentTypedOptions()
148 assertNull(c.num); in testChoiceWithDifferentTypedOptions()
169 ChoiceWithThreeSequenceOptions c = parse("3000", ChoiceWithThreeSequenceOptions.class); in testChoiceWithSameTypedOptions() local
170 assertNotNull(c.s1); in testChoiceWithSameTypedOptions()
171 assertNull(c.s2); in testChoiceWithSameTypedOptions()
172 assertNull(c.s3); in testChoiceWithSameTypedOptions()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DPythonUnitTestRunner.java116 CommandResult c = runUtil.runTimedCmd(1000, "which", "python"); in getPythonBinary() local
117 String pythonBin = c.getStdout().trim(); in getPythonBinary()
121 c = runUtil.runTimedCmd(1000, pythonBin, "--version"); in getPythonBinary()
123 CLog.i("Found python version: %s", c.getStderr()); in getPythonBinary()
124 checkPythonVersion(c); in getPythonBinary()
146 protected void checkPythonVersion(CommandResult c) { in checkPythonVersion() argument
148 Matcher versionParts = Pattern.compile(VERSION_REGEX).matcher(c.getStderr()); in checkPythonVersion()
160 String.format("Could not parse the current version: '%s'", c.getStderr())); in checkPythonVersion()
184 c.getStderr(), mMinPyVersion)); in checkPythonVersion()
198 CommandResult c = runUtil.runTimedCmd(mTestTimeout, cmd); in doRunTest() local
[all …]
DFakeTest.java102 final String c = m.group(2); in decodeRle() local
111 out.append(c); in decodeRle()
173 for (char c : spec.toCharArray()) { in executeTestRun()
174 if (c != 'P' && c != 'F') { in executeTestRun()
176 "Received unexpected test spec character '%c' in spec \"%s\"", c, spec)); in executeTestRun()
184 switch (c) { in executeTestRun()
/tools/repohooks/rh/
Dshell.py74 for c in s:
75 if c in _SHELL_QUOTABLE_CHARS:
89 for c in _SHELL_ESCAPE_CHARS:
90 if c in s:
91 s = s.replace(c, r'\%s' % c)
/tools/test/connectivity/acts/framework/acts/libs/config/
Ddata_source.py139 values = [c.get_value(key) for c in self.configs if c.has_value(key)]
149 for c in reversed(self.configs):
150 if c.has_value(key):
151 c.set_value(key, value)
158 return any(c.has_value(key) for c in self.configs)
/tools/test/connectivity/acts/framework/acts/controllers/
Dattenuator.py30 for c in configs:
31 attn_model = c["Model"]
33 protocol = c.get("Protocol", "telnet")
37 inst_cnt = c["InstrumentCount"]
42 insts = attn_inst.open(c[Config.key_address.value],
43 c[Config.key_port.value])
49 'ping %s -c 1 -w 1' % c[Config.key_address.value])
52 c[Config.key_address.value])
55 c[Config.key_address.value])
59 if "Paths" in c:
[all …]
Dsniffer.py38 for c in configs:
39 sniffer_type = c["Type"]
40 sniffer_subtype = c["SubType"]
41 interface = c["Interface"]
42 base_configs = c["BaseConfigs"]
/tools/test/connectivity/acts/framework/tests/
Dmock_controller.py26 for c in configs:
27 if isinstance(c, dict):
28 c.pop("serial")
29 objs.append(MagicDevice(c))
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DArgsOptionParserTest.java1010 IKeyStoreClient c = EasyMock.createNiceMock(IKeyStoreClient.class); in testKeyStore_string() local
1011 EasyMock.expect(c.isAvailable()).andReturn(true); in testKeyStore_string()
1012 EasyMock.expect(c.containsKey("foo")).andStubReturn(true); in testKeyStore_string()
1013 EasyMock.expect(c.fetchKey("foo")).andReturn(expectedValue); in testKeyStore_string()
1014 EasyMock.replay(c); in testKeyStore_string()
1017 parser.setKeyStore(c); in testKeyStore_string()
1021 EasyMock.verify(c); in testKeyStore_string()
1052 IKeyStoreClient c = EasyMock.createNiceMock(IKeyStoreClient.class); in testKeyStore_stringWithUnavalableKeyStore() local
1053 EasyMock.expect(c.isAvailable()).andStubReturn(false); in testKeyStore_stringWithUnavalableKeyStore()
1054 EasyMock.replay(c); in testKeyStore_stringWithUnavalableKeyStore()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/
DSourcePositionInfo.java44 char c = str.charAt(i); in add() local
45 if (c == '\r' || (c == '\n' && prev != '\r')) { in add()
48 prev = c; in add()
/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/test/connectivity/acts/framework/acts/
Ddict_object.py83 c = cls()
84 c.update(dictionary)
85 return c
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiElement.java210 char c = attribute.charAt(i); in encodeAttribute() local
211 if (c == '"') { in encodeAttribute()
213 } else if (c == '<') { in encodeAttribute()
215 } else if (c == '\'') { in encodeAttribute()
217 } else if (c == '&') { in encodeAttribute()
220 sb.append(c); in encodeAttribute()
/tools/metalava/src/main/java/com/android/tools/metalava/
DAndroidApiChecks.kt124 val c = doc[i] in findDocumentation() constant
125 if (c != '*' && !Character.isWhitespace(c)) { in findDocumentation()
126 if (c == 'm' && doc.startsWith("@param", i - 5, true)) { in findDocumentation()
151 val c = doc[i] in findDocumentation() constant
153 if (c == '@' && (isLinePrefix || in findDocumentation()
160 } else if (c == '\n') { in findDocumentation()
162 } else if (c != '*' && !Character.isWhitespace(c)) { in findDocumentation()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DFlashingResourcesParser.java93 public FlashingResourcesParser(File deviceImgZipFile, Map<String, Constraint> c) in FlashingResourcesParser() argument
95 mReqs = getBuildRequirements(deviceImgZipFile, c); in FlashingResourcesParser()
119 public FlashingResourcesParser(BufferedReader infoReader, Map<String, Constraint> c) in FlashingResourcesParser() argument
121 mReqs = parseAndroidInfo(infoReader, c); in FlashingResourcesParser()
343 Constraint c = null; in parseAndroidInfo() local
345 c = constraints.get(key); in parseAndroidInfo()
351 if ((c == null) || c.shouldAccept(value)) { in parseAndroidInfo()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextTypeParameterList.kt64 val c = s[i] in typeParameterStrings() constant
65 if (c == '<') { in typeParameterStrings()
68 } else if (c == '>') { in typeParameterStrings()
77 } else if (c == ',') { in typeParameterStrings()

1234