Home
last modified time | relevance | path

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

12345678

/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/
DTokenizer.kt93 val c = buffer[position] in getToken() constant
96 if (c == '"') { in getToken()
124 } else if (isSeparator(c, parenIsSep)) { in getToken()
125 current = c.toString() in getToken()
181 private fun isSpace(c: Char): Boolean { in isSpace()
182 return c == ' ' || c == '\t' || c == '\n' || c == '\r' in isSpace()
185 private fun isNewline(c: Char): Boolean { in isNewline()
186 return c == '\n' || c == '\r' in isNewline()
189 private fun isSeparator(c: Char, parenIsSep: Boolean): Boolean { in isSeparator()
191 if (c == '(' || c == ')') { in isSeparator()
[all …]
/tools/metalava/metalava-model-source/src/main/java/com/android/tools/lint/checks/infrastructure/
DClassName.kt59 for (c in source) { in packageNameWithDefault() variable
62 when (c) { in packageNameWithDefault()
66 sb.append(c) in packageNameWithDefault()
70 sb.append(c) in packageNameWithDefault()
72 else -> sb.append(c) in packageNameWithDefault()
77 c == '*' -> { in packageNameWithDefault()
81 c == '/' && stripLineComments -> state = LINE_COMMENT in packageNameWithDefault()
85 sb.append(c) in packageNameWithDefault()
90 when (c) { in packageNameWithDefault()
95 when (c) { in packageNameWithDefault()
[all …]
/tools/repohooks/rh/
Dterminal_unittest.py45 c = rh.terminal.Color()
46 self.assertFalse(c.enabled)
49 c = rh.terminal.Color()
50 self.assertTrue(c.enabled)
57 c = rh.terminal.Color()
58 self.assertFalse(c.enabled)
61 c = rh.terminal.Color()
62 self.assertTrue(c.enabled)
70 c = rh.terminal.Color()
71 self.assertTrue(c.enabled)
[all …]
/tools/treble/hacksaw/client/
Dcommand.go51 func (c Command) addCodebase(args []string) error {
67 func (c Command) defaultCodebase(args []string) error {
81 func (c Command) listCodebases() {
96 func (c Command) removeCodebase(args []string) error {
111 func (c Command) createWorkspace(args []string) error {
132 dir, err := c.workspace.Create(workspaceName, codebaseName)
140 func (c Command) recreateWorkspace(args []string) error {
148 dir, err := c.workspace.Recreate(workspaceName)
156 func (c Command) listWorkspaces() {
157 list := c.workspace.List()
[all …]
/tools/netsim/ui/assets/
Dnetsim-logo.svg1c-9.375809 12.985214 -27.531181 15.932388 -40.551186 6.5826874l0 0c-13.020004 -9.349701 -15.97422 …
Dnetsim-logo-b.svg1c-9.375809 12.985214 -27.531181 15.932388 -40.551186 6.5826874l0 0c-13.020004 -9.349701 -15.97422 …
/tools/netsim/ui/dist/assets/
Dnetsim-logo-b.svg1c-9.375809 12.985214 -27.531181 15.932388 -40.551186 6.5826874l0 0c-13.020004 -9.349701 -15.97422 …
Dnetsim-logo.svg1c-9.375809 12.985214 -27.531181 15.932388 -40.551186 6.5826874l0 0c-13.020004 -9.349701 -15.97422 …
/tools/treble/hacksaw/config/
Dconfig.go33 func (c *Config) Read(input io.Reader) error {
38 return json.Unmarshal(cfgBytes, &c)
42 func (c Config) Write(output io.Writer) error {
43 cfgBytes, err := json.MarshalIndent(c, "", " ")
51 func (c *Config) ReadConfigFromFile(filePath string) error {
61 err = c.Read(cfgFile)
65 func (c Config) WriteConfigToFile(filePath string) error {
71 return c.Write(cfgFile)
75 func (c Config) Copy() Config {
77 DefaultCodebase: c.DefaultCodebase,
[all …]
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DJavadoc.kt333 val c = html[offset] in getBodyContents() constant
336 if (c == '<') { in getBodyContents()
346 if (c == '!') { in getBodyContents()
377 } else if (c == '/') { in getBodyContents()
382 } else if (c == '?') { in getBodyContents()
398 if (c == '>') { in getBodyContents()
416 val whitespace = Character.isWhitespace(c) in getBodyContents()
417 if (whitespace || c == '>') { in getBodyContents()
428 c == '>' -> { in getBodyContents()
431 c == '/' -> state = STATE_ENDING_TAG in getBodyContents()
[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/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/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/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DFieldItem.kt209 val c = str[i] in javaEscapeString() constant
211 when (c) { in javaEscapeString()
219 in ' '..'~' -> c in javaEscapeString()
220 else -> String.format("\\u%04x", c.code) in javaEscapeString()
232 val c = str[i] in javaUnescapeString() constant
233 if (c == '\\') { in javaUnescapeString()
253 val c = str[i] in javaUnescapeString() constant
256 if (c == '\\') { in javaUnescapeString()
259 buf.append(c) in javaUnescapeString()
262 when (c) { in javaUnescapeString()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DPythonUnitTestRunner.java122 CommandResult c = runUtil.runTimedCmd(1000, "which", "python"); in getPythonBinary() local
123 String pythonBin = c.getStdout().trim(); in getPythonBinary()
127 c = runUtil.runTimedCmd(1000, pythonBin, "--version"); in getPythonBinary()
129 CLog.i("Found python version: %s", c.getStderr()); in getPythonBinary()
130 checkPythonVersion(c); in getPythonBinary()
152 protected void checkPythonVersion(CommandResult c) { in checkPythonVersion() argument
154 Matcher versionParts = Pattern.compile(VERSION_REGEX).matcher(c.getStderr()); in checkPythonVersion()
166 String.format("Could not parse the current version: '%s'", c.getStderr())); in checkPythonVersion()
190 c.getStderr(), mMinPyVersion)); in checkPythonVersion()
204 CommandResult c = runUtil.runTimedCmd(mTestTimeout, cmd); in doRunTest() local
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DPythonVirtualenvPreparer.java76 CommandResult c = mRunUtil.runTimedCmd(BASE_TIMEOUT * 5, mPip, in installDeps() local
78 if (c.getStatus() != CommandStatus.SUCCESS) { in installDeps()
89 CommandResult c = mRunUtil.runTimedCmd(BASE_TIMEOUT * 5, mPip, in installDeps() local
91 if (c.getStatus() != CommandStatus.SUCCESS) { in installDeps()
97 CLog.d("Stdout: %s", c.getStdout()); in installDeps()
140 CommandResult c = in startVirtualenv() local
142 if (c.getStatus() != CommandStatus.SUCCESS) { in startVirtualenv()
146 c.getStatus(), c.getStdout(), c.getStderr()); in startVirtualenv()
149 "Failed to create virtual environment. Error:\n%s", c.getStderr()), in startVirtualenv()
/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]
/tools/netsim/ui/dist/js/
Dnetsim-app.js1 …t@v2.5.0-jYRq0AKQogjUdUh7SCAE/mode=imports/optimized/lit/decorators.js";let c=class extends n{cons… class
23 `}};c.styles=t`
43 …`,e([o()],c.prototype,"viewMode",void 0),e([o()],c.prototype,"version",void 0),c=e([s("netsim-app"…
/tools/test/connectivity/acts/framework/acts/controllers/
Diperf_server.py58 for c in configs:
59 if type(c) in (str, int) and str(c).isdigit():
60 results.append(IPerfServer(int(c)))
61 elif type(c) is dict and 'AndroidDevice' in c and 'port' in c:
62 results.append(IPerfServerOverAdb(c['AndroidDevice'], c['port']))
63 elif type(c) is dict and 'ssh_config' in c and 'port' in c:
65 IPerfServerOverSsh(c['ssh_config'],
66 c['port'],
67 test_interface=c.get('test_interface'),
68 use_killall=c.get('use_killall')))
[all …]
Diperf_client.py55 for c in configs:
56 if type(c) is dict and 'AndroidDevice' in c:
58 IPerfClientOverAdb(c['AndroidDevice'],
59 test_interface=c.get('test_interface')))
60 elif type(c) is dict and 'ssh_config' in c:
62 IPerfClientOverSsh(c['ssh_config'],
63 test_interface=c.get('test_interface')))
/tools/tradefederation/core/javatests/com/android/tradefed/config/
DArgsOptionParserTest.java1166 IKeyStoreClient c = mock(IKeyStoreClient.class); in testKeyStore_string() local
1167 when(c.isAvailable()).thenReturn(true); in testKeyStore_string()
1168 when(c.containsKey("foo")).thenReturn(true); in testKeyStore_string()
1169 when(c.fetchKey("foo")).thenReturn(expectedValue); in testKeyStore_string()
1173 parser.setKeyStore(c); in testKeyStore_string()
1209 IKeyStoreClient c = mock(IKeyStoreClient.class); in testKeyStore_stringWithUnavalableKeyStore() local
1210 when(c.isAvailable()).thenReturn(false); in testKeyStore_stringWithUnavalableKeyStore()
1214 parser.setKeyStore(c); in testKeyStore_stringWithUnavalableKeyStore()
1223 IKeyStoreClient c = mock(IKeyStoreClient.class); in testKeyStore_stringWithUnavalableKeyStoreWithKey() local
1224 when(c.isAvailable()).thenReturn(false); in testKeyStore_stringWithUnavalableKeyStoreWithKey()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/presubmit/
DDeviceTestsConfigValidation.java87 IConfiguration c = in testConfigsLoad() local
92 ValidateSuiteConfigHelper.validateConfig(c); in testConfigsLoad()
94 for (IDeviceConfiguration dConfig : c.getDeviceConfig()) { in testConfigsLoad()
96 c, config, dConfig.getTargetPreparers()); in testConfigsLoad()
99 GeneralTestsConfigValidation.checkRunners(c.getTests(), "device-tests"); in testConfigsLoad()
101 ConfigurationDescriptor cd = c.getConfigurationDescription(); in testConfigsLoad()
103 c.getName(), cd.getMetaData(ITestSuite.PARAMETER_KEY)); in testConfigsLoad()
106 GeneralTestsConfigValidation.checkDisallowedTestType(c, mDisallowedTestTypes); in testConfigsLoad()
/tools/security/gdb/gdb_json_printer/test_examples/
Dobjects2.cpp34 uint32_t c = 3; member in Foo2
36 virtual int get() override { return c; } in get()
51 uint32_t c = 3; member in Foo5
53 virtual int get() override { return c; } in get()
79 Foo &c = *w; in main() local
81 b.c += 1; in main()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DPythonUnitTestRunnerTest.java145 CommandResult c = new CommandResult(); in testCheckPythonVersion_276given270min() local
146 c.setStderr("Python 2.7.6"); in testCheckPythonVersion_276given270min()
147 mRunner.checkPythonVersion(c); in testCheckPythonVersion_276given270min()
152 CommandResult c = new CommandResult(); in testCheckPythonVersion_276given331min() local
153 c.setStderr("Python 2.7.6"); in testCheckPythonVersion_276given331min()
156 mRunner.checkPythonVersion(c); in testCheckPythonVersion_276given331min()
165 CommandResult c = new CommandResult(); in testCheckPythonVersion_300given276min() local
166 c.setStderr("Python 3.0.0"); in testCheckPythonVersion_300given276min()
168 mRunner.checkPythonVersion(c); in testCheckPythonVersion_300given276min()

12345678