Home
last modified time | relevance | path

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

1234

/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/
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 …]
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 …]
/tools/repohooks/rh/
Dhooks_unittest.py53 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 …]
Dhooks.py70 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 …]
Dutils_unittest.py138 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 …]
Dutils.py49 ret = '%i.%03is' % (secs, delta.microseconds // 1000)
51 ret = '%im%s' % (mins, ret)
53 ret = '%ih%s' % (hours, ret)
54 return ret
/tools/test/connectivity/acts/framework/tests/libs/
Dversion_selector_test.py37 return version_selector.set_version(lambda ret, *_, **__: ret, min_sdk,
42 return version_selector.set_version(lambda ret, *_, **__: ret, min_sdk,
71 return version_selector.set_version(lambda _, ret, *__, **___: ret,
235 ret = versioned_func(1, 'some_value')
237 ret, ('function 1', 1, 'some_value'),
244 ret = versioned_func(16, 'some_value')
246 ret, ('function 3', 16, 'some_value'),
253 ret = versioned_func(10, 'some_value')
255 ret, ('function 1', 10, 'some_value'),
262 ret = versioned_func(11, 'some_value')
[all …]
/tools/test/connectivity/acts_tests/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/security/fuzzing/orphans/libffi/
Dfuzz_ffi.cc117 void* ret = malloc(type_size); in genArg() local
120 memcpy(ret, bytes.data(), bytes.size()); in genArg()
122 return ret; in genArg()
161 ffi_status ret; in runMainFunctions() local
173 ret = ffi_prep_closure_loc( in runMainFunctions()
179 if (ret != FFI_OK) { in runMainFunctions()
200 ffi_status ret; in runRawFunctions() local
211 ret = ffi_prep_raw_closure_loc( in runRawFunctions()
217 if (ret != FFI_OK) { in runRawFunctions()
245 ffi_status ret; in runJavaFunctions() local
[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/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/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/repohooks/
Dpre-upload.py184 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
/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/tests/src/com/android/tradefed/device/
DTestDeviceTest.java3299 int ret = 0; in testSwitchUser()
3302 return ret; in testSwitchUser()
3306 ret = 10; in testSwitchUser()
3331 int ret = 0; in testSwitchUser_delay()
3335 return ret; in testSwitchUser_delay()
3377 ret = 10; in testSwitchUser_delay()
3389 int ret = 0; in testSwitchUser_noChange()
3392 return ret; in testSwitchUser_noChange()
3396 ret = 0; in testSwitchUser_noChange()
3423 int ret = 0; in testSwitchUser_api30()
[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/acts/controllers/
Dadb.py157 ret, out, err = result.exit_status, result.stdout, result.stderr
160 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
165 if ret == 1 and (DEVICE_NOT_FOUND_REGEX.match(err)
167 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
168 if ret == 2:
169 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/acts/controllers/ap_lib/
Dhostapd_config.py116 ret = []
119 ret.append(hostapd_constants.N_CAPABILITIES_MAPPING[cap])
120 return ''.join(ret)
126 ret = []
129 ret.append(hostapd_constants.AC_CAPABILITIES_MAPPING[cap])
130 return ''.join(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/tests/google/wifi/
DWifiStressTest.py175 ret = ad.droid.wifiAddNetwork(network)
176 asserts.assert_true(ret != -1, "Failed to add network %s" %
178 ad.droid.wifiEnableNetwork(ret, 0)
386 ret = self.dut.droid.wifiAddNetwork(network)
387 asserts.assert_true(ret != -1, "Add network %r failed" % network)
388 self.dut.droid.wifiEnableNetwork(ret, 0)

1234