Searched refs:size_t (Results 1 – 11 of 11) sorted by relevance
/libnativehelper/include/nativehelper/ |
D | toStringArray.h | 28 jobjectArray toStringArray(JNIEnv* env, size_t count, StringVisitor&& visitor) { in toStringArray() 35 for (size_t i = 0; i < count; ++i) { in toStringArray() 49 return toStringArray(env, strings.size(), [&strings](size_t i) { return strings[i].c_str(); }); in toStringArray() 53 size_t count = 0; in toStringArray() 55 return toStringArray(env, count, [&strings](size_t i) { return strings[i]; }); in toStringArray() 60 return toStringArray(env, counter(), [getter](size_t i) { return getter(i); }); in toStringArray()
|
D | JNIHelp.h | 53 size_t dataSize; // The length of the C string data (not including the null-terminator). 67 size_t textSize = strlen(text); in ExpandableStringAppend() 68 size_t requiredSize = s->dataSize + textSize + 1; in ExpandableStringAppend() 84 [[maybe_unused]] inline char* safe_strerror(char* (*strerror_r_method)(int, char*, size_t), in safe_strerror() argument 85 int errnum, char* buf, size_t buflen) { in safe_strerror() 89 [[maybe_unused]] inline char* safe_strerror(int (*strerror_r_method)(int, char*, size_t), in safe_strerror() argument 90 int errnum, char* buf, size_t buflen) { in safe_strerror() 98 [[maybe_unused]] static const char* platformStrError(int errnum, char* buf, size_t buflen) { in platformStrError()
|
/libnativehelper/include_platform_header_only/nativehelper/detail/ |
D | signature_checker.h | 71 template<size_t N> 79 constexpr ConstexprStringView(const char* ptr, size_t size) in ConstexprStringView() 88 constexpr size_t size() const { in size() 96 constexpr char operator[](size_t i) const { 102 constexpr ConstexprStringView substr(size_t start, size_t len) const { in substr() 110 constexpr ConstexprStringView substr(size_t start) const { in substr() 127 size_t _size; 135 for (size_t i = 0; i < lhs.size(); ++i) { 173 template<typename T, size_t kMaxSize> 254 constexpr const T& operator[](size_t i) const { [all …]
|
/libnativehelper/tests/ |
D | ExpandableString_test.cpp | 62 class ExpandableStringTestFixture : public :: testing::TestWithParam<size_t> { 68 size_t step = GetParam(); in TEST_P() 76 for (size_t offset = 0; offset < step; ++offset) { in TEST_P() 82 for (size_t i = 0; i < 4096u; ++i) { in TEST_P() 85 size_t requiredSize = pad.size() + i * step + 1u; in TEST_P() 89 size_t position = 0u; in TEST_P() 94 for (size_t i = 0; i < 4096; ++i) { in TEST_P()
|
D | JniSafeRegisterNativeMethods_test.cpp | 546 template <typename T, size_t kMaxSize> 547 constexpr size_t SumUpVector(const nativehelper::detail::ConstexprVector<T, kMaxSize>& vec) { in SumUpVector() 548 size_t s = 0; in SumUpVector() 550 s += static_cast<size_t>(GetTestValue(elem)); in SumUpVector() 582 constexpr size_t the_sum = SumUpVector(vec_int); in TEST() 588 constexpr size_t the_sum = SumUpVector(vec_int); in TEST() 1231 for (size_t i = 0; i < sizeof(gParcelMethods) / sizeof(JNINativeMethod); ++i) { in TEST()
|
/libnativehelper/header_only_include/nativehelper/ |
D | scoped_string_chars.h | 58 size_t size() const { in size() 62 const jchar& operator[](size_t n) const { 70 size_t size_;
|
D | scoped_primitive_array.h | 74 const PRIMITIVE_TYPE& operator[](size_t n) const { return mRawArray[n]; } \ 75 size_t size() const { return mSize; } \ 125 const PRIMITIVE_TYPE& operator[](size_t n) const { return mRawArray[n]; } \ 127 REFERENCE_TYPE(PRIMITIVE_TYPE) operator[](size_t n) { return mRawArray[n]; } \ 128 size_t size() const { return mEnv->GetArrayLength(mJavaArray); } \
|
D | scoped_utf_chars.h | 86 size_t size() const { in size() 90 const char& operator[](size_t n) const {
|
/libnativehelper/ |
D | ExpandableString.c | 33 size_t textSize = strlen(text); in ExpandableStringAppend() 34 size_t requiredSize = s->dataSize + textSize + 1; in ExpandableStringAppend()
|
D | ExpandableString.h | 27 size_t dataSize; // The length of the C string data (not including the null-terminator).
|
D | JNIHelp.c | 36 static const char* platformStrError(int errnum, char* buf, size_t buflen) { in platformStrError()
|