Home
last modified time | relevance | path

Searched refs:size (Results 1 – 11 of 11) sorted by relevance

/libnativehelper/include_platform_header_only/nativehelper/detail/
Dsignature_checker.h78 constexpr ConstexprStringView(const char* ptr, size_t size) in ConstexprStringView()
79 : _array(ptr), _size(size) { in ConstexprStringView()
87 constexpr size_t size() const { in size() function
92 return size() == 0u; in empty()
96 X_ASSERT(i <= size());
102 X_ASSERT(start <= size()); in substr()
103 X_ASSERT(len <= size() - start); in substr()
110 X_ASSERT(start <= size()); in substr()
111 return substr(start, size() - start); in substr()
121 return &_array[size()]; in end()
[all …]
/libnativehelper/tests/
DExpandableString_test.cpp83 const std::string& appendee = inputs[i % inputs.size()]; in TEST_P()
85 size_t requiredSize = pad.size() + i * step + 1u; in TEST_P()
95 const std::string& expected = inputs[i % inputs.size()]; in TEST_P()
96 EXPECT_EQ(0, strncmp(expected.c_str(), expandableString.data + position, expected.size())); in TEST_P()
97 position += expected.size(); in TEST_P()
Dscoped_primitive_array_test.cpp25 sba.size(); in TestScopedPrimitiveArrayRO()
32 sba.size(); in TestCompilationRW()
DJniSafeRegisterNativeMethods_test.cpp51 EXPECT_EQ(1u, v_str.size()); in TEST()
490 EXPECT_CONSTEXPR_EQ(1u, cvrt->args.size()); in TEST()
506 EXPECT_EQ(2u, cvrt->args.size()); in TEST()
515 EXPECT_EQ(2u, cvrt->args.size()); in TEST()
543 EXPECT_EQ(0u, arr.size()); in TEST()
/libnativehelper/tests_mts/jni/
Djni_helper_jni.cpp88 return jniCreateString(env, ssc.get(), ssc.size()); in createString()
137 std::size(methods)); in JNI_OnLoad()
/libnativehelper/header_only_include/nativehelper/
Dscoped_string_chars.h58 size_t size() const { in size() function
Dscoped_utf_chars.h79 size_t size() const { in size() function
Dscoped_primitive_array.h75 size_t size() const { return mSize; } \
128 size_t size() const { return mEnv->GetArrayLength(mJavaArray); } \
/libnativehelper/
DJniInvocation.c110 jint JNI_GetCreatedJavaVMs(JavaVM** vms, jsize size, jsize* vm_count) { in JNI_GetCreatedJavaVMs() argument
115 return g_impl.JNI_GetCreatedJavaVMs(vms, size, vm_count); in JNI_GetCreatedJavaVMs()
DREADME.md9 multiple ways, including mainline modules, so keeping the size down
/libnativehelper/include/nativehelper/
DtoStringArray.h49 return toStringArray(env, strings.size(), [&strings](size_t i) { return strings[i].c_str(); }); in toStringArray()