Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 45) sorted by relevance

12

/tools/repohooks/rh/
Dhooks_unittest.py53 ret = []
64 ret.append(line)
65 return ''.join(ret)
106 ret = list(self.replacer.vars())
107 self.assertGreater(len(ret), 4)
108 self.assertIn('PREUPLOAD_COMMIT', ret)
217 ret = rh.hooks._run_command(['true'])
218 self.assertEqual(ret.returncode, 0)
224 ret = rh.hooks._get_build_os_name()
225 self.assertTrue(isinstance(ret, str))
[all …]
Dhooks.py69 ret = []
76 ret.append(val)
78 ret.extend(val)
89 ret.append(re.sub(r'\$\{(%s)\}' % ('|'.join(all_vars),),
92 return ret
450 ret = []
455 ret.append(rh.results.HookResult(
458 return ret
470 ret = []
476 ret.append(rh.results.HookResult(
[all …]
/tools/test/connectivity/acts/tests/google/bt/car_bt/
DBtCarHfpConnectionTest.py114 ret = True
115 ret &= car_telecom_utils.wait_for_not_in_call(self.log, self.hf)
116 ret &= car_telecom_utils.wait_for_not_in_call(self.log, self.ag)
117 ret &= car_telecom_utils.wait_for_not_in_call(self.log, self.re)
119 return ret
194 ret = True
195 ret &= car_telecom_utils.wait_for_not_in_call(self.log, self.hf)
196 ret &= car_telecom_utils.wait_for_not_in_call(self.log, self.ag)
197 ret &= car_telecom_utils.wait_for_not_in_call(self.log, self.re)
199 return ret
[all …]
DBtCarHfpTest.py305 ret = True
307 ret &= tel_telecom_utils.wait_for_dialing(self.log, self.hf)
308 ret &= tel_telecom_utils.wait_for_dialing(self.log, self.ag)
309 ret &= tel_telecom_utils.wait_for_ringing(self.log, self.re)
311 ret &= tel_telecom_utils.wait_for_ringing(self.log, self.hf)
312 ret &= tel_telecom_utils.wait_for_ringing(self.log, self.ag)
313 ret &= tel_telecom_utils.wait_for_dialing(self.log, self.re)
314 if not ret:
344 ret &= tel_telecom_utils.wait_for_not_in_call(self.log, d)
345 return ret
DBtCarHfpConferenceTest.py94 ret = True
95 ret &= wait_for_ringing_call(self.log, self.ag)
96 ret &= car_telecom_utils.wait_for_ringing(self.log, self.hf)
98 if not ret:
123 ret &= wait_for_ringing_call(self.log, self.ag)
124 ret &= car_telecom_utils.wait_for_ringing(self.log, self.hf)
126 if not ret:
/tools/tradefederation/core/python-lib/tradefed_py/
Dadb_handler.py31 ret = proc.returncode
32 if ret == 0:
34 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
41 ret = proc.returncode
42 if ret == 0:
44 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
/tools/tradefederation/core/prod-tests/tests/src/com/android/build/tests/
DImageStatsTest.java82 Map<String, Long> ret = mImageStats.parseFileSizes( in testParseFileSizes() local
85 PARSED_TEST_DATA, ret); in testParseFileSizes()
137 Map<String, String> ret = mImageStats.performAggregation(PARSED_TEST_DATA, mapping); in testPerformAggregation() local
139 "381472844", ret.get("ext-apk")); in testPerformAggregation()
141 "2039929", ret.get("ext-jar")); in testPerformAggregation()
143 "1005816", ret.get("ext-ttf")); in testPerformAggregation()
145 "0", ret.get("uncategorized")); in testPerformAggregation()
147 "385519430", ret.get("total")); in testPerformAggregation()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DCodeCoverageTestBase.java304 Set<InstrumentationTarget> ret = new HashSet<>(); in getInstrumentationTargets() local
316 ret.add(target); in getInstrumentationTargets()
320 return ret; in getInstrumentationTargets()
362 IRemoteAndroidTestRunner ret = internalCreateTestRunner( in createTestRunner() local
367 ret.addInstrumentationArg(argEntry.getKey(), argEntry.getValue()); in createTestRunner()
372 ret.addInstrumentationArg("shardIndex", Integer.toString(shardIndex)); in createTestRunner()
373 ret.addInstrumentationArg("numShards", Integer.toString(numShards)); in createTestRunner()
376 return ret; in createTestRunner()
432 InstrumentationTest ret = internalCreateTest(); in createTest() local
433 ret.setDevice(getDevice()); in createTest()
[all …]
/tools/tradefederation/core/prod-tests/src/com/android/build/tests/
DImageStats.java151 Map<String, Long> ret = new HashMap<>(); in parseFileSizes() local
170 ret.put(fields[1], size); in parseFileSizes()
173 return ret; in parseFileSizes()
178 Map<Pattern, String> ret = new HashMap<>(); in processAggregationPatterns() local
181 ret.put(p, e.getValue()); in processAggregationPatterns()
183 return ret; in processAggregationPatterns()
271 Map<String, String> ret = new HashMap<>(); in performAggregation() local
279 ret.put(e.getKey(), Long.toString(e.getValue())); in performAggregation()
281 ret.put(LABEL_UNCATEGORIZED, Long.toString(uncategorized)); in performAggregation()
282 ret.put(LABEL_TOTAL, Long.toString(total)); in performAggregation()
[all …]
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_runners/
Dota_runner_factory_test.py55 ret = ota_runner_factory.get_ota_value_from_config(
57 self.assertEqual(expected_value, ret)
116 ret = ota_runner_factory.create('', '', self.device)
117 self.assertEqual(type(ret), ota_runner.SingleUseOtaRunner)
121 ret = ota_runner_factory.create([], [], self.device)
122 self.assertEqual(type(ret), ota_runner.MultiUseOtaRunner)
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_tools/
Dota_tool_factory_test.py34 ret = ota_tool_factory.create(MockOtaTool.__name__, 'command')
35 self.assertEqual(type(ret), MockOtaTool)
36 self.assertTrue(ret in ota_tool_factory._constructed_tools.values())
Dadb_sideload_ota_tool_test.py30 ret = mock.Mock(
34 return ret
Dupdate_device_ota_tool_test.py29 ret = mock.Mock(
33 return ret
/tools/test/connectivity/tools/lab/
Dtest_main.py27 ret = not runner.run(suite).wasSuccessful()
28 sys.exit(ret)
/tools/tradefederation/core/src/com/android/tradefed/util/
DPropertyChanger.java48 File ret = FileUtil.createTempFile("chg_prop_", ".prop"); in changeProperties() local
53 bw = new BufferedWriter(new FileWriter(ret)); in changeProperties()
76 return ret; in changeProperties()
DDeviceConcurrentUtil.java58 T ret = task.get(timeout, TimeUnit.MILLISECONDS); in joinFuture() local
59 return ret; in joinFuture()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DBluetoothUtilsTest.java75 Set<String> ret = BluetoothUtils.parseBondedDeviceInstrumentationOutput(lines); in testParseBondedDeviceInstrumentationOutput() local
76 Assert.assertEquals("return set has wrong number of entries", 3, ret.size()); in testParseBondedDeviceInstrumentationOutput()
77 Assert.assertTrue("missing mac 00", ret.contains("11:22:33:44:55:66")); in testParseBondedDeviceInstrumentationOutput()
78 Assert.assertTrue("missing mac 01", ret.contains("22:33:44:55:66:77")); in testParseBondedDeviceInstrumentationOutput()
79 Assert.assertTrue("missing mac 02", ret.contains("33:44:55:66:77:88")); in testParseBondedDeviceInstrumentationOutput()
/tools/repohooks/
Dpre-upload.py149 ret = ''
151 ret += ' FILES: %s' % (result.files,)
153 ret += '\n'.join(' %s' % (x,) for x in lines)
155 warning_ret += ret
157 error_ret += ret
281 ret = True
302 ret = False
314 return ret
/tools/test/connectivity/acts/tests/google/wifi/
DWifiHiddenSSIDTest.py110 ret = self.dut.droid.wifiAddNetwork(hidden_network)
111 asserts.assert_true(ret != -1, "Add network %r failed" % hidden_network)
112 self.dut.droid.wifiEnableNetwork(ret, 0)
DWifiAutoUpdateTest.py124 ret = self.dut.droid.wifiAddNetwork(network)
125 asserts.assert_true(ret != -1, "Add network %r failed" % network)
128 WifiEnums.NETID_KEY: ret})
129 self.dut.droid.wifiEnableNetwork(ret, 0)
DWifiPnoTest.py139 ret = self.dut.droid.wifiAddNetwork(network)
140 asserts.assert_true(ret != -1, "Add network %r failed" % network)
141 self.dut.droid.wifiEnableNetwork(ret, 0)
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DCpuThrottlingWaiter.java118 Map<String, String> ret = new HashMap<>(); in getCpuMaxFreqs() local
137 ret.put(cpu, maxFreq); in getCpuMaxFreqs()
140 return ret; in getCpuMaxFreqs()
/tools/test/connectivity/acts/framework/acts/controllers/
Dadb.py164 ret, out, err = result.exit_status, result.stdout, result.stderr
167 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
172 if ret == 1 and DEVICE_NOT_FOUND_REGEX.match(err):
173 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
/tools/loganalysis/src/com/android/loganalysis/parser/
DEventsLogParser.java152 Matcher ret = pattern.matcher(line); in matches() local
153 return ret.matches() ? ret : null; in matches()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/host/
DCoverageMeasurementForwarderTest.java130 File ret = mFolder.newFile(); in mockBuildArtifact() local
131 try (OutputStream out = new FileOutputStream(ret)) { in mockBuildArtifact()
134 return ret; in mockBuildArtifact()

12