Home
last modified time | relevance | path

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

12

/tools/repohooks/rh/
Dshell.py44 def shell_quote(s): argument
71 s = s.encode('utf-8')
74 for c in s:
78 if not s:
81 return s
84 if "'" not in s:
85 return "'%s'" % s
90 if c in s:
91 s = s.replace(c, r'\%s' % c)
92 return '"%s"' % s
[all …]
/tools/test/connectivity/acts/framework/tests/
Dacts_records_test.py78 s = signals.TestPass(self.details, self.float_extra)
79 record.test_pass(s)
89 s = signals.TestPass(self.details, self.json_extra)
90 record.test_pass(s)
110 s = signals.TestFailure(self.details, self.float_extra)
111 record.test_fail(s)
121 s = signals.TestFailure(self.details, self.json_extra)
122 record.test_fail(s)
142 s = signals.TestSkip(self.details, self.float_extra)
143 record.test_skip(s)
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DTopHelper.java130 TopStats s = new TopStats(); in processNewLines() local
133 s.mUserPercent = Double.parseDouble(m.group(1)); in processNewLines()
134 s.mSystemPercent = Double.parseDouble(m.group(2)); in processNewLines()
135 s.mIowPercent = Double.parseDouble(m.group(3)); in processNewLines()
136 s.mIrqPercent = Double.parseDouble(m.group(4)); in processNewLines()
137 s.mTotalPercent = (s.mUserPercent + s.mSystemPercent + s.mIowPercent + in processNewLines()
138 s.mIrqPercent); in processNewLines()
140 mTopStats.add(s); in processNewLines()
316 for (TopStats s : topStats) { in getAveragePercentage()
319 stats.add(s.mTotalPercent); in getAveragePercentage()
[all …]
DCpuStatsCollector.java250 CpuStats s = new CpuStats(); in processNewLines() local
251 s.mTimeStats.put(TimeCategory.USER, Integer.parseInt(args[1])); in processNewLines()
252 s.mTimeStats.put(TimeCategory.NICE, Integer.parseInt(args[2])); in processNewLines()
253 s.mTimeStats.put(TimeCategory.SYS, Integer.parseInt(args[3])); in processNewLines()
254 s.mTimeStats.put(TimeCategory.IDLE, Integer.parseInt(args[4])); in processNewLines()
255 s.mTimeStats.put(TimeCategory.IOW, Integer.parseInt(args[5])); in processNewLines()
256 s.mTimeStats.put(TimeCategory.IRQ, Integer.parseInt(args[6])); in processNewLines()
257 s.mTimeStats.put(TimeCategory.SIRQ, Integer.parseInt(args[7])); in processNewLines()
259 s.mFreqStats.put(Integer.parseInt(args[8 + i]), in processNewLines()
266 mCpuStats.get(args[0]).add(s); in processNewLines()
[all …]
DCollectingOutputReceiver.java56 String s = null; in addOutput() local
58 s = new String(data, offset, length, "ISO-8859-1"); //$NON-NLS-1$ in addOutput()
61 s = new String(data, offset,length); in addOutput()
63 mOutputBuffer.append(s); in addOutput()
DIManagedTestDevice.java35 DeviceEventResponse(DeviceAllocationState s, boolean b) { in DeviceEventResponse() argument
36 allocationState = s; in DeviceEventResponse()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSimplePerfResult.java58 protected void setCommandRawOutput(String s) { in setCommandRawOutput() argument
59 if (s != null) { in setCommandRawOutput()
60 commandRawOutput = s.trim(); in setCommandRawOutput()
77 protected void setSimplePerfRawOutput(String s) { in setSimplePerfRawOutput() argument
78 if (s != null) { in setSimplePerfRawOutput()
79 simplePerfRawOutput = s.trim(); in setSimplePerfRawOutput()
DDirectedGraph.java41 StringBuffer s = new StringBuffer(); in toString() local
42 for (V v: neighbors.keySet()) s.append("\n " + v + " -> " + neighbors.get(v)); in toString()
43 return s.toString(); in toString()
DTarUtil.java153 InputStreamSource s = null; in extractAndLog() local
155 s = new FileInputStreamSource(f); in extractAndLog()
157 LogDataType.TEXT, s); in extractAndLog()
159 StreamUtil.cancel(s); in extractAndLog()
/tools/loganalysis/src/com/android/loganalysis/util/
DNumberFormattingUtil.java52 public static long parseLongOrZero(String s) throws NumberFormatException { in parseLongOrZero() argument
53 if (s == null) { in parseLongOrZero()
56 return Long.parseLong(s); in parseLongOrZero()
67 public static int parseIntOrZero(String s) throws NumberFormatException { in parseIntOrZero() argument
68 if (s == null) { in parseIntOrZero()
71 return Integer.parseInt(s); in parseIntOrZero()
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/
Dhost_utils.py51 s = socket.socket(socket.AF_INET, socket_type, socket_proto)
54 s.bind(('', port))
57 return s.getsockname()[1]
61 s.close()
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/
DSl4aClient.java86 ServerSocket s = null; in Sl4aClient() local
89 s = new ServerSocket(0); in Sl4aClient()
90 s.setReuseAddress(true); in Sl4aClient()
91 port = s.getLocalPort(); in Sl4aClient()
92 s.close(); in Sl4aClient()
127 ServerSocket s = null; in startSL4A() local
130 s = new ServerSocket(0); in startSL4A()
131 s.setReuseAddress(true); in startSL4A()
132 port = s.getLocalPort(); in startSL4A()
133 s.close(); in startSL4A()
/tools/test/connectivity/acts/tests/google/bt/pts/
Dcmd_input.py344 s for s in gatt_test_database.GATT_SERVER_DB_MAPPING.keys()
345 if s.startswith(text)
355 s for s in GattServerResponses.keys() if s.startswith(text)
366 s for s in GattServerResponses.keys() if s.startswith(text)
377 s for s in GattServerResponses.keys() if s.startswith(text)
488 completions = [s for s in options if s.startswith(text)]
497 completions = [s for s in options if s.startswith(text)]
505 completions = [s for s in str_adv_list if s.startswith(text)]
600 completions = [s for s in options if s.startswith(text)]
608 completions = [s for s in completions if s.startswith(text)]
/tools/apksig/src/apksigner/java/com/android/apksigner/
Dhelp_verify.txt12 --print-certs Show information about the APK's signing certificates
16 --min-sdk-version Lowest API Level on which this APK's signatures will be
20 --max-sdk-version Highest API Level on which this APK's signatures will be
33 1. Check whether the APK's signatures are expected to verify on all Android
37 2. Check whether the APK's signatures are expected to verify on Android
/tools/test/connectivity/acts/framework/acts/
Dlogger.py48 h, m, s = time.split(':')
49 s, ms = s.split('.')
50 return (month, day, h, m, s, ms)
98 s, ms = divmod(epoch_time, 1000)
99 d = datetime.datetime.fromtimestamp(s)
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DDummy83BufferGenerator.java80 public static boolean cleanString(String s) { in cleanString() argument
81 for (int i=0; i < s.length(); i++) { in cleanString()
82 if (isSkipChar(s.charAt(i))) return false; in cleanString()
83 if (!validChar(s.charAt(i))) return false; in cleanString()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DFolderSaver.java92 InputStreamSource s = null; in tearDown() local
94 s = new FileInputStreamSource(zip); in tearDown()
95 mTestLogger.testLog(path, LogDataType.ZIP, s); in tearDown()
97 StreamUtil.cancel(s); in tearDown()
/tools/tradefederation/core/src/com/android/tradefed/result/
DCollectingTestListener.java245 for (TestStatus s : TestStatus.values()) { in getNumTotalTests()
246 total += mStatusCounts[s.ordinal()]; in getNumTotalTests()
256 for (TestStatus s : TestStatus.values()) { in getNumTestsInState()
257 mStatusCounts[s.ordinal()] = 0; in getNumTestsInState()
259 mStatusCounts[s.ordinal()] += result.getNumTestsInState(s); in getNumTestsInState()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRunUtilFuncTest.java118 Writer s = null; in testRunTimedCmd_largeOutput() local
120 s = new BufferedWriter(new FileWriter(f)); in testRunTimedCmd_largeOutput()
122 s.write('a'); in testRunTimedCmd_largeOutput()
124 s.close(); in testRunTimedCmd_largeOutput()
135 StreamUtil.close(s); in testRunTimedCmd_largeOutput()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DTestsPoolPollerTest.java125 OptionSetter s = new OptionSetter(test); in testRun_runtimeException() local
126 s.setOptionValue("run-a-test", "true"); in testRun_runtimeException()
155 OptionSetter s = new OptionSetter(test); in testRun_deviceUnresponsive() local
156 s.setOptionValue("run-a-test", "true"); in testRun_deviceUnresponsive()
185 OptionSetter s = new OptionSetter(test); in testRun_dnae() local
186 s.setOptionValue("run-a-test", "true"); in testRun_dnae()
222 OptionSetter s = new OptionSetter(test); in testRun_dnae_NotLastDevice() local
223 s.setOptionValue("run-a-test", "true"); in testRun_dnae_NotLastDevice()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DCodeCoverageTest.java89 InputStreamSource s = getDevice().getLogcat(500*1024); in run() local
91 LogDataType.LOGCAT, s); in run() local
92 s.cancel(); in run()
/tools/repohooks/tools/
Dcheckpatch.pl720 my $output = `git log --no-color --format='%H %s' -1 $commit 2>&1`;
3006 my $s = $stat;
3007 $s =~ s/{.*$//s;
3010 if ($s =~ /$Ident:\*$/s) {
3013 } elsif ($s =~ /^.\s*$Ident\s*\(/s) {
3015 } elsif ($s =~ /^.\s*else\b/s) {
3018 …} elsif ($prev_values eq 'E' && $s =~ /^.\s*(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?((?:\s*$Id…
3021 possible($type, "A:" . $s);
3024 } elsif ($s =~ /^.(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?($Ident)\b\s*(?!:)/s) {
3025 possible($1, "B:" . $s);
[all …]
/tools/tradefederation/core/prod-tests/src/com/android/app/tests/
DAppLaunchTest.java136 InputStreamSource s = getDevice().getScreenshot(); in performLaunchTest() local
137 listener.testLog("screenshot", LogDataType.PNG, s); in performLaunchTest()
138 s.cancel(); in performLaunchTest()
/tools/test/connectivity/acts/framework/acts/controllers/
Dnative_android_device.py57 for s in serials:
58 results.append(NativeAndroidDevice(s, logger=logger))
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java1683 SyncService s = Mockito.mock(SyncService.class); in testPullFile() local
1684 EasyMock.expect(mMockIDevice.getSyncService()).andReturn(s); in testPullFile()
1690 Mockito.verify(s) in testPullFile()
1695 Mockito.verify(s).close(); in testPullFile()
1708 SyncService s = Mockito.mock(SyncService.class); in testPullFile_fails() local
1709 EasyMock.expect(mMockIDevice.getSyncService()).andReturn(s); in testPullFile_fails()
1713 .when(s) in testPullFile_fails()
1721 Mockito.verify(s) in testPullFile_fails()
1726 Mockito.verify(s).close(); in testPullFile_fails()
1780 SyncService s = Mockito.mock(SyncService.class); in testPushFile() local
[all …]

12