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.h79 constexpr ConstexprStringView(const char* ptr, size_t size) in ConstexprStringView()
80 : _array(ptr), _size(size) { in ConstexprStringView()
88 constexpr size_t size() const { in size() function
93 return size() == 0u; in empty()
97 X_ASSERT(i <= size());
103 X_ASSERT(start <= size()); in substr()
104 X_ASSERT(len <= size() - start); in substr()
111 X_ASSERT(start <= size()); in substr()
112 return substr(start, size() - start); in substr()
122 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.cpp39 EXPECT_EQ(1u, v_str.size()); in TEST()
478 EXPECT_CONSTEXPR_EQ(1u, cvrt->args.size()); in TEST()
494 EXPECT_EQ(2u, cvrt->args.size()); in TEST()
503 EXPECT_EQ(2u, cvrt->args.size()); in TEST()
531 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_primitive_array.h75 size_t size() const { return mSize; } \
128 size_t size() const { return mEnv->GetArrayLength(mJavaArray); } \
Dscoped_utf_chars.h86 size_t size() const { in size() function
/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()