Home
last modified time | relevance | path

Searched refs:cast (Results 1 – 16 of 16) sorted by relevance

/system/extras/simpleperf/scripts/
Dsimpleperf_report_lib.py35 return ct.cast(p, ct.c_void_p).value is None
382 void_p = ct.cast(feature_data[0].data, ct.c_void_p)
383 arg_count = ct.cast(void_p, ct.POINTER(ct.c_uint32)).contents.value
387 str_len = ct.cast(void_p, ct.POINTER(ct.c_uint32)).contents.value
389 char_p = ct.cast(void_p, ct.POINTER(ct.c_char))
406 void_p = ct.cast(feature_data[0].data, ct.c_void_p)
407 str_len = ct.cast(void_p, ct.POINTER(ct.c_uint32)).contents.value
409 char_p = ct.cast(void_p, ct.POINTER(ct.c_char))
/system/bt/gd/hci/
Dclass_of_device_pybind11_type_caster.h50 static handle cast(bluetooth::hci::ClassOfDevice src, return_value_policy, handle) {
Daddress_pybind11_type_caster.h50 static handle cast(bluetooth::hci::Address src, return_value_policy, handle) {
/system/libziparchive/
DAndroid.bp38 // Enable -Wold-style-cast only for non-Windows targets. _islower_l,
40 // libcxx/include/__locale) has an old-style-cast.
44 "-Wold-style-cast",
/system/bt/gd/rust/linux/service/src/
Diface_bluetooth_gatt.rs16 use num_traits::cast::{FromPrimitive, ToPrimitive};
/system/tools/hidl/
DConstantExpression.cpp305 int64_t numBits = mRval->cast<int64_t>(); in evaluate()
461 literal = this->cast<bool>() ? "true" : "false"; in javaValue()
482 #define CASE_STR(__type__) return std::to_string(this->cast<__type__>()); in rawValue()
488 T ConstantExpression::cast() const { in cast() function in android::ConstantExpression
509 return this->cast<size_t>(); in castSizeT()
DConstantExpression.h163 T cast() const;
/system/tools/hidl/hidl2aidl/
DAidlTranslate.cpp310 std::string cast; in simpleTranslation() local
312 cast = "(char) "; in simpleTranslation()
316 out << "out." << field.field->name() << " = " << cast << inputAccess << ";\n"; in simpleTranslation()
320 out << "out.set" << StringHelper::Capitalize(field.fullName) << "(" << cast in simpleTranslation()
/system/security/keystore2/system_property/
Dlib.rs103 let f = &mut *res_p.cast::<&mut dyn FnMut(Option<&CStr>, Option<&CStr>)>(); in read_raw()
/system/bt/gd/rust/linux/stack/src/
Dbluetooth.rs10 use num_traits::cast::ToPrimitive;
/system/tools/aidl/
Dast_java.cpp171 : lvalue(l), rvalue(r), cast(c) {} in Assignment()
176 if (this->cast) { in Write()
177 to->Write("(%s)", this->cast->c_str()); in Write()
Dast_java.h162 std::optional<std::string> cast = std::nullopt; member
166 std::string cast);
/system/core/libutils/include/utils/
DStrongPointer.h82 static inline sp<T> cast(const sp<U>& other);
298 sp<T> sp<T>::cast(const sp<U>& other) { in cast() function
/system/apex/apexd/
DAndroid.bp11 "bugprone-misplaced-widening-cast",
/system/chre/build/sys_support/qcom/
Dchre.scons88 env.Replace(HEXAGONCC_WARN = '-Wall -Wno-cast-align -Wpointer-arith -Wno-missing-braces' \
/system/bt/doc/
Dstyle_guide.md33 In general, do not cast pointers to integers or vice versa.