/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | HexEncoding.java | 81 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/ |
D | MsDosDateTimeUtilsTest.java | 27 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/ |
D | MsDosDateTimeUtils.java | 40 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/tradefederation/core/src/com/android/tradefed/command/remote/ |
D | RemoteManager.java | 329 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/dexter/testdata/expected/ |
D | min.map | 5 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]
|
D | hello_nodebug.map | 5 TypeIdItem : 12c, 50 [20] 6 ProtoIdItem : 17c, 78 [10] 9 ClassDefItem : 29c, a0 [5] 10 AnnotationSetItem : 33c, 20 [3] 11 CodeItem : 35c, 258 [9]
|
D | mi.map | 4 StringIdItem : 70, 4c [19] 6 ProtoIdItem : e0, 3c [5] 7 FieldIdItem : 11c, 10 [2] 8 MethodIdItem : 12c, 38 [7]
|
D | try_catch.map | 6 ProtoIdItem : 11c, 30 [4] 7 FieldIdItem : 14c, 8 [1] 11 CodeItem : 1fc, 17c [5] 18 MapList : 57c, c4 [1]
|
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ |
D | Asn1BerParserTest.java | 183 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/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | PythonUnitTestRunner.java | 120 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/repohooks/rh/ |
D | shell.py | 78 for c in s: 79 if c in _SHELL_QUOTABLE_CHARS: 90 for c in _SHELL_ESCAPE_CHARS: 91 if c in s: 92 s = s.replace(c, r'\%s' % c)
|
/tools/tradefederation/core/tests/src/com/android/tradefed/clearcut/ |
D | ClearcutClientTest.java | 80 ClearcutClient c = in testDisableClient() local 93 c.notifyTradefedStartEvent(); in testDisableClient() 94 c.notifyTradefedStartEvent(); in testDisableClient() 95 c.notifyTradefedStartEvent(); in testDisableClient() 96 assertEquals(0, c.getQueueSize()); in testDisableClient() 98 c.stop(); in testDisableClient()
|
/tools/test/connectivity/acts/framework/tests/ |
D | mock_controller.py | 26 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/ |
D | ArgsOptionParserTest.java | 1025 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/metalava/src/main/java/com/android/tools/metalava/doclava1/ |
D | SourcePositionInfo.kt | 51 val c = str[i] in add() constant 52 if (c == '\r' || c == '\n' && prev != '\r') { in add() 55 prev = c in add()
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | sniffer.py | 38 for c in configs: 39 sniffer_type = c["Type"] 40 sniffer_subtype = c["SubType"] 41 interface = c["Interface"] 42 base_configs = c["BaseConfigs"]
|
D | iperf_client.py | 57 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')))
|
D | iperf_server.py | 57 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'))) 70 'config.' % (repr(c), configs))
|
D | attenuator.py | 30 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/tests/src/com/android/tradefed/testtype/ |
D | PythonUnitTestRunnerTest.java | 138 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/ |
D | FakeTest.java | 134 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/test/connectivity/acts/framework/acts/ |
D | dict_object.py | 83 c = cls() 84 c.update(dictionary) 85 return c
|
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/ |
D | ApiElement.java | 214 char c = attribute.charAt(i); in encodeAttribute() local 215 if (c == '"') { in encodeAttribute() 217 } else if (c == '<') { in encodeAttribute() 219 } else if (c == '\'') { in encodeAttribute() 221 } else if (c == '&') { in encodeAttribute() 224 sb.append(c); in encodeAttribute()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextTypeParameterItem.kt | 75 val c = typeParameterString[i] in create() constant 76 if (!Character.isJavaIdentifierPart(c)) { in create() 111 val c = s[i] in bounds() constant 112 if (c == '&' && balance == 0) { in bounds() 115 } else if (c == '<') { in bounds() 120 } else if (c == '>') { in bounds()
|
/tools/platform-compat/javatest/android/processor/compat/changeid/ |
D | XmlWriterTest.java | 47 Change c = new Change.Builder() in testOneChange() local 52 writer.addChange(c); in testOneChange() 65 Change c = new Change.Builder() in testSomeChanges() local 92 writer.addChange(c); in testSomeChanges()
|