Home
last modified time | relevance | path

Searched refs:arr (Results 1 – 25 of 26) sorted by relevance

12

/system/update_engine/lz4diff/
Dlz4patch.h40 const google::protobuf::RepeatedPtrField<T>& arr) {
41 if (arr.empty()) {
46 auto begin = arr.begin();
49 for (; begin != arr.end(); ++begin) {
/system/chre/platform/slpi/see/include/
Dsns_osa.h55 #define ARR_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) argument
/system/tools/hidl/hidl2aidl/
DAidlType.cpp55 const ArrayType& arr = static_cast<const ArrayType&>(type); in getAidlType() local
56 auto sizes = arr.getConstantExpressions(); in getAidlType()
57 CHECK(sizes.size() > 0) << "Failed to get array dimensions for " << arr.definedName(); in getAidlType()
58 std::string typeStr = getAidlType(*arr.getElementType(), relativeTo); in getAidlType()
/system/teeui/libteeui/prebuilt/localization/
DConfirmationUITranslations.cpp155 #define ARRAY_ELEMENTS(arr) \ argument
156 (sizeof(arr)/sizeof(arr[0]))
/system/keymaster/include/keymaster/
Dmem.h73 template <typename T, size_t N> inline void copy_array(const T (&arr)[N], T* dest) { in copy_array()
75 dest[i] = arr[i]; in copy_array()
127 template <size_t N> explicit Eraser(uint8_t (&arr)[N]) : buf_(arr), size_(N) {} in Eraser()
Dandroid_keymaster_messages.h285 template <size_t N> void SetResults(const T (&arr)[N]) { SetResults(arr, N); } in SetResults()
287 void SetResults(const T* arr, size_t n) { in SetResults()
290 results = dup_array(arr, n); in SetResults()
/system/teeui/libteeui/include/teeui/
Dstatic_vec.h48 template <size_t s> static_vec(T (&arr)[s]) : data_(&arr[0]), size_(s) {} in static_vec()
Dcbor.h148 template <typename... Elements> Array<Elements...> arr(const Elements&... elements) {
263 WriteState writeArrayHelper(WriteState wState, const Arr<Head, Tail...>& arr) {
264 wState = write(wState, arr.head_);
265 return writeArrayHelper(wState, arr.tail_);
274 template <typename... Elems> WriteState write(WriteState wState, const Array<Elems...>& arr) {
276 wState = writeHeader(wState, Type::ARRAY, arr.size());
277 return writeArrayHelper(wState, arr);
/system/core/trusty/confirmationui/fuzz/
Dmsg_fuzzer.cpp33 #define countof(arr) (sizeof(arr) / sizeof(arr[0])) argument
/system/core/trusty/confirmationui/
DTrustyApp.cpp25 #define countof(arr) (sizeof(arr) / sizeof(arr[0])) argument
/system/update_engine/liburing_cpp/tests/
DBasicTests.cpp137 std::array<unsigned char, kBlockSize> arr{}; in GetArbitraryPageData() local
139 for (auto& a : arr) { in GetArbitraryPageData()
142 return arr; in GetArbitraryPageData()
/system/connectivity/wificond/net/
Dnl80211_attribute.h127 std::array<uint8_t, N> arr; in GetValue() local
128 std::copy_n(data_.data() + NLA_HDRLEN, N, arr.begin()); in GetValue()
129 return arr; in GetValue()
/system/tools/aidl/tests/
Daidl_test_client_ndk_parcelables.cpp183 std::array<std::array<T, 3>, 2> arr = {}; in Make2dArray() local
185 for (auto& row : arr) { in Make2dArray()
191 return arr; in Make2dArray()
Daidl_test_client_parcelables.cpp668 std::array<std::array<T, 3>, 2> arr = {}; in Make2dArray() local
670 for (auto& row : arr) { in Make2dArray()
676 return arr; in Make2dArray()
/system/keymint/wire/src/
Dlib.rs364 let mut arr = match value { in from_cbor_value() localVariable
368 match arr.len() { in from_cbor_value()
370 1 => Ok(Some(<T>::from_cbor_value(arr.remove(0))?)), in from_cbor_value()
390 let arr = match value { in from_cbor_value() localVariable
394 let results: Result<Vec<_>, _> = arr.into_iter().map(<T>::from_cbor_value).collect(); in from_cbor_value()
/system/chre/apps/wifi_offload/test/
Dutility.cc39 void init(uint8_t *arr, size_t len, RandomGenerator &rand_gen) { in init() argument
41 arr[i] = rand_gen.get<uint8_t>(); in init()
/system/chre/apps/wifi_offload/test/include/
Dutility.h62 void init(uint8_t *arr, size_t len, RandomGenerator &rand_gen);
/system/security/keystore2/src/crypto/
Dcrypto.cpp52 ArrayEraser(uint8_t* arr, size_t size) : mArr(arr), mSize(size) {} in ArrayEraser() argument
/system/core/trusty/utils/rpmb_dev/
Drpmb_dev.c285 #define countof(arr) (sizeof(arr) / sizeof(arr[0])) argument
/system/memory/lmkd/
Dlmkd.cpp336 int64_t arr[ZI_ZONE_FIELD_COUNT]; member
362 int64_t arr[ZI_NODE_FIELD_COUNT]; member
455 int64_t arr[MI_FIELD_COUNT]; member
493 int64_t arr[VS_FIELD_COUNT]; member
1694 zone->fields.arr[field_idx] = val; in zoneinfo_parse_zone()
1732 node->fields.arr[field_idx] = val; in zoneinfo_parse_node()
1835 mi->arr[field_idx] = val / page_k; in meminfo_parse_line()
1915 vs->arr[field_idx] = val; in vmstat_parse_line()
2049 mi ? std::min(mi->arr[field_idx] * page_k, (int64_t)INT32_MAX) : 0); in killinfo_log()
/system/tools/aidl/tests/rust/
Dtest_client.rs312 got.as_ref().map(|arr| arr in test_binder_nullable_array_exchange()
330 got.as_ref().map(|arr| arr in test_interface_list_exchange()
/system/libcppbor/tests/
Dcppbor_test.cpp430 Array arr; in TEST() local
431 arr.add(Map() // in TEST()
438 m.add("Outer1", std::move(arr)); // Moving is necessary; Map and Array cannot be copied. in TEST()
1640 const Array& arr = *(item->asArray()); in TEST() local
1641 ASSERT_EQ(arr[0]->type(), TSTR); in TEST()
1642 EXPECT_EQ(arr[0]->asTstr()->value(), "hello"); in TEST()
/system/update_engine/common/
Dutils.cc460 void HexDumpArray(const uint8_t* const arr, const size_t length) { in HexDumpArray() argument
473 uint8_t c = arr[i + j]; in HexDumpArray()
Dutils.h251 void HexDumpArray(const uint8_t* const arr, const size_t length);
/system/security/keystore2/src/
Ddatabase.rs312 let mut arr = [0u8; 16]; in column_result() localVariable
313 arr.copy_from_slice(&blob); in column_result()
314 Ok(Self(arr)) in column_result()

12