Home
last modified time | relevance | path

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

123

/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/
Dvecmath.cpp64 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 …]
Dvecmath.h78 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/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
509 ret = []
514 ret.append(rh.results.HookResult(
517 return ret
529 ret = []
535 ret.append(rh.results.HookResult(
[all …]
/tools/test/connectivity/acts/framework/tests/libs/
Dversion_selector_test.py32 return version_selector.set_version(lambda ret, *_, **__: ret, min_sdk,
37 return version_selector.set_version(lambda ret, *_, **__: ret, min_sdk,
66 return version_selector.set_version(lambda _, ret, *__, **___: ret, min_sdk,
209 ret = versioned_func(1, 'some_value')
210 self.assertEqual(ret, ('function 1', 1, 'some_value'),
217 ret = versioned_func(16, 'some_value')
218 self.assertEqual(ret, ('function 3', 16, 'some_value'),
225 ret = versioned_func(10, 'some_value')
226 self.assertEqual(ret, ('function 1', 10, 'some_value'),
233 ret = versioned_func(11, 'some_value')
[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.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/queries/
DSliceQueries.kt76 val ret = mutableListOf<Slice>() in selectAll() constant
79 ret.add(it) in selectAll()
82 return ret in selectAll()
91 val ret = mutableListOf<Slice>() in ProcessModel() constant
94 ret.add(it) in ProcessModel()
97 return ret in ProcessModel()
101 val ret = mutableListOf<Slice>() in selectAll() constant
104 ret.add(it) in selectAll()
107 return ret in selectAll()
126 var ret : Slice? = null in ProcessModel() variable
[all …]
/tools/tradefederation/contrib/src/com/android/build/tests/
DImageStats.java167 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/tradefederation/contrib/tests/src/com/android/build/tests/
DImageStatsTest.java71 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/test/connectivity/acts/framework/acts/event/
Dsubscription_handle.py47 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/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/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DStringCache.kt27 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()
/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/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/framework/acts/controllers/buds_lib/test_actions/
Dapollo_acts.py345 ret = False
348 ret = True
351 return ret
443 ret = False
445 ret = self._wait_for_bluetooth_profile_connection(
449 return ret
516 ret = False
534 ret = True
540 return ret
/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/test/connectivity/acts/framework/acts/controllers/ap_lib/
Dhostapd_config.py107 ret = []
110 ret.append(hostapd_constants.N_CAPABILITIES_MAPPING[cap])
111 return ''.join(ret)
117 ret = []
120 ret.append(hostapd_constants.AC_CAPABILITIES_MAPPING[cap])
121 return ''.join(ret)
/tools/test/connectivity/acts/tests/google/wifi/
DWifiAutoUpdateTest.py125 ret = self.dut.droid.wifiAddNetwork(network)
126 asserts.assert_true(ret != -1, "Add network %r failed" % network)
129 WifiEnums.NETID_KEY: ret})
130 self.dut.droid.wifiEnableNetwork(ret, 0)
DWifiStressTest.py180 ret = ad.droid.wifiAddNetwork(network)
181 asserts.assert_true(ret != -1, "Failed to add network %s" %
183 ad.droid.wifiEnableNetwork(ret, 0)
398 ret = self.dut.droid.wifiAddNetwork(network)
399 asserts.assert_true(ret != -1, "Add network %r failed" % network)
400 self.dut.droid.wifiEnableNetwork(ret, 0)
/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())
/tools/test/connectivity/acts/framework/acts/controllers/
Dadb.py169 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) or
179 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
Dfastboot.py68 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/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()

123