Home
last modified time | relevance | path

Searched refs:ARRAY_SIZE (Results 1 – 25 of 69) sorted by relevance

123

/system/chre/util/tests/
Dbuffer_test.cc38 fillBufferWithSequentialValues(buf, ARRAY_SIZE(buf)); in TEST()
41 buffer.wrap(buf, ARRAY_SIZE(buf)); in TEST()
43 EXPECT_EQ(buffer.size(), ARRAY_SIZE(buf)); in TEST()
48 fillBufferWithSequentialValues(buf, ARRAY_SIZE(buf)); in TEST()
51 EXPECT_TRUE(buffer.copy_array(buf, ARRAY_SIZE(buf))); in TEST()
52 EXPECT_EQ(buffer.size(), ARRAY_SIZE(buf)); in TEST()
54 for (size_t i = 0; i < ARRAY_SIZE(buf); i++) { in TEST()
68 fillBufferWithSequentialValues(buf, ARRAY_SIZE(buf)); in TEST()
71 buffer.wrap(buf, ARRAY_SIZE(buf)); in TEST()
79 fillBufferWithSequentialValues(buf, ARRAY_SIZE(buf)); in TEST()
[all …]
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/
Dpresence_crypto_v1.cc43 hkdf(kAkIv, ARRAY_SIZE(kAkIv), key.data, key.length, nullptr /*info*/, in decrypt()
44 0 /*infoLen*/, decryption_key, ARRAY_SIZE(decryption_key)); in decrypt()
47 hkdf(kAsaltIv, ARRAY_SIZE(kAsaltIv), salt.data, salt.length, nullptr /*info*/, in decrypt()
48 0 /*infoLen*/, a_salt, ARRAY_SIZE(a_salt)); in decrypt()
74 hkdf(kHkIv, ARRAY_SIZE(kHkIv), key.data, key.length, nullptr /*info*/, in verify()
75 0 /*infoLen*/, hmac_key, ARRAY_SIZE(hmac_key)); in verify()
78 hkdf(hmac_key, ARRAY_SIZE(hmac_key), input.data, input.length, in verify()
79 nullptr /*info*/, 0 /*infoLen*/, hmac_tag, ARRAY_SIZE(hmac_tag)); in verify()
Dpresence_crypto_identity_v1.cc43 hkdf(kEkIv, ARRAY_SIZE(kEkIv), key.data, key.length, /* info= */ nullptr, in decrypt()
44 /* infoLen= */ 0, decryption_key, ARRAY_SIZE(decryption_key)); in decrypt()
47 hkdf(kEsaltIv, ARRAY_SIZE(kEsaltIv), salt.data, salt.length, in decrypt()
48 /* info= */ nullptr, /* infoLen= */ 0, e_salt, ARRAY_SIZE(e_salt)); in decrypt()
72 hkdf(kKtagIv, ARRAY_SIZE(kKtagIv), input.data, input.length, in verify()
73 /* info= */ nullptr, /* infoLen= */ 0, hmac_tag, ARRAY_SIZE(hmac_tag)); in verify()
Dpresence_crypto_mic.cc30 #define STR_LEN_NO_TERM(str) (ARRAY_SIZE(str) - 1)
50 ARRAY_SIZE(decryption_key)); in decrypt()
57 STR_LEN_NO_TERM(kAdvNonceInfoSaltDe), nonce, ARRAY_SIZE(nonce)); in decrypt()
88 ARRAY_SIZE(hmac_key)); in verify()
91 hmacSha256(hmac_key, ARRAY_SIZE(hmac_key), metadataKey.data, in verify()
/system/extras/tests/pagingtest/
Dthrashing_test.c34 filesize = num_pages * pagesize / (ARRAY_SIZE(fds) - 1); in thrashing_test()
36 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) { in thrashing_test()
43 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) { in thrashing_test()
60 for (size_t j = 0; j < ARRAY_SIZE(fds); j++) { in thrashing_test()
73 (filesize * ARRAY_SIZE(fds) * test_runs * USEC_PER_SEC) / in thrashing_test()
79 for (size_t i = 0; i < ARRAY_SIZE(bufs) && bufs[i] != NULL; i++) { in thrashing_test()
83 for (size_t i = 0; i < ARRAY_SIZE(fds) && fds[i] >= 0; i++) { in thrashing_test()
Dpagingtest.h8 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
/system/chre/platform/slpi/see/
Dsee_cal_helper.cc32 if (index < ARRAY_SIZE(mCalInfo)) { in applyCalibration()
58 if (index < ARRAY_SIZE(mCalInfo)) { in getBias()
81 if (index < ARRAY_SIZE(mCalInfo)) { in areCalUpdatesEnabled()
92 if (index >= ARRAY_SIZE(mCalInfo)) { in configureCalUpdates()
107 if (calIndex < ARRAY_SIZE(mCalInfo) && mCalInfo[calIndex].suid.has_value()) { in getCalSuidFromSensorType()
117 for (size_t i = 0; i < ARRAY_SIZE(mCalInfo); i++) { in findCalibrationSensors()
136 if (index < ARRAY_SIZE(mCalInfo)) { in updateCalibration()
223 for (; i < ARRAY_SIZE(mCalInfo); i++) { in getCalIndexFromSuid()
/system/chre/pal/util/tests/
Dwifi_pal_convert_test.cc71 validateLciConvert(lci, ARRAY_SIZE(lci), expectedResult); in TEST()
92 validateLciConvert(lci, ARRAY_SIZE(lci), expectedResult); in TEST()
101 ASSERT_TRUE(chreWifiLciFromIe(lci, ARRAY_SIZE(lci), &result)); in TEST()
109 EXPECT_FALSE(chreWifiLciFromIe(lci, ARRAY_SIZE(lci), &result)); in TEST()
/system/media/alsa_utils/
Dalsa_format.c24 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
88 int num_slots = ARRAY_SIZE(mask->bits); in get_pcm_format_for_mask()
91 int table_size = ARRAY_SIZE(pcm_format_value_map); in get_pcm_format_for_mask()
Dalsa_device_profile.c33 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
279 for (index = 0; index < ARRAY_SIZE(std_sample_rates) && in profile_enum_sample_rates()
280 num_entries < ARRAY_SIZE(profile->sample_rates) - 1; in profile_enum_sample_rates()
294 const int num_slots = ARRAY_SIZE(mask->bits); in profile_enum_sample_formats()
297 const int table_size = ARRAY_SIZE(pcm_format_value_map); in profile_enum_sample_formats()
313 if (num_written == ARRAY_SIZE(profile->formats) - 1) { in profile_enum_sample_formats()
346 for (index = 0; index < ARRAY_SIZE(std_channel_counts) && in profile_enum_channel_counts()
347 num_counts < ARRAY_SIZE(profile->channel_counts) - 1; in profile_enum_channel_counts()
516 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_sample_rate_strs()
549 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_format_strs()
[all …]
Dalsa_logging.c26 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
33 const size_t num_slots = ARRAY_SIZE(mask->bits); in log_pcm_mask()
/system/chre/apps/test/common/rpc_service_test/src/
Drpc_service_manager.cc32 MIN(ARRAY_SIZE(response.msg), ARRAY_SIZE(request.msg))); in Echo()
/system/chre/util/include/chre/util/
Dmacros.h27 #ifndef ARRAY_SIZE
28 #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) macro
32 #define ARRAY_END(array) (array + ARRAY_SIZE(array))
/system/chre/apps/nearby/third_party/contexthub/chre/util/include/chre/util/
Dmacros.h27 #ifndef ARRAY_SIZE
28 #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) macro
32 #define ARRAY_END(array) (array + ARRAY_SIZE(array))
/system/chre/apps/audio_world/
Daudio_world.cc102 char fftStr[ARRAY_SIZE(gKissFftOutput) + 1]; in handleAudioDataEvent()
103 fftStr[ARRAY_SIZE(gKissFftOutput)] = '\0'; in handleAudioDataEvent()
105 for (size_t i = 0; i < ARRAY_SIZE(gKissFftOutput); i++) { in handleAudioDataEvent()
/system/extras/tests/fstest/
Drecovery_test.cpp41 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
220 return logwrap_fork_execvp(ARRAY_SIZE(umount_argv), umount_argv, nullptr, in unmountCache()
232 return logwrap_fork_execvp(ARRAY_SIZE(mountall_argv), mountall_argv, nullptr, in mountAll()
/system/chre/variant/android/
Dstatic_nanoapps.cc39 const size_t kStaticNanoappCount = ARRAY_SIZE(kStaticNanoappList);
/system/chre/variant/tinysys/
Dstatic_nanoapps.cc40 const size_t kStaticNanoappCount = ARRAY_SIZE(kStaticNanoappList);
/system/chre/variant/exynos-embos/
Dstatic_nanoapps.cc39 const size_t kStaticNanoappCount = ARRAY_SIZE(kStaticNanoappList);
/system/netd/netutils_wrappers/
DNetUtilsWrapper.h17 #define ARRAY_SIZE(x) (sizeof((x)) / (sizeof(((x)[0])))) macro
/system/chre/platform/tinysys/
Dauthentication.cc139 mbedtls_ecp_point_read_binary(&mGroup, &mQ, buffer, ARRAY_SIZE(buffer)); in loadPublicKey()
170 int result = mbedtls_ecdsa_verify(&mGroup, digest, ARRAY_SIZE(digest), &mQ, in authenticate()
220 for (size_t i = 0; i < ARRAY_SIZE(kTrustedPublicKeys); i++) { in isValidProductionPublicKey()
/system/chre/variant/simulator/
Dstatic_nanoapps.cc42 const size_t kStaticNanoappCount = ARRAY_SIZE(kStaticNanoappList);
/system/chre/chpp/include/chpp/
Dmacros.h46 #ifndef ARRAY_SIZE
47 #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) macro
/system/chre/core/
Dstatic_nanoapps.cc56 const size_t kStaticNanoappCount = ARRAY_SIZE(kStaticNanoappList);
/system/extras/ioshark/
Dcompile_ioshark.c40 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) macro
480 ARRAY_SIZE(open_flags_map)); in map_open_flags()
486 ARRAY_SIZE(open_flags_map)); in map_open_flags()
499 ARRAY_SIZE(lseek_action_map)); in map_lseek_action()
505 ARRAY_SIZE(lseek_action_map)); in map_lseek_action()
513 ARRAY_SIZE(fileop_map)); in map_syscall()

123