Home
last modified time | relevance | path

Searched refs:IntType (Results 1 – 6 of 6) sorted by relevance

/system/security/keystore/
Dauth_token_table.cpp30 template <typename IntType, uint32_t byteOrder> struct choose_hton;
32 template <typename IntType> struct choose_hton<IntType, __ORDER_LITTLE_ENDIAN__> {
33 inline static IntType hton(const IntType& value) { in hton()
34 IntType result = 0; in hton()
37 for (int i = sizeof(IntType) - 1; i >= 0; --i) { in hton()
44 template <typename IntType> struct choose_hton<IntType, __ORDER_BIG_ENDIAN__> {
45 inline static IntType hton(const IntType& value) { return value; } in hton()
48 template <typename IntType> inline IntType hton(const IntType& value) { in hton()
49 return choose_hton<IntType, __BYTE_ORDER__>::hton(value); in hton()
52 template <typename IntType> inline IntType ntoh(const IntType& value) { in ntoh()
[all …]
Dkeymaster_enforcement.cpp404 template <typename IntType, uint32_t byteOrder> struct choose_hton;
406 template <typename IntType> struct choose_hton<IntType, __ORDER_LITTLE_ENDIAN__> {
407 inline static IntType hton(const IntType& value) { in hton()
408 IntType result = 0; in hton()
411 for (int i = sizeof(IntType) - 1; i >= 0; --i) { in hton()
418 template <typename IntType> struct choose_hton<IntType, __ORDER_BIG_ENDIAN__> {
419 inline static IntType hton(const IntType& value) { return value; } in hton()
422 template <typename IntType> inline IntType hton(const IntType& value) { in hton()
423 return choose_hton<IntType, __BYTE_ORDER__>::hton(value); in hton()
426 template <typename IntType> inline IntType ntoh(const IntType& value) { in ntoh()
[all …]
/system/chre/apps/wifi_offload/test/include/
Drandom_generator.h48 template <typename IntType>
49 IntType get() { in get()
50 return static_cast<IntType>(uniform_distribution_(random_engine_)); in get()
/system/testing/gtest_extras/
DOptions.cpp89 template <typename IntType>
90 static bool GetNumeric(const char* arg, const char* value, IntType* numeric_value, bool from_env) { in GetNumeric()
92 if constexpr (std::is_unsigned<IntType>::value) { in GetNumeric()
93 result = android::base::ParseUint<IntType>(value, numeric_value); in GetNumeric()
95 result = android::base::ParseInt<IntType>(value, numeric_value); in GetNumeric()
/system/tools/aidl/
Dgenerate_java_binder.cpp161 Variable* code = new Variable(types->IntType()->JavaType(), "transactionCode"); in StubClass()
174 Variable* code2 = new Variable(types->IntType()->JavaType(), "transactionCode"); in StubClass()
183 this->transact_code = new Variable(types->IntType()->JavaType(), "code"); in StubClass()
186 this->transact_flags = new Variable(types->IntType()->JavaType(), "flags"); in StubClass()
360 Variable* len = new Variable(types->IntType()->JavaType(), v->name + "_length"); in generate_new_array()
761 new Field(STATIC | FINAL, new Variable(types->IntType()->JavaType(), transactCodeName)); in generate_methods()
Dtype_java.h300 const Type* IntType() const { return m_int_type; } in IntType() function