/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/ |
D | vecmath.cpp | 64 Mat4 ret; in operator *() local 65 ret.f_[0] = f_[0] * rhs.f_[0] + f_[4] * rhs.f_[1] + f_[8] * rhs.f_[2] + in operator *() 67 ret.f_[1] = f_[1] * rhs.f_[0] + f_[5] * rhs.f_[1] + f_[9] * rhs.f_[2] + in operator *() 69 ret.f_[2] = f_[2] * rhs.f_[0] + f_[6] * rhs.f_[1] + f_[10] * rhs.f_[2] + in operator *() 71 ret.f_[3] = f_[3] * rhs.f_[0] + f_[7] * rhs.f_[1] + f_[11] * rhs.f_[2] + in operator *() 74 ret.f_[4] = f_[0] * rhs.f_[4] + f_[4] * rhs.f_[5] + f_[8] * rhs.f_[6] + in operator *() 76 ret.f_[5] = f_[1] * rhs.f_[4] + f_[5] * rhs.f_[5] + f_[9] * rhs.f_[6] + in operator *() 78 ret.f_[6] = f_[2] * rhs.f_[4] + f_[6] * rhs.f_[5] + f_[10] * rhs.f_[6] + in operator *() 80 ret.f_[7] = f_[3] * rhs.f_[4] + f_[7] * rhs.f_[5] + f_[11] * rhs.f_[6] + in operator *() 83 ret.f_[8] = f_[0] * rhs.f_[8] + f_[4] * rhs.f_[9] + f_[8] * rhs.f_[10] + in operator *() [all …]
|
D | vecmath.h | 78 Vec2 ret; variable 79 ret.x_ = x_ * rhs.x_; 80 ret.y_ = y_ * rhs.y_; 81 return ret; 85 Vec2 ret; variable 86 ret.x_ = x_ / rhs.x_; 87 ret.y_ = y_ / rhs.y_; 88 return ret; 92 Vec2 ret; variable 93 ret.x_ = x_ + rhs.x_; [all …]
|
/tools/test/connectivity/acts/framework/tests/libs/ |
D | version_selector_test.py | 35 return version_selector.set_version(lambda ret, *_, **__: ret, min_sdk, 40 return version_selector.set_version(lambda ret, *_, **__: ret, min_sdk, 69 return version_selector.set_version(lambda _, ret, *__, **___: ret, 220 ret = versioned_func(1, 'some_value') 222 ret, ('function 1', 1, 'some_value'), 229 ret = versioned_func(16, 'some_value') 231 ret, ('function 3', 16, 'some_value'), 238 ret = versioned_func(10, 'some_value') 240 ret, ('function 1', 10, 'some_value'), 247 ret = versioned_func(11, 'some_value') [all …]
|
/tools/repohooks/rh/ |
D | hooks_unittest.py | 53 ret = [] 66 ret.append(line) 67 return ''.join(ret) 110 ret = list(self.replacer.vars()) 111 self.assertGreater(len(ret), 4) 112 self.assertIn('PREUPLOAD_COMMIT', ret) 234 ret = rh.hooks._run(['true']) 235 self.assertEqual(ret.returncode, 0) 241 ret = rh.hooks._get_build_os_name() 242 self.assertTrue(isinstance(ret, string_types)) [all …]
|
D | utils_unittest.py | 138 ret = rh.utils.run(['true']) 139 self.assertEqual('true', ret.cmdstr) 140 self.assertIsNone(ret.stdout) 141 self.assertIsNone(ret.stderr) 145 ret = rh.utils.run(['echo', 'hi'], redirect_stdout=True) 146 self.assertEqual('hi\n', ret.stdout) 147 self.assertIsNone(ret.stderr) 151 ret = rh.utils.run(['sh', '-c', 'echo hi >&2'], redirect_stderr=True) 152 self.assertIsNone(ret.stdout) 153 self.assertEqual('hi\n', ret.stderr) [all …]
|
D | hooks.py | 70 ret = [] 74 assert len(ret) > 1, ('PREUPLOAD_FILES_PREFIXED cannot be ' 76 prev_arg = ret[-1] 77 ret = ret[0:-1] 79 ret.append(prev_arg) 80 ret.append(file) 83 ret.extend( 91 ret.append(val) 93 ret.extend(val) 103 ret.append(re.sub(r'\$\{(%s)\}' % ('|'.join(all_vars),), [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.re) 96 ret &= car_telecom_utils.wait_for_ringing(self.log, self.hf) 98 if not ret: 127 ret &= wait_for_ringing_call(self.log, self.re2) 128 ret &= car_telecom_utils.wait_for_ringing(self.log, self.hf) 130 if not ret:
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/ |
D | StringCache.kt | 27 var ret = cache[slice] in stringFor() variable 28 if (ret == null) { in stringFor() 29 ret = slice.toString() in stringFor() 30 cache.putIfAbsent(slice.compact(), ret) in stringFor() 32 return ret in stringFor()
|
D | Builders.kt | 42 val ret = cb.invoke(p) in noReset() constant 44 return ret in noReset()
|
/tools/test/connectivity/acts/framework/acts/event/ |
D | subscription_handle.py | 47 ret = SubscriptionHandle(self._event_type, self._func, 49 ret._owner = instance 50 ret._func = ret._wrap_call(ret._func) 53 setattr(instance, attr, ret) 55 return ret
|
/tools/carrier_settings/python/ |
D | update_apn.py | 48 ret = cid.mcc_mnc 50 ret += 'SPN=' + cid.spn.upper() 52 ret += 'IMSI=' + cid.imsi.upper() 54 ret += 'GID1=' + cid.gid1.upper() 55 return ret 87 ret = dict() 94 ret[to_string(cid)] = carriermap.canonical_name 96 return ret 108 ret = carrier_list_pb2.CarrierId() 109 ret.mcc_mnc = (apn_node.getAttribute('mcc') + apn_node.getAttribute('mnc')) [all …]
|
D | update_carrier_data.py | 104 ret = list(dest_apns) 106 if not find_apn(source, ret): 107 ret.append(source) 108 return ret 113 ret = cid.mcc_mnc 115 ret += 'SPN=' + cid.spn.upper() 117 ret += 'IMSI=' + cid.imsi.upper() 119 ret += 'GID1=' + cid.gid1.upper() 120 return ret 169 ret = dict() [all …]
|
/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/contrib/tests/src/com/android/build/tests/ |
D | ImageStatsTest.java | 71 Map<String, Long> ret = in testParseFileSizes() local 74 "parsed test file sizes mismatches expectations", PARSED_TEST_DATA, ret); in testParseFileSizes() 128 Map<String, String> ret = mImageStats.performAggregation(PARSED_TEST_DATA, mapping); in testPerformAggregation() local 132 ret.get("ext-apk")); in testPerformAggregation() 136 ret.get("ext-jar")); in testPerformAggregation() 140 ret.get("ext-ttf")); in testPerformAggregation() 144 ret.get("uncategorized")); in testPerformAggregation() 148 ret.get("total")); in testPerformAggregation()
|
/tools/tradefederation/contrib/src/com/android/build/tests/ |
D | ImageStats.java | 167 Map<String, Long> ret = new HashMap<>(); in parseFileSizes() local 186 ret.put(fields[1], size); in parseFileSizes() 189 return ret; in parseFileSizes() 194 Map<Pattern, String> ret = new HashMap<>(); in processAggregationPatterns() local 197 ret.put(p, e.getValue()); in processAggregationPatterns() 199 return ret; in processAggregationPatterns() 291 Map<String, String> ret = new HashMap<>(); in performAggregation() local 300 ret.put(e.getKey(), Long.toString(e.getValue())); in performAggregation() 302 ret.put(LABEL_UNCATEGORIZED, Long.toString(uncategorized)); in performAggregation() 303 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())
|
/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/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()
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | adb.py | 169 ret, out, err = result.exit_status, result.stdout, result.stderr 172 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret) 177 if ret == 1 and (DEVICE_NOT_FOUND_REGEX.match(err) 179 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret) 180 if ret == 2: 181 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
|
D | fastboot.py | 68 ret, out, err = result.exit_status, result.stdout, result.stderr 73 if ret == 0 or ignore_status: 77 cmd=command, stdout=out, stderr=err, ret_code=ret)
|
/tools/test/connectivity/acts/framework/tests/test_utils/instrumentation/ |
D | config_wrapper_test.py | 75 ret = self.mock_config.get_config('missing') 76 self.assertIsInstance(ret, ConfigWrapper) 77 self.assertFalse(ret)
|
/tools/repohooks/ |
D | pre-upload.py | 184 ret = '' 186 ret += ' FILES: %s' % (result.files,) 188 ret += '\n'.join(' %s' % (x,) for x in lines) 191 warning_ret += ret 194 error_ret += ret 300 ret = True 321 ret = False 331 return ret
|