/tools/repohooks/rh/ |
D | hooks_unittest.py | 53 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 …]
|
D | hooks.py | 69 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/ |
D | BtCarHfpConnectionTest.py | 114 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 …]
|
D | BtCarHfpTest.py | 305 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
|
D | BtCarHfpConferenceTest.py | 94 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/ |
D | adb_handler.py | 31 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/ |
D | ImageStatsTest.java | 82 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/ |
D | CodeCoverageTestBase.java | 304 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/ |
D | ImageStats.java | 151 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/ |
D | ota_runner_factory_test.py | 55 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/ |
D | ota_tool_factory_test.py | 34 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())
|
D | adb_sideload_ota_tool_test.py | 30 ret = mock.Mock( 34 return ret
|
D | update_device_ota_tool_test.py | 29 ret = mock.Mock( 33 return ret
|
/tools/test/connectivity/tools/lab/ |
D | test_main.py | 27 ret = not runner.run(suite).wasSuccessful() 28 sys.exit(ret)
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | PropertyChanger.java | 48 File ret = FileUtil.createTempFile("chg_prop_", ".prop"); in changeProperties() local 53 bw = new BufferedWriter(new FileWriter(ret)); in changeProperties() 76 return ret; in changeProperties()
|
D | DeviceConcurrentUtil.java | 58 T ret = task.get(timeout, TimeUnit.MILLISECONDS); in joinFuture() local 59 return ret; in joinFuture()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | BluetoothUtilsTest.java | 75 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/ |
D | pre-upload.py | 149 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/ |
D | WifiHiddenSSIDTest.py | 110 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)
|
D | WifiAutoUpdateTest.py | 124 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)
|
D | WifiPnoTest.py | 139 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/ |
D | CpuThrottlingWaiter.java | 118 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/ |
D | adb.py | 164 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/ |
D | EventsLogParser.java | 152 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/ |
D | CoverageMeasurementForwarderTest.java | 130 File ret = mFolder.newFile(); in mockBuildArtifact() local 131 try (OutputStream out = new FileOutputStream(ret)) { in mockBuildArtifact() 134 return ret; in mockBuildArtifact()
|